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): Stop details headers #683

Merged
merged 5 commits into from
Jan 27, 2025
Merged

Conversation

EmmaSimon
Copy link
Contributor

Summary

Ticket: 🤖 | stop + trip details | navigation buttons

Screenshot_20250127_090558 Screenshot_20250127_090720 Screenshot_20250127_090802

This implements the header UI for both filtered and unfiltered stop
details.

There are currently some awkward layout issues that will become
irrelevant with other necessary fixes and refactors:

  • When loading filtered stop details, the unfiltered header is always
    shown instead of the filtered header, this will be resolved when we do
    a more involved refactor to split them into separate views higher up.
  • Loading placeholders aren't displayed for either header.
  • The stop sheet header isn't set to fill2/surfaceContainer because that
    interacts poorly with page transitions, the entire sheet background
    needs to be set in order to get behind the drag handle, but it wasn't
    transitioning between the two colors well.

android

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

Testing

Manual testing, unit tests

This implements the header UI for both filtered and unfiltered stop
details.

There are currently some awkward layout issues that will become
irrelevant with other necessary fixes and refactors:
* When loading filtered stop details, the unfiltered header is always
  shown instead of the filtered header, this will be resolved when we do
  a more involved refactor to split them into separate views higher up.
* Loading placeholders aren't displayed for either header.
* The stop sheet header isn't set to fill2/surfaceContainer because that
  interacts poorly with page transitions, the entire sheet background
  needs to be set in order to get behind the drag handle, but it wasn't
  transitioning between the two colors well.
@EmmaSimon EmmaSimon requested a review from a team as a code owner January 27, 2025 14:11
@EmmaSimon EmmaSimon requested a review from BrandonTR January 27, 2025 14:11
@EmmaSimon EmmaSimon merged commit c9173d5 into main Jan 27, 2025
5 checks passed
@EmmaSimon EmmaSimon deleted the es-android-combined-stop-nav branch January 27, 2025 21:44
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