Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
b45cb7e
wip(studio): permission set address switch groundwork (#36905)
claude Nov 24, 2026
dd3c83c
wip(studio): permission set full-screen page, OWD route, access redir…
claude Nov 24, 2026
ebd76cb
wip(studio): list New similar, changeset (#36905)
claude Nov 24, 2026
e12e9fa
wip(studio): copilot context, pair marks, move pins to the new addres…
claude Nov 24, 2026
8b97367
wip(studio): one read-only mark on the sharing overview (#36905)
claude Nov 24, 2026
61191c4
wip(studio): base label type (#36905)
claude Nov 24, 2026
ba406fd
wip(studio): lint (#36905)
claude Nov 24, 2026
d1ebd74
wip(studio): AI draft notice on the permission set page (#36905)
claude Nov 24, 2026
6a12ac1
Merge remote-tracking branch 'origin/main' into claude/issue-36905-pe…
claude Nov 24, 2026
9bf7981
test(studio): anchor the list's create-button query; a base row's New…
claude Nov 24, 2026
bfc3ed7
feat(studio): delete the Access pillar and its rail; move its live pi…
claude Nov 24, 2026
813358b
docs(changeset): the pillar's page is gone; the AI draft notice (#36905)
claude Nov 24, 2026
6a039f5
chore(studio): drop the Access pillar's catalogue keys and its create…
claude Nov 24, 2026
5e6e003
test(studio): pay @objectstack/lint at collection where the source no…
claude Nov 24, 2026
7608812
Merge remote-tracking branch 'origin/main' into claude/issue-36905-pe…
claude Nov 25, 2026
7db0176
test(studio): repoint #37108's palette and ⌘K pins at the set's addre…
claude Nov 25, 2026
4e3612f
fix(i18n): keep the 15 studio catalogue rows only the Access pillar r…
claude Nov 25, 2026
3d7c1d0
test(studio): the set page holds the pillar's matrix and discard pins…
claude Nov 25, 2026
11aaddc
test(studio): the stay-on-the-set pins wait for the page's re-read, n…
claude Nov 25, 2026
80bd343
test(studio): "New similar" on a read-only base's list rows (#36905)
claude Nov 25, 2026
bcde26a
test(studio): the surface pins pay the palette's detail entry at coll…
claude Nov 25, 2026
718a9f8
fix(studio): an old pillar address of a set the base's pair adds open…
claude Nov 25, 2026
7998775
test(studio): the sharing chip asks before it leaves a dirty matrix; …
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
16 changes: 16 additions & 0 deletions .changeset/36905-permission-fullscreen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
'@object-ui/app-shell': patch
---

feat(studio): a permission set opens full-screen at its metadata address; the record-visibility overview gets its own route

Clause-②: no
Metadata-protocol: none

A permission set in Studio now opens at its own address, `/studio/PACKAGE/metadata/permission/NAME`, full-screen beside the left menu, instead of the Access pillar's rail and workbench. The header is the one every full-screen item page has: × back to the list of sets (its filters kept), ‹ › through it, the set's label (its machine name on the title's tooltip), type and package, and a ⋯ menu. The Access pillar's own page and its list of sets are gone. The tab row is the matrix's five sections (Objects, System capabilities, Row-level security, Tab visibility, Delegated admin), then References, History and Source; History replaces the matrix's History sheet and is addressable (`?tab=history`). Save stays the Studio top bar's, and leaving with unsaved edits (×, ‹ ›, the menu, a reload, closing the tab) asks first; the browser's Back button does not ask.

What the pillar drew around the matrix comes along: Discard draft, Explain access, the suggested-audience strip, and on a read-only base "New similar", now in ⋯ and also on each of the base's rows in the list of sets; the copy opens at its own address with the strip saying where it landed. A draft the AI assistant left (copilot or MCP) shows the designers' notice, and 「放弃 AI 的改动」 drops that one set's draft; a person's own leftover draft keeps Discard draft.

The organization-wide default sharing overview ("Who can see which records") is a page of its own, `/studio/PACKAGE/owd`, the Access group's menu entry; a set's per-object visibility badge opens it on that object (`?object=NAME`).

Old addresses keep working: `/studio/PACKAGE/access?surface=permission:NAME` redirects to the set's address (a set a read-only base's `.custom` pair adds, a "New similar" copy among them, to the pair's address, where it opens writable as the pillar opened it), `?surface=owd:overview` to the overview, and a bare `/studio/PACKAGE/access` to the list of sets; other query parameters are kept. `/studio/PACKAGE/metadata/permission/NAME/history` opens the History tab. The cross-package leg (`/studio/~all/...`) keeps the matrix's environment page. No locale keys, props of published packages or exports change: the catalogue rows only the Access pillar read stay in `@object-ui/i18n`, unread.
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ describe('/studio — the "All metadata" area\'s routes (objectstack#28561)', ()
'/studio/com.example.crm/metadata',
// objectstack#36899 — the left menu's targets that are not an area list.
'/studio/~org/automations',
// objectstack#36905 — the sharing overview's own route, and the old address that redirects to it.
'/studio/com.example.crm/owd',
'/studio/com.example.crm/access?surface=owd%3Aoverview',
'/studio/com.example.crm/metadata/_diagnostics',
])(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ const RECOVERY_SITES: ReadonlyArray<{
'packages/app-shell/src/views/studio-design/StudioPillarKit.tsx',
'packages/app-shell/src/views/studio-design/DataPillarHelpers.tsx',
'packages/app-shell/src/views/studio-design/AutomationsPillar.tsx',
'packages/app-shell/src/views/studio-design/AccessPillar.tsx',
'packages/app-shell/src/views/studio-design/DataPillar.tsx',
],
site: 'Studio: the header Back to app, with no app to name',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
* objectui#12725 (the remainder, item 1) — the permission matrix names its
* authoring surface only under the Studio host.
*
* `PermissionMatrixEditPage` serves two hosts: Studio's Access pillar mounts it
* `PermissionMatrixEditPage` serves two hosts: Studio's permission set page
* (objectstack#36905; the Access pillar before it) mounts it
* with `packageId` and `embedded`, and its draft save is a person's edit in
* Studio, so it sends `?surface=studio` (recorded as `by: 'studio'` in the
* draft's `draftChanges`, objectstack#24395). metadata-admin mounts it through
* the resource registry with only `type` and `name`: its save is the
* environment door's live write and states no surface.
*
* Both hosts are the REAL ones (`AccessPillar`, `MetadataResourceEditPage`
* Both hosts are the REAL ones (`StudioPermissionSetPage`, `MetadataResourceEditPage`
* through the built-in registration), and the save goes through a REAL
* `MetadataClient` whose transport records each `PUT`, so the pins read the
* query string the server would read.
Expand Down Expand Up @@ -89,7 +90,7 @@ vi.mock('../studio-design/StudioAiCopilot', () => ({ StudioChatDock: () => null

import '../../services/builtinComponents.js';
import { MetadataResourceEditPage } from './ResourceEditPage';
import { AccessPillar } from '../studio-design/StudioDesignSurface';
import { StudioPermissionSetPage } from '../studio-design/StudioPermissionSetPage';
import { StudioSaveHarness, pressStudioSave } from '../studio-design/__tests__/studioSaveHarness';

window.matchMedia = ((query: string) => ({
Expand All @@ -115,11 +116,11 @@ beforeEach(() => {
afterEach(cleanup);

describe('the permission matrix states `surface` only under the Studio host (objectui#12725)', () => {
it('Studio’s Access pillar: the draft save sends `?surface=studio`, once', async () => {
it('Studio’s permission set page: the draft save sends `?surface=studio`, once', async () => {
render(
<StudioSaveHarness>
<MemoryRouter>
<AccessPillar packageId={PKG} />
<StudioPermissionSetPage packageId={PKG} name={SET.name} />
</MemoryRouter>
</StudioSaveHarness>,
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.

/**
* objectstack#36511 — a permission set in the Studio's Access pillar saves with
* the top bar's Save and Cancel, and a Save is live at once.
* objectstack#36511 — a permission set in Studio (since objectstack#36905 on
* its full-screen page) saves with the top bar's Save and Cancel, and a Save
* is live at once.
*
* - A grant clicked sends nothing: no draft write leaves before Save is
* pressed, however long the page waits (the set's 1.5 s autosave is gone
Expand All @@ -13,7 +14,7 @@
* - A refused publish keeps the grant unsaved, says why on the page, and takes
* back the draft the Save wrote.
*
* The REAL `AccessPillar` inside the top bar's coordinator; the writes go
* The REAL `StudioPermissionSetPage` inside the top bar's coordinator; the writes go
* through a REAL `MetadataClient` whose transport records each one, so the pins
* read the URL the server would read. The environment door (metadata-admin,
* no package) keeps its own Save and live write: pinned in
Expand Down Expand Up @@ -101,7 +102,7 @@ vi.mock('../../components/SuggestedBindingsPanel', () => ({ SuggestedBindingsPan
vi.mock('../studio-design/StudioAiCopilot', () => ({ StudioChatDock: () => null }));

import { toast } from 'sonner';
import { AccessPillar } from '../studio-design/StudioDesignSurface';
import { StudioPermissionSetPage } from '../studio-design/StudioPermissionSetPage';
import { StudioSaveHarness, pressStudioCancel, pressStudioSave } from '../studio-design/__tests__/studioSaveHarness';
import { tFormat } from './i18n';

Expand Down Expand Up @@ -130,7 +131,7 @@ async function mount(): Promise<void> {
render(
<StudioSaveHarness>
<MemoryRouter>
<AccessPillar packageId={PKG} />
<StudioPermissionSetPage packageId={PKG} name={SET.name} />
</MemoryRouter>
</StudioSaveHarness>,
);
Expand Down
Loading
Loading