Skip to content

Conversation

@KaylaBrady
Copy link
Collaborator

Summary

Ticket:  🤖 | Favorites | Toast on first time only

What is this PR for?

  • Shows a toast the first time a user lands on favorites after seeing the promo if they already had pinned routes.

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 no toast if no pinned routes saved, only if pinned routes saved & coming from promo.
Screen_Recording_20250730_150558_One.UI.Home.2.mp4

modifier = Modifier.fillMaxWidth().height(IntrinsicSize.Min),
horizontalAlignment = Alignment.CenterHorizontally,
verticalArrangement = Arrangement.spacedBy(32.dp),
verticalArrangement = Arrangement.spacedBy(10.dp),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Decreasing the spacing here b/c otherwise the toast blocks the "Add stops" button. Confirmed this change with design.

@KaylaBrady KaylaBrady marked this pull request as ready for review July 30, 2025 19:12
@KaylaBrady KaylaBrady requested a review from a team as a code owner July 30, 2025 19:12
@KaylaBrady KaylaBrady requested a review from boringcactus July 30, 2025 19:12
assertEquals(analyticsLogged, Pair("favorites_count", "1"))
}

@Test
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

unrelated change: This test wasn't being run, and needed a little fixing to pass (UUIDs weren't matching up, causing it to fail)

@KaylaBrady KaylaBrady force-pushed the kb-favorites-toast branch from b9d4408 to 1df9c12 Compare July 31, 2025 18:01
@KaylaBrady KaylaBrady enabled auto-merge July 31, 2025 19:34
@KaylaBrady KaylaBrady added this pull request to the merge queue Jul 31, 2025
Merged via the queue into main with commit 678ee35 Jul 31, 2025
11 checks passed
@KaylaBrady KaylaBrady deleted the kb-favorites-toast branch July 31, 2025 20:07
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