Skip to content

fix(app-shell,i18n): the Organization flows page says each draft publishes by itself, and a deep-link miss shows no false "no designers" notice (objectui#11591) - #11606

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-11591-org-flows-copy
Oct 4, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-11591-org-flows-copy

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #11591
Clause-②: no

Implemented by an os-dev run of the PM claim on the card (branch claude/issue-11591-org-flows-copy, session https://claude.ai/code/session_01FjqrwXPfSMkSfkKYDSRkN2).

What changed

1. The package-less sheet no longer claims atomicity

  • DraftChangesPanel's confirm note reads preview.changes.confirmNote when the panel has a packageId (unchanged, byte for byte, in all ten packs) and the new preview.changes.confirmNoteSeparate when it has none.
  • Why packageId decides: only a package has a batch door (POST /packages/:id/publish-drafts). The package-less page's Publish (the packageId === null branch of doPublish in StudioDesignSurface) calls publishDraft once per draft and keeps going past a failure, so a partial publish is possible there.
  • The new family is in all ten packs, with each pack's own CLDR categories plus the base key and the en parity slots: en/de one+other, es/fr/pt one+many+other, ru one+few+many+other, ar zero through other, ja/ko/zh other. en reads:
    • one: "Publishing releases the 1 pending draft on its own: if it fails, it stays pending."
    • other: "Publishing releases the 2 pending drafts one at a time: a draft that fails stays pending while the others go live."
  • The panel's other host, the draft-preview bar, passes neither packageId nor onPublish. It renders no confirm footer and does not change.

2. A deep-link miss and an empty list show no false "no designers" notice

  • AutomationsPillar read getMetadataPreview(current?.type ?? ''). With no flow open, that read is for the type '', which returns undefined. isEditable was then false, and the canvas chip rendered engine.studio.auto.designersMissing ("No metadata designers are registered in this session…") next to the correct miss sentence.
  • It now reads getMetadataPreview('flow'), the pillar's one type, the same way the getMetadataInspector('flow') read beside it already worked. Nothing changes with a flow open, because every rail entry of this pillar has the type flow.
  • The notice still keys on the registry: where no designer is registered, it still shows with no flow open (pinned below).
  • views/metadata-admin/** is not edited (objectui#10202 holds it). The copy keys already existed.

Measured

All at 67dcfcb unless said otherwise.

Red before the fix (tests written first, run on the unfixed tree): 15 failed, 41 passed across the 4 pin files. The received strings were:

  • package-less sheet, 1 draft: "Publishing releases the 1 pending draft of this package atomically."
  • package-less sheet, 2 drafts: "Publishing releases all 2 pending drafts of this package atomically."
  • /studio/~org/automations?surface=flow:showcase_urgent_task_alert (the card's measured URL): the page text held "No metadata designers are registered in this session, so this flow cannot be designed here." beside "The link names flow “showcase_urgent_task_alert”, which is not here."
  • The same on a package page's miss.
  • An empty package-less list: the measurement the card predicted. The rail's "No flows outside a package yet. …" sat beside the same false notice.
  • ten packs: no confirmNoteSeparate family.

Green after the fix: pnpm exec vitest run on the 4 pin files gave 4 files, 56 of 56 tests passed.

Ablations. Each one went through ablation-replace.mjs, which checks that the anchor hit once and that the blob changed. Each was restored by blob hash with git diff HEAD empty:

  • The atomic sentence back on the package-less path (the note's condition forced to true): 2 failed, 2 passed. The two package-less cases failed and received the atomic sentence. The two package-sheet controls stayed green.
  • The notice keyed on the selection again (getMetadataPreview(current?.type ?? '')): 3 failed, 18 passed. The failures were the measured miss, the package page's miss and the empty list. The control with a flow open stayed green. So did the empty-registry case, because with no designer registered the notice shows either way, which is the direction expected.
  • The ja package-less form given the package sentence's "まとめて(アトミックに)": 1 failed, 30 passed. Only ja failed.

Wider runs.

  • packages/app-shell/src/views/studio-design/ and packages/app-shell/src/preview/: 103 files, 653 tests passed.
  • packages/i18n/, plus every test that reads a changed file as source text: 117 files, 2663 passed and 13 skipped. These tests were found by grepping test sources for readFileSync and ?raw, and for the names StudioDesignSurface.tsx, DraftChangesPanel.tsx and locales/*.ts. They are packages/app-shell/src/__tests__/, ObjectView.viewConfigGate, the metadata-admin i18n tests, HomeItemTypeLabel.parity, apiErrorEnvelope and the scripts/__tests__ suites for the i18n gates, node-esm-load, eager-closure, eager-locale-catalogues, spec-symbol ledger and derivation, one-authority, vi-mock-inherit, side-effects, self-import and turbo build outputs.

Type-check. pnpm --filter @object-ui/app-shell type-check and pnpm --filter @object-ui/i18n type-check both exited 0. They ran after pnpm turbo run build --filter='@object-ui/app-shell^...' (28 of 28 tasks). Both test tsconfigs list the new test files; this was checked with --listFilesOnly.

Gates, all exit 0. The gates run were:

  • the i18n gates: check:i18n-keys, check:i18n-drift ("No en value changed in this range"), check:i18n-dead-keys (the new keys are not candidates) and check:i18n-designer-parity;
  • the named file gates: check:control-bytes, check:new-line-citations (0 new) and check:changeset-claims;
  • the test and mock gates: check:pending-changeset-literals, check:test-path-roots, check:vi-mock-inherit, check:vi-mock-override-shape and check:vi-mock-specifiers;
  • the source gates: check:spec-symbols, check:metadata-write-doors, check:handler-key-reads, check:esm-specifiers, check:unreferenced-sources, check:self-import and check:phantom-deps;
  • the changeset gates: scripts/check-changeset-presence.mjs and changeset:check.

Lint (narrowed, not the repo-wide run).

  • eslint --format json ran on the 16 changed .ts/.tsx files; the JSON output has 16 results. It reported 0 errors.
  • The two changed sources carry 2 and 17 warnings. The rule multisets are identical to those of the same two files at the base 2e818d0. The base files were linted in place and then restored by blob hash.
  • eslint.config.js sets no parserOptions.project and no projectService, so linting is not type-aware. This diff therefore cannot move a verdict in a file it does not touch.

NOT MEASURED (left to CI):

  • check:eager-closure / check:eager-locale-catalogues: they need a console build. The en pack is in the eager closure, and this adds three en strings.
  • pnpm test (all 8 shards).
  • pnpm lint.

Acceptance notes

  • With no flow open, the pillar's other text is unchanged. The chip now reads its standing "Visual orchestration · click a node to configure". The canvas reads "Select an automation" on an empty list. The configuration panel reads "Click a node on the canvas, and its configuration appears here." The card's pin is the false notice. These are observations, and nothing was filed for them.
  • In en, de, es, fr and pt, the single-draft form does not mention "the others", because a partial publish needs at least two drafts. ru's one category also covers 21, 31 and so on, so its one-form avoids "the others" too. ar, ja, ko and zh use one sentence for every count, as their confirmNote does.
  • Changeset .changeset/11591-org-flows-copy.md: @object-ui/app-shell patch, @object-ui/i18n patch.

Generated by Claude Code

…s publish, and a deep-link miss shows no false "no designers" notice (objectui#11591)

The package-less sheet's confirm note reads a new
`preview.changes.confirmNoteSeparate` family (all ten packs): each draft
publishes by itself and one that fails stays pending. A package's sheet
keeps `preview.changes.confirmNote` unchanged.

The Automations pillar reads the preview registry for `flow`, its one
type, instead of the open flow's type, so with no flow open the canvas
chip no longer says no designers are registered.

Claude-Session: https://claude.ai/code/session_01FjqrwXPfSMkSfkKYDSRkN2
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 331 chunks) 3312.5 KB 3330.4 KB
Main entry chunk (gzip) 151.4 KB 350 KB
Entry file index-CTyBteR8.js —
Status PASS —

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

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 17.22KB 6.37KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.11KB 3.87KB
auth (ActiveOrganizationStorage.js) 27.95KB 10.04KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.22KB 10.61KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.17KB 5.40KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.72KB 2.24KB
auth (SocialSignInButtons.js) 9.70KB 3.93KB
auth (UserMenu.js) 3.39KB 1.21KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.70KB 10.94KB
auth (createAuthenticatedFetch.js) 8.54KB 3.46KB
auth (index.js) 3.63KB 1.64KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 27.11KB 7.97KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.28KB 2.60KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.50KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 572.97KB 137.34KB
core (index.js) 10.00KB 3.96KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 232.57KB 64.51KB
fields (index.js) 261.62KB 66.20KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 2.59KB 1.22KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.24KB 2.27KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 39.35KB 12.88KB
i18n (translateFn.js) 0.20KB 0.18KB
i18n (useDisplayLocale.js) 3.52KB 1.76KB
i18n (useObjectLabel.js) 35.66KB 9.49KB
i18n (useSafeTranslation.js) 7.14KB 2.92KB
layout (index.js) 39.47KB 11.25KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 6.62KB 2.45KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 5.52KB 2.10KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.86KB 5.00KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.52KB 2.26KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.33KB 3.07KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 16.04KB 3.92KB
plugin-calendar (index.js) 53.17KB 15.46KB
plugin-charts (index.js) 83.60KB 22.89KB
plugin-chatbot (index.js) 198.22KB 46.97KB
plugin-dashboard (index.js) 142.89KB 38.62KB
plugin-designer (index.js) 231.41KB 48.84KB
plugin-detail (index.js) 245.74KB 64.59KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 175.44KB 45.28KB
plugin-gantt (index.js) 179.16KB 45.06KB
plugin-grid (index.js) 235.63KB 64.77KB
plugin-kanban (index.js) 49.59KB 15.58KB
plugin-list (index.js) 116.46KB 28.93KB
plugin-map (index.js) 25.60KB 8.62KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 44.12KB 12.29KB
plugin-timeline (index.js) 38.80KB 11.71KB
plugin-tree (index.js) 14.51KB 5.15KB
plugin-view (index.js) 90.23KB 22.73KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.81KB 3.58KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 120.63KB 39.56KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.50KB 2.06KB
react (schema-input.js) 4.31KB 2.07KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.50KB 1.99KB
sdui-parser (codegen.js) 9.45KB 3.76KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 6.06KB 2.68KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.84KB 1.90KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 21.42KB 7.05KB
types (ai.js) 4.39KB 2.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 4.12KB 1.61KB
types (authoring-nodes.js) 0.20KB 0.19KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (cloud.js) 0.20KB 0.18KB
types (complex.js) 4.44KB 2.07KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (dashboard-widget-layout.js) 2.06KB 0.96KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 5.07KB 2.39KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 5.00KB 2.39KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 2.52KB 1.31KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 4.99KB 1.96KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 19.93KB 7.25KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review October 4, 2026 09:57
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge October 4, 2026 09:57
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Oct 4, 2026
Merged via the queue into main with commit b92329c Oct 4, 2026
45 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-11591-org-flows-copy branch October 4, 2026 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

1 participant