Skip to content

Commit 274fb5f

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/area-a4B-35908
2 parents 4304259 + fddb9cb commit 274fb5f

71 files changed

Lines changed: 2424 additions & 425 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: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
'@object-ui/components': patch
3+
'@object-ui/fields': patch
4+
'@object-ui/plugin-grid': patch
5+
---
6+
7+
feat(fields): typed values edit flat in their list cell, a record picker opens its list in place, and a rating is set without an editor
8+
9+
Clause-②: yes (widening)
10+
Metadata-protocol: none
11+
12+
In the list grid's cell editor (the layer over the cell, `inCell`):
13+
14+
- Text, email, phone, URL, number, currency and percent are the cell itself: one row tall, square, with no border, fill or shadow of their own, the layer's 2px frame the only line around them (square and flat even under a host theme that rounds and lifts every dialog with `!important`). The box starts as wide as its column and grows to the right with the text, over the next cells, without moving them. Numbers are right-aligned and raw (`34500.5`, not `34,500.50`); a currency shows its code before the amount; a percent shows its points and a `%`, without the slider. The grid's built-in text and number editors take the same flat look.
15+
- A lookup, master-detail or user cell opens its searchable candidate list at once (recently used first, then results); a pick is the whole edit. Under the list, Browse all records opens the full record picker (classic lookups, gated by `dependsOn` like the list), where a single pick ends the edit too, and Clear is offered while the cell holds a value.
16+
- On a select-first grid a rating opens no editor: a digit key sets that many stars (0 clears, capped at the field's scale), a click on a star of the already selected cell sets it, and Backspace or Delete clears it. `GridCellFacts` gains the optional `stars` fact a host sets for this (`ObjectGrid` sets it for `rating` fields).
17+
- The record pickers' local "recently used" ring is kept per signed-in user as well as per object, so two accounts in one browser no longer share it. Rings stored under the old object-only key are not read, so each user's recents start empty once after the upgrade.
18+
19+
Forms, dialogs and the record page draw these widgets as before. No i18n key is added.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@object-ui/plugin-detail': patch
3+
---
4+
5+
fix(plugin-detail): the record header summary chip reads a formula by its declared return type
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
A `summaryFields` chip beside a record's title over a `formula` field printed the raw value, because the chip picked its formatting from the field type `formula`: a percent formula read `0.25` where its list cell and highlight chip read `25%`, a currency formula read a bare `1250`, and a date formula read its ISO text. The chip now draws a formula whose `returnType` is `percent`, `currency` or `date` as a field of that type: a percent at the formula's own `scale` and `max`, an amount in its own `currencyConfig` currency (the tenant currency when it declares none), a date as a localized date. A `number`, `text` or `boolean` formula reads as before. The highlights strip and the chip now ask one helper which field type a formula reads as.

‎.changeset/35980-dialog-surface.md‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
'@object-ui/components': patch
3+
'@object-ui/plugin-form': patch
4+
'@object-ui/i18n': patch
5+
'@object-ui/app-shell': patch
6+
'@object-ui/console': patch
7+
---
8+
9+
feat(ui): every modal dialog draws one lighter surface, short create and edit dialogs are one narrow column, and a create dialog can stay open for the next record
10+
11+
Clause-②: yes (widening)
12+
Metadata-protocol: none
13+
14+
What a user sees:
15+
16+
- Behind a dialog the page is only slightly dimmed (10% in light mode) and no longer blurred, so it stays readable. The dialog is a white card (the raised grey in dark mode) with a hairline edge and a translucent outer ring, a 12px corner, and anything inside it drawn at the shared 40px control height (`h-10`: inputs, select triggers, default and icon buttons, and any other `h-10` element such as a 40px avatar) one step smaller, 32px from the `sm` breakpoint up; the phone sheet keeps its 44px touch targets. Confirmation dialogs, the required-fields prompt and the record create and edit dialog all share it.
17+
- The create and edit dialog's title is 16px and follows the object's icon, and its padding is 20px.
18+
- A dialog that lays out at most six fields and declares no `columns` (not on the form, not on any section) draws one field per row in the narrow `lg` size (672px); six is the maintainer's choice (ruling of record 7061696632 on objectstack-ai/objectstack#35980). This reverses the at-least-two-columns default such a dialog drew before. Seven fields or more, any declared `columns`, an authored `modalSize` or a maximized dialog lay out as before.
19+
- The console's list 「New」 dialog (and a related list's child create) has a 「Create more」 switch. With it on, a save keeps the dialog open on an empty form with focus on the first field, and the list behind refreshes; with it off, a save closes the dialog and opens the new record as before. The switch is remembered per object in this browser.
20+
- ⌘↵ (Ctrl+Enter on other platforms) saves the create and edit dialog, and the Save button shows the keycaps. A master-detail dialog (a record with line items) takes neither the shortcut nor 「Create more」.
21+
22+
What a developer sees (`Clause-②: yes (widening)`, additions only):
23+
24+
- `ModalFormSchema.createMore?: boolean` offers the switch on a `create` dialog that a host mounts itself (the `object-form` renderer's `formType: 'modal'` keeps it off), and `ModalFormSchema.onSuccess` receives a second argument, `{ createMore: true }`, when the dialog stays open. A host that passes neither sees no change.
25+
- New i18n key `form.createMore` in every locale.
26+
- The console's global `[role="dialog"]` corner rule and the blurred overlay on dialogs are gone; the look lives in `@object-ui/components` (`src/lib/dialog-surface.ts`), reached from the `dialog` and `alert-dialog` primitives through declared Shadcn patches. The card carries the `dialog-surface` class, which the console's shared floating-surface shadow skips; a host stylesheet that adds its own shadow to `[role="dialog"]` should skip it too. Popovers and the bottom drawer keep their rounded corners by their own containers; side drawers are unchanged.
27+
28+
Nothing to migrate.

‎docs/qa/platform-checklist/areas/records-forms.json‎

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@
962962
"title": "Form-view gallery: every FormViewSchema layout type renders and submits",
963963
"since": "v15",
964964
"status": "active",
965-
"revision": 8,
965+
"revision": 9,
966966
"priority": "P1",
967967
"surface": "browser",
968968
"personas": [
@@ -991,7 +991,7 @@
991991
"overlay the default form with the tabbed variant (type tabbed + the sections of formViews.tabbed, through the fixtures.requires[0] recipe with item-level isDefault:true); reopen the page form; verify the three tabs (Overview / Schedule / Details) and that switching tabs preserves entered values",
992992
"overlay the default form with the wizard variant; open the PAGE form (…/showcase_task/new, or the record's /edit route — RecordFormPage passes the type in both modes); walk Basics → Assignment → Schedule with next/back; verify back preserves values and submit happens ONCE at the end. The New/Edit MODAL renders a wizard as a stacked section list by design (resolveFormViewLayout), so the steps are walked on the page route",
993993
"RETIRED-TYPE refusal: put the default-form overlay of fixtures.requires[0] with type 'split', then 'drawer', then 'modal' (any sections), and capture each refusal: a 422 whose message names the retired value with its prescription (FORM_VIEW_TYPE_RETIRED). Record whether the draft PUT or its publish answered it. Then re-read GET /api/v1/meta/view/showcase_task.form and confirm none of the three landed. There is no split pane to look for: the showcase's formViews.split is now a two-tab tabbed form",
994-
"drawer and modal: open task-desk.page.ts; click a task row — ObjectForm formType=\"drawer\" opens as a side panel over the list with the task's fields; click New task — ObjectForm formType=\"modal\" opens as a dialog. These are the React block's containers, which ADR-0050 keeps (the block is the caller that opens the form); a form view can no longer name either (steps[3])",
994+
"drawer and modal: open task-desk.page.ts; click a task's title (or select one of its cells and press Space) — ObjectForm formType=\"drawer\" opens as a side panel over the list with the task's fields; click New task — ObjectForm formType=\"modal\" opens as a dialog. These are the React block's containers, which ADR-0050 keeps (the block is the caller that opens the form); a form view can no longer name either (steps[3])",
995995
"on the simple form, set priority to 'urgent' and verify the notes field appears (FormField.visibleWhen CEL); set it back and verify notes hides",
996996
"save an edit through each rendered variant; capture each save request; re-read via GET /api/v1/data/showcase_task/<id>. The page form's /new and /edit routes are reached by URL only: the record page's Edit opens the form as a modal (?form=ID, footer 'Update'), not the page (QA run #33861). A deep-linked page form saves and stays in the app: RecordFormPage's goBack goes back one entry only when the console pushed one (history.state.idx above 0) and otherwise replaces to the record page (edit) or the list (create) (ui/packages/app-shell/src/views/RecordFormPage.tsx)",
997997
"revert the default-form overlay so the stock simple form is back — DELETE /api/v1/meta/view/showcase_task.form, the reset door, which restores the artifact default byte-identically (QA run #24572) — and confirm it with a re-read of the view"
@@ -1097,6 +1097,12 @@
10971097
"date": "2026-11-15",
10981098
"change": "steps[6] re-pointed: the record page's Edit opens a modal (?form=ID), so the page routes are reached by URL (QA run #33861, ledger row 140), and a deep-linked page form no longer leaves the document on save (RecordFormPage goBack replaces to the record or the list when nothing was pushed). No clause changed. Ledger 6896511848 of the v18.5.0 sweep anchor #33761, carried by batch-A card #33963; read at base 895783a1.",
10991099
"ref": "#33990"
1100+
},
1101+
{
1102+
"revision": 9,
1103+
"date": "2026-11-21",
1104+
"change": "steps[4] opens the edit drawer from a task's title link, or Space on a selected cell: the list is select-first since #35684, so a click on an assignee, status or priority cell only selects it. No clause changed. Read at base c00be39b",
1105+
"ref": "#35794"
11001106
}
11011107
]
11021108
},
@@ -6510,7 +6516,7 @@
65106516
"title": "Defaults that changed meaning on v18 (ADR-0087 D3 18.* entries): an omitted list-view page size is 50 (was 25), an omitted editInline means editable in place, an autonumber with no `unique` is unique per organization, and a field-heavy form opens as a bounded modal on desktop",
65116517
"since": "v18",
65126518
"status": "active",
6513-
"revision": 8,
6519+
"revision": 9,
65146520
"priority": "P2",
65156521
"surface": "mixed",
65166522
"personas": [
@@ -6530,8 +6536,8 @@
65306536
]
65316537
},
65326538
"steps": [
6533-
"GET /api/v1/meta/view/VIEW to confirm the view declares no pagination and no userActions block — the meta read serves the authored view, so nothing resolved can be read there; the defaults show only in the renderer (the list request's top=50, the Edit inline switch). Seed more than 50 rows on the object whose list you count first (fixtures.requires[2]: no stock object holds that many), then open the list in the console and count the first page",
6534-
"as a member who may update, open the list and confirm the inline-edit affordance — the 'Edit inline' switch in the list's Display / view-settings popover at desktop width; as a read-only member confirm it is absent. The edit mode itself is session state that starts OFF (objectui app-shell ObjectView.tsx: 'The edit mode is now session state'), so cells are not editable on load until the switch is turned on — a click on a cell opens the record before then",
6539+
"GET /api/v1/meta/view/VIEW to confirm the view declares no pagination and no userActions block — the meta read serves the authored view, so nothing resolved can be read there; the defaults show only in the renderer (the list request's top=50, cells editable in place). Seed more than 50 rows on the object whose list you count first (fixtures.requires[2]: no stock object holds that many), then open the list in the console and count the first page",
6540+
"as a member who may update, open the list and confirm the inline-edit affordance — the list is editable in place with no switch and no mode: a click on a data cell selects it, and a double-click, Enter or typing opens its editor; as a read-only member select a cell and press Enter — the cell says why it cannot be edited and no editor opens",
65356541
"create two rows of an autonumber object in the same org and read their numbers",
65366542
"open New on a field-heavy object on a desktop viewport, then on a mobile viewport"
65376543
],
@@ -6549,7 +6555,7 @@
65496555
"evidence": "row count + one-line screenshot description"
65506556
},
65516557
{
6552-
"clause": "inline edit is offered to an updater and absent for a read-only member with editInline omitted — 'offered' means the Edit inline switch is present (the edit mode starts off for the session, steps[1])",
6558+
"clause": "inline edit is offered to an updater and absent for a read-only member with editInline omitted — 'offered' means a selected cell opens its editor on Enter or a double-click, and 'absent' means the cell says why instead (steps[1])",
65536559
"oracle": "screenshot",
65546560
"verify": "per-persona affordance",
65556561
"evidence": "two one-line descriptions"
@@ -6623,6 +6629,12 @@
66236629
"date": "2026-11-19",
66246630
"change": "acceptance[1] reads 'first window' for 'first page': since #35554 a list view with no declared `pagination` draws no pager and loads its next 50 as it scrolls; the 50-row default it pins is unchanged. Read at base 93fa4f97",
66256631
"ref": "#35554"
6632+
},
6633+
{
6634+
"revision": 9,
6635+
"date": "2026-11-21",
6636+
"change": "steps[0], steps[1] and acceptance[2].clause follow #35684: the list is editable in place with no Edit inline switch and no session mode; a click selects a cell, a double-click, Enter or typing edits it, and for a read-only member the cell says why it cannot be edited. The 50-row and form-shape clauses are unchanged. Read at base c00be39b",
6637+
"ref": "#35794"
66266638
}
66276639
]
66286640
},

‎examples/app-showcase/src/ui/pages/task-desk.page.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function Page() {
3232
<div>
3333
<h1 style={{ fontSize: 24, fontWeight: 700, letterSpacing: '-0.01em', color: 'hsl(var(--foreground))', margin: 0 }}>Task Desk</h1>
3434
<p style={{ marginTop: 4, fontSize: 14, color: 'hsl(var(--muted-foreground))' }}>
35-
Click a task to edit it in a <strong>drawer</strong>; create one in a <strong>modal</strong> — both render the platform's pre-styled <code>&lt;ObjectForm&gt;</code> overlay.
35+
Click a task's title to edit it in a <strong>drawer</strong>; create one in a <strong>modal</strong> — both render the platform's pre-styled <code>&lt;ObjectForm&gt;</code> overlay.
3636
</p>
3737
</div>
3838
<button onClick={() => setCreating(true)}

‎ui/apps/console/src/__tests__/edgeSheetSquareCorners-35411.test.tsx‎

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
/**
2-
* The console's extra-rounded dialog corners skip full-height edge drawers
3-
* (objectstack#35411).
2+
* The console's extra-rounded corners skip full-height edge drawers
3+
* (objectstack#35411) and, since objectstack#35980, every modal dialog.
44
*
5-
* `index.css` gives every `role="dialog"` surface a 1.25rem radius. A left or
6-
* right Sheet is fixed against the top, side and bottom of the viewport, so the
7-
* radius showed as a notch at each inner corner. The rule now skips the Sheet's
8-
* edge variants by the `inset-y-0` class their variant carries, while centred
9-
* dialogs and bottom sheets keep the radius.
5+
* `index.css` used to give every `role="dialog"` surface a 1.25rem radius. A
6+
* left or right Sheet is fixed against the top, side and bottom of the
7+
* viewport, so the radius showed as a notch at each inner corner; #35411 made
8+
* the rule skip the Sheet's edge variants. #35980 moved the dialog's look onto
9+
* the dialog itself (`dialog-surface`, a 12px card), so the rule no longer
10+
* names every `role="dialog"`: it keeps the rounded corners for the floating
11+
* popover and the bottom drawer only, by their own containers. A top or
12+
* bottom Sheet meets the viewport on three edges like a side one, and is no
13+
* longer matched either.
1014
*
1115
* The record drawer is the exception: it is a floating card (objectstack#35854)
1216
* that sets its own radius, so the global rule must not override it either.
@@ -59,28 +63,31 @@ function renderSheet(side: 'left' | 'right' | 'bottom' | 'top'): HTMLElement {
5963
return screen.getByRole('dialog');
6064
}
6165

62-
describe('edge sheets are not rounded by the dialog corner rule (#35411)', () => {
63-
it('the rule still targets dialogs', () => {
64-
expect(roundingSelector()).toContain('[role="dialog"]');
66+
describe('edge sheets and dialogs are not rounded by the corner rule (#35411, #35980)', () => {
67+
it('the rule names popovers and the bottom drawer, never every dialog', () => {
68+
const selector = roundingSelector();
69+
expect(selector).toContain('[data-radix-popper-content-wrapper] > [role="dialog"]');
70+
expect(selector).toContain('[data-vaul-drawer]');
71+
for (const part of selector.split(',')) {
72+
expect(part.trim().startsWith('[role="dialog"]')).toBe(false);
73+
}
6574
});
6675

67-
it.each(['left', 'right'] as const)('a %s sheet is not matched', (side) => {
76+
it.each(['left', 'right', 'bottom', 'top'] as const)('a %s sheet is not matched', (side) => {
6877
expect(renderSheet(side).matches(roundingSelector())).toBe(false);
6978
});
7079

71-
it.each(['bottom', 'top'] as const)('a %s sheet keeps the rounded corners', (side) => {
72-
expect(renderSheet(side).matches(roundingSelector())).toBe(true);
73-
});
74-
75-
it('a centred dialog keeps the rounded corners', () => {
80+
it('a centred dialog is not matched: it carries its own corner', () => {
7681
render(
7782
<Dialog open>
7883
<DialogContent>
7984
<DialogTitle>centred</DialogTitle>
8085
</DialogContent>
8186
</Dialog>,
8287
);
83-
expect(screen.getByRole('dialog').matches(roundingSelector())).toBe(true);
88+
const dialog = screen.getByRole('dialog');
89+
expect(dialog.matches(roundingSelector())).toBe(false);
90+
expect(dialog.className.split(/\s+/)).toContain('sm:rounded-[12px]');
8491
});
8592
});
8693

0 commit comments

Comments
 (0)