Skip to content

Conversation

@KaylaBrady
Copy link
Collaborator

Summary

Ticket: 🤖 | Favorites | Fix: Non-listed routes displayed

What is this PR for?

Filters out unlisted routes from the list of all routes in the add favorites flow.

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 in alphabetical order
  • Expensive calculations are run in withContext(Dispatchers.Default) where possible (ideally in shared code)

Testing

What testing have you done?

  • Added unit tests
  • Ran locally, confirmed the 40/50 and Winthrop/Quincy are no longer listed
    imageimage

@KaylaBrady KaylaBrady requested a review from a team as a code owner July 18, 2025 13:52
@KaylaBrady KaylaBrady requested a review from EmmaSimon July 18, 2025 13:52
routes.values.filter { it.type == RouteType.COMMUTER_RAIL && it.isListedRoute }
is RoutePickerPath.Ferry ->
routes.values.filter { it.type == RouteType.FERRY && it.isListedRoute }
}
Copy link
Contributor

Choose a reason for hiding this comment

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

nitpick: I know it means an unnecessary loop through the list, but it might be a bit cleaner and less error prone to filter out the unlisted routes after the mode filter as a separate call, rather than adding it to each of the existing ones.

@KaylaBrady KaylaBrady added this pull request to the merge queue Jul 18, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 18, 2025
@KaylaBrady KaylaBrady added this pull request to the merge queue Jul 18, 2025
Merged via the queue into main with commit 78342cb Jul 18, 2025
11 checks passed
@KaylaBrady KaylaBrady deleted the kb-filter-listed-routes branch July 18, 2025 19:15
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.

3 participants