Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

feat(app-shell): the served approval request page shows the flow origin and the vertical step line (objectui#12491) - #12938

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-12491-face5-step-line
Oct 18, 2026
Merged

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-12491-face5-step-line

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #12491
Clause-②: no
Clause-② reason: the panel draws two more parts from attributes the bound row already carries. No entry export, prop, locale key or spec key is added or removed (measured below).

What changes

The decision panel (record:approval_decision), which objectstack's served sys_approval_request_detail page mounts in its actions slot, now draws two more parts from the request row the page is bound to. This is face 5 of ruling C on objectui#12438, with the seat's answers Q1 A and Q2 A (comment 6246197696).

  • The flow origin. When the row's submitter_id is absent or null, the panel draws the existing approvalsInbox.flowOrigin copy ("Flow-initiated") with the sheet's workflow icon, above the snapshot summary. That is the contract's only spelling of a request no person submitted (ADR-0118 D1); the approvals get serves the null column as an absent key. A request a person submitted carries no marker. No flow: / system: prefix branch is ported from the sheet.
  • The vertical step line. When the row's flow_steps has more than one step, the panel draws the flow's vertical step line between the snapshot summary and the tally, at ANY status. A decided request and a first_response node (no tally) draw it too: that is the sheet's gate, not the indicator's.

The stepper markup moves out of RecordApprovalsPanel into one module-internal component, approval-progress/ApprovalStepLine.tsx, which both panels draw. Its accessible name is the existing approvalsInbox.stepProgress row, asked for by literal key. RecordApprovalsPanel's output is unchanged (measured below), and its own gate (the record's pending request only) stays where it was.

Not touched: the inbox side sheet (ApprovalsInboxPage.tsx, ADR-0060 rule 3), any locale key, any spec key, and the served page. The flow's display name in the page's highlights strip is carried by objectstack-ai/objectstack#24264, a served-page edit in objectstack; this PR does not depend on it.

Measurements

All at head 0c51cd64 unless noted.

  • The dispatch's mechanism assumptions, each measured before editing:
    1. DecisionProgressIndicatorProps has progress and eligibleApprovers only, and the indicator draws only when a tally exists, so the line is a sibling part. Holds.
    2. RecordApprovalsPanel drew a stepper from pendingRequest.flow_steps when it had more than one step. Holds; it now draws ApprovalStepLine, with identical DOM.
    3. The routed read: at objectstack main fb6fb24e2, getRequest attaches flow_steps (attachFlowSteps) on the single read, and rowFromRequest serves submitter_id: row.submitter_id ?? undefined, so a null submitter arrives as an absent key. The console's ApprovalRecordReads passes the get's row through. ApprovalRequestLite already declares flow_steps and submitter_id?: string | null; this PR does not change it. It is NOT reachable from the @object-ui/app-shell entry: src/index.ts re-exports a named list from hooks/index.js that omits it, and the built dist/index.d.ts names neither it, nor either panel, nor ApprovalStepLine (0 hits). The build adds dist/views/approval-progress/ApprovalStepLine.*, which the exports map (. and ./styles.css) does not reach.
    4. Copy: approvalsInbox.flowOrigin and approvalsInbox.stepProgress are in all ten packs. No key is added.
    5. The sheet's pins define the mirrored behaviour. They are not imported, and both still pass unchanged.
  • RecordApprovalsPanel is byte-identical. A one-off parity test (deleted, never committed) rendered the panel from this branch and from base 79cb8c03 side by side and compared innerHTML. Equal for pending with 6, 2, 1 and 0 steps, pending with 12 steps all done, and a decided request with no pending row; a CONTROL (6 steps against 5) differed. 7 of 7 passed. The panel's six existing pin files pass unchanged.
  • Ablations, each through ablation-replace (anchor hit once, blob changed, restored to the HEAD blob with git diff HEAD empty). The tests import the panel by relative path, so no build sits between the mutation and the run.
    • Delete the panel's ApprovalStepLine: ApprovalDecisionPanel.stepLine-12491 7 failed, 1 passed (the one-step and no-steps CONTROL stays green).
    • Delete the panel's FlowOrigin: ApprovalDecisionPanel.flowOrigin-12491 4 failed, 2 passed (both CONTROLs stay green).
    • Delete both: the served-page pin 5 failed, 1 passed. The spec-parse case stays green; its two CONTROLs go red because each waits on the line or the marker as its positive anchor.
  • Tests (pnpm exec vitest run from the repo root, under the verify lock, at 0c51cd64): approval-decision/, approval-progress/, RecordApprovalsPanel*, apps/console/src/services/approvalRequestsDataSource*, the sheet's ApprovalsInboxPage.stepProgressVertical and characterizationPins, product-neutral-renderer.ratchet and dead-pack-keys-retired-8754: 30 files, 268 tests passed.
  • Gates (exit codes captured before any pipe):
    • pnpm --filter @object-ui/app-shell type-check 0, both tsc legs; the two new app-shell pins are in the test project's program.
    • pnpm --filter @object-ui/console type-check 0; the new console pin is in its program.
    • pnpm check:i18n-keys 0; pnpm check:new-line-citations 0 (0 new citations); pnpm check:test-path-roots 0; pnpm check:changeset-claims 0; node scripts/check-changeset-presence.mjs 0; pnpm changeset:check 0.
    • eslint on the six changed TS files: 0 errors, 6 warnings, all in RecordApprovalsPanel.tsx code this PR does not change; the base version of that file reports the same 6.
    • node scripts/check-governed-queue-guard.mjs --test over the diff: NOT GOVERNED.
    • The full farm runs in CI.

New pins

  • packages/app-shell/src/views/approval-decision/ApprovalDecisionPanel.stepLine-12491.test.tsx: the sheet's vertical layout contract over the panel's line (flex-col, named by the stepProgress pack row, one listitem per step in order, no shrink-0 row, min-w-0 labels with no whitespace-nowrap, no horizontal scroller, no breakpoint-prefixed layout token, identical classes at 2, 5, 6 and 12 steps, each connector tinted by the step it leads into). Then the panel's gate: a decided 3-step request and a first_response node draw the line; a one-step flow and a row with no flow_steps do not.
  • packages/app-shell/src/views/approval-decision/ApprovalDecisionPanel.flowOrigin-12491.test.tsx: the contract's null shape (the key absent, the key null), at any status, in the active language. CONTROLs: a human submitter, and a flow:-prefixed id (no prefix branch).
  • apps/console/src/services/approvalRequestsDataSource.servedPageStepLine-12491.test.tsx: the real RecordDetailView over ApprovalRecordReads and the served page copied whole, mounted as the face 1 and face 2 served-page pins mount it.

Acceptance notes

  • The existing served-page pins (for example servedPageApprovers-12482 and servedPageSummary-12483) serve rows with no submitter_id key, so on those pins the panel now also draws the flow-origin marker. None of their assertions reads it, and all of them pass. objectui#12484, which rewrites the served-page pins, is the natural place to give those rows a submitter if they should model human-submitted requests. Noted, not filed.
  • RecordApprovalsPanel keeps its own gate: it draws the line only for the record's pending request, so a business record whose approval is decided shows no line, while the inbox sheet and now the request page draw it at any status. The ruling keeps that panel's behaviour as it is. Noted, not filed: no contract states the record panel's gate.
  • In a real browser: NOT MEASURED. The served-page pin mounts the real record view over the routed read; no live objectstack stack was booted.

Generated by Claude Code

… flow origin (objectui#12491)

The record:approval_decision panel now draws two more parts from the row
the approval request page is bound to:

- the vertical step line of the owning flow, from `flow_steps`, when the
  flow has more than one approval step, at any status;
- the "Flow-initiated" marker (approvalsInbox.flowOrigin) when the row's
  `submitter_id` is absent or null, the contract's only spelling of a
  request no person submitted. No flow:/system: prefix branch.

The stepper markup moves into one module-internal ApprovalStepLine that
RecordApprovalsPanel draws too, with the same DOM.

Claude-Session: https://claude.ai/code/session_0188TsgPV8kQXfuRuKmkj2ks
Co-authored-by: Claude <noreply@anthropic.com>
…n (objectui#12491)

Mounts the real RecordDetailView over the console's routed approvals read
and objectstack's served sys_approval_request_detail page, with the row
shaped as the approvals get serves it: flow_steps on the single read, and
no submitter_id key for a request a flow run opened. Adds the README
paragraph and the app-shell changeset.

Claude-Session: https://claude.ai/code/session_0188TsgPV8kQXfuRuKmkj2ks
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added documentation Improvements or additions to documentation apps tests package: app-shell labels Oct 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

changeset-claim-re-read

⚠️ 1 pending changeset(s) describe a file this change touches

Their bodies publish verbatim into the CHANGELOG at the next release, so this is a request to re-read them against your diff — addressed here because you are the one seat that can answer it without re-deriving anything.

⛔ Nothing here blocks, and nothing here is a verdict on your change. This gate exits 0, is not a required context, and judges name resolution, never meaning: it asked whether a pending body names a file you touched. "Is this sentence still true?" is the one question it will not answer, and the one you are being asked to answer.

.changeset/11806-login-server-unreachable.md

  • names packages/app-shell/README.md → packages/app-shell/README.md — edited by this change

    packages/app-shell/README.md documents the two new states in its sign-up table. Its useSignUpOffer recipe for hosts now asks decideSignUpOffer only once the read has answered, and answers unreachable for a failed read.

Read the paragraph, not the line: both false halves of the objectui#8617 claim sat in one paragraph, and correcting either alone would have left it asserting the same wrong thing.

If a claim did go false, correct the body. That is precedented and prose-only, frontmatter untouched; check-changeset-overwrite.mjs will report the correction as its own case 2 ("correcting a declaration on purpose … legitimate"), which is the intended shape — one gate asks for the read, the other records the write.

Not covered, stated so nobody reads this as more: a born-false claim that spells no line address at all (objectui#9495 coordinated one by ORDINAL — "a grep finds that member first" — and deciding that means reading what the sentence means), a claim spelled as a symbol or a package rather than a backticked file name, and a file named ambiguously.

Compared the checked-out tree with 79cb8c03e (merge-base with origin/main): 7 file(s) changed outside .changeset/, read against 747 pending declaration(s) that publish a body (771 pending in total). · run

@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 75 chunks) 3157.0 KB 3744.1 KB
Main entry chunk (gzip) 80.6 KB 350 KB
Entry file index-8-kWjnHZ.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) 21.41KB 7.88KB
app-shell (runtime-config.js) 24.52KB 8.48KB
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) 45.59KB 12.03KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 20.67KB 6.12KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.72KB 2.24KB
auth (SocialSignInButtons.js) 9.74KB 3.94KB
auth (UserMenu.js) 3.39KB 1.21KB
auth (auth-gate-events.js) 1.62KB 0.83KB
auth (authStyles.js) 5.27KB 1.86KB
auth (createAuthClient.js) 42.84KB 11.66KB
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.26KB 8.03KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.28KB 2.60KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (commentAuthorship.js) 1.39KB 0.78KB
collaboration (index.js) 1.93KB 0.85KB
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) 612.39KB 149.02KB
core (index.js) 10.18KB 4.04KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 248.83KB 69.44KB
fields (index.js) 291.50KB 74.42KB
i18n (LocalizationContext.js) 2.92KB 1.42KB
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.52KB 2.39KB
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) 36.87KB 9.88KB
i18n (useSafeTranslation.js) 7.14KB 2.92KB
layout (index.js) 41.33KB 11.96KB
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) 15.35KB 5.51KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.82KB 2.38KB
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) 55.04KB 16.10KB
plugin-charts (index.js) 85.06KB 23.39KB
plugin-chatbot (index.js) 210.60KB 49.94KB
plugin-dashboard (index.js) 146.43KB 39.63KB
plugin-designer (index.js) 233.95KB 50.08KB
plugin-detail (index.js) 266.04KB 70.50KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 180.54KB 46.64KB
plugin-gantt (index.js) 178.46KB 45.13KB
plugin-grid (index.js) 272.87KB 75.68KB
plugin-kanban (index.js) 63.37KB 19.51KB
plugin-list (index.js) 139.74KB 35.99KB
plugin-map (index.js) 27.17KB 9.00KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 46.66KB 13.13KB
plugin-timeline (index.js) 39.31KB 11.88KB
plugin-tree (index.js) 15.27KB 5.40KB
plugin-view (index.js) 94.68KB 24.36KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 12.07KB 3.68KB
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) 124.19KB 40.69KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.71KB 2.11KB
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.07KB 1.30KB
sdui-parser (index.js) 7.30KB 3.12KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 25.28KB 7.81KB
sdui-parser (provenance.js) 3.84KB 1.90KB
sdui-parser (types.js) 0.29KB 0.24KB
sdui-parser (validate.js) 23.87KB 7.83KB
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) 1.13KB 0.65KB
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.78KB 2.70KB
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 (node-slots.js) 7.18KB 2.34KB
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 (product-blocks.js) 0.20KB 0.19KB
types (record-approval-decision.js) 0.20KB 0.20KB
types (record-components.js) 0.20KB 0.19KB
types (record-panels.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.26KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.48KB 3.50KB
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

Copy link
Copy Markdown
Contributor Author

席位核对 — ACCEPT · domain:ui seat 1 · session_0188TsgPV8kQXfuRuKmkj2ks · 2026-10-18T06:49Z

Reviewed on GitHub at head 0c51cd642f4e9db928eeb1f295ae4b3af08fd085, against claim 6246204492 and the seat's answers 6246197696 on objectui#12491.

  1. Shape.

  2. Premise and diff, measured.

    • ApprovalDecisionPanel gains FlowOrigin, gated on submitter_id != null. objectstack plugin-approvals rowFromRequest serves submitter_id: row.submitter_id ?? undefined, so a human-submitted request always carries the key, and a null one arrives absent: Q2 A as answered.
    • It also renders ApprovalStepLine from flow_steps at any status: Q1 A.
    • ApprovalStepLine carries the old RecordApprovalsPanel markup class for class, with the fewer-than-two-steps gate inside it.
    • RecordApprovalsPanel keeps its pending-only gate.
    • No locale key or spec key moves; both strings read the existing approvalsInbox.* rows.
  3. Gates.

    • Check-runs on this head: 36, with 33 success and 3 skipped.
    • Clause-②: no, and the diff touches none of the four contract faces (no declaration, narrowing, published schema or governed text), so no contract review is owed. This ACCEPT is the review at TIER_DEFAULT.
  4. Accepted deviations:

    • the served-page pin approvalRequestsDataSource.servedPageStepLine-12491.test.tsx, beyond the claim's surface but test-only;
    • ApprovalStepLine reading the stepProgress key itself instead of taking a label prop;
    • the DOM-parity measurement done in a throwaway test.

    Changeset and README sentences checked against the diff:

    • "is marked 'Flow-initiated'… a request a person submitted carries no marker": matches the gate above.
    • "at any status, so a decided request and a node with no progress tally show it too": the line renders outside the progress && guard.
    • "with no change to its output": parity was measured by the dev, and the markup is identical in the diff.
    • "with no page, prop, locale key or spec change": confirmed.
  5. Out of scope, where each goes.

    • The earlier served-page pins' fixtures omit submitter_id, so they now draw the marker unasserted. That rides objectui#12484, which rewrites those pins.
    • RecordApprovalsPanel drawing the line only for a pending request stays a note: no contract states that gate, and the ruling kept that panel unchanged.
  6. Landing.

    • Ready and auto-merge through objectui's merge queue.
    • On MERGED, Fixes #12491 closes the card, and the seat posts the landing note and strips pm:dispatched.
    • Same act: re-derive objectui#12484's Blocked-by: lines, which leave it with no open blocker.

VERDICT: ACCEPT


Generated by Claude Code

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

apps documentation Improvements or additions to documentation package: app-shell tests

Projects

None yet

2 participants