Step 1-2 (audit + plan): classified 35 project markdown files into Core/Architecture/ADR/Temporary-audit/Sprint-report/Generated-review/ Duplicate/Obsolete/Historical. Agent-tooling files (.agents/skills/**, .superpowers/**, docs/context/**, CLAUDE.md/GEMINI.md/AGENTS.md/ .github/copilot-instructions.md) explicitly out of scope — intentional per-tool duplication, not documentation debt. Step 3 (merge, no information lost): - docs/PROJECT.md -> docs/PROJECT_INDEX.md, rewritten as the single entry point: system overview, living-doc index, archive pointer, current status, and a critical-finding callout up top. - docs/backend/BACKEND-INTEGRATION.md -> docs/BACKEND_API.md, docs/backend/REMAINING-BACKEND-WORK.md -> docs/BACKEND_API_REMAINING_WORK.md (also folded in a legitimate uncommitted status update that had been sitting unstaged all session: categories marked DONE, order-creation endpoint noted done). - RELEASE-NOTES.md merged into CHANGELOG.md (was a near-duplicate of the same release content in friendlier prose), then deleted. - KNOWN-ISSUES.md: added item 13 (see below) and item 14 (missing canDeactivate on admin/products edit, from the archived PROJECT-STATE audit, re-verified still true); added a correction note to Fixed item 7. - All cross-references to renamed/moved files fixed across every kept doc (grep+sed pass, then verified with a link-existence check across all 58 in-scope markdown files -> 0 broken links). Step 4 (archive, nothing deleted without merging first): created docs/archive/, moved 19 files there (3 root sprint reports, 1 platform report, SPRINT-PLAN.md, and 14 one-off audit/review/report docs). Added correction headers to the 3 archived docs whose conclusions were affected by the finding below, rather than silently leaving them misleading. Step 5: docs/PROJECT_INDEX.md rewritten per the mission brief - someone opening the repo should understand the whole system from it. IMPORTANT FINDING (surfaced during this audit, not the mission's primary goal but too significant to bury): pages/category/*, pages/search/*, pages/item-detail/*, pages/info/**, pages/legal/** (40+ files) are entirely unrouted dead code - app.routes.ts's cmsContentRoutes is a literal empty array, and category/search/product routes redirect to CatalogContainerComponent/ ProductDetailsContainerComponent, not these files. Confirmed against app.routes.ts directly and cross-checked against FRONTEND.md's own routing description. This means several fixes from earlier this cycle (RC-Premium-01, RC STORE-01) and the dead-code cleanup sprint's conclusion that these files were live were all wrong - documented as KNOWN-ISSUES.md item 13, flagged at the top of PROJECT_INDEX.md, and noted on the 3 archived docs whose conclusions it affects. No application code was changed to fix this (out of scope per this session's 'documentation only' constraint) - it needs a wire-it-up-or- delete-it decision first. Verification: tsc --noEmit clean, npm run build green, all markdown links across 58 in-scope files resolve (checked programmatically). No application/Angular/backend code modified. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.