From 5fa596a87118e8393245bdc4c8e0948156f1b230 Mon Sep 17 00:00:00 2001 From: Max Peintner Date: Wed, 22 Nov 2023 10:14:37 +0100 Subject: [PATCH] fix(console): onboarding actions with external links (#6822) * fix: attr for external links * template outlet --- .../onboarding/onboarding.component.html | 100 +++++++++++------- console/src/app/services/admin.service.ts | 3 + console/src/app/utils/onboarding.ts | 1 + 3 files changed, 63 insertions(+), 41 deletions(-) diff --git a/console/src/app/modules/onboarding/onboarding.component.html b/console/src/app/modules/onboarding/onboarding.component.html index 1fe806f356..60398abb74 100644 --- a/console/src/app/modules/onboarding/onboarding.component.html +++ b/console/src/app/modules/onboarding/onboarding.component.html @@ -24,53 +24,71 @@ > -
- check_circle -
- -
-
-
-
- -
-
-
- {{ 'ONBOARDING.MILESTONES.' + action[0] + '.title' | translate }} - {{ - 'ONBOARDING.MILESTONES.' + action[0] + '.description' | translate - }} -
-
- - -
- {{ 'ONBOARDING.MILESTONES.' + action[0] + '.action' | translate }} - keyboard_arrow_right -
-
+ + +
+ + +
+ + +
+ check_circle +
+ +
+
+
+
+ +
+
+
+ {{ 'ONBOARDING.MILESTONES.' + title + '.title' | translate }} + {{ + 'ONBOARDING.MILESTONES.' + title + '.description' | translate + }} +
+
+ + +
+ {{ 'ONBOARDING.MILESTONES.' + title + '.action' | translate }} + keyboard_arrow_right +
+
+
diff --git a/console/src/app/services/admin.service.ts b/console/src/app/services/admin.service.ts index 7ee37d555c..1a67b50ffd 100644 --- a/console/src/app/services/admin.service.ts +++ b/console/src/app/services/admin.service.ts @@ -313,6 +313,7 @@ export interface OnboardingActions { order: number; milestoneType: MilestoneType; link: string; + externalLink?: boolean; fragment?: string | undefined; iconClasses?: string; darkcolor: string; @@ -322,6 +323,7 @@ export interface OnboardingActions { type OnboardingMilestone = { order: number; link: string; + externalLink?: boolean; fragment: string | undefined; reached: Milestone.AsObject | undefined; iconClasses?: string; @@ -354,6 +356,7 @@ export class AdminService { obj[Object.keys(MilestoneType)[action.milestoneType].substring(this.milestoneTypePrefixLength)] = { order: action.order, link: action.link, + externalLink: action.externalLink, fragment: action.fragment, iconClasses: action.iconClasses, darkcolor: action.darkcolor, diff --git a/console/src/app/utils/onboarding.ts b/console/src/app/utils/onboarding.ts index 70b77f4b66..3577a04079 100644 --- a/console/src/app/utils/onboarding.ts +++ b/console/src/app/utils/onboarding.ts @@ -44,6 +44,7 @@ export const ONBOARDING_MILESTONES: OnboardingActions[] = [ order: 3, milestoneType: MilestoneType.MILESTONE_TYPE_AUTHENTICATION_SUCCEEDED_ON_APPLICATION, link: 'https://zitadel.com/docs/guides/integrate/login-users', + externalLink: true, iconClasses: 'las la-sign-in-alt', darkcolor: sthdark, lightcolor: sthlight,