Skip to content

fix(chat): keep quick replies in the composer column on wide screens - #212

Merged
devswha merged 4 commits into
mainfrom
fix/quick-replies-column
Sep 30, 2026
Merged

devswha merged 4 commits into
mainfrom
fix/quick-replies-column

Conversation

@devswha

@devswha devswha commented Sep 30, 2026

Copy link
Copy Markdown
Owner

Change

On a desktop-wide chat pane, the quick-reply chips (Settings → Quick replies) started at the pane's left edge, while the status line and the message box stayed centered in the --content-w column. .composer-quick was the one composer child left out of the shared width: min(100%, var(--content-w)); margin-inline: auto rule. This PR adds it to that rule, so the chips line up with the box. Narrow panes and phones don't change, because there the column is already 100% wide.

Validation

  • scripts/ui-regression.ts now checks that the quick-reply row has the same left edge and width as .composer-surface at 1280×800.
    • Without the fix, it fails (actual: 336, expected: 390).
    • With the fix, all 28 browser groups pass against the isolated test herdr session.
  • bun run typecheck and bun run build pass.

🤖 Generated with Claude Code

The quick-reply row was the one composer child left out of the centered
--content-w column, so on a desktop-wide pane it started at the pane's
left edge while the status line and the box stayed centered.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: devswha/herdr-web-ui/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 6e33f697-fe89-447f-aa87-5fba2a4e1f9a

📥 Commits

Reviewing files that changed from the base of the PR and between eb5a53e and 78efbf8.

📒 Files selected for processing (2)
  • CHANGELOG.md
  • scripts/ui-regression.ts
🚧 Files skipped from review as they are similar to previous changes (1)
  • CHANGELOG.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.


📝 Summary

Summary by CodeRabbit

  • Bug Fixes
    • On wide screens, quick replies now align with the message box instead of starting at the left edge of the chat pane.

Walkthrough

The composer’s centered width and margin rules now include quick replies. A UI regression checks that the quick-reply row and composer surface have matching horizontal positions and widths. The changelog records the wide-screen alignment change.

Changes

Quick reply alignment

Layer / File(s) Summary
Composer alignment and regression check
src/components/Composer.css, scripts/ui-regression.ts, CHANGELOG.md
The composer’s centered width selector now includes .composer-quick. The regression checks matching rounded x-coordinates and widths. The changelog describes the wide-screen alignment change.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix · Severity of issue fixed: Low

Suggested reviewers: haeminway1

Merge Risk: ⚪ Minimal · up to 78efb

Quick replies now share the composer’s centered width, with a browser check for matching bounds. No actionable merge risk is identified; the change is ready for normal checks.

Architecture Summary

Architecture risk: 🔵 Low · up to 78efb

The change affects 3 systems.

Changed systems: CHANGELOG.md, scripts, src

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — CHANGELOG.md (service) was modified; 1 changed file maps to changed impact.
  • observed — scripts (service) was modified; 1 changed file maps to changed impact.
  • observed — src (ui) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in src/components/Composer.css: The comment adds the status line’s quick replies to the elements described as sharing the composer’s column edge.
  • observed — Modified behavior in src/components/Composer.css: .composer-quick is added to the selector group that applies a centered maximum width and automatic inline margins.
  • observed — Modified behavior in CHANGELOG.md: Added a changelog entry describing the wide-screen alignment change for quick replies.
  • observed — Modified behavior in scripts/ui-regression.ts: Adds a browser assertion that the quick-reply row and composer surface have matching rounded x-coordinates and widths; first verifies both bounding boxes exist.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: keeping quick replies aligned within the composer column on wide screens.
Description check ✅ Passed The description includes the required Change and Validation sections. It explains the problem, resulting behavior, affected screen sizes, regression coverage, and build checks. It does not include the…
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


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

@devswha
devswha merged commit 45c1079 into main Sep 30, 2026
3 checks passed
@devswha
devswha deleted the fix/quick-replies-column branch September 30, 2026 22:48
devswha added a commit that referenced this pull request Oct 1, 2026
## Change

Installed apps are on v0.3.35. This PR prepares v0.3.36. The app and
plugin versions go up together, and the Unreleased notes move under the
dated release heading.

It also fixes the CHANGELOG: the #187 entries (edge swipe, Hide
keyboard) had been placed in the already released 0.3.34 section. They
now sit under Added in 0.3.36, merged with #217's text-selection fix for
the swipe. Entries that had no PR link now have one.

This release includes:
- **Added:**
  - Left-edge drawer swipe and keyboard dismissal on phones (#187)
- Opt-in color palettes and agent icons, with Amber staying the default
(#188)
  - Claude's suggested next prompt in the composer (#198)
  - Plan meters at the top of the sidebar as an option (#206)
- **Fixed:**
  - A fallback card for blocked screens no reader knows (#205)
  - Ctrl+Shift+↑/↓ typing into the terminal (#215)
  - Attach-held races (#207)
  - Plugin `stop` returning before the server is gone (#210)
  - A table inside a list (#209)
  - Queued messages showing only under the chat lens (#213)
  - Quick replies column on wide screens (#212)
  - A clear message for Windows hosts (#208)
- **Pre-release review:** an adversarial review of everything since
v0.3.35 found these problems, fixed in #216 (server) and #217 (client):
- Fallback menu inference typed digits into a following prompt and cut
off wrapped labels.
  - The held-attach timeout unlocked input after a refusal.
  - The suggestion read could delay prompt polling.
  - `stop` misread zombie processes.
  - The swipe stole text selection.
  - Ordered-list numbering restarted after a table.
  - A stale suggestion survived Send now.
  - The top usage panel hid provider failures.

## Validation

- `bun scripts/release-notes.ts 0.3.36` passes.
- Fast checks and Integration and browser must pass before the squash
merge. After the merge, publish with `gh workflow run release.yml --ref
main -f version=0.3.36`.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
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