Skip to content

feat: dashboard: top bar instead of the sidebar - #325

Merged
with-developer merged 4 commits into
mainfrom
feat/top-nav
Nov 23, 2026
Merged

with-developer merged 4 commits into
mainfrom
feat/top-nav

Conversation

@with-developer

@with-developer with-developer commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

The last step of the dashboard redesign: a top bar instead of the sidebar, so the pages get the full width.

What

  • Top bar (sticky): the brand, the pages (Overview, Fix, Hosts, Images, Controls, Matrix), and on the right the profile select, a host search (Enter opens the host list filtered by that text), and theme, language and sign-out buttons.
  • The page is centered under it and up to 1312px wide (the matrix shows more columns).
  • Narrower screens: the language button shows only its icon under 1400px, the search hides under 1180px, and the pages scroll sideways rather than being covered. On a phone the bar has two rows: the brand and the settings, then the pages as a tab bar (icon over label, as before).
  • What a page brings into view (a control picked in "since the previous scan", a comparison of two scans) stays clear of the sticky bar (scroll-padding-top); the remediation page's queue sticks below it.
  • Texts that said "sidebar" (the message on a host of another profile, docs/fleet.md and .ko) now say the top of the page.
  • Screenshots of the six dashboard pages regenerated.

Tests

  • make test lint, make build-web.
  • In the browser: axe clean and no horizontal overflow on the overview, a host page and the remediation page in en/ko × light/dark × 1280/390; the click from "since the previous scan" and "Compare the two scans" still bring their targets into view; the sign-in page is unchanged.

Review (/code-review medium)

Fixed:

  • Between 761px and about 1240px the last pages (Controls, Matrix) were cut off by the settings, with the scrollbar hidden. Below 1240px the bar now has two rows: the brand and the settings, then the pages with their labels. Checked at 1600, 1400, 1280, 1241, 1240, 1100, 1000, 800, 761, 760 and 390px in English and Korean: no page cut off, no horizontal overflow.
  • The search box's width was overridden by the shared .search style (250-320px); it is 12rem.
  • Searching from the top bar on a filtered host list dropped the list's other filters; it keeps them. On the images it searches the images ("Search images"). It empties after a search, since the list's own search box shows the text.
  • The bar's height was written in three places; it is one variable (--topbar-h), one value for each layout.
  • A comment left from the sidebar's layout removed.
  • The README's tour GIF still showed the sidebar; it is regenerated (960×600, eight scenes: overview, standards, remediation, a host's changes and evidence, a control, the matrix, Korean).

…he search keeps the list's filters, searches images on the images page and empties, one height variable; the tour GIF regenerated
@with-developer
with-developer merged commit 5eb28a0 into main Nov 23, 2026
9 checks passed
@with-developer
with-developer deleted the feat/top-nav branch November 23, 2026 09:37
with-developer added a commit that referenced this pull request Nov 23, 2026
Install commands and image tags now name v0.48.0; the translation
markers of README.ko.md and docs/fleet.ko.md point at the squash commit
of #325 (5eb28a0).
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