@protobase/cli 0.123.0 → 0.123.1
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 +1 -1
- package/package.json +8 -8
- package/skills/protobase/references/features/record-pages.md +1 -1
- package/skills/protobase/references/reference/custom-components.md +1 -1
- package/skills/protobase/references/reference/realtime-relay.md +4 -4
- package/skills/protobase/references/reference/sidebar.md +1 -1
- package/skills/protobase/references/reference/ui-config.md +1 -1
package/dist/cli/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@protobase/cli",
|
|
3
|
-
"version": "0.123.
|
|
3
|
+
"version": "0.123.1",
|
|
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.123.
|
|
47
|
-
"@protobase/layout": "0.123.
|
|
48
|
-
"@protobase/query": "0.123.
|
|
49
|
-
"@protobase/schema": "0.123.
|
|
50
|
-
"@protobase/server": "0.123.
|
|
51
|
-
"@protobase/ui": "0.123.
|
|
52
|
-
"@protobase/workflows": "0.123.
|
|
46
|
+
"@protobase/config": "0.123.1",
|
|
47
|
+
"@protobase/layout": "0.123.1",
|
|
48
|
+
"@protobase/query": "0.123.1",
|
|
49
|
+
"@protobase/schema": "0.123.1",
|
|
50
|
+
"@protobase/server": "0.123.1",
|
|
51
|
+
"@protobase/ui": "0.123.1",
|
|
52
|
+
"@protobase/workflows": "0.123.1",
|
|
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",
|
|
@@ -11,7 +11,7 @@ The page of one record, with its sections, related records, galleries, charts an
|
|
|
11
11
|
- [Record pages that open another](../reference/ui-config.md#a-record-page-that-opens-another): A record's page opens another address built from its fields in its place, such as a workflow run opening its workflow's page with the run shown.
|
|
12
12
|
- [Record page opens elsewhere](../reference/ui-config.md#open-elsewhere) (beta): A view can send its record's address to another page its fields name, such as a message opening in its conversation, so search results and links land where the record is read.
|
|
13
13
|
- [Full-area record pages](../reference/ui-config.md#full-area-record-pages) (beta): A view draws its record pages with a component of its own that fills the area beside the sidebar and under the top bar, such as a chat channel, and links to the standard page.
|
|
14
|
-
- [Conversation pages](../reference/ui-config.md#conversation-pages) (beta): A record's page is its conversation, configured with no component of your own: a header with its title, topic and details, its messages grouped by day and author with mentions and edits shown, and a box that sends one, opening on a New messages line at the reader's place, on the web and at mobile width. People react to its messages, edit and delete them, reply in threads beside the conversation and share files that show under their message, by pointer or touch,
|
|
14
|
+
- [Conversation pages](../reference/ui-config.md#conversation-pages) (beta): A record's page is its conversation, configured with no component of your own: a header with its title, topic and details, its messages grouped by day and author with mentions and edits shown, and a box that sends one, opening on a New messages line at the reader's place, on the web and at mobile width. People react to its messages, edit and delete them, reply in threads beside the conversation and share files that show under their message, by pointer or touch, start or join the record's call from its header, shown beside the messages, or above them at mobile width, and see who else types, in the conversation and in a thread, with or without a realtime relay.
|
|
15
15
|
- [Read view and edit](../reference/ui-config.md#read-view-and-edit): A record opens as a read-only fact sheet or a form, and Edit opens the form at its own address.
|
|
16
16
|
- [Unsaved edits](../reference/ui-config.md#editing-a-record): Unsaved changes to a record stay in the browser and can be resumed, and leaving a form, a dialog or a comment with changes asks first.
|
|
17
17
|
- [Record forms](../reference/ui-config.md#editing-a-record): Relations are picked from a list that narrows as you type, numbers are read as the browser's language writes them, and a refused save says under each field what is wrong.
|
|
@@ -493,7 +493,7 @@ In an app with the [realtime relay](realtime-relay.md#pages), a chat of your own
|
|
|
493
493
|
| | |
|
|
494
494
|
| --- | --- |
|
|
495
495
|
| `TypingLine` | The line above the box saying who else types on `channel`, by the names `useMembers()` gives; it keeps its height while nobody does, so the box does not move. |
|
|
496
|
-
| `useTypers(channel)` | The user ids of the others who type on the channel now, each until six seconds after the last they sent; empty without the relay or while it is down. |
|
|
496
|
+
| `useTypers(channel)` | The user ids of the others who type on the channel now, outside threads, each until six seconds after the last they sent; empty without the relay or while it is down. |
|
|
497
497
|
| `useTypingSender(channel)` | `onText`, to call with the box's text as it changes, and `onSent`, once a message went: it sends `typing` events at most every three seconds, and that the reader stopped when they empty the box, send or leave. Nothing goes before the channel is joined. |
|
|
498
498
|
| `useViewChannel(channel)` | Says the page shows the channel while it is drawn, so only its notices read the page again, and joins it when the connect ticket did not list it, such as a conversation the reader joined since. |
|
|
499
499
|
|
|
@@ -118,25 +118,25 @@ A person who shares no channel is published to no one. <gap>A page cannot show w
|
|
|
118
118
|
With `realtime.relay`, the admin app follows the relay for someone signed in, on one socket per page, and `/meta` names the resources whose changes the relay notices:
|
|
119
119
|
|
|
120
120
|
- **Live updates:** the lists, records and counts of those resources are read again as the relay notices their changes, new, edited and deleted records alike, instead of through [`/api/live`](live.md), which stays for the other `.live()` resources. While a [conversation page](ui-config.md#conversation-pages) is open, only its own channel's notices read it again; the notices of other channels only move the [unread marks](sidebar.md#typing-and-unread-from-the-relay). After the socket was down, everything shown is read again once.
|
|
121
|
-
- **Typing:** a conversation page with `typing` says who else types, above its box, and tells the others while the reader types, as `typing` events on the record's channel. A sidebar group with [`typing`](sidebar.md#typing-and-unread-from-the-relay) says "typing…" beside a record someone types in, wherever the reader is.
|
|
121
|
+
- **Typing:** a conversation page with `typing` says who else types, above its box and in a thread's box, and tells the others while the reader types, as `typing` events on the record's relay channel. Without the relay, it goes over the record's own [channel](channels.md) instead. A sidebar group with [`typing`](sidebar.md#typing-and-unread-from-the-relay) says "typing…" beside a record someone types in, wherever the reader is.
|
|
122
122
|
- **Unread:** a sidebar group with [`unread`](sidebar.md#typing-and-unread-from-the-relay) counts each conversation's unread messages once, then adds the relay's notices without reading.
|
|
123
123
|
- **Presence:** the page tells the relay the person is away while it is hidden and online once it shows; a page that shows again, or a device back online, connects again at once.
|
|
124
124
|
|
|
125
|
-
The relay refuses events the app did not declare, so declare typing in the relay's apps file, on each channel resource with typing:
|
|
125
|
+
The relay refuses events the app did not declare, so declare typing in the relay's apps file, on each channel resource with typing. A page sends `{ typing, thread }`, `thread` the key of the thread's first message or null, so the size leaves room for a key:
|
|
126
126
|
|
|
127
127
|
```json
|
|
128
128
|
"client_events": {
|
|
129
129
|
"channels": {
|
|
130
130
|
"conversations": {
|
|
131
131
|
"events": {
|
|
132
|
-
"typing": { "schema": { "type": "object", "properties": { "typing": { "type": "boolean" } }, "required": ["typing"] }, "max_bytes":
|
|
132
|
+
"typing": { "schema": { "type": "object", "properties": { "typing": { "type": "boolean" } }, "required": ["typing"] }, "max_bytes": 128, "per_second": 2, "burst": 4 }
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
```
|
|
138
138
|
|
|
139
|
-
|
|
139
|
+
With the relay, a conversation page's `typing` needs its resource among `channels`: the server refuses to start otherwise.
|
|
140
140
|
|
|
141
141
|
<gap>A page does not hear of a channel the person joined after it connected, such as a new direct message, until it opens that conversation or connects again, because telling a person's sockets of a new channel is not implemented.</gap> <gap>An unread count also counts the reader's own messages sent from another device or tab, until they open the conversation, because notices do not name who made the change.</gap>
|
|
142
142
|
|
|
@@ -155,7 +155,7 @@ view<typeof conversations>('conversations')
|
|
|
155
155
|
.record({ conversation: { resource: 'messages', field: 'conversation_id', sender: 'author_id', time: 'sent_at', text: 'body', readPosition: { resource: 'read_positions', field: 'conversation_id', message: 'last_read_id' }, typing: true } })
|
|
156
156
|
```
|
|
157
157
|
|
|
158
|
-
- `typing` says "typing…" after a record's title while someone else types in it, wherever the reader is in the app, for six seconds after the last they heard, and not while the relay is down. The open conversation's row leaves it out: the line above its box says who types.
|
|
158
|
+
- `typing` says "typing…" after a record's title while someone else types in it, wherever the reader is in the app, for six seconds after the last they heard, and not while the relay is down. The open conversation's row leaves it out: the line above its box says who types. <gap>A sidebar group's `typing` cannot say "typing…" in an app without the realtime relay because following every listed record's own channel is not implemented.</gap>
|
|
159
159
|
- `unread` draws a record bold, with the count of the messages others wrote after the reader's read position. It is counted as the group shows, in two requests, the reader's read positions and one aggregate of the messages grouped by conversation in the database, and again after the relay reconnects. In between, each new message the relay notices on a conversation adds one without reading anything; the open conversation counts none, and opening one clears its count.
|
|
160
160
|
|
|
161
161
|
Both mark the group's own records over a `marks` hook's, so a direct message's row can still name its person.
|
|
@@ -846,7 +846,7 @@ view<typeof channels>('channels').record({
|
|
|
846
846
|
| `thread` | Replies in a thread under a message, in a panel beside the conversation: `{ field, count, last }`. |
|
|
847
847
|
| `attachments` | [Files](#files-in-messages) a message carries, kept in a resource of their own: `{ resource, field, file, width, height }`. |
|
|
848
848
|
| `call` | The record's [call](calls.md), by the name of the [API function](../guides/api-functions.md) that admits people to it. |
|
|
849
|
-
| `typing` | `true`: a line above the box says who else types, by their names among the organization's members, and the others hear while the reader types, through the app's [realtime relay](realtime-relay.md#pages)
|
|
849
|
+
| `typing` | `true`: a line above the box says who else types, by their names among the organization's members, and the others hear while the reader types, each shown until six seconds after the last they sent or until they send or empty the box; a thread's panel says who types in that thread alone. It works with or without a relay: through the app's [realtime relay](realtime-relay.md#pages) when it has one, whose channel resources then include the record's resource, and otherwise over the record's own [channel](channels.md), which only those who may read the record join. |
|
|
850
850
|
|
|
851
851
|
The header shows the record's title, which the top bar repeats at mobile width and so shows there only with `members`, the subtitle, the call with `call`, and *Details*, a link to the record's standard page at `?standard=true`, with its sections, Edit and Delete. The latest 50 messages show oldest first, with *Load earlier messages* at the top for more. A day divider opens each day, and one person's messages sent within five minutes of each other show under their name once. A message resource with [`.live()`](live.md) shows new, changed and deleted messages as they happen. Every read goes through the reader's own access: a message they may not read never shows, and a reader who may not read the messages, a field each one needs or the fields of `thread` gets the standard page. The box shows for a reader who may create messages.
|
|
852
852
|
|