From fd2825edfaebd3b07b64e06acbb86677415368d7 Mon Sep 17 00:00:00 2001 From: Gero Posmyk-Leinemann Date: Thu, 13 Feb 2025 15:52:49 +0000 Subject: [PATCH 1/6] squashed (- oidc/newUser) Tool: gitpod/catfood.gitpod.cloud --- components/dashboard/package.json | 1 + .../src/components/forms/InputField.tsx | 4 +- .../src/components/podkit/forms/TextArea.tsx | 27 + .../update-org-settings-mutation.ts | 43 +- components/dashboard/src/index.css | 4 +- .../dashboard/src/login/SSOLoginForm.tsx | 7 +- .../detail/general/ManageRepoSuggestion.tsx | 3 +- .../dashboard/src/start/StartWorkspace.tsx | 2 +- .../dashboard/src/teams/TeamOnboarding.tsx | 23 +- .../teams/onboarding/OrgMemberAvatarInput.tsx | 67 + .../onboarding/OrganizationJoinModal.tsx | 58 + .../WelcomeMessageConfigurationField.tsx | 108 + .../teams/onboarding/WelcomeMessageEditor.tsx | 103 + .../onboarding/WelcomeMessagePreview.tsx | 54 + .../dashboard/src/workspaces/Workspaces.tsx | 57 +- .../src/teams-projects-protocol.ts | 9 + .../public-api/gitpod/v1/organization.proto | 53 +- .../public-api/go/v1/organization.pb.go | 1169 +++++---- .../publicapi/v1/OrganizationOuterClass.java | 2203 +++++++++++++++-- .../src/public-api-converter.ts | 1 + .../src/gitpod/v1/organization_pb.ts | 112 +- components/server/package.json | 2 +- .../src/api/organization-service-api.ts | 87 +- .../server/src/orgs/organization-service.ts | 66 +- yarn.lock | 643 ++++- 25 files changed, 4045 insertions(+), 861 deletions(-) create mode 100644 components/dashboard/src/components/podkit/forms/TextArea.tsx create mode 100644 components/dashboard/src/teams/onboarding/OrgMemberAvatarInput.tsx create mode 100644 components/dashboard/src/teams/onboarding/OrganizationJoinModal.tsx create mode 100644 components/dashboard/src/teams/onboarding/WelcomeMessageConfigurationField.tsx create mode 100644 components/dashboard/src/teams/onboarding/WelcomeMessageEditor.tsx create mode 100644 components/dashboard/src/teams/onboarding/WelcomeMessagePreview.tsx diff --git a/components/dashboard/package.json b/components/dashboard/package.json index 4c21c5ad9e6658..9f3aed9cd2778e 100644 --- a/components/dashboard/package.json +++ b/components/dashboard/package.json @@ -53,6 +53,7 @@ "react-focus-on": "^3.8.1", "react-intl-tel-input": "^8.2.0", "react-linkedin-login-oauth2": "^2.0.1", + "react-markdown": "^9.0.3", "react-popper": "^2.3.0", "react-portal": "^4.2.2", "react-router-dom": "^5.2.0", diff --git a/components/dashboard/src/components/forms/InputField.tsx b/components/dashboard/src/components/forms/InputField.tsx index 7df8ffa326fbca..b1d2a0e4277ef9 100644 --- a/components/dashboard/src/components/forms/InputField.tsx +++ b/components/dashboard/src/components/forms/InputField.tsx @@ -16,16 +16,18 @@ type Props = { topMargin?: boolean; className?: string; disabled?: boolean; + labelHidden?: boolean; }; export const InputField: FunctionComponent = memo( - ({ label, id, hint, error, topMargin = true, className, children, disabled = false }) => { + ({ label, id, hint, error, topMargin = true, className, children, disabled = false, labelHidden = false }) => { return (
{label && (