Repository navigation
fix(chat): fold what ended in the OmO background-task list into one line - #310
Conversation
|
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 configurationConfiguration used: Repository: devswha/herdr-web-ui/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (5)
🚧 Files skipped from review as they are similar to previous changes (4)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 SummarySummary by CodeRabbit
WalkthroughThe task panel now separates active workflows from ended activity. It groups ended tasks and workflows under an expandable summary that displays ended and failed counts. ChangesEnded activity summary
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to The task panel provides feedback when there is no activity and a separate notice when only ended activity remains. No actionable merge-blocking risk is established; the change is mergeable subject to normal checks. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
…scape, and say 'recently ended'
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.
Sidebar switches between two components instead of returning early. The early return threw React error devswha#310 when the grouping changed at runtime.
What changes
The background-task list (status line → "N background tasks") is for what runs now. Before, it also listed every task that ended in the last day, and every workflow, finished or not. With a day of work behind it the list was mostly history: on a desktop it was cut at the bottom, and on a phone it covered the last message.
Now:
4 ended in the last day · 2 failed. It opens to the same rows as before (ended workflows first, then ended tasks).Asked for by the maintainer while trying the unreleased build.
How
src/lib/omoTasks.ts:runGoing,endedSummary(unit-tested).src/components/BackgroundTasks.tsx+.css: the fold line (a button witharia-expanded/aria-controls; the list ishiddenuntil opened).No server, protocol or demo-transport change.
Checks
bun run typecheck,bun run buildpass;omoTasks,i18n,motionunit tests pass (21).omoTasks/omoRunsfrom fixture files: folded and opened states at 1440x900 and 390x844, English and Korean. Looked at 4 of the 12 screenshots.