Skip to content

fix(ui): reconnecting indicator no longer shifts content - #11911

Merged
lalalune merged 2 commits into
developfrom
fix/11867-reconnecting-banner-rebased
Jul 3, 2026
Merged

fix(ui): reconnecting indicator no longer shifts content#11911
lalalune merged 2 commits into
developfrom
fix/11867-reconnecting-banner-rebased

Conversation

@lalalune

@lalalune lalalune commented Jul 3, 2026

Copy link
Copy Markdown
Member

Supersedes #11867. Closes #11864.

Summary

  • Render transient reconnecting as an out-of-flow overlay pill so it does not shift shell content
  • Keep the durable connection-lost alert in flow with Retry/Dismiss actions
  • Use dark text on the orange reconnecting pill for readable contrast
  • Add unit, story, and deterministic layout-shift proof coverage

Validation

  • bun run --cwd packages/core prebuild
  • bun run --cwd packages/ui test src/components/shell/ConnectionFailedBanner.test.tsx — 6 tests passed
  • bun run --cwd packages/ui typecheck
  • bunx @biomejs/biome check changed files
  • git diff --check origin/develop...HEAD && git diff --check
  • node packages/ui/scripts/reconnecting-shift-proof.mjs — old in-flow shift 44px; new overlay shift 0px
  • bun run --cwd packages/app audit:app — 357 passed; 356 findings good; minimalism-budget-failures=0

Evidence

  • .github/issue-evidence/reconnecting-shift-baseline.png
  • .github/issue-evidence/reconnecting-shift-old-inflow.png
  • .github/issue-evidence/reconnecting-shift-new-overlay.png
  • packages/app/aesthetic-audit-output/report.json from the passing audit run

N/A: real-LLM trajectories (UI connection-status rendering only); audio (no voice change).

roninjin10 and others added 2 commits July 3, 2026 06:38
…contrast (#11864)

The WebSocket reconnecting banner rendered in document flow as a shrink-0
flex sibling of the page (App.tsx:2479), so it pushed the header + content
down on every reconnect blip. It also used bg-warn (#ff8a24) with white
text (~2:1 contrast, fails WCAG).

- Render the transient "reconnecting" state as a floating overlay pill
  (absolutely positioned, out of flow) → 0px content shift.
- Near-black text on the orange pill for ~8:1 contrast.
- Keep the persistent, actionable "connection lost" state as an in-flow bar
  (Retry/Dismiss), preserving the macOS titlebar-banner integration.
- Add ConnectionFailedBanner.test.tsx (overlay vs in-flow regression),
  a ReconnectingOverContent story, and a Playwright proof measuring the
  header Y delta (in-flow bar = 44px shift, overlay pill = 0px).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your trial has ended. Reactivate Greptile to resume code reviews.

@coderabbitai

coderabbitai Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 391a81c5-06dc-4687-bb46-8b14d75d6011

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/11867-reconnecting-banner-rebased

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@lalalune
lalalune merged commit 7dfd450 into develop Jul 3, 2026
35 of 60 checks passed
@lalalune
lalalune deleted the fix/11867-reconnecting-banner-rebased branch July 3, 2026 14:03
@claude

claude Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Claude encountered an error —— View job


I'll analyze this and get back to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reconnecting indicator shifts page content and has unreadable white-on-orange text

3 participants