Skip to content

🎨 Palette: Enhance Flight Card UX with haptics and accessibility#128

Open
TargetMisser wants to merge 1 commit intomainfrom
palette/flight-card-ux-a11y-13533870387326595772
Open

🎨 Palette: Enhance Flight Card UX with haptics and accessibility#128
TargetMisser wants to merge 1 commit intomainfrom
palette/flight-card-ux-a11y-13533870387326595772

Conversation

@TargetMisser
Copy link
Copy Markdown
Owner

💡 What: The UX enhancement added

Enhanced the flight cards in FlightScreen.tsx by adding haptic feedback to the swipe-to-pin gesture and comprehensive accessibility support.

🎯 Why: The user problem it solves

  1. Tactile Feedback: Users swiping cards now receive physical confirmation when reaching the action threshold, making the gesture feel more responsive and intentional.
  2. Screen Reader Accessibility: Previously, the swipe-to-pin gesture was inaccessible to screen reader users. By adding accessibilityActions, VoiceOver and TalkBack users can now pin flights via their standard accessibility menus.
  3. Descriptive Context: Added rich accessibilityLabel content so screen reader users hear all relevant flight details (Flight #, Airline, Direction, Destination, Time, and Status) in a single coherent announcement.

♿ Accessibility improvements made

  • Added accessible={true} to flight cards.
  • Constructed descriptive labels combining multiple flight data points.
  • Implemented accessibilityActions ("togglePin") with localized labels.
  • Added onAccessibilityAction to handle pinning/unpinning without requiring the physical swipe gesture.

🛠️ Technical Details

  • Integrated expo-haptics for tactile feedback.
  • Used useRef for haptic state management to prevent duplicate triggers.
  • Improved TypeScript safety by using ViewProps for the card component.
  • Updated src/i18n/translations.ts with new accessibility-specific strings in English and Italian.

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

- Add haptic feedback to swipe-to-pin gesture (Impact on threshold, Success on completion)
- Implement comprehensive accessibility labels for flight cards
- Add accessibility actions to allow screen reader users to pin/unpin flights
- Add necessary translations for new accessibility strings
- Improve TypeScript types for SwipeableFlightCard using ViewProps

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
Copy link
Copy Markdown

vercel Bot commented Apr 25, 2026

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 Apr 25, 2026 0:14am

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