-
Notifications
You must be signed in to change notification settings - Fork 171
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
Remix projects access requests actions dropdown #5155
Conversation
# Conflicts: # utopia-remix/app/routes-test/internal.projects.$id.access.request.$token.destroy.spec.ts
Job #11383: Bundle Size — 63.39MiB (~-0.01%).
Warning Bundle contains 58 duplicate packages – View duplicate packages Bundle metrics
|
Current Job #11383 |
Baseline Job #11381 |
|
---|---|---|
Initial JS | 50.43MiB (~+0.01% ) |
50.43MiB |
Initial CSS | 0B |
0B |
Cache Invalidation | 18.88% |
22.25% |
Chunks | 41 |
41 |
Assets | 45 |
45 |
Modules | 4469 |
4469 |
Duplicate Modules | 608 |
608 |
Duplicate Code | 32.05% |
32.05% |
Packages | 467 |
467 |
Duplicate Packages | 58 |
58 |
Bundle size by type 2 changes
1 regression
1 improvement
Current Job #11383 |
Baseline Job #11381 |
|
---|---|---|
JS | 63.38MiB (~+0.01% ) |
63.38MiB |
HTML | 14.15KiB (-0.44% ) |
14.21KiB |
View job #11383 report View feat/share-access-dropdown branch activity View project dashboard
// the access requests, including in-flight optimistic statuses | ||
const [accessRequests, setAccessRequests] = React.useState(props.accessRequests) | ||
// the last successfully-obtained access requests that can be used to roll-back in case of issues when updating requests | ||
const [stableAccessRequests, setStableAccessRequests] = React.useState(props.accessRequests) |
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.
This should probably be called previousAccessRequests
return ( | ||
<DropdownMenu.Root> | ||
<DropdownMenu.Trigger> | ||
{/* this needs to be inlined (and as a ternary) because DropdownMenu.Trigger requires a direct single child */} |
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.
Maybe we should pull it out into its own component in that case?
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.
yeah my comment is meant for that case too: it needs an explicit inline child, because otherwise it will explode due to the component not accepting refs (?!). You can see I tried doing it here but had to revert it back :( 645b73a
(#5155)
Fix #5140
Builds on top of #5139 and #5142 .
Problem:
It should be possible to manipulate access requests for collaborative projects besides the basic approve of a new request.
Fix:
This PR adds a dropdown to the sharing dialog, per collaborator row. The dropdown allows the user to approve, reject, or discard access requests. The different options change depending on the current status of the request. For pending requests, the button has a yellow-orange accent background.