From e723981e7bea409a230856a50adfcf7b6a61e7ea Mon Sep 17 00:00:00 2001 From: Bastian Jakobi <55296998+bastianjakobi@users.noreply.github.com> Date: Thu, 6 Jun 2024 06:56:42 +0200 Subject: [PATCH] refactor: shell app loading spinner + minor improvements in libs (#259) * fix: fix broken figureImage on load error * fix: add missing overflow to menu sidebar container * fix: remove dead code from portal-header * fix: make skeleton loaders full width + add padding * refactor: convert inline error handler to function call * feat: add loading spinner for shell app loading --------- Co-authored-by: Bastian Jakobi --- .../page-header/page-header.component.html | 22 ++++++++++++++----- .../page-header/page-header.component.ts | 6 +++++ .../portal-header/header.component.html | 7 ------ .../portal-viewport.component.html | 10 ++++++--- libs/shell-core/src/lib/shell-core.module.ts | 3 ++- 5 files changed, 32 insertions(+), 16 deletions(-) diff --git a/libs/angular-accelerator/src/lib/components/page-header/page-header.component.html b/libs/angular-accelerator/src/lib/components/page-header/page-header.component.html index 5adad452..94c9afea 100644 --- a/libs/angular-accelerator/src/lib/components/page-header/page-header.component.html +++ b/libs/angular-accelerator/src/lib/components/page-header/page-header.component.html @@ -13,9 +13,18 @@
- Figure image + Figure image
-
+
@@ -25,11 +34,12 @@

{{ header }}

-

{{ subheader }}

+

{{ subheader }}

- + + @@ -87,7 +97,9 @@

{{ subheader }}

class="object-info flex flex-row md:flex-column align-items-baseline md:align-items-center justify-content-between" *ngFor="let item of objectDetails" > - + + figureImageLoadError = false; + protected breadcrumbs: BreadcrumbService constructor( @@ -173,6 +175,10 @@ export class PageHeaderComponent implements OnInit, OnChanges { } } + handleImageError() { + this.figureImageLoadError = true + } + public generateItemStyle(item: ObjectDetailItem): string { let style = '' if (item.icon) style = style.concat(style, ' ', 'gap-1 align-items-center') diff --git a/libs/shell-core/src/lib/components/portal-header/header.component.html b/libs/shell-core/src/lib/components/portal-header/header.component.html index 4093a656..79a32850 100644 --- a/libs/shell-core/src/lib/components/portal-header/header.component.html +++ b/libs/shell-core/src/lib/components/portal-header/header.component.html @@ -56,13 +56,6 @@
- diff --git a/libs/shell-core/src/lib/components/portal-viewport/portal-viewport.component.html b/libs/shell-core/src/lib/components/portal-viewport/portal-viewport.component.html index 7aa9e0b6..55f83b16 100644 --- a/libs/shell-core/src/lib/components/portal-viewport/portal-viewport.component.html +++ b/libs/shell-core/src/lib/components/portal-viewport/portal-viewport.component.html @@ -25,10 +25,10 @@