-
Notifications
You must be signed in to change notification settings - Fork 123
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
1106-staff-deactivation-refactor #1142
Conversation
…erer and adopters.
…ctivations test to work with rework
test/controllers/organizations/staff/activations_controller_test.rb
Outdated
Show resolved
Hide resolved
test/controllers/organizations/staff/activations_controller_test.rb
Outdated
Show resolved
Hide resolved
@wandergithub Awesome job! The only thing I noticed on my end is that the flash is no longer working. Are you seeing the same thing? |
Now that you point that out 🤔 |
Something is happening with the template, I think related to turbo stream and how the flash message is being handled but I don't fully understand how it works jet... |
The update action in ActivationsController is implicitly looking for |
Yeah what @jmilljr24 said. Check out |
@kasugaijin I don't believe we need the turbo replace of the toggle any longer. I think that was used when the page was rendering two layouts that were user selected(table vs cards). If the user clicked the toggle in the table, the card wouldn't reflect the change until a page fresh. |
@jmilljr24 Ah yes we got rid of those cards...good point. We can remove the toggle bit in the turbostream response, then @wandergithub ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks nice and clean @wandergithub ! I like the refactor.
Just a couple more policy tests we could add now we are also mutating adopters and fosters. Should be a pretty quick addition. Let me know if you have any questions!
@wandergithub just pining to see if you can finish those last few tests? If you're too busy, let me know and I can take care of it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wandergithub I finished this one off! Thanks for getting it to where it was.
🔗 Issue
#1106
✍️ Description
Refactor staff deactivation
📷 Screenshots/Demos