Repository navigation
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughFile action rows now prioritize the basename and display the directory beside it. Filename-prioritized rows expose the complete path through a tooltip. Existing and absolute file actions enable this presentation. Component and end-to-end tests verify rendering, tooltip content, path ordering, root-level paths, and nested file search behavior. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: bfe5b0e2-c955-48df-8c13-af1d7150285c
📒 Files selected for processing (4)
src/renderer/src/components/tab-bar/TabBarCreateEntry.keyboard.test.tsxsrc/renderer/src/components/tab-bar/TabBarCreateEntryRow.test.tsxsrc/renderer/src/components/tab-bar/TabBarCreateEntryRow.tsxtests/e2e/tab-create-entry-file-paths.spec.ts
|
@swieder227 Follow-up on the tooltip feedback: the file row now uses the native HTML Commit: ba6ae00 Updated visual proof (filename-first row): The native tooltip itself is OS-rendered and is not included in Chromium screenshots; the Electron E2E asserts the exact |
|
Follow-up: the full path tooltip is now rendered with Orca’s existing lightweight tooltip primitive and positioned above the result row.\n\nFresh Electron proof:\n\n |
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
* fix: prioritize filenames in new-tab file results * fix: preserve root separator in filename-first paths * refactor: use native file path tooltips * fix: position file path tooltips * fix: use the native OS tooltip for new-tab file paths Co-authored-by: Orca <[email protected]> * fix: show new-tab file paths in a system-style tooltip Co-authored-by: Orca <[email protected]> * fix: anchor new-tab path tooltip to the cursor Co-authored-by: Orca <[email protected]> * fix: tighten cursor tooltip to file rows and design tokens Co-authored-by: Orca <[email protected]> --------- Co-authored-by: Orca <[email protected]>


Summary
Fixes STA-3424
@swieder227 this addresses the reported file-name visibility issue.
Visual proof
Before — searching
twowayaudioreturns four results that are visually identical, because every row truncates in the sharedmobile/packages/expo-two-way…prefix. You cannot tell which file is which.After — the filename leads, so all four rows are distinguishable at a glance.
Hover — the full path opens at the cursor, the way a system tooltip does.
Layout behavior
FilenameFirstPathsplits on the last separator and keeps the separator attached to the directory, so/foorendersfoo+/andC:\repo\src\x.tskeeps its backslashes — no separator is re-derived from the path shape.The filename is
shrink-0 max-w-full, so the directory yields all of its width before the filename loses a character. When the filename alone overflows the row, the directory is dropped entirely and the tooltip carries the full path. Verified live:scrollWidth === clientWidthat 270px, so the row never spills out of the dropdown.Why not a native
titletooltipThe first pass used
title, which would have been the smaller change. Native tooltips do not render anywhere in Orca — verified by hand in a dev build;titleon these rows produces nothing on hover. Root-causing that is out of scope here (nothing increateMainWindow.tsexplains it: notransparent, no macOS vibrancy since #8482, no Blink feature switches on the main window).So this uses the Radix
Tooltipprimitive, restyled to read as a system tooltip: not inverted, no arrow, 11px text, tight padding. Radius and shadow use the documentedrounded-mdand floating tier fromdocs/STYLEGUIDE.md:97,101rather than new values.Two deliberate deviations from
docs/STYLEGUIDE.mdworth a reviewer's eye:side="top" sideOffset={4}. This anchors to the cursor instead: Radix positions relative to the trigger, so the pointer is expressed asalignOffset/sideOffsetfrom the row's bottom-left corner, leaving it 18px below the cursor. The offsets are re-measured in a layout effect when the tooltip opens, because results stream in and move the row during the open delay.TooltipContentgains an opt-inshowArrowprop (defaults totrue, so every existing call site is unchanged). The arrow reads as an app tooltip rather than a system one.If the design system would rather absorb this as a named variant than as per-call-site classes, say so and I will move it.
Only the filename-first rows get a tooltip. Agent/URL/create-file rows already show their detail in full, and
STYLEGUIDE.md:162rules out labelling a control that has a visible label.Known limits
aria-activedescendant, never focused, so Radix's focus-open path never runs and keyboard users get no tooltip. The full path is still in the option's accessible name, though it now reads filename-first.CURSOR_TOOLTIP_GAP = 18is reasoned from the macOS cursor hotspot; Windows cursor scaling could sit over the label.Testing
pnpm exec vitest run --config config/vitest.config.tsacross all 98 tooltip-touching suites — 814 passed.pnpm exec playwright test tests/e2e/tab-create-entry-file-paths.spec.ts … --repeat-each=6— 6/6 passed. Asserts filename ordering, that the row does not overflow, and that the tooltip really opens carrying the whole path.Cursor placement is asserted in unit tests against
cursorTooltipOffsets, not in E2E. Asserting pixels through the running app measured it mid-reflow and was genuinely flaky (2/5, then 5/5 failures) — the arithmetic belongs at the unit layer, and--repeat-eachis what proved the difference.pnpm run typecheck:web,oxlint— clean.Verified interactively in a dev build over CDP: tooltip opens on hover with the full path, and wraps to two lines for a 117-character path.
The unit tests cover the text layout only; the tooltip is asserted in E2E where it actually opens, rather than by mocking the primitive under test.
Security
No new IPC payloads, filesystem permissions, subprocesses, network sinks, secrets, or dependencies. The tooltip renders a path the row already received.
Readiness
pointer-events-noneunder the app's existingdisableHoverableContentprovider.showArrowdefaults to the previous behavior. No mobile surface touched.