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

Demo draft #4

Merged
merged 2 commits into from
Apr 24, 2024
Merged

Demo draft #4

merged 2 commits into from
Apr 24, 2024

Conversation

allthesignals
Copy link
Contributor

  • Add some markup for the flow
  • Use Hotwire for a simple combobox search
  • Implement basic template for payment information

We can just demo this and fixup later!

<form data-controller="providers" action="/providers/confirm" method="get">
<label class="usa-label" for="employer">Search for an employer</label>
<div class="usa-combo-box margin-bottom-3" data-action="input->providers#search">
<select class="usa-select" name="employer" id="employer" data-providers-target="options" data-action="change->providers#select">
Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting. Did you figure all this out this morning? Nice. I guess this prevents us from needing to bring in React on the frontend, so that's kind of neat.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah! The Hotwire stuff is kinda nice. It sorta plays well with the USWDS stuff? Thanks to event bubbling. We may start to push up against some UX jank, though.

@tdooner
Copy link
Contributor

tdooner commented Apr 24, 2024

Looks good, but you will need to delete the provider spec since you deleted the model.

@tdooner tdooner merged commit 95550c7 into main Apr 24, 2024
6 checks passed
@tdooner tdooner deleted the mg-demo branch April 24, 2024 19:02
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.

2 participants