-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
feat(console): Groups and group user management #2461
Conversation
4fcf4e6
to
ddddca1
Compare
ddddca1
to
113dfc6
Compare
<div className="flex flex-row items-center gap-2"> | ||
<img | ||
className="w-5 h-5" | ||
src={getProviderIcons(selectedProvider) ?? undefined} |
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.
That's like undefined || undefined
.
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.
True that. I replaced the return type of the getProviderIcons
with undefined
instead of null
. Should make for a bit more cleaner code.
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.
Could you just {false && <NavLink ...
instead of commenting out in apps/console/app/components/SiteMenu/index.tsx
?
I think new methods need authorization middlewares.
const DOBinding = IdentityGroup.wrap(ctx.IdentityGroup) | ||
const node = DOBinding.getByName(identityGroupURN) |
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.
Can you define this in a utility module like others?
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.
Added a initIdentityGroupNodeByName
method.
addressType, | ||
}: InviteMemberInput): Promise<void> { | ||
const invitations = | ||
(await this.state.storage.get<undefined | MemberInvitation[]>( |
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.
(await this.state.storage.get<undefined | MemberInvitation[]>( | |
(await this.state.storage.get<MemberInvitation[]>( |
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.
undefined
is added to the return type.
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.
Removed explicit cast
Added false && to the render |
Description
Related Issues
Testing
Checklist