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

UI: Refactor SavedTripsScreen with Trip object and enhance interactions #259

Merged
merged 1 commit into from
Oct 26, 2024

Conversation

ksharma-xyz
Copy link
Owner

@ksharma-xyz ksharma-xyz commented Oct 26, 2024

TL;DR

Refactored saved trips functionality and improved UI interactions.

What changed?

  • Updated SavedTripUiEvent to use Trip object instead of string identifiers
  • Added tripId property to Trip class for easier identification
  • Modified SavedTripCard to accept Trip object instead of separate origin and destination
  • Updated SavedTripsScreen to handle card clicks and deletions
  • Implemented event handling in SavedTripsViewModel for deleting and clicking saved trips
  • Updated TimeTableViewModel to use tripId when saving trips

Why make this change?

This refactoring improves the consistency and maintainability of the saved trips feature. By using the Trip object throughout the flow, we reduce the chance of errors and make the code more type-safe. The changes also enhance the user experience by providing more intuitive interactions with saved trips.

Copy link
Owner Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @ksharma-xyz and the rest of your teammates on Graphite Graphite

@ksharma-xyz ksharma-xyz changed the title Button click for save and delete trip UI: Refactor SavedTripsScreen with Trip object and enhance interactions Oct 26, 2024
@ksharma-xyz ksharma-xyz marked this pull request as ready for review October 26, 2024 11:37
@ksharma-xyz ksharma-xyz force-pushed the 10-26-button_click_for_save_and_delete_trip branch from 387b2e3 to 9ddf74d Compare October 26, 2024 11:39
@ksharma-xyz ksharma-xyz merged commit 34adc73 into main Oct 26, 2024
3 checks passed
Copy link
Owner Author

Merge activity

  • Oct 26, 7:47 AM EDT: A user merged this pull request with Graphite.

@ksharma-xyz ksharma-xyz deleted the 10-26-button_click_for_save_and_delete_trip branch October 26, 2024 11:47
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.

1 participant