-
Notifications
You must be signed in to change notification settings - Fork 13
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(ShuttleHeadsigns): Merge the replacement shuttle bus cards with … #1769
Conversation
…the commuter rail cards
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!! This review is incomplete, so these comments are just for the back-end piece - will circle back soon.
I think the overall approach is sound, though I had some comments.
Another (non-blocking) question I had - I notice you're doing a lot of manipulation of the grouped route patterns in the frontend, based on the newly obtained route line information - which is fine, but might it be simpler to modify those grouped route patterns before they hit the frontend, when they're pulled together and grouped in the controller?
jest.mock("react-router-dom", () => ({ | ||
__esModule: true, | ||
useLoaderData: () => { | ||
return TEST_LOADER_VALUE; | ||
} | ||
})); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: This was redundant because the data is already passed into the render function inside the helper function renderWithRouter
I ended up putting the fix on the front end because I viewed this issue as a display problem. I was trying to avoid curating the data returned by the route pattern endpoint to fit this one use case. I thought there may be other times where we want these route patterns separate. If this needs to be changed everywhere route patterns are consumed, then it would makes sense to change it on the backend. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fixes and feedback! It's working as expected. I updated a couple Elixir tests and it passes for me locally - will 🚢
…the commuter rail cards
Summary of changes
Working on display tests, wanted to get some eyes on this
Hide Shuttle Cards from displaying on the new Subway stop page
Merge Shuttle times and headsign into the Commuter Rail Cards on the new Commuter Rail stop page.
Asana Ticket: Shuttle Service is Shown in Separate Departure Cards
General checks
New UI, or substantial UI changes
New endpoints, or non-trivial changes to current endpoints