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

Bug: Case Contact Contact Type Selection #5605

Open
elasticspoon opened this issue Apr 12, 2024 · 3 comments
Open

Bug: Case Contact Contact Type Selection #5605

elasticspoon opened this issue Apr 12, 2024 · 3 comments
Labels
Difficulty: Advanced Spans multiple domains and requires more advanced coding knowledge Help Wanted This is a special label that enables github to showcase issues that want help ⏯️ Frontend Make things look fresh & work better on the frontend. Type: Bug
Projects

Comments

@elasticspoon
Copy link
Collaborator

elasticspoon commented Apr 12, 2024

Can create contact types on a case contact that should not be allowed on it.

Steps:
Volunteer manages cases A and B.
Case A => Restrict contact types to just Casa
Case B => Restrict contact types to just Judge.

As volunteer go to page for Case A, create new case contact.
Available cases will be A and B with only A selected.
Available contact types will be Casa and Judge.

Select Judge, complete form.

Case contact now has a contact type if should have been restricted from having.
If you go to edit page for that case contact the contact type will not appear but it is on the record.

CaseContact.find(case_id).contact_types will include Judge.

https://www.loom.com/share/434f152958a5440c8bce9830c4c6f3b9?sid=bdf91748-7e24-4c47-9b71-098b8c91a83d

Possible Solutions / Considerations

  • volunteers are not super tech savy, if you use a validation they might miss that it happened and just leave the page incomplete, ideally we want to make this as easy for them as possible
  • a solution that filters down the available topics based on selected cases using Javascript seems like the best choice
@elasticspoon elasticspoon added Help Wanted This is a special label that enables github to showcase issues that want help Type: Bug labels Apr 12, 2024
@mgrigoriev8109
Copy link
Contributor

Can I grab this?

@elasticspoon elasticspoon added this to Need Sorting in Event Ideas May 19, 2024
@elasticspoon elasticspoon moved this from Need Sorting to Needs Grooming in Event Ideas May 20, 2024
@schoork
Copy link
Collaborator

schoork commented May 20, 2024

This seems pretty complex cause you're not going to want to break the existing behavior if the form allows you to select both.

@compwron
Copy link
Collaborator

probably js
make sure to write tests!

@elasticspoon elasticspoon added ⏯️ Frontend Make things look fresh & work better on the frontend. Difficulty: Advanced Spans multiple domains and requires more advanced coding knowledge labels May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Difficulty: Advanced Spans multiple domains and requires more advanced coding knowledge Help Wanted This is a special label that enables github to showcase issues that want help ⏯️ Frontend Make things look fresh & work better on the frontend. Type: Bug
Projects
Status: Low Prio
Event Ideas
Needs Grooming
Development

No branches or pull requests

4 participants