Skip to content

fix(web): show sidebar startup loading state#899

Open
binbandit wants to merge 1 commit intopingdotgg:mainfrom
binbandit:t3code/sidebar-startup-loading-spinner
Open

fix(web): show sidebar startup loading state#899
binbandit wants to merge 1 commit intopingdotgg:mainfrom
binbandit:t3code/sidebar-startup-loading-spinner

Conversation

@binbandit
Copy link
Contributor

@binbandit binbandit commented Mar 11, 2026

Summary

  • show a startup loading state in the sidebar until the first projects/threads snapshot hydrates
  • keep the existing empty state only after hydration completes
  • add a browser test covering the loading-to-empty transition and register it in the browser Vitest config

Validation

  • bun run test:browser src/components/Sidebar.browser.tsx
  • bun fmt
  • bun lint
  • bun typecheck

UI

Screenshot 2026-03-11 at 8 54 02 pm

Note

Show loading spinner in Sidebar while threads are hydrating

  • Sidebar.tsx now renders a spinner and status messages when threadsHydrated is false, replacing the previous behavior of immediately rendering the projects/threads list.
  • A browser test suite in Sidebar.browser.tsx verifies the loading state appears before hydration and the empty state appears after.
  • Behavioral Change: users now see a loading panel instead of an empty sidebar during app startup.

Macroscope summarized 98f8900.

@coderabbitai
Copy link

coderabbitai bot commented Mar 11, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: c4a3b264-26c1-4e7a-b4f1-4e9818c427dc

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions bot added the vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. label Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant