@se-studio/skills 1.16.0 → 1.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @se-studio/skills
|
|
2
2
|
|
|
3
|
+
## 1.16.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7344552: se-marketing-sites-cms-routes-and-appshared documents `peopleTypeSlug`, `segmentConfig`, the new article/person route hooks, the `enableArticleTypeIndex` fix and policy entries for allowlisted pages. It also notes that `segmentConfig` `force-dynamic` / `edge` trade away static rendering, that the checker fails an illegal `segmentConfig`, and why `enableArticleTypeTagIndex` is independent of `articlesSlug`.
|
|
8
|
+
|
|
3
9
|
## 1.16.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -9,6 +9,8 @@ Reference app: **example-empty** (this monorepo). Customer sites with fuller rou
|
|
|
9
9
|
|
|
10
10
|
Do not add a `page.tsx` for a marketing URL. That URL is a Contentful slug on the catch-all. Extra folders are only article types and person types listed in `src/lib/marketing-routes.json`. Route files come from `generate-marketing-routes <app> --from-cms --write` (the `@se-studio/project-build` bin; a site runs `pnpm generate:routes`; `node scripts/generate-marketing-routes.mjs` exists only in se-core-product). `check-marketing-routes <app>` (same package) fails any hand-written `(cms-routes)` page outside `marketing-routes.json` or its `allowHandWrittenPages` list. Tabs, filters and listings come from CMS tags and article/tag types, never from code-side mappings or a hand-written route for grouping. A site that needs its own tag listing or filter component passes `renderTagListing` to `createRouteHandlers`; it does not hand-write the tag route. Known non-CMS pages (`resource-list-cards`, `(cms-routes)/preview`) go on `allowHandWrittenPages` as `{ "path": "preview", "reason": "..." }` (a bare string is deprecated and warns). The check also fails when `marketing-routes.json` is missing, unless a not-yet-migrated repo has `src/lib/marketing-routes.opt-out.json` with a `reason`; it also covers `page.ts[x]` anywhere under `src/app` and `route.ts` under `(cms-routes)`, modified files included. The shared site CI runs it (`run_marketing_routes`, no CMS secrets). Index-only article types (`detailPages: false`), nested article slugs (`nestedSlugs: true`, `[...slugs]`) and `excludeArticleTypes` are per-type options in `marketing-routes.json`; custom person pages use the `renderPersonIndex` / `renderPersonDetail` hooks and article metadata tweaks `transformArticleMetadata`, never a hand-written route. Reviews of any added or modified hand-written page or route, or an allowlist change, must come from a reviewer who did not author the change. If CMS writes are off and the tag, type or data you need is missing, stop and ask. Do not code around it.
|
|
11
11
|
|
|
12
|
+
Before hand-writing a page and listing it in `allowHandWrittenPages`, use the config and hooks instead: `peopleTypeSlug` (the CMS custom type slug when it differs from the people URL, e.g. URL `/people/`, type `person`), `segmentConfig` (`{ "resources": { "dynamic": "force-static" } }` writes literal segment config into that generated page), and the opt-in `createRouteHandlers` hooks `transformPersonMetadata`, `renderArticleTypeListing` (index page, after the CMS contents) and `renderArticleDetail` (`{ before, after }` around an article's contents). `segmentConfig` accepts `dynamic: 'force-dynamic'` and `runtime: 'edge'` as opt-ins, but each trades away static rendering (and the R5 SSG guard) on that generated route; `check-marketing-routes` fails an illegal `segmentConfig`. `enableArticleTypeIndex` is true only when `articlesSlug` is set (the hub only); `enableArticleTypeTagIndex` stays `tagInPath && (articlesSlug || articleTypes)` because tag indexes live on article-type routes (`/resources/events/{tag}/`) and need no hub. A hand-written page that stays on the allowlist may also be listed in `route-build-policy.json` `mustBeSsgOrStatic`; `generate --write` keeps that entry. Details: `@se-studio/project-build` and `@se-studio/core-ui` READMEs.
|
|
13
|
+
|
|
12
14
|
## Route Group: (cms-routes)
|
|
13
15
|
|
|
14
16
|
All CMS-driven pages live under `src/app/(cms-routes)/`. The layout enables dynamic params:
|