-
Notifications
You must be signed in to change notification settings - Fork 162
[ENG-610] Organization level users page improvements #7175
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
Merged
Merged
Changes from 15 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
b45f766
initial wip
lovincyrus 9f67f02
tweak guest chip
lovincyrus e660260
org users filters
lovincyrus 65054ee
prioritize current user
lovincyrus c398d9f
only admins can see menu and actions cell
lovincyrus 3a6d389
fix current user role from org users table
lovincyrus 2431816
org upgrade guest confirm dialog
lovincyrus 6cab180
copy
lovincyrus 48aaea0
filtered count total users
lovincyrus 21a1e06
handle 0 users
lovincyrus 037407b
permission hierarchy
lovincyrus 9b4cc5c
update actions cell using canManageUser
lovincyrus 4891135
lint
lovincyrus d518024
invalidate org users in share project popover
lovincyrus e098ba8
polish error message when adding existing user to org
lovincyrus f8e29ce
amber chip type
lovincyrus f8c984d
move to org features users
lovincyrus 623e87c
error handling, remove failed toast
lovincyrus 3fb6aff
lint
lovincyrus 7edde3d
wip
lovincyrus bef6648
include desc to org user invite
lovincyrus be06996
set w
lovincyrus bfbdcee
add external link icon to org role header
lovincyrus fd62b91
style tweak
lovincyrus 4fab024
more org users set role desc
lovincyrus 30604d6
desc size tweaks
lovincyrus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
web-admin/src/features/organizations/users/OrgUpgradeGuestConfirmDialog.svelte
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| <script lang="ts"> | ||
| import { | ||
| AlertDialog, | ||
| AlertDialogContent, | ||
| AlertDialogDescription, | ||
| AlertDialogFooter, | ||
| AlertDialogHeader, | ||
| AlertDialogTitle, | ||
| AlertDialogTrigger, | ||
| } from "@rilldata/web-common/components/alert-dialog/index.js"; | ||
| import Button from "@rilldata/web-common/components/button/Button.svelte"; | ||
|
|
||
| export let open = false; | ||
| export let email: string; | ||
| export let newRole: string; | ||
| export let onUpgrade: (email: string, role: string) => void; | ||
|
|
||
| async function handleUpgrade() { | ||
| try { | ||
| onUpgrade(email, newRole); | ||
| open = false; | ||
| } catch (error) { | ||
| console.error("Failed to upgrade user role:", error); | ||
| } | ||
| } | ||
| </script> | ||
|
|
||
| <AlertDialog bind:open> | ||
| <AlertDialogTrigger asChild> | ||
| <div class="hidden"></div> | ||
| </AlertDialogTrigger> | ||
| <AlertDialogContent> | ||
| <AlertDialogHeader> | ||
| <AlertDialogTitle>Upgrade guest to {newRole}?</AlertDialogTitle> | ||
| <AlertDialogDescription> | ||
| <div class="mt-1"> | ||
| Upgrading a guest to {newRole} will grant this user access to all open | ||
| projects in the organization. Would you like to upgrade this guest user | ||
| to {newRole}? | ||
| </div> | ||
| </AlertDialogDescription> | ||
| </AlertDialogHeader> | ||
| <AlertDialogFooter> | ||
| <Button | ||
| type="plain" | ||
| on:click={() => { | ||
| open = false; | ||
| }}>Cancel</Button | ||
| > | ||
| <Button type="primary" on:click={handleUpgrade}>Yes, upgrade</Button> | ||
| </AlertDialogFooter> | ||
| </AlertDialogContent> | ||
| </AlertDialog> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.