Skip to content

fix(macos): make entire heartbeat run row tappable#9256

Merged
vincent0426 merged 1 commit into
mainfrom
vincent/heartbeat-run-full-row-tap
Feb 26, 2026
Merged

fix(macos): make entire heartbeat run row tappable#9256
vincent0426 merged 1 commit into
mainfrom
vincent/heartbeat-run-full-row-tap

Conversation

@vincent0426
Copy link
Copy Markdown
Contributor

@vincent0426 vincent0426 commented Feb 26, 2026

Summary

  • Replaced Button with onTapGesture + .contentShape(Rectangle()) on the heartbeat run row
  • The entire row area now triggers expansion, not just the chevron icon

Test plan

  • Settings → Heartbeat → click anywhere on a run row → expands
  • Click on the text, badge, or empty space → all expand/collapse correctly

🤖 Generated with Claude Code


Open with Devin

Replace Button with onTapGesture + contentShape(Rectangle()) so the
full row area triggers expansion, not just the chevron icon.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9b54197e56

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +220 to 224
.onTapGesture {
withAnimation(VAnimation.fast) {
expandedRunId = expandedRunId == run.id ? nil : run.id
}
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve button semantics for run-row expansion

Replacing the Button with onTapGesture removes built-in control semantics, so this row is no longer keyboard-activatable or exposed as an actionable element to VoiceOver users. In the Settings list this turns expand/collapse into a pointer-only interaction for accessibility users, which is a functional regression from the previous implementation. Please keep a Button (and add .contentShape(Rectangle()) to its label) or explicitly restore equivalent accessibility role/action and keyboard activation behavior.

Useful? React with 👍 / 👎.

@vincent0426 vincent0426 merged commit b9ec9f4 into main Feb 26, 2026
1 check passed
@vincent0426 vincent0426 deleted the vincent/heartbeat-run-full-row-tap branch February 26, 2026 01:10
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.

1 participant