Skip to content

mactrack: shorten interface status pill labels to single words - #389

Merged
bmfmancini merged 2 commits into
developfrom
feature/shorten-interface-status-pill-labels
Oct 10, 2026
Merged

bmfmancini merged 2 commits into
developfrom
feature/shorten-interface-status-pill-labels

Conversation

@TheWitness

@TheWitness TheWitness commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

Shorten the interface status chip labels on the MacTrack Interfaces view
from descriptive phrases to concise words so the per-row Issues pills fit
better:

Interface Up -> Up
No Alias -> Unaliased
Errors Present -> Errors
Discards Present -> Discards
No Graphs -> Graphless
Interface Down -> Down

The int_up_wo_alias and int_no_graph classes are absence conditions
(interface is up but has no alias / has no graphs), so their labels stay
semantically negative ("Unaliased"/"Graphless") rather than reading as
their opposite.

The labels live in the shared mactrack_interface_status_legend() helper
(drives the Issues pills and the multi-select Status filter) and in the
duplicated footer-legend array, both updated to stay in sync.

Status actions are driven from the per-row Issues pills (which toggle the
corresponding status in the multi-select Status filter) and from the
Status drop-down itself. The footer legend is a non-interactive colour
key for those same statuses.

locales/po/cacti.pot regenerated with locales/build_gettext.sh
(xgettext) to track the changed translatable strings.

Interface Up/No Alias/Errors Present/Discards Present/No Graphs/Interface Down become Up/Alias/Errors/Discards/Graphs so the per-row Issues pills fit better; footer legend and Status filter stay in sync. Regenerated cacti.pot.
@TheWitness
TheWitness requested review from bmfmancini and xmacan and a balanced review from Copilot October 9, 2026 21:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

“Alias” and “Graphs” misleadingly represent missing aliases and graphs, and the stated footer interaction is not implemented.

3 open findings
What changed in this PR

Shortens interface-status labels to reduce pill width across the Interfaces view.

Changes:

  • Shortens shared status and footer labels.
  • Regenerates the gettext template.
File Description
lib/​mactrack_functions.php Updates shared status labels.
mactrack_view_interfaces.php Updates footer legend labels.
locales/​po/​cacti.pot Refreshes translations.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread lib/mactrack_functions.php Outdated
Comment thread mactrack_view_interfaces.php Outdated
Comment thread mactrack_view_interfaces.php
Address PR review: 'Alias'/'Graphs' read as the opposite of the int_up_wo_alias/int_no_graph absence conditions they filter on. Use concise negatives so pills, footer legend and the Status filter keep their meaning. Regenerated cacti.pot.
@bmfmancini
bmfmancini merged commit 245b98e into develop Oct 10, 2026
2 of 5 checks passed
@TheWitness
TheWitness deleted the feature/shorten-interface-status-pill-labels branch October 10, 2026 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants