Repository navigation
fix(app-shell): a package create answers with a toast naming the new package; pin Studio Revoke toast - #35326
Merged
objectstack-fleet[bot] merged 5 commits intoNov 19, 2026
Conversation
…he new package; pin Revoke's toast on the Studio Access strip Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY
…he PackageFormDialog harness Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY
…ite-feedback-toasts
Contributor
Author
|
repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY Final head for L1:
|
Contributor
Author
|
repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4 维护者速读
席位核对 — ACCEPT (L1-a) · repo:objectstack#5 · head
|
Contributor
Author
|
repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY Landing · area ux-1 · 2026-11-19T05:15Z
ACCEPT 7000437291 (L1-a) at head |
objectstack-fleet
Bot
deleted the
claude/issue-33865-write-feedback-toasts
branch
November 19, 2026 05:36
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.
Requested by Bill · project thread
Fixes #33865
Clause-②: no
Metadata-protocol: none
维护者速读
ui/packages/app-shell/src/views/metadata-admin/PackageFormDialog.tsx的 create 分支(新增 toast 那段),然后是两个测试文件。What changes
PackageFormDialognow answers a successful create withtoast.success, naming the new package by its display name (label first):engine.packages.create.created, en "Created package “NAME”." and zh "已创建软件包「NAME」。", added to the studio catalogue, which carries only en and zh. The dialog is the only create path, so Studio's New app card, the Studio package switcher's New package and the Packages page all get the toast. A refused create still shows its banner and no toast. Saving an edit is unchanged: the Packages page already shows its own "Package updated" line there.main, no code change.SuggestedBindingsPanelact()toastsstrings.revokedToast(s)on revoke, and the Studio Access mount passesengine.studio.access.suggestRevokedToast. That code was already on the QA run's commita557fa38(git merge-base --is-ancestor 8c9260f79c a557fa38→ exit 0;git show a557fa38:…/SuggestedBindingsPanel.tsxline 149 holds the call). A harness reading of the REAL StudioAccessPillar(Grant, then Revoke) shows the toast firing and naming the set by its label. No Studio test covered Revoke, so this PR adds that pin to the existing Studio harness file as a top-leveldescribe.Tests
StudioDesignSurface.accessSuggestionsReadOnly-33158.test.tsx: newdescribefor this card. Grant → Revoke: the secondtoast.successis the revoked sentence naming "CRM user", and the row then readsdismissedwith Reconsider. CONTROL: a Revoke the server refuses (409) toasts the server's message and never the revoked sentence.PackageFormDialog.test.tsx(the shared harness): newdescribe. A create toasts the created sentence once, naming "New App" and not the id. zh: the zh sentence. CONTROL: a refused create (409) toasts nothing and keeps its banner. CONTROL: an edit save does not fire the created toast. The file also gains module-topimport '@objectstack/formula'/import '@objectstack/lint', whichcheck:test-source-aliasasks for in an edited test that reaches the CEL fields' dynamic loads.Targeted run at the merged head ce0f6ea
Ablations (one-off, through scripts/ablation-replace.mjs, restored and checked against the HEAD blob)
toast.success(→void Array.of(inPackageFormDialog.tsx. Mutation landed (blob fd0aefbaa840 → ebd89e3b4a6f), 2 failed | 9 passed: both toast pins red, both CONTROLs green. Restored: blob == HEAD,git diff HEADempty. A first try (void () was a syntax error and the file failed to transform with "no tests". That run measured nothing and is void.action === 'revoke' ? strings.revokedToast(s) : strings.dismissedToast(s)→strings.dismissedToast(s) /* ablated */inSuggestedBindingsPanel.tsx. Mutation landed (85a24a3bc2ff → 5bdf68afec12), 1 failed | 9 passed: the Grant → Revoke pin red, its CONTROL green. Restored. A first try with a replacement that is a substring of the anchor was refused by the tool before any test ran, so it was a no-op.@object-ui/*resolves tosrcthrough the ui vitest alias table, so these ablations need no rebuild.Acceptance notes
a557fa38, but that tree already had the toast call, and the Studio harness shows it firing. This PR does not reproduce or explain the live observation; it adds the pin that holds the behaviour.ux-conventions.write-feedback), not filed: the inspector's declare dependency edit (ObjectPicker→PackageFormDialog mode="edit") closes the dialog and shows no feedback. That reading comes from the source only and was not exercised live.Verification
pnpm --filter @object-ui/i18n run type-check && pnpm --filter @object-ui/app-shell run type-check→ exit 0.tsc -p tsconfig.test.json --listFileslists both edited test files.dispatch-gates.mjs --commands): 38 derived, 38 run, all exit 0.check:test-source-aliaswas red once and passed after the module-top imports.--ranreconciliation: "38 derived famil(ies) accounted for — 38 run, 0 NOT-MEASURED (a DERIVED zero)". The gates that read the edited test file were run again at the final head, all exit 0.🤖 Generated with Claude Code
https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY