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

410 admin can toggle to disable staff #419

Merged

Conversation

MooseCowBear
Copy link
Collaborator

🔗 Issue

#410

✍️ Description

Adds a deactivate column with a toggle to staff index page with turbo stream response and removes the status column. Removes the verified column from the staff accounts table, replaces references to it with a check for nil in the deactivated_at column, and removes mentions of needing to be verified from email templates. Also updates factories and tests to reflect the change.

I didn't rename the verified_staff method in the application controller, but it might be more accurate to say active staff now. If you want, I can change that too.

📷 Screenshots/Demos

Screenshot 2024-01-07 at 4 02 50 PM Screenshot 2024-01-07 at 4 03 06 PM

@kasugaijin
Copy link
Collaborator

kasugaijin commented Jan 8, 2024

Yes please do change the method name to something more applicable ...something like active_staff like you mentioned.

@kasugaijin kasugaijin closed this Jan 8, 2024
@kasugaijin kasugaijin reopened this Jan 8, 2024
@kasugaijin
Copy link
Collaborator

Merge conflict FYI.

Copy link
Collaborator

@nsiwnf nsiwnf left a comment

Choose a reason for hiding this comment

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

LGTM - just need to resolve the merge conflicts

@MooseCowBear
Copy link
Collaborator Author

Whoops. Okay should be good now.

@kasugaijin kasugaijin merged commit ade44cf into rubyforgood:main Jan 12, 2024
3 checks passed
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.

As admin I can toggle on/off to disable staff members on staff index table
3 participants