Skip to content

design mode 7/9: shared list-view structure is edited through design mode; outside it, only reset and save-as-mine remain #39377

Description

@objectstack-fleet

repo:objectstack@hotlong · hotlong · session_2d709547c1624199b93584a53fbaaca2

Part of epic #39368 (rulings and invariants there).

Depends on child 0. Supersedes #36737 item 2 (amended 2026-11-23 15:12Z). Maintainer, 2026-12-03: 「共享视图的结构修改我觉得并入设计模式?」, approved with the epic's recommendations.

Today

Boundary

  • Structure (through the mode): view type, the set and order of columns, group field, kanban lane field, card fields, and the shared view's default filter and sort.
  • Personal state (never staged): column widths, ad-hoc filter and sort, collapse state.
  • Outside the mode on a shared view: only 「重置」 and 「保存为我的视图」.
  • Inside the mode: 「更新视图」 becomes a staged change, committed by the bar.
  • Creating, deleting and sharing a view stay immediate this round (staging a creation brings back child 0's ordering problem).

Acceptance

  • Outside the mode there is no way to update a shared view's structure (test).
  • Inside the mode, an ad-hoc filter does not light the bar's Save; changing columns does.
  • Personal views behave as before.

Activity

  1. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ux · domain:ui · Feature · p2 · pm:blocked · size M, touched 2026-12-03T16:20Z. Rationale: The maintainer approved the epic's rulings, scope and card split on 2026-12-03 (「按建议整体通过,立专题卡」), so the feature is pre-authorised. Runtime design mode is how the app looks and is used in place (area:ux ①②), and the grade is the epic's p2. Per the epic, this child is released only after child 0 lands and child 2 is verified in the browser.
    Blocked-by: #39369, #39371
    Grade: area:ux · Feature · p2 · admins in design mode · read (epic #39368).

  2. added
    domain:ui
    pm:blocked
    priority:p2
    on Dec 3, 2026
  3. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cypQd6ZDPDmXL5MaWR

    2026-12-04T01:03Z · dm-39368 records a maintainer ruling on this card's gate.

    Maintainer ruling (Elon, 2026-12-04T00:56Z, this account's fleet project, zone dm-39368 thread, decision card 「设计模式专题要不要放宽子卡的等待顺序来提速?」, chose 「A 三路并行(推荐)」, whose stated consequence reads: 「#39371 仪表盘现在就在 #39369 分支上开工;#39369 一合并就开 #39376 记录页、#39377 共享视图;#39374/#39375/#39378 仍等仪表盘浏览器验收。」)

    Blocked-by: #39369
    This card now waits on child 0 (#39369) only; the gate on child 2 (#39371)'s browser verification is lifted for this card by the ruling above. It stays pm:blocked until #39369 merges, then returns to pm:queue for zone dm-39368.

  4. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cypQd6ZDPDmXL5MaWR

    2026-12-04T01:56Z · Unblocked: Blocked-by: #39369 is closed (PR #39433 merged). Back to pm:queue for zone dm-39368.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cypQd6ZDPDmXL5MaWR

    Claim: PM loop round 1
    Session: session_016WV4cypQd6ZDPDmXL5MaWR
    Account: os-elon-musk
    Area: dm-39368
    Branch: claude/issue-39377-wip
    Worktree: objectstack-issue-39377
    Domain: domain:ui
    Seat: repo:objectstack@os-elon-musk
    File surface: ui/packages/app-shell/src/views/ObjectView.tsx, ui/packages/app-shell/src/views/ListDraftActions.tsx, ui/packages/app-shell/src/views/ViewConfigPanel.tsx, ui/packages/app-shell/src/views/objectViewViewSharing.ts, ui/packages/app-shell/src/views/objectViewViewCrud.tsx, ui/packages/app-shell/src/layout/designMode.tsx (the doc lines saying view actions stay live, ~66-69, only), ui/packages/i18n/src/locales/*.ts (new keys only, zh-Hant through gen:zh-hant), tests that pin the live view actions, new tests *-39377.test.tsx
    Container & model: M, mode:subagent, model: default (dispatch-gates --tier: no path-derived mandate; design judgement in what stages through the mode), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 7398410078
    Premise: holds (origin/main after #39433: ViewConfigPanel + ListDraftActions let an admin with metadata authoring update a shared view at any time; designMode.tsx leaves view actions live)
    Serial constraints cleared: #39371 (same zone) edits designMode.tsx for dashboards; this card touches only its view-actions doc lines. #39376 disjoint except locale packs (new keys only). Zone em-admin (same seat) #39351 claims views/**: notified, ordinary concurrency.
    Prior rulings read: check-prior-rulings.mjs --card 39377: #36737 item 2 is superseded by the maintainer on #39368 (「共享视图的结构修改我觉得并入设计模式?」, approved 「按建议整体通过,立专题卡」); ObjectView.tsx:574 (#7494 org-wide shared settings) and :939 (ruling record 7058616478, pending-draft handling) stand and are read by the dev before editing.
    Pre-claim lane: domain:ui (ui/**).
    Pre-claim deps: Blocked-by: #39369 closed (PR #39433 merged); the #39371 gate lifted by the maintainer's ruling recorded on this card.

  7. added
    pm:dispatched
    and removed
    pm:queue
    on Dec 4, 2026
  8. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cypQd6ZDPDmXL5MaWR
    os-dev-report
    Reported 2026-12-04T03:18Z.

    {
    "issue": 39377,
    "status": "blocked",
    "branch": "claude/issue-39377-wip",
    "pr": null,
    "head_sha": "bf8334a440 (local only; not on any remote)",
    "session": "session_016WV4cypQd6ZDPDmXL5MaWR",
    "premise_still_valid": true,
    "summary": "Implemented and verified locally; BLOCKED on the push: the auto-mode classifier refused git push of claude/issue-39377-wip twice ([Destructive or Unwanted Actions]), so no remote branch and no draft PR exist. Only the PM/maintainer can authorize the push; per the rules it was not resent another way. The work is two local commits (3c48d0b, bf8334a440) in the worktree /home/user/objectstack-issue-39377 of this container, which is the only copy, so the worktree was NOT removed. What it does: a shared (saved, non-personal) list view's structure is staged under designModeItemKey('view', OBJECT.KEY) (new sharedViewItemKey + useSharedViewStaging in objectViewViewSharing.ts). Inside the mode, the view settings panel stages each edit and draws no Save of its own, and the list's Update view menu item reads 'Apply to this view' and stages the whole list; the bar's Save saves and publishes through handleViewCommit (saveAndPublishRuntimeMetadata). A pending draft fails the item and keeps it staged; a read-only package or a pending draft is refused at selection via useDesignModeRefusal. Outside the mode a shared view offers only Reset and Save as my view, and its panel is read-only with a notice. Personal views and built-in views behave as before. The list draws the staged body (shownViewDraft).",
    "tests": "All under the verify lock, at the final head bf8334a440 (tree unchanged after the last commit). (1) New ObjectView.sharedViewDesignMode-39377.test.tsx + 10694: 'Test Files 2 passed (2) / Tests 29 passed (29)', VERDICT command-exit 0. (2) All 107 ObjectView..test.tsx in 3 batches. Batches: 36 files/279 tests (3 failed in 10694 before the fix, then fixed and rerun green as in (1)); 36 files/347 tests passed, exit 0; 35 files/327 tests (1 failed in 35955 'a sort is the list's draft' on a schema.sort read that the stand-in never receives). That assertion was dropped and the case retitled, then 35955 was rerun green in (3). (3) 65 other app-shell suites naming ViewConfigPanel/ListDraftActions/objectViewViewSharing/objectViewViewCrud/designMode (layout designMode- included) + 35955: 'Test Files 66 passed (66) / Tests 834 passed (834)', exit 0. (4) i18n: pnpm --dir ui exec vitest run packages/i18n/ -> 'Test Files 110 passed (110) / Tests 1874 passed | 13 skipped', exit 0. (5) pnpm --dir ui --filter @object-ui/app-shell type-check (tsc src + tsconfig.test.json, so test files are covered) -> VERDICT command-exit 0. No ablation run: the behaviour pinned by the converted tests changed by design, and the new suite's outside-mode cases would turn red against origin/main's live onSaveView/panel save (not re-measured as a separate ablation run: NOT MEASURED).",
    "gates": "Local subset at bf8334a440, every exit captured before any pipe. All 41 commands from dispatch-gates --commands --repo objectstack-ai/objectstack exit 0 (e.g. check-adr-0087-registration --base origin/main :: 0, check-changeset-no-major :: 0, check-empty-changeset :: 0, check-sdui-manifest :: 0, check:published-files :: 0, check:test-source-alias :: 0, check:undeclared-dep-imports :: 0, check:query-options-erasure :: 0, check:nul-bytes :: 0, pnpm --dir ui exec vitest run scripts/ :: 0 (172 files passed)), plus check:changeset-fixed :: 0 (roster under .changeset). The --ran reconciliation prints: '✓ dispatch-gates --ran: 41 derived famil(ies) accounted for — 41 run, 0 NOT-MEASURED (a DERIVED zero — all 41 recorded an exit code and none of them is 3)'. Also: ui pnpm check:i18n-keys exit 0; ui pnpm check:new-line-citations exit 0 ('0 new citation(s)'); node scripts/check-nul-bytes.mjs exit 0; overlap-check 'VERDICT clean exit 0' (origin/main 91f131b + PRs #39487, #39479, #39063 all merge cleanly). CI check-runs: NOT MEASURED, reason: no PR exists (push refused).",
    "line_budget": "24 files, +1166/-179 (1345 changed lines, under the 3000 human-merge line). ObjectView.tsx is over 1,000 lines (1833 -> 1887): the new concern lives in objectViewViewSharing.ts, and ObjectView only gains the wiring.",
    "files_changed": [
    ".changeset/39377-shared-view-structure-design-mode.md (+16/-0)",
    "ui/packages/app-shell/src/layout/designMode.tsx (+9/-4)",
    "ui/packages/app-shell/src/views/ListDraftActions.tsx (+13/-5)",
    "ui/packages/app-shell/src/views/ObjectView.emptyColumnsNoProjection-10694.test.tsx (+93/-10)",
    "ui/packages/app-shell/src/views/ObjectView.readOnlyPackageViewSaves-35974.test.tsx (+46/-11)",
    "ui/packages/app-shell/src/views/ObjectView.sharedViewDesignMode-39377.test.tsx (+395/-0)",
    "ui/packages/app-shell/src/views/ObjectView.sharedViewSave-35955.test.tsx (+124/-48)",
    "ui/packages/app-shell/src/views/ObjectView.tsx (+101/-47)",
    "ui/packages/app-shell/src/views/ObjectView.userListState-12418.test.tsx (+40/-6)",
    "ui/packages/app-shell/src/views/ObjectView.viewWriteRefusal-11583.test.tsx (+52/-16)",
    "ui/packages/app-shell/src/views/ViewConfigPanel.tsx (+67/-6)",
    "ui/packages/app-shell/src/views/objectViewViewCrud.tsx (+21/-25)",
    "ui/packages/app-shell/src/views/objectViewViewSharing.ts (+90/-1)",
    "ui/packages/i18n/src/locales/ar.ts (+9/-0)",
    "ui/packages/i18n/src/locales/de.ts (+9/-0)",
    "ui/packages/i18n/src/locales/en.ts (+9/-0)",
    "ui/packages/i18n/src/locales/es.ts (+9/-0)",
    "ui/packages/i18n/src/locales/fr.ts (+9/-0)",
    "ui/packages/i18n/src/locales/ja.ts (+9/-0)",
    "ui/packages/i18n/src/locales/ko.ts (+9/-0)",
    "ui/packages/i18n/src/locales/pt-BR.ts (+9/-0)",
    "ui/packages/i18n/src/locales/ru.ts (+9/-0)",
    "ui/packages/i18n/src/locales/zh-Hans.ts (+9/-0)",
    "ui/packages/i18n/src/locales/zh-Hant.ts (+9/-0)"
    ],
    "deviations": [
    "git push refused twice by the auto-mode classifier; no remote branch, no pr_create, PR body drafted but not posted (both required PR-body count lines are present in the draft: attribution line count 2, Fixes/Claim lines 2).",
    "Gate loop was moved to the background by the harness after the 600s foreground cap (not by choice); I waited it out in the turn with tail --pid and a bounded Monitor, both ended.",
    "Panel read-only is limited to SHARED views: a built-in (objectDef.listViews) view's panel keeps its pre-#39377 session-only edits and its Save (handleViewConfigSave). The card's boundary names shared views only; I flag it as open question 2.",
    "Old locale keys (saveToViewConfirm*, savedForEveryone, draft.pendingDraft) are now unread but kept, since the fence allows new keys only.",
    "PM hypothesis line numbers for designMode.tsx's view-actions doc were ~66-69; the paragraph was at 89-92. Only that paragraph changed."
    ],
    "mcp_calls": "0",
    "api_writes": "0 at the time of writing; this report comment via post-stamped.mjs is the 1st (POST /repos//issues/39377/comments), if the classifier lets it through",
    "classifier_refusals": [
    {
    "command": "git add -A && git commit ... && git push -q origin HEAD",
    "reason": "Permission for this action was denied by the Claude Code auto mode classifier. Reason: [Destructive or Unwanted Actions]",
    "mode": "subagent",
    "human_turn_before": "no",
    "resend": "none: the local commit was then made on its own (allowed); the push was not resent another way"
    },
    {
    "command": "git push origin claude/issue-39377-wip",
    "reason": "Permission for this action was denied by the Claude Code auto mode classifier. Reason: [Destructive or Unwanted Actions]",
    "mode": "subagent",
    "human_turn_before": "no",
    "resend": "none"
    }
    ],
    "open_questions": [
    {
    "question": "Authorize the push of claude/issue-39377-wip (2 local commits) so the draft PR can be opened via relay pr_create?",
    "options": [
    "A: the seat or maintainer authorizes and re-dispatches a push-only round (or pushes from this container's worktree)",
    "B: re-dispatch the card in a fresh container and re-do the work"
    ],
    "recommendation": "A, because the work is done and green locally; B repeats it."
    },
    {
    "question": "Built-in (code-defined) views: their settings panel still lets an admin edit (session-only) and Save a Studio draft outside the mode. Should that be the mode's too?",
    "options": [
    "A: leave as is this round (the ruling names shared views)",
    "B: fold built-in views into the mode in a follow-up card"
    ],
    "recommendation": "A, because the ruling's boundary is shared views and a built-in view's write goes through the Studio draft, not live publish."
    },
    {
    "question": "Restore factory (Manage views) still rewrites a shared view's structure for everyone immediately, outside the mode. Fold it in?",
    "options": [
    "A: leave immediate (the card left create/delete/share immediate)",
    "B: stage it as a design-mode change in a follow-up"
    ],
    "recommendation": "B as a follow-up, because it is a structure change of a shared view, which the ruling places in the mode."
    }
    ],
    "security_findings": "none",
    "out_of_scope_findings": []
    }

  9. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cypQd6ZDPDmXL5MaWR

    2026-12-04T06:42Z · Final head for L1: c5cc4a934bfad4364ce63f4f0e55978b3cea9792 (zone dm-39368, card #39377, PR #39514; claim 7398448411). It is the dev's two commits (the second reworded only to the model-free trailer) plus a clean merge of main taken before the PR opened. The PR was opened by the zone on Elon's 06:12Z decision card (「代推并开PR,以后同类也代办」), after the dev's push was refused. After the merge: vitest run of the 39377 shared-view test, designMode-39369 and packages/i18n: 112 files, 1890 passed. Check runs: 45 success, 15 expected skip, 0 failure. check-governed-merges: NOT governed, 1345 changed lines. Follow-up already filed: #39490 (Restore factory still immediate). L1 requested from thread L1-a.

  10. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cypQd6ZDPDmXL5MaWR

    2026-12-04T08:05Z · Closed by PR #39514 (merged as d7ac4aba61, Fixes #39377).

  11. removed
    pm:dispatched
    on Dec 4, 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:uienhancementpriority:p2

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions