Repository navigation
fix(web): send logged-out visitors to login, chip picker, full Daylight theme - #144
Merged
Merged
Conversation
…ht theme - The dashboard pages wait for the session and send logged-out visitors to /login. The API already refused their data; the page just showed schema defaults. A server the user can't manage shows a message instead of a form. - The top bar shows the signed-in user's name and avatar with a log out button, or a Log in button, instead of a fixed "Admin" chip. /api/auth/me now also returns the session's platform. - Multi-value fields use a searchable picker with removable chips, keyboard support and a scrolling list, instead of a native select[multiple]. - Daylight now sets every surface, text, depth and gradient token, so cards and text switch too. A new color-scheme token drives native controls, and the theme choice is remembered in localStorage. - The live sync chip reflects whether the stream is connected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017JdKJpQQK3XuLZTBiZ4gns
zVapor-Dev
marked this pull request as ready for review
October 29, 2026 15:01
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.
Fixes four things from the first beta feedback.
Logged-out access
Opening
/dashboard?platform=discord&space=…in a private window still showed the settings page. The API was already refusing the data: values, stream and spaces all return 401, whichvalues.test.tscovers. The page only showed schema defaults, because/api/schemais public. But it looked like access./api/auth/me, one shared request) and send logged-out visitors to/login. A skeleton shows while that check runs."Admin" in the top bar
The fixed "Admin" chip is replaced by the signed-in user's name and Discord avatar, plus a Log out button. Signed-out visitors see a Log in button.
/api/auth/menow also returns the session'splatform, so the web app knows which CDN serves the avatar.Multi-select
Multi-value fields (channel and role pickers with
multiple, andmultiSelect) used a nativeselect[multiple]that rendered as a small list box. They now use a searchable picker:All colors come from theme tokens.
Daylight theme
The
daylightpreset only overrode bg, surface and primary, so cards, inputs and text kept their dark-theme colors. It now sets every surface, text, semantic, shadow and gradient token. A newcolor-schemetoken (--dd-color-scheme) drives the nativecolor-scheme, so scrollbars and native controls go light too. The default theme andtokens.csscarry the new token.The theme choice is now remembered in
localStorage. Reads and writes are wrapped in try/catch so blocked storage doesn't break anything.Checks
pnpm lint,pnpm turbo run typecheck,pnpm test(264 passed), sdk-pypytest(13 passed) andpnpm buildall pass./login.Requested by zVapor
Generated by Claude Code