@notis_ai/cli 0.2.0-beta.1792640036691.1 → 0.2.0-beta.1792662829286.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/dist/base-skills/notis-spaces/.notis-base-skill.json +1 -1
- package/dist/base-skills/notis-spaces/SKILL.md +2 -1
- package/dist/base-skills/notis-spaces/references/design.md +1 -0
- package/dist/base-skills/notis-spaces/references/sdk.md +10 -0
- package/dist/space-harness/host.js +94 -72
- package/dist/space-sdk/dist/ui.js +6 -6
- package/dist/space-sdk/src/tailwind-candidates.d.ts +45 -0
- package/dist/space-sdk/src/ui/board/BoardView.d.ts +36 -0
- package/dist/space-sdk/src/ui/board/boardModel.d.ts +46 -0
- package/dist/space-sdk/src/ui/board/boardWords.d.ts +9 -0
- package/dist/space-sdk/src/ui/board/index.d.ts +5 -0
- package/dist/space-sdk/src/ui/index.d.ts +1 -0
- package/dist/space-sdk/src/ui/list/ListReader.d.ts +8 -2
- package/dist/space-sdk/src/ui/list/index.d.ts +1 -1
- package/dist/space-sdk/src/ui/list/useListKeys.d.ts +11 -0
- package/dist/view-renderer/dist/host.js +158 -136
- package/dist/view-renderer/src/png.js +213 -0
- package/dist/view-renderer/src/pool.js +44 -10
- package/dist/view-renderer/src/renderer.js +34 -3
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"schema":1,"stamp":
|
|
1
|
+
{"schema":1,"stamp":1792661200,"commit":"ff2a9f14ff6a63cb7fdd2fb65572946d33f72d0b"}
|
|
@@ -104,7 +104,8 @@ actually displays, resolve its current link and render the deployed view.
|
|
|
104
104
|
|
|
105
105
|
Behaviour is held by the pieces, not by instructions. Start from the piece that
|
|
106
106
|
matches the view: a list beside a reader is one `ListReader` of about 20 lines
|
|
107
|
-
([the sample](references/views.md#write-the-view)),
|
|
107
|
+
([the sample](references/views.md#write-the-view)), items by stage are one
|
|
108
|
+
`BoardView` (a column per stage, `onMove` to move tiles), and keys, selection, panels,
|
|
108
109
|
looks and words come with it. Change only what the Space needs, as shallow as
|
|
109
110
|
possible:
|
|
110
111
|
|
|
@@ -14,6 +14,7 @@ Space's data, and change only what the Space needs (the four rungs in
|
|
|
14
14
|
| A gallery where each item has a picture or a mark (competitors, integrations, skills to discover) | `ListReader` with `layout: 'tiles'` and `renderTile`; every other list stays rows |
|
|
15
15
|
| Items on dates | `CalendarView` (month, week, agenda) |
|
|
16
16
|
| Items over time, by lane | `TimelineView` |
|
|
17
|
+
| Items by stage, moved from one stage to the next (a sales funnel, a production pipeline) | `BoardView`: one column per stage, `onMove` to move tiles |
|
|
17
18
|
| Numbers over a period | `Section kind="bar"` with `PeriodPicker`, `StatRow`, `Section kind="chart"` with `Chart`, `Section kind="data"` with `ChartTable`, top to bottom, full width |
|
|
18
19
|
| One record as the page | `DocumentPage` (see [SDK](sdk.md#first-party-record-components)). Pick its `width` for the page: `standard` (the default) is a centred 900 px reading column for a page read as text, `wide` (1200 px) or `full` for a record that is a working surface such as a wide table or board |
|
|
19
20
|
| A form or settings page | `Section kind="form"`, `Button`, `NativeSelect`, `SegmentedControl`, `Notice`, `EmptyState` |
|
|
@@ -91,6 +91,16 @@ rather than from a copy.
|
|
|
91
91
|
thumbnails, a rail), `useReorder({ items, getId, onReorder, orientation })`
|
|
92
92
|
gives the ordered `items`, `getItemProps(id)` for each element and an
|
|
93
93
|
`announcer` to render once.
|
|
94
|
+
- **Boards**: `BoardView` is a Kanban board (a funnel, a pipeline): one
|
|
95
|
+
column per stage (`columns`, each `{ id, label, tone? }`, with `getColumn`
|
|
96
|
+
saying where an item sits) and a tile per item (`renderTile`, the same
|
|
97
|
+
`TileParts` as tiles). It is `ListReader` underneath, so `reader`, the open
|
|
98
|
+
modes, `actions`, selection and `search` work the same; a tile opens on
|
|
99
|
+
Enter or a click and nothing opens on its own. `onMove(ids, toColumnId,
|
|
100
|
+
index?)` moves tiles by drag and drop, Shift+Left/Right and M (Move to):
|
|
101
|
+
update the items in the page (optimistically if you like) and return an
|
|
102
|
+
undo function for Undo in the toast. Leave `onMove` out for a board that
|
|
103
|
+
only reads. Use it rather than columns of your own.
|
|
94
104
|
- **Time and numbers**: `PeriodPicker` with `usePeriod`, `DayPicker`,
|
|
95
105
|
`CalendarView`, `TimelineView`, `Chart`, `StatRow`, `ChartTable`,
|
|
96
106
|
`RenderChartData`. `Chart` stacks bars or areas (`stacked`) and runs bars
|