@@ -112,14 +112,13 @@ func (m Model) View() string {
112112 lines := []string {
113113 sectionTitleStyle .Render (i18n .T ("dashboard.system_status" )),
114114 "" ,
115- valueStyle .Render (fmt .Sprintf (i18n .T ("dashboard.accounts" ), m .data .AccountCount , m .data .ActiveAccountCount )),
115+ valueStyle .Render (fmt .Sprintf (i18n .T ("dashboard.accounts" ), m .data .ActiveAccountCount , m .data .AccountCount )),
116116 valueStyle .Render (fmt .Sprintf (i18n .T ("dashboard.public_keys" ), m .data .PublicKeyCount , m .data .GlobalKeyCount )),
117- valueStyle .Render (fmt .Sprintf (i18n .T ("dashboard.system_key" ), formatSystemKeySerial (m .data .SystemKeySerial ))),
118117 "" ,
119118 sectionTitleStyle .Render (i18n .T ("dashboard.deployment_status" )),
120119 "" ,
121120 valueStyle .Render (fmt .Sprintf (i18n .T ("dashboard.hosts_current_key" ), m .data .HostsUpToDate )),
122- valueStyle .Render (fmt .Sprintf (i18n .T ("dashboard.hosts_past_keys" ), m .data .HostsOutdated )),
121+ warnValueStyle .Render (fmt .Sprintf (i18n .T ("dashboard.hosts_past_keys" ), m .data .HostsOutdated )),
123122 "" ,
124123 sectionTitleStyle .Render (i18n .T ("dashboard.security_posture" )),
125124 "" ,
@@ -159,13 +158,6 @@ func (m Model) View() string {
159158 return lipgloss .JoinVertical (lipgloss .Left , lines ... )
160159}
161160
162- func formatSystemKeySerial (serial int ) string {
163- if serial <= 0 {
164- return i18n .T ("dashboard.system_key.not_generated" )
165- }
166- return fmt .Sprintf (i18n .T ("dashboard.system_key_serial" ), serial )
167- }
168-
169161func formatAlgoSpread (algoCounts map [string ]int , style lipgloss.Style ) string {
170162 if len (algoCounts ) == 0 {
171163 return "-"
0 commit comments