@protobase/cli 0.94.23 → 0.94.24

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.
@@ -1,4 +1,4 @@
1
1
  //#region package.json
2
- var version = "0.94.23";
2
+ var version = "0.94.24";
3
3
  //#endregion
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@protobase/cli",
3
- "version": "0.94.23",
3
+ "version": "0.94.24",
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.23",
47
- "@protobase/layout": "0.94.23",
48
- "@protobase/query": "0.94.23",
49
- "@protobase/schema": "0.94.23",
50
- "@protobase/server": "0.94.23",
51
- "@protobase/ui": "0.94.23",
52
- "@protobase/workflows": "0.94.23",
46
+ "@protobase/config": "0.94.24",
47
+ "@protobase/layout": "0.94.24",
48
+ "@protobase/query": "0.94.24",
49
+ "@protobase/schema": "0.94.24",
50
+ "@protobase/server": "0.94.24",
51
+ "@protobase/ui": "0.94.24",
52
+ "@protobase/workflows": "0.94.24",
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",
@@ -29,6 +29,7 @@ The page of one record, with its sections, related records, galleries, charts an
29
29
  - [Related records](../reference/ui-config.md#related-records): Every record page shows how many records point at it, and can list related records, also through a join resource, as a table, another display or cards with buttons, each row or card with a button to an address its fields name.
30
30
  - [Compact related cards](../reference/ui-config.md#compact-related-cards) (experimental): Related records can show as compact cards, coloured by a field.
31
31
  - [Counts in headings](../reference/ui-config.md#counts-in-headings) (experimental): Related lists can show their count in the heading.
32
+ - [Group help lines](../reference/ui-config.md#groups) (experimental): A group can show a short line under its heading, also while it is closed.
32
33
  - [A related record in full](../reference/ui-config.md#a-related-record-in-full): A related record can show its fields in full, without a card, for reading tabs such as notes.
33
34
  - [Record lines](../reference/ui-config.md#record-lines): The related table a record's view marks as its lines, such as an invoice's, shows all of them on its page, where you edit, add, remove and reorder them, and Save writes the record and its lines together.
34
35
  - [Custom section fallbacks](../reference/custom-components.md#record-section-fallbacks) (experimental): Where your own component on a record page cannot be drawn, such as on a watch, what you declare shows in its place: any main-column item in the main column, conversations included, and sidebar maps and sidebar custom components in the sidebar.
@@ -239,6 +239,10 @@ The first records of a list, drawn the way the resource's list page draws them:
239
239
 
240
240
  #### Row buttons
241
241
 
242
+ :::caution[Experimental]
243
+ Row buttons may change in any release. They do not show when a table switches to a list display such as cards, and on a mobile screen they sit at the end of the row, out of view until the table scrolls sideways.
244
+ :::
245
+
242
246
  `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.
243
247
 
244
248
  ```tsx
@@ -254,7 +258,7 @@ The first records of a list, drawn the way the resource's list page draws them:
254
258
  Each row can decide where its button goes:
255
259
 
256
260
  - **A record's tab from a field**: `tab: '{tab}'` opens the tab the row's `tab` field names; a name the record page has no tab for opens its first tab.
257
- - **A filtered list**: `{ kind: 'list', resource: 'holds', filter: 'task_id = {task_id} AND state = "{state}"' }` opens the list with a filter built from the row. A text value goes in quotes, escaped so a title with quotes in it stays one value; a value outside quotes must be a number or `true`/`false`, and a row with any other value there shows no button. The filter's fields must be filterable, as in any address.
261
+ - **A filtered list**: `{ kind: 'list', resource: 'holds', filter: 'task_id = {task_id} AND state = "{state}"' }` opens the list with a filter built from the row. A text value goes in quotes, on its own, escaped so a title with quotes in it stays one value; a `{field}` inside a longer quoted value, such as `'re {verb}'`, is refused when the config loads; a value outside quotes must be a number or `true`/`false`, and a row with any other value there shows no button. The filter's fields must be filterable, as in any address.
258
262
  - **An outside page**: `{ label: 'Error report', href: '{report_url}' }` opens the page the row's `report_url` field holds, in a new tab without the referrer, and the button carries the outside-link mark, which screen readers hear as "opens in a new tab". The `href` is one field, never a URL put together from parts, and a row whose field holds no `https:` URL shows no button.
259
263
  - **A different kind per row**: `button` takes a list of these, and each row shows the first whose fields it holds, so one list can hold items that each need a different act. A row whose first such choice leads nowhere, such as an `href` field without an `https:` URL, shows no button rather than the next choice. A caller who cannot read a choice's fields or follow its address gets the list without it.
260
264
 
@@ -273,7 +277,7 @@ Each row can decide where its button goes:
273
277
 
274
278
  <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>
275
279
 
276
- <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 phone layout for table rows is not implemented.</gap>
280
+ <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>
277
281
 
278
282
  ### RecordCard
279
283
 
@@ -1099,6 +1099,10 @@ A `time` or `tone` field the caller cannot read is left out of their cards. <gap
1099
1099
 
1100
1100
  #### Counts in headings
1101
1101
 
1102
+ :::caution[Experimental]
1103
+ Counts in headings may change in any release. A count covers only the records the reader may see, and none shows when its query fails or the server gives no total.
1104
+ :::
1105
+
1102
1106
  With `count: true` a related section shows beside its title how many records match, such as **Doing 2**, so the reader sees what is behind each heading without scrolling. A group with `count: true` shows how many records its related tables hold together, while it is closed too, so a closed group still says whether opening it is worth it. A section with no records shows 0. The count is the records the reader may see, as the list API counts them with their access rules, and it follows the page's own changes and, on a [live](live.md) resource, everyone else's. The count is a quiet pill after the title, 0 as an outline, and a screen reader hears it with the records' name, such as "Doing (2 tasks)"; while it loads, a placeholder of its size holds its place, and a count that cannot be read shows no pill rather than 0. `help` puts a line under the heading of either.
1103
1107
 
1104
1108
  ```ts