- Notifications
You must be signed in to change notification settings - Fork924
fix: improve provisioner details layout and show count line#14749
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
aslilac commentedSep 20, 2024
- Make the provisioner tiles more responsive to page width
- Show the number of groups and provisioners at the top of the page
- Better tags handling for PSK groups
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.
Looks good!
(Also, there's a typo in Jaayden's name – it says "Jyeden", as in rhymes with "chai")
interface ProvisionerGroupProps { | ||
readonly buildInfo?: BuildInfoResponse; | ||
readonly keyName?: string; | ||
readonly keyName: string; | ||
readonly keyTags: Record<string, string>; | ||
readonly type: ProvisionerGroupType; | ||
readonly provisioners: readonly ProvisionerDaemon[]; | ||
} |
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.
Is there a reason why we haven't been using theReadonly
utility type more? I can't help but feel like this is a little less typing for just as much type-safety. Plus, I don't think any of our code will ever need to take advantage of interface merging
typeProvisionerGroupProps=Readonly<{buildInfo?:BuildInfoResponse;keyName:string;keyTags:Readonly<Record<string,string>>;type:ProvisionerGroupType;provisioners:readonlyProvisionerDaemon[];}>
I know our entire API types file uses interfaces, but I'm a little fussed about that, since it's all auto-generated
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, I've just been trying something 🤷♀️ idek if we get any benefit out of it when we immediately destructure the props off of the object in the component
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
site/src/pages/ManagementSettingsPage/OrganizationProvisionersPageView.stories.tsx OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
何? In Romaji it should be "Jaiden". I guess it should probably be "Je" but it is definitely not "Jyeden". 🤔 |
@aslilac Yeah, sorry – the "jye" mora doesn't exist in Japanese. I wrote it like that because it's close to the English words "rye" and "dye" |
ahh I get what you meant now |
3338f32
intomainUh oh!
There was an error while loading.Please reload this page.