@protobase/cli 0.102.2 → 0.102.3
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/cli/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@protobase/cli",
|
|
3
|
-
"version": "0.102.
|
|
3
|
+
"version": "0.102.3",
|
|
4
4
|
"description": "The protobase command: scaffold, doctor, dev, build and serve a Protobase project.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@better-auth/core": "^1.7.12",
|
|
45
45
|
"@hono/node-server": "^2.1.3",
|
|
46
|
-
"@protobase/config": "0.102.
|
|
47
|
-
"@protobase/layout": "0.102.
|
|
48
|
-
"@protobase/query": "0.102.
|
|
49
|
-
"@protobase/schema": "0.102.
|
|
50
|
-
"@protobase/server": "0.102.
|
|
51
|
-
"@protobase/ui": "0.102.
|
|
52
|
-
"@protobase/workflows": "0.102.
|
|
46
|
+
"@protobase/config": "0.102.3",
|
|
47
|
+
"@protobase/layout": "0.102.3",
|
|
48
|
+
"@protobase/query": "0.102.3",
|
|
49
|
+
"@protobase/schema": "0.102.3",
|
|
50
|
+
"@protobase/server": "0.102.3",
|
|
51
|
+
"@protobase/ui": "0.102.3",
|
|
52
|
+
"@protobase/workflows": "0.102.3",
|
|
53
53
|
"@react-email/render": "^2.1.0",
|
|
54
54
|
"@scalar/hono-api-reference": "^0.12.10",
|
|
55
55
|
"@sentry/vite-plugin": "^11.10.0",
|
|
@@ -553,20 +553,20 @@ Each value takes its colour from the view's `valueColors`, else an enum value's
|
|
|
553
553
|
### Timeline
|
|
554
554
|
|
|
555
555
|
:::caution[Beta]
|
|
556
|
-
A timeline is read-only: bars cannot be dragged or edited, and it has no zoom
|
|
556
|
+
A timeline is read-only: bars cannot be dragged or edited, and it has no zoom.
|
|
557
557
|
:::
|
|
558
558
|
|
|
559
559
|
Records of `resource` that match `filter` as a timeline, a Gantt chart for projects, orders or work: a lane per value of `lane`, a bar per value of `bar` in it, and each record a segment of its bar from `start` to `end`, coloured by its `color` value. A record without an end runs to now. The time axis runs from the earliest start to the latest end and always fits the page's width, so a phone shows the same time compressed, its lanes stacked under their names, and the page never scrolls sideways. Bars that overlap in time get rows of their own in their lane. Pointing at a bar, or moving focus to it, shows its times and each segment's under the lanes, which a screen reader reads from the bar too, a relation's bar by the name of the record it points at.
|
|
560
560
|
|
|
561
561
|
| Prop | |
|
|
562
562
|
| --- | --- |
|
|
563
|
-
| `resource`, `filter` | The records it draws, the
|
|
563
|
+
| `resource`, `filter` | The records it draws, every one the filter matches, read page after page. `resource` is required. |
|
|
564
564
|
| `lane` | The field whose values each get a lane, in the order they first start, such as a project. Required. |
|
|
565
565
|
| `bar` | The field whose values each get a bar in their lane, its records the bar's segments, such as a task; the record's own key gives a bar per record. Required. |
|
|
566
566
|
| `start`, `end` | Date or timestamp fields where a segment starts and ends. Required. |
|
|
567
567
|
| `color` | An enum field: a segment takes its value's tone or colour from the view's [`valueColors`](ui-config.md#value-tones-and-currencies), else the [chart token](theme.md#tokens) of its place among the enum's values, and is striped for a value the view marks with `.waitingValues(...)`. A legend names the values the bars hold. Required. |
|
|
568
568
|
| `select` | The [page parameter](layouts.md#page-parameters) a bar's choice sets, such as `task`: each bar links to the page with its `bar` value there (`?task=42`), the chosen bar is marked `aria-current`, and the timeline's children draw under it inside the chosen bar's first record, or nothing while none is chosen. |
|
|
569
|
-
| `limit` | How many records it reads at most; default and
|
|
569
|
+
| `limit` | How many records it reads at most, from 1 to 100,000; default 20,000. When more match, it draws the latest by `start` and a line under the lanes says how many it shows. |
|
|
570
570
|
| `title`, `description`, `actions`, `empty`, `span` | As on `Table`. |
|
|
571
571
|
|
|
572
572
|
```tsx
|
|
@@ -581,7 +581,7 @@ view<typeof phases>('phases').fields((r) => ({
|
|
|
581
581
|
}))
|
|
582
582
|
```
|
|
583
583
|
|
|
584
|
-
Its [text form](layouts.md#text-form) is a Markdown table with a row per segment: its lane, bar, value, start and end under the fields' labels. A timeline whose fields the user cannot read is left out of their page, and a field it cannot draw, such as a `start` that is no date, stops the server at startup.
|
|
584
|
+
Its [text form](layouts.md#text-form) is a Markdown table with a row per segment of its latest 500, the earliest first: its lane, bar, value, start and end under the fields' labels. A timeline whose fields the user cannot read is left out of their page, and a field it cannot draw, such as a `start` that is no date, stops the server at startup.
|
|
585
585
|
|
|
586
586
|
### Graph
|
|
587
587
|
|