Repository navigation
fix(console): report editing is its own entry, mutually exclusive with design mode - #36848
Conversation
…ish, and keeps own entries out of contributed groups WIP: implementation of objectstack#36538 items 1-4 and N10, N12-N16; tests follow. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
…controls Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
…follow-up) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
…in the wired collision rule Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
…(zh-Hant regenerated) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
…ith design mode Design mode's Reports picker links existing reports only: the New report row, the report kind of the menu create, and the design-mode report slot are removed. The reports index offers New report, gated as the builder. The design mode's enter refuses, with a prompt, while a dashboard or report editor holds it out; those editors are not offered while the mode is on. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
…g and design mode Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
…port-editing-own-entry # Conflicts: # ui/packages/app-shell/src/layout/DesignModeMenu.tsx
|
repo:objectstack#3 · os-support-ai · session_01WGufzesUz1Y8VZuKJRhVL8 席位核对 — REWORK · repo:objectstack#3 · head 7ea3843 · 2026-11-24T05:13ZL1 read of #36848 against card #36692 (the maintainer's ruling 「照 Twenty 分开」). Head Face. Read and sound.
Finding.
Notes (nit, no action required):
Delta read owed on the head that carries S1. |
…ode is on Reached with the mode already on (the browser's Back to reports/new), the page drew the builder under the design-mode bar: two Save/Cancel sets, and the bar's Cancel ended the mode under the open builder. The page now draws a prompt in place of the builder while the mode is on, holds the mode out only while it draws the builder, and opens the builder once the mode is left. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
|
repo:objectstack#3 · os-support-ai · session_01WGufzesUz1Y8VZuKJRhVL8 席位核对 — ACCEPT · repo:objectstack#3 · head cccd017 · 2026-11-24T06:33ZDelta read of #36848 (card #36692) against my REWORK 7122753474 @7ea3843e. New head Delta.
Face. No must-fix, no should-fix. N1 and N2 from 7122753474 stand as optional notes. #36858 is queued and overlaps in |
…port-editing-own-entry Conflicts with #36858 (menu rename translation), resolved so both survive: - designModeMenuCreate.ts: keep this branch's dashboard-only creator (no report kind, no saveAndPublishInPackage); take #36858's input type `AppMenuSaveInput & { item: NewMenuItem }` and its import, dropping the now-unused `Menu` import, so the dashboard path carries `labels`. - DesignModeMenu.tsx: drop the report-slot block #36858 had edited to pass `labels`; the dashboard save keeps #36858's `labels`. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
|
repo:objectstack#3 · os-support-ai · session_01WGufzesUz1Y8VZuKJRhVL8 席位核对 — ACCEPT · repo:objectstack#3 · head 4ce5f1c · 2026-11-24T07:36ZMerge-resolution read of #36848 (card #36692) after main was merged with #36858 (573a376). The new head Resolution, read.
Checks. At 4ce5f1c: every check run is complete, none failed (latest run per name); No must-fix, no should-fix. My earlier reads (REWORK 7122753474, delta ACCEPT 7124071450) stand for the branch's own changes. |
|
repo:objectstack#3 · os-support-ai · session_01WGufzhpykmQZe1yMupC2CU Landing · 2026-11-24T07:37Z · ACCEPT 7125185333 at head 4ce5f1c (merge-resolution read; delta ACCEPT 7124071450 at cccd017)
Open findings: nits only (L1 N1, N2 of 7122753474). #36858 overlap resolved in the merge commit (resolution note 7124720950). #36791 / #36869 overlap only on the de quote-pair ledger counts; whichever lands second re-counts. State: ready + auto-merge (Tier S). On MERGED, #36692 closes by |
Requested by Yibo Wang · project thread
Fixes #36692
Clause-②: no
Metadata-protocol: none
repo:objectstack#3 · os-support-ai · session_01WGufzhpykmQZe1yMupC2CU
维护者速读
What changes
The maintainer's ruling on the decision card (2026-11-23 11:55Z): 「照 Twenty 分开」. Report and dashboard editing are their own entries, mutually exclusive with design mode, so the screen shows one Save/Cancel set at a time.
Reportslist in 「Add menu item」 only links reports that exist. Removed: its 「New report…」 row, the cross-mode hand-off moduledesignModeReportSlot.ts(deleted, not left unused), the slot block inDesignModeMenu, the slot branch inReportNewPage, and thereportkind ofdesignModeMenuCreate.ts(a dashboard is again the one kind made from a name). 「New dashboard…」 is unchanged (change item 4).AppReportIndexView) header offers 「New report」, linking to the app'sreports/new. It is gated as the builder is (useWorkspaceAdminStatus: workspace admin, resolved) and shown on an empty index too. The builder's Save and Close in its own header are the only Save/Cancel set; Close goes back to the index.designMode.tsx):useHoldDesignModeOut(open): a dashboard's or report's own editor holds the mode out while it is open (or opening). Wired intouseDashboardInPageEdit,ReportView(builder and inspector panel) andReportNewPage.enternow answersboolean: while anything holds the mode out, it refuses with a toast, "Save or cancel your dashboard or report changes before designing the layout." (zh-Hans 「请先保存或取消仪表盘、报表的修改,再设计布局。」). 「Design layout」 in the app menu stays drawn and refuses through it.useDesignModeActive()hides the dashboard's Edit (useDashboardEditOffered), the report page's Edit, and the index's 「New report」.ReportNewPagereached while the mode is on (an in-app navigation keeps the mode) draws no builder: an Empty says "Finish designing the layout first" / "A report is built outside the design mode. Save or cancel the layout, and the builder opens here." It holds the mode out only while it draws the builder, so the bar's Save or Cancel opens the builder in place (L1-a S1, 7122753474).designMode.editorOpen,console.reportIndex.newReport,report.builder.designModeOnTitleandreport.builder.designModeOnwere added to all 11 packs (zh-Hant regenerated withgen:zh-hant).designMode.menu.newReport,designMode.menu.newReportLeftandreport.builder.addsToMenuwere removed from all 11 packs. The de quote-pair ledger drops 134 to 133 becausenewReportLeftis gone.Untouched rulings: #36363 ruling (4) (menu labels) and
designModeMenuCreate.tsruling C / ADR-0146 D2 「定制都进 .custom」.Docs and skills: neither
content/docsnorskills/teaches "New report… from design mode". The oneNew reporthit,content/docs/data-modeling/analytics.mdx, is about Studio's dataset picker, so nothing is owed.Read first (by risk):
ui/packages/app-shell/src/layout/designMode.tsx: theheldOutcounter,enter's refusal anduseHoldDesignModeOut.ui/packages/app-shell/src/views/DashboardInPageEditor.tsx:useDashboardEditOfferednow also reads the mode. The design mode's 「New dashboard…」 landing (dashboardEditArrival) still opens the edit state, becausesaveWithleaves the mode before it navigates and the arrival effect waits oneditOffered.ui/packages/app-shell/src/layout/DesignModeMenu.tsx: the removed report block and picker row.Two-minute check: as admin in the showcase app, open Reports. 「New report」 is at the top right. Open a dashboard, press Edit, then choose app menu, then 「Design layout」: a red toast says to save or cancel first, and no purple bar appears.
Tests
New pins go into each component's existing harness as a top-level
describewhere there is one (designMode-36362,SidebarAppMenu-36112,DesignModeMenu-36363,designModeMenuCreate-36364,DashboardView.inPageEdit-36372). New card-named files were added where the component has only per-card files:ReportView.designModeExclusion-36692,ReportNewPage-36692andAppReportIndex.newReport-36692.enterrefuses with the prompt and the mode stays off. This is pinned on the store, on the 「Design layout」 door, on the dashboard edit state (no bar, so no bar Cancel), on the report builder, on the report inspector panel, and on the new-report builder. Two editors hold the mode out until both close, and an editor unmounted while open lets go.Reportslists existing reports not yet in the menu and has no 「New report…」 row. Picking a report stages it with the mode, writes nothing and navigates nowhere.ReportNewPageunder the mode (round 2,ReportNewPage-36692): mode on at the index, thenreports/new: the mode stays on, no builder, no Save, the prompt shows; then the bar's Cancel: the mode is off, the builder is drawn, and a laterenter()is refused; control: mode off,reports/newdraws the builder with Save and no prompt.ReportNewPagesaves on its own (the deletedReportNewPage.menuSlot-36364file's surviving case, ported), and Close goes back to the index.DesignModeMenu-36363anddesignModeMenuCreate-36364, andReportNewPage.menuSlot-36364.test.tsx.Local runs
22dee19f5:@object-ui/app-shellfull suite: Test Files 2474 passed, 1 skipped (2475); Tests 23314 passed, 9 skipped.@object-ui/i18nsuite: 107 files, 2006 passed.type-checkfor both packages exited 0.7ea3843ec, which carries fix(console): design mode menu save refuses a 404 read, pins its publish, and keeps own entries out of contributed groups #36821): the app-shell closure was rebuilt andtype-checkfor both packages exited 0.@object-ui/i18nsuite: 108 files, 2011 passed. Scoped app-shell run (src/layout/plus the ReportView, ReportNewPage, DashboardView, AppReportIndex and reportBuilder files): 190 files, 1535 passed. This run was narrowed on purpose; CI'sTest UIruns the full suite.scripts/ablation-replace.mjs: inenter,if (heldOut > 0) {was changed toif (heldOut < 0) {(anchor 1 to 0, blob473cab2c7389to7793aa4658ec). Result: 7 failed (every refusal pin across five files). Restored blob equals HEAD andgit diff HEADis empty.useDashboardEditOffered,return gated && !designing;was changed toreturn gated;. Result: 1 failed ("while the mode is on, Edit is not offered"). Restored, blob equals HEAD.cccd01739:ReportNewPage-366926/6. Ablation 3, committed fix:if (designing) {changed toif (false as boolean) {(blobf81d258a824ftofa265e66e744): 1 failed, 5 passed, the mode-on pin red; restored blob equals HEAD. Scoped run (packages/i18n/plus app-shellsrc/layout/, ReportView, ReportNewPage, DashboardView, AppReportIndex, reportBuilder): 298 files, 3549 passed, 13 skipped.type-checkfor both packages exited 0.Acceptance notes
ui/against a--seed-adminbackend on its own port. The files are in the project files underissue-36692/:1-reports-index-new-report.png: the reports index with 「New report」.1b-builder-one-save-set.png: the builder it opens, showing only its own Discard/Save.2a-design-mode-index-no-new-report.png: design mode on, so no 「New report」.2b-design-mode-reports-picker.png: the design-mode Reports picker without 「New report…」. The showcase's reports are all in its menu already, so the picker reads "Nothing to add here".3-refusal-prompt.png: the dashboard in edit, and 「Design layout」 refused with the prompt.4-design-mode-dashboard-no-edit.png: design mode on, so the dashboard has no Edit.reports/newURL reloads the page, so the mode is gone. An in-app navigation toreports/newkeeps the mode, and there the page now draws the prompt instead of the builder (round 2). The index link is hidden while the mode is on.DesignModeMenu.tsxanddesignModeMenuCreate.ts(this PR removes the report half there). Whichever lands second resolves it.#36791will conflict with this branch on the de quote-pair ledger counts (de-quote-pairing-3876.test.ts). Whichever lands second re-counts.Verification
Derived gate families (
dispatch-gates.mjs --commandsat7ea3843ec) were run locally; their results are in the report comment on the card. CI carries the full farm.Generated by Claude Code