Skip to content

Make the Fleet Dashboard the first tab and the default landing view - #72

Merged
TheWitness merged 3 commits into
developfrom
feature/fleet-dashboard-default-tab
Oct 12, 2026
Merged

TheWitness merged 3 commits into
developfrom
feature/fleet-dashboard-default-tab

Conversation

@TheWitness

Copy link
Copy Markdown
Member

Summary

Makes the Fleet (Summary) Dashboard the first tab and the default landing view of the Host MIB interface.

  • set_default_action('summary') → set_default_action('summary_dashboard'), so opening the plugin with no action lands on the Fleet Dashboard.
  • In hmib_tabs(), the Fleet Dashboard is now the first entry in the tab list and is always present (previously it only appeared after being opened from the Summary tab's dashboard glyph, or when a summary scope had been remembered).
  • The per-device Dashboard tab is unchanged — it still only appears once opened from its glyph on the Devices tab.

With no remembered OS-type scope, the Fleet Dashboard resolves to all devices (ostype = -1), so the default landing view renders correctly out of the box.

Notes

  • No new translatable strings (the Fleet Dashboard label already existed), so locales/po/cacti.pot is unchanged.
  • No new files, so manifest.json is unchanged.
  • php -l clean. Two docblocks updated for accuracy (the default-view note moved from hmib_summary() to hmib_summary_dashboard()).

The Fleet (Summary) Dashboard is now always present as the first tab and is
the default action, so the Host MIB interface opens on it. The per-device
Dashboard tab remains gated on being opened from its Devices-tab glyph.
@TheWitness
TheWitness requested review from bmfmancini and xmacan and a balanced review from Copilot October 11, 2026 20:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The new default action lacks a corresponding Cacti navigation entry, breaking breadcrumb/title resolution.

2 open findings
What changed in this PR

Makes the Fleet Dashboard the Host MIB interface’s first tab and default view.

Changes:

  • Defaults action-less requests to summary_dashboard.
  • Makes Fleet Dashboard permanently visible and first.
  • Updates documentation and changelog.
File Description
hmib.php Changes default landing view and tab ordering.
CHANGELOG.md Records the feature.

🧠 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 hmib.php
Comment thread hmib.php
@TheWitness
TheWitness merged commit 1f7e193 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.

4 participants