@montytools/cli 0.5.7 → 0.5.8
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/package.json +1 -1
- package/skills/monty-design/SKILL.md +13 -0
- package/template/AGENTS.md +9 -6
- package/template/package.json +1 -1
package/package.json
CHANGED
|
@@ -82,6 +82,19 @@ Monty is dark-only; the tokens ship the shell palette (#101112 ground) and
|
|
|
82
82
|
retheme, never hand-pick a dark color, and verify your page against the
|
|
83
83
|
shell (`/apps/<slug>/…`), not the bare dev port.
|
|
84
84
|
|
|
85
|
+
## Records: two shapes, always
|
|
86
|
+
|
|
87
|
+
People already know these two representations — never invent a third:
|
|
88
|
+
|
|
89
|
+
- **ONE record previews in the native popup** — `RecordProfile` from
|
|
90
|
+
`@montytools/sdk/react` (a `RecordPage` row opens it automatically; the
|
|
91
|
+
shell's own record pages open the same modal). Never a side drawer, never
|
|
92
|
+
a hand-built dialog.
|
|
93
|
+
- **MANY records — lists and one-to-many relations — render as columned
|
|
94
|
+
tables**, with the same columns the platform's record pages show
|
|
95
|
+
(`RecordPage`, or the `RecordTable*` parts). Never card lists, never
|
|
96
|
+
title-and-subtitle rows.
|
|
97
|
+
|
|
85
98
|
## Page anatomy
|
|
86
99
|
|
|
87
100
|
Every page opens with the platform chrome from `@montytools/sdk/ui` — the
|
package/template/AGENTS.md
CHANGED
|
@@ -214,12 +214,15 @@ Rules that matter:
|
|
|
214
214
|
mode strips) and the Lyra table classes `SURFACE`/`THEAD`/`TH`/`ROW`/`CHIP`
|
|
215
215
|
for record-like tables (`<div className={SURFACE}><table>…`), identical to
|
|
216
216
|
the app's Configuration surfaces.
|
|
217
|
-
- **Extend records before rebuilding them
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
217
|
+
- **Extend records before rebuilding them — records have exactly two
|
|
218
|
+
shapes.** ONE record previews in the native popup: `RecordProfile` from
|
|
219
|
+
`@montytools/sdk/react` (a `RecordPage` row opens it automatically) —
|
|
220
|
+
every field plus one related tab per table that refs this one, derived
|
|
221
|
+
from the schema with zero configuration; never a side drawer, never a
|
|
222
|
+
hand-built dialog. MANY records — lists and one-to-many relations —
|
|
223
|
+
render as columned tables with the platform's own columns (`RecordPage` /
|
|
224
|
+
the `RecordTable*` parts); never card lists. For a custom page that is
|
|
225
|
+
still one table, use `RecordPage`. Add behavior with
|
|
223
226
|
its typed `headerActions`, `rowActions`, `selectionActions`, and
|
|
224
227
|
`recordActions` callbacks. Use `RecordActionButton` and the lower-level
|
|
225
228
|
`RecordPage*`/`RecordTable*` components from `@montytools/sdk/ui` when you
|
package/template/package.json
CHANGED