Skip to content

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

Merged
meyer9 merged 1 commit into
mainfrom
meyer9/navbar-loading-placeholder
Jun 9, 2026
Merged

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

Conversation

@meyer9

@meyer9 meyer9 commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

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

cb-heimdall commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

✅ Heimdall Review Status

Requirement Status More Info
Reviews 1/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
@meyer9 meyer9 merged commit ee4c42f into main Jun 9, 2026
15 checks passed
@meyer9 meyer9 deleted the meyer9/navbar-loading-placeholder branch June 9, 2026 14:17
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.

3 participants