Skip to content

refactor: trip planner widget using new form input #2610

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

Open
wants to merge 7 commits into
base: cbj/search-page-searchbar
Choose a base branch
from

Conversation

thecristen
Copy link
Collaborator

Summary of changes

Asana Ticket: TP Cleanup | Update location search results display for Trip Planner home tab
Bonus Asana Ticket: TP Cleanup | Update widget location search results, URL redirection

Tip

The trip planner in the homepage tab and the form shown in the sidebar of many pages (listed in the second ticket) are based off the same template, so all of these got updated in one go.

  • The algolia-autocomplete Phoenix hook needed a change to make the form work outside of LiveView. Instead of only relying on the LiveView input_form_change event to update the underlying lat/lon/name/stop for each location, I've added some JS to update the form field values directly.
  • Dotcom.TripPlan.AntiCorruptionLayer needed a change to handle the particular URL parameters sent from the submission of the widget form (they're slightly different than the old ones).
  • The styling is completely rewritten so that it looks reasonable in any place.
image image

@thecristen thecristen marked this pull request as ready for review June 20, 2025 14:48
@thecristen thecristen requested a review from a team as a code owner June 20, 2025 14:48
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