Skip to content

Dashboard redesign and dedicated Topology page#114

Open
antoncxx wants to merge 1 commit into
NullNet-ai:mainfrom
antoncxx:dashboard
Open

Dashboard redesign and dedicated Topology page#114
antoncxx wants to merge 1 commit into
NullNet-ai:mainfrom
antoncxx:dashboard

Conversation

@antoncxx

@antoncxx antoncxx commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

New /topology route — diagram only

The existing topology page had stat cards, a card header, and an active connections table below the graph. It's now stripped to a single full-viewport diagram with nothing else on screen. The graph is centered and scales to fit the viewport height minus the topbar. The slide-in detail panel (node/edge/internet) still opens on click. A "Topology" nav entry has been added under Overview in the sidebar.

Dashboard — three-section layout

The dashboard was previously a collapsible connections card stacked above the topology card. It has been restructured into a three-row CSS grid:

  1. Stat cards — four glass cards showing Sessions (cyan), Services registered/total, Pool % (turns amber above 80%), and Nodes connected. All values come from data already fetched by TopologyProvider and the existing useApi calls — no new endpoints.

  2. Info section (220 px fixed) — two side-by-side cards:

    • Active Connections — the existing edge table (From / Via Proxy / To / Net ID / Client Net / Server Net / Setup), now scrollable within the fixed height.
    • Services (300 px) — a compact list of every service node sorted registered-first then alphabetically. Each row shows a status dot (green = healthy, amber = degraded/paused replicas, red = unregistered), service name, replica count (active / max_networks or total), an "EP" badge for entry points, and a count for services with active edges. Clicking a row opens the topology panel for that node.
  3. Topology card — anchored to top-left, no scale-to-fit; the card grows with the SVG's natural aspect ratio and the page scrolls if the graph is taller than the viewport.

- Add /topology page: full-viewport diagram only, no stats or tables,
  centered and scaled to fit via ZoomFrame
- Dashboard layout: stat cards (sessions, services, pool, nodes) at top;
  active connections table + services status list side by side in the
  middle; topology at the bottom
- Services status list: per-service status dot (green/amber/red),
  replica count, EP badge, active edge count; clicking opens the panel
- Topology card on dashboard anchors to top-left and grows with content
  (height:auto, no scale-to-fit) so the page scrolls rather than shrinks
- Add Topology nav entry under Overview in the sidebar
- ZoomFrame/TopologyGraph: new anchor ('center'|'top-left'), fill, and
  grow props to support the different display modes
@antoncxx antoncxx changed the title Dashboard Dashboard redesign and dedicated Topology page Jun 27, 2026
@antoncxx antoncxx marked this pull request as ready for review June 27, 2026 00:23
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.

1 participant