Skip to content

Commit 0045138

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/issue-34596-phone-home
2 parents e78e39f + dc66d33 commit 0045138

96 files changed

Lines changed: 4610 additions & 1416 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: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
'@object-ui/components': patch
3+
'@object-ui/plugin-detail': patch
4+
---
5+
6+
fix(ui): on a phone the record page keeps Edit in its bottom bar, names the current stage in full, and lays its key fields out in two columns
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
Three phone-width changes to the record page. Desktop layouts are unchanged.
12+
13+
- **Bottom action bar.** On an editable record the bar is now Edit, the primary action, then the `⋯` menu with every other action. Before, the page's own actions took both slots first, so an object with two record actions pushed Edit into the `⋯`. The primary is the action declaring `variant: 'primary'`, else the first action. A record the reader cannot edit keeps the primary and one more. A destructive host action (Delete) still always goes in the `⋯`. `page:header`'s `mobileMaxVisible` still sets how many buttons the bar holds; a budget of one is Edit's.
14+
- **Stage bar (`record:path`).** Below the `sm` breakpoint the path draws one progress segment per stage and no stage names, then one line with the step and the current stage's full name ("Step 5 of 6 · Negotiation", the existing form `stepOf` copy). The step counts the forward stages; a record on a lost stage shows that stage, marked lost, with no step. Tapping the line lists every stage by its full name, and on a path that allows stage changes each reachable stage there moves the record, behind the same permission and state-machine checks as on desktop. Nothing is authored for this: the viewport picks the mode.
15+
- **Key-field strip on a hand-written page.** Below `sm` the strip is a two-column grid, as the default page's is, so six key fields read as three rows instead of six lines. A value too long for its cell ends in an ellipsis.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
'@object-ui/components': patch
3+
'@object-ui/types': patch
4+
---
5+
6+
fix(components): an editable list's lookup column is wide enough for its record picker
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
With inline editing on, a lookup column in a list was sized from the short names its cells draw, often 80 to 121px. Its cell editor is the record picker, so the picker's trigger got a few dozen pixels and the option list it opened cut every name ("C..", "W."). In an editable table, a foreign-key column (a lookup, master-detail, tree or user field) whose cells edit is now never narrower than 168px, the width the inline line-item grid already gives its lookup columns. A wider name still widens the column as before. A width the view pins, or the user's own resize, is drawn exactly as written, and read-only tables and columns that do not edit are unchanged.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
'@object-ui/plugin-form': patch
3+
---
4+
5+
feat(plugin-form): the form dialog's header has a maximize / restore button, like the record drawer's, and remembers the choice per object
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
A create or edit dialog could not be made bigger: a long form, or a form with line items, stayed in a dialog capped at 90% of the window height. The dialog header now has the record drawer's maximize button (the same icon, size and labels, "Maximize" / "Restore size"), just before the close (X) button.
11+
12+
- **Maximize** widens the dialog to the `full` size (95% of the window width) and makes it fill 95% of the window height. The form body scrolls inside the dialog.
13+
- **Restore size** puts the dialog back to its declared or inferred size.
14+
- The form stays open the whole time. Typed values, the unsaved-changes prompt on close, and line items added in a form with `subforms` are all kept.
15+
- Both dialog kinds have the button: a plain form and a form with `subforms` (line items).
16+
- A maximized dialog with no declared `columns` uses the `full` column count, so a form with sixteen or more fields shows four per row.
17+
- The choice is remembered per object in the browser's local storage. The next dialog for that object opens the same way. Other objects are not affected.
18+
- On a phone the dialog already fills the screen, so the button is shown from the `sm` breakpoint up only.
19+
20+
No metadata changes. An authored `modalSize` is still the size the dialog opens with until the user maximizes it.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
'@object-ui/components': patch
3+
'@object-ui/plugin-form': patch
4+
'@object-ui/i18n': patch
5+
---
6+
7+
feat(plugin-form): a sectioned form shows its sections as a navigation strip; a click scrolls to the section, and a section with errors carries the count
8+
9+
Clause-②: yes (widening — one @object-ui/components export + new @object-ui/i18n locale keys; no FormSchema or spec key)
10+
Metadata-protocol: none
11+
12+
The new export is `FormSectionNavContext` with its `FormSectionNavItem` / `FormSectionNavSink` types; the new locale keys are `form.sectionNav` and `form.sectionNavErrors`. Nothing that worked before is refused.
13+
14+
A create or edit dialog whose form is stacked in sections now shows one entry per visible section between the title and the scrolling body; a full-page sectioned form shows the same strip above its sections, sticky at the top of the page. A click scrolls to the section, unfolding it first when it is collapsed, and the entry of the section in view is highlighted while the form scrolls. When a submit is refused, each entry shows how many fields in its section need fixing, and the count drops as the fields are fixed.
15+
16+
The strip appears only with two or more visible sections. A section hidden by its `visibleWhen` is not listed. A tabbed form keeps its tab strip and gets no section strip. Nothing is configured: no form, section or field key turns it on or off.
17+
18+
For hosts: the `form` renderer reports the section headings it draws, with each section's error count, to a sink provided through `FormSectionNavContext`; each heading row now carries a stable `id` and a `data-form-section` attribute naming its section.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/console': patch
4+
'@object-ui/i18n': patch
5+
---
6+
7+
feat(console-ai): the AI assistant is one right-side drawer, opened from the top-bar robot, with no full page
8+
9+
Clause-②: yes (widening — new @object-ui/i18n locale keys only)
10+
Metadata-protocol: none
11+
12+
The console's AI assistant now has one container, the right-side drawer (ui ADR-0057, amended).
13+
14+
- The robot in the top bar opens and closes the drawer on the page you are on. The URL does not change. The floating button in the bottom-right corner is gone. While a proposed plan waits for approval, the robot carries the marker that button used to carry.
15+
- The drawer's expand button makes it fill the window in place, with the conversation history as a column beside the chat. The same button puts it back as a side panel. Moving to another page puts it back too. At side-panel width the history is behind a "History" button. On a phone the drawer is a bottom sheet with the same "History" button.
16+
- Home hosts the same drawer. "Build with AI" and "Ask AI" on Home, and "Edit with AI" in app management, open the drawer instead of a page. A new build still starts unbound to any app (ADR-0057 A1).
17+
- The old `/ai`, `/ai/AGENT` and `/ai/AGENT/CONVERSATION` addresses still work. That includes bookmarks, shared links, `?package=` and `?new=`. They open the drawer on the conversation they name, filling the window, over the home page. A Builder handoff still travels only as navigation state.
18+
- Inside an app, a builder's empty state offers data questions as well as changes, as the composer hint already did. Its description and its first suggestions name both.
19+
- The drawer's share button now opens the share dialog. Before, it did nothing in the drawer.
20+
21+
`@object-ui/i18n`: new keys `console.ai.dock.history`, `console.ai.dock.backToChat`, `console.ai.dock.expand`, `console.ai.dock.restore` and `console.ai.empty.editApp.askOrChangeDescription`, in every locale pack. No key was removed or changed. The console no longer reads `console.ai.dock.maximize` or `console.ai.empty.editApp.description`. Retiring them is a separate change.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@object-ui/plugin-grid': patch
3+
'@object-ui/components': patch
4+
---
5+
6+
fix(ui): a phone list card shows its amount in full, and a form's tab strip no longer widens a phone screen
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
- Phone list cards: the card's amount is the first shown column whose field type is `currency`. It used to share the subtitle line with the next column and was truncated with it (`CN¥1,2…`). It now has a line of its own under the subtitle, right-aligned and never truncated, with the status chip at that line's left. The subtitle shows the next shown column in its place. A list with no currency column draws its cards as before.
12+
- Form field tabs (`fieldTabs`, also used by tabbed modal and tabbed forms): below the `sm` breakpoint a horizontal tab strip is capped at its container's width, and tabs that do not fit scroll sideways with no scrollbar drawn, so the page no longer scrolls sideways. The active tab is kept in view: on a tap, on `defaultFieldTab`, and when a failed submit jumps to the tab with the first error, whose red dot stays on the trigger. Desktop strips and vertical strips are unchanged.

‎ui/apps/console/src/App.tsx‎

Lines changed: 18 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import { DevModal } from './dev/DevModal';
2424
import { DevLookup } from './dev/DevLookup';
2525
import { DevRowActions } from './dev/DevRowActions';
2626
import {
27+
AiAddressRedirect,
2728
ConsoleShell,
2829
RequireAiSurface,
2930
RequireOrganization,
@@ -94,20 +95,12 @@ const DocsSlug = lazy(() => import('./pages/DocsSlug'));
9495
const DocPage = lazy(() => import('./pages/DocPage'));
9596

9697
/*
97-
* The AI chat surfaces, lazy for the same reason (objectui#13410).
98-
*
99-
* `/ai…` and the public share page `/s/:token` are the two console routes that
100-
* render the chat UI (`ChatbotEnhanced` and everything it reaches in
101-
* `@object-ui/plugin-chatbot`: `streamdown`, `shiki`, the AI Elements). Imported
102-
* statically here, that UI was in every first page load, the third-largest
103-
* eager chunk, including for users who never open a chat. The AI page arrives
104-
* through `./components/aiChatPage`, a console-local module nothing imports
105-
* statically, because an `import()` of the `@object-ui/app-shell` barrel this
106-
* file already imports would move nothing (see `./components/studioBuilder`).
98+
* The public share page `/s/:token` renders the chat UI (`ChatbotEnhanced` and
99+
* everything it reaches in `@object-ui/plugin-chatbot`), so it is lazy for the
100+
* same reason (objectui#13410). The `/ai…` addresses no longer draw a page: they
101+
* open the console's chat drawer (objectstack#34608, `AiAddressRedirect`), whose
102+
* body loads the chat UI when it first renders.
107103
*/
108-
const DefaultAiChatPage = lazy(() =>
109-
import('./components/aiChatPage').then((m) => ({ default: m.DefaultAiChatPage })),
110-
);
111104
const SharedRecordPage = lazy(() => import('./pages/SharedRecordPage'));
112105

113106
const SERVER_URL = import.meta.env.VITE_SERVER_URL || '';
@@ -503,34 +496,33 @@ export function App() {
503496
</Route>
504497
<Route path="/system/*" element={<SystemRedirect />} />
505498
{/*
506-
AI surfaces are agent-scoped: the active assistant is baked into
507-
the route (`/ai/:agent`) rather than a `?agent=` query snapshot,
508-
so each assistant ("build" authoring vs "ask" data Q&A, plus any
509-
custom `*.agent.ts`) is its own page. AiChatPage handles the
510-
back-compat redirects: bare `/ai` → the default agent surface, and
511-
a single-segment `/ai/:agent` that is actually a legacy bare
512-
conversation id → `/ai/:agent/:conversationId`.
499+
objectstack#34608 (ui ADR-0057 as amended) — the AI assistant has
500+
one container, the right-side drawer, and no page. The old
501+
full-page addresses (`/ai`, `/ai/:agent`,
502+
`/ai/:agent/:conversationId`, with `?package=` / `?new=`) stay
503+
routed so bookmarks and shared links keep working:
504+
`AiAddressRedirect` opens the drawer on the conversation the
505+
address names, filling the window, over the declared landing.
513506
514507
`RequireAiSurface` keeps these from dead-ending on a runtime that
515508
serves no AI (Community Edition): with AI unavailable a stale
516509
bookmark / external link gets a screen saying so, with the way
517-
home, instead of a chat with no agent to talk to. Cloud installs
518-
pass straight through. Purely additive runtime gating — same
519-
server signal the floating-chat FAB has always used.
510+
home. Purely additive runtime gating — the same server signal the
511+
top-bar robot uses.
520512
*/}
521513
<Route path="/ai" element={
522514
<ProtectedRoute>
523-
<RequireAiSurface><Suspense fallback={<LoadingScreen />}><DefaultAiChatPage /></Suspense></RequireAiSurface>
515+
<RequireAiSurface><AiAddressRedirect /></RequireAiSurface>
524516
</ProtectedRoute>
525517
} />
526518
<Route path="/ai/:agent" element={
527519
<ProtectedRoute>
528-
<RequireAiSurface><Suspense fallback={<LoadingScreen />}><DefaultAiChatPage /></Suspense></RequireAiSurface>
520+
<RequireAiSurface><AiAddressRedirect /></RequireAiSurface>
529521
</ProtectedRoute>
530522
} />
531523
<Route path="/ai/:agent/:conversationId" element={
532524
<ProtectedRoute>
533-
<RequireAiSurface><Suspense fallback={<LoadingScreen />}><DefaultAiChatPage /></Suspense></RequireAiSurface>
525+
<RequireAiSurface><AiAddressRedirect /></RequireAiSurface>
534526
</ProtectedRoute>
535527
} />
536528
{/* `RedirectWithSplash`, not a bare `<Navigate>` (objectui#6378).

‎ui/apps/console/src/__tests__/App.agentChatLink-10640.test.tsx‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@
2121
* `internalFormShell.test.tsx` does. A hand-copied route list would be free to
2222
* agree with whatever the source does. Everything `App.tsx` imports but this
2323
* card does not touch is stubbed, with the same list that file uses. The
24-
* catch-all's element (`RedirectWithSplash`) and the chat page
25-
* (`DefaultAiChatPage`) are stubbed to markers; the chat stub reports the
24+
* catch-all's element (`RedirectWithSplash`) and the chat address's element
25+
* (`AiAddressRedirect`, which opens the chat drawer since objectstack#34608)
26+
* are stubbed to markers; the chat stub reports the
2627
* `:agent` and `:conversationId` params and the `new` flag it was routed with.
2728
*
2829
* The href is not written here: it is the one the REAL registered agent
@@ -91,7 +92,9 @@ vi.mock('@object-ui/app-shell', async (importOriginal) => {
9192
DefaultInvitationsPage: stub('invitations-page'),
9293
DefaultSettingsPage: stub('settings-page'),
9394
DefaultAcceptInvitationPage: stub('accept-invitation-page'),
94-
DefaultAiChatPage: AiChatPageProbe,
95+
// objectstack#34608 — the `/ai…` routes render `AiAddressRedirect` (it opens
96+
// the chat drawer on the address); the probe reports what it was routed with.
97+
AiAddressRedirect: AiChatPageProbe,
9598
StudioDesignSurface: stub('studio-design-surface'),
9699
BuilderLanding: stub('builder-landing'),
97100
getProductName: () => 'ObjectOS',

‎ui/apps/console/src/__tests__/App.docsPortalLazy.test.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ vi.mock('@object-ui/app-shell', async (importOriginal) => ({
104104
DefaultInvitationsPage: stub('invitations-page'),
105105
DefaultSettingsPage: stub('settings-page'),
106106
DefaultAcceptInvitationPage: stub('accept-invitation-page'),
107-
DefaultAiChatPage: stub('ai-chat-page'),
107+
AiAddressRedirect: stub('ai-chat-page'),
108108
StudioDesignSurface: stub('studio-design-surface'),
109109
BuilderLanding: stub('builder-landing'),
110110
getProductName: () => 'ObjectOS',

‎ui/apps/console/src/__tests__/App.nativeShellMode-29039.test.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ vi.mock('@object-ui/app-shell', async (importOriginal) => ({
9393
DefaultInvitationsPage: stub('invitations-page'),
9494
DefaultSettingsPage: stub('settings-page'),
9595
DefaultAcceptInvitationPage: stub('accept-invitation-page'),
96-
DefaultAiChatPage: stub('ai-chat-page'),
96+
AiAddressRedirect: stub('ai-chat-page'),
9797
StudioDesignSurface: stub('studio-design-surface'),
9898
BuilderLanding: stub('builder-landing'),
9999
getProductName: () => 'ObjectOS',

0 commit comments

Comments
 (0)