Repository navigation
feat(studio): a permission set opens full-screen at its metadata address; the sharing overview gets its own route - #37089
Conversation
Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H Co-authored-by: Claude <noreply@anthropic.com>
…ect (#36905) Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H Co-authored-by: Claude <noreply@anthropic.com>
…ses (#36905) Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H Co-authored-by: Claude <noreply@anthropic.com>
…rmission-fullscreen
… similar is no create (#36905) Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H Co-authored-by: Claude <noreply@anthropic.com>
…ns to the permission set page (#36905) Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H Co-authored-by: Claude <noreply@anthropic.com>
… dialog from the live census (#36905) Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H Co-authored-by: Claude <noreply@anthropic.com>
…w reaches it (#36905) Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H Finalized head for L1 · 2026-11-24T23:41Z ·
|
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 席位核对 — REWORK · L1 · head
|
…rmission-fullscreen
|
repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H Finalized head for delta L1 · 2026-11-25T02:17Z ·
|
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 席位核对 — ACCEPT · L1 · head
|
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ Contract reviewServed-tier: Full review of this head, made without the L1's conclusions. Inputs: ① Derived judgmentsPublished i18n: api-surface baselines: the only ones are Accept sets: no change. No schema, spec or authorable key moves. The route table grows by one segment ( Redirects, judged against what the retired pillar actually wrote to the address bar:
Unsaved-edits guards:
M1 (must-fix) — the old address of a set that a read-only base's pair adds redirects to the base, not to the set.
S1 (should-fix) — the sharing chip's leave guard is pinned by no test that fails when it is reverted.
N1 (nit) — the ② Semver level
③ Boundary flags
Implemented-by: VERDICT: FAIL |
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 席位核对 — REWORK · L1 · head
|
…s at the pair (#36905) The retired Access pillar listed, on a read-only base, the sets its .custom pair adds and opened them at the pair, writable, while the address kept naming the base. The redirect now reads the base's and the pair's sets (published and draft) for an address that names a set, and sends a set only the pair holds to the pair's address. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QSeKYm19REy32icNSdWEsv
…the old pillar address's query reaches the redirect (#36905) Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QSeKYm19REy32icNSdWEsv
|
repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H Finalized head for delta L1 + delta contract review · 2026-11-25T03:35Z ·
|
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ Contract reviewServed-tier: Delta review of this head on the FAIL at ① Derived judgmentsPublished i18n: api-surface baselines and accept sets: no change. Nothing in M1 (closed) — the old address of a set a read-only base's pair adds now opens at the pair.
The mechanism (spec rule vs. the surface's
Loading and failure states:
S1 (closed) — the sharing chip's leave guard is pinned with a dirty matrix.
N1 (closed) — N2 (nit) — the landing's failed-read path is pinned only through the pure ② Semver level
③ Boundary flags
Implemented-by: No must-fix, no should-fix. VERDICT: PASS |
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 席位核对 — ACCEPT · L1 · head
|
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 维护者速读
Hand-off · 2026-11-25T03:41Z · @os-zhuang — PR #37089 (card #36905) is ready for your review. Tier H by size (5,223 changed lines; ruling 7145880574). Seat ACCEPT 7152152994 and contract review PASS 7152146345 (TIER_DEFAULT), Head-sha |
#37089 (the permission designer) landed first: one designer-page list now holds both types, AREA_DESIGNER_PAGE_TYPES = ['permission', 'object']. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QSeKYoFqGdRM9Qmg7M2o2B
…r beside the flow designer) Claude-Session: https://claude.ai/code/session_01QSeKYnHH41MS5hWVGPia4F Co-authored-by: Claude <noreply@anthropic.com>
Fixes #36905
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
A permission set now opens full-screen at its metadata address, and the organization-wide default sharing overview has a route of its own. The Access pillar draws no page any more: every address it answered redirects.
Three facts for the reviewer, up front:
engine.studio.access.*of its rail and create dialog, andengine.studio.owd.railLabel, en and zh) ship in the released@object-ui/i18n, so they stay inui/packages/i18n/src/namespaces/studio/en.tsandzh.ts, byte-for-byte as onmain, unread.check:i18n-dead-keyslists them as candidates (report only), as it does other unread rows.origin/mainis merged at709d2c1e, and feat(studio): ⌘K on every Studio design page lists the package's menu and items #37108's palette and ⌘K pins now expect the set's address and the overview's route.StudioPermissionSetPage, new). On a package's leg,/studio/PACKAGE/metadata/permission/NAMEopens the matrix (PermissionMatrixEditPage, its Studio presentation) in the area instead of sending the set to the Access pillar (AREA_DESIGNER_PAGE_TYPES/areaItemOpensDesignerPageinmetadataArea.ts). The header is the full-screen detail's (ResourceDetailHeader, from Studio 重构(0-2):全屏详情的头部组合件——用 StudioItemHeader 的插槽放 ×、来源包、‹ › 加序号、⋯ 和主按钮 #36892/Studio 重构(2-1):通用详情换新头部,六个侧边抽屉改成页签(详情、预览、相关、被引用、历史、源码),出一套设计器也能用的页签组件 #36901): × back to the list with its context, ‹ › through it, label (the machine name on its tooltip), type and package, ⋯. The tab row is the matrix's five sections, thenItemToolTabs' References, History (with the audit log) and Source; a tool tab is addressable (?tab=) and keeps the matrix mounted and hidden. The matrix gains one optional seam for this,studio.frame(renderHeader,toolOpen,toolPanel,onDraftChangesRead); without it the matrix draws its own header exactly as before. The cross-package leg (/studio/~all/...) keeps the matrix's environment page.ResourceListPage; not on its pair's rows). The copy opens at its own metadata address with the strip saying where it landed (permissionNewSimilar.tsx, shared by the page and the list). Unsaved edits: the matrix registers with the shell's leave guard and the top bar's Save, so ×, ‹ ›, the menu, a reload and a tab close ask first; the browser's Back is not guarded (epic decisions 1 and 12). A discard sends a never-published set back to the list only when the package's sets were read and it is not among them: an unanswered read keeps the page on the set.StudioAiDraftNotice) with 「放弃 AI 的改动」, which drops that one set's draft at its package and asks first only when the matrix holds unsaved edits: the rule feat(studio): the generic item page's Save takes effect at once; an AI draft gets the designers' notice and discard #37026 applied to the generic item page. A person's own leftover draft keeps Discard draft (decision 14). The matrix reports the draft'sdraftChangesfrom the read it already makes; no new request. Issue Studio: a person's Save on a permission set, hook, added action or OWD row publishes a pending AI draft of that item with no notice (the AI notice and its discard exist only on objects and flows) #36660 stays open: this PR applies its rule on the permission set page only; hooks, added actions and the sharing overview's rows are still its scope./studio/PACKAGE/owd(StudioOwdOverviewPage, new;studioOwdOverviewPath,STUDIO_OWD_SECTION), the Access group's menu entry (studioMenuModel.ts: itstoand the current-entry mapping). A set's per-object visibility badge opens it on that object (?object=NAME). Its one read-only mark is the header's (objectui#12453), so the panel's own duplicate is gone.permissionleavesSTUDIO_ITEM_PILLAR, sostudioItemPath(the palette, the AI artifact links, every producer) answers the metadata address; the menu's designer types are named explicitly so a permission set keeps its entry./studio/PACKAGE/access?surface=permission:NAMEredirects to the set's address,?surface=owd:overviewto the overview, a bare/accessto the list of sets, other parameters kept (accessPillarRedirect.ts). A set a read-only base's.custompair adds (every "New similar" copy among them) was listed on the base's pillar and opened at the pair, writable, while the address named the base: its old address now opens at the pair's,/studio/PAIR/metadata/permission/NAME?package=PAIR. For an address that names a set,AccessPillarLanding(accessPillarLanding.tsx, new) reads the base's and the pair's sets, published and draft, as the pillar listed them, andaccessPillarSetHolderdecides: the base when it holds the name, else the pair when it does, else the base; a failed pair read lists none of the pair's sets, a failed base read stays on the base. The pair is the spec's pairing rule (customizationPackageId), as the list of sets derives it. Every other address redirects at once..../permission/NAME/historyopens the History tab:AreaHistoryRedirect's own-editor exemption no longer covers a designer page. The address table's rows say where each moved (redirectsTo).?surface=; the page's address carries it in the path, so the copilot's surface context reads a designer page's address too (areaDesignerItemOf, pillarmetadata), and the page reports its label, so the chip still reads 「正在看:权限 · 组织成员」 (objectstack#35018). Only designer-page types are read this way, andPACKAGE/metadata/permission/new(the area's create page) is no item; every other area item is unchanged.AccessPillar.tsx, maintainer's answer on epic 专题:Studio 重构——某个应用的开发界面:左侧按类型分组的菜单 → 列表 → 右侧全屏详情(去掉顶部分区) #36890, comment 7145880574: this card, reviewed by the maintainer as Tier H by size). Five test files go with it (accessCreateTaken-26836,accessGuard,accessRailLabelLive-26846,accessRailLabels-11862,accessTabs-12456), and the Access cases ofStudioRail.noMatches-26733,emptyStates-12514,readOnlyWording-11781. Not all of that was pillar-only:accessTabs-12456's matrix cases (the five tabs and sections, the facet panels kept mounted for the Save gate, the bulk strip with keyboard focus, the CRUD write, the sharing chip and the object count) andaccessCreateTaken-26836's discard cases (a declined question, a never-published set, a read-only package) moved to the page's pin; what went is the rail, the pillar's own header and its create dialog. The other pins of behaviour that lives on moved to the page too: the matrix's Studio Save (studioSave-36511,saveSurface-12725), New similar (accessNewSimilar-28573, now through ⋯), the suggestions strip on a read-only package (accessSuggestionsReadOnly-33158), the zh wording (accessWording-34795), the status place (statusPlace-12524) and the read-only banner. The page keeps objectstack#34795's ruling: the set's machine name is the title's tooltip, so its header draws no API-name chip.Tests
New pins
StudioPermissionSetPage.fullScreen-36905.test.tsx(26 in round 1): the detail header and no matrix header; section and tool tabs; a tool tab addressable and the matrix kept mounted; × to the list; Discard draft at the set's package, CONTROL none without a draft; a declined question discards nothing; a never-published set's question and its discard back to the list, CONTROL a published set stays and re-reads; no discard on a read-only package; an unanswered sets read keeps the AI discard on the set; the AI notice for copilot and mcp drafts and its discard without a question on a clean page, CONTROL a person's draft; New similar in ⋯ landing at the copy's address with the strip, the no-package answer, CONTROL none on a writable package; the matrix's five sections (order and landing, each section, facets kept mounted, the bulk strip on every row, keyboard focus, CRUD and the header's count, the sharing chip opening the overview on its object and the object count).metadataAreaHost.scope-28561.test.tsx(+4, "New similar" on a read-only base's rows): the base's row offers it and its pair's row does not; the copy opens at its metadata address in the package the clone door names; an answer naming no package opens nothing and says so; CONTROL a writable package offers none. The list's create button is queried by its new test id (metadata-list-create), not its label, which "New similar" no longer collides with.accessPillarRedirect.test.ts(7): set, overview, bare and unknown surfaces, parameters carried; a set held in the pair opens at the pair's address while the overview and the list stay on the base; the set name an address opens; the holder decision (the pair's set, CONTROL the base's own set even when the pair holds the name too, neither, a failed pair read, a failed base read).StudioDesignSurface.accessPairCopy-29674.test.tsx(+4, the retired pillar's address through the real surface):/studio/BASE/access?surface=permission:COPYlands on/studio/PAIR/metadata/permission/COPY?package=PAIR, the copy reads Custom and an edit saves at the pair; a set created in the pair, still a draft, lands there too; the address's other parameters reach the redirect and ride along (?ref=bookmark;?changes=reviewis consumed by the surface, which opens the drawer); CONTROL the base's own set's old address stays on the base and reads Package.StudioPermissionSetPage.fullScreen-36905.test.tsx(+3, the sharing chip's leave guard): with a dirty matrix the chip asks the unsaved-edits question once, and declined the page stays on the set with the edit; confirmed it opens the overview on its object; CONTROL a clean matrix asks nothing.StudioMetadataArea.routes-28561.test.tsx(+4): the set opens in place on writable and read-only packages, CONTROL the cross-package leg keeps the generic page, the old history address opens the History tab.metadataArea.test.ts,studioAddress.test.ts,studioMenuModel.test.ts: the predicate, the address reader (the create page is no item),studioOwdOverviewPath, the moved rows agree with the redirect, the menu entry and current key.Pins moved to the new addresses
StudioDesignSurface.metadataArea-28561(⌘K's Default sharing from a set's page opens/studio/PACKAGE/owd),StudioPaletteGroups.surfaceScope-36900(an item opens at/studio/PACKAGE/metadata/permission/NAME?package=PACKAGE, the menu entry at/studio/PACKAGE/owd),studioPaletteModel-36900(leave, re-enter and stay read on the set's address; the overview's route is a leave).StudioRoute.metadataArea-28561(console): the Studio gate refuses/studio/PACKAGE/owdas it refuses the old overview address.StudioDesignSurface.pillarNavGuard.test.tsx: decision 12 on the set page and the overview page (menu, Back to app, the shell seam; dirty matrix and dirty overview rows; CONTROL clean).StudioDesignSurface.accessPairCopy-29674.test.tsx: a pair's copy at the pair's address lists the base's objects, saves at the pair, names the base by its label, reads Custom; CONTROL the base's own set. Its docstring now claims only the header's half it reads.StudioItemHeader.statusPlace-12524: the read-only link is a direct child of the page's action group, the group a direct child of the actions slot.StudioDesignSurface.aiChipLabel.test.tsx: the chip and the agent's surface context on the set page.accessSegment-12452: the old Access address lands on the list of sets with its entry current.notFound-26708,readOnlyPosture-12453,pillarsClaimSlot-12725,rightSlot-12725,backToApp-36501,changesCount-11787,copilotDraftBadge-12725,publishPosture-12517used the Access pillar as "a package page that claims nothing"; they use the overview page now.Ablations (four, each reverted)
const aiDraft = …forced tofalsethroughscripts/ablation-replace.mjs: anchor 1 → 0, blob3dc44aa6→fdd76cfd; the AI-draft describe went 2 failed, 1 passed (the CONTROL); restored blob == HEAD3dc44aa6,git diff HEADempty.11aaddcc: the never-published test put back to!read?.published.has(name)throughscripts/ablation-replace.mjs: anchor 1 → 0, blob3ac18e32→0923112b; the page's discard cases went 1 failed (the unanswered-read pin), 9 passed (the published CONTROL among them); restored blob == HEAD3ac18e32,git diff HEADempty. A first pass on3d7c1d00stayed green: the pin asserted the address right after the reset and raced the navigation, so it now waits for the re-read only a page that stays makes.7d5d87bd(tree identical to79987757): the landing's holder ignored ({ setHeldIn: holder ?? packageId }→{ setHeldIn: packageId }inaccessPillarLanding.tsx) throughscripts/ablation-replace.mjs: anchor 1 → 0, blobf9502964→169d7fcc;accessPairCopy-29674went 3 failed (the copy, the pair's draft, the carried query), 8 passed (the base's CONTROL among them); restored blob == HEADf9502964,git diff HEADempty.7d5d87bd: the chip's guard removed (confirmUnsavedLeave(() => navigate(…))→ a barenavigate(…)inStudioPermissionSetPage.tsx) throughscripts/ablation-replace.mjs: anchor 1 → 0, blob3ac18e32→2b68c388;fullScreen-36905went 2 failed (declined and confirmed both ask once), 27 passed (the clean CONTROL among them); restored blob == HEAD3ac18e32,git diff HEADempty. A first spelling was refused by the tool before anything ran (its replacement was a substring of the anchor, so the replacement count could not rise).Acceptance notes
StudioDesignSurface'sPILLAR_FOR_SURFACE_TYPEstill routes apermissionsurface request through/access?surface=, and its "open Access" toast action through bare/access; both now land via the redirect. They go with the pillar routes in Studio 重构(4-1):删掉分区路由和残留(:packageId/:tab 路由、AREA_PILLAR_FOR_TYPE、pillar 文案、旧 Studio 应用的菜单项) #36909.PermissionMatrixEditor's Studio header without aframe(its ownStudioItemHeader, History button and ⋯) has no Studio host since the pillar is gone; 13 of the matrix's own unit tests still render it, so it stays this round and its doc comments say so. Deleting it with those tests' rewrite goes with Studio 重构(4-1):删掉分区路由和残留(:packageId/:tab 路由、AREA_PILLAR_FOR_TYPE、pillar 文案、旧 Studio 应用的菜单项) #36909. The matrix's prop docs no longer name the Access pillar as their host.customizationMark: 'added'): a permission set takes no override (ADR-0005), so a set the pair holds is one it adds.node scripts/pm/overlap-check.mjson7d5d87bd(tree identical to79987757):origin/main(3b4f0b98) merges cleanly; fix(app-shell,console): the shell package list, AI chat lists and studio-design reads and writes send the stored bearer token #37185 merges cleanly; feat(studio): the object designer opens full-screen on its metadata address, tabs in #36513's order #37168 and feat(studio): the flow designer opens full-screen on its metadata address; no flow rail (#36903) #37169 (open) conflict onStudioAiCopilot.tsx,StudioDesignSurface.tsx,StudioMetadataArea.tsx,metadataArea.ts,studioAddress.ts,studioMenuModel.tsand their tests; feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166 now conflicts onStudioDesignSurface.notFound-26708.test.tsx, a file this round does not touch. Whichever lands second rebases.accessPairCopy-29674andaccessPillarRedirect.test.ts, ablated); S1 fixed (the chip's dirty-matrix cases, ablated); N1 fixed (the carried-query case through the real surface). The pair redirect reads the spec's pairing rule rather than the surface'spairId: that value is set only once the package list and its manifests answer, and a failed manifests read leaves it unset, which would hold the redirect forever.areaDesignerItemOfreadspermission/newas no item); N6 fixed and pinned (the unanswered-read case, ablated above); N9 in item 3.Verification
First to read:
ui/packages/app-shell/src/views/studio-design/StudioPermissionSetPage.tsx— the page; the discard paths (dropDraft) and the New similar landing.ui/packages/app-shell/src/views/metadata-admin/PermissionMatrixEditor.tsx— theframebranch ofrenderStudio: the sections stay mounted under a tool tab.ui/packages/app-shell/src/views/studio-design/StudioAiCopilot.tsx— the copilot's context now reads a designer page's path.Two-minute check: on HotCRM, open
/studio/PACKAGE/access?surface=permission:NAMEfrom an old bookmark — it lands on/studio/PACKAGE/metadata/permission/NAME?package=PACKAGE, the matrix full-screen with × in the header (for a "New similar" copy on a read-only base, on/studio/PACKAGE.custom/metadata/permission/NAME?package=PACKAGE.custom, writable); the menu's Access group opens 「谁能看到哪些记录」 at/studio/PACKAGE/owd.Local runs
Round 3, head
79987757(tree identical to7d5d87bd, where these ran; only the two commit messages' trailer pair was reworded), throughscripts/pm/os-verify-lock.sh:ui/packages/app-shell/src/views/studio-design/whole directory: 299 files passed, 2206 tests.ui/packages/app-shelltype-check(bothtscprograms): exit 0, 0 errors.--no-inline-configon the six touched source and test files: exit 0, 0 errors (11 warnings, every one on an untouched line ofStudioDesignSurface.tsx).check:test-source-alias(also on79987757),check:nul-bytes,check:cross-package-test-inputs,check:undeclared-dep-imports,check:tier-file-adoption,check:published-files,check-empty-changeset.mjs,check-adr-0087-registration.mjs,check-changeset-no-major.mjs,check-closing-keyword-parity.mjs. The other 28 families of the same 38-family derivation read no file this round changes and were green onbcde26a0; CI runs them all.Round 2:
objectstack-ai/objectstack, headbcde26a0(origin/main merged at709d2c1e), throughscripts/pm/os-verify-lock.sh:80bd343a(73 files: every test this PR adds or edits, plus each that names the page, the list page, the area's address reader, the palette or the overview's route): 73 passed, 938 tests; the 15 filesbcde26a0then edited re-run there: 15 passed, 108 tests. CI runs the whole UI farm.ui/packages/app-shelltype-check(bothtscprograms) onbcde26a0: exit 0.check-i18n-call-site-keys.mjsexit 0;check-i18n-dead-keys.mjsexit 0 (report only; the 15 restored rows are listed as candidates).dispatch-gates.mjs --commands(same 38 families on80bd343aandbcde26a0): run one by one, exit captured before any pipe.check:test-source-aliasexit 1 on80bd343a(15 surface tests this PR edits now reach the palette'simport('@object-ui/plugin-detail')since feat(studio): ⌘K on every Studio design page lists the package's menu and items #37108; collection-time import added inbcde26a0), re-run exit 0; every other family exit 0;pnpm --dir ui exec vitest run scripts/172 files passed, 2 skipped, 5130 tests.--ranreconciliation: 38 derived, 38 run, 0 NOT-MEASURED, every line with its exit code. Onbcde26a0re-run:check:test-source-alias,check:undeclared-dep-imports,check:cross-package-test-inputs,check:type-check-debt,check:nul-bytes, each exit 0.Generated by Claude Code