🎨 Palette: Dynamic Context for Repeated List Actions#72
Conversation
- 💡 What: Added dynamic context to accessibility labels and tooltips for list actions like Edit, Delete, and Remove. - 🎯 Why: When using generic actions in repeated list rows, screen reader users hear only the action without context (e.g., "Edit, button. Delete, button."). Adding the item name (e.g., "Edit MacroName") makes navigation unambiguous. - ♿ Accessibility: Improved screen reader experience in MacroListView, ScriptListView, MacroEditorSheet, and ActionMappingEditor. Co-authored-by: NSEvent <44446865+NSEvent@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
📝 WalkthroughWalkthroughThis PR updates SwiftUI ChangesDynamic accessibility labels
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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.
🧹 Nitpick comments (1)
XboxControllerMapper/XboxControllerMapper/Views/Macros/MacroEditorSheet.swift (1)
642-653: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueConsider deduplicating the webhook header row UI.
This webhook header row block (including the newly updated help/accessibility strings) is now duplicated nearly verbatim in
ActionMappingEditor.swift(Lines 372-388). Extracting a sharedWebhookHeaderRowview would keep both copies in sync going forward. Not introduced by this PR, so purely optional.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@XboxControllerMapper/XboxControllerMapper/Views/Macros/MacroEditorSheet.swift` around lines 642 - 653, The webhook header row UI in MacroEditorSheet is duplicated with the same pattern in ActionMappingEditor, so extract the shared row into a reusable WebhookHeaderRow view and use it from both places; move the HStack contents, the remove button, and the help/accessibility labels into that shared component so both editors stay in sync.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In
`@XboxControllerMapper/XboxControllerMapper/Views/Macros/MacroEditorSheet.swift`:
- Around line 642-653: The webhook header row UI in MacroEditorSheet is
duplicated with the same pattern in ActionMappingEditor, so extract the shared
row into a reusable WebhookHeaderRow view and use it from both places; move the
HStack contents, the remove button, and the help/accessibility labels into that
shared component so both editors stay in sync.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 13858024-af32-4ab2-9c3c-8ff979eee85e
📒 Files selected for processing (5)
.Jules/palette.mdXboxControllerMapper/XboxControllerMapper/Views/Macros/MacroEditorSheet.swiftXboxControllerMapper/XboxControllerMapper/Views/Macros/MacroListView.swiftXboxControllerMapper/XboxControllerMapper/Views/MainWindow/ActionMappingEditor.swiftXboxControllerMapper/XboxControllerMapper/Views/Scripts/ScriptListView.swift
🎨 Palette: [Dynamic Context for Repeated List Actions]
PR created automatically by Jules for task 10948893955258345891 started by @NSEvent
Summary by CodeRabbit
New Features
Bug Fixes