Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: ability to activate suspended users#2344

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Kira-Pilot merged 4 commits intomainfromability-to-activate/kira-pilot
Jun 15, 2022

Conversation

Kira-Pilot
Copy link
Member

resolves#2254
Kapture 2022-06-15 at 11 25 46

@Kira-PilotKira-Pilot requested a review froma team as acode ownerJune 15, 2022 15:28
@@ -13,15 +13,20 @@ export const Language = {
suspendDialogTitle: "Suspend user",
suspendDialogAction: "Suspend",
suspendDialogMessagePrefix: "Do you want to suspend the user",
activateDialogTitle: "Activate user",
activateDialogAction: "Activate",
activateDialogMessagePrefix: "Do you want to active the user",
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this beactivate in place ofactive?

Kira-Pilot reacted with thumbs up emoji
suspendUserError: "Error on suspending the user.",
suspendUserError: "Error suspending user.",
activateUserSuccess: "Successfully activated the user",
activateUserError: "Error activating user",
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Add periods (.).

Kira-Pilot reacted with thumbs up emoji
@@ -99,6 +107,25 @@ export const UsersPage: React.FC = () => {
}
/>

<ConfirmDialog
Copy link
Contributor

Choose a reason for hiding this comment

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

We have asuccess type forConfirmDialog which uses the green button. Maybe we can use that for this use case.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

good idea!

@Kira-PilotKira-Pilot merged commita6a06d4 intomainJun 15, 2022
@Kira-PilotKira-Pilot deleted the ability-to-activate/kira-pilot branchJune 15, 2022 17:29
}

export const UsersPage: React.FC = () => {
const xServices = useContext(XServiceContext)
const [usersState, usersSend] = useActor(xServices.usersXService)
const [rolesState, rolesSend] = useActor(xServices.siteRolesXService)
const { users, getUsersError, userIdToSuspend, userIdToResetPassword, newUserPassword } = usersState.context
const { users, getUsersError, userIdToSuspend, userIdToActivate, userIdToResetPassword, newUserPassword } =
usersState.context
Copy link
Contributor

@AbhineetJainAbhineetJainJun 15, 2022
edited
Loading

Choose a reason for hiding this comment

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

Wondering what the ideal linting should be here. Something like:

const {    users,    getUsersError,    userIdToSuspend,    userIdToActivate,     userIdToResetPassword,     newUserPassword,} = usersState.context

Thoughts?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Oh, sorry I missed this! I agree, that is nicer. I left it up to the formatter and it didn't print it as clearly. I can update on my next UI PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

I missed it in my initial review too. Next PR sounds good! I wonder if we can add something to the formatter though.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Ah, yeah, just tried it out and we'd have to adjust the prettier rule. I think thedefault is 80 andwe've got it set to 120. This would be a good thing to chat about in FE variety if you'd like.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@AbhineetJainAbhineetJainAbhineetJain approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Cannot activate a suspended user in the dashboard
2 participants
@Kira-Pilot@AbhineetJain

[8]ページ先頭

©2009-2025 Movatter.jp