-
Notifications
You must be signed in to change notification settings - Fork 468
feat(ui): add UserButton controller #9185
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
Open
Open
Changes from all commits
Commits
Show all changes
59 commits
Select commit
Hold shift + click to select a range
9930d6d
feat(ui): add UserButton controller
alexcarpenter b258e41
feat(ui): add loading and busy states to UserButton
alexcarpenter 02f18c7
feat(ui): close the UserButton popover only when a workspace is picked
alexcarpenter 84e475a
feat(ui): name the active workspace in the UserButton trigger
alexcarpenter d565d66
refactor(ui): split the UserButton trigger label into two props
alexcarpenter 0daf79b
feat(ui): let combined UserButton lead with the organization or the a…
alexcarpenter 6be8bd1
feat(ui): hand the UserButton its active organization and list loadin…
alexcarpenter 80104ad
fix(ui): answer hasOrganizations from the user resource, before the l…
alexcarpenter 0eefec4
feat(ui): open the UserButton profiles as modals, routable by URL
alexcarpenter 84b2e53
feat(ui): portal the UserButton profile modals
alexcarpenter aa349c4
feat(ui): offer the personal workspace from the UserButton controller
alexcarpenter 04ada04
feat(ui): route the UserButton personal row with afterSelectPersonalUrl
alexcarpenter 4d6e6e5
fix(ui): withhold the UserButton personal row where an organization i…
alexcarpenter 54f6652
feat(ui): let an app hide the UserButton personal workspace
alexcarpenter 4f39ea6
fix(ui): gate UserButton create-organization on the user's permission
alexcarpenter f8f5005
feat(ui): open the create-organization modal from the UserButton
alexcarpenter c9d18e0
feat(ui): open the invite-members modal from the Mosaic UserButton
alexcarpenter 663b460
fix(ui): identify the UserButton account the way Clerk does
alexcarpenter 9cf6358
feat(ui): forward custom menu items through the connected UserButton
alexcarpenter 92e6a7f
docs(ui): document the connected UserButton for the apps using it
alexcarpenter f60a9c0
fix(ui): render nothing from UserButton until Clerk answers
alexcarpenter 9f5186c
refactor(ui): drop comments the controller test names already carry
alexcarpenter ab373e5
refactor(ui): follow the renderTriggerBadge rename through the connec…
alexcarpenter 532d417
fix(ui): wait for the environment before the user button reports ready
alexcarpenter 9431d8e
fix(ui): read the branding off the instance in the Mosaic UserButton
alexcarpenter 8aa9600
fix(ui): follow the renderBranding rename through the UserButton cont…
alexcarpenter 58c8a44
docs(ui): trim the Mosaic UserButton comments to the non-obvious
alexcarpenter 18b4281
fix(ui): route a switched Mosaic UserButton session to its pending task
alexcarpenter 7606085
feat(ui): add a fallback prop to the Mosaic UserButton
alexcarpenter 45af0de
test(ui): cover the connected UserButton end to end
alexcarpenter 79cdfd5
feat(ui): close the UserButton popover only when a workspace is picked
alexcarpenter ce3a1c3
test(ui): query the account menu trigger as a button
alexcarpenter e24be21
refactor(ui): migrate the Mosaic Spinner to StyleX and give it a sm size
alexcarpenter 864b7be
feat(ui): name the active workspace in the UserButton trigger
alexcarpenter 5dc89a7
feat(ui): let combined UserButton lead with the organization or the a…
alexcarpenter c444fde
test(ui): follow the UserButton active-organization contract in the c…
alexcarpenter 99fd8a3
test(ui): carry organizationMemberships on the connected UserButton u…
alexcarpenter 94d8042
fix(ui): hold the Mosaic UserButton surface still while an action runs
alexcarpenter 10a5637
test(ui): cover the UserButton profile modals end to end
alexcarpenter 80c81e6
feat(ui): close the UserButton popover behind whatever it opens
alexcarpenter 460ee30
test(ui): cover the UserButton personal workspace row end to end
alexcarpenter 033faac
test(ui): cover the named UserButton personal row end to end
alexcarpenter 9750486
test(ui): move UserButton rendering cases down to the view test
alexcarpenter d0d11c3
feat(ui): forward mode to the connected UserButton
alexcarpenter 57cf49f
test(ui): cover the UserButton create-organization modal end to end
alexcarpenter eb933c7
test(ui): assert Invite opens the InviteMembers modal
alexcarpenter 71fac47
test(ui): identify Alice's account row by her username
alexcarpenter e28d7c0
test(ui): follow the join button's in-place spinner
alexcarpenter 6edcd13
test(ui): cover a custom menu item end to end
alexcarpenter 6527721
fix(ui): make UserButton account-only where organizations are disabled
alexcarpenter f279021
refactor(ui): drive the Mosaic UserButton popover from a state machine
alexcarpenter 1907022
refactor(ui): drop comments the integration assertions already carry
alexcarpenter 1fb4e14
refactor(ui): name the organization mode in full on the connected button
alexcarpenter dfc2ac0
feat(ui): add custom UserProfile pages to the Mosaic UserButton
alexcarpenter db59ee8
chore(repo): consolidate the branch's changesets into one
alexcarpenter 3b40f00
refactor(ui): colocate the user button's page hooks with the button
alexcarpenter 509f331
fix(ui): drop the Mosaic UserButton spinner hold when the action clos…
alexcarpenter 45ded19
test(ui): follow the user button rows' aria-disabled through the inte…
alexcarpenter 23d2212
refactor(ui): name the Mosaic UserButton layers for their MVC roles v…
Ephem 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| --- | ||
| --- | ||
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,2 @@ | ||
| --- | ||
| --- |
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
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.