Decouple useProductContent.ts — adapter-owned feature narratives #5

Open
opened 2026-05-04 15:42:17 +02:00 by libretech · 0 comments
Owner

Part of #2

Problem

composables/useProductContent.ts (lines 1–369) hardcodes notebook-specific feature narratives:

  • CoverType enum: "Hardcover" | "Softcover" | "Heft" | "Spiralbindung"
  • Feature modules per binding: "Klassische Fadenheftung", "VIVUS 89 Papier", "FSC® C018175"
  • Technical specs: paper sources, FSC certificate numbers, made-in-Stuttgart claims

These belong to the mp adapter, not the white-label.

Scope

This issue is about decoupling, not generalising the product schema. The Strapi schema (product-covers, product-pages, product-ruling, product-patterns) stays notebook-shaped — generalisation is future work.

Acceptance

  • Move FEATURE_MODULES + TECHNICAL_SPECS narrative content out of libreshop/shop
  • libreshop/shop ships generic placeholder feature modules ("High-quality binding", "Premium paper") so the bare image is demonstrable
  • Adapter overrides via Nuxt layer composable shadowing
  • Document the override surface (which composable, what shape)
  • No FSC certificate numbers, no specific paper-mill names, no Stuttgart claims in white-label
Part of https://git.librete.ch/libreshop/shop/issues/2 ## Problem `composables/useProductContent.ts` (lines 1–369) hardcodes notebook-specific feature narratives: - CoverType enum: "Hardcover" | "Softcover" | "Heft" | "Spiralbindung" - Feature modules per binding: "Klassische Fadenheftung", "VIVUS 89 Papier", "FSC® C018175" - Technical specs: paper sources, FSC certificate numbers, made-in-Stuttgart claims These belong to the mp adapter, not the white-label. ## Scope This issue is about **decoupling**, not generalising the product schema. The Strapi schema (product-covers, product-pages, product-ruling, product-patterns) stays notebook-shaped — generalisation is future work. ## Acceptance - [ ] Move FEATURE_MODULES + TECHNICAL_SPECS narrative content out of libreshop/shop - [ ] libreshop/shop ships generic placeholder feature modules ("High-quality binding", "Premium paper") so the bare image is demonstrable - [ ] Adapter overrides via Nuxt layer composable shadowing - [ ] Document the override surface (which composable, what shape) - [ ] No FSC certificate numbers, no specific paper-mill names, no Stuttgart claims in white-label
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: libreshop/shop#5
No description provided.