@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@montytools/cli",
3
- "version": "0.5.7",
3
+ "version": "0.5.8",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/TomasMonty/monty-v2.git",
@@ -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
@@ -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.** For a custom page that is still
218
- one table, use `RecordPage` from `@montytools/sdk/react`. To show ONE
219
- record — from a board card, a report row, anywhere use `RecordProfile`
220
- (same module): every field plus one related tab per table that refs this
221
- one, all derived from the schema with zero configuration. Never hand-build
222
- a record dialog. Add behavior with
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
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "@fontsource-variable/inter": "^5.3.0",
13
- "@montytools/sdk": "^0.2.7",
13
+ "@montytools/sdk": "^0.2.9",
14
14
  "@tanstack/react-router": "1.170.17",
15
15
  "class-variance-authority": "^0.7.1",
16
16
  "clsx": "^2.1.1",