feat(networks): add network detail page with paginated host list and contextual back button

- API: add get_network(id) server function
- NetworkDetailPage at /networks/:id — network name + CIDR header, paginated
  host table (Name, IP, Ports, Apps) linking to /hosts/:id?back=/networks/:id
- Networks list: make network name a link to its detail page
- HostDetailPage: read ?back= query param to show "← Network" or "← Hosts"
  and navigate to the correct destination

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-16 02:37:06 +02:00
parent ba4d2a60c6
commit c3e2d5dcf6
7 changed files with 262 additions and 8 deletions

View File

@@ -1207,3 +1207,19 @@ td.col-actions {
justify-content: flex-end;
margin-top: var(--size-lg);
}
/* ============================================================
NETWORK DETAIL PAGE
============================================================ */
.network-detail-page {
max-width: 720px;
}
/* CIDR displayed below the network name in the header */
.network-detail-cidr {
font-family: var(--font-mono);
font-size: var(--font-sm);
color: var(--text-secondary);
margin: 0;
}