Skip to content

usage banner: readable over the chat behind it - #442

Closed
shubhook wants to merge 1 commit into
DuskBotAI:mainfrom
shubhook:t3/fix-banner-background-opacity
Closed

shubhook wants to merge 1 commit into
DuskBotAI:mainfrom
shubhook:t3/fix-banner-background-opacity

Conversation

@shubhook

@shubhook shubhook commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

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 in ComposerAttachments.tsx already uses this approach (88% page color with backdrop-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. UsageBanner was the only one with an alpha background, and this PR changes only that.

How it was checked

  • UsageDisplayRow.dom.test.ts and rescue-grace.dom.test.ts, which render the banner, pass (7 tests).
  • I compiled both new classes with Tailwind 4.3.3 and confirmed it generates them.
  • I looked at the banner by hand in the desktop app, dark skin, at 94–95% of the Claude limit.
Before After
Usage banner before: the chat text shows through the banner Usage banner after: the chat behind is blurred and the banner text reads clearly
  • pnpm typecheck and pnpm lint pass
  • pnpm 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.e2e fails the same way on main without this change (expected 37573 to be less than 37411 at line 167), so it isn't caused by this PR. The broker, Electron and packaged-server steps didn't run because vitest failed first.
  • New behaviour has a test
  • No secrets, personal data or local paths in the diff or screenshots

@SiddDevZ

SiddDevZ commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Thank you, this is merged into dev as d6dcd3c (cherry-picked with your authorship, since this PR targeted main). It will ship in the next release.

@SiddDevZ SiddDevZ closed this Dec 3, 2026
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.

Banners render at low opacity, text hard to read

2 participants