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 dialogs when admins edit other users #1530

Merged
merged 7 commits into from
Dec 14, 2023
Merged

add dialogs when admins edit other users #1530

merged 7 commits into from
Dec 14, 2023

Conversation

varCepheid
Copy link
Collaborator

@varCepheid varCepheid commented Mar 11, 2023

closes #1094
When an admin or super-admin edits the name, username, or password of another user, the app should create a dialog to confirm the change. The dialog shouldn't be created if the user is editing their own profile.

@varCepheid varCepheid marked this pull request as draft March 11, 2023 19:59
@varCepheid varCepheid self-assigned this Mar 11, 2023
@varCepheid varCepheid added enhancement Adds a new feature or meets a request. wip labels Mar 11, 2023
@varCepheid
Copy link
Collaborator Author

The refetch function still isn't doing what it's supposed to, but I'll make that a separate PR. This solves the one change.

@varCepheid varCepheid marked this pull request as ready for review May 8, 2023 01:09
@varCepheid varCepheid requested a review from brendanburkhart May 8, 2023 01:09
src/routes/user.tsx Outdated Show resolved Hide resolved
src/routes/user.tsx Outdated Show resolved Hide resolved
@varCepheid varCepheid added needs work Changes have been suggested and need to be implemented. and removed wip labels Jun 11, 2023
@varCepheid varCepheid marked this pull request as draft June 11, 2023 00:20
@varCepheid varCepheid requested a review from calebeby June 25, 2023 21:35
@varCepheid varCepheid removed the needs work Changes have been suggested and need to be implemented. label Jun 25, 2023
@varCepheid varCepheid marked this pull request as ready for review June 25, 2023 21:37
@calebeby calebeby added the needs work Changes have been suggested and need to be implemented. label Aug 9, 2023
@varCepheid varCepheid removed the needs work Changes have been suggested and need to be implemented. label Nov 9, 2023
@varCepheid
Copy link
Collaborator Author

@calebeby I made the change you requested. It seems like you didn't mark your comments as a review, so I can't request a new review from you.

src/routes/user.tsx Outdated Show resolved Hide resolved
@calebeby
Copy link
Member

The refetch function still isn't doing what it's supposed to, but I'll make that a separate PR. This solves the one change.

@varCepheid Do you want to remove the refetch-related changes from this PR since it looks like it still isn't working?

Copy link
Member

@calebeby calebeby left a comment

Choose a reason for hiding this comment

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

@varCepheid This is excellent! Super impressed! I left two tiny bits of feedback, but this is just about ready to go!

@varCepheid varCepheid added the needs work Changes have been suggested and need to be implemented. label Nov 12, 2023
@varCepheid varCepheid removed the needs work Changes have been suggested and need to be implemented. label Nov 24, 2023
Copy link
Member

@calebeby calebeby left a comment

Choose a reason for hiding this comment

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

:shipit: Thank you!

@varCepheid varCepheid added this pull request to the merge queue Dec 14, 2023
Merged via the queue into dev with commit d398e18 Dec 14, 2023
11 checks passed
@varCepheid varCepheid deleted the user-editing branch December 14, 2023 00:14
github-merge-queue bot pushed a commit that referenced this pull request Mar 8, 2024
* created a dialog on editing EditableTexts by admins in user

* refresh the user page after every change

* switched to standard system of getting DB info for users

* Revert "switched to standard system of getting DB info for users"

This reverts commit 1c5a09e.

* changed all self props to isCurrentUser

* separated alertOnSaveAdmin function, small changes

* changed selfEdit to isCurrentUser and removed all refetch changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Adds a new feature or meets a request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add alerts when editing users in the admin pages
2 participants