Repository navigation
Conversation
vesameskanen
self-requested a review
November 12, 2026 10:08
…ry-itinerarydetails
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
hjvuor
reviewed
Nov 12, 2026
Contributor
There was a problem hiding this comment.
I don't like the use of createElement here, I think it would be cleaner to use JSX to define components, also I think the function could only return data that would then be mapped into components using jsx, the function could also use a unit test
EDIT: we could have an ItineraryLegStrip.jsx and then itineraryLegStripUtil.js for example
…ry-itinerarydetails # Conflicts: # src/client/component/itinerary/FareInfo.jsx # src/client/component/itinerary/Itinerary.jsx # src/client/component/itinerary/ItineraryDetails.jsx # src/client/component/itinerary/ItineraryDisclaimers.jsx # src/client/component/itinerary/ItineraryLegs.jsx # src/client/component/itinerary/ItineraryStreetLeg.jsx # src/client/component/itinerary/ItineraryTimeSummary.jsx # src/client/component/itinerary/VehicleRentalDurationInfo.jsx # src/client/component/itinerary/buildItineraryLegStrip.js # src/client/component/itinerary/itineraryDetailsUtils.js # src/client/component/itinerary/itineraryStreetLegUtils.js # src/client/component/itinerary/itinerarySummaryUtils.js # src/client/component/itinerary/itineraryTransitUtils.js # src/client/component/itinerary/useItineraryNavigation.js # src/client/component/itinerary/useItinerarySummaryUIState.js # src/client/utils/planParamUtil.js # test/unit/client/component/itinerary/ItineraryDetails.test.jsx # test/unit/client/component/itinerary/itineraryStreetLegUtils.test.js # test/unit/client/component/itinerary/itinerarySummaryUtils.test.js # test/unit/client/component/itinerary/itineraryTransitUtils.test.js # test/unit/client/component/itinerary/useItinerarySummaryUIState.test.jsx # test/unit/client/utils/fareUtils.test.js
…ow label and CO2 in it Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add pure getLegStripModel, render it with LegStrip, and move the rental duration warning into its own component. Vehicle names are formatted at the call site. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The row feedback wrappers and their animation state move into AnimatedFeedback. The remaining overflow detection becomes its own hook. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Extract ShowDetailsButton, merge the two wrapper divs' styles into one button and remove the unused open-state CSS. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The row is a listitem, not a live region, so aria-atomic had no effect. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
aria-label on the role=button area replaces its content, so the span was never read. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
… label Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The summary was a separate unfocusable sr-only div, so the focus ring stayed on the previous element while it was read. Reference it with aria-describedby instead of reading it separately. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The row button is named by the row label, the description no longer repeats the row number and ends with a hint about what activating the row does (open, select or already selected on desktop). The details arrow says it opens the details of the row. Texts added for en, fi and sv. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Remove the unused useOriginAddress prop. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ransit Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…fy description check Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Drop unused noWalk and children props, the car-park-walk variant and modifier classes without styles. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Drops modifier classes (car, bike, bicycle, scooter) that have no styles. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Park, car, taxi and via legs build the values of the screen reader message and the visible distance and duration in one place. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…nd address for flex
The note focused the start of the bike leg instead of its end.
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.
Proposed Changes
Pull Request Check List
Review