Skip to content

Header flashes and reflows on every page navigation #259

Closed

Description

@jseifeddine

Symptom. Switching pages reflows the header: gated links (Sessions, Reports, Tokens, Admin) are hidden in the markup and shown only after /api/me answers, the logo is revalidated on each load, and the nav differs from page to page (Credentials is missing on some), so the header jumps on first paint and admin-only controls pop in afterwards.

Proposed fix. Serve each page in five variants, one per role level, differing only in a data-role-level attribute on <html>; optional auth on the page routes so a logged-in request gets its variant on first paint, ETag per variant; the logo joins the content-addressed assets. Every page carries the same eight links with data-min-role on the gated ones and rustguac.css shows them from the attribute; API-key users set it from /api/me. Admin-only controls follow the same gate.

Fixed by feat/role-baked-pages-unified-nav. Part of the #254 series.

Activity

  1. davekempe commented on Oct 16, 2026

    @davekempe
    Member

    Fixed by #274.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions