Skip to content

🎨 Palette: Flight Card Haptics & Accessibility - #179

Open
TargetMisser wants to merge 1 commit into
mainfrom
palette/flight-card-haptics-a11y-10110505373701961895
Open

🎨 Palette: Flight Card Haptics & Accessibility#179
TargetMisser wants to merge 1 commit into
mainfrom
palette/flight-card-haptics-a11y-10110505373701961895

Conversation

@TargetMisser

Copy link
Copy Markdown
Owner

💡 What: Enhanced the Flight screen with tactile haptic feedback and improved accessibility for screen reader users.

🎯 Why:

  • The swipe-to-pin interaction lacked physical feedback, making it hard to judge when the action was triggered.
  • Screen reader users had no way to trigger the "Pin" action as it was only available via a swipe gesture.
  • Navigation elements (Arrivals/Departures tabs) were missing proper semantic roles.

Accessibility:

  • Added accessibilityActions ("Pin flight" / "Unpin flight") to flight cards, allowing VoiceOver/TalkBack users to toggle the state via the actions menu.
  • Added accessibilityHint to describe the effect of pinning.
  • Added accessibilityRole="tab" and accessibilityState={{ selected: ... }} to segment controls for standard-compliant navigation.

UX Polish:

  • Integrated expo-haptics to provide a "tactile snap" when swiping past the threshold.
  • Added success feedback upon completing a pin action.
  • Added light haptic response to main toggle buttons and tabs for a more premium feel.

PR created automatically by Jules for task 10110505373701961895 started by @TargetMisser

- Added ImpactFeedback (Medium) when swipe threshold is crossed.
- Added NotificationFeedback (Success) on pin/unpin completion.
- Implemented accessibilityActions for SwipeableFlightCard to support screen readers.
- Added Light ImpactFeedback to header buttons and segment tabs.
- Added semantic accessibilityRole="tab" and selection states.

Co-authored-by: TargetMisser <52361977+TargetMisser@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 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 @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@vercel

vercel Bot commented May 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
flight-work-app Ready Ready Preview, Comment, Open in v0 May 8, 2026 0:27am

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

Copy link
Copy Markdown

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: af2ca6d02b

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +416 to +417
accessibilityActions={accessibilityActions}
onAccessibilityAction={onAccessibilityAction}

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 Attach the custom action to the focusable card

In the current card tree, the new pin/unpin action is registered on an Animated.View that is not marked accessible, while the screen-reader focus target is still the child TouchableOpacity link. In VoiceOver/TalkBack contexts this means the focused flight card will not expose the toggle_pin action, so the accessibility path added here cannot actually pin or unpin a flight; move the action/hint to the focusable touchable or make the wrapper the accessible element without losing the link behavior.

Useful? React with 👍 / 👎.

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