You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(sidebar): close the gaps in compact rows - #3446
The owner found the compact sidebar rows (#3276) looked broken: on a 280 px sidebar a workspace row cut
its name short (sidebar-v2-…) while its branch sat in a fixed slot at the far right, so a short name
(merge-pass) had a wide hole before its branch, and the state then sat centred in a 34 px cell, a
second hole. This keeps the layout and closes the holes.
Branch right after the name..workspace-branch-tail loses its margin-inline-start: auto and max-width: 45%. Short of room the branch gives way first (a shrink far larger than the name's),
down to a couple of letters and an ellipsis, and only then the name. A name is no longer cut while
room is left. The same minimum keeps the Agents list's dim place from shrinking to a stray letter.
State at the row's end. In one-line rows (workspaces and agents) the trailing cell is the
glyph's size (--space-6) instead of the grid's 34 px --side-box, so the state sits about as far
from the right edge as the mark is from the left. Two lines keeps its cells.
⋯ before the state, under a mouse (v2, the owner's call after the first version hid the state):
on a desktop (hover, fine pointer, 769 px and wider) the row menu shows just before the state's
cell, over the end of the row's words, which fade out under it. A workspace row masks its text's
last --space-6 + --space-4. An agent row's menu carries a fade into the row's own fill
(--row-fill, set beside each fill). The ?, ✓ and ● stay in sight, and nothing in the row moves
(feat(sidebar): compact one-line rows with the waiting mark on every row #3276's rule). A finger and the narrow drawer keep the ⋯ in the row beside the state.
Measured on the demo with names unlike their branches (before → after): on a 390 px phone the gap
between ui and its branch went from 83 px to 8 px, and sidebar-v2-build shows whole (104 px)
instead of being cut to 76 px. On a 280 px desktop sidebar, hovering a row no longer narrows its name
(75 → 63 px before, 75 → 75 px now).
Captures (demo, light theme, names changed to differ from their branches) are on the maintainer's PC
under ~/.cache/ovis-tmp/sidebar-row-gaps/: before-* (main), after-* (first version) and v2-*
(this head), at 1440 (also a 280 px sidebar, hovered on a waiting ? workspace row and agent row) and 390.
Validation
bun run check fast on this head: passed (13,653 unit tests pass).
scripts/sidebar-branch-line-demo-regression.ts (desktop and phone, dark and light): passed. It now
checks that the branch starts one gap after the name, the state is a --space-6 cell at the row's
end, a mouse's ⋯ ends where that cell starts with the state still in sight and the name and branch
unmoved, and a finger's ⋯ stays beside a visible state, for a workspace row and an agent row. On main
it fails on the 85 px gap.
A workspace row's branch sat in a fixed slot at the row's far end, so a
short name left a wide hole before it while a long one was cut short, and
the state sat centred in a 34 px cell. The branch now follows the name and
gives way before it (down to a couple of letters, never a stray one), the
state sits at the row's end in a cell its glyph's size, and under a mouse
the row menu comes over the state's cell instead of pushing the name, so
nothing moves when it shows. The Agents list's one-line rows do the same;
Two lines keeps its cells, and a finger keeps the menu beside the state.
sidebar-branch-line-demo-regression checks the gap after the name, the
state at the row's end, and the menu over it on desktop and beside it on
a phone, for a workspace row and an agent row.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Auto incremental 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.
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
No actionable comments were generated in the recent review.
Summary
Summary by CodeRabbit
Bug Fixes
Improved spacing and alignment in workspace and agent sidebar rows. Branch names remain beside workspace names, and status indicators stay at the row’s end.
On desktop, row actions appear over the status area on hover or focus without shifting the row’s text. On phones, actions remain beside the status indicator without moving the name or branch.
Workspace and agent sidebar rows now place state in a reserved trailing cell. On desktop, row actions overlay that cell on hover, focus, or when the menu is open. Regression checks cover desktop and phone layouts in light and dark themes.
Changes: Sidebar row spacing
Layer / File(s)
Summary
Row layout and regression coverage src/components/Sidebar.css, src/components/AgentSidebar.css, scripts/sidebar-branch-line-demo-regression.ts, changelog.d/sidebar-row-gaps.md
Workspace branch text follows the name and has updated sizing. Workspace and agent rows reserve a trailing cell for state and actions. On fine-pointer desktop layouts, actions overlay the state cell and the state hides during hover, focus, or an expanded menu. Regression checks verify spacing and menu behavior across desktop and phone layouts. The changelog records these layout changes.
devswha/ovis#3276: Introduced compact one-line workspace rows and the branch styling updated in this pull request.
Suggested reviewers:duytbp, jiunshinn
Merge Risk: Minimal · previous review 4fae5
The compact-row spacing changes have no established merge-blocking issue. Merge after normal checks pass.
Pre-merge checks: 5
Check name
Status
Explanation
Title check
The title "fix(sidebar): close the gaps in compact rows" names the main change. The PR makes the branch follow the workspace name, moves the state to the row end in a glyph-sized cell, and moves the r…
Docstring Coverage
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description check
The description follows the repository template with both required sections, "Change" and "Validation". The Change section explains the problem (compact sidebar rows with a cut-short name and wide gap…
Full details: Title check
Explanation
The title "fix(sidebar): close the gaps in compact rows" names the main change. The PR makes the branch follow the workspace name, moves the state to the row end in a glyph-sized cell, and moves the row menu over the state on desktop hover. The title is specific and concise, and it fits the changeset's purpose. It does not name the branch or menu behavior, but it does not need to cover every detail.
Full details: Docstring Coverage
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files. (3 skipped: 3 unsupported.)
Full details: Description check
Explanation
The description follows the repository template with both required sections, "Change" and "Validation". The Change section explains the problem (compact sidebar rows with a cut-short name and wide gaps), the resulting behavior for branch placement, state placement, and the hover menu, and gives before/after measurements. The Validation section lists the commands run (bun run check fast, the demo regression scripts, and workspace-rows-regression.ts) with their results. It does not mention contract-test coverage, which the template asks for only for HTTP/WS changes, and this PR does not touch those. The description does not link an issue for the feature, but the template asks for that only for features, and this change is a layout fix for the #3276 rows. The Change section also points to screenshots stored on the maintainer's PC, which reviewers may not be able to open.
Finishing Touches
Generate docstrings
Commit to this branch
Create a new PR
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Reviewing files that changed from the base of the PR and between 9e296c4 and 4fae5d4.
Files selected for processing: 4
changelog.d/sidebar-row-gaps.md
scripts/sidebar-branch-line-demo-regression.ts
src/components/AgentSidebar.css
src/components/Sidebar.css
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 1 remain after this review.
The owner's call on the first version: under a mouse the ? / check / dot
must stay visible. The row menu now shows just before the state's cell,
over the end of the row's words, which fade out under it (a mask on a
workspace row's text, a fade into the row's own fill on an agent row), so
nothing moves and the state stays in sight. A finger keeps the menu beside
the state, as before.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The compact state cell sized its badge to its content, so a ready or unknown
state, which draws no glyph, collapsed to nothing and lost its label and
tooltip box. The badge now fills its cell; a drawn mark sits where it did.
Closes the gaps in compact sidebar rows (owner-approved v2: status marks stay visible on hover; the row's ⋯ overlaps the branch tail). The merge pass merged main in (one Sidebar.css conflict where both sides only added rules; both kept) and fixed one real bug: the PR's width: auto shrank the ready/idle status badge to 0x0, so it was invisible - it now fills its cell, the approved look unchanged (ui-regression, sidebar-activity-demo and gjc-status regressions pass alone twice each). The merge pass's Codex reviews (route: team proxy): CLEAR on the merge resolution and on the fix; omo: no HIGH. Required checks green; unresolved threads 0. Follow-ups: Sidebar compact rows (v2): follow-ups from the merge review #3455.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
The owner found the compact sidebar rows (#3276) looked broken: on a 280 px sidebar a workspace row cut
its name short (
sidebar-v2-…) while its branch sat in a fixed slot at the far right, so a short name(
merge-pass) had a wide hole before its branch, and the state then sat centred in a 34 px cell, asecond hole. This keeps the layout and closes the holes.
.workspace-branch-tailloses itsmargin-inline-start: autoandmax-width: 45%. Short of room the branch gives way first (a shrink far larger than the name's),down to a couple of letters and an ellipsis, and only then the name. A name is no longer cut while
room is left. The same minimum keeps the Agents list's dim place from shrinking to a stray letter.
glyph's size (
--space-6) instead of the grid's 34 px--side-box, so the state sits about as farfrom the right edge as the mark is from the left. Two lines keeps its cells.
on a desktop (hover, fine pointer, 769 px and wider) the row menu shows just before the state's
cell, over the end of the row's words, which fade out under it. A workspace row masks its text's
last
--space-6+--space-4. An agent row's menu carries a fade into the row's own fill(
--row-fill, set beside each fill). The ?, ✓ and ● stay in sight, and nothing in the row moves(feat(sidebar): compact one-line rows with the waiting mark on every row #3276's rule). A finger and the narrow drawer keep the ⋯ in the row beside the state.
Measured on the demo with names unlike their branches (before → after): on a 390 px phone the gap
between
uiand its branch went from 83 px to 8 px, andsidebar-v2-buildshows whole (104 px)instead of being cut to 76 px. On a 280 px desktop sidebar, hovering a row no longer narrows its name
(75 → 63 px before, 75 → 75 px now).
Captures (demo, light theme, names changed to differ from their branches) are on the maintainer's PC
under
~/.cache/ovis-tmp/sidebar-row-gaps/:before-*(main),after-*(first version) andv2-*(this head), at 1440 (also a 280 px sidebar, hovered on a waiting
?workspace row and agent row) and 390.Validation
bun run check faston this head: passed (13,653 unit tests pass).scripts/sidebar-branch-line-demo-regression.ts(desktop and phone, dark and light): passed. It nowchecks that the branch starts one gap after the name, the state is a
--space-6cell at the row'send, a mouse's ⋯ ends where that cell starts with the state still in sight and the name and branch
unmoved, and a finger's ⋯ stays beside a visible state, for a workspace row and an agent row. On
mainit fails on the 85 px gap.
sidebar-spacing-demo-regression.ts,sidebar-heads-demo-regression.ts: passed.workspace-rows-regression.ts(test herdr session): passed.🤖 Generated with Claude Code