Skip to content

issue: shorten syslog graph drilldown button title to 'Syslog' - #411

Closed
TheWitness wants to merge 1 commit into
developfrom
fix/shorten-syslog-graph-button-title
Closed

TheWitness wants to merge 1 commit into
developfrom
fix/shorten-syslog-graph-button-title

Conversation

@TheWitness

Copy link
Copy Markdown
Member

Summary

Cacti's graph action (drilldown) menu now renders each registered button's title as a visible text label. With that change, this plugin's graph button title "Display Syslog in Range" reads as an overlong entry in the menu.

This shortens it to Syslog, matching the concise, label-style wording of the other drilldown actions. The existing fas fa-exclamation-triangle glyph is unchanged and already follows the preferred iconLink + Font Awesome drilldown format.

Changes

  • includes/navigation.php — syslog_graph_buttons(): title Display Syslog in Range → Syslog.
  • locales/po/cacti.pot — regenerated for the removed translatable string (required by the i18n gate; Syslog already exists as a msgid).
  • CHANGELOG.md — entry under develop.

Testing

  • php -l includes/navigation.php — clean.
  • php tests/bin/check-i18n-pot.php origin/develop — OK (pot included).
  • includes/navigation.php is in the patch-coverage $unmeasured_allowlist, so no measured lines change.

The graph action menu now renders each drilldown button's title as a visible label, so 'Display Syslog in Range' reads as an overlong menu entry. Shorten it to 'Syslog' and regenerate locales/po/cacti.pot for the removed translatable string.
@TheWitness
TheWitness requested review from bmfmancini and xmacan and a balanced review from Copilot October 12, 2026 20:18

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

The regenerated POT file incorrectly removes its package version metadata.

1 open finding
What changed in this PR

Shortens the graph drilldown label to “Syslog” and updates related metadata.

Changes:

  • Renames the graph button title.
  • Updates gettext template and changelog.
File Description
includes/​navigation.php Shortens the drilldown title.
locales/​po/​cacti.pot Removes the obsolete msgid.
CHANGELOG.md Documents the change.

🧠 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 locales/po/cacti.pot
msgid ""
msgstr ""
"Project-Id-Version: Cacti 1.2.32\n"
"Project-Id-Version: Cacti \n"
@TheWitness

Copy link
Copy Markdown
Member Author

Closing for now: the title change itself is correct and clean, but plugin_syslog's develop branch currently has pre-existing Plugin Integration Test failures (DashboardDefaultTest, SetupModuleBoundaryTest) unrelated to this one-line change, so CI cannot go green here yet. Will reopen once develop is green.

@TheWitness TheWitness closed this Oct 12, 2026
@TheWitness
TheWitness deleted the fix/shorten-syslog-graph-button-title branch October 12, 2026 20:21
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.

2 participants