Skip to content

Commit 4c891e4

Browse files
committed
docs(studio): the package-less scope's README section and the changeset in user terms; stale comments go; the Restore case reads the header's title (#36903)
Claude-Session: https://claude.ai/code/session_01QSeKYnHH41MS5hWVGPia4F Co-authored-by: Claude <noreply@anthropic.com>
1 parent d58d418 commit 4c891e4

5 files changed

Lines changed: 36 additions & 25 deletions

File tree

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
---
22
'@object-ui/app-shell': patch
3-
'@object-ui/i18n': patch
43
---
54

6-
feat(studio): a flow opens full-screen at its metadata address; the Automations pillar's flow list is gone
5+
feat(studio): a flow opens full-screen in its own page; the Automations pillar's flow list is gone
76

87
Clause-②: no
98
Metadata-protocol: none
109

11-
A flow in Studio now opens at its own address, `/studio/PACKAGE/metadata/flow/NAME`, full-screen beside the left menu, instead of the Automations pillar's flow list and canvas. The header is the one every full-screen item page has: × back to the flow list (its filters and sort kept), ‹ › through it in the list's order, the flow's label (its machine name on the title's tooltip), type and package, and a ⋯ menu holding New similar and Delete flow. It 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 is the designer's Canvas, Variables, Runs, Problems and Debug, then References, History and Source, which replace the item-tools menu and its side sheets; the open tab is in the address (`?tab=`). Save stays the Studio top bar's and still publishes that one flow, pinned to the version it was loaded at; leaving with unsaved edits (×, ‹ ›, the menu, a reload, closing the tab) asks first.
10+
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.
1211

13-
A flow is created from the flow list's 「新建」 on the same starting points, and that create's publish now asserts no published flow of the name, as the pillar's did. New similar opens the copy at its own address, with the strip saying where it landed. Deleting a flow returns to the flow list. The copilot keeps reading which flow is open (from the address) and keeps refreshing after its edits.
12+
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.
1413

15-
The organization's own flows, which belong to no package, are listed at `/studio/~org/metadata/flow?source=runtime` and open at `/studio/~org/metadata/flow/NAME?source=runtime`; that list offers no 「新建」, as before.
14+
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).
1615

17-
Old addresses keep working: `/studio/PACKAGE/automations?surface=flow:NAME` redirects to the flow's address and a bare `/studio/PACKAGE/automations` to the flow list; `/studio/~org/automations` (with or without a flow) redirects to the scope's own addresses. Other query parameters are kept. `/studio/PACKAGE/metadata/flow/NAME/history` opens the History tab. An address naming a flow the package does not hold says so and opens no other flow; one naming a package-less flow opens it in the organization scope. A draft-review link (`?review=1`) and the environment view (`?scope=environment`) still open the flow's generic item page, as they did when flows had a pillar.
16+
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. Draft-review links and the environment view still open a flow's generic item page, as they did when flows had a pillar.
1817

19-
The list has no column yet for a flow's trigger object or its run status; until it does, both are on the flow's header. Ten console strings only the flow list and its legend used are removed from the studio locale namespace.
18+
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. No console string is removed.

‎ui/packages/app-shell/README.md‎

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -791,21 +791,26 @@ On the declared page:
791791
rule already switched off has no served projection, so its clone continues
792792
in the pre-filled New form, which asks for the criteria.
793793

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

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

810815
### Access matrix (package-scoped)
811816

‎ui/packages/app-shell/src/index.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,8 +601,10 @@ export {
601601
// Standalone at `/studio` and embedded via the `studio:builder` component ref.
602602
export { BuilderLanding } from './views/studio-design/BuilderLanding.js';
603603
// The one Studio scope that is not a package (objectui#11553): the
604-
// organization's own package-less flows, at `/studio/~org/automations`. A host
605-
// that declares the `/studio` routes reads the reserved segment from here.
604+
// organization's own package-less flows, listed at
605+
// `/studio/~org/metadata/flow?source=runtime` (objectstack#36903; the old
606+
// `/studio/~org/automations` redirects there). A host that declares the
607+
// `/studio` routes reads the reserved segment from here.
606608
export {
607609
STUDIO_ORG_SCOPE_SEGMENT,
608610
STUDIO_ORG_SCOPE_PILLAR,

‎ui/packages/app-shell/src/views/studio-design/AutomationsPillar.customizeFlow-28570.test.tsx‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,10 +431,13 @@ describe('Customize a read-only base’s flow into its pair (objectstack#28570)'
431431

432432
// objectstack#29692 — the dialog names the flow by its listed label, the
433433
// label the base's flow list serves (objectstack#36903: the rail is gone).
434-
const railText = 'Notify owner';
434+
// Read off the header's title, which names the flow by that label too, so
435+
// the case still cross-checks the dialog against what the page shows.
436+
const listedLabel = within(header()).getByTestId('auto-canvas-caption').textContent ?? '';
437+
expect(listedLabel).not.toBe('');
435438
fireEvent.click(within(await openRestorePopover()).getByTestId('studio-override-restore'));
436439
const dialog = await screen.findByTestId('studio-restore-original-dialog');
437-
const vars = { item: railText!, package: 'HotCRM' };
440+
const vars = { item: listedLabel, package: 'HotCRM' };
438441
expect(dialog).toHaveTextContent(tFormat('engine.studio.customize.restoreConfirm', 'en', vars));
439442
expect(dialog).toHaveTextContent(tFormat('engine.studio.customize.restoreFlowBody', 'en', vars));
440443
expect(dialog).toHaveTextContent(t('engine.studio.customize.restoreDraft', 'en'));

‎ui/packages/app-shell/src/views/studio-design/studioScope.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
*
1414
* This scope is where such a flow is listed and edited. It is the SAME
1515
* `StudioDesignSurface` with no package under it, not a second builder: the
16-
* generic `/studio/:packageId/:tab` route serves `/studio/~org/automations`,
17-
* and the surface reads the reserved segment as "no package".
16+
* area's route serves `/studio/~org/metadata/flow?source=runtime` (the list)
17+
* and `/studio/~org/metadata/flow/<name>?source=runtime` (the designer), and
18+
* the surface reads the reserved segment as "no package". objectstack#36903 —
19+
* the old `/studio/~org/automations` redirects there.
1820
*
1921
* ## The segment cannot name a package
2022
*

0 commit comments

Comments
 (0)