Skip to content

Commit 338cb01

Browse files
authored
Fix/quick wins followup (#757)
* fix(generator): improve cms integration scaffolding and docs for model extension * fix(docs): replace outdated @dxp namespace references Align Docker and block usage docs with @O2S naming. This prevents copy-paste setup issues from stale package names. Made-with: Cursor * fix(cli): set eject-block source branch Use create-o2s-app/base for eject-block. Add a changeset for create-o2s-app. Made-with: Cursor * fix(docs): correct telemetry copy in docs Replace the leftover Medusa wording with O2S in telemetry documentation. Add a patch changeset for @o2s/docs. Made-with: Cursor * fix(generator): improve block generator final output Print the block summary and next steps as the final generated change entry. Add a patch changeset for create-o2s-app. Made-with: Cursor * fix(integrations): align service inheritance with framework base classes Switch integration services from implements to extends and add super() where needed so NestJS constructor metadata resolves dependencies correctly at runtime. Update docs code snippets to match the extends-based service pattern. Made-with: Cursor * fix(docs): standardize integration install workspace commands Align integration docs to use @o2s/configs.integrations for package installation and add a single reference table with expected commands. Made-with: Cursor * fix(frontend): warn on unrecognized block types Log a warning in renderBlocks when a block typename is not registered, so missing block wiring is visible instead of failing silently. Made-with: Cursor * fix(types): replace header magic strings with typed constants Add shared HeaderName constants and use them in selected API harmonization and frontend paths to improve header typing and reduce string duplication. Made-with: Cursor * fix(frontend): replace block switch with typed registry Use a typed registry in renderBlocks for compile-time block coverage. Keep runtime warning and null fallback for unknown block types. Made-with: Cursor * fix(docs): clarify Strapi resources repo flow Made-with: Cursor * feat: code review improvements * fix: templates formating issue * fix(api-harmonization): align typed headers in generated services and SDKs Made-with: Cursor * fix(headers): standardize HeaderName usage Replace literal header keys with HeaderName constants in framework controllers, block harmonization services, surveyjs controller, and mocked auth guards. Made-with: Cursor * fix(generators): use HeaderName in generated headers access Update block and integration templates to use HeaderName for header lookups. This keeps scaffolded code aligned with typed framework headers. Made-with: Cursor * fix: build issue fix
1 parent 8c57c81 commit 338cb01

File tree

268 files changed

+1621
-1293
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

268 files changed

+1621
-1293
lines changed

.changeset/all-glasses-begin.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@o2s/docs': patch
3+
---
4+
5+
Update the CMS integration extension guide to use a helper-based model extension pattern instead of manual model re-exports.

.changeset/clear-resources-docs.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'@o2s/integrations.strapi-cms': patch
3+
---
4+
5+
Clarify Strapi integration documentation around external `openselfservice-resources` repository:
6+
explain why content models and example data live in a separate resources repo, how to pick
7+
the right export (`o2s` vs `dxp`), and provide a step-by-step flow for importing the content
8+
model into a Strapi instance.
9+

.changeset/curvy-rocks-kiss.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
'@o2s/api-harmonization': patch
3+
'@o2s/frontend': patch
4+
'@o2s/framework': patch
5+
'@o2s/utils.api-harmonization': patch
6+
---
7+
8+
Introduce typed header name constants (`HeaderName`) using `as const` and
9+
replace selected magic header strings in API harmonization and frontend code.
10+
11+
Update SDK header typing to use `AppHeaders` for stronger request typing.

.changeset/five-crabs-wave.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@o2s/docs': patch
3+
---
4+
5+
Fix telemetry documentation wording to reference O2S instead of Medusa.

.changeset/fresh-birds-provide.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'create-o2s-app': patch
3+
---
4+
5+
Use the `create-o2s-app/base` branch as the source for `eject-block` so ejected blocks match production-ready templates.

.changeset/fuzzy-pets-smile.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'@o2s/frontend': patch
3+
---
4+
5+
Replace the `renderBlocks` switch with a typed block registry to enforce
6+
compile-time coverage of all `Modules.Page.Model.Blocks` entries.
7+
8+
Keep runtime handling for unknown block types with a warning log and `null`
9+
fallback.

.changeset/green-mice-juggle.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@o2s/docs': patch
3+
---
4+
5+
Fix outdated `@dxp` namespace examples in docs to match the current `@o2s` package naming used across the project.

.changeset/green-sheep-doubt.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'create-o2s-app': patch
3+
---
4+
5+
Show a post-generation block summary and next steps at the end of generated changes output.

.changeset/itchy-cycles-sing.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@o2s/docs': patch
3+
---
4+
5+
Fix inconsistent integration installation commands in docs by standardizing
6+
integration package installation to `@o2s/configs.integrations`.
7+
8+
Add a central integrations installation table that explains expected commands.

.changeset/khaki-hounds-type.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
'@o2s/blocks.article': patch
3+
'@o2s/blocks.article-list': patch
4+
'@o2s/blocks.article-search': patch
5+
'@o2s/blocks.bento-grid': patch
6+
'@o2s/blocks.category': patch
7+
'@o2s/blocks.category-list': patch
8+
'@o2s/blocks.cta-section': patch
9+
'@o2s/blocks.document-list': patch
10+
'@o2s/blocks.faq': patch
11+
'@o2s/blocks.feature-section': patch
12+
'@o2s/blocks.feature-section-grid': patch
13+
'@o2s/blocks.featured-service-list': patch
14+
'@o2s/blocks.hero-section': patch
15+
'@o2s/blocks.invoice-list': patch
16+
'@o2s/blocks.media-section': patch
17+
'@o2s/blocks.notification-details': patch
18+
'@o2s/blocks.notification-list': patch
19+
'@o2s/blocks.notification-summary': patch
20+
'@o2s/blocks.order-details': patch
21+
'@o2s/blocks.order-list': patch
22+
'@o2s/blocks.orders-summary': patch
23+
'@o2s/blocks.payments-history': patch
24+
'@o2s/blocks.payments-summary': patch
25+
'@o2s/blocks.pricing-section': patch
26+
'@o2s/blocks.product-details': patch
27+
'@o2s/blocks.product-list': patch
28+
'@o2s/blocks.quick-links': patch
29+
'@o2s/blocks.recommended-products': patch
30+
'@o2s/blocks.service-details': patch
31+
'@o2s/blocks.service-list': patch
32+
'@o2s/blocks.surveyjs-form': patch
33+
'@o2s/blocks.ticket-details': patch
34+
'@o2s/blocks.ticket-list': patch
35+
'@o2s/blocks.ticket-recent': patch
36+
'@o2s/blocks.ticket-summary': patch
37+
'@o2s/blocks.user-account': patch
38+
'@o2s/framework': patch
39+
'@o2s/modules.surveyjs': patch
40+
'@o2s/utils.api-harmonization': patch
41+
---
42+
43+
fix(api-harmonization): align typed header usage across services and generated SDK/controller contracts

0 commit comments

Comments
 (0)