Skip to content

feat: add a themed spinner with done and failed states - #3

Merged
autoantohaki merged 3 commits into
mainfrom
feat/spinner
Oct 22, 2026
Merged

autoantohaki merged 3 commits into
mainfrom
feat/spinner

Conversation

@autoantohaki

Copy link
Copy Markdown
Member

Requested by mau

Before: neither relay-cards nor relay-chat had a spinner. relay-chat shows a static Thinking… while a reply streams, and relay-cards shows a running process only as a colored state word.

After: Spinner animates in the theme's accent color with an optional label, offers dots, line and pulse styles or custom frames, and switches to a green ✓ or red ✗ when state becomes done or failed, which also stops its timer. useSpinnerFrame gives the current frame to tools that draw the spinner inside their own text. The gallery shows all five forms.

How: one setInterval per running spinner, cleared on finish and unmount. Single-frame renders such as renderToString show the first frame. Stacked on #2; merge after it.

@autoantohaki
autoantohaki merged commit 8bd8c23 into main Oct 22, 2026
12 checks passed
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.

1 participant