From f8ddc844f8d92a7f254984dfb82ba1575964defa Mon Sep 17 00:00:00 2001 From: Max Peintner Date: Fri, 24 Feb 2023 18:01:05 +0100 Subject: [PATCH] feat(console): onboarding flow (#5225) Implements an onboarding UI for users --- console/src/app/app.component.ts | 5 + .../src/app/modules/nav/nav.component.html | 41 ++++- .../src/app/modules/nav/nav.component.scss | 37 ++++ console/src/app/modules/nav/nav.component.ts | 27 ++- console/src/app/modules/nav/nav.module.ts | 4 + .../onboarding-card.component.html | 39 ++++ .../onboarding-card.component.scss | 144 +++++++++++++++ .../onboarding-card.component.spec.ts | 24 +++ .../onboarding-card.component.ts | 26 +++ .../onboarding-card/onboarding-card.module.ts | 31 ++++ .../onboarding/onboarding.component.html | 57 ++++++ .../onboarding/onboarding.component.scss | 174 ++++++++++++++++++ .../onboarding/onboarding.component.spec.ts | 24 +++ .../onboarding/onboarding.component.ts | 16 ++ .../modules/onboarding/onboarding.module.ts | 31 ++++ .../org-context/org-context.component.scss | 1 - .../app-create/app-create-routing.module.ts | 18 ++ .../app-create/app-create.component.html | 26 +++ .../app-create/app-create.component.scss | 25 +++ .../app-create/app-create.component.spec.ts | 24 +++ .../pages/app-create/app-create.component.ts | 45 +++++ .../app/pages/app-create/app-create.module.ts | 43 +++++ .../src/app/pages/home/home.component.html | 11 +- .../src/app/pages/home/home.component.scss | 1 + console/src/app/pages/home/home.module.ts | 4 + .../instance-settings.component.ts | 15 +- .../pages/projects/projects-routing.module.ts | 9 + .../app/pipes/event-pipe/event-pipe.module.ts | 12 ++ .../src/app/pipes/event-pipe/event.pipe.ts | 26 +++ console/src/app/services/admin.service.ts | 72 +++++++- console/src/app/utils/onboarding.ts | 22 +++ console/src/assets/i18n/de.json | 37 ++++ console/src/assets/i18n/en.json | 38 ++++ console/src/assets/i18n/fr.json | 43 ++++- console/src/assets/i18n/it.json | 37 ++++ console/src/assets/i18n/pl.json | 37 ++++ console/src/assets/i18n/zh.json | 43 ++++- console/src/assets/mdi/shield-check.svg | 1 + console/src/component-themes.scss | 4 + 39 files changed, 1248 insertions(+), 26 deletions(-) create mode 100644 console/src/app/modules/onboarding-card/onboarding-card.component.html create mode 100644 console/src/app/modules/onboarding-card/onboarding-card.component.scss create mode 100644 console/src/app/modules/onboarding-card/onboarding-card.component.spec.ts create mode 100644 console/src/app/modules/onboarding-card/onboarding-card.component.ts create mode 100644 console/src/app/modules/onboarding-card/onboarding-card.module.ts create mode 100644 console/src/app/modules/onboarding/onboarding.component.html create mode 100644 console/src/app/modules/onboarding/onboarding.component.scss create mode 100644 console/src/app/modules/onboarding/onboarding.component.spec.ts create mode 100644 console/src/app/modules/onboarding/onboarding.component.ts create mode 100644 console/src/app/modules/onboarding/onboarding.module.ts create mode 100644 console/src/app/pages/app-create/app-create-routing.module.ts create mode 100644 console/src/app/pages/app-create/app-create.component.html create mode 100644 console/src/app/pages/app-create/app-create.component.scss create mode 100644 console/src/app/pages/app-create/app-create.component.spec.ts create mode 100644 console/src/app/pages/app-create/app-create.component.ts create mode 100644 console/src/app/pages/app-create/app-create.module.ts create mode 100644 console/src/app/pipes/event-pipe/event-pipe.module.ts create mode 100644 console/src/app/pipes/event-pipe/event.pipe.ts create mode 100644 console/src/app/utils/onboarding.ts create mode 100644 console/src/assets/mdi/shield-check.svg diff --git a/console/src/app/app.component.ts b/console/src/app/app.component.ts index b94a9398f8..4ca1b8130a 100644 --- a/console/src/app/app.component.ts +++ b/console/src/app/app.component.ts @@ -165,6 +165,11 @@ export class AppComponent implements OnDestroy { this.domSanitizer.bypassSecurityTrustResourceUrl('assets/mdi/shield-alert.svg'), ); + this.matIconRegistry.addSvgIcon( + 'mdi_shield_check', + this.domSanitizer.bypassSecurityTrustResourceUrl('assets/mdi/shield-check.svg'), + ); + this.matIconRegistry.addSvgIcon( 'mdi_arrow_expand', this.domSanitizer.bypassSecurityTrustResourceUrl('assets/mdi/arrow-expand.svg'), diff --git a/console/src/app/modules/nav/nav.component.html b/console/src/app/modules/nav/nav.component.html index a957852c0f..cb2b1f5066 100644 --- a/console/src/app/modules/nav/nav.component.html +++ b/console/src/app/modules/nav/nav.component.html @@ -212,7 +212,46 @@ - + + + + + + + + + + + +