-
Notifications
You must be signed in to change notification settings - Fork 18
Limited collaborator UI #2960
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
Limited collaborator UI #2960
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
the div wrapping the radios was messing up the way RadioFieldDyn passes checked state to its child radios because they're expected to be direct children
6e0af82 to
4b3731d
Compare
Okay; just for clarity, does the "Add user" modal remain a side modal, because you have to enter the name and select the role, or is it conceptually a single input and should be a regular modal? |
| control={control} | ||
| disabled={isSubmitting} | ||
| > | ||
| <RadioFieldDyn name="presetId" control={control} disabled={isSubmitting}> |
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.
these were the only other RadioFieldDyn and they were using label="" as a hack around the fact there was a default value if label wasn't passed. That's silly, so I got rid of the default value and stopped passing a label here.
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.
nice
| return ( | ||
| <div> | ||
| <div className="mb-2"> | ||
| <div className="mb-3"> |
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.
The fact that the only existing callers don't pass a label means that I can change the spacing here without consequence. Looks fine. I considered mb-4 but it was slightly too much. I think the real issue here is that the label and the values have the same treatment, so there's no sense of hierarchy. A problem for another time.
david-crespo
left a comment
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.
let's party



Now that oxidecomputer/omicron#9299 is in Omicron, we want to use the new permissions in the web console as well. This PR bumps Omicron (will want to bump again before merging this) and also redesigns the access forms to use radio buttons, which allow us to show all options on the screen, with descriptions of what each role enables.