-
Notifications
You must be signed in to change notification settings - Fork 5
chore(coder plugin): make template names optional #103
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
Conversation
plugins/backstage-plugin-coder/src/components/CoderAuthWrapper/CoderAuthWrapper.test.tsx
Show resolved
Hide resolved
plugins/backstage-plugin-coder/src/components/CoderWorkspacesCard/SearchBox.test.tsx
Show resolved
Hide resolved
plugins/backstage-plugin-coder/src/components/CoderWorkspacesCard/WorkspacesList.tsx
Show resolved
Hide resolved
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 new help accordions are a great idea!
// Was originally defined in terms of fancy mapped types based on YamlConfig; | ||
// ended up being a bad idea, because it increased coupling in a bad way |
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 does seem nice
<Tooltip | ||
ref={tooltipRef} | ||
title={ | ||
canCreateWorkspace ? tooltipText : 'Please add a template name value' |
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.
I at first did not notice the extra help below, should we maybe say "check below for more information"? Alternatively, if we moved the accordion closer to the button that could help. I might just be particularly blind though.
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, good call. I was a little worried about putting too much text in the tooltip (since by default, it's only a single line), but after looking at MUI's docs again, it looks like you can use fully-customizable HTML instead of plain text
Will update things to make the relationship more obvious. Might also see if I can throw in some splashes of color for the accordion to draw the eye better
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.
Updated the UI. Tried to add some subtle color to the make the accordion stand out more, but it either looked super ugly, or started to break from the default Backstage styling
I'm going with a longer tooltip message for now; will reconsider adding color if we get more feedback
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.
Sweet!
Closes #59
Changes made
CoderWorkspacesConfig
by adding anisReadingEntityData
valueInlineCodeSnippet
Disclosure
EntityDataReminder
intoReminderAccordion
(usesDisclosure
as its main building block)CoderAppConfig
now exposesdefaultTemplateName
anddefaultMode
(both optional)CoderWorkspacesConfig
'screationUrl
property is now potentially undefinedEdit: Squeezed in one other change at the last minute, because it seemed like a good idea. Updated
CoderWorkspacesCard
andCoderWorkspacesCard.Root
so that they don't blow up when the value ofreadEntityData
changes between re-renders. We're still dealing with the same technical issues as before, but instead of throwing an error, they will unmount and remount with the new propNotes