Skip to content
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

Add: Itinerary page #251

Merged
merged 5 commits into from
Nov 20, 2023
Merged

Add: Itinerary page #251

merged 5 commits into from
Nov 20, 2023

Conversation

teesloane
Copy link
Contributor

@teesloane teesloane commented Oct 28, 2023

I thought there would be more to do in building the itinerary page, but I think a lot of it was already done.

This PR adds:

  • "Itinerary" to the sidebar for riders
  • remove ability to link to the campaign directly, since that's unauthorized for riders.
  • on rider logging in, redirect them to the /itinerary route.

If I understand correctly, this maybe closes #136?


Itinerary _ Bike Brigade Dispatch

Copy link
Member

@mveytsman mveytsman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small nit: let's switch to the :for syntax as we work on the templates

lib/bike_brigade_web/live/itinerary_live/index.html.heex Outdated Show resolved Hide resolved
@teesloane
Copy link
Contributor Author

One small nit: let's switch to the :for syntax as we work on the templates

Ready for re-review!

teesloane added a commit that referenced this pull request Nov 15, 2023
This was probably brought in from branching off of #251
teesloane added a commit that referenced this pull request Nov 17, 2023
This was probably brought in from branching off of #251
Copy link
Member

@mveytsman mveytsman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@teesloane teesloane merged commit 6e9e712 into main Nov 20, 2023
1 check passed
@teesloane teesloane deleted the ts/add-itineraries-page branch November 20, 2023 20:39
teesloane added a commit that referenced this pull request Jan 3, 2024
* Add: CampaignRider Edit form.

* [wip] Pre-selecting rider.

* Pass selected rider to RiderSelectionComponent

With these changes, we explicitly expect that selected_rider is an attr
on the <.rider_select> component, and then pass that on toe the
RiderSelectionComponent. No implementation changes necessary as
`selected_rider` can be nil

* Remove no longer needed handle_event "add_rider"

* Test: editing of campaign rider.

* Fix: flash on missing rider_id

At the bottom of the file there was a handle_event match for `add_rider` that
caught all params; however this was never being caught as the original
`add_rider` that matches first wasn't checking for a missing rider_id.

* Fix: compiler warning.

* Refactor: rename AddRiderFormComponent

* Fix: don't jump to profile on rider login

This was probably brought in from branching off of #251

* Make request changes.
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.

Rider itinerary page (basic)
2 participants