Repository navigation
fix(app-shell): a new report from an app's reports list saves into the app's package, as a new view does - #37357
Merged
objectstack-fleet[bot] merged 3 commits intoNov 26, 2026
Conversation
…, as a new view does Claude-Session: https://claude.ai/code/session_01QSeKYprGz1KcPK6n5ZfCZQ Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYprGz1KcPK6n5ZfCZQ Co-authored-by: Claude <noreply@anthropic.com>
…p-new-report-package
Contributor
Author
|
repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H Flake reading before a one-time re-run · 2026-11-26T00:25Z · head
|
Contributor
Author
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 席位核对 — ACCEPT · L1 · head
|
Contributor
Author
|
repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H Landing · 2026-11-26T00:55Z · head
|
This was referenced Nov 26, 2026
objectstack-fleet
Bot
deleted the
claude/issue-37261-app-new-report-package
branch
November 26, 2026 01:19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ
Fixes #37261
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
ReportNewPage's save no longer makes the package lookup depend onstudioReturn. Both entry points callresolveRuntimeCreatePackage(appPackageId, 'report'):When that call names a package, the report saves through
saveAndPublishInPackage. The package is the app's own when it is writable; otherwise it is the.custompair, created through the ensure door.When the call answers
null, the report is saved with no package throughsaveAndPublishRuntimeMetadata. That happens when the package is not listed, the ensure door refuses, or the door answers with a pair that is not writable. It is the same condition under whichcreateRuntimeMetadatafalls back for a view (app?.packageId && !packageId).The
report.builder.savedOutsideAppnotice used to show only from Studio. It now shows on the no-package fallback from either entry point. Its text ("…so the Studio list does not show it") is true for both, so no string changes.resolveRuntimeCreatePackage's console warning already names the type being saved; Studio 重构(3-4):Studio 列表点仪表盘、报表,直接进应用里的编辑状态;× 回 Studio 列表;报表「新建」进 /apps/<应用>/reports/new #36906 did that.Existing reports are not moved. Only the target of a new report's first save changes.
Tests
ui/packages/app-shell/src/views/ReportNewPage-36692.test.tsxgains a new top-level describe, the app's own New saves into the app's package, as a new view does (objectstack#37261), with three pins:packageId: P.P.custompair.report.builder.savedOutsideApp, and the warning namesreport.Replaced pin: Save creates and publishes the report and lands on its page; nothing speaks of a menu. Its assertions that the report saves with no package outside Studio are removed. It now asserts one save and one publish.
Run at
9ded3000:Test Files 1 passed (1),Tests 16 passed (16).Ablations (scripts/ablation-replace.mjs; restored blob == HEAD)
studioReturngate put back: 4 failed | 12 passed.Acceptance notes
draftBarPackageOfinput asuseRuntimeCreateApp.createRuntimeMetadata's.Verification
Two-minute check: in an app on a writable package, open Reports, click New, pick a data source and save. The report should then appear in Studio's report list for that package.
Local gates at
9ded3000:check:test-source-alias,check:i18n-keys,overlap-check(clean) and the app-shell type-check all exit 0.dispatch-gates --commandsderives 38 families; all were run and all exit 0.check:changeset-fixedexits 0.CI runs on this PR.
Provenance
Opened by seat repo:objectstack#4 on the maintainer's authorization in the seat session (「#37261 开 PR 放行」).
session_01QSeKYprGz1KcPK6n5ZfCZQ, zone a4-S) tried to open this PR and post its os-dev-report through the relay. Its permission check refused both writes, and it did not retry either one.claude/issue-37261-app-new-report-package@9ded3000.🤖 Generated with Claude Code
https://claude.ai/code/session_01QSeKYpEsWWE9Y5YtSsDgqZ