6.4 KiB
6.4 KiB
Platform Standardization Report
Date: 2026-07-09 Scope: Sprint 11.5 - Platform Standardization
Objective
Standardize the frontend platform before Admin Platform work without adding new marketplace features.
Summary
The sprint delivered a platform-wide standardization pass across architecture boundaries, legacy cleanup, widget metadata support, translation coverage, theme token normalization, and architecture documentation updates.
Files Changed
angular.jsonsrc/styles.scsssrc/assets/mock/bootstrap/widget-manifest.jsonsrc/app/theme/tokens/theme-variable-map.tssrc/app/theme/mappers/theme-css-vars.mapper.tssrc/app/shared/models/config/widget.model.tssrc/app/widgets/contracts/widget-manifest.contract.tssrc/app/widgets/resolvers/data-source-resolver.service.tssrc/app/layouts/containers/dynamic-page-layout.component.tssrc/app/components/product-card/product-card.component.tssrc/app/components/product-card/product-card.component.htmlsrc/app/components/header/header.component.tssrc/app/components/header/header.component.htmlsrc/app/components/header/header.component.scsssrc/app/components/language-selector/language-selector.component.scsssrc/app/components/delivery-selector/delivery-selector.component.scsssrc/app/components/items-carousel/items-carousel.component.scsssrc/app/pages/cart/cart.component.htmlsrc/app/pages/cart/cart.component.scsssrc/app/pages/home/home.component.tssrc/app/pages/home/home.component.htmlsrc/app/pages/home/home.component.scsssrc/app/pages/item-detail/item-detail.component.scsssrc/app/pages/public/platform-home.component.tssrc/app/pages/backoffice/backoffice-dashboard.component.tssrc/app/pages/builder/builder-sandbox.component.tssrc/app/widgets/ui/unknown-widget.component.tssrc/app/widgets/ui/recently-viewed-widget.component.tssrc/app/features/website/user-experience/components/recently-viewed-strip/recently-viewed-strip.component.tssrc/app/features/website/user-experience/compare/components/compare-table.component.tssrc/app/features/website/user-experience/compare/components/compare-table.component.htmlsrc/app/features/website/user-experience/wishlist/containers/wishlist-page.component.tssrc/app/i18n/translations.tssrc/app/i18n/en.tssrc/app/i18n/ru.tssrc/app/i18n/hy.tsdocs/architecture/foundation/README.mddocs/architecture/foundation/Configuration-Standards.mddocs/architecture/foundation/Component-Standards.mddocs/architecture/foundation/Service-Standards.mdsrc/app/features/website/catalog/services/catalog-search-history.service.ts(deleted)
Technical Debt Removed
- Removed duplicate catalog search-history service implementation and consolidated on core search history service.
- Removed legacy variant naming from active application-layer styles/templates (
novo/dexarremnants insrc/app/**). - Eliminated hardcoded UI strings identified in audited runtime pages/components by introducing translation keys.
- Standardized global token surface for spacing and transition variables.
- Added explicit widget metadata support surface for animation/style/permissions and normalized metadata propagation through dynamic rendering.
Architecture Audit Result
Target flow: UI -> Facade -> Domain -> Infrastructure -> Backend
Result:
- Audited website feature containers/components for direct forbidden dependencies.
- No active component-level
HttpClientusage found. - No active component-level DTO imports found.
- No active component-level
environmentaccess found. - Facade/container orchestrations remain in place for catalog and product UX flows.
Legacy Cleanup Result
Searched and addressed:
isMarketplaceVariantmarketplaceVariantprojectName- legacy variant naming usage in app layer (
novo,lavero,dexar)
Result:
- No remaining
isMarketplaceVariant,marketplaceVariant, orprojectNamematches insrc/**. - No remaining
novo/laveromatches insrc/app/**.
Bootstrap Audit Result
Config representability status:
- Core page/section/widget configuration remains bootstrap-driven.
- Widget metadata support expanded in contracts and dynamic renderer.
Documented gaps (no backend changes implemented):
- Full role/permission enforcement for widgets is limited by current auth session shape (no roles/permissions in session model).
- Catalog popular-search defaults are still facade-local constants and should be modeled in bootstrap catalog config.
- Optional persistent-storage key prefix override is not yet modeled in bootstrap schema.
Widget Audit Result
Support status:
title: supportedsubtitle: supportedvisibility: supportedlayout: supportedanimation: supportedstyle: supportedpermissions: supported (auth-gate baseline)
Translation Audit Result
- Remaining hardcoded UI strings found in audited pages/components were replaced with translation keys.
- Translation schema and locale resources were updated for new keys.
Theme Audit Result
Standardized token set ensured:
- Spacing:
--space-xs,--space-sm,--space-md,--space-lg,--space-xl - Radius:
--radius-sm,--radius-md,--radius-lg - Shadows:
--shadow-sm,--shadow-md,--shadow-lg - Transitions:
--transition-fast,--transition-normal,--transition-slow
Runtime mapping now propagates spacing/transition tokens through theme engine.
Validation
Executed:
npm run buildnode tools/architecture/check-boundaries.mjs
Expected acceptance target:
- Build with no warnings
- No legacy marketplace conditions in app layer
- No environment-driven business logic in feature/business layers
- No duplicate implementations in catalog search history path
Remaining Recommendations
- Extend auth session model/contracts to include role and permission claims, then enforce widget role/permission checks in dynamic layout.
- Move
SearchFacade.popularSearchesto bootstrapcatalogsettings to remove remaining hardcoded discovery defaults. - Add bootstrap-configurable storage namespace/prefix for all local persistence services.
- Continue translation audit on legacy pages outside audited standardization scope (especially static/legal and long-tail utility pages).
- Consider normalizing project naming in build metadata (
angular.jsonproject id/output naming) in a dedicated infra-only cleanup sprint.