Add skeleton loading states and center full-pane empty states - #522
Merged
Conversation
The command center, channel feed, episodes rail, memory panel, and members panel either rendered nothing or a bare "loading…" string while their first fetch was in flight, and the channel tab could flash "No messages yet" before history arrived. Add a shared Skeleton primitive (ui/skeleton.tsx) and give each surface a placeholder shaped like its loaded layout. Also make full-pane empty states consistent: Channel sat at the top of its scroll area while Negotiate centered vertically. All three full-pane states (Channel, Negotiate, L9) now center via EmptyState h-full; rail/list empty states stay in flow. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DHE2rKVQJvz7AE4qvWBZYQ
Seed the sidebar's room list from a module-level cache so navigation remounts paint the last-known rooms instantly instead of flashing the count to 0 while the refetch is in flight. Top-align full-pane empty states (Channel, Negotiate, L9) so the copy doesn't jump vertically when switching between panes of differing height.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a consistent loading treatment across the frontend and fixes the empty-state alignment inconsistency between the Channel and Negotiate tabs.
The command center had no loading state at all (a blank page, or a flash of "No rooms yet", until the first fetch resolved), and several panels used bare "loading…" / "Loading…" strings. Full-pane empty states were also inconsistent: Channel rendered its empty state at the top of the scroll area while Negotiate centered it vertically.
Changes
Skeletonprimitive (mycelium-frontend/src/components/ui/skeleton.tsx): a pulsing block on thesurfacetoken, composed into row/card shapes at each call site.event-stream.tsx): newhistoryLoadedflag; shows chat-row skeletons while message history loads, so "No messages yet" can no longer flash before the fetch resolves.loadedflag with tree-row skeletons, so "No memories yet" no longer flashes on first load.EmptyState className="h-full"(the component already justifies center); Negotiate's ad-hoc wrapper div removed. Rail/list empty states intentionally stay in flow. Convention documented onEmptyState.Testing
pnpm lint/tsc --noEmit)pnpm test, 12/12)pnpm build)Backend checkboxes from the template are N/A — this PR touches only
mycelium-frontend.Related Issues
None.
🤖 Generated with Claude Code
https://claude.ai/code/session_01DHE2rKVQJvz7AE4qvWBZYQ
Generated by Claude Code