feat: add trip summary panel#745
Open
strandlie wants to merge 8 commits into
Open
Conversation
Introduce a shared TripSummaryPanel rendering the route map plus a summary card with price, total travel time and total walk distance. The details body now uses it in place of the map + duration/walk-distance overlay, so the details view also shows the trip price. Add a 'summary' variant to the Price component (rendering a SummaryRow) and the split label/value translations it needs.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
80cfcb2 to
04fdec6
Compare
rosvik
reviewed
Jun 26, 2026
| flex-direction: column; | ||
| gap: token('spacing.medium'); | ||
| padding: token('spacing.large'); | ||
| border: 1px solid token('color.background.neutral.1.background'); |
Member
There was a problem hiding this comment.
On the trip details page, this border is the same color as the background - is that by design? I'm noticing that it appears in the transition between light and dark mode, which looks a bit strange.
Contributor
Author
There was a problem hiding this comment.
If not by design, its on purpose. Generally the summary panel looks a little weird on the details page now, since it has the same color as the background and no border. But that will be fixed with the travel-card introduction that is coming soon.
The priceLabel translation line exceeded prettier's print width, failing the tsc/check-all CI job. Reflow it across multiple lines.
eea100c to
f0a07bf
Compare
Contributor
Author
|
@rosvik Ended up changing, removing and simplifying a lot here. Great if you could take another look now. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Next step of https://github.com/AtB-AS/kundevendt/issues/23752
Figma
Improvements to the trip-detail view, to make TPW ready for the new Trip Card
Screenshots
Changes
TripSummaryPanel: route map + a summary card with price, total travel time and total walk distance. The details body now uses it instead of the map + duration/walk-distance overlay, so the details page also shows the trip price.Pricegains asummaryvariant (renders aSummaryRow), plus the split label/value translations it needs.TripRowlabelAlignoption; the label column is tightened.