This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
fix(app-shell): give the package dialog's Dependencies row a key/value editor - #13284
Merged
objectstack-fleet[bot] merged 2 commits intoOct 20, 2026
Merged
Conversation
…e editor The manifest's `dependencies` is a string map the spec form has no renderer for, so the row fell back to a raw JSON box under the developer hint "falling back to JSON until a custom renderer is registered". The dialog now hides that row from the spec form and hosts PackageDependenciesEditor in every mode, labelled from the form's own row: package / version-range rows with add and remove, emitting the same flat map the PATCH already sends. An empty or duplicate package name is flagged inline and keeps save disabled. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XVp19E1MYUTFM3dnkwz8gB
…ead in render Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XVp19E1MYUTFM3dnkwz8gB
Contributor
✅ Console Performance Budget
The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it. 📦 Bundle Size Report
Size Limits
|
objectstack-fleet
Bot
deleted the
claude/issue-13278-dependencies-editor
branch
October 20, 2026 19:54
This was referenced Oct 20, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Fixes #13278
Clause-②: no
What
The package dialog's Dependencies row (Studio and Setup, create, edit and view) is now an author-facing editor: one line per dependency with a Package input and a Version range input, Add dependency and a per-row remove button. The developer hint "widget object-fields — falling back to JSON until a custom renderer is registered" and the raw JSON box are gone from this row.
package name → version rangemap the dialog already sends, sodependenciesChangedand the PATCH body are unchanged: edit mode sendsdependenciesonly when the entries changed, and removing every row sends{}(the objectui#13121 clear).role="alert") and keeps save disabled, so nothing with such a row is sent. Version ranges are left to the server: its400 VALIDATION_ERRORrenders in the dialog banner as before.dependenciesrow (getPackageForm), and the help line from that row orManifestSchema's own.describe(), the same way the dialog reads the id's help. Nothing about the row is restated.How it is mounted
SchemaFormhas no per-form renderer map or override hook. Its only widget lookup is the app-wideWIDGETSregistry, which this PR does not change. So the dialog mounts the editor the same way it already mountsPackageIdInputfor the id:dependenciesjoins the dialog'shiddenFieldsin every mode, and the dialog hostsPackageDependenciesEditorbeside the spec form.Layout consequence, for review: the row is no longer inside the collapsed Advanced section. It renders as its own card under the spec form, visible without expanding anything. That card is where a save refusal's "declare a dependency" remedy now leads.
Why not reuse the flow inspectors'
FlowKeyValueField: it smart-parses values (a range typed as1becomes a number, whichManifestSchemarefuses), commitsundefinedfor an emptied map where the edit door clears only on{}, and silently skips empty or duplicate keys where this row has to flag them. The new module is one file inmetadata-admin, with no package export.Files
packages/app-shell/src/views/metadata-admin/PackageDependenciesEditor.tsx(new)packages/app-shell/src/views/metadata-admin/PackageFormDialog.tsx(hide the row, host the editor, save waits on a valid row set)packages/app-shell/src/views/metadata-admin/i18n.ts(sevenengine.packages.dependencies.*keys, en and zh)PackageFormDialog.dependenciesEditor-13278.test.tsx(new),PackageFormDialog.editDependencies-13121.test.tsx(now drives the rows instead of the JSON box, same five pins).changeset/13278-dependencies-editor.md(patch,@object-ui/app-shell)package-schema.tsis unchanged: it declares no widget for the row.object-fieldsis whatSchemaForminfers for anytype: 'object'schema.Pins (
PackageFormDialog.dependenciesEditor-13278.test.tsx)@acme/core→^1.2.0and saving sendsdependencies: { '@acme/core': '^1.2.0' };dependencies: {};Verification (final union at
aa5e67b30a)HIDDEN_FIELDS = ['dependencies']→[]throughablation-replace.mjs(anchor 1 → 0, blob8490d5d65e42→6463b99bb332). Pin (a) went red,expected [ textarea ] to have a length of +0 but got 1, and the other four stayed green. Restore was proven by blob: after restore,8490d5d65e42equals the HEAD blob andgit diff HEADis empty.--maxWorkers=1, under the shared lock): 21 files namingPackageFormDialog/PackageDependenciesEditor/package-schema:Test Files 21 passed (21),Tests 166 passed (166). The fullpackages/app-shell/directory is left to CI.pnpm --filter @object-ui/app-shell run type-check(tsc --noEmit && tsc -p tsconfig.test.json, which includessrc/**/*.test.tsx), after a closure build--filter '@object-ui/app-shell^...': exit 0.--no-inline-configon the 5 changed.ts/.tsxfiles (count from--format json): 0 errors and 3 warnings, all inPackageFormDialog.tsx. The same 3 rules fire on the base version of that file. No type-aware linting is configured, so this diff cannot change the verdict for any untouched file.check:phantom-deps,check:self-import,check:unreferenced-sources,check:doc-example-readers,check:handler-key-reads,check:side-effects-array,check:element-data-source-declaration,check:spec-symbols,check:action-forward-parity,check:designer-field-key-parity,check:icon-record-names,check:i18n-keys,check:i18n-drift,check:i18n-designer-parity,check:control-bytes,check-hand-rolled-comment-mask.mjs,check-changeset-fixed.mjs,check-changeset-presence.mjs,check:new-line-citations.Not browser-verified. All renders above are happy-dom.
Acceptance notes
Session:
https://claude.ai/code/session_01XVp19E1MYUTFM3dnkwz8gBGenerated by Claude Code