Skip to content

feat: deactivate user - #373

Closed
aayushchugh wants to merge 7 commits into
docmost:mainfrom
aayushchugh:aayushchugh/delete-user
Closed

aayushchugh wants to merge 7 commits into
docmost:mainfrom
aayushchugh:aayushchugh/delete-user

Conversation

@aayushchugh

@aayushchugh aayushchugh commented Oct 5, 2024 •

Copy link
Copy Markdown

This is 1/2 PRs for #177

In this PR, the owner and admin can deactivate a member.

I would greatly appreciate any feedback.

Recording 2024-10-06 at 10 32 47

Delete buttons are disabled for now, they will be enabled when delete route is implemented after this PR is merged.

@CLAassistant

CLAassistant commented Oct 5, 2024 •

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@aayushchugh
aayushchugh marked this pull request as ready for review October 6, 2024 05:04
@aayushchugh

Copy link
Copy Markdown
Author

Any update on this?


// get workspace owner count
const workspaceOwnerCount = await this.userRepo.roleCountByWorkspaceId(
'OWNER',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

All usages of OWNER and ADMIN should be UserRole.OWNER imported from /common/helpers/types/permission.

data={[
{ label: "Members", value: "members" },
{ label: "Pending", value: "invites" },
{ label: "Deactivated", value: "deactivated" },

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I am not in favor of having another SegmentedControl tab.
I am thinking we could have a filter button which when ticked would show the deactivated users on the already existing "Members" tab.

}
>
<IconTrash size={20} />
<Tooltip label="Deactivate member">

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The UI should be consistent with what we have in the Space Members section.
It should be a menu with dots as the trigger icon. By doing this, we can easily add more actions in the future.
image

@SimonHoiberg

Copy link
Copy Markdown

Any update on this? Or any way I can help? 😊
This feature would be highly convenient!

@aayushchugh

Copy link
Copy Markdown
Author

@SimonHoiberg I'll do required changes by next week

@aayushchugh

Copy link
Copy Markdown
Author

Closing this because of multiple conflicts, I'll create a new PR

vvzvlad pushed a commit to vvzvlad/gitmost that referenced this pull request Jul 5, 2026
…естирование конвертера — атрибутный уровень' (docmost#373) from test/351-generative-converter into develop

Reviewed-on: https://gitea.vvzvlad.xyz/vvzvlad/gitmost/pulls/373
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.

4 participants