Skip to content

fix(web): show hover card for non-openable workflow members - #45252

Closed
only21mil wants to merge 1 commit into
pingdotgg:mainfrom
only21mil:fix/web-workflow-member-tooltip-disabled
Closed

only21mil wants to merge 1 commit into
pingdotgg:mainfrom
only21mil:fix/web-workflow-member-tooltip-disabled

Conversation

@only21mil

Copy link
Copy Markdown
Contributor

Problem

When you hover a workflow member without a child thread in Lineage or try to Tab to it, no hover card appears (Tab skips it) and screen readers announce "Open <title> chat" instead of showing its hover card and title. WorkflowMemberRow passed disabled={!canOpen} to ThreadDetailsControl (disabled:pointer-events-none), blocking hover and focus on TooltipTrigger.

Change

apps/web/src/components/chat/ThreadLineageWorkflowRow.tsx uses aria-disabled={!canOpen || undefined} on WorkflowMemberRow instead of disabled={!canOpen}, matching DelegatedFromRow/Merge back styling. Non-openable rows announce member.title with no click handler, so click/Enter/Space are no-ops. Added Chromium test in ThreadRelationshipsControl.browser.test.tsx.

Scope

Bug fix for broken hover card and label on non-openable workflow members; two-line fix for an obvious UI bug (no issue needed).

Verification

Setup. Ubuntu 26.04.1 LTS (Linux 7.0), Chromium, light, 800×420, isolated. Stand-in (not a full server run): Vitest Playwright harness rendering real ThreadRelationshipsPanel + ThreadLineageWorkflowRow + production CSS; differs only by supplying a projection omitting optional childThreadId (no live route: ClaudeAdapterV2 always derives it).

Steps. Render Lineage (Review workflow: Security auditor childThreadId: null, Test runner) → Expand Review workflow → Hover Security auditor.

Found. Compared WorkflowMemberRow to sibling aria-disabled controls (DelegatedFromRow, Merge back), then reproduced on 7d0613fba1 in Chromium: hovering Security auditor showed no hover card and Tab skipped it.

Before (7d0613fba1) After (2740ad021e)
Hovering Security auditor shows no hover card or row highlight
Hovering Security auditor shows no hover card or row highlight
Hovering Security auditor opens its hover card with model, status, and result
Hovering Security auditor opens its hover card with model, status, and result

Links. Base 7d0613fba1 · Candidate 2740ad021e · Test ThreadRelationshipsControl.browser.test.tsx

Not shown.

  • Live Claude Agent SDK server run (no live route omits childThreadId; stand-in used).
  • Mobile/desktop shells (web-only ThreadLineageWorkflowRow.tsx).
Automated checks and before/after test proof
  • Base (7d0613fba1): new browser test in ThreadRelationshipsControl.browser.test.tsx failed (getByRole("button", { name: "Security auditor" }) missing because button had aria-label="Open Security auditor chat" and native disabled).
  • Candidate (2740ad021e):
    • vp test run apps/web/src/components/chat/ThreadRelationshipsControl.browser.test.tsx: 17/17 passed (Chromium).
    • vp test run apps/web/src/components/chat/: 132 test files, 982/982 passed.
    • vp run --filter @t3tools/web typecheck: 0 errors.
    • vp run check:changed 7d0613fba13eb9d954c9ae0a073adaa543a29185: format, lint, knip (1/2, 2/2), typecheck (2 packages), test (1 file, 17 tests), and react compiler (1 file) passed.

Generated with Gemini 4 Neon in T3 Code Nightly

Use aria-disabled instead of native disabled on WorkflowMemberRow so non-openable workflow members can still open SubagentTooltipContent on hover and keyboard focus without triggering navigation, and announce member.title instead of Open {title} chat.
@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 Nov 29, 2026
@macroscopeapp

macroscopeapp Bot commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 2740ad0

Macroscope's review found this PR approvable — Non-openable workflow members can show their existing details on hover or keyboard focus while remaining non-navigable. The change is limited to interaction and accessible labeling, with no material operational or data impact.

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

@coderabbitai

coderabbitai Bot commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Workflow members without a chat thread now expose an accessible unavailable state without using the native disabled attribute. Browser tests cover tooltip access, activation behavior, and opening a linked thread.

Changes: Workflow member access

Layer / File(s) Summary
Accessible openability and interaction checks
apps/web/src/components/chat/ThreadLineageWorkflowRow.tsx, apps/web/src/components/chat/ThreadRelationshipsControl.browser.test.tsx
Members without a child thread use aria-disabled and a title-only accessible label. Tests verify tooltip display on hover and focus, confirm activation does not open a thread, and check that a member with a chat thread opens it in the right panel.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related PRs

  • pingdotgg/t3code#26762: Addresses the same workflow-member openability condition for members without a child thread.

Suggested reviewers: juliusmarminge, macroscopeapp

Merge Risk: Minimal · up to 2740a

Workflow members without a chat thread now show their hover card and can take keyboard focus, while clicking or pressing keys still does nothing. The change is small, web-only, and covered by browser tests, so merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix(web): show hover card for non-openable workflow members" matches the main change. The diff swaps native disabled for aria-disabled on WorkflowMemberRow, which lets hover and focus reach…
Description check Passed The description covers the problem, the change, scope, and verification. It follows the template's section order and adds before/after screenshots, the base and candidate commits, and test results. Th…
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 "fix(web): show hover card for non-openable workflow members" matches the main change. The diff swaps native disabled for aria-disabled on WorkflowMemberRow, which lets hover and focus reach the tooltip trigger. The title is a conventional commit, short, and specific.

Full details: Description check

Explanation

The description covers the problem, the change, scope, and verification. It follows the template's section order and adds before/after screenshots, the base and candidate commits, and test results. The Problem, Change, and Scope sections are complete. The Verification section lists what was not checked, which the template asks for. The description also states that a stand-in harness was used rather than a live server run.

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 992fc07 and 2740ad0.

Files selected for processing: 2

  • apps/web/src/components/chat/ThreadLineageWorkflowRow.tsx
  • apps/web/src/components/chat/ThreadRelationshipsControl.browser.test.tsx

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

@only21mil only21mil closed this Nov 29, 2026
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.

1 participant