@protobase/cli 0.94.37 → 0.94.39
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.94.
|
|
3
|
+
"version": "0.94.39",
|
|
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.94.
|
|
47
|
-
"@protobase/layout": "0.94.
|
|
48
|
-
"@protobase/query": "0.94.
|
|
49
|
-
"@protobase/schema": "0.94.
|
|
50
|
-
"@protobase/server": "0.94.
|
|
51
|
-
"@protobase/ui": "0.94.
|
|
52
|
-
"@protobase/workflows": "0.94.
|
|
46
|
+
"@protobase/config": "0.94.39",
|
|
47
|
+
"@protobase/layout": "0.94.39",
|
|
48
|
+
"@protobase/query": "0.94.39",
|
|
49
|
+
"@protobase/schema": "0.94.39",
|
|
50
|
+
"@protobase/server": "0.94.39",
|
|
51
|
+
"@protobase/ui": "0.94.39",
|
|
52
|
+
"@protobase/workflows": "0.94.39",
|
|
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",
|
|
@@ -14,7 +14,7 @@ Pages of your own, built from blocks in a JSX layout.
|
|
|
14
14
|
- [Tailwind classes](../reference/layouts.md#tailwind-classes) (experimental): Layouts can carry Tailwind classes, on plain elements and on blocks, for pages too custom for blocks.
|
|
15
15
|
- [Full-width pages](../reference/blocks.md#page): A page fills the whole area beside the sidebar instead of a centred column, for a dashboard with many blocks.
|
|
16
16
|
- [Data blocks](../reference/blocks.md#data): Counts, tables, single records, rows of cards, field values and progress bars.
|
|
17
|
-
- [Row buttons](../reference/blocks.md#row-buttons) (experimental): A table's rows carry a button labelled by a field of the row, such as its next step; the row decides where it goes: a record tab a field names, a list with a filter built from its fields, or an outside https link a field holds.
|
|
17
|
+
- [Row buttons](../reference/blocks.md#row-buttons) (experimental): A table's rows carry a button labelled by a field of the row, such as its next step; the row decides where it goes: a record tab a field names, a list with a filter built from its fields, or an outside https link a field holds. On mobile width the button sits under the row's first cell.
|
|
18
18
|
- [Record rows](../reference/blocks.md#recordrow): A sideways row of cards for a filter, favorites or saved searches, with a count and new-record marks.
|
|
19
19
|
- [Record cards](../reference/blocks.md#recordcards): Full-width cards with fields and buttons, stacked or in a carousel.
|
|
20
20
|
- [Image block](../reference/blocks.md#image): A picture one of the app's API functions draws for the reader, such as a system map, at the size and theme the client asks, refreshed on a timer; a client that draws no images shows its alt text, or nothing.
|
|
@@ -241,10 +241,10 @@ The first records of a list, drawn the way the resource's list page draws them:
|
|
|
241
241
|
#### Row buttons
|
|
242
242
|
|
|
243
243
|
:::caution[Experimental]
|
|
244
|
-
Row buttons may change in any release. They do not show when a table switches to a list display such as cards
|
|
244
|
+
Row buttons may change in any release. They do not show when a table switches to a list display such as cards.
|
|
245
245
|
:::
|
|
246
246
|
|
|
247
|
-
`button: { label, to }` adds a last column with a button on each row: a link, drawn as a button, to `to`, an [address](layouts.md#addresses) in the app, such as a record on one of its [tabs](ui-config.md#tabs). `{field}` in the address or the label is replaced by the row's value, the label's as the record page shows it (an enum value by its label), so each row can name its own next step. A row with no value for a field the button names shows no button. The button is checked when the config loads, and `/meta` gives it, on the block or the related section, to callers who can read the fields it names and follow its address, and leaves it out for the others. A [related section](ui-config.md#related-records) takes the same `button`, on its table's rows or its cards.
|
|
247
|
+
`button: { label, to }` adds a last column with a button on each row: a link, drawn as a button, to `to`, an [address](layouts.md#addresses) in the app, such as a record on one of its [tabs](ui-config.md#tabs). `{field}` in the address or the label is replaced by the row's value, the label's as the record page shows it (an enum value by its label), so each row can name its own next step. Below the `md` breakpoint (768px), where a table keeps its columns whole and scrolls sideways, the button sits under the text of the row's first cell instead, so it is on screen without scrolling. A row with no value for a field the button names shows no button. The button is checked when the config loads, and `/meta` gives it, on the block or the related section, to callers who can read the fields it names and follow its address, and leaves it out for the others. A [related section](ui-config.md#related-records) takes the same `button`, on its table's rows or its cards.
|
|
248
248
|
|
|
249
249
|
```tsx
|
|
250
250
|
<Table
|
|
@@ -278,8 +278,6 @@ Each row can decide where its button goes:
|
|
|
278
278
|
|
|
279
279
|
<gap>A row button cannot show when the table switches to a list display such as cards because drawing it on a display is not implemented.</gap>
|
|
280
280
|
|
|
281
|
-
<gap>A row button cannot show beside its row's first cell on a phone, where the table scrolls sideways to reach it, because a mobile layout for table rows is not implemented.</gap>
|
|
282
|
-
|
|
283
281
|
#### Signing several records off
|
|
284
282
|
|
|
285
283
|
:::caution[Experimental]
|
|
@@ -410,6 +410,8 @@ Every widget takes `secondary: true` (e.g. `w.facets(r.agent, { secondary: true
|
|
|
410
410
|
|
|
411
411
|
A list can show a graph of how many of its records fall on each day or week, such as a daily graph of new listings. `.chart((r) => ({ field, range, granularity }))` draws the list's records per day over a date or timestamp field as bars above the list, following its filters, headed by their total and how much the second half of the bars differs from the first. `range` is how far back it reaches: `7d`, `30d`, `90d`, `1y` or `all`. A **Day** and **Week** switch changes the bars, and **Week** shows the last 12 weeks whatever the range; `granularity: 'week'` opens it on weeks. <gap>`hour` and `month` are accepted and show days, as hourly and monthly bars are not built.</gap> Its bars do not filter the list.
|
|
412
412
|
|
|
413
|
+
<gap>A list's chart per day or week cannot name a bar's whole period, mark the running one or be read by keyboard and screen reader because its own chart component does not draw them yet, as a trend's and a Chart block's do.</gap>
|
|
414
|
+
|
|
413
415
|
It can show the list's records per value of a field instead, such as orders per status or revenue per customer: `.chart((r) => ({ groupBy: r.status, type: 'donut' }))`. `groupBy` is a filterable field that is no date, such as an enum, a boolean or a relation, with an index that serves it; `type` is `bar` (the default, the largest first) or `donut`; `sum: r.total` or `average: r.total` adds up a numeric field instead of counting (a donut takes no average); `limit` is how many values it shows, 10 by default. Each value links to the list filtered to it, and follows the list's filters, its own terms on `groupBy` included. A date, file or JSON `groupBy`, or a `sum` of a field that is no number, stops the server at startup, and a user who cannot read one of its fields sees no chart. A page shows the same with the [`Chart`](blocks.md#chart) block.
|
|
414
416
|
|
|
415
417
|
## List displays
|
|
@@ -1166,7 +1168,7 @@ Each series is read through [`:aggregate`](api.md), grouped by `at` with `field
|
|
|
1166
1168
|
<gap>A reader cannot switch a trend's range or bar length, or open the records a bar counts, because neither is implemented.</gap>
|
|
1167
1169
|
:::
|
|
1168
1170
|
|
|
1169
|
-
`l.trend(title, options)` draws bars of how many records point at the record on the page, per day, week or month of a date of theirs, as a list's [chart](#filters-and-the-chart) counts them, such as an objective's shipped tasks per week over the last 90 days. It takes the options of a list's chart, `range` and `granularity`, and counts only this record's records. Records without a value in `at`, such as tasks not shipped yet, are not counted. A line over the bars gives their total over the range, such as **4 in the last 90 days**, or **None in the last 90 days** over flat bars, and a chart that could not load offers **Try again**. Name what `at` means in the title or the help, such as "Shipped per week".
|
|
1171
|
+
`l.trend(title, options)` draws bars of how many records point at the record on the page, per day, week or month of a date of theirs, as a list's [chart](#filters-and-the-chart) counts them, such as an objective's shipped tasks per week over the last 90 days. It takes the options of a list's chart, `range` and `granularity`, and counts only this record's records. Records without a value in `at`, such as tasks not shipped yet, are not counted. A line over the bars gives their total over the range, such as **4 in the last 90 days**, or **None in the last 90 days** over flat bars, and a chart that could not load offers **Try again**. A bar's tooltip names its whole week or month, such as **24 – 30 Aug 2026**, and the bar still filling up is outlined with a dash and runs **to today**. The chart takes focus: the left and right arrow keys move the tooltip from bar to bar and Escape closes it, and a screen reader reads the bars as a table; a [Chart block](blocks.md#chart) over a date and `l.chart` do the same. Name what `at` means in the title or the help, such as "Shipped per week".
|
|
1170
1172
|
|
|
1171
1173
|
| Option | |
|
|
1172
1174
|
| --- | --- |
|