Skip to content

Enteprise onboarding settings #20508

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

Merged
merged 8 commits into from
Jan 8, 2025
Merged

Enteprise onboarding settings #20508

merged 8 commits into from
Jan 8, 2025

Conversation

filiptronicek
Copy link
Member

@filiptronicek filiptronicek commented Jan 8, 2025

Description

Note

This PR is the first one to touch protobufs since the New Year, meaning a lot of changes in copyright headers. Sorry in advance!

This PR adds a couple of things:

  1. The onboardingSettings shape for the DB, protocol and API proto definition, with for now a singular property, internalLink.
  2. An "Onboarding" page to the Dashboards' organization settings, from where you can update the internal backlink
image

Related Issue(s)

Fixes CLC-1064

How to test

  1. SSO into my org at https://ft-onboard658abc0762.preview.gitpod-dev.com/members
  2. Visit org settings, you should see a link to YouTube configured

/hold

Copy link
Member Author

Choose a reason for hiding this comment

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

Did a bit of a cleanup on the policies page, including having extracted some components to their own files under policies/.

Copy link
Member

Choose a reason for hiding this comment

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

Nice, looks like a very clean cut!

@@ -48,6 +48,11 @@ message RoleRestrictionEntry {
repeated OrganizationPermission permissions = 2;
}

message OnboardingSettings {
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 will house all other onboarding settings we plan to introduce

@geropl
Copy link
Member

geropl commented Jan 8, 2025

@filiptronicek Can't load the preview atm; do we need to re-create it?

@filiptronicek
Copy link
Member Author

@geropl I last re-deployed it about an hour ago, interesting that it's gone again. leeway'ing now...

if (
!isURL(settings.onboardingSettings.internalLink ?? "", {
require_protocol: true,
host_blacklist: ["localhost", "127.0.0.1"],
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to exclude IPv6 localhost (::1) as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sounds good, will add. We don't have to be too strict here though, I just wanted to add URLs that you probably really don't want to add and might try to accidentally.

Copy link
Member

Choose a reason for hiding this comment

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

Ah, correct. 👍

@geropl
Copy link
Member

geropl commented Jan 8, 2025

@filiptronicek I can see the setting now (and not edit, as member). But it's not used anywhere else, yet - correct?

@filiptronicek
Copy link
Member Author

@geropl it's expected indeed. Actually using it will be implemented with CLC-1063.

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 looks good, tested and works! ✔️

@roboquat roboquat merged commit d54bd04 into main Jan 8, 2025
19 checks passed
@roboquat roboquat deleted the ft/onboarding-org-backlink branch January 8, 2025 16:05
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