create-mercato-app 0.5.1-develop.2935.357c9db339 → 0.5.1-develop.2949.009dcdd2d5
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.
|
@@ -165,6 +165,7 @@ Register in `src/modules.ts`: `{ id: '<id>', from: '@app' }`
|
|
|
165
165
|
- Custom modules use `from: '@app'` in `src/modules.ts`
|
|
166
166
|
- Standalone apps expose `yarn mercato configs cache ...` because the template enables the `configs` module from `@open-mercato/core`
|
|
167
167
|
- `yarn generate` automatically runs a best-effort structural cache purge (`yarn mercato configs cache structural --all-tenants`) after successful generation; if the cache command is unavailable, generation still succeeds
|
|
168
|
+
- Detail/read-model APIs that expose `customFields` MUST return bare field keys via `normalizeCustomFieldResponse()` (for example `{ priority: 3 }`). Keep `cf_` / `cf:` prefixes for request payloads, filters, and form field IDs only.
|
|
168
169
|
- Sidebar icons MUST use `lucide-react` components — never inline SVG via `React.createElement`
|
|
169
170
|
- `page.meta.ts` MUST include `pageGroup`, `pageGroupKey`, and `pageOrder` for sidebar grouping
|
|
170
171
|
- Settings pages MUST use `pageContext: 'settings' as const` with `navHidden: true`
|
|
@@ -165,6 +165,7 @@ Register in `src/modules.ts`: `{ id: '<id>', from: '@app' }`
|
|
|
165
165
|
- Custom modules use `from: '@app'` in `src/modules.ts`
|
|
166
166
|
- Standalone apps expose `yarn mercato configs cache ...` because the template enables the `configs` module from `@open-mercato/core`
|
|
167
167
|
- `yarn generate` automatically runs a best-effort structural cache purge (`yarn mercato configs cache structural --all-tenants`) after successful generation; if the cache command is unavailable, generation still succeeds
|
|
168
|
+
- Detail/read-model APIs that expose `customFields` MUST return bare field keys via `normalizeCustomFieldResponse()` (for example `{ priority: 3 }`). Keep `cf_` / `cf:` prefixes for request payloads, filters, and form field IDs only.
|
|
168
169
|
- Sidebar icons MUST use `lucide-react` components — never inline SVG via `React.createElement`
|
|
169
170
|
- `page.meta.ts` MUST include `pageGroup`, `pageGroupKey`, and `pageOrder` for sidebar grouping
|
|
170
171
|
- Settings pages MUST use `pageContext: 'settings' as const` with `navHidden: true`
|
package/package.json
CHANGED
package/template/AGENTS.md
CHANGED
|
@@ -323,6 +323,8 @@ Notes:
|
|
|
323
323
|
|
|
324
324
|
The standalone template enables the `configs` module from `@open-mercato/core`, so `yarn mercato configs cache ...` is available here after installation. After structural changes such as enabling or disabling modules, adding or removing backend/frontend pages, or changing sidebar/navigation injections, run `yarn generate`. The generator now performs a best-effort structural cache purge automatically after successful generation; if the cache command is unavailable, generation still succeeds.
|
|
325
325
|
|
|
326
|
+
Detail/read-model APIs that expose `customFields` must return bare field keys via `normalizeCustomFieldResponse()` (for example `{ priority: 3 }`). Keep `cf_` / `cf:` prefixes for request payloads, filters, and form field IDs only.
|
|
327
|
+
|
|
326
328
|
### Path Aliases
|
|
327
329
|
|
|
328
330
|
- `@/*` → `./src/*`
|