Skip to content

Conversation

@EmmaSimon
Copy link
Contributor

Summary

Ticket: 🤖 | Favorites | Fix: Edit order doesn't match view order

Don't generate new RouteCardData when on the edit favorites page, simply filter out deleted stops and routes from the existing data. This prevents reordering when a closer stop gets deleted, which would result in the route cards being sorted differently than displayed. Also made the update to set context in iOS as well.

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

Added a unit test for the VM, existing tests pass

@EmmaSimon EmmaSimon requested a review from a team as a code owner July 22, 2025 14:57
@EmmaSimon EmmaSimon requested a review from BrandonTR July 22, 2025 14:57
@EmmaSimon EmmaSimon added this pull request to the merge queue Jul 23, 2025
Merged via the queue into main with commit 59c76a4 Jul 23, 2025
7 checks passed
@EmmaSimon EmmaSimon deleted the es-fav-edit-order-consistency branch July 23, 2025 13:42
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