Skip to content

Commit 9461451

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/issue-35184-dev-seed-retire-at-boot
2 parents 6d4477f + c30ce97 commit 9461451

81 files changed

Lines changed: 3230 additions & 1992 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/data-objectstack': patch
4+
'@object-ui/react': patch
5+
'@objectstack/platform-objects': patch
6+
---
7+
8+
feat(console): a list's column widths, row height and tab order are kept in this browser only
9+
10+
Clause-②: no
11+
Metadata-protocol: none
12+
13+
On a Console object list, the column widths a reader drags, the row height they pick and the order they give the view tabs are now kept in their own browser only, per signed-in user and object (localStorage `list-layout:<user id>:<object>`). Nothing is sent to the server: the Console no longer reads or writes the per-user list preference row `sys_user_preference` `ui.list.<object>`, and its boot read of the reader's preferences no longer asks for that key family. A list opens at once, without waiting for that read.
14+
15+
- Another browser or device opens the list on its view's own widths, row height and tab order until the reader changes them there.
16+
- Signing out clears these entries with the rest of this browser's Console state, as before.
17+
- With nobody signed in, nothing is kept.
18+
- The record page's "show empty fields" choice (`ui.record.<object>`) is unchanged and still follows the reader.
19+
20+
Upgrade note: what an earlier Console kept for a reader's lists is not carried over. The `ui.list.<object>` rows are no longer read, so every reader's lists open on their views' own widths, row height and tab order until they change them again. This browser's old copies (`list-state:*`, `list-filters:*` and `viewOrder:*` in localStorage) are removed on the first list the Console opens. The server rows stay where they are, unread; leaving them does no harm.
21+
22+
`@object-ui/data-objectstack`, `@object-ui/react` and `@objectstack/platform-objects` change only comments and a README example that named the retired key. No metadata key, value or default changes.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/console': patch
4+
---
5+
6+
perf(console): an app route draws the console's frame right after the session read, and the chrome no longer waits for the route's own metadata
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
Opening an app page by its URL (a reload, a pasted link) showed the full-screen splash until the permission answer, the app list, the admin verdict and the page's own metadata reads had all arrived. On a hosted environment the permission answer alone takes seconds.
12+
13+
- `LoadingFallback` (the console's boot-gate fallback) and `AppContent`'s readiness gate now draw `ConsoleBootShell` on an `/apps/:app/*` route once the session has answered with a user: the chrome's frame (the sidebar at the width the reader left it, from 768 px up with grey blocks where its head and foot put the app menu, the search, the bell and the account; the top bar on a phone, except on a record page, and on an app's docs pages, which have no sidebar; the route's skeleton in the slot: the shape the chrome draws on that route), with no app name, no navigation entry and nothing to press, because those are what the gates still decide. The splash stays for the session read itself and for every other route. The console's permission scope uses the same fallback.
14+
- `AppContent` mounts the console chrome once the app list, the permission answer, the admin verdict and the deployment flags (`/auth/config`, which the chrome's navigation gates read) are in; the route's own metadata reads no longer hold it on the first paint. The route slot draws the route's skeleton until they land, and a route element whose chunk is still loading draws the same skeleton instead of the full-screen splash inside the chrome.
15+
- The frame and the first route skeleton carry `data-boot-splash`, so readiness waits and the reads deferred to the first paint past the splash wait exactly as before; `data-boot-shell` tells the frame apart.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/plugin-detail': patch
4+
'@object-ui/i18n': patch
5+
---
6+
7+
feat(record-page): on a phone, the record's comments open as a page of their own: the threads first, a thread's replies inside it, the comment box docked at the foot, and a long press for a comment's actions
8+
9+
Clause-②: yes (widening) — `@object-ui/plugin-detail` adds the export `CommentsPage` and its type `CommentsPageProps`; `CommentThread` takes a third `mode`, `'page'`, and optional `itemInteraction`, `heldId` and `onHeldActions`; `CommentItem` an optional `interactionProps`; `CommentComposer` and `RichTextCommentInput` (exported) an optional `layout` (`'default' | 'phone'`). `@object-ui/app-shell` reserves the console URL parameter `comments` (`RECORD_COMMENTS_PARAM`, in `RESERVED_URL_PARAMS`). `@object-ui/i18n` adds four keys to every pack: `detail.addReactionEmoji`, `detail.commentThread`, `detail.formatBold`, `detail.formatItalic` (the toolbar's names without their shortcut). Nothing existing is removed or re-typed; the desktop's panel, toolbar and labels are unchanged.
10+
Metadata-protocol: none
11+
Skills-docs: none — no skill under `skills/**` teaches where the console draws a record's comments; `content/docs/frontend/plugins/plugin-detail.mdx` and the plugin-detail README gain the phone's page in this change.
12+
13+
On a phone the record page's top bar gains the comments icon, with the number of unresolved threads. A press opens the record's comments as a page over the record, which stays where it was under it; 「‹」 and the browser's Back return to it.
14+
15+
- The page lists each thread's first comment with 「N 条回复」 under it; a tap opens the thread, the comment first and its replies after it. 「‹ 评论」 returns to the list.
16+
- The comment box is docked at the foot of the screen and stands on the keyboard while it is up. One line until tapped; then a row under the text holds mention, bold, italic, list and code, and send at the right end. In the list it writes a comment, in a thread a reply. No 「Ctrl+Enter」 hint.
17+
- A long press on a comment (or its context menu) raises a sheet from the bottom: six reactions, 「标记已解决」 on a thread's first comment, 「编辑」 and 「删除」 (red, confirmed first), each offered exactly where the desktop's hover row offers it.
18+
- The filter at the top right is the desktop's: 「显示已解决」 and 「只看我参与的」.
19+
- The 动态 tab holds the system entries alone, as on the desktop. On a phone the comments live on this page: this replaces the lines of the two objectstack#36075 entries (the record comment panel, and resolved threads) that said the phone keeps the comments in its 动态 tab, or keeps its feed as before.
20+
- The page is in the URL (`?comments=` for the list, `?comments=<id>` for a thread), so a link or a reload opens it where it was.
21+
22+
Unchanged: the desktop; who may write, resolve, edit or delete a comment (the phone offers each exactly where the desktop does); a record page authored in full and an object with `enable.feeds: false` show no icon.

‎content/docs/frontend/plugins/plugin-detail.mdx‎

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,12 +239,38 @@ the record drawer), and no longer inside the 动态 (Activity) tab
239239
The panel and the icon come with the default record page and with a page that
240240
only fills its slots. A record page you author in full keeps the feed blocks it
241241
places (`record:discussion`, `record:activity`) exactly as before, and an object
242-
with `enable.feeds: false` shows no icon. On a phone the comments stay in the
243-
动态 tab.
242+
with `enable.feeds: false` shows no icon.
243+
244+
### On a phone
245+
246+
On a phone the same icon sits at the right of the record page's top bar, with
247+
the same number, and opens the record's comments as a page of their own over
248+
the record (objectstack#36076). The record stays where it was under it: 「‹」
249+
and the browser's Back return to it as it was scrolled.
250+
251+
- **Two levels.** The page lists each thread's first comment, with the faces of
252+
the latest repliers and 「N 条回复」 under it; replies are not on the list. A
253+
tap on a comment opens its thread: the comment first, then the replies,
254+
oldest first. 「‹ 评论」 goes back to the list.
255+
- **The comment box** stays at the foot of the screen, and above the keyboard
256+
while it is up. One line until you tap it; then a row under the text holds
257+
mention, bold, italic, list and code, with send at the right end. In the list
258+
it writes a new comment; in a thread, a reply. It names no keyboard shortcut.
259+
- **A long press** on a comment raises its actions from the bottom: six
260+
reactions on one row, then 「标记已解决」 (on a thread's first comment), 「编辑」
261+
and 「删除」, red, which asks before deleting. Each appears exactly where the
262+
desktop's hover row would offer it. The comment's reactions show under its
263+
text with their counts, yours marked; a tap on one adds yours or takes it back.
264+
- **The filter** at the list's top right is the desktop's: 「显示已解决」 and
265+
「只看我参与的」.
266+
- **The 动态 tab** holds the system entries only, as on the desktop.
267+
268+
The page is addressed by the URL (`?comments=` for the list, `?comments=<id>`
269+
for a thread), so a link or a reload opens it where it was.
244270

245271
The components are exported from `@object-ui/plugin-detail` (`CommentsPanel`,
246-
`CommentsButton`, `CommentThread`, `CommentItem`, `CommentComposer`,
247-
`useRecordComments`); each reads the discussion off the host's
272+
`CommentsPage`, `CommentsButton`, `CommentThread`, `CommentItem`,
273+
`CommentComposer`, `useRecordComments`); each reads the discussion off the host's
248274
`DiscussionContext`, as the feed blocks do.
249275

250276
## The `record:activity` block

‎content/docs/ui/views.mdx‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -653,8 +653,11 @@ also holds Discard on a narrow list or a phone).
653653
- The draft survives opening a record and coming back. Opening another view or object,
654654
or reloading the list's page, drops it, so that reload opens the view as it is declared.
655655
- Column widths, the row height (density) and the views' order are not a draft: they are
656-
remembered for the user (`sys_user_preference`, key `ui.list.<object>`). A sort, filter,
657-
column order or hidden column an earlier Console stored there no longer applies.
656+
remembered in this browser only, per signed-in user and object (localStorage
657+
`list-layout:<user id>:<object>`). Nothing is sent to the server, another browser or device
658+
opens the view's own layout, and signing out clears them with the rest of this browser's
659+
Console state. Earlier Consoles kept them, with a stored sort and filters, in the user's
660+
`sys_user_preference` row `ui.list.<object>`; nothing reads that row now.
658661
- A link carrying list state (`uf_*` parameters) applies it as a draft, whether it opens in a
659662
new tab or in-app (an AI answer's list link, after a reload of the chat page too).
660663
- When a session ends, the sign-in page's return link keeps the list's path but never its

0 commit comments

Comments
 (0)