@protobase/cli 0.94.13 → 0.94.15
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.15",
|
|
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.15",
|
|
47
|
+
"@protobase/layout": "0.94.15",
|
|
48
|
+
"@protobase/query": "0.94.15",
|
|
49
|
+
"@protobase/schema": "0.94.15",
|
|
50
|
+
"@protobase/server": "0.94.15",
|
|
51
|
+
"@protobase/ui": "0.94.15",
|
|
52
|
+
"@protobase/workflows": "0.94.15",
|
|
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",
|
|
@@ -28,6 +28,7 @@ The page of one record, with its sections, related records, galleries, charts an
|
|
|
28
28
|
- [Galleries](../reference/ui-config.md#galleries): A record's photos show as tiles that open a full-screen lightbox, with keyboard and swipe navigation.
|
|
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
|
+
- [Counts in headings](../reference/ui-config.md#counts-in-headings) (experimental): Related lists can show their count in the heading.
|
|
31
32
|
- [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.
|
|
32
33
|
- [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.
|
|
33
34
|
- [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.
|
|
@@ -125,7 +125,9 @@ The list is `packages/ui/src/tokens.css`, and a test fails when one of its token
|
|
|
125
125
|
|
|
126
126
|
The app's text follows the reader's text size: every size is in `rem`, so all of it grows with the root size. In a browser that is the browser's own text size; in the [iOS app](../guides/mobile-app.md) the phone's text size, Dynamic Type included, and in the Android app the phone's font size. The base size is 0.875rem, 14px at a browser's default. A plugin's text follows it too when its sizes are in `rem`, such as Tailwind's `text-xs`, rather than pixels.
|
|
127
127
|
|
|
128
|
-
|
|
128
|
+
On a phone the top bar's buttons and icons grow with the text only as far as the screen's width allows, as a native app's bar does, so the menu, back, search and record-menu buttons all fit at the largest accessibility sizes, about three times the default; its text keeps growing and the back button's label shortens with an ellipsis.
|
|
129
|
+
|
|
130
|
+
<gap>A list chart's Day and Week switch cannot fit a phone's width at the largest accessibility text sizes because a phone layout for it is not implemented.</gap>
|
|
129
131
|
|
|
130
132
|
## Logo and favicon
|
|
131
133
|
|
|
@@ -760,7 +760,7 @@ view<typeof listings>('listings').recordMode('read')
|
|
|
760
760
|
|
|
761
761
|
### Groups
|
|
762
762
|
|
|
763
|
-
`l.group(title, items, { collapsed?, when? })` puts a heading over sections and related tables, so a long record page shows what matters first and tucks rarely needed parts away. A group holds only `l.section` and `l.related` items, and not another group. With `collapsed: true` it shows only its heading until the person clicks it; clicking again closes it. A closed group draws nothing, so its related tables load nothing until it opens. Without `collapsed` it is a plain heading over its items.
|
|
763
|
+
`l.group(title, items, { help?, count?, collapsed?, when? })` puts a heading over sections and related tables, so a long record page shows what matters first and tucks rarely needed parts away. A group holds only `l.section` and `l.related` items, and not another group. With `collapsed: true` it shows only its heading until the person clicks it; clicking again closes it. A closed group draws nothing, so its related tables load nothing until it opens. Without `collapsed` it is a plain heading over its items. `help` is a line under the heading, shown while the group is closed too, and `count: true` shows beside the heading how many records its related tables hold together; see [Counts in headings](#counts-in-headings).
|
|
764
764
|
|
|
765
765
|
The open groups are in the address, as `?open=<title>` once per group, so a link, a copied URL or a new tab opens the page with the group open. Titles are unique among a view's groups, as the address names a group by its title. The page scrolls as a whole; opening a group adds no scroll box. On the form, a group that holds a field with an error or a conflict opens by itself. The create form shows the sections of a group as plain sections.
|
|
766
766
|
|
|
@@ -981,6 +981,7 @@ Without any configuration, the record page's rail has a **Related records** card
|
|
|
981
981
|
| `display` | The display of `resource`'s list it opens in, and View all opens, such as `cards`; default the list's. Not with `presentation: 'record'`. |
|
|
982
982
|
| `help`, `empty` | A line under the title, and the text when nothing matches (default "Nothing here yet."). |
|
|
983
983
|
| `hideEmpty` | `true` leaves the section off the page while it has no records. |
|
|
984
|
+
| `count` | `true` shows how many records match beside the title; see [Counts in headings](#counts-in-headings). |
|
|
984
985
|
| `lines` | `true` makes the section the record's [lines](#record-lines), edited in place with the record. |
|
|
985
986
|
|
|
986
987
|
The real estate example lists who a unit is let to (the primary tenant and co-signers of the lease that runs today) and that lease:
|
|
@@ -1075,6 +1076,17 @@ l.related('Holding it up', {
|
|
|
1075
1076
|
|
|
1076
1077
|
A `time` or `tone` field the caller cannot read is left out of their cards. <gap>A compact card cannot take its `time` or `tone` through a relation, such as `task_id.updated_at`, because reading them through one is not implemented.</gap>
|
|
1077
1078
|
|
|
1079
|
+
#### Counts in headings
|
|
1080
|
+
|
|
1081
|
+
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.
|
|
1082
|
+
|
|
1083
|
+
```ts
|
|
1084
|
+
l.group('Open tasks', [
|
|
1085
|
+
l.related('Blocked', { resource: 'tasks', field: 'objective_id', filter: 'status = "blocked"', presentation: 'compact', count: true }),
|
|
1086
|
+
l.related('Doing', { resource: 'tasks', field: 'objective_id', filter: 'status = "doing"', presentation: 'compact', count: true }),
|
|
1087
|
+
], { help: 'What is left before the objective is met.', count: true })
|
|
1088
|
+
```
|
|
1089
|
+
|
|
1078
1090
|
#### A related record in full
|
|
1079
1091
|
|
|
1080
1092
|
With `presentation: 'record'` the section shows one related record as part of the page, for a tab meant for reading, such as an objective's notes kept in a record of their own: no card, no title of the record, nothing cut short with **Show more**, and no View all while there is only the one record. It shows the first record in `sort` order, each of `columns` in full as the record page shows it (a markdown field rendered), leaving out a field the record has no value for. On the heading's line, a link **Open** and the singular name of `resource`'s view, such as **Open note**, goes to the record's own page, with `button` before it. When more records match, View all under the record opens them all in the list, so a section such as the latest review does not hide the older ones. With one column the value stands alone, without its label; with several each is under its label. Without a record it shows `empty`, or with `hideEmpty` nothing. A change to the record shows as soon as the page hears of it, as in every related section of a [live](live.md) resource.
|