Commit: Initial Update

This commit is contained in:
2026-10-13 20:35:22 +07:00
parent f1c253b028
commit 43b8bfa253
24 changed files with 2440 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
package model
// MessageSeverity classifies the severity of a system message.
type MessageSeverity int
const (
// SeverityNone means no message is active.
SeverityNone MessageSeverity = iota
SeverityWarning
SeverityError
SeverityInfo
)
// SystemMessage represents an optional system-level status message.
type SystemMessage struct {
Severity MessageSeverity
Text string
}
// IsVisible returns true when there is an active message to display.
func (m *SystemMessage) IsVisible() bool {
return m != nil && m.Severity != SeverityNone && m.Text != ""
}