-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UI: Add expandable stops view in journey timeline (#252)
### TL;DR Improved the JourneyCard component with collapsible stops and platform information. ### What changed? - Modified JourneyCardContent to display platform information for the first transport leg. - Updated LegView to include a clickable area for showing/hiding non-prominent stops. - Added a new state variable `displayNonProminentStops` to control the visibility of intermediate stops. - Implemented a plurals string resource for displaying the number of stops. - Removed the dependency on `isExpanded` state for showing intermediate stops. ### Why make this change? This change enhances the user experience by providing more detailed journey information while maintaining a clean interface. The collapsible stops feature allows users to view additional details on demand, reducing clutter in the initial view. The addition of platform information helps users quickly identify where to board their first transport leg.
- Loading branch information
1 parent
694c58c
commit 4170b58
Showing
3 changed files
with
34 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters