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 checkboxes to skip later pages of the case contact form #5926

Open
4 tasks
elasticspoon opened this issue Jul 17, 2024 · 8 comments
Open
4 tasks

add checkboxes to skip later pages of the case contact form #5926

elasticspoon opened this issue Jul 17, 2024 · 8 comments
Labels
Difficulty: Intermediate Spans multiple domains or requires more advanced coding knowledge

Comments

@elasticspoon
Copy link
Collaborator

What type(s) of user does this feature affect?

  • supervisors
  • admins
  • volunteers

Description

The main flow of our application is case contact creation (/case_contacts/:id/form), we want this process to be as quick and seamless for volunteers are possible.

Volunteers have stated to us that they have to perform a lot of extra clicks when submitting a case contact but they don't have notes or driving info to enter.

Lets add some buttons that will allow the volunteers to optionally skip past those pages in the form.

Image

Criteria for Completion

  • On the first page of the form add toggles to skip notes and expenses
  • On the notes page add a toggle to skip expenses
  • Make sure the expenses toggle does not show if the users can't set expenses
  • We have a jsonb field metadata on each case contact. Store whether a user chose to use those buttons or not in the json metadata so we can measure how useful these buttons are later.

How to access the QA site

Login Details:
Link to QA site

Login Emails:

password for all users: 12345678

Questions? Join Slack!

We highly recommend that you join us in slack #casa channel to ask questions quickly. And discord for office hours (currently Tuesday 5-7pm Pacific), stakeholder news, and upcoming new issues.

@elasticspoon elasticspoon added Help Wanted This is a special label that enables github to showcase issues that want help Difficulty: Intermediate Spans multiple domains or requires more advanced coding knowledge labels Jul 17, 2024
@jamesh38
Copy link
Contributor

jamesh38 commented Aug 8, 2024

I've taken a look at this one and have got some buttons added that are passing their status up to the controller on form submit.

Screenshot 2024-08-08 at 6 22 38 PM

I'd be happy to take this one to the finish line if you'd like to assign it to me. Definitely have a few questions if so. Can transfer these to a draft PR if you'd like.

  1. Would you prefer we override the next step at the controller level or would we rather dive into the wizard and make some modifications there? Still wrapping my head around that gem and how it works
  2. Would you like to add some javascript that changes the submit button component text on the client side to "Submit" whenever all relevant skips are checked?
  3. Are we using any tooling to auto format ERB files because the tool I'm using is completely reformatting the details.html.erb file and I would feel bad committing all that if its not preferred or we have another solution

@elasticspoon
Copy link
Collaborator Author

I'd be happy to take this one to the finish line if you'd like to assign it to me. Definitely have a few questions if so. Can transfer these to a draft PR if you'd like.

Sound good @jamesh38

1. Would you prefer we override the next step at the controller level or would we rather dive into the wizard and make some modifications there? Still wrapping my head around that gem and how it works

I believe you will have to do it at a controller level (I think most of the wizard related logic lives in the controllers and some in the CaseContact model). The wizard is an external gem so we can't really modify it.

2. Would you like to add some javascript that changes the submit button component text on the client side to "Submit" whenever all relevant skips are checked?

I would consider that a "nice to have" but its not required for the sake of the PR.

3. Are we using any tooling to auto format ERB files because the tool I'm using is completely reformatting the `details.html.erb` file and I would feel bad committing all that if its not preferred or we have another solution

We use erb_lint. You can lint the project running bin/lint. It would be preferred if you didn't commit significant formatting changes alongside behavior changes just because it makes it way harder to follow the changes in behavior.

@github-actions github-actions bot removed the Help Wanted This is a special label that enables github to showcase issues that want help label Aug 10, 2024
Copy link

This issue has been inactive for 244 hours (10.17 days) and will be unassigned after 116 more hours (4.83 days). If you have questions, please

If you are still working on this, comment here to tell the bot to give you more time

@jamesh38
Copy link
Contributor

Thanks @elasticspoon I'll be taking a look at this and finishing up this week.

Copy link

github-actions bot commented Sep 5, 2024

This issue has been inactive for 246 hours (10.25 days) and will be unassigned after 114 more hours (4.75 days). If you have questions, please

If you are still working on this, comment here to tell the bot to give you more time

Copy link

This issue has been inactive for 366 hours (15.25 days) and is past the limit of 360 hours (15.00 days) so is being unassigned.You’ve just been unassigned from this ticket due to inactivity – but feel free to pick it back up (or a new one!) in the future! Thank you again for your contribution to this project.

@thejonroberts
Copy link
Contributor

Resolved in #6048 - form is single page now.

@jamesh38
Copy link
Contributor

Life happened and I didn't finish this one apologies there folks. Are we good to close this then now if it's no longer relevant? @elasticspoon @thejonroberts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Difficulty: Intermediate Spans multiple domains or requires more advanced coding knowledge
Projects
Status: In progress
Development

No branches or pull requests

4 participants