Skip to content

feat: show navbar immediately while metadata.json loads#196

Open
meyer9 wants to merge 1 commit into
mainfrom
meyer9/navbar-loading-placeholder
Open

feat: show navbar immediately while metadata.json loads#196
meyer9 wants to merge 1 commit into
mainfrom
meyer9/navbar-loading-placeholder

Conversation

@meyer9
Copy link
Copy Markdown
Collaborator

@meyer9 meyer9 commented Jun 8, 2026

Summary

metadata.json can be slow to load. Previously the entire page render (including the navbar) was blocked behind the metadata fetch, showing just a bare Loading... div.

Changes

Navbar.tsx: While useTestMetadata() is in-flight on benchmark routes, render an animated skeleton placeholder in the dropdown slot so the navbar is immediately visible and the layout doesn't shift when the select appears.

RunIndex.tsx / RunComparison.tsx: Replace the early-return <div>Loading...</div> with a full layout that renders <Navbar /> plus skeleton content placeholders. The navbar now shows instantly while metadata loads.

- Add animated skeleton placeholder in the Navbar dropdown slot while
  useTestMetadata() is fetching, so layout doesn't shift on load
- RunIndex: render Navbar + content skeleton during isLoadingBenchmarkRuns
  instead of a bare <div>Loading...</div> that hid the navbar entirely
- RunComparison: same fix
@cb-heimdall
Copy link
Copy Markdown
Collaborator

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 1
Sum 2

@meyer9 meyer9 marked this pull request as ready for review June 8, 2026 16:28
@meyer9 meyer9 requested a review from wlawt June 8, 2026 16:28
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.

2 participants