Repository navigation
Labels
Description
repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H
④ sub-issue of #36890 · Source: #36906's os-dev report 7157110199, open question 1. Seat repo:objectstack#4 ruled 「A for this card; file the B card」: two paths for one operation disagree, so the report side follows the view rule. Part of #36890.
维护者速读
- 在应用里用报表列表的「新建」建一张报表,保存时不指定软件包,于是它成了环境级元数据,不属于任何包。在同一个应用里新建视图,却会存进应用的包(可写包存本包,只读包存它的定制包)。
- Studio 重构(3-4):Studio 列表点仪表盘、报表,直接进应用里的编辑状态;× 回 Studio 列表;报表「新建」进 /apps/<应用>/reports/new #36906(PR feat(studio): open Studio's dashboards and reports in the app's edit state; × returns to the list #37226)已经让从 Studio 打开的新建报表页存进包里;应用自己的「新建」入口还是老做法。
- 改法:让应用自己的新建报表也按视图的规则决定存到哪个包。这会改变以后所有应用里新建报表的存放位置,已有的报表不动。
What
- The app's own new-report save (the reports index's New, outside Studio) resolves the app's package the way views do:
resolveRuntimeCreatePackage, which gives the package when it is writable and its.custompair through the ensure door otherwise, falling back package-less exactly where views do. Use the samesaveAndPublishInPackagepath Studio 重构(3-4):Studio 列表点仪表盘、报表,直接进应用里的编辑状态;× 回 Studio 列表;报表「新建」进 /apps/<应用>/reports/new #36906 added for the Studio leg, so the two legs share one rule. - Pins:
- from an app on a writable package, a new report names
packageId: P; - on an installed (read-only) app it names the pair;
- CONTROL: a refusing ensure door falls back as views do.
- Replace the existing pin that holds the old package-less behaviour outside Studio (added by Studio 重构(3-4):Studio 列表点仪表盘、报表,直接进应用里的编辑状态;× 回 Studio 列表;报表「新建」进 /apps/<应用>/reports/new #36906), and name it in the PR.
- from an app on a writable package, a new report names
- Also reword
resolveRuntimeCreatePackage's console warning ("the view is saved naming no package") so it names the type it is saving (noted in 7157110199).
Done when
- A report made from any app's New lands in the same package a view made there would, and Studio's report list shows it.
Notes
- Size S, priority p2.
- Blocked-by: Studio 重构(3-4):Studio 列表点仪表盘、报表,直接进应用里的编辑状态;× 回 Studio 列表;报表「新建」进 /apps/<应用>/reports/new #36906 (PR feat(studio): open Studio's dashboards and reports in the app's edit state; × returns to the list #37226), which adds the Studio leg this card extends.
- Data placement changes for new reports only; existing reports are not moved.
Activity
objectstack-fleet commentedon Nov 25, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
First touch 2026-11-25T09:33Z. Bug: two paths for one operation disagree. area:ux · domain:ui · p2 · S ·
pm:blockedon #36906 (PR #37226) are kept, and the card is linked under #36890. It goes to seat 4 on unlock. Line form below, so the unlock scan reads it.Blocked-by: #36906
objectstack-fleet commentedon Nov 25, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: unblocked 2026-11-25T13:37Z
pm:blocked→pm:queue. Its blocker Studio 重构(3-4):Studio 列表点仪表盘、报表,直接进应用里的编辑状态;× 回 Studio 列表;报表「新建」进 /apps/<应用>/reports/new #36906 closed as completed (PR feat(studio): open Studio's dashboards and reports in the app's edit state; × returns to the list #37226 merged).pm:queuefor the topic's next seat.objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H
Claim: PM loop round 3
Session:
session_01QSeKYkkwuF6UuFtu85Yd5HAccount:
os-justinBranch:
claude/issue-37261-app-new-report-packageWorktree: cloud session (its own container)
Domain:
domain:uiSeat:
repo:objectstack#4Area: a4-S
File surface:
ui/packages/app-shell/src/views/**/ReportNewPage.tsx(the app's own New leg) and its tests,resolveRuntimeCreatePackage's warning text, a changeset. ⛔ No change to existing reports' storage; no route change (stop on breach; explain in the report)Container & model:
S,mode:cloud,model: default — dispatch-gates.mjs --tier: "Model tier — no path-derived mandate",effort: mediumClause-②: no
Metadata-protocol: none
Responsibility: n/a — not a defect card
Thread-read: 7164079045
Premise: holds (read on origin/main
2d18ba82). #36906 (PR #37226) has landed with the Studio leg (resolveRuntimeCreatePackage+saveAndPublishInPackageon the page opened from Studio). The app's own New still saves package-less, and its pin says so.Pre-claim lane: repo:objectstack seat 4 zone a4-S (sub-issue of epic #36890; seat ruling on #37226 Q1: A for that card, B filed as this card; cap 3)
Pre-claim deps: none open.
Prior rulings read: seat 4's Q1 ruling on #37226 (filed B as this card), ruling C (a view saved into the app's package).
Serial constraints cleared: no open zone PR touches
ReportNewPage.tsx.Size: S.
objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H
Finalized head for L1 · 2026-11-26T00:41Z ·
baa9e0e0· zone a4-S (#37261 → PR #37357)repo:objectstack#4under the maintainer's 「应用里「新建报表」保存时不带软件包,而新建视图会带上应用的包:两条路径对同一操作做法不一致 #37261 开 PR 放行」. The dev session's own relay writes,pr_createand the os-dev-report, were refused by its classifier and never sent, so there is no report comment on this card.session_01QSeKYprGz1KcPK6n5ZfCZQ's final messages, summarised here.ReportNewPage.tsx,ReportNewPage-36692.test.tsxand a changeset. The app's own new-report save now follows the views' rule: the app's package when it is writable, the.custompair through the ensure door when it is read-only, and package-less only where views fall back. Thereport.builder.savedOutsideAppnotice shows on that fallback from either way in. Existing reports are not moved. No string changed.report). The old outside-Studio package-less pin is replaced on purpose. Each of the three ablations turns its pins red.origin/mainmerged at 00:2xZ (24 commits, no conflicts); the delta against main is still the same 3 files. Atbaa9e0e0: 16/16, app-shell type-check exit 0 (both programs),check:test-source-alias0,check:i18n-keys0, overlap-check clean.baa9e0e0, newest run of each: 38 success, 13 skipped, 0 failed.ui/scripts/__tests__, which never read this diff (flake reading on PR fix(app-shell): a new report from an app's reports list saves into the app's package, as a new view does #37357).rerun-failed.mjs --run 45725391000). Attempt 2 is green.check-governed-merges.mjs --pr 37357: not governed and under 3,000, so not Tier H. K: 3 behindmain;merge-treeis clean.Clause-②: no,Metadata-protocol: none. The head is frozen now.