Skip to content

fix(chat): keep the composer's status line to one row on a phone - #312

Merged
devswha merged 3 commits into
mainfrom
fix/composer-status-one-line
Oct 2, 2026
Merged

devswha merged 3 commits into
mainfrom
fix/composer-status-one-line

Conversation

@devswha

@devswha devswha commented Oct 2, 2026

Copy link
Copy Markdown
Owner

Stacked on #310 (same component file); it retargets to main once that merges.

What was wrong

On a phone the status line above the message box wrapped. An OmO pane with background tasks, a model name and a reasoning level took two rows, three with the context text open, and that room came out of the conversation.

Measured on current main in headless Chrome, real app on a pane of the isolated test herdr session, 5 widths (320, 360, 390, 412, 430) x 4 languages (en, ko, ja, zh) x 4 states: 50 of 80 had more than one row.

Change

  • .composer-status no longer wraps.
  • At 480px and below, the background-task chip shows its icon and the number (the button keeps the full words as its name and title), and the reasoning chip shows the level alone (the full phrase stays for screen readers).
  • The model name is the first to give way (ellipsis, down to a few letters); the opened context text shortens only after that. The model and the level are now direct items of the status line (display: contents on their wrapper), so the level cannot overlap what follows it.
  • Wider screens are unchanged apart from never wrapping.

Checks

  • Same 80 cases after the change: 80 of 80 one row, nothing cut off or overlapping, no page overflow. The first attempt passed the row count but overlapped the level and the context ring at 320px; the measurement now checks overlap too.
  • Looked at 7 of the screenshots (320 and 390, en/ko/ja, each state).
  • bun run typecheck, bun run build, omoTasks/i18n/motion unit tests (21) pass.
  • Not checked: real iOS Safari or Android Chrome, and compact density.

devswha added a commit that referenced this pull request Oct 2, 2026
@coderabbitai

coderabbitai Bot commented Oct 2, 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: 4e6f2f62-3fdd-4e8a-824e-4f939ce93b26

📥 Commits

Reviewing files that changed from the base of the PR and between d30ea0d and 924ab25.

📒 Files selected for processing (5)
  • CHANGELOG.md
  • scripts/chat-browser-qa.ts
  • src/components/BackgroundTasks.css
  • src/components/BackgroundTasks.tsx
  • src/components/Composer.css
🚧 Files skipped from review as they are similar to previous changes (2)
  • CHANGELOG.md
  • src/components/BackgroundTasks.css

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


📝 Summary

Summary by CodeRabbit

  • Bug Fixes
    • On narrow screens, the composer status stays on one row. Long model names are shortened, and the reasoning label shows only its level.
    • The background-task toggle displays its icon and count when tasks are active, and only the icon when idle.

Walkthrough

The background-task toggle and composer status layout now use compact displays on narrow screens. Browser QA checks that the composer status content remains within its row.

Changes

Compact narrow-screen status layout

Layer / File(s) Summary
Background-task toggle on narrow screens
src/components/BackgroundTasks.tsx, src/components/BackgroundTasks.css
The toggle has a localized accessible label and tooltip. It displays the task count separately and shows the count instead of the label on narrow screens.
Single-row composer status
src/components/Composer.tsx, src/components/Composer.css, scripts/chat-browser-qa.ts, CHANGELOG.md
The composer status stays on one row. Model and context text can be shortened, and the reasoning label uses a short form on narrow screens. Browser QA checks the status row and visible model and reasoning bounds. The changelog records the layout change.

Priority: ➖ Normal

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

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 924ab

No concrete regression is identified in the supplied review context, and the reported checks cover the narrow-screen presentation. The PR appears ready for normal merge checks.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the primary change: keeping the composer's status line to one row on phones.
Description check ✅ Passed The description explains the problem, resulting behavior, implementation details, validation results, and untested environments. It uses equivalent headings for the template's Change and Validation se…
Docstring Coverage ✅ Passed Docstring coverage is 85.71% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 7 functions across 8 files. (3 skipped: 3 u…
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.

Base automatically changed from fix/omo-tasks-fold-ended to main October 2, 2026 11:02
@devswha
devswha force-pushed the fix/composer-status-one-line branch from d30ea0d to 924ab25 Compare October 2, 2026 11:09
@devswha
devswha merged commit a4a9715 into main Oct 2, 2026
3 checks passed
@devswha
devswha deleted the fix/composer-status-one-line branch October 2, 2026 11:14
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