Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(android.StopDetailsFilterPills): optimized screen reader text #619

Merged
merged 2 commits into from
Jan 6, 2025

Conversation

KaylaBrady
Copy link
Collaborator

@KaylaBrady KaylaBrady commented Jan 3, 2025

Summary

Ticket: 🤖 | Unfiltered Stop Details | Screen reader text

What is this PR for?

  • Adds screen reader optimizations for unfiltered stop details - mainly the filter buttons.

iOS

  • If you added any user-facing strings on iOS, are they included in Localizable.xcstrings?
    • Add temporary machine translations, marked "Needs Review"

android

  • All user-facing strings added to strings resource
  • Expensive calculations are run in withContext(Dispatchers.Default) where possible

Testing

What testing have you done?

  • Ran locally with talk back on
  • Added some unit tests

@KaylaBrady KaylaBrady requested a review from a team as a code owner January 3, 2025 22:03
@KaylaBrady KaylaBrady requested a review from JackVCurtis January 3, 2025 22:03
fun pillHint(appliedFilter: StopDetailsFilter?, pillFilter: PillFilter): String {
val filteredToPill = appliedFilter?.routeId == pillFilter.id
return if (filteredToPill) {
stringResource(R.string.stop_filter_pills_remove_hint)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Once we have combined stop + trip details, this state will not be possible. But in the meantime, we should represent it.

Copy link
Contributor

@JackVCurtis JackVCurtis left a comment

Choose a reason for hiding this comment

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

👍

@KaylaBrady KaylaBrady merged commit 317794c into main Jan 6, 2025
7 checks passed
@KaylaBrady KaylaBrady deleted the kb-unfiltered-talkback branch January 6, 2025 15:43
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.

2 participants