Skip to content

issue: shorten flowview graph drilldown button title to 'NetFlow' - #292

Merged
TheWitness merged 3 commits into
developfrom
fix/shorten-flowview-graph-button-title
Oct 12, 2026
Merged

TheWitness merged 3 commits into
developfrom
fix/shorten-flowview-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 "View NetFlow Traffic In Range" reads as an overlong entry in the menu.

This shortens it to NetFlow, matching the concise, label-style wording of the other drilldown actions (Details, Realtime, Time View, etc.). The existing fas fa-water glyph is unchanged and already follows the preferred iconLink + Font Awesome drilldown format.

Changes

  • setup.php — flowview_graph_button(): title View NetFlow Traffic In Range → NetFlow.
  • locales/po/cacti.pot — regenerated for the changed translatable string (required by the i18n gate).
  • CHANGELOG.md — entry under develop.

Testing

  • php -l setup.php — clean.
  • php tests/bin/check-i18n-pot.php origin/develop — OK (pot included).
  • setup.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 'View NetFlow Traffic In Range' reads as an overlong menu entry. Shorten it to 'NetFlow' and regenerate locales/po/cacti.pot for the changed translatable string.
@TheWitness
TheWitness requested review from bmfmancini and xmacan and a balanced review from Copilot October 12, 2026 18:40

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.

🟢 Approval recommended

The focused UI text change is consistent, translated, and fully documented.

0 open findings

What changed in this PR

Shortens the FlowView graph drilldown label to align with Cacti’s concise action-menu labels.

Changes:

  • Renames the visible title to “NetFlow.”
  • Updates the gettext template and changelog.
File Description
setup.php Shortens the graph button title.
locales/​po/​cacti.pot Updates the translatable string.
CHANGELOG.md Documents the label change.

🧠 Review effort: Balanced


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

The integration-test workflow installed Cacti's config.php but never created the plugin's own config.php, so 'plugin_manage.php --plugin=flowview --install' failed with 'needs configuration'. Copy config.php.dist to config.php (it defaults to using the Cacti database) before the install step.
Creating config.php persistently made the FlowviewLifecycleTest 'no config file exists' case reach flowview_connect() and error. Create config.php only for the install step and remove it immediately, so the unit tests run with no config file and the poller falls back to the Cacti database.

@somethingwithproof somethingwithproof left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Approved.

@TheWitness
TheWitness merged commit dae1c1e into develop Oct 12, 2026
3 checks passed
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