Dashboard cards: rebuild deployable dists

This commit is contained in:
2026-08-11 14:31:24 -04:00
parent 0ed8be75d9
commit 3b37603691
14 changed files with 507 additions and 62 deletions

View File

@@ -192,17 +192,13 @@ class NetworkPlugin(BasePlugin):
return [networkcli]
def get_dashboard_widgets(self) -> List[Dict]:
"""Return dashboard widget definitions."""
return [
{
'name': 'Network Status',
'component': 'NetworkStatusWidget',
'endpoint': '/api/network/dashboard/summary',
'size': 'medium',
'position': 7,
},
]
# NO dashboard card, deliberately. This plugin declared one for months
# naming a component nobody wrote, so nothing rendered. Converting it would
# have meant inventing a card: network devices carry no live status - there
# is no polling, no reachability check, nothing that can be WRONG - so the
# only card possible is a count of how many exist, which is the kind of
# always-true number this dashboard exists to get away from. If reachability
# is ever collected, that is the card.
def get_navigation_items(self) -> List[Dict]:
"""Return navigation menu items."""