Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
fbcf20a
wip(studio): flow designer fixed on one flow, full-screen; org scope …
claude Nov 24, 2026
3fde8f2
wip(studio): mount the flow designer on the area, the org scope's leg…
claude Nov 25, 2026
ddefc94
wip(studio): convert the flow designer suites to its address; rehost …
claude Nov 25, 2026
0bb7c52
wip(studio): org-scope, status, caption and unit pins on the designer…
claude Nov 25, 2026
420e445
wip(studio): route suites open the flow on its address; drop the rail…
claude Nov 25, 2026
8284022
wip(studio): remaining suites on the flow's address; changeset (#36903)
claude Nov 25, 2026
c14265e
Merge remote-tracking branch 'origin/main' into claude/issue-36903-fl…
claude Nov 25, 2026
a13c84e
wip(studio): the designer-page helpers take #37089's shape; the packa…
claude Nov 25, 2026
c8c45b1
wip(studio): close the designer describe once (#36903)
claude Nov 25, 2026
ae0d24c
wip(studio): the held-leave suite imports waitFor (#36903)
claude Nov 25, 2026
ec2742b
wip(studio): the last suites on the flow's address: delete returns to…
claude Nov 25, 2026
c4f333e
wip(studio): a refusal for the flow the author left is not the next f…
claude Nov 25, 2026
9d1f546
test(studio): the edited suites pay the palette's and drafts panel's …
claude Nov 25, 2026
5d9bb8d
fix(studio): the copy suites drop the rail's deleted rows; unused imp…
claude Nov 25, 2026
c4a321f
fix(studio): keep the ten released studio locale rows, unread; pin th…
claude Nov 25, 2026
c2d936d
test(studio): the not-held leave pins read the question, not the Save…
claude Nov 25, 2026
9e3da7d
fix(studio): the copilot names a designer under the metadata area; a …
claude Nov 25, 2026
d353a6e
test(studio): old Automations bookmarks open through the surface onto…
claude Nov 25, 2026
fa2e8ff
test(studio): the Pending changes sheet's flow request and the design…
claude Nov 25, 2026
d58d418
fix(studio): the package-less scope's empty flow list keeps its guida…
claude Nov 25, 2026
4c891e4
docs(studio): the package-less scope's README section and the changes…
claude Nov 25, 2026
a5202dc
Merge origin/main into the #36903 rework (#37089's permission designe…
claude Nov 25, 2026
1d6b285
fix(studio): the merge's import and case-list seams compile (#36903)
claude Nov 25, 2026
49bf223
fix(studio): the list hands its dialog the open-existing door, so the…
claude Nov 25, 2026
576f67d
fix(studio): retire the nine studio console strings the flow list no …
claude Nov 25, 2026
3f65d38
Merge origin/main into the #36903 rework (#37185's authenticated fetc…
claude Nov 25, 2026
d3e3057
fix(studio): a review link keeps a type that is its own editor on its…
claude Nov 25, 2026
6f2f457
Merge origin/main into the #36903 rework (#37168's object designer be…
claude Nov 25, 2026
7a7af7a
test(studio): suites that hosted a page on a retired pillar open the …
claude Nov 25, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .changeset/36903-flow-designer-fullscreen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
'@object-ui/app-shell': patch
'@object-ui/i18n': patch
---

feat(studio): a flow opens full-screen in its own page; the Automations pillar's flow list is gone

Clause-②: yes (narrowing)
Metadata-protocol: none
Skills-docs: none — no page under `skills/` or `content/docs/` names the Automations rail's strings or teaches overriding a Studio console string

<!-- adr-0087: not-required (no-migration-prescription) the narrowing is nine console strings retired from the studio locale namespace of @object-ui/i18n; no packages/spec schema, registered node type, stored row or metadata key names them, nothing a metadata author writes changes, and a host that overrode one has nothing to rewrite: its override is simply no longer shown -->

**BREAKING** for a host that overrides one of the nine studio console strings listed under "Removed translation keys" below: they are retired with the Automations pillar's flow list in 19.0.0, and an override of one of them no longer applies.

In Studio, a flow now opens on its own page, full-screen beside the left menu, from the flow list in "All metadata", instead of in the Automations pillar's flow list and canvas. Its header is the one every full-screen item page has: × goes back to the flow list with its filters and sort kept, ‹ › step through the list in its order, and the flow's label, type and package are shown, with its machine name in a chip beside the label. A ⋯ menu holds New similar and Delete flow. The header still shows the flow's Trigger, Status (the engine's run status), Run as and version, and the Enabled switch (or, on a read-only package, the activation switch). The tab row holds the designer's Canvas, Variables, Runs, Problems and Debug, then References, History and Source, which replace the item-tools menu and its side sheets; a refreshed or shared link reopens the same tab. Save stays in the Studio top bar and still publishes that one flow, pinned to the version it was loaded at. Leaving with unsaved edits (×, ‹ ›, the menu, the Changes sheet, a reload, closing the tab) asks first.

A flow is created from the flow list's 「新建」, with the same starting points, and that create refuses to overwrite a flow published under the same name, as the pillar's did. When the name is taken by a flow in this package, the dialog says so and offers to open it. New similar opens the copy on its own page, with a strip saying where it landed. Deleting a flow returns to the flow list. The copilot still knows which flow is open, and still refreshes it after its edits.

The organization's own flows, which belong to no package, have their own flow list and open on their own pages; that list offers no 「新建」, as before, and when it is empty it says how a packaged flow is changed instead (open its package and use New similar).

Old bookmarks keep working. A link to a flow in the Automations pillar opens that flow's page, and a link to the pillar itself opens the flow list, for a package, a read-only package's customizations and the organization's own flows alike. A flow's History link opens its History tab. A link naming a flow the package does not hold says so and opens no other flow; one naming a flow that belongs to no package opens it among the organization's flows. A flow's draft-review link (and the environment view) opens the general item page with its review, as it did when flows had a pillar. A permission set's review link keeps opening its matrix page, as before.

The flow list has no column yet for a flow's trigger object or its run status; until it has one, both are shown in the flow's header.

Removed translation keys (studio namespace of `@object-ui/i18n`, released in 18.6.0; no code reads them since the flow list left the designer). Each is removed from both packs it shipped in, `en` and `zh`:

- `engine.studio.auto.heading` (en, zh)
- `engine.studio.auto.none` (en, zh)
- `engine.studio.auto.emptyMain` (en, zh)
- `engine.studio.auto.group.noObject` (en, zh)
- `engine.studio.auto.kind.record` (en, zh)
- `engine.studio.auto.kind.scheduled` (en, zh)
- `engine.studio.auto.kind.screen` (en, zh)
- `engine.studio.auto.kind.autolaunched` (en, zh)
- `engine.studio.auto.legend` (en, zh)

An override of one of these keys no longer applies; delete it. `engine.studio.org.none` is kept: the organization's empty flow list shows it.
29 changes: 17 additions & 12 deletions ui/packages/app-shell/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -793,21 +793,26 @@ On the declared page:
rule already switched off has no served projection, so its clone continues
in the pre-filled New form, which asks for the criteria.

### Package-less flows (`/studio/~org/automations`)
### Package-less flows (`/studio/~org/metadata/flow`)

A flow that belongs to no package — a clone of a packaged flow is one, by
ADR-0126 §7.1 — matches no package scope, so Studio gives it one scope of its
own: `/studio/~org/automations` (`studioOrgScopePath()`, segment
`STUDIO_ORG_SCOPE_SEGMENT`). It is the same `StudioDesignSurface` with no
package under it, reached from the Studio home and from the package switcher.
Its Automations rail lists every flow whose served `_packageId` names no
package, opens each one editable, and saves package-less drafts; its Publish
promotes those drafts one by one through the single-item publish door, because
the package batch publish cannot reach a draft bound to no package. It offers
no other pillar and no "New" flow. `~` is outside every package-id alphabet,
so the segment can never name a package. A `?surface=flow:` deep link that
names a flow the open rail does not hold opens no other flow in its place;
from a package's pillar, a package-less flow is opened in this scope instead.
own, segment `STUDIO_ORG_SCOPE_SEGMENT` (`~org`): its own leg of the "All
metadata" area. The list is `/studio/~org/metadata/flow?source=runtime` and a
flow opens full-screen in the flow designer at
`/studio/~org/metadata/flow/<name>?source=runtime` (`studioOrgScopePath()`,
`orgScopeFlowOf()`). It is the same `StudioDesignSurface` with no package under
it, reached from the Studio home and the left menu. The list holds every flow
whose served `_packageId` names no package and offers no create; each flow opens
editable and saves package-less drafts. An empty list says how a packaged flow
is changed instead (in its package, with New similar). Publish promotes the
scope's drafts one by one through the single-item publish door, because the
package batch publish cannot reach a draft bound to no package. `~` is outside
every package-id alphabet, so the segment can never name a package. A package's
address naming a package-less flow opens it in this scope; one naming a flow
nowhere held says so and opens no other flow. The retired
`/studio/~org/automations` addresses (with or without `?surface=flow:<name>`)
redirect to the list or the flow (objectstack#36903).

### Access matrix (package-scoped)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,15 +214,15 @@ describe('the palette in the `studio` scope lists the Studio, not an app (object
await studioListed();
pick('studio-flow Onboard Account ');
await waitFor(() =>
expect(locationNow()).toBe('/studio/com.acme.crm/automations?surface=flow%3Acrm_onboard'),
expect(locationNow()).toBe('/studio/com.acme.crm/metadata/flow/crm_onboard'),
);
});

it('opens a package-less flow in the package-less scope (objectui#11553)', async () => {
mountStudio();
await studioListed();
pick('studio-flow Nightly Cleanup ');
await waitFor(() => expect(locationNow()).toBe('/studio/~org/automations?surface=flow%3Aorg_cleanup'));
await waitFor(() => expect(locationNow()).toBe('/studio/~org/metadata/flow/org_cleanup?source=runtime'));
});

it('matches an entry by its label or its machine name', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ describe('artifactStudioPath', () => {
);
});

it('flow → Automations pillar (the reserved ?surface=flow: consumer gets its first producer)', () => {
it('flow → the flow designer on its metadata address (objectstack#36903)', () => {
expect(artifactStudioPath(pkg, { type: 'flow', name: 'customer_lost_follow_up' })).toBe(
'/studio/app.rmpe/automations?surface=flow%3Acustomer_lost_follow_up',
'/studio/app.rmpe/metadata/flow/customer_lost_follow_up',
);
});

Expand Down
4 changes: 2 additions & 2 deletions ui/packages/app-shell/src/console/ai/artifactStudioPath.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* (objectui#2623).
*
* object → Data pillar, the object's schema/records surface
* flow → Automations pillar (the `?surface=flow:` consumer was reserved
* for exactly this bridge — this is its first producer)
* flow → the flow designer, full-screen on the flow's metadata address
* (objectstack#36903: the Automations pillar retired)
* dashboard, page, view, app
* → the item's page in the "All metadata" area. objectstack#36502:
* the Interfaces pillar that designed them is retired; they are
Expand Down
6 changes: 4 additions & 2 deletions ui/packages/app-shell/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -617,8 +617,10 @@ export {
// Standalone at `/studio` and embedded via the `studio:builder` component ref.
export { BuilderLanding } from './views/studio-design/BuilderLanding.js';
// The one Studio scope that is not a package (objectui#11553): the
// organization's own package-less flows, at `/studio/~org/automations`. A host
// that declares the `/studio` routes reads the reserved segment from here.
// organization's own package-less flows, listed at
// `/studio/~org/metadata/flow?source=runtime` (objectstack#36903; the old
// `/studio/~org/automations` redirects there). A host that declares the
// `/studio` routes reads the reserved segment from here.
export {
STUDIO_ORG_SCOPE_SEGMENT,
STUDIO_ORG_SCOPE_PILLAR,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ function ObjectCreate({ open, onOpenChange, packageId, inPair, locale, onCreated
);
}

function FlowCreate({ open, onOpenChange, packageId, inPair, locale, onCreated }: MetadataListCreateDialogProps) {
function FlowCreate({ open, onOpenChange, packageId, inPair, locale, onCreated, onOpenExisting }: MetadataListCreateDialogProps) {
const client = useMetadataClient();
const startTrigger = React.useMemo(() => newFlowTriggerFields(locale), [locale]);
const watchesObject = startTrigger.object?.showWhen?.equals ?? [];
Expand All @@ -242,7 +242,9 @@ function FlowCreate({ open, onOpenChange, packageId, inPair, locale, onCreated }
const [needs, setNeeds] = React.useState<string | null>(null);
const [busy, setBusy] = React.useState(false);
const [error, setError] = React.useState<StudioRefusal | null>(null);
const [taken, setTaken] = React.useState<Taken | null>(null);
// `here`: the flow holding the identifier is this package's own (published or
// a draft), so the notice offers to open it, as the Automations pillar's did.
const [taken, setTaken] = React.useState<(Taken & { here: boolean }) | null>(null);
const group = React.useId();
React.useEffect(() => {
if (!open) return;
Expand All @@ -261,7 +263,8 @@ function FlowCreate({ open, onOpenChange, packageId, inPair, locale, onCreated }
try {
const held = await findTakenIdentifier(client, 'flow', name, locale);
if (held) {
setTaken(held);
const own = await loadPackageSurfaces(client, 'flow', packageId, locale).catch(() => []);
setTaken({ ...held, here: own.some((flow) => flow.name === name) });
return;
}
// Born switched off (`obsolete`, what the switch writes for Off):
Expand All @@ -275,9 +278,13 @@ function FlowCreate({ open, onOpenChange, packageId, inPair, locale, onCreated }
);
const target = await createTarget(packageId, inPair, null);
await client.save('flow', name, skeleton, { mode: 'draft', packageId: target.packageId, ifNoneMatch: '*', surface: 'studio' });
const live = await publishSavedItem(client, { type: 'flow', name, packageId: target.packageId }, false);
// objectstack#36726 — pinned `If-None-Match: *`, as the Automations
// pillar's create was (objectstack#36903 moved every flow create here):
// a flow another writer published under the name since the check above
// is refused, not replaced.
const live = await publishSavedItem(client, { type: 'flow', name, packageId: target.packageId }, false, publishCreated);
if (!live.ok) {
setError(plainRefusal(live.error));
if ('error' in live) setError(plainRefusal(live.error));
return;
}
toast.success(tFormat('engine.studio.auto.createdOff', locale, { name: label }));
Expand Down Expand Up @@ -313,7 +320,13 @@ function FlowCreate({ open, onOpenChange, packageId, inPair, locale, onCreated }
{taken && (
<CreateTakenNotice
scope="flow"
sentence={tFormat('engine.studio.auto.createTakenElsewhere', locale, { label: taken.label, name: taken.name })}
sentence={tFormat(
taken.here ? 'engine.studio.auto.createTaken' : 'engine.studio.auto.createTakenElsewhere',
locale,
{ label: taken.label, name: taken.name },
)}
openLabel={tFormat('engine.studio.create.openExisting', locale, { label: taken.label })}
onOpen={taken.here && onOpenExisting ? () => onOpenExisting(studioItemPath(packageId, 'flow', taken.name)) : undefined}
/>
)}
<fieldset className="space-y-2">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,11 @@ function DefaultMetadataList({ type, appName }: { type: string; appName?: string
: {}),
};
const filtered = applyListState(scopedItems, listState, rowReader, locale);
// objectstack#36903 — a host that says what its empty list means (the
// package-less scope, whose list is its source filter's narrowing of the
// environment's rows) reads an unsearched, empty list as empty, not as a
// search with no match.
const hintedEmpty = !!host?.emptyListHint && !query.trim() && filtered.length === 0;
// The list context every row link carries to its detail (decision 10).
const listContext = listContextQuery(listState);

Expand Down Expand Up @@ -1449,12 +1454,13 @@ function DefaultMetadataList({ type, appName }: { type: string; appName?: string
{!loading && !error && !packagesPending && (envScope || !!host || (projectPackages?.length ?? 0) > 0) && filtered.length === 0 && (
<Empty>
<EmptyTitle>
{scopedItems.length === 0
{scopedItems.length === 0 || hintedEmpty
? tFormat('engine.list.emptyType', locale, { type: typeLabel })
: tFormat('engine.list.emptyQuery', locale, { query })}
</EmptyTitle>
<EmptyDescription>
{config.emptyStateHint ??
{(scopedItems.length === 0 || hintedEmpty ? host?.emptyListHint : undefined) ??
config.emptyStateHint ??
(canCreate
? tFormat('engine.list.createHint', locale, { type: typeLabel })
: t('engine.list.readOnlyHint', locale))}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ export interface MetadataAreaHost {
* customization to create with, or the ensure door refuses this caller.
*/
pairCreate?: boolean;
/**
* objectstack#36903 — what an empty list of the area says under its title in
* place of the type's own hint: the package-less scope's flow list says how a
* packaged flow is changed instead (ADR-0146 D11). Absent elsewhere.
*/
emptyListHint?: string;
}

export const MetadataAreaHostContext = React.createContext<MetadataAreaHost | null>(null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ const SAMPLE_KEYS = [
'engine.studio.pkg.new',
'engine.studio.data.newObject',
'engine.studio.data.tab.records',
'engine.studio.auto.heading',
// objectstack#36903 — the flow designer's, now that the rail's heading is gone.
'engine.studio.auto.defaultOff',
'engine.studio.access.title',
'engine.appNav.heading',
'engine.appNav.addItem',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@ import { t } from './i18n';
import { loadStudioCatalogue } from '@object-ui/i18n/namespaces/studio';
await loadStudioCatalogue('zh');

/** The automation pillar's chrome: every `engine.studio.auto.*` row it renders as prose. */
/**
* The flow designer's chrome: every `engine.studio.auto.*` row it renders as
* prose. objectstack#36903 — the rail's heading and empty rows went with the
* rail.
*/
const PILLAR_ROWS = [
'engine.studio.auto.heading',
'engine.studio.auto.defaultOff',
'engine.studio.auto.canvasHint',
'engine.studio.auto.on',
Expand All @@ -47,8 +50,6 @@ const PILLAR_ROWS = [
'engine.studio.auto.enabledToast',
'engine.studio.auto.disabledToast',
'engine.studio.auto.newTitle',
'engine.studio.auto.none',
'engine.studio.auto.emptyMain',
'engine.studio.auto.config',
'engine.studio.auto.emptyLine1',
'engine.studio.auto.emptyLine2',
Expand Down Expand Up @@ -82,7 +83,7 @@ describe('Studio automation pillar — zh copy is plain language (objectui#11659
expect(INTERNAL_TOKENS[2].test('已 ON')).toBe(true);
});

it('the en heading names the pillar without the metadata type', () => {
expect(t('engine.studio.auto.heading', 'en-US')).not.toMatch(/\bflow\b/i);
});
// objectstack#36903 — the pillar's en heading (`engine.studio.auto.heading`)
// went with the rail and is retired in 19.0.0 (ruling 7153171432), so its
// case went with it; the designer's rows above carry the plain-language pin.
});
Loading
Loading