-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Configure workspace classes from dashboard #11038
Conversation
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.
<SelectableCardSolid | ||
className="w-36 h-32" | ||
title="Standard" | ||
selected={workspaceClass === "standard"} | ||
onClick={() => actuallySetWorkspaceClass("standard")} | ||
> | ||
<div className="flex-grow flex items-end p-1"> | ||
<svg width="112" height="64" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<path | ||
d="M0 8a8 8 0 0 1 8-8h16a8 8 0 1 1 0 16H8a8 8 0 0 1-8-8ZM0 32a8 8 0 0 1 8-8h16a8 8 0 1 1 0 16H8a8 8 0 0 1-8-8ZM0 56a8 8 0 0 1 8-8h16a8 8 0 1 1 0 16H8a8 8 0 0 1-8-8ZM40 6a6 6 0 0 1 6-6h60a6 6 0 0 1 6 6v28a6 6 0 0 1-6 6H46a6 6 0 0 1-6-6V6Z" | ||
fill="#D6D3D1" | ||
/> | ||
</svg> | ||
</div> | ||
</SelectableCardSolid> |
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.
issue: Friendly reminder to avoid merging this with SVG icons used for the theme preference. ❗
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.
Hi George, the current icons are placeholders. These icons will not be visible to the user at the moment (will be hidden behind a feature flag as the current design and workspace class names have not been finalized). This is just for setting up the logic in the frontend, so that I can continue with the other changes in the backend.
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.
<SelectableCardSolid | ||
className="w-36 h-32" | ||
title="Standard" | ||
selected={workspaceClass === "standard"} | ||
onClick={() => actuallySetWorkspaceClass("standard")} | ||
> | ||
<div className="flex-grow flex items-end p-1"> | ||
<svg width="112" height="64" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<path | ||
d="M0 8a8 8 0 0 1 8-8h16a8 8 0 1 1 0 16H8a8 8 0 0 1-8-8ZM0 32a8 8 0 0 1 8-8h16a8 8 0 1 1 0 16H8a8 8 0 0 1-8-8ZM0 56a8 8 0 0 1 8-8h16a8 8 0 1 1 0 16H8a8 8 0 0 1-8-8ZM40 6a6 6 0 0 1 6-6h60a6 6 0 0 1 6 6v28a6 6 0 0 1-6 6H46a6 6 0 0 1-6-6V6Z" | ||
fill="#D6D3D1" | ||
/> | ||
</svg> | ||
</div> | ||
</SelectableCardSolid> |
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.
suggestion: Re-posting some updated design specs after taking into account some feedback, see relevant discussion (internal) and design specs. Cc @atduarte
Option |
Option |
---|---|
/werft run 👍 started the job as gitpod-build-fo-classes-fe.7 |
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.
Code LGTM(*), tested and works 👍
As discussed offline with @Furisto we agreed that:
- it would be nice to have be able to configure the concrete strings for workspace classes in a central place, and load them from there
- as this is currently feature flagged, merging the current state is ok to move forward
- before we remove the feature flag, we should have such a config mechanism + APIs to retrieve them
Description
Add dialog for selecting workspace classes to preferences. Note that the current icons and class names are placeholders. This PR is purely for setting up the logic in the frontend.
Related Issue(s)
Fixes ##10843
How to test
Release Notes
Werft options: