Skip to content
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

[dashboard] Add org resources to the top of the workspace list #20520

Merged
merged 17 commits into from
Jan 16, 2025

Conversation

filiptronicek
Copy link
Member

Description

This PR introduces a couple of quick links to the top of the workspaces page.

image

👆 this is how the cards look like when there is an internalLink configured as part of the organization's onboarding settings. If there's none, this card will be shown instead:
image

Related Issue(s)

Fixes CLC-1063

How to test

https://ft-suggest2ff3f7fd93.preview.gitpod-dev.com

  1. Join my org
  2. Look at the workspaces list
  3. Profit 📈

/hold

Todo:
- [ ] only enable on dedicated installs
- [ ] add org setting for org-wide suggestions
- [ ] possibly adopt `Recommended` badges from figma
- [ ] open configurationId instead of cloneUrl if possible
@@ -42,7 +42,7 @@ export const SetupCompleteStep: FC<Props> = ({ onComplete }) => {
<Subheading>Your teammates can now sign in to Gitpod using single sign-on (SSO).</Subheading>

<div className="flex flex-row items-center space-x-2 mt-4">
<div className="flex flex-row items-center space-x-1 font-mono text-sm text-gray-500 dark:text-gray-600">
<div className="flex flex-row items-center space-x-1 font-mono text-sm text-pk-content-secondary">
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a drive-by. I noticed that in the installation setup, the contrast of this text with the background is too small.

@@ -344,7 +344,7 @@ export class OrganizationServiceAPI implements ServiceImpl<typeof OrganizationSe
"onboardingSettings can only be set on enterprise installations",
);
}
if (req.onboardingSettings.internalLink?.length ?? 0 > 255) {
if ((req.onboardingSettings.internalLink?.length ?? 0) > 255) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a fix for a regression from #20508. Operator precedence is hard :P

<Header title="Workspaces" subtitle="Manage recent and stopped workspaces." />
<Header
title="Workspaces"
subtitle="Manage, start and stop your personal development environments in the cloud."
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy comes from this Figma.

@geropl
Copy link
Member

geropl commented Jan 15, 2025

Looks all very clean and ready to go! I have two smaller comments:
image

  1. "Hide":
    UX-wise, I as a user 💯 expect to be able to "undo" the hide operation in the very place I hid it. Yes, I was lucky to hover over it, read the comment - and still struggled to find the option in my user preferences.
    Could we avoid this confusion by just always (isDedicatedInstallation) have a little toggle there at the top? 🤔 Also, I'm not sure if the phrasing "restart onboarding journey" really makes sense. It's more like an "overlay" with additional information for now, out of which we might build a journey at some point.
    It works in the current state, though, so I consider this non-blocking, but worth a (follow-up) thought. Leaving up to you.
  2. "Learn how Gitpod works" nit:
    When exploring, I stumbled over the fact that the left card looked 💯% like the others, but was not a hyperlink/d#id not show a link on hover. Would be 🥇 if that was indicated by the card in any way - no idea how though. Non-blocking nit.

Copy link
Member

@geropl geropl left a 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 ✔️

Left comments here, leaving it up to you how/when to tackle them. 👍

@filiptronicek filiptronicek self-assigned this Jan 16, 2025
@roboquat roboquat merged commit 5c8700e into main Jan 16, 2025
18 checks passed
@roboquat roboquat deleted the ft/suggestions-and-recommendations branch January 16, 2025 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants