From 00cb01d5c6e0542172adfaa234916c38e77a63fa Mon Sep 17 00:00:00 2001 From: Kyrylo Petrov Date: Wed, 25 Jun 2025 13:47:25 +0300 Subject: [PATCH 1/6] feat(registry-overview): establish routing, sidenav, store --- src/app/app.routes.ts | 4 + .../nav-menu/nav-menu.component.html | 117 +++++++++++------- .../nav-menu/nav-menu.component.scss | 4 + .../components/nav-menu/nav-menu.component.ts | 13 +- src/app/core/constants/nav-items.constant.ts | 28 +++++ src/app/features/registry/pages/index.ts | 1 + .../registry-overview.component.html | 5 + .../registry-overview.component.scss | 0 .../registry-overview.component.spec.ts | 22 ++++ .../registry-overview.component.ts | 18 +++ .../features/registry/registry.component.html | 3 + .../features/registry/registry.component.scss | 0 .../registry/registry.component.spec.ts | 22 ++++ .../features/registry/registry.component.ts | 11 ++ src/app/features/registry/registry.routes.ts | 26 ++++ .../registry/store/registry-overview/index.ts | 4 + .../registry-overview.actions.ts | 0 .../registry-overview.model.ts | 3 + .../registry-overview.selectors.ts | 0 .../registry-overview.state.ts | 14 +++ .../resource-card.component.html | 8 +- .../resource-card/resource-card.component.ts | 11 ++ src/assets/i18n/en.json | 15 ++- 23 files changed, 280 insertions(+), 49 deletions(-) create mode 100644 src/app/features/registry/pages/index.ts create mode 100644 src/app/features/registry/pages/registry-overview/registry-overview.component.html create mode 100644 src/app/features/registry/pages/registry-overview/registry-overview.component.scss create mode 100644 src/app/features/registry/pages/registry-overview/registry-overview.component.spec.ts create mode 100644 src/app/features/registry/pages/registry-overview/registry-overview.component.ts create mode 100644 src/app/features/registry/registry.component.html create mode 100644 src/app/features/registry/registry.component.scss create mode 100644 src/app/features/registry/registry.component.spec.ts create mode 100644 src/app/features/registry/registry.component.ts create mode 100644 src/app/features/registry/registry.routes.ts create mode 100644 src/app/features/registry/store/registry-overview/index.ts create mode 100644 src/app/features/registry/store/registry-overview/registry-overview.actions.ts create mode 100644 src/app/features/registry/store/registry-overview/registry-overview.model.ts create mode 100644 src/app/features/registry/store/registry-overview/registry-overview.selectors.ts create mode 100644 src/app/features/registry/store/registry-overview/registry-overview.state.ts diff --git a/src/app/app.routes.ts b/src/app/app.routes.ts index b0a0f9301..1c2fcc6f6 100644 --- a/src/app/app.routes.ts +++ b/src/app/app.routes.ts @@ -148,6 +148,10 @@ export const routes: Routes = [ path: 'registries', loadChildren: () => import('./features/registries/registries.routes').then((mod) => mod.registriesRoutes), }, + { + path: 'registries/my-registrations/:registrationId', + loadChildren: () => import('./features/registry/registry.routes').then((mod) => mod.registryRoutes), + }, { path: '**', loadComponent: () => diff --git a/src/app/core/components/nav-menu/nav-menu.component.html b/src/app/core/components/nav-menu/nav-menu.component.html index 5958a21cb..870e9f726 100644 --- a/src/app/core/components/nav-menu/nav-menu.component.html +++ b/src/app/core/components/nav-menu/nav-menu.component.html @@ -1,53 +1,80 @@