Skip to content

权限集的「审阅草稿」链接打开矩阵页,但那里没有审阅面板:软件包页和聊天里的「审阅 N 处改动」点进去看不到改了什么 #37269

Description

@objectstack-fleet

repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H

④ sub-issue of #36890 · Source: #36903's os-dev report 7157551622 and its correction 7157568261. Seat repo:objectstack#4 accepted the EditPage carve-out on PR #37169 (7157282796); the dev's corrected recommendation is "A now, and file B". Part of #36890.

维护者速读

  • 权限集有一个「审阅草稿」的链接(地址里带 ?review=1),它会打开权限集自己的矩阵编辑页。但矩阵页上没有审阅面板,看不出这份草稿改了什么。
  • 这样的链接今天就有两处会生成:软件包页上每条草稿的「审阅」链接,和聊天里的「审阅 N 处改动」按钮。主干上也是这样,不是新问题。
  • 改法:让权限集的矩阵页认得 ?review=1,打开时显示这份草稿相对已发布版本的改动(和其他类型的审阅面板一样)。

What (measured at PR #37169's head d3e30576; re-measure on main when claimed)

  • Producers that write ?review=1 for any draft item, a permission set included:
    • ui/packages/app-shell/src/views/metadata-admin/PackagesPage.tsx:1317 (the Packages page's per-draft review link);
    • ui/packages/app-shell/src/console/AppContent.tsx:286 (the chat's 「Review N change(s)」, through setupMetadataStudioPath).
  • The target: Studio's permission-set page (StudioPermissionSetPage, the matrix, which is the type's registered EditPage), and Setup's PermissionMatrixEditPage. Neither shows a draft review today.
  • Make the matrix page honour ?review=1: show the draft's change against the published set, in the same review sheet or presentation the generic item page uses, and keep editing available.
  • Pins:
    • a permission-set ?review=1 address opens the matrix with the review shown;
    • CONTROL: without ?review=1 no review opens;
    • the flow and object review links are unchanged.

Done when

  • Both producers' links on a permission-set draft show what the draft changes.

Notes

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    First touch 2026-11-25T10:32Z. Bug: a review link that both producers write opens a page with no review. area:ux · domain:ui · p2 · S–M and pm:blocked on #36903 (PR #37169) are kept. The card is now linked under #36890, as its body says. It goes to seat 4 zone a4-U on unlock. Line form below, so the unlock scan reads it.

    Blocked-by: #36903

  3. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Triage: unblocked 2026-11-25T13:37Z

  4. added
    pm:queue
    and removed
    pm:blocked
    on Nov 25, 2026
  5. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H

    Claim: PM loop round 3
    Session: session_01QSeKYkkwuF6UuFtu85Yd5H
    Account: os-justin
    Branch: claude/issue-37269-permission-set-review
    Worktree: cloud session (its own container)
    Domain: domain:ui
    Seat: repo:objectstack#4
    Area: a4-S
    File surface:

  6. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 25, 2026
  7. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYnq7io51czLb81MZMd
    os-dev-report

    Final report for #37269 at head f781168, CI green. PR #37347 (draft).

    {
      "issue": 37269,
      "status": "done",
      "branch": "claude/issue-37269-permission-set-review",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37347",
      "session": "session_01QSeKYnq7io51czLb81MZMd",
      "premise_still_valid": true,
      "summary": "Premise re-read on origin/main a182fbe3: neither StudioPermissionSetPage nor PermissionMatrixEditPage read ?review=1, and both producers (PackagesPage.tsx:1335, AppContent.tsx:286) write it. Both producers land on /studio/~all/metadata/permission/NAME?review=1, where the routed matrix has no package and read no draft. The generic page's review sheet and its ?review=1 arrival effect are extracted into DraftReviewSheet and useDraftReviewArrival. ResourceEditPage now uses both and behaves as before. PermissionMatrixEditPage uses them too, which covers Studio's page (it embeds the matrix) and the routed Setup matrix. At the arrival the matrix reads the pending draft and the published set on their own, at its load's address (the page's package, else ?package=, else the name alone, as the generic page reads a draft). The matrix's load is not re-run, so editing stays and unsaved edits are kept. ?review=1 is dropped the generic page's way. No producer, StudioMetadataArea, route, server, spec or i18n change. One app-shell patch changeset.",
      "tests": "Head f781168f. app-shell type-check (both tsc programs): os-verify-lock VERDICT command-exit 0. New pins: StudioPermissionSetPage.fullScreen-36905 gains a top-level describe with 3 cases (review shown and the address dropped; Escape closes onto an editable matrix; CONTROL without ?review=1 opens no review and makes no second draft read). New file permissionReviewLinks-37269 has 4 cases, with the real PackageDetailSheet, the real StudioMetadataArea on ~all and the real matrix as the EditPage: the Packages-page link (href asserted, then clicked) reaches the review; the chat path through setupMetadataStudioPath(item,'review=1') reaches it; CONTROL without ?review=1 opens no review and makes no draft read; with no draft, no review and the address still dropped. 11 review-related suites: Test Files 11 passed (11), Tests 281 passed (281). Every ResourceEditPage.*, PermissionMatrixEditor.* and StudioPermissionSetPage.* suite: Test Files 113 passed (113), Tests 664 passed (664). Both runs VERDICT command-exit 0. Ablations after commit: 5 legs via scripts/ablation-replace.mjs, each anchor 1->0, run under the lock over the 4 pinned suites (76 tests), then restored to the HEAD blob with git diff HEAD empty. A1, matrix arrival disabled: 5 red, both CONTROLs green. A2, the arrival ignores the param: 3 red, both CONTROLs among them. A3, the generic page's arrival disabled: 2 red (detailTabs ?review=1 and its CONTROL). A4, ?review=1 kept in the address: 6 red. A5, the area never asks the generic page: 2 red (routes-28561's object CONTROL and flow review case, the flow and object links unchanged pin). No dist ablation: the suites import app-shell source directly.",
      "gates": "Local, on f781168f, exit captured before any pipe. check:test-source-alias exit 0. ui check:i18n-keys exit 0. overlap-check exit 0 (VERDICT clean; no open PR shares a file). With --pr=37341,37338: exit 0, both merge cleanly. The claude/issue-37236-customized-meaning and claude/issue-37237-custom-pair-base-app branches share no file with this diff. dispatch-gates --commands derived 39 families. --ran exit 0: 37 run with exit 0 (ui vitest scripts/: 172 files, 5130 tests passed). 2 are NOT MEASURED locally because a local 300 s wrapper timeout fired: check:query-options-erasure and check:type-check-debt. Their CI jobs, 'Lint · scoped · query-options erasure' and 'Type Check · debt ledger', are both success. eslint on the changed files: 0 errors and no warning on a changed line. CI on f781168f: 51 check-runs, 38 success, 13 skipped, 0 failed. Required contexts: Lint & Repo Gates, TypeScript Type Check, Test Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI (with shards 1-9/16 as planned), Build & E2E UI, Live E2E UI and Dogfood Regression Gate are success. Build Core was skipped by its path filter. Check Changeset, Check PR Size and the PR-body guards are success.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "9, all reads: issue_read get x2 (one answered 503), issue_read get_comments x2 (37269, 36903), pull_request_read get_comments x1 (37169), pull_request_read get x1 (37347), pull_request_read get_check_runs x3. No MCP write.",
      "api_writes": "2 relay strokes. (1) fleet-write pr_create run 45694918976: POST pulls (draft) plus its assignees leg (os-justin). Body read back, 8988 bytes sent = stored. (2) This os-dev-report comment on #37269 via post-stamped.mjs. Plus 1 git push (new branch, f781168f), which is not a REST write.",
      "open_questions": [
        {
          "question": "The matrix opens the review on a ?review=1 arrival only. Unlike the generic page, it has no header chip to reopen the review once closed. Add one?",
          "options": [
            "A no: the card asks for the arrival; Studio's page already shows the pending-draft state through its discard and AI-draft notice",
            "B file a ux card for a review chip in the matrix header (Studio and routed presentations)"
          ],
          "recommendation": "A, because the card's Done-when is met and a chip is a new header affordance needing its own design call; file B only if seat 4 wants parity with the generic page's chip."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "none filed. Noted in the PR's Acceptance notes, not cards: no reopen chip on the matrix (open_questions[0]); on the cross-package leg the matrix shows the published set while the sheet shows the pending draft, which is the matrix's existing behaviour there. carrier: none"
      ]
    }
  8. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H

    Finalized head for L1 · 2026-11-25T21:42Z · f781168f · zone a4-S (#37269 → PR #37347)

    • CI on f781168f: 38 success, 13 skipped, 0 failed. K: 6 behind main; merge-tree is clean.
    • Size: +505 / −51, 7 files. check-governed-merges.mjs --pr 37347: not governed and under 3,000, so not Tier H. The zone lands it after ACCEPT.
    • Final report: 7174275022, status done.
      • The generic page's review sheet and its ?review=1 arrival are extracted into DraftReviewSheet and useDraftReviewArrival.
      • ResourceEditPage behaves as before on them. PermissionMatrixEditPage uses both, which covers Studio's embedded matrix and the routed Setup matrix.
      • Editing and unsaved edits are kept. No change to the producers, StudioMetadataArea, routes, server, spec or i18n.
      • Two local gate families (query-options-erasure and type-check-debt) hit the dev's 300 s wrapper. Their CI jobs are green.
    • Zone ruling on the open question:
      • Q1, a reopen chip on the matrix header: A, none in this PR. The card's Done-when is the arrival, and a header chip is a new affordance that needs its own design call. No card is filed unless seat 4 wants parity with the generic page's chip.
    • The head is frozen now.
  9. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYnq7io51czLb81MZMd
    os-dev-report

    Addendum to 7174275022, answering the L1 REWORK on PR #37347 (seat 4 comment 7176164153). Only the PR body changed.

    • PR body patched through the relay (issue_patch on 37347), run https://github.com/objectstack-ai/objectstack/actions/runs/45712063883, conclusion success. Read-back: 9088 bytes sent, 9088 stored, identical. The signed trailer is still the last line.
    • The three edits, nothing else changed:
      1. 维护者速读, 「出错会怎样」: now the seat's wording. Every type's review goes through the shared useDraftReviewArrival / DraftReviewSheet, with existing pins and behaviour unchanged.
      2. 维护者速读, first line: 「点某个权限集草稿的链接」 replaces the label the Packages page does not show.
      3. N1, What changes: the arrival reads at the matrix's layered address (layeredPackageId: the page's package, else the route's ?package=), else by name alone.
    • Head unchanged at f781168f (git ls-remote reads f781168). No push.
    • Writes this round: 2 relay strokes (the body issue_patch, this comment). MCP: 1 more read (pull_request_read get on 37347, to confirm the stored body before patching), no write.
  10. removed
    pm:dispatched
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:uipriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions