Repository navigation
Conversation
… no longer shows through its words
Contributor
|
Thank you, this is merged into |
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.
What and why
Closes #441.
The usage banner above the composer ("You're at X% of your Claude usage limit") had a background of 4% text color, or 7% red at the limit, over nothing. The composer dock sits on top of the scrolling chat, so the messages behind the banner showed through its words.
The banner now uses the same tint mixed into the page color at 85% opacity, with
backdrop-blur-md. The chat behind it shows only as a faint blur. Over a plain page the color is the same as before. The copy, icon and colors are unchanged. The drag-and-drop overlay inComposerAttachments.tsxalready uses this approach (88% page color withbackdrop-blur-md).The issue says every banner has the problem. The other notices above the composer (
ChatNotice,ChatErrorCard,WeeklyLimitLine,ComposerSignInNotice,ScreenAccessNotice) already sit on--color-notice, which mixes into an opaque page color, so they were already solid.UsageBannerwas the only one with an alpha background, and this PR changes only that.How it was checked
UsageDisplayRow.dom.test.tsandrescue-grace.dom.test.ts, which render the banner, pass (7 tests).pnpm typecheckandpnpm lintpasspnpm test: vitest had 5 failures in server tests. Four of them (host-lazy-claim.e2e,bot-api-host,full-access-workflows.e2e,mcp-probe) took 28 to 49 s under load and pass when run alone.agents-bridge.e2efails the same way onmainwithout this change (expected 37573 to be less than 37411at line 167), so it isn't caused by this PR. The broker, Electron and packaged-server steps didn't run because vitest failed first.