@protobase/cli 0.94.40 → 0.94.41
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.41",
|
|
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.41",
|
|
47
|
+
"@protobase/layout": "0.94.41",
|
|
48
|
+
"@protobase/query": "0.94.41",
|
|
49
|
+
"@protobase/schema": "0.94.41",
|
|
50
|
+
"@protobase/server": "0.94.41",
|
|
51
|
+
"@protobase/ui": "0.94.41",
|
|
52
|
+
"@protobase/workflows": "0.94.41",
|
|
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",
|
|
@@ -138,12 +138,12 @@ The table's columns take their width from the first rows it shows, and keep it w
|
|
|
138
138
|
### JSON fields and link text
|
|
139
139
|
|
|
140
140
|
:::caution[Experimental]
|
|
141
|
-
JSON summaries and link text are new and may change in any release.
|
|
141
|
+
Cards, boards and the mobile rows do not open a url link's address yet. JSON summaries and link text are new and may change in any release.
|
|
142
142
|
:::
|
|
143
143
|
|
|
144
|
-
Tables show JSON fields readably, and links can carry their own text. A JSON field, such as a tool call's input, shows in a list's table, a related table, a page's `Table` block and on cards and
|
|
144
|
+
Tables show JSON fields readably, and links can carry their own text. A JSON field, such as a tool call's input, shows in a list's table, a related table, a page's `Table` block and on cards and the mobile rows as a short summary on one line: an object as its keys and values, plain values before nested ones, `command: ls -la, cwd: /tmp, env: {…}`, a list of plain values as those values, and a list of objects as how many it holds, `3 items`. An object or list inside another shows as `{…}` or `[…]`, an empty text as `""`, each value is cut at 40 characters so one long value leaves room for the rest, and the summary at 160. The keys keep the order the database returns, which for a `jsonb` column is shortest first. The record page shows the value written out on several lines across the width of its section; a value of more than 20 lines shows its first 20 with a "Show all" button that shows the rest.
|
|
145
145
|
|
|
146
|
-
A `url` field's link shows its address unless you give it a text. `.format('url', { text })` takes a fixed text, or one with `{field}` placeholders the record fills in, each as the record page shows it, such as an enum value by its label:
|
|
146
|
+
A `url` field's link shows its address unless you give it a text. `.format('url', { text })` takes a fixed text, or one with `{field}` placeholders the record fills in, each as the record page shows it, such as an enum value by its label and a relation by the name of the record it points at:
|
|
147
147
|
|
|
148
148
|
```ts
|
|
149
149
|
view<typeof errors>('errors').fields((r) => ({
|
|
@@ -152,9 +152,11 @@ view<typeof errors>('errors').fields((r) => ({
|
|
|
152
152
|
}))
|
|
153
153
|
```
|
|
154
154
|
|
|
155
|
-
The link still opens the address in a new tab, in the list's cells, related tables, the record page and its sidebar; cards and
|
|
155
|
+
The link still opens the address in a new tab, in the list's cells, related tables, the record page and its sidebar; cards and the mobile rows show the text too. When a field it names is empty, the link shows its address rather than a text with a gap, and so does it for a reader who cannot read a field it names. The list loads the fields a link's text names along with its columns. A text on another format, or one naming a field the resource does not have, stops the server at startup; a later `.format()` with another format drops the text.
|
|
156
156
|
|
|
157
|
-
<gap>
|
|
157
|
+
<gap>Lists, related tables and cards cannot fill a `{field}` naming a relation with the related record's name because resolving those names for link text outside the record page is not implemented; they show its key.</gap>
|
|
158
|
+
|
|
159
|
+
<gap>Cards, boards and a list's mobile rows cannot open a url field's address because links on a card's one-line parts are not implemented; they show its text or address as plain text.</gap>
|
|
158
160
|
|
|
159
161
|
### Related records in a list
|
|
160
162
|
|