Skip to content

App Studio 改版(3-2):「全部软件包」目录 ~all 搬到设置的访问分组,Studio 不再有这个入口 #37565

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4

Filing gate: ③ · Source: docs/adr/0084 on main, #amendment-2026-11-26-moves. Question 5 was ruled: ~all goes to an access-related Setup group, not to Diagnostics (record 7187264388 on #37451). The maintainer asked at 2026-11-26 13:25Z to move phase 3 forward. Sub-issue of #37424 (phase 3).
Grade: area:ux · Feature · p2 · evidence: the Studio ~all scope (the all-packages directory) is drawn from studio-design/** and routed in the console.
Reader: area ux-37424.

维护者速读

  • 用户能看到什么变化:跨所有软件包的「全部目录」搬出 Studio,放到「设置」里和访问相关的分组下。Studio 只用来开发一个软件包。
  • 为什么:Studio 开发一个包,设置管整个组织和全局内容(专题第 12 条,你已同意)。
  • 需要你做的:无。

What

Acceptance

  • Setup shows the directory under the access group, Studio has no ~all entry, and an old ~all link lands on the Setup page.
  • Existing ~all tests are re-pointed, not weakened. Screenshots attached.

Activity

  1. added
    priority:p2
    pm:queue
    domain:ui
    on Nov 26, 2026
  2. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZhAqkgRyMYuZeZt9S

    Claim: card thread, area ux-37424 (dispatch order dispatch-37565.md)
    Session: session_01Utp6CZhAqkgRyMYuZeZt9S
    Account: os-bill
    Branch: claude/project-thread-x4tuqk
    Worktree: objectstack-issue-37565
    Domain: domain:ui
    Seat: repo:objectstack#5
    Area: ux-37424
    Thread session: session_01Utp6CZhAqkgRyMYuZeZt9S (card thread of the area's session session_01Utp6CbL6Nn3scsU8yvLyU4)
    File surface: new files under ui/packages/app-shell/src/views/setup/ for the Setup page (AccessDirectoryPage.tsx) and its pure address model, with their tests; ui/packages/app-shell/src/services/builtinComponents.tsx (one registration); packages/platform-objects/src/apps/setup-nav.contributions.ts (one entry in group_access_control) and that package's nav label translations; Studio side kept to the minimum: studioMenuModel.ts (retire the environment entry and point the package-less menu's access rows at the Setup page), studioMenuData.ts and StudioMenu.tsx (drop the retired kind's label key and icon only), metadataArea.ts / StudioMetadataArea.tsx (the one-hop redirect), setupMetadataRedirect.ts and studioEntryPermissions.ts (callers that landed on the retired directory), ui/apps/console/src/components/StudioRoute.tsx (the bare ~all/* route only); the tests that pin ~all re-pointed; ui/e2e/live/declared-sharing-rules-reach-13091.spec.ts (re-pointed); the label strings in the i18n packs; one .changeset/*.md. ⛔ Not StudioDesignSurface.tsx (#37456, #37553). Stop on breach; explain in the report.
    Container & model: M, mode:thread, model: default tier (dispatch-gates --tier: no path-derived mandate), effort: high
    Sequencing: studioMenuModel.ts and StudioMenu.tsx are also edited by #37454 (PR #37546); merge origin/main once after it lands.
    Blocked-by: none.
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: none
    Premise: holds — read at origin/main 41164656 2026-11-26T13:50Z. The Studio menu draws the environment entry (Access group, every scope) to /studio/~all/metadata, whose root is the type directory scoped to the environment catalog's four types; Setup's group_access_control has no entry for them.
    Reading taken (the area may overrule it on the PR): the Setup page serves the directory and each type's environment list, re-using the metadata-admin pages, with Setup's header; an item, a create and a history still open in Studio, on the editor the environment scope uses today (/studio/~all/metadata/TYPE/NAME?scope=environment), because an environment item is edited by name and may belong to no package. ~all addresses that are the directory (the root, and a type list of the four types in the environment scope) redirect once to the Setup page; the cross-package list of any other type stays where it is. Access rule unchanged: the entry and the page both require studio.access (today's Studio entry gate) on top of Setup's own setup.access. Studio's no-package fallback, which landed on the directory, lands on the package-less scope (~org) instead, which every Studio entrant may open.
    Serial constraints cleared: #37454 (PR #37546, same two Studio menu files, merge after it lands); #37456 and #37553 hold StudioDesignSurface.tsx, not touched here.
    Governing text: docs/adr/0084 #amendment-2026-11-26-moves on main, binding; question 5 ruled in record 7187264388 on #37451.

  3. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 26, 2026
  4. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4

    Claim amendment (area ux-37424) to claim 7193663065. The card thread stopped at the fence and asked. The area adds three small edits that the move itself makes necessary:

    1. ui/packages/app-shell/src/index.ts: a one-line re-export of ACCESS_DIRECTORY_PATH, which the console's ~all route (already in the surface) imports.
    2. ui/packages/app-shell/src/views/studio-design/StudioEntryRedirect.tsx: a doc-comment-only edit for the ~org fallback. No code changes.
    3. content/docs/permissions/authorization.mdx (around line 271) and content/docs/permissions/permission-sets.mdx (around line 427): reword the one sentence in each that sends readers to /studio/~all/metadata/permission?scope=environment, so it names Setup → Access control instead. No other doc edits.

    Nothing else is added, and the ⛔ on StudioDesignSurface.tsx stands. The report and the PR body name all three.

  5. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ux · domain:ui · Feature · priority:p2 · pm:dispatched · size S; rationale: phase 3-2 of topic #37424 (the all-packages directory ~all moves into Settings, Access group). Grade follows the parent; already dispatched.

  6. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZhAqkgRyMYuZeZt9S
    os-dev-report

    {
      "issue": 37565,
      "status": "done",
      "branch": "claude/project-thread-x4tuqk",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37602",
      "session": "session_01Utp6CZhAqkgRyMYuZeZt9S",
      "premise_still_valid": true,
      "summary": "The environment directory (positions, capabilities, permission sets, sharing rules) is a Setup page, security:access-directory, entered from Setup > Access Control > Positions and Permissions (nav_access_directory), gated by studio.access on both the entry and the page. Studio's ~all menu entry is retired; the ~all root and the four types' environment-scope lists redirect once to Setup, while items, create and history still open in Studio's environment-scope editor. Studio's no-package fallback lands on ~org, temporarily, until the Phase 4 move-into-package door (Q3 ruling 7184753035). Surface added with the area's approval: index.ts re-export, StudioEntryRedirect.tsx doc comment, one sentence in each of two permissions docs; plus StudioPaletteGroups.tsx dropping the retired kind's icon key (a compile error the full build found).",
      "tests": "24 targeted vitest files green at ab28aec7 (new views/setup/accessDirectory.test.ts 30 tests and AccessDirectoryPage.test.tsx 12 tests, plus every re-pointed ~all test). Browser: showcase booted locally, light and dark, 8 screenshots in the project's shots-37565 folder; an old ~all link lands on the Setup page in one hop.",
      "gates": "dispatch-gates --commands, 67 commands: all exit 0 after build, except check-plugin-teardown-shape --self-test exit 3 (shallow clone cannot read its pinned fixture commit; environment, not the diff). check:test-source-alias exit 1 fixed (module-top lint import in the new page test), re-run exit 0. type-check app-shell (src + tests), console, i18n exit 0; pnpm build and console:build exit 0. CI check-runs pending on the PR.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "1 — mcp__github__issue_read (reads only, before this round)",
      "api_writes": "0 — PR opened through the relay (pr_create, run 45842934139)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: c · reach: Setup > Access Control > Positions and Permissions shows the reused directory heading 'All Metadata Types' · evidence: shots-37565/01-*.png · dedupe words: access directory page heading",
        "carrier: PR #37602 · noted, not filed"
      ]
    }

    Generated by Claude Code

  7. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4

    Second claim amendment (area ux-37424) to claim 7193663065, following the first amendment. The card thread stopped at the fence again and asked. The area adds two items, both forced by retiring the ~all directory:

    1. content/docs/permissions/administrator-guide.mdx lines ~199 and ~325: the two places that send readers to "Studio → All metadata" now read Setup → Access Control → Positions and Permissions. The set still opens in Studio's editor. Found by the docs-drift check. No other doc edits.
    2. ui/packages/app-shell/src/views/studio-design/StudioPaletteGroups.tsx: drop the retired kind's icon key and its import. The full build fails without this. Nothing else in that file changes.

    The ⛔ on StudioDesignSurface.tsx stands. The report and the PR body name both items.

  8. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4

    Third claim amendment (area ux-37424) to claim 7193663065, for the seat's REWORK 7199695339 (S3). The area adds:

    • ui/packages/app-shell/src/console/AppContent.tsx and ui/apps/console/src/AppContent.tsx: only the legacy alias routes that call setupMetadataStudioPath. Each may read the fail-closed holdsSetupAccess answer (through useStudioEntryPermissions, never the fail-open usePermissions().hasCapabilities) and pass it through. That way the studioAddressAfterSetupMove step runs only for a user who holds setup.access. No other line in either file changes.

    setupMetadataRedirect.ts was already in the claim. The ⛔ on StudioDesignSurface.tsx stands. Follow-up #37657 is superseded by this rework and will be closed when the PR lands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:uipm:dispatchedpriority:p2

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions