Skip to content

fix(web): keep hover-reveal action icons visible on touch devices - #5501

Merged
Jinwoo-H merged 3 commits into
stablyai:mainfrom
gsxdsm:gsxdsm/Fix-web-view-missing-icons
Jun 16, 2026
Merged

Jinwoo-H merged 3 commits into
stablyai:mainfrom
gsxdsm:gsxdsm/Fix-web-view-missing-icons

Conversation

@gsxdsm

@gsxdsm gsxdsm commented Jun 16, 2026 •

Copy link
Copy Markdown
Contributor

What

Sidebar project/group action buttons — project actions, create worktree, group menu, collapse chevron — and similar row affordances across the app render no icon in the web/mobile view on touch devices. The buttons are present (tooltips work, they're tappable) but the glyph is invisible.

Why

These are hover-reveal controls: they start at opacity-0 and fade in via group-hover:opacity-100. Touch devices have no hover, so group-hover never fires and the control stays fully transparent — while still occupying layout and remaining clickable. That's exactly the reported "missing icons on mobile" symptom. (A prior one-off inline patch at SourceControl.tsx already used [@media(hover:none)]:opacity-100 for the same reason, confirming the cause.)

This is not a bundling, CSP, or asset-serving issue — the rest of the UI renders fine, so the lucide inline SVGs are present; only their computed opacity differs.

Fix

  • Add a Tailwind v4 can-hover variant in assets/main.css, active only under @media (hover: hover).
  • Gate every hover-reveal's base opacity-0 behind it (can-hover:opacity-0). On touch (hover: none) the hide rule is excluded entirely, so icons stay visible; on pointer devices the reveal-on-hover behavior is unchanged.
  • Applied consistently to 38 sites across 25 component files (sidebar, right-sidebar, dashboard, tab-bar, status-bar, editor, settings, github-project).

Intentionally left untouched:

  • WorktreeCardStatusSlot unread swap — the always-visible status dot means the button never lacks an icon on touch (only the no-default-icon branch was gated).
  • LinearIssueTextEditor peer-focus counter — focus works on touch.
  • md:opacity-0 responsive reveals — already hidden only at md+, so already mobile-visible.

Tests

Added worktree-list-touch-action-visibility.test.ts: asserts the can-hover variant is declared and that no hover-reveal in WorktreeList uses a bare opacity-0 (drag placeholders with pointer-events-none are exempt). Verified it fails on the pre-fix code and passes after.

Verification

Manually confirmed in the local web/mobile view: the sidebar action icons now render on a touch / (hover: none) context, and desktop hover behavior is unchanged. oxlint clean; affected component test suites pass.


Open in Stage

Sidebar project/group action buttons (project actions, create worktree,
group menu, collapse chevron) and other row affordances hide with
`opacity-0` and fade in via `group-hover`. Touch devices have no hover,
so the controls stayed invisible while remaining clickable — the reported
"missing icons" bug in the mobile/web view.

Add a Tailwind `can-hover` variant (active only under `@media (hover: hover)`)
and gate every hover-reveal's base `opacity-0` behind it, so touch
(`hover: none`) keeps the icons visible while pointer devices preserve the
reveal-on-hover behavior. Swap and focus-driven reveals are left untouched.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@ghost

ghost commented Jun 16, 2026 •

Copy link
Copy Markdown

Ready to review this PR? Stage has broken it down into 4 individual chapters for you:

Title
1 Define the can-hover Tailwind variant
2 Refactor DashboardAgentRow trailing controls
3 Apply touch visibility fixes to components
4 Verify touch visibility with regression tests
Open in Stage

Chapters generated by Stage for commit ad5bb01 on Jun 16, 2026 10:36pm UTC.

@coderabbitai

coderabbitai Bot commented Jun 16, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It 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 reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: a2418241-5087-4c20-a3d3-4b4651f3b538

📥 Commits

Reviewing files that changed from the base of the PR and between ed4b6aceb070b1ae9f683cd9c0cbcce22ece862a and ad5bb01.

📒 Files selected for processing (5)
  • src/renderer/src/components/activity/ActivityPrototypePage.tsx
  • src/renderer/src/components/dashboard/DashboardAgentRow.tsx
  • src/renderer/src/components/dashboard/DashboardAgentRowTrailingControls.tsx
  • src/renderer/src/components/hover-reveal-touch-action-visibility.test.ts
  • src/renderer/src/components/status-bar/ResourceUsageStatusSegment.tsx

📝 Walkthrough

Walkthrough

A new @custom-variant can-hover Tailwind variant is added to main.css, gated behind @media (hover: hover). This variant is then applied across 27 components, replacing unconditional opacity-0 (and in some cases pointer-events-none) with can-hover:opacity-0 / can-hover:pointer-events-none, so hover-reveal controls remain visible on touch devices. Separately, DashboardAgentRow trailing controls (send button, timestamp/dismiss, expand chevron) are extracted into a new DashboardAgentRowTrailingControls component. A new Vitest test suite enforces the pattern by scanning a curated file list for unguarded opacity-0 occurrences.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 14.29% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title directly and clearly describes the main change: fixing hover-reveal action icons visibility on touch devices by adding the can-hover variant.
Description check ✅ Passed The description covers all required template sections with appropriate depth: clear summary of the problem, detailed explanation of the root cause, comprehensive fix implementation details, and testing/verification confirmation.
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.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/renderer/src/components/status-bar/ResourceUsageStatusSegment.tsx (1)

542-542: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Missed touch-visibility conversion for worktree action overlay.

Line 542 still uses bare opacity-0, so this control remains hidden on hover: none devices and keeps the original bug in this row. Switch it to can-hover:opacity-0 to match the rollout pattern.

Suggested patch
-              <div className="absolute inset-0 flex items-center justify-end gap-0.5 opacity-0 pointer-events-none transition-opacity group-hover/wtrow:opacity-100 group-hover/wtrow:pointer-events-auto group-focus-within/wtrow:opacity-100 group-focus-within/wtrow:pointer-events-auto">
+              <div className="absolute inset-0 flex items-center justify-end gap-0.5 can-hover:opacity-0 pointer-events-none transition-opacity group-hover/wtrow:opacity-100 group-hover/wtrow:pointer-events-auto group-focus-within/wtrow:opacity-100 group-focus-within/wtrow:pointer-events-auto">

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: e24ac679-9a4d-4e0a-ab47-af9df117a595

📥 Commits

Reviewing files that changed from the base of the PR and between c8f583c and 7be84fa.

📒 Files selected for processing (26)
  • src/renderer/src/assets/main.css
  • src/renderer/src/components/activity/ActivityPrototypePage.tsx
  • src/renderer/src/components/browser-pane/BrowserPane.tsx
  • src/renderer/src/components/dashboard/DashboardAgentRow.tsx
  • src/renderer/src/components/editor/CombinedDiffViewer.tsx
  • src/renderer/src/components/editor/DiffSectionHeader.tsx
  • src/renderer/src/components/github-project/ProjectPicker.tsx
  • src/renderer/src/components/github-project/ProjectRow.tsx
  • src/renderer/src/components/right-sidebar/AiVaultSessionRow.tsx
  • src/renderer/src/components/right-sidebar/ChecksPanel.tsx
  • src/renderer/src/components/right-sidebar/PortsPanel.tsx
  • src/renderer/src/components/right-sidebar/SourceControl.tsx
  • src/renderer/src/components/right-sidebar/checks-panel-content.tsx
  • src/renderer/src/components/settings/MobilePairingQrSection.tsx
  • src/renderer/src/components/settings/ShortcutBindingRow.tsx
  • src/renderer/src/components/settings/VoiceSpeechModelSection.tsx
  • src/renderer/src/components/sidebar/HostSectionHeaderMenu.tsx
  • src/renderer/src/components/sidebar/PendingWorktreeRow.tsx
  • src/renderer/src/components/sidebar/WorkspaceKanbanStatusLane.tsx
  • src/renderer/src/components/sidebar/WorktreeCardPorts.tsx
  • src/renderer/src/components/sidebar/WorktreeCardStatusSlot.tsx
  • src/renderer/src/components/sidebar/WorktreeList.tsx
  • src/renderer/src/components/sidebar/worktree-list-touch-action-visibility.test.ts
  • src/renderer/src/components/status-bar/ResourceUsageStatusSegment.tsx
  • src/renderer/src/components/status-bar/ports-status-popover-rows.tsx
  • src/renderer/src/components/tab-bar/TabBarQuickCommandsMenu.tsx

- AiVaultSessionRow: keep resume button tappable on touch (base
  pointer-events-auto, gated off only on hover-capable devices) so the
  now-visible icon is actually interactive inside the pointer-events-none wrapper
- SourceControl: add focus-visible reveal to copy/delete note buttons so
  keyboard users see them, matching the sibling clear-notes button

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: adce4470-14c4-4a60-abcf-761b9073ac35

📥 Commits

Reviewing files that changed from the base of the PR and between 29b27c2 and 76e621f66e220fa21e892d377d644d5c5bfc677c.

📒 Files selected for processing (3)
  • src/renderer/src/components/ports/WorkspacePortScanner.tsx
  • src/renderer/src/lib/workspace-port-scan-debounce.test.ts
  • src/renderer/src/lib/workspace-port-scan-debounce.ts

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 0ba4dc8c-7c8a-430c-a112-6bb2932c69bb

📥 Commits

Reviewing files that changed from the base of the PR and between 76e621f66e220fa21e892d377d644d5c5bfc677c and ed4b6aceb070b1ae9f683cd9c0cbcce22ece862a.

📒 Files selected for processing (1)
  • src/renderer/src/components/ports/WorkspacePortScanner.tsx

@Jinwoo-H Jinwoo-H left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix. I found and patched a couple of related touch/no-hover edge cases during review:

  • prevented dashboard timestamp/dismiss-icon overlap on touch
  • kept Activity jump actions and Resource Manager row actions visible on no-hover devices
  • broadened the regression guard across the touched hover-reveal surfaces

Verified with typecheck, lint, affected Vitest suites, and Electron desktop + touch-emulated UI validation.

@Jinwoo-H
Jinwoo-H merged commit f9e3c39 into stablyai:main Jun 16, 2026
1 check passed
@gsxdsm
gsxdsm deleted the gsxdsm/Fix-web-view-missing-icons branch October 31, 2026 17:59
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.

2 participants