Skip to content

fix(web): boring sidebar folder row actions keep their height and their clicks - #46818

Merged
juliusmarminge merged 2 commits into
pingdotgg:mainfrom
duke8585:fix/folder-row-actions-hit-area
Dec 1, 2026
Merged

juliusmarminge merged 2 commits into
pingdotgg:mainfrom
duke8585:fix/folder-row-actions-hit-area

Conversation

@duke8585

@duke8585 duke8585 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Problem

follow-up to #46765. on a hovered folder row in the boring sidebar, Snooze and Settle are hard to use:

  • clicking either button opens the thread instead. on hover the time/status label goes absolute (still opacity-0) and, being positioned, paints over the now-static action group. on a "Done" row, elementFromPoint at the centre of both Snooze and Settle returns the hidden label.
  • hovering near the top edge of the clock makes the row flicker between its status and the actions. the static action group sits in an items-center slot, so it shrinks to icon height (12px instead of 24px). the Snooze tooltip (side top, pointer-events-auto) then lands under the pointer, the row loses :hover, the group grows back, and it loops.

Change

  • the hidden label gets pointer-events-none whenever it leaves the layout, as the card branch already does.
  • the action group gets self-stretch, so it keeps the slot's height when it turns static on hover.
  • the label only leaves the layout on folder rows (variantAction === "settle"). before, Snoozed and Settled rows also moved it on hover, which widened their title for no reason since their wake/un-settle button stays absolute.

Scope

bug fix, follow-up to #46765 (fixes for #46755).

Verification

  • web dev app on main @ 89ba0007, boring sidebar on, hovered "Done" folder row: Snooze and Settle are 12px tall and both centres hit the hidden label.
  • same on this branch: both are 24px tall and both centres hit their own button. hovering 1px below the clock's top edge, the row stays hovered and the pointer stays on Snooze across 10 samples over 2s.
  • vp test run --project browser src/components/Sidebar.folderRow.browser.test.tsx src/components/Sidebar.drag.browser.test.tsx: 3 passed.
  • vp lint on the changed file and effect-tsgo tsrs --noEmit in apps/web: clean.
  • clicking ✓ on a hovered folder row, main vs this branch (sidebar only):
main: ✓ opens the thread, nothing is settled this branch: ✓ settles, the row moves to Settled
before after
  • the flicker on main, recorded by hand (the row flips between "Done" and the actions while the pointer sits near the clock):

flicker on main

Claude Opus 5.5 via Claude Code.

🤖 Generated with Claude Code

On hover the folder row's Snooze and Settle group shrank to icon height,
so the Snooze tooltip could land under the pointer and drop the row's hover
in a loop. The hidden time label also stayed hit-testable on top of both
buttons, so clicks opened the thread instead. Snoozed and Settled rows keep
their label in place.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Dec 1, 2026
@macroscopeapp

macroscopeapp Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 78040a0

Macroscope's review found this PR approvable — This change preserves sidebar action height and prevents hidden labels from intercepting clicks. Its effects are limited to existing controls’ layout and hit-testing, with no changes to product defaults or action behavior.

You can add or adjust custom eligibility rules. Learn more.

@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The sidebar thread row now limits time-label hover positioning to settle actions under the specified snooze and row-state conditions. The label disables pointer events in relevant states, and the snooze/settle controls wrapper stretches. The browser test checks label pointer behavior and button heights.

Changes: Sidebar hover controls

Layer / File(s) Summary
Hover label and control layout
apps/web/src/components/sidebar/SidebarThreadRow.tsx, apps/web/src/components/Sidebar.folderRow.browser.test.tsx
The time label uses hover positioning only for settle actions when snoozing is available and the row is not woke. It disables pointer events while hovered and while the snooze menu is open. The controls wrapper stretches across its vertical container. The browser test checks that the label does not receive pointer events and that the Settle and Snooze buttons are 24 pixels tall.

Estimated code review effort: 1 (Trivial) | ~4 minutes

Change: Bug fix

Possibly related issues

  • Issue 46755 reports that folder rows show only a settle action on hover. This PR changes the folder-row hover action area but does not add a Snooze button, so the missing snooze action remains unaddressed.

Suggested reviewers: juliusmarminge, maria-rcks

Merge Risk: Minimal · up to 54049

This fixes Snooze and Settle clicks on hovered folder rows in the sidebar. The change is narrow and covered by a browser test, so merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title uses the conventional commit form and names the main change: folder row actions in the boring sidebar keep their height and their clicks. The raw summary and objectives both describe the sam…
Description check Passed The description follows the template sections: Problem, Change, Scope, and Verification. The Problem section gives the reproduction steps and the environment. The Change section explains each fix. The…
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.
Full details: Title check

Explanation

The title uses the conventional commit form and names the main change: folder row actions in the boring sidebar keep their height and their clicks. The raw summary and objectives both describe the same fix (pointer-events-none on the hidden label, self-stretch on the action group, and the label change limited to settle rows). The title is specific and matches the changeset.

Full details: Description check

Explanation

The description follows the template sections: Problem, Change, Scope, and Verification. The Problem section gives the reproduction steps and the environment. The Change section explains each fix. The Scope section says this is a bug fix that follows up on #46765 and links the fixed issues (#46755). The Verification section lists focused browser tests, lint and typecheck results, before/after GIFs, and a note on what was not covered. The template asks for a model and harness line when an agent was used, and the description includes one (Claude Opus 5.5 via Claude Code). The description is complete, so this check passes.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 78040a0 and 540496f.

Files selected for processing: 1

  • apps/web/src/components/Sidebar.folderRow.browser.test.tsx

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

@duke8585

duke8585 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Dec 1, 2026
The hidden status label must not take pointer events once hovered, and
Snooze and Settle keep the slot's 24px height. Both fail on main.

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

Copy link
Copy Markdown
Member

Evidence

Fresh synthetic demo-project with Alpha, Beta, Gamma and Delta completed Replay threads; dark theme and 1280×800 CSS viewport. Enable Settings → Labs → Boring sidebar (group by project), open Alpha by URL. Hover Beta, wait 800ms, measure buttons and centre hit targets; hold at its button top+1px for 2s, then mouse-click Settle. Reopen Alpha and wait for the sidebar, hover Gamma for 800ms, mouse-click Snooze and retain the menu/result for more than 1.5s. Also hold on Delta’s clock SVG top+1px for 2s. On an identically seeded fresh run, keyboard-settle Delta and snooze Gamma for one hour, expand both shelves, then capture idle, Gamma hover and Delta hover with title widths and time-label positions.

All captures: real Chromium web client, dark, 1280×800 CSS px, fresh synthetic data on the stated commit. Stills are 2× pixels. Blue panels report live DOM measurements; dashed title outlines are capture annotations.

Observed: base buttons are 12px high and their centres hit the invisible Done label; head buttons are 24px high and receive the hits. Base Settle opens Beta (Settled 0); head removes Beta from Active (Settled 1) and stays on Alpha. After stable hover, base Snooze opens Gamma with no menu; head opens the menu and stays on Alpha. Snoozed Gamma grows from 140.5px to 151px on base hover and remains 140.5px on head. Settled Delta remains 151px on both; its hovered time label changes from absolute on base to static on head.

Capture Before
89ba000739
After
540496ffc4
Hover dimensions and hit targets Before: Hover dimensions and hit targets After: Hover dimensions and hit targets
Mouse Settle result Before: Mouse Settle result After: Mouse Settle result
Mouse Snooze result Before: Mouse Snooze result After: Mouse Snooze result
Button top edge hold Before: Button top edge hold After: Button top edge hold
Clock SVG top edge hold Before: Clock SVG top edge hold After: Clock SVG top edge hold
Reverse-state idle Before: Reverse-state idle After: Reverse-state idle
Snoozed title hover Before: Snoozed title hover After: Snoozed title hover
Settled title hover Before: Settled title hover After: Settled title hover
Hover, edge hold and Settle recording Before recording After recording
Snooze recording through menu appearance Before recording After recording
Snoozed and Settled hover recording Before recording After recording
Clock SVG edge hold recording Before recording After recording

manual-folder-seed.ts · manual-browser-driver.json · Attempted scenario (stops on slim-row selector)

The hover images have different SHA-256 hashes and show the measured 12px/24px difference. Each final manual still had a zero pixel difference against a second screenshot 500ms later. All captures and video frame sequences were inspected before upload. The base Beta recording is trimmed to its first 12 seconds; both Gamma recordings continue through the result, including the visible head menu.

Unverified: repeated hover flicker did not occur on either commit during the two-second button-edge and clock-SVG-edge holds, so these captures exercise the positions but do not prove that intermittent flicker was fixed.

Not shown:

  • Repeated hover flicker was not reproduced on either commit: two-second holds one pixel below Beta’s button top and Delta’s clock SVG top showed no repeated geometry changes. The interactions are recorded, but elimination of the reported intermittent flicker is not proven.

@juliusmarminge juliusmarminge added takeover:ready Takeover done; auto-lands when gates pass and removed takeover:in-progress A takeover lead is working on this PR labels Dec 1, 2026
@juliusmarminge
juliusmarminge merged commit e9da1b0 into pingdotgg:main Dec 1, 2026
19 checks passed
@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Dec 1, 2026
@duke8585
duke8585 deleted the fix/folder-row-actions-hit-area branch December 1, 2026 15:51
chomamateusz-agent added a commit to chomamateusz/t3code that referenced this pull request Dec 2, 2026
All 27 patches carried onto 902d26d (carry tip 52c96331459a, tree 07b9c6951edf); no patch retired, authors, dates and subjects unchanged.

- Upstream b4b58d2 (pingdotgg#46460, General Translation v12): every patch's own strings are written as v12 tagged templates with the same English, plural() replaces ICU plural branches, and MFunctionType becomes M (0003, 0004, 0005, 0007, 0008, 0011, 0014, 0017, 0018, 0019, 0020, 0023, 0024, 0026).
- 0009 keeps its stacked status cell beside upstream's folder-row Snooze (pingdotgg#46765, pingdotgg#46818) and takes upstream's pointer-events-none on the hidden time label.
- 0014 ports upstream's new Sidebar.folderRow.browser.test.tsx to the grouped cards.
- 0025 keeps the question-thread snooze guard beside upstream ff26e6a (pingdotgg#46857), which moved the snooze check out of isAutoSettlementCandidate.
- i18n catalogs stay as upstream has them; markers unchanged (all source forms present).
imetn added a commit to imetn/t4code that referenced this pull request Dec 2, 2026
Surgically ports 62 upstream Web UI fixes from pingdotgg/t3code
(772e3d4..1e6e7d7) into apps/web and scripts/scenarios while
preserving all 31 locked T4 customizations, T4 branding, and
t4-overrides.css.

Also restores React Compiler compilation for Sidebar by moving the
default new Set(...) parameter inside settleLaunchGroup into the
function body so switching threads produces 0 unaffected row re-renders.

Ported (62 commits):
- 1a08049 (pingdotgg#46481): right-panel launcher keys blocked while context menu open
- 6bdd718 (pingdotgg#46489): Enter restores highlighted stashed prompt (scenario e2e; web code already absorbed)
- 347f551 (pingdotgg#46490): Escape closes open context menu before layer beneath it
- afa3003 (pingdotgg#46487): workflows page uses width of wide window
- a2ba869 (pingdotgg#46485): keep joined emoji whole in screen-reader announcements
- a8ee725 (pingdotgg#46493): holding stash shortcut keeps prompt saved (scenario e2e; web code already absorbed)
- 5048c80 (pingdotgg#46499): Mod+S moves edited queued reply to prompt stash
- 179e6c3 (pingdotgg#46506): holding stash delete shortcut removes one prompt (scenario e2e; web code already absorbed)
- c101437 (pingdotgg#44079): fold PR diff whose header was clicked
- 9b27e5a (pingdotgg#46562): second Mod+T keeps right-panel Add menu shortcuts working
- 62cf1fe (pingdotgg#46592): wait for dialog focus before opening context menu over it
- fda1c30 (pingdotgg#46579): resting on issue row prefetches detail
- 28f0c93 (pingdotgg#46593): slash-command description tooltip closes when modal opens
- 789784b (pingdotgg#46603): keep selected tab in Workflows links
- 2bc37d9 (pingdotgg#46597): / and Mod+F in Settings ignore open context menu
- b21923b (pingdotgg#46640): effort shortcut closes nested Permissions menu in model picker
- a5a39fa (pingdotgg#46641): inline thread details card grows with interface font size
- 36983d6 (pingdotgg#46644): workflow runs open in resizable right panel
- 2ad902f (pingdotgg#46691): Mod+F on PRs page ignores open menu
- 97d727c (pingdotgg#46699): Link pull request dialog closes when leaving thread
- 7a9d213 (pingdotgg#46729): refuse saving edit to deleted project script action
- bdda9ce (pingdotgg#46745): settling open delegated task opens next thread
- 3763606 (pingdotgg#46760): command menu description tooltip closes on composer focus loss
- 00eae4b (pingdotgg#46764): reopen workflow run on first click
- 19094fd (pingdotgg#46765): boring sidebar folder rows offer snooze again
- dec756c (pingdotgg#46766): reopen last workflow run after hiding panel
- 33ce571 (pingdotgg#46777): keep workflow runs open behind tab menus
- a989ee8 (pingdotgg#46779): restore focus after closing workflow run
- 5c42b2e (pingdotgg#46786): reopen closed workflow run tabs
- caec30f (pingdotgg#46792): cancel tab drags when switching threads
- 27cf2cf (pingdotgg#46794): disable empty panel shortcuts as it closes
- d65936e (pingdotgg#46791): reveal all side panel tabs when they fit
- a9daa0b (pingdotgg#46781): right-panel shortcuts ignore presses while menu/dialog open
- 35b6c5f (pingdotgg#46801): dismissing PR checkout toast cancels handoff
- e9da1b0 (pingdotgg#46818): boring sidebar folder row actions keep height and clicks
- 9feac49 (pingdotgg#46855): long PR search preserves grapheme clusters
- acef160 (pingdotgg#46849): find shared voice dictionary by Japanese label
- 19da14d (pingdotgg#46796): scrolled right panel tabs no longer block chat titlebar drag
- 506bc36 (pingdotgg#46853): close guest share and handoff dialogs when leaving thread
- b4fd7ba (pingdotgg#46879): let Escape and app shortcuts pass through terminal font preview
- f5689ae (pingdotgg#46835): long history load errors wrap without timeline horizontal overflow
- 6b64b0c (pingdotgg#46890): focus command dialog popup when search input disabled
- 70c9da7 (pingdotgg#46900): focus PR Author/Labels filter search inputs on keyboard open
- 891bf1a (pingdotgg#46924): late slash results no longer open tooltip after focus leaves
- 80f0f8a (pingdotgg#46930): copying failed message keeps its images
- e9ca942 (pingdotgg#46659): show workflow question kinds only in filter
- aa8c7c7 (pingdotgg#46941): queued message moves to stash only once removed
- 3ea13b6 (pingdotgg#46940): editing answer while image prepares cancels held submit
- a143526 (pingdotgg#46970): pasting copied file over reattach marker no longer reports failure
- b33c330 (pingdotgg#47011): stub addComposerFilesToDraft with new return shape in test
- a0fb9d1 (pingdotgg#46974): Issues Labels/Assignee filters focus search on keyboard open
- cb525f4 (pingdotgg#47029): clicking anywhere on terminal or panel tab activates it
- 498a3b6 (pingdotgg#47022): syncing messages line no longer shifts whole chat
- e903c85 (pingdotgg#47046): pasted messages with thread link keep picture
- 6a13142 (pingdotgg#47013): limit style invalidation during right-panel resize
- cd8961e (pingdotgg#47078): pasting copied file no longer takes preparing screenshot slot
- 8d0fb4b (pingdotgg#47100): stop showing previous Usage period as loading after failure
- 515b8c9 (pingdotgg#47114): Tab from Permissions menu keeps focus inside model picker
- a681dd5 (pingdotgg#47125): middle-clicking file link no longer opens broken tab
- bbde8dc (pingdotgg#44842): use plus icon for project new-thread buttons
- 59af88f (pingdotgg#47105): switching threads no longer re-renders unaffected sidebar rows
- 1e6e7d7 (pingdotgg#47080): Reopen Closed Tab skips workflow runs removed from history

Already absorbed in HEAD (3 commits):
- 20a0e5f (pingdotgg#46927), a684090 (pingdotgg#47026), c557dab (pingdotgg#47076)

Skipped cleanly (3 commits):
- 70224ca (pingdotgg#46712): depends on unported ui/open-popups.tsx (pingdotgg#45341)
- cf475c4 (pingdotgg#47034): depends on unported ui/open-popups.tsx (pingdotgg#45341)
- be3cc6c (pingdotgg#47145): depends on unported fitsWithAllowance/workGroupOverflowAllowance in TimelineWorkGroupRows.tsx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants