Skip to content

FE-2216 refactor(billing): one predicate for operations that need the customer - #17792

Merged
dante01yoon merged 1 commit into
mainfrom
jaewon/fe-2216-customer-attention-predicate
Sep 16, 2026
Merged

dante01yoon merged 1 commit into
mainfrom
jaewon/fe-2216-customer-attention-predicate

Conversation

@dante01yoon

Copy link
Copy Markdown
Collaborator

Linear FE-2216. Follow-up parked from #17665 review.

Why

The rule "this operation needs the customer, so the dialog must show it instead of the amount step" was written three times: twice inline in billingOperationStore's subscriptionActionOperation and topupActionOperation computeds, and once as needsCustomerAttention in the SDK rail's topupOperationView. Three copies of one rule across two rails means a change to it has to be found in three places.

How

  • New leaf module src/platform/workspace/billing/customerAttention.ts exports the single pure predicate needsCustomerAttention. Its parameter is a structural readonly shape (status, actionUrl, authenticationState) that both the poller's BillingOperation record and the SDK's TopupOperationView satisfy, so neither rail's type is imported by the other.
  • The two store computeds call it and keep their own type, workspaceId and dismissed filters.
  • topupOperationView.ts loses its copy; billingSdkStore.ts imports the predicate from the new module.
  • isParkedAwaitingCustomer is a different rule (polling cadence, authenticationRequiredSeen) and is untouched.

AS-IS / TO-BE

No behaviour change. The predicate is byte-for-byte the store's condition; the view's copy was equivalent because a TopupOperationView in reconciliation_needed always carries a null actionUrl.

Testing

  • New customerAttention.test.ts covers the rule as one it.for table: hosted action URL, requires_action, failed_retryable, reconciliation_needed, plain pending, settled.
  • topupOperationView.test.ts drops the assertions that only existed to cover the deleted copy; its projection assertions are unchanged.
  • vitest run src/platform/workspace: 74 files, 1608 tests pass.

Where this sits in the plan

Billing SDK track FE-2210 (implementation plan V2). Hybrid model: top-up in-app, subscription management / invoices / payment methods on the hosted billing app.

Phase Item Ticket Status
1-2 Session core, transport, readers FE-2211/2212/2213 merged
3 Operation lifecycle, commands, eight-state projection FE-2227/2214/2223 merged (#17655)
4 @comfyorg/account-ui composables + CheckoutSteps FE-2215 merged (#17662, #17663)
5 slice 1 Top-up through the SDK behind billing_sdk_topup_enabled FE-2216 merged (#17665)
rollout C hosted_billing_destination server flag read by the host FE-2218 merged (#17716)
rollout C hostedDestination port on the lifecycle, value on operation state FE-2210/2218 open (#17783)
7 prep Scope-source port + credentialed transport (BFF / cookie hosts) FE-2218 open (#17782)
7 prep @comfyorg/account → @comfyorg/account-core rename FE-2218 local, opens after #17782 and #17783
7 prep billing-contract route builder + return_to registry FE-2218 in progress
3A-3 Workshop adapter over createHostedTopupCheckout FE-2214 in progress
8 previewSubscribe, plans, payment-methods readers + account-ui + billing-web views FE-2331 todo
7 npm publish (ingest-types, account-core, billing-contract), Platform install, billing-web live top-up FE-2218 todo
6 Contract tests + live E2E per flow × consumer FE-2217 todo
5 slice 2 Subscription flows through the SDK FE-2216 todo (plan-change decision)
follow-up One needsCustomerAttention predicate (from the #17665 review) FE-2216 this PR
follow-up Opaque BillingServerCode (from the #17656 review) FE-2227 in progress
flowchart LR
  P3["Phase 3 core lifecycle (merged)"]
  P4["Phase 4 account-ui (merged)"]
  P5["Phase 5 slice 1 top-up flag (merged)"]
  FC["PR 17716 hosted_billing_destination flag (merged)"]
  HD["PR 17783 hostedDestination port"]
  SS["PR 17782 scope-source port + credentialed transport"]
  RN["account-core rename"]
  RB["billing-contract route builder + return_to"]
  WS["Workshop adapter"]
  P8["Phase 8 readers + billing-web views"]
  PUB["npm publish account-core / billing-contract"]
  P7["Phase 7 host proof: Platform + billing-web live"]
  P6["Phase 6 evidence"]
  S2["Phase 5 slice 2 subscription"]
  FU9["customer-attention predicate"]
  FU11["opaque BillingServerCode"]
  P3 --> HD
  FC --> HD
  HD --> RB
  P3 --> SS
  SS --> P7
  RB --> P7
  P3 --> RN
  RN --> PUB
  RB --> PUB
  PUB --> P7
  P4 --> P8
  P8 --> S2
  P5 --> P6
  P5 --> WS
  P5 --> FU9
  P3 --> FU11
  style P3 fill:#d4edda,stroke:#155724
  style P4 fill:#d4edda,stroke:#155724
  style P5 fill:#d4edda,stroke:#155724
  style FC fill:#d4edda,stroke:#155724
  style FU9 stroke:#0366d6,stroke-width:4px
Loading

@dante01yoon
dante01yoon requested a review from a team September 16, 2026 01:07
@dante01yoon dante01yoon added needs-backport Fix/change that needs to be cherry-picked to the current feature freeze branch core/1.54 Backport PRs for core 1.54 cloud/1.54 Backport PRs for cloud 1.54 labels Sep 16, 2026
@github-actions

github-actions Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

🎨 Storybook: ✅ Built — View Storybook

Details

⏰ Completed at: 09/16/2026, 01:09:49 AM UTC

Links

🎭 Playwright: ✅ 2015 passed, 0 failed · 2 flaky

📊 Browser Reports
  • chromium: View Report (✅ 1994 / ❌ 0 / ⚠️ 2 / ⏭️ 13)
  • chromium-2x: View Report (✅ 2 / ❌ 0 / ⚠️ 0 / ⏭️ 0)
  • chromium-0.5x: View Report (✅ 1 / ❌ 0 / ⚠️ 0 / ⏭️ 0)
  • mobile-chrome: View Report (✅ 18 / ❌ 0 / ⚠️ 0 / ⏭️ 0)

📦 Bundle: 10 MB gzip 🟢 -24 B

Details

Summary

  • Raw size: 42.6 MB baseline 42.6 MB — 🟢 -192 B
  • Gzip: 10 MB baseline 10 MB — 🟢 -24 B
  • Brotli: 7.07 MB baseline 7.07 MB — 🟢 -61 B
  • Bundles: 451 current • 451 baseline • 151 added / 151 removed

Category Glance
Data & Services 🟢 -192 B (3.8 MB) · Vendor & Third-Party ⚪ 0 B (18.2 MB) · Other ⚪ 0 B (17.5 MB) · Graph Workspace ⚪ 0 B (1.44 MB) · Panels & Settings ⚪ 0 B (622 kB) · Utilities & Hooks ⚪ 0 B (561 kB) · + 5 more

App Entry Points — 3.73 kB (baseline 3.73 kB) • ⚪ 0 B

Main entry bundles and manifests

File Before After Δ Raw Δ Gzip Δ Brotli
assets/index-BmOuAVn9.js (removed) 3.73 kB — 🟢 -3.73 kB 🟢 -1.87 kB 🟢 -1.61 kB
assets/index-CfTEG-GS.js (new) — 3.73 kB 🔴 +3.73 kB 🔴 +1.87 kB 🔴 +1.63 kB

Status: 1 added / 1 removed

Graph Workspace — 1.44 MB (baseline 1.44 MB) • ⚪ 0 B

Graph editor runtime, canvas, workflow orchestration

File Before After Δ Raw Δ Gzip Δ Brotli
assets/GraphView-BxS0fOlD.js (new) — 1.43 MB 🔴 +1.43 MB 🔴 +314 kB 🔴 +235 kB
assets/GraphView-D_OLLKm5.js (removed) 1.43 MB — 🟢 -1.43 MB 🟢 -314 kB 🟢 -235 kB
assets/WidgetCompositor-C7P4_5EJ.js (removed) 8.5 kB — 🟢 -8.5 kB 🟢 -2.8 kB 🟢 -2.48 kB
assets/WidgetCompositor-Cs-9oep6.js (new) — 8.5 kB 🔴 +8.5 kB 🔴 +2.8 kB 🔴 +2.48 kB

Status: 2 added / 2 removed / 1 unchanged

Views & Navigation — 132 kB (baseline 132 kB) • ⚪ 0 B

Top-level views, pages, and routed surfaces

File Before After Δ Raw Δ Gzip Δ Brotli
assets/CloudSurveyView-AjbBWK2f.js (new) — 25 kB 🔴 +25 kB 🔴 +6.25 kB 🔴 +5.51 kB
assets/CloudSurveyView-DI1A4Eeh.js (removed) 25 kB — 🟢 -25 kB 🟢 -6.25 kB 🟢 -5.53 kB
assets/CloudLayoutView-CduSo1hS.js (new) — 21.7 kB 🔴 +21.7 kB 🔴 +6.56 kB 🔴 +5.73 kB
assets/CloudLayoutView-CJX5F48I.js (removed) 21.7 kB — 🟢 -21.7 kB 🟢 -6.56 kB 🟢 -5.73 kB
assets/useCloudAuthPage-DtQF4oi8.js (new) — 11 kB 🔴 +11 kB 🔴 +4.18 kB 🔴 +3.53 kB
assets/useCloudAuthPage-thHNRn-5.js (removed) 11 kB — 🟢 -11 kB 🟢 -4.18 kB 🟢 -3.53 kB
assets/CloudLoginView-B54ZwPW6.js (removed) 8.74 kB — 🟢 -8.74 kB 🟢 -2.56 kB 🟢 -2.26 kB
assets/CloudLoginView-C53hVpvL.js (new) — 8.74 kB 🔴 +8.74 kB 🔴 +2.56 kB 🔴 +2.25 kB
assets/UserCheckView-CtcDFCMC.js (removed) 8.51 kB — 🟢 -8.51 kB 🟢 -2.13 kB 🟢 -1.86 kB
assets/UserCheckView-QDIjlJ0F.js (new) — 8.51 kB 🔴 +8.51 kB 🔴 +2.13 kB 🔴 +1.85 kB
assets/CloudSignupView-BO0-X-Dk.js (new) — 6.96 kB 🔴 +6.96 kB 🔴 +2.28 kB 🔴 +2 kB
assets/CloudSignupView-BR3G68GI.js (removed) 6.96 kB — 🟢 -6.96 kB 🟢 -2.28 kB 🟢 -2 kB
assets/WidgetTextPreview-CGnP3mZk.js (removed) 6.06 kB — 🟢 -6.06 kB 🟢 -2.12 kB 🟢 -1.89 kB
assets/WidgetTextPreview-Dqw-VmzN.js (new) — 6.06 kB 🔴 +6.06 kB 🔴 +2.12 kB 🔴 +1.89 kB
assets/CloudSubscriptionRedirectView-B90fDGoW.js (removed) 5.69 kB — 🟢 -5.69 kB 🟢 -1.94 kB 🟢 -1.7 kB
assets/CloudSubscriptionRedirectView-DvIH8M6f.js (new) — 5.69 kB 🔴 +5.69 kB 🔴 +1.93 kB 🔴 +1.7 kB
assets/UserSelectView-B4u46jJ9.js (removed) 5.63 kB — 🟢 -5.63 kB 🟢 -2 kB 🟢 -1.75 kB
assets/UserSelectView-DfxanD8G.js (new) — 5.63 kB 🔴 +5.63 kB 🔴 +2 kB 🔴 +1.75 kB
assets/CloudForgotPasswordView-Bm3D8T_9.js (removed) 5 kB — 🟢 -5 kB 🟢 -1.72 kB 🟢 -1.5 kB
assets/CloudForgotPasswordView-ByHYd7T3.js (new) — 5 kB 🔴 +5 kB 🔴 +1.72 kB 🔴 +1.5 kB
assets/CloudAuthTimeoutView-DrEh7Iz1.js (removed) 4.43 kB — 🟢 -4.43 kB 🟢 -1.54 kB 🟢 -1.33 kB
assets/CloudAuthTimeoutView-YGqXBjOY.js (new) — 4.43 kB 🔴 +4.43 kB 🔴 +1.54 kB 🔴 +1.34 kB
assets/WidgetResolutionPreview-Ceug6OS1.js (removed) 3.78 kB — 🟢 -3.78 kB 🟢 -1.49 kB 🟢 -1.33 kB
assets/WidgetResolutionPreview-I0AQBMMI.js (new) — 3.78 kB 🔴 +3.78 kB 🔴 +1.49 kB 🔴 +1.33 kB
assets/OAuthLayoutView-CosnorsI.js (new) — 1.32 kB 🔴 +1.32 kB 🔴 +706 B 🔴 +596 B
assets/OAuthLayoutView-DoT6lMG9.js (removed) 1.32 kB — 🟢 -1.32 kB 🟢 -706 B 🟢 -596 B
assets/WidgetTextPreview-BAsxQiBQ.js (removed) 131 B — 🟢 -131 B 🟢 -100 B 🟢 -89 B
assets/WidgetTextPreview-CRNDO-BS.js (new) — 131 B 🔴 +131 B 🔴 +100 B 🔴 +91 B

Status: 14 added / 14 removed / 4 unchanged

Panels & Settings — 622 kB (baseline 622 kB) • ⚪ 0 B

Configuration panels, inspectors, and settings screens

File Before After Δ Raw Δ Gzip Δ Brotli
assets/KeybindingPanel-DAvTUo6l.js (removed) 49.4 kB — 🟢 -49.4 kB 🟢 -9.95 kB 🟢 -8.8 kB
assets/KeybindingPanel-DtXxsx-M.js (new) — 49.4 kB 🔴 +49.4 kB 🔴 +9.95 kB 🔴 +8.8 kB
assets/CreditsPanel-BLpZj3yG.js (new) — 38 kB 🔴 +38 kB 🔴 +9.12 kB 🔴 +7.99 kB
assets/CreditsPanel-Cv6AQrTZ.js (removed) 38 kB — 🟢 -38 kB 🟢 -9.12 kB 🟢 -8 kB
assets/SecretsPanel-CigQVCnC.js (removed) 33.8 kB — 🟢 -33.8 kB 🟢 -7.9 kB 🟢 -6.94 kB
assets/SecretsPanel-CnEJyUs7.js (new) — 33.8 kB 🔴 +33.8 kB 🔴 +7.9 kB 🔴 +6.92 kB
assets/AboutPanel-DGhYWf0f.js (removed) 11.4 kB — 🟢 -11.4 kB 🟢 -3.14 kB 🟢 -2.82 kB
assets/AboutPanel-NVec8U_9.js (new) — 11.4 kB 🔴 +11.4 kB 🔴 +3.14 kB 🔴 +2.82 kB
assets/ExtensionPanel-BF_PhOUG.js (new) — 9.19 kB 🔴 +9.19 kB 🔴 +2.52 kB 🔴 +2.23 kB
assets/ExtensionPanel-CKJgL2pY.js (removed) 9.19 kB — 🟢 -9.19 kB 🟢 -2.52 kB 🟢 -2.23 kB
assets/ServerConfigPanel-CXUAXUrf.js (new) — 6.15 kB 🔴 +6.15 kB 🔴 +1.96 kB 🔴 +1.74 kB
assets/ServerConfigPanel-SbMvtGFK.js (removed) 6.15 kB — 🟢 -6.15 kB 🟢 -1.96 kB 🟢 -1.74 kB
assets/UserPanel-B0aOGgmi.js (new) — 5.76 kB 🔴 +5.76 kB 🔴 +1.8 kB 🔴 +1.55 kB
assets/UserPanel-CytifQ3a.js (removed) 5.76 kB — 🟢 -5.76 kB 🟢 -1.8 kB 🟢 -1.55 kB
assets/refreshRemoteConfig-CH0LdJzd.js (new) — 4.54 kB 🔴 +4.54 kB 🔴 +1.61 kB 🔴 +1.43 kB
assets/refreshRemoteConfig-tnxwuq8y.js (removed) 4.54 kB — 🟢 -4.54 kB 🟢 -1.61 kB 🟢 -1.43 kB
assets/CreditsPanel-DqvL50mr.js (new) — 116 B 🔴 +116 B 🔴 +95 B 🔴 +91 B
assets/CreditsPanel-DVSGfKh2.js (removed) 116 B — 🟢 -116 B 🟢 -95 B 🟢 -92 B
assets/refreshRemoteConfig-360B3KK4.js (removed) 110 B — 🟢 -110 B 🟢 -89 B 🟢 -82 B
assets/refreshRemoteConfig-DxIHwwgG.js (new) — 110 B 🔴 +110 B 🔴 +89 B 🔴 +86 B

Status: 10 added / 10 removed / 17 unchanged

User & Accounts — 32.3 kB (baseline 32.3 kB) • ⚪ 0 B

Authentication, profile, and account management bundles

File Before After Δ Raw Δ Gzip Δ Brotli
assets/SignUpForm-7eWTI8Ts.js (removed) 15.7 kB — 🟢 -15.7 kB 🟢 -5.1 kB 🟢 -4.44 kB
assets/SignUpForm-Be6lYEfG.js (new) — 15.7 kB 🔴 +15.7 kB 🔴 +5.1 kB 🔴 +4.44 kB
assets/auth-BIEKd6Y_.js (removed) 3.48 kB — 🟢 -3.48 kB 🟢 -1.21 kB 🟢 -1.01 kB
assets/auth-DVuOD5p-.js (new) — 3.48 kB 🔴 +3.48 kB 🔴 +1.2 kB 🔴 +1.01 kB
assets/UpdatePasswordContent-25CGZeRO.js (new) — 1.85 kB 🔴 +1.85 kB 🔴 +843 B 🔴 +736 B
assets/UpdatePasswordContent-CqcitqR3.js (removed) 1.85 kB — 🟢 -1.85 kB 🟢 -844 B 🟢 -735 B
assets/authStore-CkicuJ93.js (removed) 126 B — 🟢 -126 B 🟢 -106 B 🟢 -101 B
assets/authStore-TH5rIhhE.js (new) — 126 B 🔴 +126 B 🔴 +106 B 🔴 +104 B
assets/workspaceAuthStore-TjeoCIm-.js (new) — 108 B 🔴 +108 B 🔴 +99 B 🔴 +104 B
assets/workspaceAuthStore-Y5uUU5JN.js (removed) 108 B — 🟢 -108 B 🟢 -99 B 🟢 -100 B
assets/auth-D-oXQ0RU.js (new) — 105 B 🔴 +105 B 🔴 +96 B 🔴 +87 B
assets/auth-t-5ditJk.js (removed) 105 B — 🟢 -105 B 🟢 -96 B 🟢 -76 B

Status: 6 added / 6 removed / 5 unchanged

Editors & Dialogs — 126 kB (baseline 126 kB) • ⚪ 0 B

Modals, dialogs, drawers, and in-app editors

File Before After Δ Raw Δ Gzip Δ Brotli
assets/ComfyHubPublishDialog-C9dZbybl.js (new) — 90.8 kB 🔴 +90.8 kB 🔴 +19.3 kB 🔴 +16.6 kB
assets/ComfyHubPublishDialog-DZJM9zLp.js (removed) 90.8 kB — 🟢 -90.8 kB 🟢 -19.3 kB 🟢 -16.6 kB
assets/useShareDialog-BcQIBHqM.js (new) — 23.9 kB 🔴 +23.9 kB 🔴 +5.74 kB 🔴 +5.08 kB
assets/useShareDialog-Bq61HI2N.js (removed) 23.9 kB — 🟢 -23.9 kB 🟢 -5.74 kB 🟢 -5.08 kB
assets/feedbackDialog-CTF72gOQ.js (removed) 4.45 kB — 🟢 -4.45 kB 🟢 -1.87 kB 🟢 -1.59 kB
assets/feedbackDialog-jIhktNn2.js (new) — 4.45 kB 🔴 +4.45 kB 🔴 +1.87 kB 🔴 +1.59 kB
assets/useRangeEditor-CvzK8zOg.js (new) — 3.29 kB 🔴 +3.29 kB 🔴 +1.14 kB 🔴 +1.04 kB
assets/useRangeEditor-DDPauBiE.js (removed) 3.29 kB — 🟢 -3.29 kB 🟢 -1.14 kB 🟢 -1.04 kB
assets/useLayerEditor-DEK_Ar_j.js (removed) 1.19 kB — 🟢 -1.19 kB 🟢 -565 B 🟢 -494 B
assets/useLayerEditor-jzgOMpIn.js (new) — 1.19 kB 🔴 +1.19 kB 🔴 +563 B 🔴 +486 B
assets/ComfyHubPublishDialog-BkhHx_ZG.js (new) — 143 B 🔴 +143 B 🔴 +105 B 🔴 +88 B
assets/ComfyHubPublishDialog-qfnKpq-x.js (removed) 143 B — 🟢 -143 B 🟢 -105 B 🟢 -88 B
assets/useSubscriptionDialog-D65fGKxZ.js (removed) 107 B — 🟢 -107 B 🟢 -101 B 🟢 -89 B
assets/useSubscriptionDialog-ROg2jc6T.js (new) — 107 B 🔴 +107 B 🔴 +101 B 🔴 +96 B

Status: 7 added / 7 removed / 1 unchanged

UI Components — 123 kB (baseline 123 kB) • ⚪ 0 B

Reusable component library chunks

File Before After Δ Raw Δ Gzip Δ Brotli
assets/useMoreOptionsMenu-DoSYrNuK.js (removed) 47.8 kB — 🟢 -47.8 kB 🟢 -11.5 kB 🟢 -9.97 kB
assets/useMoreOptionsMenu-Gp1gcT2Q.js (new) — 47.8 kB 🔴 +47.8 kB 🔴 +11.5 kB 🔴 +9.97 kB
assets/ComfyQueueButton-DbMK0lAe.js (new) — 14.6 kB 🔴 +14.6 kB 🔴 +3.98 kB 🔴 +3.53 kB
assets/ComfyQueueButton-kun29zBJ.js (removed) 14.6 kB — 🟢 -14.6 kB 🟢 -3.98 kB 🟢 -3.53 kB
assets/useTerminalTabs-CEr2cJaF.js (removed) 11.8 kB — 🟢 -11.8 kB 🟢 -3.71 kB 🟢 -3.28 kB
assets/useTerminalTabs-jhAf-lbN.js (new) — 11.8 kB 🔴 +11.8 kB 🔴 +3.71 kB 🔴 +3.29 kB
assets/InviteMembersForm-BJJ0i88P.js (new) — 10.2 kB 🔴 +10.2 kB 🔴 +3.1 kB 🔴 +2.76 kB
assets/InviteMembersForm-UrLRk1-8.js (removed) 10.2 kB — 🟢 -10.2 kB 🟢 -3.1 kB 🟢 -2.77 kB
assets/SubscribeButton-BaelFItP.js (removed) 2.15 kB — 🟢 -2.15 kB 🟢 -970 B 🟢 -848 B
assets/SubscribeButton-DpZr0Wmc.js (new) — 2.15 kB 🔴 +2.15 kB 🔴 +971 B 🔴 +847 B
assets/cloudFeedbackTopbarButton-BPi9rX_w.js (removed) 701 B — 🟢 -701 B 🟢 -421 B 🟢 -384 B
assets/cloudFeedbackTopbarButton-NKOJk5q_.js (new) — 701 B 🔴 +701 B 🔴 +421 B 🔴 +384 B
assets/ComfyQueueButton-DvRYg7dc.js (new) — 128 B 🔴 +128 B 🔴 +99 B 🔴 +96 B
assets/ComfyQueueButton-DyDFEnC3.js (removed) 128 B — 🟢 -128 B 🟢 -99 B 🟢 -89 B

Status: 7 added / 7 removed / 9 unchanged

Data & Services — 3.8 MB (baseline 3.8 MB) • 🟢 -192 B

Stores, services, APIs, and repositories

File Before After Δ Raw Δ Gzip Δ Brotli
assets/settingStore-Djz7qt9b.js (removed) 3.47 MB — 🟢 -3.47 MB 🟢 -823 kB 🟢 -621 kB
assets/settingStore-CXHKRylX.js (new) — 3.47 MB 🔴 +3.47 MB 🔴 +823 kB 🔴 +621 kB
assets/api-Bbc_Sn8J.js (new) — 180 kB 🔴 +180 kB 🔴 +41.4 kB 🔴 +34.8 kB
assets/api-CJb01E9D.js (removed) 180 kB — 🟢 -180 kB 🟢 -41.4 kB 🟢 -34.9 kB
assets/load3dService-Bkf8Rmyb.js (new) — 86.9 kB 🔴 +86.9 kB 🔴 +20.3 kB 🔴 +17.6 kB
assets/load3dService-qk9pwrMi.js (removed) 86.9 kB — 🟢 -86.9 kB 🟢 -20.3 kB 🟢 -17.6 kB
assets/releaseStore-DtK-YCTQ.js (new) — 23.8 kB 🔴 +23.8 kB 🔴 +7.06 kB 🔴 +6.21 kB
assets/releaseStore-g_1Fym5w.js (removed) 23.8 kB — 🟢 -23.8 kB 🟢 -7.07 kB 🟢 -6.21 kB
assets/workflowShareService-Cvx5_FzQ.js (removed) 17 kB — 🟢 -17 kB 🟢 -5.06 kB 🟢 -4.46 kB
assets/workflowShareService-DrlCm568.js (new) — 17 kB 🔴 +17 kB 🔴 +5.06 kB 🔴 +4.46 kB
assets/keybindingService-B_JzWsg4.js (new) — 6.95 kB 🔴 +6.95 kB 🔴 +1.74 kB 🔴 +1.51 kB
assets/keybindingService-BZV-HVSG.js (removed) 6.95 kB — 🟢 -6.95 kB 🟢 -1.74 kB 🟢 -1.51 kB
assets/userStore-BTyftmNV.js (removed) 2.38 kB — 🟢 -2.38 kB 🟢 -900 B 🟢 -794 B
assets/userStore-DNdJ_H4Y.js (new) — 2.38 kB 🔴 +2.38 kB 🔴 +898 B 🔴 +796 B
assets/audioService-B-JNsSId.js (removed) 1.71 kB — 🟢 -1.71 kB 🟢 -830 B 🟢 -726 B
assets/audioService-CCw-MWfL.js (new) — 1.71 kB 🔴 +1.71 kB 🔴 +829 B 🔴 +725 B
assets/dialogService-Bf5P6c45.js (removed) 97 B — 🟢 -97 B 🟢 -96 B 🟢 -83 B
assets/dialogService-DAf5cbhq.js (new) — 97 B 🔴 +97 B 🔴 +96 B 🔴 +81 B
assets/releaseStore-6G_6KFXI.js (removed) 95 B — 🟢 -95 B 🟢 -86 B 🟢 -91 B
assets/releaseStore-C4Takzrq.js (new) — 95 B 🔴 +95 B 🔴 +86 B 🔴 +85 B
assets/settingStore-BIDoU-qS.js (removed) 95 B — 🟢 -95 B 🟢 -86 B 🟢 -80 B
assets/settingStore-Bpi5P1jA.js (new) — 95 B 🔴 +95 B 🔴 +86 B 🔴 +85 B
assets/assetsStore-D_3sJF37.js (removed) 94 B — 🟢 -94 B 🟢 -92 B 🟢 -87 B
assets/assetsStore-D7CEVAd5.js (new) — 94 B 🔴 +94 B 🔴 +92 B 🔴 +87 B
assets/api-B6tdztWY.js (new) — 62 B 🔴 +62 B 🔴 +74 B 🔴 +66 B
assets/api-rL-0uQDR.js (removed) 62 B — 🟢 -62 B 🟢 -74 B 🟢 -66 B

Status: 13 added / 13 removed / 3 unchanged

Utilities & Hooks — 561 kB (baseline 561 kB) • ⚪ 0 B

Helpers, composables, and utility bundles

File Before After Δ Raw Δ Gzip Δ Brotli
assets/useConflictDetection-B05vLPAO.js (new) — 235 kB 🔴 +235 kB 🔴 +53 kB 🔴 +43.1 kB
assets/useConflictDetection-tCOXSgAo.js (removed) 235 kB — 🟢 -235 kB 🟢 -53 kB 🟢 -43.2 kB
assets/useLayerEditorSession-pUUSFhkf.js (new) — 159 kB 🔴 +159 kB 🔴 +41 kB 🔴 +34.5 kB
assets/useLayerEditorSession-V7vgUids.js (removed) 159 kB — 🟢 -159 kB 🟢 -41 kB 🟢 -34.5 kB
assets/useLoad3d-CPFvb8xE.js (new) — 26.3 kB 🔴 +26.3 kB 🔴 +5.95 kB 🔴 +5.26 kB
assets/useLoad3d-DvcgTdg8.js (removed) 26.3 kB — 🟢 -26.3 kB 🟢 -5.95 kB 🟢 -5.26 kB
assets/useLoad3dViewer-Dg7dc5Oa.js (new) — 21.9 kB 🔴 +21.9 kB 🔴 +5.25 kB 🔴 +4.58 kB
assets/useLoad3dViewer-ypGf0y6P.js (removed) 21.9 kB — 🟢 -21.9 kB 🟢 -5.25 kB 🟢 -4.59 kB
assets/useImageCrop-BpzgluDo.js (new) — 15.3 kB 🔴 +15.3 kB 🔴 +3.53 kB 🔴 +3.08 kB
assets/useImageCrop-BVmarCAI.js (removed) 15.3 kB — 🟢 -15.3 kB 🟢 -3.54 kB 🟢 -3.1 kB
assets/useDowngradeToPersonal-BtL1nlPF.js (new) — 11 kB 🔴 +11 kB 🔴 +2.78 kB 🔴 +2.39 kB
assets/useDowngradeToPersonal-CzgEDNJ3.js (removed) 11 kB — 🟢 -11 kB 🟢 -2.78 kB 🟢 -2.39 kB
assets/useFeatureFlags-dbWpbG1-.js (removed) 9.35 kB — 🟢 -9.35 kB 🟢 -2.63 kB 🟢 -2.24 kB
assets/useFeatureFlags-DcP_MFTp.js (new) — 9.35 kB 🔴 +9.35 kB 🔴 +2.63 kB 🔴 +2.24 kB
assets/useExternalLink-B7hx9tTC.js (removed) 7.57 kB — 🟢 -7.57 kB 🟢 -2.55 kB 🟢 -2.18 kB
assets/useExternalLink-Bszfa--T.js (new) — 7.57 kB 🔴 +7.57 kB 🔴 +2.54 kB 🔴 +2.17 kB
assets/usePricingTableUrlLoader-B3XiyvxB.js (new) — 4.81 kB 🔴 +4.81 kB 🔴 +1.66 kB 🔴 +1.41 kB
assets/usePricingTableUrlLoader-Bndk637c.js (removed) 4.81 kB — 🟢 -4.81 kB 🟢 -1.66 kB 🟢 -1.41 kB
assets/useCompositorLayers-CeOGs3zV.js (removed) 2.93 kB — 🟢 -2.93 kB 🟢 -860 B 🟢 -773 B
assets/useCompositorLayers-CuKtcKqZ.js (new) — 2.93 kB 🔴 +2.93 kB 🔴 +860 B 🔴 +776 B
assets/useScheduledPlanChange-Bvxr2Mfe.js (removed) 2.4 kB — 🟢 -2.4 kB 🟢 -963 B 🟢 -837 B
assets/useScheduledPlanChange-DF18WLpV.js (new) — 2.4 kB 🔴 +2.4 kB 🔴 +963 B 🔴 +839 B
assets/useUpstreamValue-C5a_kgmi.js (removed) 1.97 kB — 🟢 -1.97 kB 🟢 -752 B 🟢 -663 B
assets/useUpstreamValue-WCTUUexB.js (new) — 1.97 kB 🔴 +1.97 kB 🔴 +752 B 🔴 +664 B
assets/useWorkspaceTierLabel-BXaDW6up.js (removed) 1.97 kB — 🟢 -1.97 kB 🟢 -844 B 🟢 -712 B
assets/useWorkspaceTierLabel-BzvrLwGn.js (new) — 1.97 kB 🔴 +1.97 kB 🔴 +844 B 🔴 +712 B
assets/useSessionCookie-BnXqEjaW.js (removed) 688 B — 🟢 -688 B 🟢 -354 B 🟢 -308 B
assets/useSessionCookie-hnsZlD9U.js (new) — 688 B 🔴 +688 B 🔴 +356 B 🔴 +307 B
assets/useLoad3d-CEOKs3qn.js (removed) 311 B — 🟢 -311 B 🟢 -163 B 🟢 -146 B
assets/useLoad3d-CKALG5GR.js (new) — 311 B 🔴 +311 B 🔴 +164 B 🔴 +149 B
assets/useSessionCookie-B_ZmRySg.js (removed) 101 B — 🟢 -101 B 🟢 -86 B 🟢 -80 B
assets/useSessionCookie-BeW4XUMs.js (new) — 101 B 🔴 +101 B 🔴 +86 B 🔴 +77 B
assets/useFeatureFlags-CkZrjBpc.js (removed) 98 B — 🟢 -98 B 🟢 -85 B 🟢 -82 B
assets/useFeatureFlags-DGZ9l39Y.js (new) — 98 B 🔴 +98 B 🔴 +85 B 🔴 +83 B
assets/useLoad3dViewer-Ds1wvfCq.js (new) — 98 B 🔴 +98 B 🔴 +85 B 🔴 +85 B
assets/useLoad3dViewer-Dwf03ZHA.js (removed) 98 B — 🟢 -98 B 🟢 -85 B 🟢 -86 B
assets/useCurrentUser-CawHWSmJ.js (new) — 93 B 🔴 +93 B 🔴 +94 B 🔴 +75 B
assets/useCurrentUser-DYQ2FdeW.js (removed) 93 B — 🟢 -93 B 🟢 -94 B 🟢 -84 B

Status: 19 added / 19 removed / 18 unchanged

Vendor & Third-Party — 18.2 MB (baseline 18.2 MB) • ⚪ 0 B

External libraries and shared vendor chunks

Status: 18 unchanged

Other — 17.5 MB (baseline 17.5 MB) • ⚪ 0 B

Bundles that do not match a named category

File Before After Δ Raw Δ Gzip Δ Brotli
assets/core-CByf-fZ2.js (removed) 119 kB — 🟢 -119 kB 🟢 -30.9 kB 🟢 -26.1 kB
assets/core-Dtgzjqpi.js (new) — 119 kB 🔴 +119 kB 🔴 +30.9 kB 🔴 +26.1 kB
assets/WorkspaceSettingsPanelContent-BDDgOWZb.js (removed) 110 kB — 🟢 -110 kB 🟢 -21.7 kB 🟢 -18.1 kB
assets/WorkspaceSettingsPanelContent-sURprnAx.js (new) — 110 kB 🔴 +110 kB 🔴 +21.7 kB 🔴 +18.2 kB
assets/SubscriptionTransitionPreviewWorkspace-CXE1Ek76.js (new) — 103 kB 🔴 +103 kB 🔴 +20 kB 🔴 +17 kB
assets/SubscriptionTransitionPreviewWorkspace-DeHshQ9V.js (removed) 103 kB — 🟢 -103 kB 🟢 -20 kB 🟢 -17 kB
assets/WidgetSelect-Cb1gwNua.js (removed) 88.6 kB — 🟢 -88.6 kB 🟢 -20.1 kB 🟢 -17.1 kB
assets/WidgetSelect-CLvvfpi_.js (new) — 88.6 kB 🔴 +88.6 kB 🔴 +20.1 kB 🔴 +17.1 kB
assets/Load3D-C96yS5Z6.js (new) — 82.4 kB 🔴 +82.4 kB 🔴 +13.6 kB 🔴 +11.4 kB
assets/Load3D-DUbC6NRk.js (removed) 82.4 kB — 🟢 -82.4 kB 🟢 -13.6 kB 🟢 -11.4 kB
assets/WidgetVideoEdit-Ca2PjUF2.js (new) — 73.2 kB 🔴 +73.2 kB 🔴 +17.4 kB 🔴 +15.2 kB
assets/WidgetVideoEdit-hsrVJw65.js (removed) 73.2 kB — 🟢 -73.2 kB 🟢 -17.4 kB 🟢 -15.2 kB
assets/CameraInfo-De77YIge.js (new) — 67 kB 🔴 +67 kB 🔴 +14.5 kB 🔴 +12.7 kB
assets/CameraInfo-DxmI-5qp.js (removed) 67 kB — 🟢 -67 kB 🟢 -14.5 kB 🟢 -12.7 kB
assets/Preview3d-BuMY15st.js (new) — 52.6 kB 🔴 +52.6 kB 🔴 +8.6 kB 🔴 +7.51 kB
assets/Preview3d-DK92kewA.js (removed) 52.6 kB — 🟢 -52.6 kB 🟢 -8.6 kB 🟢 -7.51 kB
assets/SubscriptionRequiredDialogContentUnified-BdKkHNwb.js (removed) 52.4 kB — 🟢 -52.4 kB 🟢 -11 kB 🟢 -9.63 kB
assets/SubscriptionRequiredDialogContentUnified-DkZOjAg2.js (new) — 52.4 kB 🔴 +52.4 kB 🔴 +11 kB 🔴 +9.63 kB
assets/Viewport3d-DmKBR4gI.js (new) — 48 kB 🔴 +48 kB 🔴 +10.2 kB 🔴 +9.01 kB
assets/Viewport3d-ehUZkGny.js (removed) 48 kB — 🟢 -48 kB 🟢 -10.2 kB 🟢 -9.03 kB
assets/LayerEditorContent-DiyjuEf_.js (removed) 45.4 kB — 🟢 -45.4 kB 🟢 -10.6 kB 🟢 -9.26 kB
assets/LayerEditorContent-DV0vIs7W.js (new) — 45.4 kB 🔴 +45.4 kB 🔴 +10.6 kB 🔴 +9.27 kB
assets/main-C2Oy_mCL.js (new) — 44 kB 🔴 +44 kB 🔴 +13.2 kB 🔴 +11.4 kB
assets/main-D2YgMC-F.js (removed) 44 kB — 🟢 -44 kB 🟢 -13.2 kB 🟢 -11.4 kB
assets/WidgetBoundingBoxes-Byo16whe.js (removed) 33.8 kB — 🟢 -33.8 kB 🟢 -9.18 kB 🟢 -8.13 kB
assets/WidgetBoundingBoxes-CzNJYyXf.js (new) — 33.8 kB 🔴 +33.8 kB 🔴 +9.17 kB 🔴 +8.12 kB
assets/WidgetPainter-DcM5759-.js (new) — 32.1 kB 🔴 +32.1 kB 🔴 +7.89 kB 🔴 +6.98 kB
assets/WidgetPainter-DRCGA0xb.js (removed) 32.1 kB — 🟢 -32.1 kB 🟢 -7.89 kB 🟢 -6.98 kB
assets/Load3dViewerContent-Bfe0yoox.js (removed) 30.6 kB — 🟢 -30.6 kB 🟢 -6.21 kB 🟢 -5.37 kB
assets/Load3dViewerContent-CyjbPUyF.js (new) — 30.6 kB 🔴 +30.6 kB 🔴 +6.21 kB 🔴 +5.37 kB
assets/SubscriptionRequiredDialogContent-BTD3rmwc.js (removed) 27.1 kB — 🟢 -27.1 kB 🟢 -6.4 kB 🟢 -5.63 kB
assets/SubscriptionRequiredDialogContent-Dgtwq4EA.js (new) — 27.1 kB 🔴 +27.1 kB 🔴 +6.4 kB 🔴 +5.64 kB
assets/SubscriptionRequiredDialogContentWorkspace-C9qPMbka.js (removed) 26.5 kB — 🟢 -26.5 kB 🟢 -6.08 kB 🟢 -5.36 kB
assets/SubscriptionRequiredDialogContentWorkspace-Dd59rXnw.js (new) — 26.5 kB 🔴 +26.5 kB 🔴 +6.08 kB 🔴 +5.35 kB
assets/load3d-D5bK1BPx.js (new) — 22.2 kB 🔴 +22.2 kB 🔴 +5.42 kB 🔴 +4.69 kB
assets/load3d-DP49X4sh.js (removed) 22.2 kB — 🟢 -22.2 kB 🟢 -5.42 kB 🟢 -4.69 kB
assets/SignInContent-1fzMXiz2.js (removed) 20.7 kB — 🟢 -20.7 kB 🟢 -5.23 kB 🟢 -4.57 kB
assets/SignInContent-vCHUxX9_.js (new) — 20.7 kB 🔴 +20.7 kB 🔴 +5.23 kB 🔴 +4.57 kB
assets/CurrentUserPopoverWorkspace-C-7thsfJ.js (removed) 18 kB — 🟢 -18 kB 🟢 -4.17 kB 🟢 -3.69 kB
assets/CurrentUserPopoverWorkspace-Cpb26mYs.js (new) — 18 kB 🔴 +18 kB 🔴 +4.17 kB 🔴 +3.68 kB
assets/WidgetRecordAudio-Di2B6M1H.js (removed) 16.5 kB — 🟢 -16.5 kB 🟢 -4.59 kB 🟢 -4.09 kB
assets/WidgetRecordAudio-PesJAV11.js (new) — 16.5 kB 🔴 +16.5 kB 🔴 +4.59 kB 🔴 +4.09 kB
assets/WidgetInputNumber-BT7JSYSQ.js (removed) 13.9 kB — 🟢 -13.9 kB 🟢 -3.63 kB 🟢 -3.2 kB
assets/WidgetInputNumber-D1_aRkfY.js (new) — 13.9 kB 🔴 +13.9 kB 🔴 +3.63 kB 🔴 +3.2 kB
assets/WidgetRange-Cm6pahUZ.js (new) — 13.7 kB 🔴 +13.7 kB 🔴 +3.55 kB 🔴 +3.13 kB
assets/WidgetRange-WPsrRKPE.js (removed) 13.7 kB — 🟢 -13.7 kB 🟢 -3.54 kB 🟢 -3.12 kB
assets/WaveAudioPlayer-BlDZkyK-.js (new) — 12.9 kB 🔴 +12.9 kB 🔴 +3.49 kB 🔴 +3.06 kB
assets/WaveAudioPlayer-P5Jv9-QB.js (removed) 12.9 kB — 🟢 -12.9 kB 🟢 -3.49 kB 🟢 -3.06 kB
assets/GlobalToast-DrdUAZtL.js (removed) 12.2 kB — 🟢 -12.2 kB 🟢 -4.01 kB 🟢 -3.49 kB
assets/GlobalToast-YuBxTGwc.js (new) — 12.2 kB 🔴 +12.2 kB 🔴 +4.01 kB 🔴 +3.48 kB
assets/WidgetCurve-C-8Ggduq.js (removed) 11.2 kB — 🟢 -11.2 kB 🟢 -3.48 kB 🟢 -3.16 kB
assets/WidgetCurve-DfnJvfJz.js (new) — 11.2 kB 🔴 +11.2 kB 🔴 +3.48 kB 🔴 +3.16 kB
assets/TeamWorkspacesDialogContent-Bl7-nt_O.js (new) — 10.4 kB 🔴 +10.4 kB 🔴 +2.99 kB 🔴 +2.65 kB
assets/TeamWorkspacesDialogContent-C87v1a7I.js (removed) 10.4 kB — 🟢 -10.4 kB 🟢 -2.99 kB 🟢 -2.65 kB
assets/onboardingCloudRoutes-BUl55WRS.js (removed) 9.76 kB — 🟢 -9.76 kB 🟢 -2.87 kB 🟢 -2.45 kB
assets/onboardingCloudRoutes-Dc4HZvXp.js (new) — 9.76 kB 🔴 +9.76 kB 🔴 +2.87 kB 🔴 +2.46 kB
assets/Load3DConfiguration-DobjJhcw.js (removed) 8.88 kB — 🟢 -8.88 kB 🟢 -2.59 kB 🟢 -2.29 kB
assets/Load3DConfiguration-HCyB8JAM.js (new) — 8.88 kB 🔴 +8.88 kB 🔴 +2.59 kB 🔴 +2.29 kB
assets/nodeTemplates-Cn9aHXp5.js (new) — 8.64 kB 🔴 +8.64 kB 🔴 +2.97 kB 🔴 +2.62 kB
assets/nodeTemplates-DHXtixLH.js (removed) 8.64 kB — 🟢 -8.64 kB 🟢 -2.97 kB 🟢 -2.61 kB
assets/WidgetImageCrop-B9A_PKMu.js (removed) 8.49 kB — 🟢 -8.49 kB 🟢 -2.65 kB 🟢 -2.34 kB
assets/WidgetImageCrop-DLcgMQch.js (new) — 8.49 kB 🔴 +8.49 kB 🔴 +2.66 kB 🔴 +2.34 kB
assets/SetMemberCreditLimitDialogContent-BTnqmIX2.js (new) — 8.47 kB 🔴 +8.47 kB 🔴 +2.34 kB 🔴 +2.05 kB
assets/SetMemberCreditLimitDialogContent-DZQDtsNr.js (removed) 8.47 kB — 🟢 -8.47 kB 🟢 -2.34 kB 🟢 -2.05 kB
assets/CloudRunButtonWrapper-1tyN4ihE.js (new) — 8.15 kB 🔴 +8.15 kB 🔴 +2.45 kB 🔴 +2.15 kB
assets/CloudRunButtonWrapper-Bazo4JY1.js (removed) 8.15 kB — 🟢 -8.15 kB 🟢 -2.45 kB 🟢 -2.15 kB
assets/WorkspaceSwitcherPopover-4zPLI7eA.js (new) — 8.08 kB 🔴 +8.08 kB 🔴 +2.39 kB 🔴 +2.13 kB
assets/WorkspaceSwitcherPopover-BtXBau6o.js (removed) 8.08 kB — 🟢 -8.08 kB 🟢 -2.39 kB 🟢 -2.13 kB
assets/NightlySurveyController-CopGdyLr.js (new) — 7.5 kB 🔴 +7.5 kB 🔴 +2.56 kB 🔴 +2.26 kB
assets/NightlySurveyController-DLiiF3Yt.js (removed) 7.5 kB — 🟢 -7.5 kB 🟢 -2.56 kB 🟢 -2.26 kB
assets/LayoutDefault-Ba0BruLN.js (new) — 7.41 kB 🔴 +7.41 kB 🔴 +2.43 kB 🔴 +2.14 kB
assets/LayoutDefault-Cfse37Rq.js (removed) 7.41 kB — 🟢 -7.41 kB 🟢 -2.43 kB 🟢 -2.14 kB
assets/missingModelMetadata-B9xpQtVM.js (new) — 6.52 kB 🔴 +6.52 kB 🔴 +2.22 kB 🔴 +1.95 kB
assets/missingModelMetadata-Cy1Wp8Hk.js (removed) 6.52 kB — 🟢 -6.52 kB 🟢 -2.22 kB 🟢 -1.94 kB
assets/WidgetWithControl-CI9vF359.js (removed) 6.46 kB — 🟢 -6.46 kB 🟢 -2.64 kB 🟢 -2.31 kB
assets/WidgetWithControl-DKEKu-87.js (new) — 6.46 kB 🔴 +6.46 kB 🔴 +2.64 kB 🔴 +2.33 kB
assets/CancelSubscriptionDialogContent-CNkd3rud.js (removed) 6.05 kB — 🟢 -6.05 kB 🟢 -2.01 kB 🟢 -1.76 kB
assets/CancelSubscriptionDialogContent-dcBec7L1.js (new) — 6.05 kB 🔴 +6.05 kB 🔴 +2.01 kB 🔴 +1.76 kB
assets/load3dPreviewExtensions-BLAq3Oqd.js (new) — 5.88 kB 🔴 +5.88 kB 🔴 +1.82 kB 🔴 +1.6 kB
assets/load3dPreviewExtensions-Dx4LKbUl.js (removed) 5.88 kB — 🟢 -5.88 kB 🟢 -1.81 kB 🟢 -1.6 kB
assets/ApiNodesSignInContent-DPydvoav.js (new) — 5.68 kB 🔴 +5.68 kB 🔴 +2.02 kB 🔴 +1.79 kB
assets/ApiNodesSignInContent-uejl2uUk.js (removed) 5.68 kB — 🟢 -5.68 kB 🟢 -2.02 kB 🟢 -1.8 kB
assets/launchCancellationFlow-BTMjnsjo.js (new) — 5.18 kB 🔴 +5.18 kB 🔴 +1.78 kB 🔴 +1.58 kB
assets/launchCancellationFlow-C6RJy0dF.js (removed) 5.18 kB — 🟢 -5.18 kB 🟢 -1.78 kB 🟢 -1.55 kB
assets/CreateWorkspaceDialogContent-CSPqfI3g.js (new) — 5.12 kB 🔴 +5.12 kB 🔴 +1.8 kB 🔴 +1.55 kB
assets/CreateWorkspaceDialogContent-DhkdCDLi.js (removed) 5.12 kB — 🟢 -5.12 kB 🟢 -1.8 kB 🟢 -1.55 kB
assets/ChangeMemberRoleDialogContent-CxkrLdUy.js (removed) 4.97 kB — 🟢 -4.97 kB 🟢 -1.64 kB 🟢 -1.43 kB
assets/ChangeMemberRoleDialogContent-Oy3Xotg5.js (new) — 4.97 kB 🔴 +4.97 kB 🔴 +1.64 kB 🔴 +1.43 kB
assets/InviteMemberDialogContent-C5uO9G_b.js (removed) 4.94 kB — 🟢 -4.94 kB 🟢 -1.64 kB 🟢 -1.42 kB
assets/InviteMemberDialogContent-CVVc1hhd.js (new) — 4.94 kB 🔴 +4.94 kB 🔴 +1.64 kB 🔴 +1.42 kB
assets/EditWorkspaceDialogContent-B3Y8DdLN.js (removed) 4.93 kB — 🟢 -4.93 kB 🟢 -1.76 kB 🟢 -1.52 kB
assets/EditWorkspaceDialogContent-DkcKEvJh.js (new) — 4.93 kB 🔴 +4.93 kB 🔴 +1.76 kB 🔴 +1.53 kB
assets/WidgetTextarea-D_PoGQHK.js (removed) 4.83 kB — 🟢 -4.83 kB 🟢 -1.88 kB 🟢 -1.65 kB
assets/WidgetTextarea-qzbtEZ65.js (new) — 4.83 kB 🔴 +4.83 kB 🔴 +1.88 kB 🔴 +1.64 kB
assets/saveMesh-_rPd2Zm0.js (new) — 4.72 kB 🔴 +4.72 kB 🔴 +1.51 kB 🔴 +1.33 kB
assets/saveMesh-BSKTbp3x.js (removed) 4.72 kB — 🟢 -4.72 kB 🟢 -1.5 kB 🟢 -1.34 kB
assets/ValueControlPopover-DKxty0uO.js (new) — 4.49 kB 🔴 +4.49 kB 🔴 +1.55 kB 🔴 +1.38 kB
assets/ValueControlPopover-TvgwerMi.js (removed) 4.49 kB — 🟢 -4.49 kB 🟢 -1.55 kB 🟢 -1.38 kB
assets/DeleteWorkspaceDialogContent-BB0HlsC7.js (removed) 3.84 kB — 🟢 -3.84 kB 🟢 -1.44 kB 🟢 -1.24 kB
assets/DeleteWorkspaceDialogContent-CgvAUMm2.js (new) — 3.84 kB 🔴 +3.84 kB 🔴 +1.44 kB 🔴 +1.24 kB
assets/RemoveMemberDialogContent-uG8w2CF-.js (new) — 3.76 kB 🔴 +3.76 kB 🔴 +1.39 kB 🔴 +1.2 kB
assets/RemoveMemberDialogContent-UrGUu58M.js (removed) 3.76 kB — 🟢 -3.76 kB 🟢 -1.39 kB 🟢 -1.2 kB
assets/RevokeInviteDialogContent-0I5VcFSJ.js (removed) 3.67 kB — 🟢 -3.67 kB 🟢 -1.39 kB 🟢 -1.21 kB
assets/RevokeInviteDialogContent-BzfXANlP.js (new) — 3.67 kB 🔴 +3.67 kB 🔴 +1.39 kB 🔴 +1.21 kB
assets/LeaveWorkspaceDialogContent-D2ReObhD.js (removed) 3.67 kB — 🟢 -3.67 kB 🟢 -1.39 kB 🟢 -1.19 kB
assets/LeaveWorkspaceDialogContent-DFG--Wug.js (new) — 3.67 kB 🔴 +3.67 kB 🔴 +1.39 kB 🔴 +1.2 kB
assets/InviteMemberUpsellDialogContent-b2JRNUu8.js (removed) 3.47 kB — 🟢 -3.47 kB 🟢 -1.24 kB 🟢 -1.07 kB
assets/InviteMemberUpsellDialogContent-DrsWi8hV.js (new) — 3.47 kB 🔴 +3.47 kB 🔴 +1.24 kB 🔴 +1.07 kB
assets/SubscribeToRun-Co-EFUTb.js (removed) 3.34 kB — 🟢 -3.34 kB 🟢 -1.42 kB 🟢 -1.22 kB
assets/SubscribeToRun-CqVWyqmT.js (new) — 3.34 kB 🔴 +3.34 kB 🔴 +1.42 kB 🔴 +1.22 kB
assets/Media3DTop-Cg395n83.js (new) — 3.21 kB 🔴 +3.21 kB 🔴 +1.27 kB 🔴 +1.1 kB
assets/Media3DTop-CNOCbcJ_.js (removed) 3.21 kB — 🟢 -3.21 kB 🟢 -1.27 kB 🟢 -1.1 kB
assets/load3dAdvanced-jd0zpVIP.js (removed) 2.82 kB — 🟢 -2.82 kB 🟢 -1.09 kB 🟢 -954 B
assets/load3dAdvanced-kXdtD7qL.js (new) — 2.82 kB 🔴 +2.82 kB 🔴 +1.1 kB 🔴 +956 B
assets/LocalRunButtonWrapper-DOJgRHog.js (removed) 2.49 kB — 🟢 -2.49 kB 🟢 -1.14 kB 🟢 -1.03 kB
assets/LocalRunButtonWrapper-wp0Qhnx3.js (new) — 2.49 kB 🔴 +2.49 kB 🔴 +1.14 kB 🔴 +1 kB
assets/MediaAudioTop-B13KjvUM.js (new) — 1.62 kB 🔴 +1.62 kB 🔴 +808 B 🔴 +670 B
assets/MediaAudioTop-BFMZfbl3.js (removed) 1.62 kB — 🟢 -1.62 kB 🟢 -809 B 🟢 -670 B
assets/paymentReturnUrl-CKeoXWbw.js (new) — 1.58 kB 🔴 +1.58 kB 🔴 +784 B 🔴 +621 B
assets/paymentReturnUrl-DgoKJOO3.js (removed) 1.58 kB — 🟢 -1.58 kB 🟢 -785 B 🟢 -623 B
assets/cameraInfo-B3tShPGX.js (removed) 1.1 kB — 🟢 -1.1 kB 🟢 -572 B 🟢 -490 B
assets/cameraInfo-C3Df9doN.js (new) — 1.1 kB 🔴 +1.1 kB 🔴 +572 B 🔴 +492 B
assets/Load3DAdvanced-BGNBiu-n.js (removed) 761 B — 🟢 -761 B 🟢 -423 B 🟢 -359 B
assets/Load3DAdvanced-ChKhyfn1.js (new) — 761 B 🔴 +761 B 🔴 +425 B 🔴 +362 B
assets/nightlyBadges-9AHHaLuZ.js (removed) 411 B — 🟢 -411 B 🟢 -272 B 🟢 -234 B
assets/nightlyBadges-SuSPfGce.js (new) — 411 B 🔴 +411 B 🔴 +273 B 🔴 +235 B
assets/Load3dViewerContent-Boxd5z7G.js (new) — 137 B 🔴 +137 B 🔴 +103 B 🔴 +92 B
assets/Load3dViewerContent-C-d6CpKH.js (removed) 137 B — 🟢 -137 B 🟢 -103 B 🟢 -89 B
assets/missingModelMetadata-BGW67gAU.js (new) — 125 B 🔴 +125 B 🔴 +103 B 🔴 +106 B
assets/missingModelMetadata-N0tgs4kA.js (removed) 125 B — 🟢 -125 B 🟢 -103 B 🟢 -106 B
assets/Load3DAdvanced-BUAc09bp.js (removed) 122 B — 🟢 -122 B 🟢 -97 B 🟢 -88 B
assets/Load3DAdvanced-C0Tktdi1.js (new) — 122 B 🔴 +122 B 🔴 +97 B 🔴 +90 B
assets/LayoutDefault-Bnk0-cfB.js (new) — 119 B 🔴 +119 B 🔴 +92 B 🔴 +89 B
assets/LayoutDefault-CiZw09NH.js (removed) 119 B — 🟢 -119 B 🟢 -92 B 🟢 -88 B
assets/WidgetLegacy-BFwIs8t-.js (removed) 117 B — 🟢 -117 B 🟢 -106 B 🟢 -92 B
assets/WidgetLegacy-D1tKYP7C.js (new) — 117 B 🔴 +117 B 🔴 +106 B 🔴 +101 B
assets/workflowDraftStoreV2-CYbkO6eg.js (removed) 112 B — 🟢 -112 B 🟢 -101 B 🟢 -108 B
assets/workflowDraftStoreV2-DAAvpLBz.js (new) — 112 B 🔴 +112 B 🔴 +101 B 🔴 +108 B
assets/CameraInfo-BoOWs1So.js (new) — 110 B 🔴 +110 B 🔴 +93 B 🔴 +90 B
assets/CameraInfo-CYHC8Par.js (removed) 110 B — 🟢 -110 B 🟢 -93 B 🟢 -91 B
assets/Load3D-CM0EZ7s2.js (removed) 98 B — 🟢 -98 B 🟢 -89 B 🟢 -84 B
assets/Load3D-Cs0kdo1z.js (new) — 98 B 🔴 +98 B 🔴 +89 B 🔴 +79 B
assets/changeTracker-CQVzIdqt.js (new) — 92 B 🔴 +92 B 🔴 +94 B 🔴 +85 B
assets/changeTracker-DnDJPBcx.js (removed) 92 B — 🟢 -92 B 🟢 -94 B 🟢 -84 B

Status: 72 added / 72 removed / 224 unchanged

⚡ Performance Report

canvas-idle: · 60.0 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 0ms TBT · 63.6 MB heap
canvas-mouse-sweep: · 60.0 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 0ms TBT · 66.3 MB heap
canvas-zoom-sweep: · 60.0 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 0ms TBT · 61.6 MB heap
dom-widget-clipping: · 60.0 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 0ms TBT · 75.7 MB heap
large-graph-idle: · 60.0 avg FPS · 59.9 P5 FPS ✅ (target: ≥52) · 0ms TBT · 79.3 MB heap
large-graph-pan: · 60.0 avg FPS · 59.5 P5 FPS ✅ (target: ≥52) · 0ms TBT · 69.5 MB heap
large-graph-zoom: · 60.0 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 0ms TBT · 71.7 MB heap
legacy-node-drag: · 60.0 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 0ms TBT · 83.2 MB heap
minimap-idle: · 60.0 avg FPS · 59.9 P5 FPS ✅ (target: ≥52) · 0ms TBT · 76.3 MB heap
subgraph-dom-widget-clipping: · 60.0 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 0ms TBT · 73.7 MB heap
subgraph-idle: · 60.0 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 0ms TBT · 70.4 MB heap
subgraph-mouse-sweep: · 60.0 avg FPS · 59.9 P5 FPS ✅ (target: ≥52) · 0ms TBT · 66.1 MB heap
subgraph-transition-enter: · 60.0 avg FPS · 59.9 P5 FPS ✅ (target: ≥52) · 132ms TBT · 77.4 MB heap
viewport-pan-sweep: · 60.0 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 2ms TBT · 77.9 MB heap
vue-large-graph-idle: · 57.1 avg FPS · 59.5 P5 FPS ✅ (target: ≥52) · 0ms TBT · 167.7 MB heap
vue-large-graph-pan: · 56.2 avg FPS · 59.5 P5 FPS ✅ (target: ≥52) · 44ms TBT · 162.5 MB heap
vue-node-resize-workload: · 58.1 avg FPS · 59.5 P5 FPS ✅ (target: ≥52) · 292ms TBT · 173.5 MB heap
vue-zoom-out-idle: · 56.3 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 0ms TBT · 163.7 MB heap
workflow-execution: · 60.0 avg FPS · 59.9 P5 FPS ✅ (target: ≥52) · 0ms TBT · 62.9 MB heap

⚠️ 3 regressions detected

Show regressions
Metric Baseline PR (median) Δ Sig
canvas-mouse-sweep: style recalc duration 22ms 38ms +73% ⚠️ z=2.1
large-graph-pan: p95 frame time 17ms 17ms +1% ⚠️ z=2.0
viewport-pan-sweep: heap used 64.3 MB 77.9 MB +21% ⚠️ z=2.1
All metrics
Metric Baseline PR (median) Δ Sig
canvas-idle: avg frame time 17ms 17ms +0% z=-0.9
canvas-idle: p95 frame time 17ms 17ms +0% z=0.1
canvas-idle: layout duration 0ms 0ms +0% —
canvas-idle: style recalc duration 7ms 8ms +14% z=0.2
canvas-idle: layout count 0 0 +0% —
canvas-idle: style recalc count 10 8 -25% z=-0.9
canvas-idle: task duration 370ms 523ms +41% z=1.0
canvas-idle: script duration 7ms 10ms +44% z=0.2
canvas-idle: TBT 0ms 0ms +0% —
canvas-idle: heap used 64.4 MB 63.6 MB -1% z=0.0
canvas-idle: DOM nodes -260 -265 +2% z=-1.0
canvas-idle: event listeners -156 -154 -1% z=-0.6
canvas-mouse-sweep: avg frame time 17ms 17ms +0% z=0.3
canvas-mouse-sweep: p95 frame time 17ms 17ms +0% z=1.0
canvas-mouse-sweep: layout duration 4ms 5ms +25% z=0.9
canvas-mouse-sweep: style recalc duration 22ms 38ms +73% ⚠️ z=2.1
canvas-mouse-sweep: layout count 14 14 +0% —
canvas-mouse-sweep: style recalc count 73 77 +5% z=1.5
canvas-mouse-sweep: task duration 683ms 971ms +42% z=1.2
canvas-mouse-sweep: script duration 122ms 167ms +37% z=0.6
canvas-mouse-sweep: TBT 0ms 0ms +0% —
canvas-mouse-sweep: heap used 57.9 MB 66.3 MB +14% z=-0.1
canvas-mouse-sweep: DOM nodes -261 -262 +0% z=0.1
canvas-mouse-sweep: event listeners -182 -172 -5% z=-1.0
canvas-zoom-sweep: avg frame time 17ms 17ms +0% z=1.2
canvas-zoom-sweep: p95 frame time 17ms 17ms +0% z=0.3
canvas-zoom-sweep: layout duration 1ms 1ms +17% z=1.5
canvas-zoom-sweep: style recalc duration 13ms 17ms +38% z=0.6
canvas-zoom-sweep: layout count 6 6 +0% —
canvas-zoom-sweep: style recalc count 31 31 +0% z=-0.4
canvas-zoom-sweep: task duration 273ms 374ms +37% z=1.0
canvas-zoom-sweep: script duration 10ms 13ms +37% z=0.5
canvas-zoom-sweep: TBT 0ms 0ms +0% —
canvas-zoom-sweep: heap used 61.7 MB 61.6 MB -0% z=0.8
canvas-zoom-sweep: DOM nodes 75 75 +0% z=-0.8
canvas-zoom-sweep: event listeners 21 19 -10% z=-0.4
dom-widget-clipping: avg frame time 17ms 17ms -0% z=-0.6
dom-widget-clipping: p95 frame time 17ms 17ms +0% z=0.3
dom-widget-clipping: layout duration 0ms 0ms +0% —
dom-widget-clipping: style recalc duration 6ms 8ms +18% z=-0.1
dom-widget-clipping: layout count 0 0 +0% —
dom-widget-clipping: style recalc count 11 10 -9% z=-1.4
dom-widget-clipping: task duration 361ms 477ms +32% z=0.9
dom-widget-clipping: script duration 131ms 170ms +30% z=0.7
dom-widget-clipping: TBT 0ms 0ms +0% —
dom-widget-clipping: heap used 76.2 MB 75.7 MB -1% z=-1.4
dom-widget-clipping: DOM nodes 18 16 -11% z=-1.4
dom-widget-clipping: event listeners 2 2 +0% z=0.9
large-graph-idle: avg frame time 17ms 17ms -0% z=-0.9
large-graph-idle: p95 frame time 17ms 17ms -1% z=-1.4
large-graph-idle: layout duration 0ms 0ms +0% —
large-graph-idle: style recalc duration 6ms 6ms +3% z=0.3
large-graph-idle: layout count 0 0 +0% —
large-graph-idle: style recalc count 8 5 -38% z=-0.8
large-graph-idle: task duration 487ms 571ms +17% z=-0.1
large-graph-idle: script duration 28ms 38ms +34% z=0.8
large-graph-idle: TBT 0ms 0ms +0% —
large-graph-idle: heap used 76.5 MB 79.3 MB +4% z=1.0
large-graph-idle: DOM nodes -243 -249 +2% z=-0.0
large-graph-idle: event listeners -180 -153 -15% z=1.6
large-graph-pan: avg frame time 17ms 17ms -0% z=-1.5
large-graph-pan: p95 frame time 17ms 17ms +1% ⚠️ z=2.0
large-graph-pan: layout duration 0ms 0ms +0% —
large-graph-pan: style recalc duration 13ms 14ms +9% z=1.1
large-graph-pan: layout count 0 0 +0% —
large-graph-pan: style recalc count 67 68 +1% z=1.4
large-graph-pan: task duration 1324ms 1735ms +31% z=0.7
large-graph-pan: script duration 675ms 834ms +24% z=0.3
large-graph-pan: TBT 0ms 0ms +0% —
large-graph-pan: heap used 63.2 MB 69.5 MB +10% z=-1.2
large-graph-pan: DOM nodes -254 -253 -0% z=-0.9
large-graph-pan: event listeners -180 -167 -7% z=-0.8
large-graph-zoom: avg frame time 17ms 17ms +0% z=0.6
large-graph-zoom: p95 frame time 17ms 17ms +0% z=0.2
large-graph-zoom: layout duration 13ms 14ms +12% z=0.2
large-graph-zoom: style recalc duration 12ms 11ms -8% z=-0.8
large-graph-zoom: layout count 60 60 +0% —
large-graph-zoom: style recalc count 63 61 -3% z=-0.8
large-graph-zoom: task duration 1396ms 1784ms +28% z=0.7
large-graph-zoom: script duration 635ms 796ms +25% z=0.5
large-graph-zoom: TBT 0ms 0ms +0% —
large-graph-zoom: heap used 71.1 MB 71.7 MB +1% z=0.7
large-graph-zoom: DOM nodes -255 -258 +1% z=-1.4
large-graph-zoom: event listeners -178 -163 -8% z=-1.9
legacy-node-drag: avg frame time 17ms 17ms +0% z=1.8
legacy-node-drag: p95 frame time 17ms 17ms +0% z=0.0
legacy-node-drag: layout duration 0ms 0ms +0% —
legacy-node-drag: style recalc duration 7ms 6ms -9% z=-0.3
legacy-node-drag: layout count 0 0 +0% —
legacy-node-drag: style recalc count 43 41 -5% z=-0.4
legacy-node-drag: task duration 1540ms 1949ms +27% z=0.5
legacy-node-drag: script duration 793ms 958ms +21% z=0.2
legacy-node-drag: TBT 0ms 0ms +0% variance too high
legacy-node-drag: heap used 77.3 MB 83.2 MB +8% z=0.6
legacy-node-drag: DOM nodes 6 -127 -2217% z=-0.6
legacy-node-drag: event listeners 186 188 +1% z=0.6
minimap-idle: avg frame time 17ms 17ms -0% z=-3.0
minimap-idle: p95 frame time 17ms 17ms -0% z=-1.6
minimap-idle: layout duration 0ms 0ms +0% —
minimap-idle: style recalc duration 5ms 6ms +18% z=0.2
minimap-idle: layout count 0 0 +0% —
minimap-idle: style recalc count 7 6 -21% z=-0.1
minimap-idle: task duration 481ms 655ms +36% z=0.9
minimap-idle: script duration 29ms 35ms +22% z=0.1
minimap-idle: TBT 0ms 0ms +0% —
minimap-idle: heap used 73.8 MB 76.3 MB +3% z=-0.5
minimap-idle: DOM nodes -259 -258 -0% z=-0.5
minimap-idle: event listeners -180 -184 +2% z=-0.8
subgraph-dom-widget-clipping: avg frame time 17ms 17ms -0% z=-2.6
subgraph-dom-widget-clipping: p95 frame time 17ms 17ms +0% z=-0.1
subgraph-dom-widget-clipping: layout duration 0ms 0ms +0% —
subgraph-dom-widget-clipping: style recalc duration 9ms 12ms +35% z=1.5
subgraph-dom-widget-clipping: layout count 0 0 +0% —
subgraph-dom-widget-clipping: style recalc count 47 48 +1% z=1.7
subgraph-dom-widget-clipping: task duration 319ms 429ms +34% z=1.0
subgraph-dom-widget-clipping: script duration 115ms 146ms +27% z=0.7
subgraph-dom-widget-clipping: TBT 0ms 0ms +0% —
subgraph-dom-widget-clipping: heap used 73.4 MB 73.7 MB +0% z=1.3
subgraph-dom-widget-clipping: DOM nodes 20 21 +5% z=1.7
subgraph-dom-widget-clipping: event listeners 6 8 +33% z=1.5
subgraph-idle: avg frame time 17ms 17ms -0% z=-0.7
subgraph-idle: p95 frame time 17ms 17ms +0% z=-0.1
subgraph-idle: layout duration 0ms 0ms +0% —
subgraph-idle: style recalc duration 7ms 9ms +29% z=0.4
subgraph-idle: layout count 0 0 +0% —
subgraph-idle: style recalc count 11 10 -14% z=-0.3
subgraph-idle: task duration 371ms 526ms +42% z=1.0
subgraph-idle: script duration 7ms 10ms +48% z=0.5
subgraph-idle: TBT 0ms 0ms +0% —
subgraph-idle: heap used 70.0 MB 70.4 MB +1% z=1.2
subgraph-idle: DOM nodes -275 -278 +1% z=-0.4
subgraph-idle: event listeners -198 -200 +1% z=0.3
subgraph-mouse-sweep: avg frame time 17ms 17ms -0% z=-0.9
subgraph-mouse-sweep: p95 frame time 17ms 17ms -1% z=-2.4
subgraph-mouse-sweep: layout duration 5ms 6ms +19% z=0.3
subgraph-mouse-sweep: style recalc duration 22ms 29ms +28% z=0.4
subgraph-mouse-sweep: layout count 18 18 +0% —
subgraph-mouse-sweep: style recalc count 77 77 +0% z=-0.7
subgraph-mouse-sweep: task duration 618ms 880ms +42% z=1.0
subgraph-mouse-sweep: script duration 84ms 108ms +29% z=0.1
subgraph-mouse-sweep: TBT 0ms 0ms +0% —
subgraph-mouse-sweep: heap used 58.2 MB 66.1 MB +14% z=0.5
subgraph-mouse-sweep: DOM nodes -275 -275 -0% z=0.7
subgraph-mouse-sweep: event listeners -228 -216 -5% z=-0.1
subgraph-transition-enter: avg frame time 17ms 17ms -0% z=-1.0
subgraph-transition-enter: p95 frame time 17ms 17ms +0% z=-0.8
subgraph-transition-enter: layout duration 9ms 12ms +24% z=0.0
subgraph-transition-enter: style recalc duration 22ms 27ms +22% z=-0.1
subgraph-transition-enter: layout count 5 5 +0% —
subgraph-transition-enter: style recalc count 18 17 -6% z=-0.3
subgraph-transition-enter: task duration 692ms 924ms +33% z=0.4
subgraph-transition-enter: script duration 21ms 31ms +46% z=0.3
subgraph-transition-enter: TBT 89ms 132ms +48% z=0.1
subgraph-transition-enter: heap used 76.7 MB 77.4 MB +1% z=-1.5
subgraph-transition-enter: DOM nodes 13587 13587 +0% —
subgraph-transition-enter: event listeners 2385 2387 +0% z=1.2
viewport-pan-sweep: avg frame time 17ms 17ms +0% z=0.4
viewport-pan-sweep: p95 frame time 17ms 17ms -0% z=-0.3
viewport-pan-sweep: layout duration 0ms 0ms +0% —
viewport-pan-sweep: style recalc duration 37ms 37ms -1% z=-0.5
viewport-pan-sweep: layout count 0 0 +0% —
viewport-pan-sweep: style recalc count 250 248 -1% z=-0.6
viewport-pan-sweep: task duration 4557ms 6035ms +32% z=0.6
viewport-pan-sweep: script duration 2181ms 2751ms +26% z=0.4
viewport-pan-sweep: TBT 0ms 2ms — —
viewport-pan-sweep: heap used 64.3 MB 77.9 MB +21% ⚠️ z=2.1
viewport-pan-sweep: DOM nodes -215 -240 +11% z=0.0
viewport-pan-sweep: event listeners -166 -167 +1% z=-1.6
vue-large-graph-idle: avg frame time 17ms 17ms +2% z=-0.2
vue-large-graph-idle: p95 frame time 17ms 17ms +0% z=1.3
vue-large-graph-idle: layout duration 0ms 0ms +0% —
vue-large-graph-idle: style recalc duration 0ms 0ms +0% —
vue-large-graph-idle: layout count 0 0 +0% —
vue-large-graph-idle: style recalc count 0 0 +0% —
vue-large-graph-idle: task duration 13658ms 14954ms +9% z=-0.0
vue-large-graph-idle: script duration 205ms 262ms +28% z=0.2
vue-large-graph-idle: TBT 0ms 0ms +0% variance too high
vue-large-graph-idle: heap used 178.1 MB 167.7 MB -6% z=-0.5
vue-large-graph-idle: DOM nodes -6542 -6542 +0% z=0.5
vue-large-graph-idle: event listeners -7478 -7479 +0% z=-0.2
vue-large-graph-pan: avg frame time 17ms 18ms +3% z=0.2
vue-large-graph-pan: p95 frame time 17ms 17ms +0% z=-0.2
vue-large-graph-pan: layout duration 0ms 0ms +0% —
vue-large-graph-pan: style recalc duration 14ms 17ms +20% z=-0.3
vue-large-graph-pan: layout count 0 0 +0% —
vue-large-graph-pan: style recalc count 130 131 +1% z=-0.1
vue-large-graph-pan: task duration 16685ms 18141ms +9% z=-0.2
vue-large-graph-pan: script duration 695ms 857ms +23% z=0.1
vue-large-graph-pan: TBT 3ms 44ms +1350% variance too high
vue-large-graph-pan: heap used 158.1 MB 162.5 MB +3% z=-1.1
vue-large-graph-pan: DOM nodes -6542 -6542 +0% z=0.4
vue-large-graph-pan: event listeners -7476 -7475 -0% z=-0.4
vue-node-resize-workload: avg frame time 18ms 17ms -3% z=-1.3
vue-node-resize-workload: p95 frame time 17ms 17ms +1% z=-0.2
vue-node-resize-workload: layout duration 21ms 25ms +16% z=0.0
vue-node-resize-workload: style recalc duration 62ms 76ms +22% z=0.2
vue-node-resize-workload: layout count 20 20 +0% —
vue-node-resize-workload: style recalc count 20 20 +0% —
vue-node-resize-workload: task duration 5026ms 5423ms +8% z=-0.2
vue-node-resize-workload: script duration 83ms 96ms +15% z=-0.3
vue-node-resize-workload: TBT 231ms 292ms +26% variance too high
vue-node-resize-workload: heap used 165.4 MB 173.5 MB +5% z=0.9
vue-node-resize-workload: DOM nodes -6542 -6542 +0% z=0.7
vue-node-resize-workload: event listeners -7476 -7477 +0% z=-0.3
vue-zoom-out-idle: avg frame time 17ms 18ms +3% z=0.6
vue-zoom-out-idle: p95 frame time 17ms 17ms -0% z=-0.8
vue-zoom-out-idle: layout duration 0ms 0ms +0% —
vue-zoom-out-idle: style recalc duration 0ms 0ms +0% —
vue-zoom-out-idle: layout count 0 0 +0% —
vue-zoom-out-idle: style recalc count 0 0 +0% —
vue-zoom-out-idle: task duration 6896ms 7477ms +8% z=-0.1
vue-zoom-out-idle: script duration 101ms 114ms +14% z=-0.5
vue-zoom-out-idle: TBT 0ms 0ms +0% —
vue-zoom-out-idle: heap used 160.5 MB 163.7 MB +2% z=-1.0
vue-zoom-out-idle: DOM nodes 0 0 +0% z=0.3
vue-zoom-out-idle: event listeners -8 -10 +25% z=0.4
workflow-execution: avg frame time 17ms 17ms -0% z=-0.6
workflow-execution: p95 frame time 17ms 17ms -0% z=-1.3
workflow-execution: layout duration 2ms 2ms +11% z=1.1
workflow-execution: style recalc duration 19ms 23ms +24% z=1.0
workflow-execution: layout count 4 4 -13% z=0.3
workflow-execution: style recalc count 13 11 -19% z=-0.7
workflow-execution: task duration 95ms 112ms +18% z=0.7
workflow-execution: script duration 9ms 11ms +20% z=0.4
workflow-execution: TBT 0ms 0ms +0% —
workflow-execution: heap used 63.7 MB 62.9 MB -1% z=-0.1
workflow-execution: DOM nodes 121 125 +3% z=-0.6
workflow-execution: event listeners 81 41 -49% z=-0.9
Historical variance (last 15 runs)
Metric μ σ CV
canvas-idle: avg frame time 17ms 0ms 0.0%
canvas-idle: p95 frame time 17ms 0ms 0.2%
canvas-idle: layout duration 0ms 0ms 0.0%
canvas-idle: style recalc duration 7ms 1ms 16.8%
canvas-idle: layout count 0 0 0.0%
canvas-idle: style recalc count 8 1 10.4%
canvas-idle: task duration 447ms 79ms 17.6%
canvas-idle: script duration 10ms 2ms 19.8%
canvas-idle: TBT 0ms 0ms 0.0%
canvas-idle: heap used 63.5 MB 4.1 MB 6.4%
canvas-idle: DOM nodes -207 59 0.0%
canvas-idle: event listeners -134 37 0.0%
canvas-mouse-sweep: avg frame time 17ms 0ms 0.0%
canvas-mouse-sweep: p95 frame time 17ms 0ms 0.1%
canvas-mouse-sweep: layout duration 5ms 0ms 10.7%
canvas-mouse-sweep: style recalc duration 28ms 5ms 16.8%
canvas-mouse-sweep: layout count 14 0 0.0%
canvas-mouse-sweep: style recalc count 75 1 1.8%
canvas-mouse-sweep: task duration 819ms 129ms 15.8%
canvas-mouse-sweep: script duration 150ms 27ms 17.8%
canvas-mouse-sweep: TBT 0ms 0ms 0.0%
canvas-mouse-sweep: heap used 66.7 MB 4.0 MB 5.9%
canvas-mouse-sweep: DOM nodes -262 2 0.0%
canvas-mouse-sweep: event listeners -165 7 0.0%
canvas-zoom-sweep: avg frame time 17ms 0ms 0.0%
canvas-zoom-sweep: p95 frame time 17ms 0ms 0.2%
canvas-zoom-sweep: layout duration 1ms 0ms 7.1%
canvas-zoom-sweep: style recalc duration 16ms 2ms 15.1%
canvas-zoom-sweep: layout count 6 0 0.0%
canvas-zoom-sweep: style recalc count 31 0 1.1%
canvas-zoom-sweep: task duration 326ms 49ms 15.2%
canvas-zoom-sweep: script duration 12ms 2ms 16.3%
canvas-zoom-sweep: TBT 0ms 0ms 0.0%
canvas-zoom-sweep: heap used 61.3 MB 312.6 KB 0.5%
canvas-zoom-sweep: DOM nodes 76 1 0.9%
canvas-zoom-sweep: event listeners 19 1 3.1%
dom-widget-clipping: avg frame time 17ms 0ms 0.0%
dom-widget-clipping: p95 frame time 17ms 0ms 0.2%
dom-widget-clipping: layout duration 0ms 0ms 0.0%
dom-widget-clipping: style recalc duration 8ms 1ms 14.6%
dom-widget-clipping: layout count 0 0 0.0%
dom-widget-clipping: style recalc count 11 1 6.2%
dom-widget-clipping: task duration 422ms 63ms 14.9%
dom-widget-clipping: script duration 152ms 23ms 15.2%
dom-widget-clipping: TBT 0ms 0ms 0.0%
dom-widget-clipping: heap used 76.1 MB 340.5 KB 0.4%
dom-widget-clipping: DOM nodes 18 1 7.4%
dom-widget-clipping: event listeners 2 0 20.4%
large-graph-idle: avg frame time 17ms 0ms 0.0%
large-graph-idle: p95 frame time 17ms 0ms 0.2%
large-graph-idle: layout duration 0ms 0ms 0.0%
large-graph-idle: style recalc duration 6ms 1ms 19.2%
large-graph-idle: layout count 0 0 0.0%
large-graph-idle: style recalc count 6 2 24.7%
large-graph-idle: task duration 580ms 105ms 18.1%
large-graph-idle: script duration 34ms 5ms 13.7%
large-graph-idle: TBT 0ms 0ms 0.0%
large-graph-idle: heap used 77.6 MB 1.7 MB 2.2%
large-graph-idle: DOM nodes -248 3 0.0%
large-graph-idle: event listeners -166 8 0.0%
large-graph-pan: avg frame time 17ms 0ms 0.0%
large-graph-pan: p95 frame time 17ms 0ms 0.2%
large-graph-pan: layout duration 0ms 0ms 0.0%
large-graph-pan: style recalc duration 12ms 2ms 13.2%
large-graph-pan: layout count 0 0 0.0%
large-graph-pan: style recalc count 66 1 2.2%
large-graph-pan: task duration 1580ms 234ms 14.8%
large-graph-pan: script duration 791ms 127ms 16.0%
large-graph-pan: TBT 0ms 0ms 0.0%
large-graph-pan: heap used 74.1 MB 4.0 MB 5.3%
large-graph-pan: DOM nodes -196 62 0.0%
large-graph-pan: event listeners -123 54 0.0%
large-graph-zoom: avg frame time 17ms 0ms 0.0%
large-graph-zoom: p95 frame time 17ms 0ms 0.2%
large-graph-zoom: layout duration 14ms 1ms 6.9%
large-graph-zoom: style recalc duration 12ms 1ms 9.9%
large-graph-zoom: layout count 60 0 0.0%
large-graph-zoom: style recalc count 62 1 1.9%
large-graph-zoom: task duration 1620ms 241ms 14.9%
large-graph-zoom: script duration 742ms 118ms 15.9%
large-graph-zoom: TBT 0ms 0ms 0.0%
large-graph-zoom: heap used 70.5 MB 1.7 MB 2.4%
large-graph-zoom: DOM nodes -117 101 0.0%
large-graph-zoom: event listeners -58 55 0.0%
legacy-node-drag: avg frame time 17ms 0ms 0.0%
legacy-node-drag: p95 frame time 17ms 0ms 0.2%
legacy-node-drag: layout duration 0ms 0ms 0.0%
legacy-node-drag: style recalc duration 7ms 1ms 20.9%
legacy-node-drag: layout count 0 0 0.0%
legacy-node-drag: style recalc count 42 2 4.9%
legacy-node-drag: task duration 1819ms 280ms 15.4%
legacy-node-drag: script duration 923ms 160ms 17.3%
legacy-node-drag: TBT 0ms 0ms 387.3%
legacy-node-drag: heap used 80.3 MB 4.7 MB 5.8%
legacy-node-drag: DOM nodes -82 69 0.0%
legacy-node-drag: event listeners 154 53 34.2%
minimap-idle: avg frame time 17ms 0ms 0.0%
minimap-idle: p95 frame time 17ms 0ms 0.2%
minimap-idle: layout duration 0ms 0ms 0.0%
minimap-idle: style recalc duration 5ms 1ms 25.5%
minimap-idle: layout count 0 0 0.0%
minimap-idle: style recalc count 6 1 26.0%
minimap-idle: task duration 565ms 102ms 18.0%
minimap-idle: script duration 35ms 5ms 14.4%
minimap-idle: TBT 0ms 0ms 0.0%
minimap-idle: heap used 77.4 MB 2.3 MB 3.0%
minimap-idle: DOM nodes -247 22 0.0%
minimap-idle: event listeners -151 40 0.0%
subgraph-dom-widget-clipping: avg frame time 17ms 0ms 0.0%
subgraph-dom-widget-clipping: p95 frame time 17ms 0ms 0.2%
subgraph-dom-widget-clipping: layout duration 0ms 0ms 0.0%
subgraph-dom-widget-clipping: style recalc duration 10ms 1ms 12.9%
subgraph-dom-widget-clipping: layout count 0 0 0.0%
subgraph-dom-widget-clipping: style recalc count 47 1 1.1%
subgraph-dom-widget-clipping: task duration 373ms 53ms 14.3%
subgraph-dom-widget-clipping: script duration 131ms 21ms 15.7%
subgraph-dom-widget-clipping: TBT 0ms 0ms 0.0%
subgraph-dom-widget-clipping: heap used 73.3 MB 268.4 KB 0.4%
subgraph-dom-widget-clipping: DOM nodes 19 1 5.2%
subgraph-dom-widget-clipping: event listeners 7 1 7.2%
subgraph-idle: avg frame time 17ms 0ms 0.0%
subgraph-idle: p95 frame time 17ms 0ms 0.1%
subgraph-idle: layout duration 0ms 0ms 0.0%
subgraph-idle: style recalc duration 8ms 1ms 16.5%
subgraph-idle: layout count 0 0 0.0%
subgraph-idle: style recalc count 10 1 7.0%
subgraph-idle: task duration 459ms 68ms 14.8%
subgraph-idle: script duration 9ms 2ms 17.9%
subgraph-idle: TBT 0ms 0ms 0.0%
subgraph-idle: heap used 64.9 MB 4.6 MB 7.0%
subgraph-idle: DOM nodes -269 25 0.0%
subgraph-idle: event listeners -207 20 0.0%
subgraph-mouse-sweep: avg frame time 17ms 0ms 0.0%
subgraph-mouse-sweep: p95 frame time 17ms 0ms 0.2%
subgraph-mouse-sweep: layout duration 5ms 1ms 11.6%
subgraph-mouse-sweep: style recalc duration 27ms 4ms 14.5%
subgraph-mouse-sweep: layout count 18 0 0.0%
subgraph-mouse-sweep: style recalc count 77 0 0.4%
subgraph-mouse-sweep: task duration 770ms 111ms 14.5%
subgraph-mouse-sweep: script duration 106ms 17ms 16.2%
subgraph-mouse-sweep: TBT 0ms 0ms 0.0%
subgraph-mouse-sweep: heap used 63.9 MB 4.8 MB 7.6%
subgraph-mouse-sweep: DOM nodes -276 3 0.0%
subgraph-mouse-sweep: event listeners -215 11 0.0%
subgraph-transition-enter: avg frame time 17ms 0ms 0.0%
subgraph-transition-enter: p95 frame time 17ms 0ms 0.3%
subgraph-transition-enter: layout duration 12ms 2ms 21.3%
subgraph-transition-enter: style recalc duration 27ms 5ms 18.2%
subgraph-transition-enter: layout count 5 0 0.0%
subgraph-transition-enter: style recalc count 17 1 5.6%
subgraph-transition-enter: task duration 855ms 175ms 20.5%
subgraph-transition-enter: script duration 29ms 6ms 20.7%
subgraph-transition-enter: TBT 128ms 32ms 25.2%
subgraph-transition-enter: heap used 91.2 MB 9.3 MB 10.2%
subgraph-transition-enter: DOM nodes 13587 0 0.0%
subgraph-transition-enter: event listeners 2386 1 0.0%
viewport-pan-sweep: avg frame time 17ms 0ms 0.0%
viewport-pan-sweep: p95 frame time 17ms 0ms 0.2%
viewport-pan-sweep: layout duration 0ms 0ms 0.0%
viewport-pan-sweep: style recalc duration 39ms 3ms 8.7%
viewport-pan-sweep: layout count 0 0 0.0%
viewport-pan-sweep: style recalc count 248 1 0.5%
viewport-pan-sweep: task duration 5530ms 873ms 15.8%
viewport-pan-sweep: script duration 2597ms 413ms 15.9%
viewport-pan-sweep: TBT 0ms 0ms 0.0%
viewport-pan-sweep: heap used 69.7 MB 3.9 MB 5.6%
viewport-pan-sweep: DOM nodes -240 9 0.0%
viewport-pan-sweep: event listeners -151 10 0.0%
vue-large-graph-idle: avg frame time 18ms 0ms 1.9%
vue-large-graph-idle: p95 frame time 17ms 0ms 0.2%
vue-large-graph-idle: layout duration 0ms 0ms 0.0%
vue-large-graph-idle: style recalc duration 0ms 0ms 0.0%
vue-large-graph-idle: layout count 0 0 0.0%
vue-large-graph-idle: style recalc count 0 0 0.0%
vue-large-graph-idle: task duration 15078ms 2633ms 17.5%
vue-large-graph-idle: script duration 251ms 52ms 20.7%
vue-large-graph-idle: TBT 0ms 0ms 387.3%
vue-large-graph-idle: heap used 171.1 MB 6.4 MB 3.7%
vue-large-graph-idle: DOM nodes -6544 4 0.0%
vue-large-graph-idle: event listeners -7479 1 0.0%
vue-large-graph-pan: avg frame time 18ms 0ms 2.2%
vue-large-graph-pan: p95 frame time 17ms 1ms 8.3%
vue-large-graph-pan: layout duration 0ms 0ms 0.0%
vue-large-graph-pan: style recalc duration 18ms 4ms 21.1%
vue-large-graph-pan: layout count 0 0 0.0%
vue-large-graph-pan: style recalc count 135 37 27.5%
vue-large-graph-pan: task duration 18785ms 3240ms 17.2%
vue-large-graph-pan: script duration 839ms 129ms 15.4%
vue-large-graph-pan: TBT 69ms 73ms 106.8%
vue-large-graph-pan: heap used 166.7 MB 3.9 MB 2.3%
vue-large-graph-pan: DOM nodes -6543 2 0.0%
vue-large-graph-pan: event listeners -7474 1 0.0%
vue-node-resize-workload: avg frame time 18ms 0ms 2.2%
vue-node-resize-workload: p95 frame time 17ms 1ms 8.3%
vue-node-resize-workload: layout duration 25ms 3ms 12.6%
vue-node-resize-workload: style recalc duration 73ms 11ms 15.5%
vue-node-resize-workload: layout count 20 0 0.0%
vue-node-resize-workload: style recalc count 20 0 0.0%
vue-node-resize-workload: task duration 5570ms 935ms 16.8%
vue-node-resize-workload: script duration 104ms 24ms 22.6%
vue-node-resize-workload: TBT 331ms 191ms 57.9%
vue-node-resize-workload: heap used 170.3 MB 3.5 MB 2.1%
vue-node-resize-workload: DOM nodes -6545 5 0.0%
vue-node-resize-workload: event listeners -7477 1 0.0%
vue-zoom-out-idle: avg frame time 18ms 0ms 2.3%
vue-zoom-out-idle: p95 frame time 17ms 0ms 0.2%
vue-zoom-out-idle: layout duration 0ms 0ms 0.0%
vue-zoom-out-idle: style recalc duration 0ms 0ms 0.0%
vue-zoom-out-idle: layout count 0 0 0.0%
vue-zoom-out-idle: style recalc count 0 0 0.0%
vue-zoom-out-idle: task duration 7632ms 1267ms 16.6%
vue-zoom-out-idle: script duration 129ms 32ms 24.7%
vue-zoom-out-idle: TBT 0ms 0ms 0.0%
vue-zoom-out-idle: heap used 170.5 MB 6.6 MB 3.9%
vue-zoom-out-idle: DOM nodes -0 2 0.0%
vue-zoom-out-idle: event listeners -11 2 0.0%
workflow-execution: avg frame time 17ms 0ms 0.0%
workflow-execution: p95 frame time 17ms 0ms 0.2%
workflow-execution: layout duration 2ms 0ms 19.2%
workflow-execution: style recalc duration 19ms 4ms 19.0%
workflow-execution: layout count 3 0 12.7%
workflow-execution: style recalc count 12 2 18.6%
workflow-execution: task duration 100ms 16ms 16.4%
workflow-execution: script duration 10ms 2ms 19.9%
workflow-execution: TBT 0ms 0ms 0.0%
workflow-execution: heap used 63.0 MB 472.8 KB 0.7%
workflow-execution: DOM nodes 128 5 3.9%
workflow-execution: event listeners 55 15 27.1%
Trend (last 15 commits on main)
Metric Trend Dir Latest
canvas-idle: avg frame time ▃▃▃▃▆▆▆▆█▃▆▁█▁▁ ➡️ 17ms
canvas-idle: p95 frame time ▃▃▆▁▆▁▃▃█▆▆▆▆▃▃ ➡️ 17ms
canvas-idle: layout duration ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
canvas-idle: style recalc duration ▆▇▆█▃▁▄▄▇▁▆▅▅▄▄ ➡️ 7ms
canvas-idle: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0
canvas-idle: style recalc count ▄▅▅▆▃▆▆▂▅▆▃▄▁▆█ ➡️ 10
canvas-idle: task duration ▅▄▅▆▆▁▂▅▅▂█▅▇▂▁ ➡️ 336ms
canvas-idle: script duration ▄▅▃▆▃▁▄▄▄▁█▃▇▂▁ ➡️ 7ms
canvas-idle: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
canvas-idle: heap used ▄▄▆█▅▁▃▃▆▃▂▃▆▄▆ ➡️ 66.9 MB
canvas-idle: DOM nodes ▁▁▁▅▁▅▁▁▅▁▅▅█▅▅ 📉 -167
canvas-idle: event listeners ▂▂▂▅▂▅▁▂▅▂▁▅█▅▅ 📉 -113
canvas-mouse-sweep: avg frame time ▆▃▆▃▃▆█▆█▆▆▁▆▁█ ➡️ 17ms
canvas-mouse-sweep: p95 frame time ▅▁██▅▁▅▄▅▅▅▅▅▁▅ ➡️ 17ms
canvas-mouse-sweep: layout duration ▄▅▄▅▄▁▄▆▅▂▄▄█▄▃ ➡️ 4ms
canvas-mouse-sweep: style recalc duration ▅▇▆▇▅▁▃▆▆▁▇▆█▄▄ ➡️ 25ms
canvas-mouse-sweep: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 14
canvas-mouse-sweep: style recalc count ▅▅▄█▄▁▁▄▅▁▄▄▇▁▃ ➡️ 74
canvas-mouse-sweep: task duration ▆▆▆█▆▁▁▇▅▁▇▆█▄▃ ➡️ 734ms
canvas-mouse-sweep: script duration ▇█▇█▆▁▂▆█▁█▆▇▄▄ ➡️ 132ms
canvas-mouse-sweep: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
canvas-mouse-sweep: heap used ▇▇▆▆▅▆▇█▇▁▆▆▇▃▄ ➡️ 62.8 MB
canvas-mouse-sweep: DOM nodes ▅▅▃▃▆▆█▄▅█▁▃▂▅▅ ➡️ -262
canvas-mouse-sweep: event listeners ▅▅▅█▁▅▅█▅▂▅▄█▁▂ ➡️ -173
canvas-zoom-sweep: avg frame time █▆▆█▃▁█▃█▆▆▆▃▆▃ ➡️ 17ms
canvas-zoom-sweep: p95 frame time █▁▃▁▆▃▆▃▃▃▆▆▆▁▃ ➡️ 17ms
canvas-zoom-sweep: layout duration ▄▆▄▄▄▃▅█▇▃█▆▅▁▃ ➡️ 1ms
canvas-zoom-sweep: style recalc duration ▆█▇▇▅▁▆▇▇▁█▆▆▄▂ ➡️ 12ms
canvas-zoom-sweep: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 6
canvas-zoom-sweep: style recalc count ▁▆▆▃█▁▃▆▆▃▃▁█▃▆ ➡️ 31
canvas-zoom-sweep: task duration ▆▆▄▅▅▁▂▅▅▁█▄▅▃▂ ➡️ 272ms
canvas-zoom-sweep: script duration ▄▄▃▆▃▁▅▅▃▁█▄▅▄▂ ➡️ 10ms
canvas-zoom-sweep: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
canvas-zoom-sweep: heap used ▅▄▆▁▅▆▆▄▇▇▇▆▆▇█ ➡️ 61.7 MB
canvas-zoom-sweep: DOM nodes ▃▄▃▂▅▇▆▆▄▇▃▁█▅▅ ➡️ 76
canvas-zoom-sweep: event listeners ▁▁▁▁▁▁▃▁▁▁▁▁▁▆█ ➡️ 21
dom-widget-clipping: avg frame time ▅▅▁▅█▁▅▅█▁▁▅▅▅▅ ➡️ 17ms
dom-widget-clipping: p95 frame time █▆▁▃▃▁▃▆▃▃▁▁▆█▃ ➡️ 17ms
dom-widget-clipping: layout duration ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
dom-widget-clipping: style recalc duration ▆▇█▆▇▁▆▅▇▁█▃█▃▃ ➡️ 7ms
dom-widget-clipping: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0
dom-widget-clipping: style recalc count ▄▄▇▂█▆▇▃▅█▄▁▅▅▅ ➡️ 11
dom-widget-clipping: task duration ▇▇▇█▆▂▂▇▇▁█▇█▃▃ ➡️ 365ms
dom-widget-clipping: script duration ▇█▇█▆▂▁▇█▁█▇█▃▃ ➡️ 134ms
dom-widget-clipping: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
dom-widget-clipping: heap used ▁▂▇▅▁▄██▂█▂▆▇▆▂ ➡️ 75.8 MB
dom-widget-clipping: DOM nodes ▄▄▇▂█▆▇▃▅█▄▁▅▅▅ ➡️ 18
dom-widget-clipping: event listeners ▁██▁██▁█▁▁▁██▁█ ➡️ 2
large-graph-idle: avg frame time ▃▅▃▅▃▃▃▁▁▃▅█▃▅▅ ➡️ 17ms
large-graph-idle: p95 frame time █▆▃▆▃▁▃▆▁▃█▃▁▆▆ ➡️ 17ms
large-graph-idle: layout duration ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
large-graph-idle: style recalc duration ▃▃▁▃▆▂▆▄█▄▄▃▃▆▄ 📈 6ms
large-graph-idle: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0
large-graph-idle: style recalc count ▃▃▁▂▄▇█▄▅▇▃▃▂█▇ 📈 8
large-graph-idle: task duration ▆▅▄▇▅▁▂▅▆▂█▆█▃▃ ➡️ 481ms
large-graph-idle: script duration ▅▅▆▇▅▁▃▆▅▁▇██▂▂ ➡️ 28ms
large-graph-idle: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
large-graph-idle: heap used █▆█▇▇▄▇▆▇▆█▆█▁▅ ➡️ 76.1 MB
large-graph-idle: DOM nodes ▄▂▃▂▅▅█▃▄▇▄▁▃▁▅ ➡️ -246
large-graph-idle: event listeners ▅▃▃▃▃▃▆▅▆▆█▅█▁▄ ➡️ -170
large-graph-pan: avg frame time ▃▆▁▆▆▆▃▆▆▃▃▆▆█▃ ➡️ 17ms
large-graph-pan: p95 frame time █▁██▅██▅▁█▁▁█▁▁ ➡️ 17ms
large-graph-pan: layout duration ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
large-graph-pan: style recalc duration ▁▃█▄▃▅█▅▁▄▃▄▄▂▄ ➡️ 13ms
large-graph-pan: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0
large-graph-pan: style recalc count ▂▅▆▄▄█▅▆▁█▃▃▂▅▆ ➡️ 67
large-graph-pan: task duration ▆▆▆▇▅▁▂▇▇▁█▆█▃▃ ➡️ 1349ms
large-graph-pan: script duration ▇▇▇▇▅▁▂▆▇▁█▆▇▃▃ ➡️ 683ms
large-graph-pan: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
large-graph-pan: heap used ▆▄▆▆▇▆█▂▇▂▆▆▆▇▁ ➡️ 65.9 MB
large-graph-pan: DOM nodes █▁▁▅▅▂▅▁▄▂▄▁▁█▁ 📈 -246
large-graph-pan: event listeners █▂▂▄▅▁▅▁█▂▅▂▇█▁ 📉 -180
large-graph-zoom: avg frame time ▁▆▃▃▃▃▃▃▃▆█▆▆█▃ ➡️ 17ms
large-graph-zoom: p95 frame time ▁▆▃▁▆▆▃▁▆█▆▁▆▃▃ ➡️ 17ms
large-graph-zoom: layout duration ▃▂▂▃▄▃▆▄▂▃▄▆█▁▁ ➡️ 13ms
large-graph-zoom: style recalc duration ▃▁▆▃▇▅█▄▃▆▃▆█▅▅ ➡️ 12ms
large-graph-zoom: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 60
large-graph-zoom: style recalc count ▂▁▆▂▅▆▆▃▃█▂▄▄▆▇ ➡️ 63
large-graph-zoom: task duration ▆▆▆▇▆▁▂▇▆▁▇▆█▃▃ ➡️ 1402ms
large-graph-zoom: script duration ▇▆▆▇▆▁▁▆▇▁▇▆█▃▃ ➡️ 637ms
large-graph-zoom: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
large-graph-zoom: heap used ▅▅▁▅▃▃▅█▅▅▅▄▃▃▅ ➡️ 71.2 MB
large-graph-zoom: DOM nodes ██▄▁▁▃█▃█▃█▆▃▆▁ ➡️ -257
large-graph-zoom: event listeners ██▁▂▁▅█▄█▁█▅▁▄▁ 📈 -118
legacy-node-drag: avg frame time ▆▁▆▃▃█▆▃▃▃███▁▆ ➡️ 17ms
legacy-node-drag: p95 frame time ▃▁█▆▃▆█▃▁█▆▆▁▃▃ ➡️ 17ms
legacy-node-drag: layout duration ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
legacy-node-drag: style recalc duration ▂▁▁▂▂▇█▁▂▅▁▃▃▅▃ ➡️ 7ms
legacy-node-drag: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0
legacy-node-drag: style recalc count ▂▁▁▂▂█▇▁▂█▁▂▁▆▅ ➡️ 43
legacy-node-drag: task duration ▆▆▆▇▅▁▂▆▆▁▇▆█▃▂ ➡️ 1505ms
legacy-node-drag: script duration ▆▆▆▇▆▁▂▆▆▁▇▇█▃▃ ➡️ 794ms
legacy-node-drag: TBT ▁▁▁▁▁▁▁▁▁▁▁▁█▁▁ 📈 0ms
legacy-node-drag: heap used ▇▆▆▇▆▁▄▇▅▅▇▇█▆▃ ➡️ 74.3 MB
legacy-node-drag: DOM nodes ▅▅▅▅▅▁▆▅▃▃███▆█ 📉 6
legacy-node-drag: event listeners ▅████▁▄█▁▁█████ ➡️ 186
minimap-idle: avg frame time █▃▃▃▃▆▁▆▃▆▆▃▃█▆ ➡️ 17ms
minimap-idle: p95 frame time ▁████▁▁██▅▄██▅▅ ➡️ 17ms
minimap-idle: layout duration ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
minimap-idle: style recalc duration ▃▄▃▂▄▃▃▄▅▃▃▁█▅▃ 📈 5ms
minimap-idle: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0
minimap-idle: style recalc count ▂▂▃▁▃█▅▃▅█▂▁▄▅▅ ➡️ 7
minimap-idle: task duration ▄▆▅▆▄▂▁▆▅▂█▄█▄▃ ➡️ 480ms
minimap-idle: script duration ▆▆▅▆▄▂▂▅▅▁▇▅█▅▂ ➡️ 29ms
minimap-idle: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
minimap-idle: heap used █▇▅█▅▃█▄▄▂▆█▆▆▁ ➡️ 72.8 MB
minimap-idle: DOM nodes ▂▁▁▁█▂▂▁▁▁▁▁▂▂▁ ➡️ -259
minimap-idle: event listeners ▃▂▂▅▄▁▅▂▂▁▂█▂▂▁ ➡️ -181
subgraph-dom-widget-clipping: avg frame time ▄█▁█▅▁█▁▅▄▁████ ➡️ 17ms
subgraph-dom-widget-clipping: p95 frame time ▁▆▆█▃▆▆▃▆▆▆▆▁▆▃ ➡️ 17ms
subgraph-dom-widget-clipping: layout duration ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
subgraph-dom-widget-clipping: style recalc duration ▆▆▇█▅▁▆▇▇▁█▆▆▄▄ ➡️ 9ms
subgraph-dom-widget-clipping: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0
subgraph-dom-widget-clipping: style recalc count ▁▄▄█▁█▆▄▆█▃▄▁▁▆ ➡️ 47
subgraph-dom-widget-clipping: task duration ▇▇▇▇▆▁▂▇▇▁█▆▇▄▃ ➡️ 318ms
subgraph-dom-widget-clipping: script duration █▇▇██▁▂██▁█▇█▄▄ ➡️ 114ms
subgraph-dom-widget-clipping: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
subgraph-dom-widget-clipping: heap used ▁▆▇▅▅▄▅▇▅▅▇▂▇█▆ ➡️ 73.4 MB
subgraph-dom-widget-clipping: DOM nodes ▁▄▄█▁█▆▄▆█▃▄▁▁▆ ➡️ 20
subgraph-dom-widget-clipping: event listeners ▄▄▄▁█▁▁█▄▁▁█▄▄▁ ➡️ 7
subgraph-idle: avg frame time ▃▁▁▆█▁▁▆█▃▆▃▁█▆ ➡️ 17ms
subgraph-idle: p95 frame time ▃▆▃▁▆▃▆▆▆▆█▃▆▆▃ ➡️ 17ms
subgraph-idle: layout duration ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
subgraph-idle: style recalc duration ▇▅▆▇▆▁▅▆█▁█▇▅▃▃ ➡️ 7ms
subgraph-idle: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0
subgraph-idle: style recalc count ▅▄▅▅▅▇█▅▅▆▆▇▁▅█ ➡️ 11
subgraph-idle: task duration ▅▆▅▆▅▁▃▅▆▁█▅▇▂▂ ➡️ 384ms
subgraph-idle: script duration ▅▄▂▅▃▁▆▅▄▁█▅▅▂▁ ➡️ 7ms
subgraph-idle: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
subgraph-idle: heap used ▂▅▅█▁▂▂▃▄▄▅▃▄▆▅ ➡️ 66.5 MB
subgraph-idle: DOM nodes ▁▁▁▁▁▁▁▁▁▁▁▁▁█▁ ➡️ -274
subgraph-idle: event listeners ▁▃▃▃▂▂▂▂▃▃▃▃▂█▃ ➡️ -209
subgraph-mouse-sweep: avg frame time ▁▆▃▁▃▃▃▃▃▃▆▃▆▃█ ➡️ 17ms
subgraph-mouse-sweep: p95 frame time ▆▃██▁▆▆▆▃▆▆▆██▆ ➡️ 17ms
subgraph-mouse-sweep: layout duration ▄▅▄▅▄▁█▅▄▂▆▆▇▂▂ ➡️ 5ms
subgraph-mouse-sweep: style recalc duration ▆▆▅▆▅▁█▆▆▁▇▆█▄▂ ➡️ 22ms
subgraph-mouse-sweep: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 18
subgraph-mouse-sweep: style recalc count ▃▃▃▃▄▄▃▄▆▄▁▃█▄▄ ➡️ 77
subgraph-mouse-sweep: task duration ▆▆▆▇▅▁▃█▆▁█▇█▃▁ ➡️ 599ms
subgraph-mouse-sweep: script duration ▇▇▇▇▅▁▅▆▇▁█▆█▃▂ ➡️ 84ms
subgraph-mouse-sweep: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
subgraph-mouse-sweep: heap used ▄▅▄▃█▁▁▃▆▁▃▆▄▂▂ ➡️ 60.6 MB
subgraph-mouse-sweep: DOM nodes ▆▇▇▇▇██▇▇█▆▇▁█▇ ➡️ -276
subgraph-mouse-sweep: event listeners ▃▅▅▅█▁▁▃█▁▅██▃▄ ➡️ -219
subgraph-transition-enter: avg frame time ▅▁▅█▅▅█▁█▁▅▁▁▁▅ ➡️ 17ms
subgraph-transition-enter: p95 frame time ▁█▁▁▁▁▁█████▁▁▁ ➡️ 17ms
subgraph-transition-enter: layout duration ▇▇▇█▆▁▁▅▇▁█▆█▃▃ ➡️ 9ms
subgraph-transition-enter: style recalc duration ▆▆▆▇▅▁▁▄▆▂▇▅█▃▂ ➡️ 22ms
subgraph-transition-enter: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 5
subgraph-transition-enter: style recalc count ▃▁▆▁▆██▃▃▃▃▆▁▃▆ ➡️ 18
subgraph-transition-enter: task duration ▆▆▅▆▅▁▁▅▅▁▆▅█▃▂ ➡️ 692ms
subgraph-transition-enter: script duration ▆▆▄▆▄▁▁▅▅▁▆▄█▃▁ ➡️ 21ms
subgraph-transition-enter: TBT ▆▆▆▆▅▃▁▆▆▃▇▅█▃▃ ➡️ 89ms
subgraph-transition-enter: heap used ▄▆▁▁▇▅▇▆▁▇▆▆█▇▁ ➡️ 76.7 MB
subgraph-transition-enter: DOM nodes ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 13587
subgraph-transition-enter: event listeners ▁▁▁▁█▁███▁▁██▁▁ ➡️ 2385
viewport-pan-sweep: avg frame time ▃▁█▅▅▅▃▆▃▃▅▃▅▃▃ ➡️ 17ms
viewport-pan-sweep: p95 frame time ▆█▆▆▁▃▆█▆▃█▃▃▆▆ ➡️ 17ms
viewport-pan-sweep: layout duration ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
viewport-pan-sweep: style recalc duration ▁▁▁▂▄▁█▂▁▁▃▅▇▃▂ ➡️ 37ms
viewport-pan-sweep: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0
viewport-pan-sweep: style recalc count ▃▄▄▃▅▇█▃▄▇▂▂▁▆▇ ➡️ 250
viewport-pan-sweep: task duration ▇▆▆▇▆▁▂▇▇▂█▆█▄▃ ➡️ 4571ms
viewport-pan-sweep: script duration ▇▇▇█▆▁▂▇█▂█▆█▄▃ ➡️ 2187ms
viewport-pan-sweep: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
viewport-pan-sweep: heap used ▅▁▁▅█▅▆▄█▃▅▃▅▄▅ ➡️ 70.6 MB
viewport-pan-sweep: DOM nodes ▂▄▅▃▅▇▆▆▁█▄▂▁▆▇ ➡️ -229
viewport-pan-sweep: event listeners ▅▅▃█▃▆▂▃▃▁▆▇▆▆▁ ➡️ -166
vue-large-graph-idle: avg frame time ▅▆▆▅▆▂▄▅▅▁▆▆█▃▄ ➡️ 17ms
vue-large-graph-idle: p95 frame time ██▄██▄▄▁▁▁▄▄▄▁▄ ➡️ 17ms
vue-large-graph-idle: layout duration ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
vue-large-graph-idle: style recalc duration ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
vue-large-graph-idle: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0
vue-large-graph-idle: style recalc count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0
vue-large-graph-idle: task duration ▇▇▇▆▇▂▃▆▇▁███▄▄ ➡️ 13669ms
vue-large-graph-idle: script duration ▇▆▇▇█▂▂▅▇▁███▄▃ ➡️ 205ms
vue-large-graph-idle: TBT ▁▁▁▁▁█▁▁▁▁▁▁▁▁▁ 📉 0ms
vue-large-graph-idle: heap used ▇▅▂▅▄▂▁▃█▆▅█▆▆▇ ➡️ 177.5 MB
vue-large-graph-idle: DOM nodes ▇▇▁▇▇▇▇▇▇▇█▇▇▆▂ ➡️ -6552
vue-large-graph-idle: event listeners ▇▅▇▅▅▁▄▅▇▂▇█▄▂▅ ➡️ -7479
vue-large-graph-pan: avg frame time ▅▅▆█▇▂▃▅▄▁▆▅▇▃▂ ➡️ 17ms
vue-large-graph-pan: p95 frame time ▁▁▁█▁▁▁▁▁▁▁▁▁▁▁ ➡️ 17ms
vue-large-graph-pan: layout duration ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
vue-large-graph-pan: style recalc duration ▃▃▃▅▄▁▂▃▃▁▆▅█▂▁ 📈 14ms
vue-large-graph-pan: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0
vue-large-graph-pan: style recalc count ▇▇▆▇▇▁▁▅▆▁▇▇█▅▅ ➡️ 135
vue-large-graph-pan: task duration ▆▆▆▇▇▁▂▅▅▁▇▇█▄▄ ➡️ 16665ms
vue-large-graph-pan: script duration ▇▆▆▇▆▂▁▆▆▂█▇█▃▂ ➡️ 693ms
vue-large-graph-pan: TBT ▃▂▁▄▃▁▁▂▃▁▅▆█▁▁ 📈 6ms
vue-large-graph-pan: heap used ▃█▅▆▆▆▇▁▅▅▆▇▆█▅ ➡️ 164.6 MB
vue-large-graph-pan: DOM nodes ██▁██▇███▇███▇█ ➡️ -6542
vue-large-graph-pan: event listeners ▆▅▇▆▂▁▁▁▂▁▇▅█▃▁ ➡️ -7476
vue-node-resize-workload: avg frame time ▅█▅▅▅▁▃▄▆▄▅▇▇▆▅ ➡️ 18ms
vue-node-resize-workload: p95 frame time ▁▁▁▁▁▁▁▁▁▁▁▁█▁▁ ➡️ 17ms
vue-node-resize-workload: layout duration ▂▂▂▄▂▂▂▃▂▁▃▄█▂▁ ➡️ 22ms
vue-node-resize-workload: style recalc duration ▇▆▇▇▅▁▁▆▇▁▇▅█▃▃ ➡️ 62ms
vue-node-resize-workload: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 20
vue-node-resize-workload: style recalc count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 20
vue-node-resize-workload: task duration ▆▆▅▆▆▁▃▅▆▂▆▇█▅▄ ➡️ 5078ms
vue-node-resize-workload: script duration ▅▅▅█▅▁▂▄▆▁▆▆▇▃▃ ➡️ 84ms
vue-node-resize-workload: TBT ▅▆▅▅▆▁▂▄▆▁▆▇█▄▃ 📈 220ms
vue-node-resize-workload: heap used ▃█▇▅█▃▇▇▁▂▅▃▅▄▅ ➡️ 170.1 MB
vue-node-resize-workload: DOM nodes ██▃█▁████▇▄▇██▃ ➡️ -6552
vue-node-resize-workload: event listeners ▇▇█▅▇▁▃▅▄▂▇█▇▅█ ➡️ -7475
vue-zoom-out-idle: avg frame time ▇▆▆▆█▁▁▇▇▁▇██▅▃ ➡️ 17ms
vue-zoom-out-idle: p95 frame time █▄█▄█▁▁▄▄█▁██▁█ ➡️ 17ms
vue-zoom-out-idle: layout duration ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
vue-zoom-out-idle: style recalc duration ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
vue-zoom-out-idle: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0
vue-zoom-out-idle: style recalc count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0
vue-zoom-out-idle: task duration ▆▆▅▅▇▁▃▅▆▁▇▇█▅▄ ➡️ 6910ms
vue-zoom-out-idle: script duration ▆▆▆▅▆▁▂▅▆▂▆▆█▃▃ ➡️ 101ms
vue-zoom-out-idle: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
vue-zoom-out-idle: heap used ▆▃▅▄█▆▇▅▁▃▅▆▆▃▁ ➡️ 159.0 MB
vue-zoom-out-idle: DOM nodes ██████▁████████ 📉 -0
vue-zoom-out-idle: event listeners ▄▂▅▃▃█▆▄▃▆▂▁▁▆▆ ➡️ -9
workflow-execution: avg frame time ▁▃▅▄▄▃▆▄▆▅▃██▅▆ ➡️ 17ms
workflow-execution: p95 frame time ▆▁▆▁▃▆█▃▃▃▃▆▁▆▁ ➡️ 17ms
workflow-execution: layout duration ▂▇▃▃▁▃▁▄▆▅▄▃█▂▃ 📈 2ms
workflow-execution: style recalc duration ▄▅▅▆▂▁▃▄▄▁▅▅█▃▃ ➡️ 18ms
workflow-execution: layout count ▄▇▇▇▁▇▄▄▄▅█▅▇▅▇ ➡️ 4
workflow-execution: style recalc count ▅▇█▆▂▅▅▂▃▁▆▆▄▄▅ 📉 13
workflow-execution: task duration ▆▇▇█▄▂▂▅▅▁▇▆█▃▄ ➡️ 92ms
workflow-execution: script duration ▅█▅▇▃▂▂▄▄▁▇▆▅▂▃ ➡️ 9ms
workflow-execution: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
workflow-execution: heap used ▄▅▄█▁▅▅▂▁▁▆▅▂▃█ ➡️ 63.8 MB
workflow-execution: DOM nodes ▇█▇▁▃▆█▃▇▁▃▇▅▅▁ ➡️ 121
workflow-execution: event listeners ▅▅▆█▁▄▆▂▂▁▅▄▃▃▇ 📉 77
Raw data
{
  "timestamp": "2026-09-16T01:18:58.934Z",
  "gitSha": "64771e13aacad6529742d2b3275e405087aac228",
  "branch": "jaewon/fe-2216-customer-attention-predicate",
  "measurements": [
    {
      "name": "canvas-idle",
      "durationMs": 2026.6349999999989,
      "styleRecalcs": 8,
      "styleRecalcDurationMs": 8.058000000000002,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 534.5500000000001,
      "heapDeltaBytes": 5554264,
      "heapUsedBytes": 66741604,
      "domNodes": -264,
      "jsHeapTotalBytes": 4710400,
      "scriptDurationMs": 10.193000000000001,
      "eventListeners": -154,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333332,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "canvas-idle",
      "durationMs": 2023.1719999999882,
      "styleRecalcs": 7,
      "styleRecalcDurationMs": 7.011,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 512.364,
      "heapDeltaBytes": 4354040,
      "heapUsedBytes": 66547472,
      "domNodes": -266,
      "jsHeapTotalBytes": 4186112,
      "scriptDurationMs": 10.464000000000004,
      "eventListeners": -154,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.699999999999818
    },
    {
      "name": "canvas-mouse-sweep",
      "durationMs": 1975.1189999999497,
      "styleRecalcs": 78,
      "styleRecalcDurationMs": 45.635000000000005,
      "layouts": 14,
      "layoutDurationMs": 5.314,
      "taskDurationMs": 996.8009999999999,
      "heapDeltaBytes": 3941104,
      "heapUsedBytes": 66370512,
      "domNodes": -262,
      "jsHeapTotalBytes": 6545408,
      "scriptDurationMs": 176.68,
      "eventListeners": -188,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.799999999999272
    },
    {
      "name": "canvas-mouse-sweep",
      "durationMs": 1891.933999999992,
      "styleRecalcs": 76,
      "styleRecalcDurationMs": 30.659,
      "layouts": 14,
      "layoutDurationMs": 4.712,
      "taskDurationMs": 945.7399999999999,
      "heapDeltaBytes": 10324148,
      "heapUsedBytes": 72666760,
      "domNodes": -262,
      "jsHeapTotalBytes": 5234688,
      "scriptDurationMs": 157.621,
      "eventListeners": -156,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "canvas-zoom-sweep",
      "durationMs": 1723.0350000000385,
      "styleRecalcs": 31,
      "styleRecalcDurationMs": 17.730000000000004,
      "layouts": 6,
      "layoutDurationMs": 1.418,
      "taskDurationMs": 365.417,
      "heapDeltaBytes": 2172428,
      "heapUsedBytes": 64458796,
      "domNodes": 76,
      "jsHeapTotalBytes": 4718592,
      "scriptDurationMs": 13.081,
      "eventListeners": 19,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "canvas-zoom-sweep",
      "durationMs": 1726.8609999999853,
      "styleRecalcs": 31,
      "styleRecalcDurationMs": 16.733999999999998,
      "layouts": 6,
      "layoutDurationMs": 1.3059999999999998,
      "taskDurationMs": 381.723,
      "heapDeltaBytes": 2164588,
      "heapUsedBytes": 64661224,
      "domNodes": 74,
      "jsHeapTotalBytes": 5242880,
      "scriptDurationMs": 13.313999999999997,
      "eventListeners": 19,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "dom-widget-clipping",
      "durationMs": 675.9569999999826,
      "styleRecalcs": 10,
      "styleRecalcDurationMs": 6.932,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 463.012,
      "heapDeltaBytes": 17200852,
      "heapUsedBytes": 77994324,
      "domNodes": 16,
      "jsHeapTotalBytes": 4980736,
      "scriptDurationMs": 166.191,
      "eventListeners": 2,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.799999999999272
    },
    {
      "name": "dom-widget-clipping",
      "durationMs": 735.418999999979,
      "styleRecalcs": 10,
      "styleRecalcDurationMs": 8.105,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 490.284,
      "heapDeltaBytes": 18239156,
      "heapUsedBytes": 80689096,
      "domNodes": 16,
      "jsHeapTotalBytes": 5242880,
      "scriptDurationMs": 173.036,
      "eventListeners": 2,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333332,
      "p95FrameDurationMs": 16.699999999999818
    },
    {
      "name": "large-graph-idle",
      "durationMs": 2043.6900000000264,
      "styleRecalcs": 5,
      "styleRecalcDurationMs": 7.348000000000001,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 548.688,
      "heapDeltaBytes": 3118472,
      "heapUsedBytes": 82806036,
      "domNodes": -249,
      "jsHeapTotalBytes": -1843200,
      "scriptDurationMs": 42.376999999999995,
      "eventListeners": -154,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333332,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "large-graph-idle",
      "durationMs": 2033.3590000000186,
      "styleRecalcs": 5,
      "styleRecalcDurationMs": 4.864,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 593.121,
      "heapDeltaBytes": 4306888,
      "heapUsedBytes": 83584484,
      "domNodes": -248,
      "jsHeapTotalBytes": -1581056,
      "scriptDurationMs": 33.88000000000001,
      "eventListeners": -152,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "large-graph-pan",
      "durationMs": 2708.0680000000257,
      "styleRecalcs": 68,
      "styleRecalcDurationMs": 14.252999999999998,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 1753.0049999999999,
      "heapDeltaBytes": -15043516,
      "heapUsedBytes": 65987700,
      "domNodes": -261,
      "jsHeapTotalBytes": 1040384,
      "scriptDurationMs": 841.9239999999999,
      "eventListeners": -182,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "large-graph-pan",
      "durationMs": 2448.2329999999592,
      "styleRecalcs": 68,
      "styleRecalcDurationMs": 13.707999999999998,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 1717.2350000000001,
      "heapDeltaBytes": -588072,
      "heapUsedBytes": 79792404,
      "domNodes": -245,
      "jsHeapTotalBytes": 2052096,
      "scriptDurationMs": 826.8259999999999,
      "eventListeners": -152,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333332,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "large-graph-zoom",
      "durationMs": 3741.700000000037,
      "styleRecalcs": 61,
      "styleRecalcDurationMs": 10.873999999999999,
      "layouts": 60,
      "layoutDurationMs": 13.732,
      "taskDurationMs": 1752.3200000000002,
      "heapDeltaBytes": 9834092,
      "heapUsedBytes": 75136620,
      "domNodes": -257,
      "jsHeapTotalBytes": 786432,
      "scriptDurationMs": 782.267,
      "eventListeners": -148,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "large-graph-zoom",
      "durationMs": 3879.7140000000354,
      "styleRecalcs": 61,
      "styleRecalcDurationMs": 11.410999999999998,
      "layouts": 60,
      "layoutDurationMs": 14.266000000000002,
      "taskDurationMs": 1816.2700000000002,
      "heapDeltaBytes": 10721196,
      "heapUsedBytes": 75309836,
      "domNodes": -258,
      "jsHeapTotalBytes": 524288,
      "scriptDurationMs": 809.1149999999999,
      "eventListeners": -178,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.799999999999272
    },
    {
      "name": "legacy-node-drag",
      "durationMs": 3107.61500000001,
      "styleRecalcs": 41,
      "styleRecalcDurationMs": 6.164,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 1936.034,
      "heapDeltaBytes": 17516484,
      "heapUsedBytes": 83205732,
      "domNodes": -256,
      "jsHeapTotalBytes": 1204224,
      "scriptDurationMs": 941.8809999999999,
      "eventListeners": 188,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.670000000000012,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "legacy-node-drag",
      "durationMs": 3144.903999999997,
      "styleRecalcs": 41,
      "styleRecalcDurationMs": 6.13,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 1962.1960000000001,
      "heapDeltaBytes": 25340836,
      "heapUsedBytes": 91317964,
      "domNodes": 2,
      "jsHeapTotalBytes": 417792,
      "scriptDurationMs": 974.545,
      "eventListeners": 188,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.699999999999818
    },
    {
      "name": "minimap-idle",
      "durationMs": 2030.2560000000085,
      "styleRecalcs": 5,
      "styleRecalcDurationMs": 4.966999999999999,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 640.8070000000001,
      "heapDeltaBytes": -5038196,
      "heapUsedBytes": 81845376,
      "domNodes": -253,
      "jsHeapTotalBytes": -757760,
      "scriptDurationMs": 36.23,
      "eventListeners": -184,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333335,
      "p95FrameDurationMs": 16.699999999999818
    },
    {
      "name": "minimap-idle",
      "durationMs": 2058.699000000047,
      "styleRecalcs": 6,
      "styleRecalcDurationMs": 6.172000000000001,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 669.2239999999999,
      "heapDeltaBytes": -9195016,
      "heapUsedBytes": 78206676,
      "domNodes": -263,
      "jsHeapTotalBytes": 552960,
      "scriptDurationMs": 34.11,
      "eventListeners": -184,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333335,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "subgraph-dom-widget-clipping",
      "durationMs": 633.0780000000118,
      "styleRecalcs": 48,
      "styleRecalcDurationMs": 11.991000000000001,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 418.025,
      "heapDeltaBytes": 13520044,
      "heapUsedBytes": 77150880,
      "domNodes": 22,
      "jsHeapTotalBytes": 5505024,
      "scriptDurationMs": 141.277,
      "eventListeners": 8,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333335,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "subgraph-dom-widget-clipping",
      "durationMs": 657.6519999999846,
      "styleRecalcs": 47,
      "styleRecalcDurationMs": 12.389999999999999,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 439.212,
      "heapDeltaBytes": 13827020,
      "heapUsedBytes": 77319220,
      "domNodes": 20,
      "jsHeapTotalBytes": 5505024,
      "scriptDurationMs": 150.519,
      "eventListeners": 8,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333332,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "subgraph-idle",
      "durationMs": 2017.1550000000025,
      "styleRecalcs": 10,
      "styleRecalcDurationMs": 8.361,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 526.113,
      "heapDeltaBytes": 6839024,
      "heapUsedBytes": 70434820,
      "domNodes": -277,
      "jsHeapTotalBytes": 4972544,
      "scriptDurationMs": 9.974999999999998,
      "eventListeners": -200,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333335,
      "p95FrameDurationMs": 16.799999999999272
    },
    {
      "name": "subgraph-idle",
      "durationMs": 2018.743000000029,
      "styleRecalcs": 9,
      "styleRecalcDurationMs": 9.066,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 525.286,
      "heapDeltaBytes": 13843460,
      "heapUsedBytes": 77115736,
      "domNodes": -279,
      "jsHeapTotalBytes": 4972544,
      "scriptDurationMs": 9.978999999999997,
      "eventListeners": -200,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.699999999999818
    },
    {
      "name": "subgraph-mouse-sweep",
      "durationMs": 1706.0999999999922,
      "styleRecalcs": 78,
      "styleRecalcDurationMs": 28.377,
      "layouts": 18,
      "layoutDurationMs": 5.590000000000001,
      "taskDurationMs": 867.352,
      "heapDeltaBytes": 627212,
      "heapUsedBytes": 64324408,
      "domNodes": -274,
      "jsHeapTotalBytes": 6021120,
      "scriptDurationMs": 106.648,
      "eventListeners": -232,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "subgraph-mouse-sweep",
      "durationMs": 1757.4169999999754,
      "styleRecalcs": 76,
      "styleRecalcDurationMs": 28.892,
      "layouts": 18,
      "layoutDurationMs": 5.726,
      "taskDurationMs": 891.926,
      "heapDeltaBytes": 11832780,
      "heapUsedBytes": 74314604,
      "domNodes": -275,
      "jsHeapTotalBytes": 4710400,
      "scriptDurationMs": 109.682,
      "eventListeners": -200,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333332,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "subgraph-transition-enter",
      "durationMs": 1384.9289999999996,
      "styleRecalcs": 17,
      "styleRecalcDurationMs": 26.70399999999999,
      "layouts": 5,
      "layoutDurationMs": 11.646,
      "taskDurationMs": 923.9269999999999,
      "heapDeltaBytes": -6432988,
      "heapUsedBytes": 81203740,
      "domNodes": 13587,
      "jsHeapTotalBytes": 11010048,
      "scriptDurationMs": 30.98,
      "eventListeners": 2387,
      "totalBlockingTimeMs": 132,
      "frameDurationMs": 16.66333333333335,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "viewport-pan-sweep",
      "durationMs": 8677.388000000008,
      "styleRecalcs": 247,
      "styleRecalcDurationMs": 36.23,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 5979.051,
      "heapDeltaBytes": 16866544,
      "heapUsedBytes": 96702916,
      "domNodes": -255,
      "jsHeapTotalBytes": 2576384,
      "scriptDurationMs": 2726.504,
      "eventListeners": -168,
      "totalBlockingTimeMs": 3,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "viewport-pan-sweep",
      "durationMs": 9090.60199999999,
      "styleRecalcs": 248,
      "styleRecalcDurationMs": 37.549,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 6091.8640000000005,
      "heapDeltaBytes": -12502148,
      "heapUsedBytes": 66599828,
      "domNodes": -224,
      "jsHeapTotalBytes": 2875392,
      "scriptDurationMs": 2775.322,
      "eventListeners": -166,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.799999999999272
    },
    {
      "name": "vue-large-graph-idle",
      "durationMs": 15370.201000000008,
      "styleRecalcs": 0,
      "styleRecalcDurationMs": 0,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 15068.988,
      "heapDeltaBytes": -22010188,
      "heapUsedBytes": 179265932,
      "domNodes": -6542,
      "jsHeapTotalBytes": 204800,
      "scriptDurationMs": 258.775,
      "eventListeners": -7478,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 17.776666666666642,
      "p95FrameDurationMs": 16.799999999999272
    },
    {
      "name": "vue-large-graph-idle",
      "durationMs": 15212.087999999994,
      "styleRecalcs": 0,
      "styleRecalcDurationMs": 0,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 14839.030999999999,
      "heapDeltaBytes": -22157156,
      "heapUsedBytes": 172365844,
      "domNodes": -6542,
      "jsHeapTotalBytes": 2564096,
      "scriptDurationMs": 264.89399999999995,
      "eventListeners": -7480,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 17.223333333333237,
      "p95FrameDurationMs": 16.799999999999272
    },
    {
      "name": "vue-large-graph-pan",
      "durationMs": 18137.586999999996,
      "styleRecalcs": 129,
      "styleRecalcDurationMs": 16.751000000000015,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 17948.563,
      "heapDeltaBytes": -30618376,
      "heapUsedBytes": 164161396,
      "domNodes": -6542,
      "jsHeapTotalBytes": 991232,
      "scriptDurationMs": 852.6479999999999,
      "eventListeners": -7474,
      "totalBlockingTimeMs": 59,
      "frameDurationMs": 17.780000000000047,
      "p95FrameDurationMs": 16.799999999999272
    },
    {
      "name": "vue-large-graph-pan",
      "durationMs": 18487.84999999998,
      "styleRecalcs": 133,
      "styleRecalcDurationMs": 17.369000000000025,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 18332.819,
      "heapDeltaBytes": -23068588,
      "heapUsedBytes": 176600572,
      "domNodes": -6542,
      "jsHeapTotalBytes": -270336,
      "scriptDurationMs": 861.6700000000001,
      "eventListeners": -7476,
      "totalBlockingTimeMs": 28,
      "frameDurationMs": 17.776666666666763,
      "p95FrameDurationMs": 16.799999999999272
    },
    {
      "name": "vue-node-resize-workload",
      "durationMs": 5495.923000000004,
      "styleRecalcs": 20,
      "styleRecalcDurationMs": 74.398,
      "layouts": 20,
      "layoutDurationMs": 24.937,
      "taskDurationMs": 5460.63,
      "heapDeltaBytes": -2774688,
      "heapUsedBytes": 192247052,
      "domNodes": -6542,
      "jsHeapTotalBytes": 17244160,
      "scriptDurationMs": 94.682,
      "eventListeners": -7478,
      "totalBlockingTimeMs": 269,
      "frameDurationMs": 17.220000000000013,
      "p95FrameDurationMs": 16.799999999999272
    },
    {
      "name": "vue-node-resize-workload",
      "durationMs": 5425.032000000101,
      "styleRecalcs": 20,
      "styleRecalcDurationMs": 76.99700000000001,
      "layouts": 20,
      "layoutDurationMs": 24.999000000000006,
      "taskDurationMs": 5385.619999999999,
      "heapDeltaBytes": -29982256,
      "heapUsedBytes": 171615464,
      "domNodes": -6542,
      "jsHeapTotalBytes": 17506304,
      "scriptDurationMs": 97.59499999999998,
      "eventListeners": -7476,
      "totalBlockingTimeMs": 315,
      "frameDurationMs": 17.219999999999953,
      "p95FrameDurationMs": 16.80000000000109
    },
    {
      "name": "vue-zoom-out-idle",
      "durationMs": 7588.361000000021,
      "styleRecalcs": 0,
      "styleRecalcDurationMs": 0,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 7470.005,
      "heapDeltaBytes": -5716552,
      "heapUsedBytes": 171880732,
      "domNodes": 0,
      "jsHeapTotalBytes": -14680064,
      "scriptDurationMs": 114.68399999999995,
      "eventListeners": -10,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 17.776666666666642,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "vue-zoom-out-idle",
      "durationMs": 7707.576000000017,
      "styleRecalcs": 0,
      "styleRecalcDurationMs": 0,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 7483.091,
      "heapDeltaBytes": -2015492,
      "heapUsedBytes": 171365096,
      "domNodes": 0,
      "jsHeapTotalBytes": -3145728,
      "scriptDurationMs": 114.05099999999996,
      "eventListeners": -10,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 17.776666666666642,
      "p95FrameDurationMs": 16.799999999999272
    },
    {
      "name": "workflow-execution",
      "durationMs": 135.42300000000296,
      "styleRecalcs": 8,
      "styleRecalcDurationMs": 19.442,
      "layouts": 3,
      "layoutDurationMs": 1.8890000000000002,
      "taskDurationMs": 100.947,
      "heapDeltaBytes": 3156076,
      "heapUsedBytes": 65082288,
      "domNodes": 133,
      "jsHeapTotalBytes": 262144,
      "scriptDurationMs": 11.463,
      "eventListeners": 17,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.699999999999818
    },
    {
      "name": "workflow-execution",
      "durationMs": 451.43899999993664,
      "styleRecalcs": 13,
      "styleRecalcDurationMs": 26.379,
      "layouts": 4,
      "layoutDurationMs": 2.004,
      "taskDurationMs": 122.86099999999998,
      "heapDeltaBytes": 4751280,
      "heapUsedBytes": 66892320,
      "domNodes": 117,
      "jsHeapTotalBytes": 0,
      "scriptDurationMs": 9.940000000000001,
      "eventListeners": 65,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333335,
      "p95FrameDurationMs": 16.699999999999818
    }
  ]
}

🔬 E2E Coverage

Metric Covered Total Pct
Lines 50896 77170 66.0% 🟡
Functions 0 0 — —
Branches 0 0 — —
Top 10 files by uncovered lines
File Coverage Missed
src/LGraphCanvas.ts 67.6% 1157
src/LGraphNode.ts 69.9% 388
src/extensions/core/cameraInfo/CameraInfoViewport.ts 2.0% 343
src/renderer/extensions/layerEditor/composables/useLayerEditorSession.ts 40.1% 332
src/platform/workspace/stores/workspaceAuthStore.ts 33.1% 331
src/platform/workspace/stores/billingOperationStore.ts 7.9% 313
src/LGraph.ts 79.1% 263
src/platform/workspace/stores/teamWorkspaceStore.ts 38.9% 256
src/scripts/app.ts 71.8% 251
src/core/billing/operationLifecycle.ts 0.9% 226

@github-actions github-actions Bot added the risk:xhigh PR risk grade (advisory shadow check; grader-owned) label Sep 16, 2026
@coderabbitai

coderabbitai Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 83e05c94-b268-4995-8f3b-78a4af538d74

📥 Commits

Reviewing files that changed from the base of the PR and between 31346d1 and 367601d.

📒 Files selected for processing (6)
  • src/platform/workspace/billing/customerAttention.test.ts
  • src/platform/workspace/billing/customerAttention.ts
  • src/platform/workspace/billing/sdk/billingSdkStore.ts
  • src/platform/workspace/billing/sdk/topupOperationView.test.ts
  • src/platform/workspace/billing/sdk/topupOperationView.ts
  • src/platform/workspace/stores/billingOperationStore.ts
💤 Files with no reviewable changes (1)
  • src/platform/workspace/billing/sdk/topupOperationView.ts

Included review availability: Your plan provides up to 8 included reviews per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The pull request extracts customer-attention logic into a shared billing module. Billing operation selectors use the new predicate. The former top-up view helper is removed, and predicate coverage moves to a dedicated test file.

Changes

Billing customer attention

Layer / File(s) Summary
Customer-attention predicate
src/platform/workspace/billing/customerAttention.ts, src/platform/workspace/billing/customerAttention.test.ts
Adds the operation contract and needsCustomerAttention. Tests cover pending, reconciliation, and settled operation states.
Billing store integration
src/platform/workspace/stores/billingOperationStore.ts, src/platform/workspace/billing/sdk/billingSdkStore.ts
Updates billing selectors and imports to use the shared predicate. The top-up selector retains its !op.dismissed filter.
View helper removal
src/platform/workspace/billing/sdk/topupOperationView.ts, src/platform/workspace/billing/sdk/topupOperationView.test.ts
Removes the former view-level helper and its related assertions.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Refactor

Suggested reviewers: christian-byrne

Merge Risk: ⚪ Minimal · up to 36760

The refactor preserves the reachable top-up attention flow, and no unresolved current-head risk remains.

🚥 Pre-merge checks | ✅ 7
✅ Passed checks (7 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the billing refactor and the consolidation of the customer-attention predicate.
Description check ✅ Passed The description is detailed and explains the motivation, implementation, behavior impact, testing, and review context. It does not use the template headings exactly, but it provides the required infor…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
End-To-End Regression Coverage For Fixes ✅ Passed The PR title and commit subject use “refactor” language. They do not use bug-fix language such as “fix” or “hotfix”. Therefore, the end-to-end regression coverage failure conditions are not all met.
Website End-To-End Regression Coverage ✅ Passed No changed file is under apps/website/src/ or apps/website/public/. The PR changes only billing code and tests under src/platform/workspace/billing/, so this website-specific check does not appl…
Adr Compliance For Entity/Litegraph Changes ✅ Passed The changed files are under src/platform/workspace/billing/. None are under src/lib/litegraph/, src/ecs/, or graph-entity-related paths. The ADR compliance check is therefore not applicable.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch jaewon/fe-2216-customer-attention-predicate

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Sep 16, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

@@            Coverage Diff             @@
##             main   #17792      +/-   ##
==========================================
+ Coverage   82.50%   83.49%   +0.99%     
==========================================
  Files        2823     2170     -653     
  Lines      141475   125511   -15964     
  Branches    36405    33788    -2617     
==========================================
- Hits       116725   104798   -11927     
+ Misses      23543    20419    -3124     
+ Partials     1207      294     -913     
Flag Coverage Δ
e2e 65.95% <ø> (-0.03%) ⬇️
unit 78.47% <100.00%> (-0.01%) ⬇️
website-unit ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...rc/platform/workspace/billing/customerAttention.ts 100.00% <100.00%> (ø)
.../platform/workspace/billing/sdk/billingSdkStore.ts 90.19% <ø> (ø)
...atform/workspace/billing/sdk/topupOperationView.ts 72.09% <ø> (-3.42%) ⬇️
...platform/workspace/stores/billingOperationStore.ts 92.61% <100.00%> (-0.12%) ⬇️

... and 661 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@huang47

huang47 commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Before/after check for 367601df: local cloud builds with mocked auth and billing responses; no live payment was made. This covers the top-up verification flow, not the stale-action-URL test case.

Before (1524e0ea) After (367601df)
Pending top-up with requires_action opens “Verify your payment”. Same verification step.
1d7395dae0bb-pr-17792-before-after.mp4

@huang47 huang47 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One test-coverage suggestion below. Before/after verification capture.

authenticationState: null
} as const

it.for([

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Can we add a settled operation with a stale action URL to the table? Removing the status === 'pending' guard still passes every case in src/platform/workspace/billing/customerAttention.test.ts:12, so the test does not pin the one semantic difference between the merged predicates.

Before/after verification capture, mocked billing responses; this does not cover the stale-action-URL case.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, will open follow up

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed, and the mutation you describe is exactly the one that survives. I removed the status === 'pending' guard locally and all six cases stayed green — it is the only semantic difference between the two merged predicates (the old topupOperationView.needsCustomerAttention had no status guard at all; billingOperationStore did), so it was the one thing the table had to pin and did not.

Case written and verified:

[
  'leaves a settled operation alone once its verification link is stale',
  { status: 'succeeded', actionUrl: 'https://verify.example' },
  false
]

Red on the guard-removed mutant (1 failed / 6 passed), green on the real predicate (7 passed); oxfmt, oxlint --type-aware, eslint and typecheck all clean. Committed locally as 009e997584.

Not pushed: this PR is at position 1 in the merge queue (enqueued 02:32Z), and pushing means dequeuing, which dismisses your approval and blocks re-queue. The test adds no behavior, so it is not worth spending the queue slot. Jaewon will land it as a follow-up right after this merges rather than resetting the queue for it.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Follow-up is open: #17803 — adds exactly the case you asked for.

[
  'leaves a settled operation alone once its verification link is stale',
  { status: 'succeeded', actionUrl: 'https://verify.example' },
  false
]

Mutation-checked: with status === 'pending' removed, 1 failed / 6 passed and the failure is this row; with the real predicate, 7 passed. oxfmt, oxlint --type-aware, eslint and typecheck clean.

It is based on this PR's branch since customerAttention.ts isn't on main yet, so it will retarget to main once this one merges.

@dante01yoon
dante01yoon added this pull request to the merge queue Sep 16, 2026
Merged via the queue into main with commit 345ff11 Sep 16, 2026
158 of 159 checks passed
@dante01yoon
dante01yoon deleted the jaewon/fe-2216-customer-attention-predicate branch September 16, 2026 02:58
@comfy-pr-bot

Copy link
Copy Markdown
Member

⚠️ Backport to core/1.54 failed

Reason: Merge conflicts detected during cherry-pick of 345ff11

The auto-backport could not be completed automatically. Please backport
manually onto branch backport-17792-to-core-1.54 (from origin/core/1.54) and
open a PR to core/1.54.

This may be a stacking conflict rather than a real one. #17750 are still open against core/1.54. If this PR sits on top of any of them, the conflict will disappear once they merge — wait for that, then remove and re-add the needs-backport label to re-run this workflow.

📄 Conflicting files
src/platform/workspace/billing/sdk/billingSdkStore.ts
src/platform/workspace/billing/sdk/topupOperationView.test.ts
src/platform/workspace/billing/sdk/topupOperationView.ts
🤖 Prompt for AI Agents
Backport PR #17792 (https://github.com/Comfy-Org/ComfyUI_frontend/pull/17792) to core/1.54.
Cherry-pick merge commit 345ff1191b555d32bf58d743de288d71901b2d65 onto new branch
backport-17792-to-core-1.54 from origin/core/1.54.
Resolve conflicts in: src/platform/workspace/billing/sdk/billingSdkStore.ts src/platform/workspace/billing/sdk/topupOperationView.test.ts src/platform/workspace/billing/sdk/topupOperationView.ts .

> **This may be a stacking conflict rather than a real one.** #17750 are still open against `core/1.54`. If this PR sits on top of any of them, the conflict will disappear once they merge — wait for that, then remove and re-add the `needs-backport` label to re-run this workflow.

For test snapshots (browser_tests/**/*-snapshots/), accept PR version if
changed in original PR, else keep target. For package.json versions, keep
target branch. For pnpm-lock.yaml, regenerate with pnpm install.
Ask user for non-obvious conflicts.
Create PR titled "[backport core/1.54] <original title>" with label "backport".
See .github/workflows/pr-backport.yaml for workflow details.

cc @dante01yoon

pull Bot pushed a commit to Penguinjanator/ComfyUI_frontend that referenced this pull request Sep 16, 2026
…e change as superseded (Comfy-Org#17828)

Linear FE-2331. Follow-up from the Comfy-Org#17798 review.

## Why

A billing read that fails is still an answer about the scope it was
issued for. When the host switches workspace or disposes the reader
while the request is in flight, the credits, status, and capabilities
readers hand the caller back the original failure code —
`REQUEST_FAILED`, `NOT_FOUND`, `CONFLICT` — instead of `SUPERSEDED`. A
caller that distinguishes "this read no longer applies" from "this read
failed" then retries, reports, or surfaces an error banner for a
workspace the user already left.

The same gap was fixed for `plans.ts` and `paymentMethods.ts` in Comfy-Org#17798;
these three readers were written before that and kept the old shape.

## Root cause

The lifecycle fence ran only on the success path:

```ts
const result = await requestBalance(scope)
if (result.status !== 'ok') {
  if (result.code === 'ACCESS_DENIED' && scopeTracker.isCurrent(context)) {
    snapshot = undefined
  }
  return result            // <- returns before the fence
}

if (lifetime.disposed || !scopeTracker.isCurrent(context)) {
  return { status: 'error', code: 'SUPERSEDED' }
}
```

Because the failure branch returned early, the failure never reached the
fence. The `ACCESS_DENIED` snapshot drop compensated with its own
`isCurrent` check, which is why the stale-scope case was handled for the
cache but not for the returned result.

## How

Move the fence to run immediately after the request settles, before
`result.status` is inspected, in `credits.ts`, `status.ts`, and
`capabilities.ts`. Any result — ok or error — that lands after a dispose
or a scope change is now reported as `SUPERSEDED`. The denial drop keeps
working for the current scope, and its now-redundant `isCurrent` guard
is removed since the fence has already returned for a stale one.

`capabilities.ts` is included because it carried the identical gap;
`plans.ts` and `paymentMethods.ts` already have this shape from Comfy-Org#17798.

## AS-IS / TO-BE

No UI change. This is SDK-internal error-code behavior on
`packages/account`:

| | AS-IS | TO-BE |
| --- | --- | --- |
| 500 lands after a workspace change | `{ code: 'REQUEST_FAILED',
httpStatus: 500 }` | `{ code: 'SUPERSEDED' }` |
| 500 lands after `dispose()` | `{ code: 'REQUEST_FAILED', httpStatus:
500 }` | `{ code: 'SUPERSEDED' }` |
| 500 lands in the current scope | `{ code: 'REQUEST_FAILED',
httpStatus: 500 }` | unchanged |
| 403 lands in the current scope | drops the snapshot | unchanged |

## Testing

- Added an `it.for` over two rows — the workspace changes, the reader is
disposed — to each of `credits.test.ts`, `status.test.ts`, and
`capabilities.test.ts`, gating a 500 behind the existing release-gate
transport helper so the failure settles after the supersede.
- All six new rows fail against the pre-fix source (`expected { status:
'error', code: 'REQUEST_FAILED', httpStatus: 500 } to deeply equal {
status: 'error', code: 'SUPERSEDED' }`) and pass with the fence moved.
- `packages/account` suite: 39 files, 634 tests passing.
- `pnpm typecheck`, `pnpm lint`, `pnpm format:check`, `pnpm knip`, and
`fallow audit --changed-since origin/main` all clean.
## Where this sits in the plan

Billing SDK track FE-2210 ([implementation plan
V2](https://app.notion.com/p/3d86d73d36508152b92cdbdfdfe83ac8)). Hybrid
model: top-up in-app, subscription management / invoices / payment
methods on the hosted billing app.

| Phase | Item | Ticket | Status |
| --- | --- | --- | --- |
| 1-2 | Session core, transport, readers | FE-2211/2212/2213 | merged |
| 3 | Operation lifecycle, commands, eight-state projection |
FE-2227/2214/2223 | merged (Comfy-Org#17655) |
| 4 | `@comfyorg/account-ui` composables + `CheckoutSteps` | FE-2215 |
merged (Comfy-Org#17662, Comfy-Org#17663) |
| 5 slice 1 | Top-up through the SDK behind `billing_sdk_topup_enabled`
| FE-2216 | merged (Comfy-Org#17665) |
| rollout C | `hosted_billing_destination` server flag read by the host
| FE-2218 | merged (Comfy-Org#17716) |
| rollout C | `hostedDestination` port on the lifecycle, value on
operation state | FE-2210/2218 | open (Comfy-Org#17783) |
| 7 prep | Scope-source port + credentialed transport (BFF / cookie
hosts) | FE-2218 | merged (Comfy-Org#17782) |
| 7 prep | `@comfyorg/account` → `@comfyorg/account-core` rename |
FE-2218 | local, opens after Comfy-Org#17783 and Comfy-Org#17794 |
| 7 prep | `billing-contract` route builder + `return_to` registry |
FE-2218 | merged (Comfy-Org#17795) |
| 3A-3 | Workshop adapter over `createHostedTopupCheckout` | FE-2214 |
merged (Comfy-Org#17793) |
| 8 core | `previewSubscribe` command | FE-2331 | merged (Comfy-Org#17797) |
| 8 core | Plans + saved payment-methods readers | FE-2331 | open
(Comfy-Org#17798, whole Phase 8) |
| 8 ui | account-ui composables (`usePlans`, `usePaymentMethods`,
`usePreviewSubscribe`) | FE-2331 | in Comfy-Org#17798 |
| 7 | billing-web own-origin session, sign-in, SDK composition | FE-2218
| in Comfy-Org#17798 |
| 7 | billing-web unit tests in CI (`ci-billing-web-unit.yaml`) |
FE-2218 | open (Comfy-Org#17827) |
| 7 | ingest CORS + top-up return hosts for billing.comfy.org and its
previews (Comfy-Org/cloud) | FE-2218 | open (cloud PR 9512) |
| 8 ui | billing-web `/v1` entry routing + subscription / payment-method
surfaces | FE-2331 | in Comfy-Org#17798 |
| 7 | npm publish (`ingest-types`, `account-core`, `billing-contract`),
Platform install, billing-web live top-up | FE-2218 | todo |
| 6 | Contract tests + live E2E per flow × consumer | FE-2217 | todo |
| 5 slice 2 | Subscription flows through the SDK | FE-2216 | todo
(plan-change decision) |
| follow-up | One `needsCustomerAttention` predicate (from the Comfy-Org#17665
review) | FE-2216 | merged (Comfy-Org#17792) |
| follow-up | Opaque `BillingServerCode` (from the Comfy-Org#17656 review) |
FE-2227 | open (Comfy-Org#17794) |
| follow-up | `useCredits` clears on `SUPERSEDED` (from the Comfy-Org#17799
review) | FE-2215 | open (Comfy-Org#17824) |
| follow-up | credits / status / capabilities readers fence a late
failure as `SUPERSEDED` (from the Comfy-Org#17798 review) | FE-2331 | **this PR**
|

```mermaid
flowchart LR
  P3["Phase 3 core lifecycle (merged)"]
  P4["Phase 4 account-ui (merged)"]
  P5["Phase 5 slice 1 top-up flag (merged)"]
  FC["PR 17716 hosted_billing_destination flag (merged)"]
  HD["PR 17783 hostedDestination port"]
  SS["PR 17782 scope-source port + credentialed transport"]
  RN["account-core rename"]
  RB["billing-contract route builder + return_to"]
  WS["Workshop adapter"]
  P8PV["previewSubscribe command"]
  P8RD["plans + payment-methods readers"]
  P8["account-ui hosted composables"]
  BWS["billing-web session + sign-in"]
  BWV["billing-web /v1 surfaces"]
  CORS["cloud PR 9512 ingest CORS + return hosts"]
  PUB["npm publish account-core / billing-contract"]
  P7["Phase 7 host proof: Platform + billing-web live"]
  P6["Phase 6 evidence"]
  S2["Phase 5 slice 2 subscription"]
  FU9["customer-attention predicate"]
  FU11["opaque BillingServerCode"]
  FU12["useCredits clears on SUPERSEDED"]
  FU13["reader late-failure fence"]
  P3 --> HD
  FC --> HD
  HD --> RB
  P3 --> SS
  SS --> P7
  RB --> P7
  P3 --> RN
  RN --> PUB
  RB --> PUB
  PUB --> P7
  P3 --> P8PV
  P3 --> P8RD
  P8PV --> P8
  P8RD --> P8
  P4 --> P8
  P8 --> S2
  P8 --> BWS
  BWS --> BWV
  RB --> BWV
  BWV --> P7
  CORS --> P7
  P5 --> P6
  P5 --> WS
  P5 --> FU9
  P3 --> FU11
  P4 --> FU12
  P3 --> FU13
  style P3 fill:#d4edda,stroke:#155724
  style P4 fill:#d4edda,stroke:#155724
  style P5 fill:#d4edda,stroke:#155724
  style FC fill:#d4edda,stroke:#155724
  style SS fill:#d4edda,stroke:#155724
  style RB fill:#d4edda,stroke:#155724
  style WS fill:#d4edda,stroke:#155724
  style FU9 fill:#d4edda,stroke:#155724
  style P8PV fill:#d4edda,stroke:#155724
  style FU13 stroke:#0366d6,stroke-width:4px
```
pull Bot pushed a commit to Mu-L/ComfyUI_frontend that referenced this pull request Sep 16, 2026
…g the previous scope's (Comfy-Org#17824)

Linear FE-2215. Follow-up from the Comfy-Org#17799 review.

## Why

The exposure this SDK track started from was a reader serving the
previous
account's balance. The core closed it: a read that settles after the
host
moved to another workspace is refused with `SUPERSEDED` rather than
published.
`useCredits` then reopened it in the view layer — it treated that
refusal as an
ordinary failure, kept `balance` untouched, and went on rendering the
credits
of the workspace the user had just left.

## Root cause

`useCredits.refresh` had two branches: publish on `ok`, keep the
previous
balance and surface the failure on anything else. A scope change is
neither. It
is not something the user did, there is nothing to retry, and the value
being
kept belongs to an account that is no longer on screen. The three
composables
added in Comfy-Org#17799 already split that branch out; the five older ones never
mentioned `SUPERSEDED`.

## How

`useCredits` clears both `balance` and `failure` on a `SUPERSEDED` read,
the
same three lines as `usePaymentMethods`, and its docstring keeps the "a
failed
refresh keeps the previous balance" promise only for ordinary failures.

The other four pre-existing composables are unchanged:

- `useBillingOperation` — the lifecycle dispatches `superseded` to every
operation on a scope change and republishes it, so the state this
composable
  holds is already the truthful new one rather than a stale one.
- `usePaymentAttempt` — its visible surface is `projection`, and
  `projectPaymentStep` maps a superseded operation back to `select`.
- `useCheckout` / `useTopUp` — `result` is the outcome handed back to
the
caller of a command, carries no scope-bound data, and the step the
shipped
  `CheckoutSteps` renders comes from the projection above.

The test fixture's fake session can now move to another workspace, so
the real
credits reader produces `SUPERSEDED` the way the workspace switcher
does.

## AS-IS / TO-BE

No UI change. AS-IS: after a workspace switch, a host bound to
`useCredits`
keeps showing the previous workspace's balance until something else
clears it.
TO-BE: the balance goes undefined and the host renders its empty state
until
the read for the new workspace settles, with no error shown for a switch
the
user did not make.

## Testing

`useCredits.test.ts` gains a row that moves the harness to another
workspace
mid-refresh and asserts the balance is dropped with no failure reported;
it
fails on pre-fix code. The existing row proving that an ordinary failed
refresh
keeps the previous balance stays.
## Where this sits in the plan

Billing SDK track FE-2210 ([implementation plan
V2](https://app.notion.com/p/3d86d73d36508152b92cdbdfdfe83ac8)). Hybrid
model: top-up in-app, subscription management / invoices / payment
methods on the hosted billing app.

| Phase | Item | Ticket | Status |
| --- | --- | --- | --- |
| 1-2 | Session core, transport, readers | FE-2211/2212/2213 | merged |
| 3 | Operation lifecycle, commands, eight-state projection |
FE-2227/2214/2223 | merged (Comfy-Org#17655) |
| 4 | `@comfyorg/account-ui` composables + `CheckoutSteps` | FE-2215 |
merged (Comfy-Org#17662, Comfy-Org#17663) |
| 5 slice 1 | Top-up through the SDK behind `billing_sdk_topup_enabled`
| FE-2216 | merged (Comfy-Org#17665) |
| rollout C | `hosted_billing_destination` server flag read by the host
| FE-2218 | merged (Comfy-Org#17716) |
| rollout C | `hostedDestination` port on the lifecycle, value on
operation state | FE-2210/2218 | open (Comfy-Org#17783) |
| 7 prep | Scope-source port + credentialed transport (BFF / cookie
hosts) | FE-2218 | merged (Comfy-Org#17782) |
| 7 prep | `@comfyorg/account` → `@comfyorg/account-core` rename |
FE-2218 | local, opens after Comfy-Org#17783 and Comfy-Org#17794 |
| 7 prep | `billing-contract` route builder + `return_to` registry |
FE-2218 | merged (Comfy-Org#17795) |
| 3A-3 | Workshop adapter over `createHostedTopupCheckout` | FE-2214 |
merged (Comfy-Org#17793) |
| 8 core | `previewSubscribe` command | FE-2331 | merged (Comfy-Org#17797) |
| 8 core | Plans + saved payment-methods readers | FE-2331 | open
(Comfy-Org#17798) |
| 8 ui | account-ui composables (`usePlans`, `usePaymentMethods`,
`usePreviewSubscribe`) | FE-2331 | open (Comfy-Org#17799) |
| 7 | billing-web own-origin session, sign-in, SDK composition | FE-2218
| open (Comfy-Org#17807) |
| 8 ui | billing-web `/v1` entry routing + subscription / payment-method
surfaces | FE-2331 | open (Comfy-Org#17809) |
| 7 | npm publish (`ingest-types`, `account-core`, `billing-contract`),
Platform install, billing-web live top-up | FE-2218 | todo |
| 6 | Contract tests + live E2E per flow × consumer | FE-2217 | todo |
| 5 slice 2 | Subscription flows through the SDK | FE-2216 | todo
(plan-change decision) |
| follow-up | One `needsCustomerAttention` predicate (from the Comfy-Org#17665
review) | FE-2216 | merged (Comfy-Org#17792) |
| follow-up | Opaque `BillingServerCode` (from the Comfy-Org#17656 review) |
FE-2227 | open (Comfy-Org#17794) |
| follow-up | `useCredits` clears on `SUPERSEDED` (from the Comfy-Org#17799
review) | FE-2215 | **this PR** |

```mermaid
flowchart LR
  P3["Phase 3 core lifecycle (merged)"]
  P4["Phase 4 account-ui (merged)"]
  P5["Phase 5 slice 1 top-up flag (merged)"]
  FC["PR 17716 hosted_billing_destination flag (merged)"]
  HD["PR 17783 hostedDestination port"]
  SS["PR 17782 scope-source port + credentialed transport"]
  RN["account-core rename"]
  RB["billing-contract route builder + return_to"]
  WS["Workshop adapter"]
  P8PV["previewSubscribe command"]
  P8RD["plans + payment-methods readers"]
  P8["account-ui hosted composables"]
  BWS["billing-web session + sign-in"]
  BWV["billing-web /v1 surfaces"]
  PUB["npm publish account-core / billing-contract"]
  P7["Phase 7 host proof: Platform + billing-web live"]
  P6["Phase 6 evidence"]
  S2["Phase 5 slice 2 subscription"]
  FU9["customer-attention predicate"]
  FU11["opaque BillingServerCode"]
  FU12["useCredits clears on SUPERSEDED"]
  P3 --> HD
  FC --> HD
  HD --> RB
  P3 --> SS
  SS --> P7
  RB --> P7
  P3 --> RN
  RN --> PUB
  RB --> PUB
  PUB --> P7
  P3 --> P8PV
  P3 --> P8RD
  P8PV --> P8
  P8RD --> P8
  P4 --> P8
  P8 --> S2
  P8 --> BWS
  BWS --> BWV
  RB --> BWV
  BWV --> P7
  P5 --> P6
  P5 --> WS
  P5 --> FU9
  P3 --> FU11
  P4 --> FU12
  style P3 fill:#d4edda,stroke:#155724
  style P4 fill:#d4edda,stroke:#155724
  style P5 fill:#d4edda,stroke:#155724
  style FC fill:#d4edda,stroke:#155724
  style FU12 stroke:#0366d6,stroke-width:4px
```
pull Bot pushed a commit to Mu-L/ComfyUI_frontend that referenced this pull request Sep 16, 2026
…g#17827)

Linear FE-2218.

## Why

`apps/billing-web` has a Vitest suite (`App.test.ts`,
`EmbeddedCheckout.test.ts`, with ~10 more files landing in Comfy-Org#17798) that
runs in zero CI steps today.

`ci-tests-unit.yaml` runs the root Vitest suite and then loops over a
fixed package list (`account account-ui billing-contract
object-info-parser shared-frontend-utils design-system`) —
`@comfyorg/billing-web` is not in that loop, and the workflow's
`changes-filter` `should-run` gate excludes `apps/**` outright, so a
billing-web-only PR skips the job entirely. `apps/website` has its own
`ci-website-unit.yaml`; billing-web had no equivalent. A broken
billing-web test could merge green.

## How

New `.github/workflows/ci-billing-web-unit.yaml`, modelled on
`ci-website-unit.yaml`:

- Triggers on `push` to `main`, `pull_request` (`branches-ignore:
[wip/*, draft/*, temp/*]`), and `merge_group`. No `paths:` filter on the
triggers: a `paths:`-filtered workflow produces no check run at all when
the paths do not match, so it can never be a required check, and it
would leave the merge queue waiting.
- Gating moves into the job graph instead. A `changes` job runs
`./.github/actions/changes-filter`, and `billing-web-unit` is `needs:
changes` with `if: app-billing-web-changes == 'true' || packages-changes
== 'true'`. A new `app-billing-web-changes` output computed from
`apps/billing-web/**` is added to that action, next to the existing
`app-website-changes`; shared deps (`.nvmrc`, root `package.json`,
`pnpm-lock.yaml`, `pnpm-workspace.yaml`) fold in automatically like
every other `app-*` output, and the existing `packages-changes` already
covers `packages/**` — including `account`, `account-ui`, and
`billing-contract`.
- A `billing-web-unit-gate` job (`needs: [changes, billing-web-unit]`,
`if: always()`) emits the stable branch-protection context: it passes
when the unit job succeeded, or when it was skipped *and* filtering
itself succeeded and found no billing-web or package changes, and fails
otherwise. Same success/skip logic as `website-unit-gate`, so a
filter-step failure cannot be mistaken for "nothing to run".
- Standard `ubuntu-latest` + `./.github/actions/setup-frontend` (pnpm,
`.nvmrc` Node, lockfile-keyed pnpm store cache), plus the repo's usual
`${{ github.workflow }}-${{ github.ref }}` cancel-in-progress
concurrency and `contents: read`.
- Runs `pnpm --filter @comfyorg/billing-web test:coverage` and uploads
`apps/billing-web/coverage/lcov.info` to Codecov under flag
`billing-web`, re-rooted with `network_prefix: apps/billing-web/` so
paths cannot collide with root-app coverage. `fail_ci_if_error: ${{
github.event.pull_request.head.repo.fork != true }}`, matching the
website workflow — forks have no token, so upload failures cannot block
outside contributors.
- `codecov.yml` declares the new flag with `paths:
apps/billing-web/src/**` and `carryforward: false`, matching the
`website-unit` entry, so patch coverage is attributed correctly and a
missing upload is not papered over with stale data.

No typecheck or build job here: `pnpm typecheck` (root) already fans out
to `typecheck:billing-web`, `pnpm lint` already runs `pnpm --filter
@comfyorg/billing-web lint`, and both run on every PR through the
ungated `ci-lint-format.yaml`. `vite build` for billing-web is still
uncovered by CI — out of scope for this PR.

## AS-IS / TO-BE

No UI change.

- AS-IS: `grep -rn "billing-web" .github/workflows/` returns nothing.
The billing-web suite executes in no CI job on any event.
- TO-BE: `CI: Billing Web Unit` reports on every PR and merge-queue
candidate. A PR touching `apps/billing-web/**` or `packages/**` executes
the suite with coverage and reports it to Codecov under the
`billing-web` flag; any other PR skips the test job but still emits a
passing `billing-web-unit-gate`, so the check can be marked required.

## Testing

- `pnpm --filter @comfyorg/billing-web test:coverage` — 2 test files, 7
tests passed; 98.33% statements, 100% branches, 90% functions, 98.27%
lines. `apps/billing-web/coverage/lcov.info` written at the path the
workflow uploads.
- `yamllint --config-file .yamllint
.github/workflows/ci-billing-web-unit.yaml
.github/actions/changes-filter/action.yaml codecov.yml` — clean (same
linter and config as `ci-yaml-validation.yaml`). Workflow also parses
and resolves to the expected `on` (`push`/`pull_request`/`merge_group`)
and `jobs` (`changes`, `billing-web-unit`, `billing-web-unit-gate`)
structure.
- `diff` against `ci-website-unit.yaml` shows only name, path, and
filter-output renames plus the narrower `push: branches: [main]` — the
gate job's logic is byte-identical apart from those substitutions.
- Action pinning matches `.pinact.yaml`: `actions/checkout@v7` is in
`ignore_actions`, `codecov/codecov-action` is SHA-pinned to the same
commit `ci-website-unit.yaml` uses.
## Where this sits in the plan

Billing SDK track FE-2210 ([implementation plan
V2](https://app.notion.com/p/3d86d73d36508152b92cdbdfdfe83ac8)). Hybrid
model: top-up in-app, subscription management / invoices / payment
methods on the hosted billing app.

| Phase | Item | Ticket | Status |
| --- | --- | --- | --- |
| 1-2 | Session core, transport, readers | FE-2211/2212/2213 | merged |
| 3 | Operation lifecycle, commands, eight-state projection |
FE-2227/2214/2223 | merged (Comfy-Org#17655) |
| 4 | `@comfyorg/account-ui` composables + `CheckoutSteps` | FE-2215 |
merged (Comfy-Org#17662, Comfy-Org#17663) |
| 5 slice 1 | Top-up through the SDK behind `billing_sdk_topup_enabled`
| FE-2216 | merged (Comfy-Org#17665) |
| rollout C | `hosted_billing_destination` server flag read by the host
| FE-2218 | merged (Comfy-Org#17716) |
| rollout C | `hostedDestination` port on the lifecycle, value on
operation state | FE-2210/2218 | open (Comfy-Org#17783) |
| 7 prep | Scope-source port + credentialed transport (BFF / cookie
hosts) | FE-2218 | merged (Comfy-Org#17782) |
| 7 prep | `@comfyorg/account` → `@comfyorg/account-core` rename |
FE-2218 | local, opens after Comfy-Org#17783 and Comfy-Org#17794 |
| 7 prep | `billing-contract` route builder + `return_to` registry |
FE-2218 | merged (Comfy-Org#17795) |
| 3A-3 | Workshop adapter over `createHostedTopupCheckout` | FE-2214 |
merged (Comfy-Org#17793) |
| 8 core | `previewSubscribe` command | FE-2331 | merged (Comfy-Org#17797) |
| 8 core | Plans + saved payment-methods readers | FE-2331 | open
(Comfy-Org#17798, whole Phase 8) |
| 8 ui | account-ui composables (`usePlans`, `usePaymentMethods`,
`usePreviewSubscribe`) | FE-2331 | in Comfy-Org#17798 |
| 7 | billing-web own-origin session, sign-in, SDK composition | FE-2218
| in Comfy-Org#17798 |
| 7 | billing-web unit tests in CI (`ci-billing-web-unit.yaml`) |
FE-2218 | **this PR** |
| 7 | ingest CORS + top-up return hosts for billing.comfy.org and its
previews (Comfy-Org/cloud) | FE-2218 | open (cloud PR 9512) |
| 8 ui | billing-web `/v1` entry routing + subscription / payment-method
surfaces | FE-2331 | in Comfy-Org#17798 |
| 7 | npm publish (`ingest-types`, `account-core`, `billing-contract`),
Platform install, billing-web live top-up | FE-2218 | todo |
| 6 | Contract tests + live E2E per flow × consumer | FE-2217 | todo |
| 5 slice 2 | Subscription flows through the SDK | FE-2216 | todo
(plan-change decision) |
| follow-up | One `needsCustomerAttention` predicate (from the Comfy-Org#17665
review) | FE-2216 | merged (Comfy-Org#17792) |
| follow-up | Opaque `BillingServerCode` (from the Comfy-Org#17656 review) |
FE-2227 | open (Comfy-Org#17794) |
| follow-up | `useCredits` clears on `SUPERSEDED` (from the Comfy-Org#17799
review) | FE-2215 | open (Comfy-Org#17824) |

```mermaid
flowchart LR
  P3["Phase 3 core lifecycle (merged)"]
  P4["Phase 4 account-ui (merged)"]
  P5["Phase 5 slice 1 top-up flag (merged)"]
  FC["PR 17716 hosted_billing_destination flag (merged)"]
  HD["PR 17783 hostedDestination port"]
  SS["PR 17782 scope-source port + credentialed transport"]
  RN["account-core rename"]
  RB["billing-contract route builder + return_to"]
  WS["Workshop adapter"]
  P8PV["previewSubscribe command"]
  P8RD["plans + payment-methods readers"]
  P8["account-ui hosted composables"]
  BWS["billing-web session + sign-in"]
  BWV["billing-web /v1 surfaces"]
  CORS["cloud PR 9512 ingest CORS + return hosts"]
  PUB["npm publish account-core / billing-contract"]
  P7["Phase 7 host proof: Platform + billing-web live"]
  P6["Phase 6 evidence"]
  S2["Phase 5 slice 2 subscription"]
  FU9["customer-attention predicate"]
  FU11["opaque BillingServerCode"]
  FU12["useCredits clears on SUPERSEDED"]
  P3 --> HD
  FC --> HD
  HD --> RB
  P3 --> SS
  SS --> P7
  RB --> P7
  P3 --> RN
  RN --> PUB
  RB --> PUB
  PUB --> P7
  P3 --> P8PV
  P3 --> P8RD
  P8PV --> P8
  P8RD --> P8
  P4 --> P8
  P8 --> S2
  P8 --> BWS
  BWS --> BWV
  RB --> BWV
  BWV --> P7
  CORS --> P7
  P5 --> P6
  P5 --> WS
  P5 --> FU9
  P3 --> FU11
  P4 --> FU12
  style P3 fill:#d4edda,stroke:#155724
  style P4 fill:#d4edda,stroke:#155724
  style P5 fill:#d4edda,stroke:#155724
  style FC fill:#d4edda,stroke:#155724
  style SS fill:#d4edda,stroke:#155724
  style RB fill:#d4edda,stroke:#155724
  style WS fill:#d4edda,stroke:#155724
  style FU9 fill:#d4edda,stroke:#155724
  style P8PV fill:#d4edda,stroke:#155724
  style BWS stroke:#0366d6,stroke-width:4px
```
dante01yoon added a commit that referenced this pull request Sep 16, 2026
…own-origin session and v1 surfaces (#17799)

Linear FE-2331.

Stacked on #17798 (readers); carries #17797 (previewSubscribe, now on
main) until #17798 lands. #17807 (billing-web own-origin session +
sign-in) and #17809 (billing-web /v1 surfaces) were squash-merged into
this branch, so this PR is the whole Phase 8 view layer: account-ui
composables, the billing-web session/sign-in, and the subscription /
payment-method surfaces.

The plans catalog, the saved cards and the subscription quote are the
three
reads the hosted billing surfaces are built on, and the core now exposes
all
three. Nothing in the view layer could reach them: `BillingClient`
carried only
the balance, capability and status readers, so a host wanting a price
had to
call the core directly and invent its own loading, failure and
cancellation
handling per screen.

- `BillingClient` gains `plans` and `paymentMethods`;
`disposeBillingClient`
disposes both, so a sign-out or workspace switch cannot leave a catalog
or a
  card list serving the previous scope.
- `usePlans` and `usePaymentMethods` follow `useCredits`: seeded from
the
reader's snapshot, `immediate` by default, and a failed refresh keeps
the last
  good value beside the failure rather than blanking the screen.
`usePaymentMethods` also exposes `defaultMethod` and
`invalidateAndRefresh`,
for a host coming back from the payment portal where a card was added or
  removed.
- `usePreviewSubscribe` is on-demand and single-flight: each `quote`
aborts the
one before it through an `AbortController`, and only the latest settles
into
`preview`/`failure`, so a slow price for a plan the user has moved off
never
  lands on screen.
- The app composition root builds both readers and adds them to
`dispose()`,
keeping the two scope-holder lists in step. Commands stay unwired here.

No UI change. These are headless composables; nothing renders them yet.

`usePlans`, `usePaymentMethods` and `usePreviewSubscribe` tests run
against the
real core over the shared billing harness. Both the abort guard and the
payment-methods invalidation were verified to fail when removed. A table
in
`createBillingSdk.test.ts` asserts every reader stops serving the
disposed
scope.

Billing SDK track FE-2210 ([implementation plan
V2](https://app.notion.com/p/3d86d73d36508152b92cdbdfdfe83ac8)). Hybrid
model: top-up in-app, subscription management / invoices / payment
methods on the hosted billing app.

| Phase | Item | Ticket | Status |
| --- | --- | --- | --- |
| 1-2 | Session core, transport, readers | FE-2211/2212/2213 | merged |
| 3 | Operation lifecycle, commands, eight-state projection |
FE-2227/2214/2223 | merged (#17655) |
| 4 | `@comfyorg/account-ui` composables + `CheckoutSteps` | FE-2215 |
merged (#17662, #17663) |
| 5 slice 1 | Top-up through the SDK behind `billing_sdk_topup_enabled`
| FE-2216 | merged (#17665) |
| rollout C | `hosted_billing_destination` server flag read by the host
| FE-2218 | merged (#17716) |
| rollout C | `hostedDestination` port on the lifecycle, value on
operation state | FE-2210/2218 | open (#17783) |
| 7 prep | Scope-source port + credentialed transport (BFF / cookie
hosts) | FE-2218 | merged (#17782) |
| 7 prep | `@comfyorg/account` → `@comfyorg/account-core` rename |
FE-2218 | local, opens after #17783 and #17794 |
| 7 prep | `billing-contract` route builder + `return_to` registry |
FE-2218 | merged (#17795) |
| 3A-3 | Workshop adapter over `createHostedTopupCheckout` | FE-2214 |
merged (#17793) |
| 8 core | `previewSubscribe` command | FE-2331 | merged (#17797) |
| 8 core | Plans + saved payment-methods readers | FE-2331 | open
(#17798) |
| 8 ui | account-ui composables (`usePlans`, `usePaymentMethods`,
`usePreviewSubscribe`) | FE-2331 | **this PR** |
| 7 | billing-web own-origin session, sign-in, SDK composition | FE-2218
| **this PR** (was #17807) |
| 8 ui | billing-web `/v1` entry routing + subscription / payment-method
surfaces | FE-2331 | **this PR** (was #17809) |
| 7 | npm publish (`ingest-types`, `account-core`, `billing-contract`),
Platform install, billing-web live top-up | FE-2218 | todo |
| 6 | Contract tests + live E2E per flow × consumer | FE-2217 | todo |
| 5 slice 2 | Subscription flows through the SDK | FE-2216 | todo
(plan-change decision) |
| follow-up | One `needsCustomerAttention` predicate (from the #17665
review) | FE-2216 | merged (#17792) |
| follow-up | Opaque `BillingServerCode` (from the #17656 review) |
FE-2227 | open (#17794) |
| follow-up | `useCredits` clears on `SUPERSEDED` (from the #17799
review) | FE-2215 | open (#17824) |

```mermaid
flowchart LR
  P3["Phase 3 core lifecycle (merged)"]
  P4["Phase 4 account-ui (merged)"]
  P5["Phase 5 slice 1 top-up flag (merged)"]
  FC["PR 17716 hosted_billing_destination flag (merged)"]
  HD["PR 17783 hostedDestination port"]
  SS["PR 17782 scope-source port + credentialed transport"]
  RN["account-core rename"]
  RB["billing-contract route builder + return_to"]
  WS["Workshop adapter"]
  P8PV["previewSubscribe command"]
  P8RD["plans + payment-methods readers"]
  P8["account-ui hosted composables"]
  BWS["billing-web session + sign-in"]
  BWV["billing-web /v1 surfaces"]
  PUB["npm publish account-core / billing-contract"]
  P7["Phase 7 host proof: Platform + billing-web live"]
  P6["Phase 6 evidence"]
  S2["Phase 5 slice 2 subscription"]
  FU9["customer-attention predicate"]
  FU11["opaque BillingServerCode"]
  FU12["useCredits clears on SUPERSEDED"]
  P3 --> HD
  FC --> HD
  HD --> RB
  P3 --> SS
  SS --> P7
  RB --> P7
  P3 --> RN
  RN --> PUB
  RB --> PUB
  PUB --> P7
  P3 --> P8PV
  P3 --> P8RD
  P8PV --> P8
  P8RD --> P8
  P4 --> P8
  P8 --> S2
  P8 --> BWS
  BWS --> BWV
  RB --> BWV
  BWV --> P7
  P5 --> P6
  P5 --> WS
  P5 --> FU9
  P3 --> FU11
  P4 --> FU12
  style P3 fill:#d4edda,stroke:#155724
  style P4 fill:#d4edda,stroke:#155724
  style P5 fill:#d4edda,stroke:#155724
  style FC fill:#d4edda,stroke:#155724
  style SS fill:#d4edda,stroke:#155724
  style RB fill:#d4edda,stroke:#155724
  style WS fill:#d4edda,stroke:#155724
  style FU9 fill:#d4edda,stroke:#155724
  style P8PV fill:#d4edda,stroke:#155724
  style P8 stroke:#0366d6,stroke-width:4px
  style BWS stroke:#0366d6,stroke-width:4px
  style BWV stroke:#0366d6,stroke-width:4px
```
dante01yoon added a commit that referenced this pull request Sep 16, 2026
…the SDK rail behind billing_sdk_subscription_enabled (#17853)

Stacked on #17783 (base branch
`jaewon/fe-2210-hosted-destination-port`); merge that first.

## Why

Phase 5 slice 1 (#17665) moved top-up onto the Billing SDK behind
`billing_sdk_topup_enabled`. The subscription actions the host already
owns — cancel, resubscribe, and opening the payment portal — still call
the workspace API directly and rely on the legacy poller for settlement
and telemetry. This slice moves those three onto the SDK's commands
behind their own server flag, `billing_sdk_subscription_enabled`
(already on `/api/features` via Comfy-Org/cloud#9248, PostHog at 0%), so
the eight-state lifecycle, idempotency, recovery and telemetry come from
one implementation. Subscribe and plan change are slice 2b, stacked on
this PR.

## How

- **Rail switch.** `billingSdkSubscriptionRailEnabled` =
`billing_sdk_subscription_enabled` AND `unified_cloud_auth`, exactly
like the top-up rail. `useSubscriptionRail()` reads it once,
synchronously, at the start of an action, so a flag flip mid-flow cannot
issue on one rail and observe on the other.
- **Three actions, one adapter.**
`useWorkspaceBilling.cancelSubscription / resubscribe /
manageSubscription` try the rail first; the store runs
`sdk.commands.cancelSubscription()`, `resubscribe()`,
`openPaymentPortal({ returnUrl })` and projects the result onto what the
adapter already does with the legacy calls: settle, or throw a
`WorkspaceApiError` (message is the host's, since the SDK never carries
server text; `serverCode` lands in `.code`). A command that settles in
any phase but `succeeded` is a failure, matching the poller. The refresh
after success mirrors the poller's: cancel → status + balance +
capabilities; resubscribe → `reconcileSubscriptionSuccess` +
capabilities.
- **Fallback.** A 404 (backend gate closed while the client flag is on)
projects to `unavailable`: the adapter runs its legacy body for that
action, and the store latches the route as unavailable for the tab so
later actions go straight to legacy without another failed round trip.
Every other failure — including `SUPERSEDED` — is thrown, never retried
on legacy, so a late or superseded result cannot double-issue.
- **Telemetry.** Lifecycle events are now reported for non-topup
operations (top-up keeps its resumed-only filter because its dialog
reports). `toBillingTelemetryEvent` already emits the poller's payload
shape, so dashboards cannot tell the rails apart.
- **No client-derived server state.** Eligibility and already-held
answers come from the SDK and the server, as for top-up. `subscribe`,
`previewSubscribe`, `useSubscriptionCheckout` and `useLegacyBilling` are
untouched.

## AS-IS / TO-BE

| State | AS-IS (flag off) | TO-BE (flag on) |
| --- | --- | --- |
| Cancel dialog at rest | <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/as-is-cancel-dialog.png">
| <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/to-be-cancel-dialog.png">
|
| Cancel in flight | <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/as-is-cancel-in-flight.png">
| <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/to-be-cancel-in-flight.png">
|
| Cancel settled (success toast) | <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/as-is-cancel-settled.png">
| <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/to-be-cancel-settled.png">
|
| Cancel failed (error toast) | <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/as-is-cancel-failed.png">
| <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/to-be-cancel-failed.png">
|
| User popover after cancel (cancelled state) | <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/as-is-panel-after-cancel.png">
| <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/to-be-panel-after-cancel.png">
|
| Cancel request recorded | <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/as-is-network.png">
| <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/to-be-network.png">
|
| Settings billing panel | <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/as-is-billing-panel.png">
| <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/to-be-billing-panel.png">
|
| Resubscribe (Resume Pro) | <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/as-is-resubscribe.png">
| <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/to-be-resubscribe.png">
|
| Resubscribe request recorded | <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/as-is-resubscribe-network.png">
| <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/to-be-resubscribe-network.png">
|
| Payment-portal request recorded | <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/as-is-portal-network.png">
| <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/to-be-portal-network.png">
|

- AS-IS (flag off): cancel / resubscribe / portal POST the workspace API
directly; settlement and telemetry come from the legacy poller.
- TO-BE (flag on): the same dialogs and toasts, the POSTs go through the
SDK transport (`Idempotency-Key` on the request), settlement through the
operation lifecycle; a 404 falls back to the legacy call.

## Testing

| Gate | Result |
| --- | --- |
| `vitest run src/platform/workspace/billing src/composables/billing
src/platform/workspace/composables src/platform/workspace/stores
src/composables/useFeatureFlags` | 41 files, 1138 tests (12 new
projection tests, 13 new adapter rail tests, +5 store tests) |
| `pnpm typecheck`, `pnpm typecheck:browser`, `lint`, `format:check`,
`knip` | exit 0 |
| `fallow audit --changed-since
origin/jaewon/fe-2210-hosted-destination-port` | no issues in 11 changed
files, complexity 0, duplication 0 |
| Playwright
`browser_tests/tests/dialogs/cancelSubscriptionSdkRail.spec.ts` (cloud
project) | **3 passed** against a served cloud dev build —
`PLAYWRIGHT_TEST_URL=http://localhost:5173 pnpm exec playwright test
--project=cloud
browser_tests/tests/dialogs/cancelSubscriptionSdkRail.spec.ts
--reporter=list`. Flag off → legacy request, flow unchanged; flag on →
SDK request (`Idempotency-Key`), same dialog outcome; flag on + 404 →
legacy fallback. |

## Where this sits in the plan

Billing SDK track FE-2210 ([implementation plan
V2](https://app.notion.com/p/3d86d73d36508152b92cdbdfdfe83ac8)). Hybrid
model: top-up in-app, subscription management / invoices / payment
methods on the hosted billing app.

| Phase | Item | Ticket | Status |
| --- | --- | --- | --- |
| 1-2 | Session core, transport, readers | FE-2211/2212/2213 | merged |
| 3 | Operation lifecycle, commands, eight-state projection |
FE-2227/2214/2223 | merged (#17655) |
| 4 | `@comfyorg/account-ui` composables + `CheckoutSteps` | FE-2215 |
merged (#17662, #17663) |
| 5 slice 1 | Top-up through the SDK behind `billing_sdk_topup_enabled`
| FE-2216 | merged (#17665) |
| rollout C | `hosted_billing_destination` server flag read by the host
| FE-2218 | merged (#17716) |
| rollout C | `hostedDestination` port on the lifecycle, value on
operation state | FE-2210/2218 | #17783 (review; parent of this PR) |
| 7 prep | Scope-source port + credentialed transport (BFF / cookie
hosts) | FE-2218 | merged (#17782) |
| 7 prep | `@comfyorg/account` → `@comfyorg/account-core` rename |
FE-2218 | #17851 (review) |
| 7 prep | `billing-contract` route builder + `return_to` registry |
FE-2218 | merged (#17795) |
| 3A-3 | Workshop adapter over `createHostedTopupCheckout` | FE-2214 |
merged (#17793) |
| 8 core | `previewSubscribe` command | FE-2331 | merged (#17797) |
| 8 core | Plans + saved payment-methods readers | FE-2331 | #17798
(queued) |
| 8 ui | account-ui composables (`usePlans`, `usePaymentMethods`,
`usePreviewSubscribe`) | FE-2331 | #17798 (queued) |
| 7 | billing-web own-origin session, sign-in, SDK composition | FE-2218
| #17798 (queued) |
| 7 | billing-web unit tests in CI (`ci-billing-web-unit.yaml`) |
FE-2218 | merged (#17827); #17844 (queued) |
| 7 | ingest CORS + top-up return hosts for billing.comfy.org and its
previews (Comfy-Org/cloud) | FE-2218 | merged (Comfy-Org/cloud#9512) |
| 8 ui | billing-web `/v1` entry routing + subscription / payment-method
surfaces | FE-2331 | #17798 (queued) |
| 7 | npm publish (`ingest-types`, `account-core`, `billing-contract`),
Platform install, billing-web live top-up | FE-2218 | todo |
| 6 | Contract tests per generated schema (package layer) | FE-2217 |
#17829 (review) |
| 6 | Live E2E per flow × consumer + evidence table | FE-2217 | todo
(needs staging flags) |
| 5 slice 2a | Cancel, resubscribe and payment portal through the SDK
behind `billing_sdk_subscription_enabled` | FE-2216 | **this PR** |
| 5 slice 2b | Subscribe / plan change through the SDK
(`previewSubscribe` quote, then subscribe; the SDK stops
short-circuiting an active plan) | FE-2216 | next, stacked on this PR |
| follow-up | One `needsCustomerAttention` predicate (from the #17665
review) | FE-2216 | merged (#17792) |
| follow-up | Opaque `BillingServerCode` (from the #17656 review) |
FE-2227 | merged (#17794) |
| follow-up | `useCredits` clears on `SUPERSEDED` (from the #17799
review) | FE-2215 | merged (#17824) |
| follow-up | credits / status / capabilities readers fence a late
failure as `SUPERSEDED` (from the #17798 review) | FE-2331 | merged
(#17828) |

```mermaid
flowchart LR
  P3["Phase 3 core lifecycle (merged)"]
  P4["Phase 4 account-ui (merged)"]
  P5["Phase 5 slice 1 top-up flag (merged)"]
  FC["PR 17716 hosted_billing_destination flag (merged)"]
  HD["PR 17783 hostedDestination port"]
  SS["PR 17782 scope-source port + credentialed transport"]
  RN["account-core rename"]
  RB["billing-contract route builder + return_to"]
  WS["Workshop adapter"]
  P8PV["previewSubscribe command"]
  P8RD["plans + payment-methods readers"]
  P8["account-ui hosted composables"]
  BWS["billing-web session + sign-in"]
  BWV["billing-web /v1 surfaces"]
  CORS["cloud PR 9512 ingest CORS + return hosts"]
  PUB["npm publish account-core / billing-contract"]
  P7["Phase 7 host proof: Platform + billing-web live"]
  P6C["Phase 6 contract tests"]
  P6["Phase 6 live evidence"]
  S2A["Phase 5 slice 2a cancel / resubscribe / portal rail"]
  S2B["Phase 5 slice 2b subscribe + plan change"]
  FU9["customer-attention predicate"]
  FU11["opaque BillingServerCode"]
  FU12["useCredits clears on SUPERSEDED"]
  FU13["reader late-failure fence"]
  P3 --> HD
  FC --> HD
  HD --> RB
  P3 --> SS
  SS --> P7
  RB --> P7
  P3 --> RN
  RN --> PUB
  RB --> PUB
  PUB --> P7
  P3 --> P8PV
  P3 --> P8RD
  P8PV --> P8
  P8RD --> P8
  P4 --> P8
  P8 --> S2B
  HD --> S2A
  S2A --> S2B
  P8 --> BWS
  BWS --> BWV
  RB --> BWV
  BWV --> P7
  CORS --> P7
  P5 --> P6
  P3 --> P6C
  P5 --> WS
  P5 --> FU9
  P3 --> FU11
  P4 --> FU12
  P3 --> FU13
  style P3 fill:#d4edda,stroke:#155724
  style P4 fill:#d4edda,stroke:#155724
  style P5 fill:#d4edda,stroke:#155724
  style FC fill:#d4edda,stroke:#155724
  style SS fill:#d4edda,stroke:#155724
  style RB fill:#d4edda,stroke:#155724
  style WS fill:#d4edda,stroke:#155724
  style FU9 fill:#d4edda,stroke:#155724
  style FU11 fill:#d4edda,stroke:#155724
  style FU12 fill:#d4edda,stroke:#155724
  style FU13 fill:#d4edda,stroke:#155724
  style CORS fill:#d4edda,stroke:#155724
  style P8PV fill:#d4edda,stroke:#155724
  style S2A stroke:#0366d6,stroke-width:4px
```
pull Bot pushed a commit to Penguinjanator/ComfyUI_frontend that referenced this pull request Sep 16, 2026
…int one (Comfy-Org#17794)

Linear FE-2227. Follow-up parked from the Comfy-Org#17656 review.

## Why

`BillingFailure.serverCode` is an unbounded server string in a contract
whose
whole point is that server text never reaches a user. Its doc said
"never
render it", but the type said plain `string`, so a command could invent
a code
and compare against it as if the server had sent one.

This closes provenance, not containment. After it, only
`readBillingErrorCode`
can mint a `BillingServerCode`, so a code that reaches a comparison is
one the
server actually sent. The value is still `string` underneath, so
interpolating
it into copy, widening it with `??`, concatenating it or passing it to
`t()`
all still compile — the rendering half of the Comfy-Org#17656 finding stays open,
and
the file comment says so. Full containment is costed in "Not done here"
below.

## How

- `BillingServerCode = string & { readonly [brand]: true }` with a
module-private `unique symbol`, so the brand cannot be forged outside
the
  module that declares it.
- `readBillingErrorCode` is the single producer and the only place the
brand
is minted, at the decode boundary. The brand erases at runtime, so there
is
  no cost.
- Two contract-level helpers bound what a holder can do:
`matchesServerCode`
compares against a code a command names, and `unwrapServerCode` is the
one
widening back to `string`, so every widening is visible at its call
site.
- The four equality comparisons (`topup.ts` `commandFailure`,
`subscriptionCommands.ts` `alreadyInRequestedState`, `mapServerCode`,
and
  the reactivation check) now go through `matchesServerCode`. The named
  constants and their closed sets stay where they were.
- The one host handoff, `topupFailureError` in `topupOperationView.ts`,
calls
`unwrapServerCode` to put the code where `WorkspaceApiError.code`
already
  lives. It is the only widening in the tree.

## AS-IS / TO-BE

No behaviour change; the change is type-level only. AS-IS, any caller
could
write `const code: BillingFailure['serverCode'] = 'NO_PAYMENT_METHOD'`
and
compare against a code no server ever sent. TO-BE that line is a compile
error,
and the only values in the field came through the decode boundary.
Rendering
paths are unchanged in both directions. Every existing test passes with
the
same assertions.

## Not done here

Making the brand genuinely opaque — dropping the `string &` so nothing
reads it
without `unwrapServerCode` — is the containment half, and it is cheapest
now:
`topupOperationView.ts:98` is the only consumer today and it already
calls
`unwrapServerCode`. Measured cost of the switch, from compiling it:
three
errors, all inside the declaring module — `matchesServerCode`'s `===`,
`unwrapServerCode`'s return, and the mint in `billingErrorBody.ts` —
each
needing an `as unknown as` that the current declaration does not. That
tradeoff
(containment bought with double casts in the owning module) is a
deliberate
call, not a default, and Comfy-Org#17798 / Comfy-Org#17799 add consumers this week.
Flagged for a
decision rather than taken here.

## Testing

- New `billingContracts.test.ts`: a table over `matchesServerCode` for a
  matching code, a different code, and a failure with no error body; a
  `@ts-expect-error` case proving a plain string is not assignable to
`serverCode`; and `unwrapServerCode` returning the string the server
sent.
- Fixtures mint codes through `readBillingErrorCode` on a real error
body
  rather than casting, so the test exercises the production decode.
- `pnpm typecheck`, `pnpm lint`, `pnpm format`, `pnpm knip`,
`fallow audit --changed-since origin/main`, and the account, account-ui,
and
  `src/platform/workspace/billing` suites all pass.
## Where this sits in the plan

Billing SDK track FE-2210 ([implementation plan
V2](https://app.notion.com/p/3d86d73d36508152b92cdbdfdfe83ac8)). Hybrid
model: top-up in-app, subscription management / invoices / payment
methods on the hosted billing app.

| Phase | Item | Ticket | Status |
| --- | --- | --- | --- |
| 1-2 | Session core, transport, readers | FE-2211/2212/2213 | merged |
| 3 | Operation lifecycle, commands, eight-state projection |
FE-2227/2214/2223 | merged (Comfy-Org#17655) |
| 4 | `@comfyorg/account-ui` composables + `CheckoutSteps` | FE-2215 |
merged (Comfy-Org#17662, Comfy-Org#17663) |
| 5 slice 1 | Top-up through the SDK behind `billing_sdk_topup_enabled`
| FE-2216 | merged (Comfy-Org#17665) |
| rollout C | `hosted_billing_destination` server flag read by the host
| FE-2218 | merged (Comfy-Org#17716) |
| rollout C | `hostedDestination` port on the lifecycle, value on
operation state | FE-2210/2218 | open (Comfy-Org#17783) |
| 7 prep | Scope-source port + credentialed transport (BFF / cookie
hosts) | FE-2218 | open (Comfy-Org#17782) |
| 7 prep | `@comfyorg/account` → `@comfyorg/account-core` rename |
FE-2218 | local, opens after Comfy-Org#17782 and Comfy-Org#17783 |
| 7 prep | `billing-contract` route builder + `return_to` registry |
FE-2218 | in progress |
| 3A-3 | Workshop adapter over `createHostedTopupCheckout` | FE-2214 |
open (Comfy-Org#17793) |
| 8 | `previewSubscribe`, plans, payment-methods readers + account-ui +
billing-web views | FE-2331 | todo |
| 7 | npm publish (`ingest-types`, `account-core`, `billing-contract`),
Platform install, billing-web live top-up | FE-2218 | todo |
| 6 | Contract tests + live E2E per flow × consumer | FE-2217 | todo |
| 5 slice 2 | Subscription flows through the SDK | FE-2216 | todo
(plan-change decision) |
| follow-up | One `needsCustomerAttention` predicate (from the Comfy-Org#17665
review) | FE-2216 | open (Comfy-Org#17792) |
| follow-up | Unforgeable `BillingServerCode` (from the Comfy-Org#17656 review) |
FE-2227 | **this PR** |

```mermaid
flowchart LR
  P3["Phase 3 core lifecycle (merged)"]
  P4["Phase 4 account-ui (merged)"]
  P5["Phase 5 slice 1 top-up flag (merged)"]
  FC["PR 17716 hosted_billing_destination flag (merged)"]
  HD["PR 17783 hostedDestination port"]
  SS["PR 17782 scope-source port + credentialed transport"]
  RN["account-core rename"]
  RB["billing-contract route builder + return_to"]
  WS["Workshop adapter"]
  P8["Phase 8 readers + billing-web views"]
  PUB["npm publish account-core / billing-contract"]
  P7["Phase 7 host proof: Platform + billing-web live"]
  P6["Phase 6 evidence"]
  S2["Phase 5 slice 2 subscription"]
  FU9["customer-attention predicate"]
  FU11["unforgeable BillingServerCode"]
  P3 --> HD
  FC --> HD
  HD --> RB
  P3 --> SS
  SS --> P7
  RB --> P7
  P3 --> RN
  RN --> PUB
  RB --> PUB
  PUB --> P7
  P4 --> P8
  P8 --> S2
  P5 --> P6
  P5 --> WS
  P5 --> FU9
  P3 --> FU11
  style P3 fill:#d4edda,stroke:#155724
  style P4 fill:#d4edda,stroke:#155724
  style P5 fill:#d4edda,stroke:#155724
  style FC fill:#d4edda,stroke:#155724
  style FU11 stroke:#0366d6,stroke-width:4px
```
pull Bot pushed a commit to Penguinjanator/ComfyUI_frontend that referenced this pull request Sep 16, 2026
…ders, hosted composables, own-origin session and v1 surfaces (Comfy-Org#17798)

Linear FE-2331 / FE-2218.

This PR is the whole Phase 8 view layer after the stack was
consolidated: Comfy-Org#17799 (account-ui `usePlans` / `usePaymentMethods` /
`usePreviewSubscribe` + app-root readers), Comfy-Org#17807 (billing-web
own-origin session, sign-in, SDK composition) and Comfy-Org#17809 (billing-web
`/v1` entry routing, subscription and payment-method surfaces) were
squash-merged into this branch; their bodies, decisions and screenshots
remain on those PRs. Rebased onto main after Comfy-Org#17782 (scopeSource),
Comfy-Org#17795 (billing-contract) and Comfy-Org#17797 (previewSubscribe) landed, so none
of that content is in this diff.

## Why

Phase 8's hosted billing surfaces render plan management and saved
payment
methods, and both reads have to go through the billing SDK so they
inherit the
scope tracking, deduplication, and coded failures the other readers
already
have. The generated schemas for both routes exist, so nothing has to be
hand-declared.

## How

- `plans.ts`: `createPlansReader` over `GET /billing/plans`, decoded
with
`zGetBillingPlansResponse`. No freshness window — the catalog carries no
  declared lifetime, so the host decides when to re-read.
- `paymentMethods.ts`: `createPaymentMethodsReader` over
  `GET /billing/payment-methods`, decoded with
`zListSavedPaymentMethodsResponse`, plus `invalidate()` so a host
returning
from the payment portal can drop the list it holds without a scope
change.
- Both follow the existing reader shape exactly:
`createBillingScopeTracker`
drops the snapshot and any in-flight read on a scope change, concurrent
reads
  for one scope share a single request, a 2xx that fails the schema is
`MALFORMED_RESPONSE`, and HTTP failures map through `codeForHttpStatus`.
- Exported from `@comfyorg/account/billing` alongside the credits,
status, and
  capabilities readers.

The four readers now share the same request/publish body, which `fallow
audit`
reports as a duplication warning. Factoring it out would touch
`credits.ts` and
`status.ts`, which two open PRs already modify, so it is left for a
follow-up.

## AS-IS / TO-BE

No UI change. The cloud app still calls `workspaceApi.getBillingPlans`
and
`workspaceApi.listSavedPaymentMethods`; the composables and host wiring
that
move it onto these readers land in separate PRs.

## Testing

`plans.test.ts` and `paymentMethods.test.ts` cover the decode and scope
of a
successful read, the caller timeout reaching the request, deduplication
of
concurrent reads, a scope change in flight reporting `SUPERSEDED` with
nothing
cached, a signed-out reader reporting `NOT_AUTHENTICATED` without a
request, the
HTTP status table (401 replayed and unreplayed, 403, 404, 500), a
malformed 2xx,
and `dispose`. Payment methods additionally cover the empty list and
`invalidate` dropping the snapshot so the next read refetches.

`pnpm typecheck`, `pnpm lint`, `pnpm format`, `pnpm knip`, and
`fallow audit --changed-since origin/main` pass.

Follow-up, not in this PR: the four readers now share a 32-line
scope/in-flight skeleton (`credits.ts`, `status.ts`, `plans.ts`,
`paymentMethods.ts`; fallow reports it as one clone family). Comfy-Org#17782 has
landed, but extracting it still touches files Comfy-Org#17794 is changing, so it
waits for that to land.

## Where this sits in the plan

Billing SDK track FE-2210 ([implementation plan
V2](https://app.notion.com/p/3d86d73d36508152b92cdbdfdfe83ac8)). Hybrid
model: top-up in-app, subscription management / invoices / payment
methods on the hosted billing app.

| Phase | Item | Ticket | Status |
| --- | --- | --- | --- |
| 1-2 | Session core, transport, readers | FE-2211/2212/2213 | merged |
| 3 | Operation lifecycle, commands, eight-state projection |
FE-2227/2214/2223 | merged (Comfy-Org#17655) |
| 4 | `@comfyorg/account-ui` composables + `CheckoutSteps` | FE-2215 |
merged (Comfy-Org#17662, Comfy-Org#17663) |
| 5 slice 1 | Top-up through the SDK behind `billing_sdk_topup_enabled`
| FE-2216 | merged (Comfy-Org#17665) |
| rollout C | `hosted_billing_destination` server flag read by the host
| FE-2218 | merged (Comfy-Org#17716) |
| rollout C | `hostedDestination` port on the lifecycle, value on
operation state | FE-2210/2218 | open (Comfy-Org#17783) |
| 7 prep | Scope-source port + credentialed transport (BFF / cookie
hosts) | FE-2218 | merged (Comfy-Org#17782) |
| 7 prep | `@comfyorg/account` → `@comfyorg/account-core` rename |
FE-2218 | local, opens after Comfy-Org#17783 and Comfy-Org#17794 |
| 7 prep | `billing-contract` route builder + `return_to` registry |
FE-2218 | merged (Comfy-Org#17795) |
| 3A-3 | Workshop adapter over `createHostedTopupCheckout` | FE-2214 |
merged (Comfy-Org#17793) |
| 8 core | `previewSubscribe` command | FE-2331 | merged (Comfy-Org#17797) |
| 8 core | Plans + saved payment-methods readers | FE-2331 | **this PR**
|
| 8 ui | account-ui composables (`usePlans`, `usePaymentMethods`,
`usePreviewSubscribe`) | FE-2331 | **this PR** (was Comfy-Org#17799) |
| 7 | billing-web own-origin session, sign-in, SDK composition | FE-2218
| **this PR** (was Comfy-Org#17807) |
| 8 ui | billing-web `/v1` entry routing + subscription / payment-method
surfaces | FE-2331 | **this PR** (was Comfy-Org#17809) |
| 7 | npm publish (`ingest-types`, `account-core`, `billing-contract`),
Platform install, billing-web live top-up | FE-2218 | todo |
| 6 | Contract tests + live E2E per flow × consumer | FE-2217 | todo |
| 5 slice 2 | Subscription flows through the SDK | FE-2216 | todo
(plan-change decision) |
| follow-up | One `needsCustomerAttention` predicate (from the Comfy-Org#17665
review) | FE-2216 | merged (Comfy-Org#17792) |
| follow-up | Opaque `BillingServerCode` (from the Comfy-Org#17656 review) |
FE-2227 | open (Comfy-Org#17794) |
| follow-up | `useCredits` clears on `SUPERSEDED` (from the Comfy-Org#17799
review) | FE-2215 | open (Comfy-Org#17824) |

```mermaid
flowchart LR
  P3["Phase 3 core lifecycle (merged)"]
  P4["Phase 4 account-ui (merged)"]
  P5["Phase 5 slice 1 top-up flag (merged)"]
  FC["PR 17716 hosted_billing_destination flag (merged)"]
  HD["PR 17783 hostedDestination port"]
  SS["PR 17782 scope-source port + credentialed transport"]
  RN["account-core rename"]
  RB["billing-contract route builder + return_to"]
  WS["Workshop adapter"]
  P8PV["previewSubscribe command"]
  P8RD["plans + payment-methods readers"]
  P8["account-ui hosted composables"]
  BWS["billing-web session + sign-in"]
  BWV["billing-web /v1 surfaces"]
  PUB["npm publish account-core / billing-contract"]
  P7["Phase 7 host proof: Platform + billing-web live"]
  P6["Phase 6 evidence"]
  S2["Phase 5 slice 2 subscription"]
  FU9["customer-attention predicate"]
  FU11["opaque BillingServerCode"]
  FU12["useCredits clears on SUPERSEDED"]
  P3 --> HD
  FC --> HD
  HD --> RB
  P3 --> SS
  SS --> P7
  RB --> P7
  P3 --> RN
  RN --> PUB
  RB --> PUB
  PUB --> P7
  P3 --> P8PV
  P3 --> P8RD
  P8PV --> P8
  P8RD --> P8
  P4 --> P8
  P8 --> S2
  P8 --> BWS
  BWS --> BWV
  RB --> BWV
  BWV --> P7
  P5 --> P6
  P5 --> WS
  P5 --> FU9
  P3 --> FU11
  P4 --> FU12
  style P3 fill:#d4edda,stroke:#155724
  style P4 fill:#d4edda,stroke:#155724
  style P5 fill:#d4edda,stroke:#155724
  style FC fill:#d4edda,stroke:#155724
  style SS fill:#d4edda,stroke:#155724
  style RB fill:#d4edda,stroke:#155724
  style WS fill:#d4edda,stroke:#155724
  style FU9 fill:#d4edda,stroke:#155724
  style P8PV fill:#d4edda,stroke:#155724
  style P8RD stroke:#0366d6,stroke-width:4px
  style P8 stroke:#0366d6,stroke-width:4px
  style BWS stroke:#0366d6,stroke-width:4px
  style BWV stroke:#0366d6,stroke-width:4px
```
pull Bot pushed a commit to Penguinjanator/ComfyUI_frontend that referenced this pull request Sep 16, 2026
… a status (Comfy-Org#17844)

Follow-up to Comfy-Org#17827, from @huang47's review.

## Why

Two of the three review points, both in files Comfy-Org#17827 touched.

**1. The workflow does not gate on itself**
([comment](Comfy-Org#17827 (comment))).
`app_billing_web` listed only `apps/billing-web/**`, so a PR that
changes nothing but `ci-billing-web-unit.yaml` leaves `billing-web-unit`
skipped and `billing-web-unit-gate` passing through its skip branch.
Comfy-Org#17827 merged exactly that way — run
[35103654481](https://github.com/Comfy-Org/ComfyUI_frontend/actions/runs/35103654481)
never executed the job it added. Only the post-merge push run on `main`
([35121739924](https://github.com/Comfy-Org/ComfyUI_frontend/actions/runs/35121739924))
did, because every filter output defaults to `'true'` off
`pull_request`.

**2. The flag has no status of its own**
([comment](Comfy-Org#17827 (comment))).
`codecov.yml` declared the `billing-web` flag but no
`project.billing-web` / `patch.billing-web` under `coverage.status`,
while the website flag has both. The upload arrived with nothing
attributing it, which is why Comfy-Org#17827 showed live `codecov/patch/website`
and `codecov/project/website` checks and no billing-web counterparts.

## How

- `app_billing_web` now lists
`.github/workflows/ci-billing-web-unit.yaml`, the way `app_website`
lists `ci-website-e2e.yaml` and its two scripts. Output description
updated to match.
- `project.billing-web` and `patch.billing-web` mirror the website
entries verbatim apart from the path and flag: scoped to
`apps/billing-web/src/**`, `informational: true`,
`flag_coverage_not_uploaded_behavior: pass`, so a skipped job does not
fail the status.

## Also in this PR (added after the first push)

**The flag rename** (`billing-web` → `billing-web-unit`, @huang47's
third point) landed as a second commit, 089a852. It changes `flags:`
in `ci-billing-web-unit.yaml`, the `flags:` list of both new status
entries and the `flags.` block in `codecov.yml` in one commit, so the
upload and the config never disagree. The status keys stay `billing-web`
(check names `codecov/project/billing-web`,
`codecov/patch/billing-web`), mirroring how the website keeps status key
`website` with flag `website-unit`. The first push could not include it
because that session's token lacked the `workflow` scope; this push has
it.

Deliberately unchanged: `app_website` still does **not** list
`ci-website-unit.yaml` (only the e2e workflow and its two scripts), so
the website *unit* workflow keeps the blind spot this PR fixes for
billing-web. @huang47 — worth the matching one-liner, or do you want the
asymmetry left alone?

## AS-IS / TO-BE

No UI change; CI configuration only.

- AS-IS: a `ci-billing-web-unit.yaml`-only PR skips the suite and
reports a green gate. The `billing-web` flag uploads with no dedicated
status.
- TO-BE: that PR runs the suite. The upload gets
`codecov/project/billing-web` and `codecov/patch/billing-web`.

## Testing

- `curl -X POST --data-binary @codecov.yml https://codecov.io/validate`
→ `Valid!`. Both new statuses resolve to flag `billing-web` and path
`(?s:apps/billing\-web/src/.*)\Z`.
- Cross-checked the three places the flag name appears — the workflow's
`flags:`, `flags.billing-web`, and both status entries — all read
`billing-web`, so the upload is attributed.
- Both changed files parse as YAML; `app_billing_web` resolves to
`['apps/billing-web/**', '.github/workflows/ci-billing-web-unit.yaml']`.
- Not demonstrated end-to-end: this PR touches neither
`apps/billing-web/**` nor the workflow, so `billing-web-unit` is
expected to **skip** here too. The self-test behaviour can only be
observed on a PR that edits the workflow file, which is the push this
token cannot make. The mechanism is the same glob matching that already
makes `app_website` react to `ci-website-e2e.yaml`.

## Where this sits in the plan

Billing SDK track FE-2210 ([implementation plan
V2](https://app.notion.com/p/3d86d73d36508152b92cdbdfdfe83ac8)). Hybrid
model: top-up in-app, subscription management / invoices / payment
methods on the hosted billing app.

| Phase | Item | Ticket | Status |
| --- | --- | --- | --- |
| 1-2 | Session core, transport, readers | FE-2211/2212/2213 | merged |
| 3 | Operation lifecycle, commands, eight-state projection |
FE-2227/2214/2223 | merged (Comfy-Org#17655) |
| 4 | `@comfyorg/account-ui` composables + `CheckoutSteps` | FE-2215 |
merged (Comfy-Org#17662, Comfy-Org#17663) |
| 5 slice 1 | Top-up through the SDK behind `billing_sdk_topup_enabled`
| FE-2216 | merged (Comfy-Org#17665) |
| rollout C | `hosted_billing_destination` server flag read by the host
| FE-2218 | merged (Comfy-Org#17716) |
| rollout C | `hostedDestination` port on the lifecycle, value on
operation state | FE-2210/2218 | Comfy-Org#17783 (review) |
| 7 prep | Scope-source port + credentialed transport (BFF / cookie
hosts) | FE-2218 | merged (Comfy-Org#17782) |
| 7 prep | `@comfyorg/account` → `@comfyorg/account-core` rename |
FE-2218 | todo (after Comfy-Org#17783, Comfy-Org#17794) |
| 7 prep | `billing-contract` route builder + `return_to` registry |
FE-2218 | merged (Comfy-Org#17795) |
| 3A-3 | Workshop adapter over `createHostedTopupCheckout` | FE-2214 |
merged (Comfy-Org#17793) |
| 8 core | `previewSubscribe` command | FE-2331 | merged (Comfy-Org#17797) |
| 8 core | Plans + saved payment-methods readers | FE-2331 | Comfy-Org#17798
(review) |
| 8 ui | account-ui composables (`usePlans`, `usePaymentMethods`,
`usePreviewSubscribe`) | FE-2331 | Comfy-Org#17798 (review) |
| 7 | billing-web own-origin session, sign-in, SDK composition | FE-2218
| Comfy-Org#17798 (review) |
| 7 | billing-web unit tests in CI (`ci-billing-web-unit.yaml`) |
FE-2218 | merged (Comfy-Org#17827); **this PR** (Comfy-Org#17844) self-tests the workflow
and adds the flag statuses |
| 7 | ingest CORS + top-up return hosts for billing.comfy.org and its
previews (Comfy-Org/cloud) | FE-2218 | Comfy-Org/cloud#9512 (approved
x2, CI rerun) |
| 8 ui | billing-web `/v1` entry routing + subscription / payment-method
surfaces | FE-2331 | Comfy-Org#17798 (review) |
| 7 | npm publish (`ingest-types`, `account-core`, `billing-contract`),
Platform install, billing-web live top-up | FE-2218 | todo |
| 6 | Contract tests per generated schema (package layer) | FE-2217 |
Comfy-Org#17829 (review) |
| 6 | Live E2E per flow × consumer + evidence table | FE-2217 | todo
(needs staging flags) |
| 5 slice 2 | Subscription flows through the SDK | FE-2216 | todo
(plan-change decision) |
| follow-up | One `needsCustomerAttention` predicate (from the Comfy-Org#17665
review) | FE-2216 | merged (Comfy-Org#17792) |
| follow-up | Opaque `BillingServerCode` (from the Comfy-Org#17656 review) |
FE-2227 | Comfy-Org#17794 (review) |
| follow-up | `useCredits` clears on `SUPERSEDED` (from the Comfy-Org#17799
review) | FE-2215 | merged (Comfy-Org#17824) |
| follow-up | credits / status / capabilities readers fence a late
failure as `SUPERSEDED` (from the Comfy-Org#17798 review) | FE-2331 | merged
(Comfy-Org#17828) |

```mermaid
flowchart LR
  P3["Phase 3 core lifecycle (merged)"]
  P4["Phase 4 account-ui (merged)"]
  P5["Phase 5 slice 1 top-up flag (merged)"]
  FC["PR 17716 hosted_billing_destination flag (merged)"]
  HD["PR 17783 hostedDestination port"]
  SS["PR 17782 scope-source port + credentialed transport"]
  RN["account-core rename"]
  RB["billing-contract route builder + return_to"]
  WS["Workshop adapter"]
  P8PV["previewSubscribe command"]
  P8RD["plans + payment-methods readers"]
  P8["account-ui hosted composables"]
  BWS["billing-web session + sign-in"]
  BWV["billing-web /v1 surfaces"]
  CORS["cloud PR 9512 ingest CORS + return hosts"]
  PUB["npm publish account-core / billing-contract"]
  P7["Phase 7 host proof: Platform + billing-web live"]
  CI["billing-web unit CI: PR 17827 (merged) + PR 17844 follow-up"]
  P6C["Phase 6 contract tests"]
  P6["Phase 6 live evidence"]
  S2["Phase 5 slice 2 subscription"]
  FU9["customer-attention predicate"]
  FU11["opaque BillingServerCode"]
  FU12["useCredits clears on SUPERSEDED"]
  FU13["reader late-failure fence"]
  P3 --> HD
  FC --> HD
  HD --> RB
  P3 --> SS
  SS --> P7
  RB --> P7
  P3 --> RN
  RN --> PUB
  RB --> PUB
  PUB --> P7
  P3 --> P8PV
  P3 --> P8RD
  P8PV --> P8
  P8RD --> P8
  P4 --> P8
  P8 --> S2
  P8 --> BWS
  BWS --> BWV
  RB --> BWV
  BWV --> P7
  CORS --> P7
  BWS --> CI
  CI --> P7
  P5 --> P6
  P3 --> P6C
  P5 --> WS
  P5 --> FU9
  P3 --> FU11
  P4 --> FU12
  P3 --> FU13
  style P3 fill:#d4edda,stroke:#155724
  style P4 fill:#d4edda,stroke:#155724
  style P5 fill:#d4edda,stroke:#155724
  style FC fill:#d4edda,stroke:#155724
  style SS fill:#d4edda,stroke:#155724
  style RB fill:#d4edda,stroke:#155724
  style WS fill:#d4edda,stroke:#155724
  style FU9 fill:#d4edda,stroke:#155724
  style P8PV fill:#d4edda,stroke:#155724
  style CI stroke:#0366d6,stroke-width:4px
```
pull Bot pushed a commit to Penguinjanator/ComfyUI_frontend that referenced this pull request Sep 16, 2026
… billing reads (Comfy-Org#17852)

Stacked on Comfy-Org#17798 (base branch
`jaewon/fe-2331-plans-payment-methods-readers`); merge that first.
Comfy-Org#17851 (the `account-core` rename) sits on the same parent: whichever of
the two lands second is re-based mechanically (the rename has a replay
script).

## Why

`fallow audit` on Comfy-Org#17798 reported a clone family across the five billing
readers: `credits.ts`, `status.ts`, `capabilities.ts`, `plans.ts` and
`paymentMethods.ts` each re-implemented the same fetch-and-fence shape —
capture the scope, share one request per scope, release a caller on its
own signal, report a late answer (success or failure) as `SUPERSEDED`,
and drop a published snapshot on a denial unless the request predates a
change the host fenced. Five copies of that logic is five places the
Comfy-Org#17828 late-failure fence had to be applied, and the next reader would
have been a sixth.

## How

One skeleton, `createScopedReader`, owns the request sharing, the caller
release, the publish fence and the denial drop. A reader supplies only
its route, decoder (`parse`) and projection into a snapshot, plus two
optional hooks that absorb the real variants: `cached` (capabilities'
freshness window) and `publish` (payment-methods' fenced list,
capabilities' publish-as-stale). `setSnapshot` and `fenceInFlight({
detach })` let each reader assemble its own `invalidate` — capabilities
fences without detaching, payment methods fences and detaches.

The public API of every reader is unchanged in shape and semantics:
`index.ts` is untouched and no consumer in `account-ui`, `billing-web`
or `src/platform/workspace/billing` changed. Per-reader production size:
credits 158→80, status 137→64, plans 163→78, paymentMethods 197→94,
capabilities 317→235 lines.

Tests: the fence family is proven once in `scopedReader.test.ts` with a
five-reader case table (sparse filters for the one reader that paces
itself), and each reader keeps only the tests of its own projection —
capabilities' freshness, denials, revision invalidation and
`resolved_for` checks; payment-methods' three invalidation cases.
Coverage went up: status gained the signed-out-in-flight case, plans and
payment methods gained dispose, all five gained sign-out-then-read.

## AS-IS / TO-BE

No user-facing change; core package internals only.

- AS-IS: five readers, each with its own copy of the scope fence; fallow
reports 2 clone groups / 46 lines across three of them plus 4 groups
spanning all four non-paced readers.
- TO-BE: one skeleton, five thin readers; `fallow audit --changed-since
<parent>` reports duplication 0 and no clone group above the 3-instance
threshold.

## Testing

| Gate | Result |
| --- | --- |
| `packages/account` vitest | 42 files, 659 tests (67 new shared cases
replace 82 per-reader copies) |
| `packages/account-ui` vitest | 9 files, 41 tests |
| `@comfyorg/billing-web` test:unit | 10 files, 90 tests |
| `pnpm typecheck`, `lint`, `format`, `knip` | exit 0 |
| `fallow audit --changed-since
origin/jaewon/fe-2331-plans-payment-methods-readers` | no issues in 13
changed files |

## Where this sits in the plan

Billing SDK track FE-2210 ([implementation plan
V2](https://app.notion.com/p/3d86d73d36508152b92cdbdfdfe83ac8)). Hybrid
model: top-up in-app, subscription management / invoices / payment
methods on the hosted billing app.

| Phase | Item | Ticket | Status |
| --- | --- | --- | --- |
| 1-2 | Session core, transport, readers | FE-2211/2212/2213 | merged |
| 3 | Operation lifecycle, commands, eight-state projection |
FE-2227/2214/2223 | merged (Comfy-Org#17655) |
| 4 | `@comfyorg/account-ui` composables + `CheckoutSteps` | FE-2215 |
merged (Comfy-Org#17662, Comfy-Org#17663) |
| 5 slice 1 | Top-up through the SDK behind `billing_sdk_topup_enabled`
| FE-2216 | merged (Comfy-Org#17665) |
| rollout C | `hosted_billing_destination` server flag read by the host
| FE-2218 | merged (Comfy-Org#17716) |
| rollout C | `hostedDestination` port on the lifecycle, value on
operation state | FE-2210/2218 | Comfy-Org#17783 (review) |
| 7 prep | Scope-source port + credentialed transport (BFF / cookie
hosts) | FE-2218 | merged (Comfy-Org#17782) |
| 7 prep | `@comfyorg/account` → `@comfyorg/account-core` rename |
FE-2218 | Comfy-Org#17851 (review, sibling of this PR on Comfy-Org#17798) |
| 7 prep | `billing-contract` route builder + `return_to` registry |
FE-2218 | merged (Comfy-Org#17795) |
| 3A-3 | Workshop adapter over `createHostedTopupCheckout` | FE-2214 |
merged (Comfy-Org#17793) |
| 8 core | `previewSubscribe` command | FE-2331 | merged (Comfy-Org#17797) |
| 8 core | Plans + saved payment-methods readers | FE-2331 | Comfy-Org#17798
(review) |
| 8 ui | account-ui composables (`usePlans`, `usePaymentMethods`,
`usePreviewSubscribe`) | FE-2331 | Comfy-Org#17798 (review) |
| 7 | billing-web own-origin session, sign-in, SDK composition | FE-2218
| Comfy-Org#17798 (review) |
| 7 | billing-web unit tests in CI (`ci-billing-web-unit.yaml`) |
FE-2218 | merged (Comfy-Org#17827); Comfy-Org#17844 follow-up (review) |
| 7 | ingest CORS + top-up return hosts for billing.comfy.org and its
previews (Comfy-Org/cloud) | FE-2218 | merged (Comfy-Org/cloud#9512) |
| 8 ui | billing-web `/v1` entry routing + subscription / payment-method
surfaces | FE-2331 | Comfy-Org#17798 (review) |
| 7 | npm publish (`ingest-types`, `account-core`, `billing-contract`),
Platform install, billing-web live top-up | FE-2218 | todo |
| 6 | Contract tests per generated schema (package layer) | FE-2217 |
Comfy-Org#17829 (review) |
| 6 | Live E2E per flow × consumer + evidence table | FE-2217 | todo
(needs staging flags) |
| 5 slice 2 | Subscription flows through the SDK | FE-2216 | todo
(plan-change decision) |
| follow-up | One `needsCustomerAttention` predicate (from the Comfy-Org#17665
review) | FE-2216 | merged (Comfy-Org#17792) |
| follow-up | Opaque `BillingServerCode` (from the Comfy-Org#17656 review) |
FE-2227 | merged (Comfy-Org#17794) |
| follow-up | `useCredits` clears on `SUPERSEDED` (from the Comfy-Org#17799
review) | FE-2215 | merged (Comfy-Org#17824) |
| follow-up | credits / status / capabilities readers fence a late
failure as `SUPERSEDED` (from the Comfy-Org#17798 review) | FE-2331 | merged
(Comfy-Org#17828) |
| follow-up | one scoped-reader skeleton behind the five billing reads
(from the Comfy-Org#17798 fallow report) | FE-2331 | **this PR** |

```mermaid
flowchart LR
  P3["Phase 3 core lifecycle (merged)"]
  P4["Phase 4 account-ui (merged)"]
  P5["Phase 5 slice 1 top-up flag (merged)"]
  FC["PR 17716 hosted_billing_destination flag (merged)"]
  HD["PR 17783 hostedDestination port"]
  SS["PR 17782 scope-source port + credentialed transport"]
  RN["account-core rename"]
  RB["billing-contract route builder + return_to"]
  WS["Workshop adapter"]
  P8PV["previewSubscribe command"]
  P8RD["plans + payment-methods readers"]
  P8["account-ui hosted composables"]
  BWS["billing-web session + sign-in"]
  BWV["billing-web /v1 surfaces"]
  CORS["cloud PR 9512 ingest CORS + return hosts"]
  PUB["npm publish account-core / billing-contract"]
  P7["Phase 7 host proof: Platform + billing-web live"]
  P6C["Phase 6 contract tests"]
  P6["Phase 6 live evidence"]
  S2["Phase 5 slice 2 subscription"]
  FU9["customer-attention predicate"]
  FU11["opaque BillingServerCode"]
  FU12["useCredits clears on SUPERSEDED"]
  FU13["reader late-failure fence"]
  FU14["scoped reader skeleton"]
  P3 --> HD
  FC --> HD
  HD --> RB
  P3 --> SS
  SS --> P7
  RB --> P7
  P3 --> RN
  RN --> PUB
  RB --> PUB
  PUB --> P7
  P3 --> P8PV
  P3 --> P8RD
  P8PV --> P8
  P8RD --> P8
  P4 --> P8
  P8 --> S2
  P8 --> BWS
  BWS --> BWV
  RB --> BWV
  BWV --> P7
  CORS --> P7
  P5 --> P6
  P3 --> P6C
  P5 --> WS
  P5 --> FU9
  P3 --> FU11
  P4 --> FU12
  P3 --> FU13
  P8RD --> FU14
  FU13 --> FU14
  style P3 fill:#d4edda,stroke:#155724
  style P4 fill:#d4edda,stroke:#155724
  style P5 fill:#d4edda,stroke:#155724
  style FC fill:#d4edda,stroke:#155724
  style SS fill:#d4edda,stroke:#155724
  style RB fill:#d4edda,stroke:#155724
  style WS fill:#d4edda,stroke:#155724
  style FU9 fill:#d4edda,stroke:#155724
  style FU11 fill:#d4edda,stroke:#155724
  style FU12 fill:#d4edda,stroke:#155724
  style FU13 fill:#d4edda,stroke:#155724
  style CORS fill:#d4edda,stroke:#155724
  style P8PV fill:#d4edda,stroke:#155724
  style FU14 stroke:#0366d6,stroke-width:4px
```
dante01yoon added a commit that referenced this pull request Sep 17, 2026
…the SDK rail behind billing_sdk_subscription_enabled (#17853)

Stacked on #17783 (base branch
`jaewon/fe-2210-hosted-destination-port`); merge that first.

Phase 5 slice 1 (#17665) moved top-up onto the Billing SDK behind
`billing_sdk_topup_enabled`. The subscription actions the host already
owns — cancel, resubscribe, and opening the payment portal — still call
the workspace API directly and rely on the legacy poller for settlement
and telemetry. This slice moves those three onto the SDK's commands
behind their own server flag, `billing_sdk_subscription_enabled`
(already on `/api/features` via Comfy-Org/cloud#9248, PostHog at 0%), so
the eight-state lifecycle, idempotency, recovery and telemetry come from
one implementation. Subscribe and plan change are slice 2b, stacked on
this PR.

- **Rail switch.** `billingSdkSubscriptionRailEnabled` =
`billing_sdk_subscription_enabled` AND `unified_cloud_auth`, exactly
like the top-up rail. `useSubscriptionRail()` reads it once,
synchronously, at the start of an action, so a flag flip mid-flow cannot
issue on one rail and observe on the other.
- **Three actions, one adapter.**
`useWorkspaceBilling.cancelSubscription / resubscribe /
manageSubscription` try the rail first; the store runs
`sdk.commands.cancelSubscription()`, `resubscribe()`,
`openPaymentPortal({ returnUrl })` and projects the result onto what the
adapter already does with the legacy calls: settle, or throw a
`WorkspaceApiError` (message is the host's, since the SDK never carries
server text; `serverCode` lands in `.code`). A command that settles in
any phase but `succeeded` is a failure, matching the poller. The refresh
after success mirrors the poller's: cancel → status + balance +
capabilities; resubscribe → `reconcileSubscriptionSuccess` +
capabilities.
- **Fallback.** A 404 (backend gate closed while the client flag is on)
projects to `unavailable`: the adapter runs its legacy body for that
action, and the store latches the route as unavailable for the tab so
later actions go straight to legacy without another failed round trip.
Every other failure — including `SUPERSEDED` — is thrown, never retried
on legacy, so a late or superseded result cannot double-issue.
- **Telemetry.** Lifecycle events are now reported for non-topup
operations (top-up keeps its resumed-only filter because its dialog
reports). `toBillingTelemetryEvent` already emits the poller's payload
shape, so dashboards cannot tell the rails apart.
- **No client-derived server state.** Eligibility and already-held
answers come from the SDK and the server, as for top-up. `subscribe`,
`previewSubscribe`, `useSubscriptionCheckout` and `useLegacyBilling` are
untouched.

| State | AS-IS (flag off) | TO-BE (flag on) |
| --- | --- | --- |
| Cancel dialog at rest | <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/as-is-cancel-dialog.png">
| <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/to-be-cancel-dialog.png">
|
| Cancel in flight | <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/as-is-cancel-in-flight.png">
| <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/to-be-cancel-in-flight.png">
|
| Cancel settled (success toast) | <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/as-is-cancel-settled.png">
| <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/to-be-cancel-settled.png">
|
| Cancel failed (error toast) | <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/as-is-cancel-failed.png">
| <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/to-be-cancel-failed.png">
|
| User popover after cancel (cancelled state) | <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/as-is-panel-after-cancel.png">
| <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/to-be-panel-after-cancel.png">
|
| Cancel request recorded | <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/as-is-network.png">
| <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/to-be-network.png">
|
| Settings billing panel | <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/as-is-billing-panel.png">
| <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/to-be-billing-panel.png">
|
| Resubscribe (Resume Pro) | <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/as-is-resubscribe.png">
| <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/to-be-resubscribe.png">
|
| Resubscribe request recorded | <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/as-is-resubscribe-network.png">
| <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/to-be-resubscribe-network.png">
|
| Payment-portal request recorded | <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/as-is-portal-network.png">
| <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/to-be-portal-network.png">
|

- AS-IS (flag off): cancel / resubscribe / portal POST the workspace API
directly; settlement and telemetry come from the legacy poller.
- TO-BE (flag on): the same dialogs and toasts, the POSTs go through the
SDK transport (`Idempotency-Key` on the request), settlement through the
operation lifecycle; a 404 falls back to the legacy call.

| Gate | Result |
| --- | --- |
| `vitest run src/platform/workspace/billing src/composables/billing
src/platform/workspace/composables src/platform/workspace/stores
src/composables/useFeatureFlags` | 41 files, 1138 tests (12 new
projection tests, 13 new adapter rail tests, +5 store tests) |
| `pnpm typecheck`, `pnpm typecheck:browser`, `lint`, `format:check`,
`knip` | exit 0 |
| `fallow audit --changed-since
origin/jaewon/fe-2210-hosted-destination-port` | no issues in 11 changed
files, complexity 0, duplication 0 |
| Playwright
`browser_tests/tests/dialogs/cancelSubscriptionSdkRail.spec.ts` (cloud
project) | **3 passed** against a served cloud dev build —
`PLAYWRIGHT_TEST_URL=http://localhost:5173 pnpm exec playwright test
--project=cloud
browser_tests/tests/dialogs/cancelSubscriptionSdkRail.spec.ts
--reporter=list`. Flag off → legacy request, flow unchanged; flag on →
SDK request (`Idempotency-Key`), same dialog outcome; flag on + 404 →
legacy fallback. |

Billing SDK track FE-2210 ([implementation plan
V2](https://app.notion.com/p/3d86d73d36508152b92cdbdfdfe83ac8)). Hybrid
model: top-up in-app, subscription management / invoices / payment
methods on the hosted billing app.

| Phase | Item | Ticket | Status |
| --- | --- | --- | --- |
| 1-2 | Session core, transport, readers | FE-2211/2212/2213 | merged |
| 3 | Operation lifecycle, commands, eight-state projection |
FE-2227/2214/2223 | merged (#17655) |
| 4 | `@comfyorg/account-ui` composables + `CheckoutSteps` | FE-2215 |
merged (#17662, #17663) |
| 5 slice 1 | Top-up through the SDK behind `billing_sdk_topup_enabled`
| FE-2216 | merged (#17665) |
| rollout C | `hosted_billing_destination` server flag read by the host
| FE-2218 | merged (#17716) |
| rollout C | `hostedDestination` port on the lifecycle, value on
operation state | FE-2210/2218 | #17783 (review; parent of this PR) |
| 7 prep | Scope-source port + credentialed transport (BFF / cookie
hosts) | FE-2218 | merged (#17782) |
| 7 prep | `@comfyorg/account` → `@comfyorg/account-core` rename |
FE-2218 | #17851 (review) |
| 7 prep | `billing-contract` route builder + `return_to` registry |
FE-2218 | merged (#17795) |
| 3A-3 | Workshop adapter over `createHostedTopupCheckout` | FE-2214 |
merged (#17793) |
| 8 core | `previewSubscribe` command | FE-2331 | merged (#17797) |
| 8 core | Plans + saved payment-methods readers | FE-2331 | #17798
(queued) |
| 8 ui | account-ui composables (`usePlans`, `usePaymentMethods`,
`usePreviewSubscribe`) | FE-2331 | #17798 (queued) |
| 7 | billing-web own-origin session, sign-in, SDK composition | FE-2218
| #17798 (queued) |
| 7 | billing-web unit tests in CI (`ci-billing-web-unit.yaml`) |
FE-2218 | merged (#17827); #17844 (queued) |
| 7 | ingest CORS + top-up return hosts for billing.comfy.org and its
previews (Comfy-Org/cloud) | FE-2218 | merged (Comfy-Org/cloud#9512) |
| 8 ui | billing-web `/v1` entry routing + subscription / payment-method
surfaces | FE-2331 | #17798 (queued) |
| 7 | npm publish (`ingest-types`, `account-core`, `billing-contract`),
Platform install, billing-web live top-up | FE-2218 | todo |
| 6 | Contract tests per generated schema (package layer) | FE-2217 |
| 6 | Live E2E per flow × consumer + evidence table | FE-2217 | todo
(needs staging flags) |
| 5 slice 2a | Cancel, resubscribe and payment portal through the SDK
behind `billing_sdk_subscription_enabled` | FE-2216 | **this PR** |
| 5 slice 2b | Subscribe / plan change through the SDK
(`previewSubscribe` quote, then subscribe; the SDK stops
short-circuiting an active plan) | FE-2216 | next, stacked on this PR |
| follow-up | One `needsCustomerAttention` predicate (from the #17665
review) | FE-2216 | merged (#17792) |
| follow-up | Opaque `BillingServerCode` (from the #17656 review) |
FE-2227 | merged (#17794) |
| follow-up | `useCredits` clears on `SUPERSEDED` (from the #17799
review) | FE-2215 | merged (#17824) |
| follow-up | credits / status / capabilities readers fence a late
failure as `SUPERSEDED` (from the #17798 review) | FE-2331 | merged
(#17828) |

```mermaid
flowchart LR
  P3["Phase 3 core lifecycle (merged)"]
  P4["Phase 4 account-ui (merged)"]
  P5["Phase 5 slice 1 top-up flag (merged)"]
  FC["PR 17716 hosted_billing_destination flag (merged)"]
  HD["PR 17783 hostedDestination port"]
  SS["PR 17782 scope-source port + credentialed transport"]
  RN["account-core rename"]
  RB["billing-contract route builder + return_to"]
  WS["Workshop adapter"]
  P8PV["previewSubscribe command"]
  P8RD["plans + payment-methods readers"]
  P8["account-ui hosted composables"]
  BWS["billing-web session + sign-in"]
  BWV["billing-web /v1 surfaces"]
  CORS["cloud PR 9512 ingest CORS + return hosts"]
  PUB["npm publish account-core / billing-contract"]
  P7["Phase 7 host proof: Platform + billing-web live"]
  P6C["Phase 6 contract tests"]
  P6["Phase 6 live evidence"]
  S2A["Phase 5 slice 2a cancel / resubscribe / portal rail"]
  S2B["Phase 5 slice 2b subscribe + plan change"]
  FU9["customer-attention predicate"]
  FU11["opaque BillingServerCode"]
  FU12["useCredits clears on SUPERSEDED"]
  FU13["reader late-failure fence"]
  P3 --> HD
  FC --> HD
  HD --> RB
  P3 --> SS
  SS --> P7
  RB --> P7
  P3 --> RN
  RN --> PUB
  RB --> PUB
  PUB --> P7
  P3 --> P8PV
  P3 --> P8RD
  P8PV --> P8
  P8RD --> P8
  P4 --> P8
  P8 --> S2B
  HD --> S2A
  S2A --> S2B
  P8 --> BWS
  BWS --> BWV
  RB --> BWV
  BWV --> P7
  CORS --> P7
  P5 --> P6
  P3 --> P6C
  P5 --> WS
  P5 --> FU9
  P3 --> FU11
  P4 --> FU12
  P3 --> FU13
  style P3 fill:#d4edda,stroke:#155724
  style P4 fill:#d4edda,stroke:#155724
  style P5 fill:#d4edda,stroke:#155724
  style FC fill:#d4edda,stroke:#155724
  style SS fill:#d4edda,stroke:#155724
  style RB fill:#d4edda,stroke:#155724
  style WS fill:#d4edda,stroke:#155724
  style FU9 fill:#d4edda,stroke:#155724
  style FU11 fill:#d4edda,stroke:#155724
  style FU12 fill:#d4edda,stroke:#155724
  style FU13 fill:#d4edda,stroke:#155724
  style CORS fill:#d4edda,stroke:#155724
  style P8PV fill:#d4edda,stroke:#155724
  style S2A stroke:#0366d6,stroke-width:4px
```
dante01yoon added a commit that referenced this pull request Sep 17, 2026
…the SDK rail behind billing_sdk_subscription_enabled (#17853)

Stacked on #17783 (base branch
`jaewon/fe-2210-hosted-destination-port`); merge that first.

Phase 5 slice 1 (#17665) moved top-up onto the Billing SDK behind
`billing_sdk_topup_enabled`. The subscription actions the host already
owns — cancel, resubscribe, and opening the payment portal — still call
the workspace API directly and rely on the legacy poller for settlement
and telemetry. This slice moves those three onto the SDK's commands
behind their own server flag, `billing_sdk_subscription_enabled`
(already on `/api/features` via Comfy-Org/cloud#9248, PostHog at 0%), so
the eight-state lifecycle, idempotency, recovery and telemetry come from
one implementation. Subscribe and plan change are slice 2b, stacked on
this PR.

- **Rail switch.** `billingSdkSubscriptionRailEnabled` =
`billing_sdk_subscription_enabled` AND `unified_cloud_auth`, exactly
like the top-up rail. `useSubscriptionRail()` reads it once,
synchronously, at the start of an action, so a flag flip mid-flow cannot
issue on one rail and observe on the other.
- **Three actions, one adapter.**
`useWorkspaceBilling.cancelSubscription / resubscribe /
manageSubscription` try the rail first; the store runs
`sdk.commands.cancelSubscription()`, `resubscribe()`,
`openPaymentPortal({ returnUrl })` and projects the result onto what the
adapter already does with the legacy calls: settle, or throw a
`WorkspaceApiError` (message is the host's, since the SDK never carries
server text; `serverCode` lands in `.code`). A command that settles in
any phase but `succeeded` is a failure, matching the poller. The refresh
after success mirrors the poller's: cancel → status + balance +
capabilities; resubscribe → `reconcileSubscriptionSuccess` +
capabilities.
- **Fallback.** A 404 (backend gate closed while the client flag is on)
projects to `unavailable`: the adapter runs its legacy body for that
action, and the store latches the route as unavailable for the tab so
later actions go straight to legacy without another failed round trip.
Every other failure — including `SUPERSEDED` — is thrown, never retried
on legacy, so a late or superseded result cannot double-issue.
- **Telemetry.** Lifecycle events are now reported for non-topup
operations (top-up keeps its resumed-only filter because its dialog
reports). `toBillingTelemetryEvent` already emits the poller's payload
shape, so dashboards cannot tell the rails apart.
- **No client-derived server state.** Eligibility and already-held
answers come from the SDK and the server, as for top-up. `subscribe`,
`previewSubscribe`, `useSubscriptionCheckout` and `useLegacyBilling` are
untouched.

| State | AS-IS (flag off) | TO-BE (flag on) |
| --- | --- | --- |
| Cancel dialog at rest | <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/as-is-cancel-dialog.png">
| <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/to-be-cancel-dialog.png">
|
| Cancel in flight | <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/as-is-cancel-in-flight.png">
| <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/to-be-cancel-in-flight.png">
|
| Cancel settled (success toast) | <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/as-is-cancel-settled.png">
| <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/to-be-cancel-settled.png">
|
| Cancel failed (error toast) | <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/as-is-cancel-failed.png">
| <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/to-be-cancel-failed.png">
|
| User popover after cancel (cancelled state) | <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/as-is-panel-after-cancel.png">
| <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/to-be-panel-after-cancel.png">
|
| Cancel request recorded | <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/as-is-network.png">
| <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/to-be-network.png">
|
| Settings billing panel | <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/as-is-billing-panel.png">
| <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/to-be-billing-panel.png">
|
| Resubscribe (Resume Pro) | <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/as-is-resubscribe.png">
| <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/to-be-resubscribe.png">
|
| Resubscribe request recorded | <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/as-is-resubscribe-network.png">
| <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/to-be-resubscribe-network.png">
|
| Payment-portal request recorded | <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/as-is-portal-network.png">
| <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17853-screenshots/screenshots/to-be-portal-network.png">
|

- AS-IS (flag off): cancel / resubscribe / portal POST the workspace API
directly; settlement and telemetry come from the legacy poller.
- TO-BE (flag on): the same dialogs and toasts, the POSTs go through the
SDK transport (`Idempotency-Key` on the request), settlement through the
operation lifecycle; a 404 falls back to the legacy call.

| Gate | Result |
| --- | --- |
| `vitest run src/platform/workspace/billing src/composables/billing
src/platform/workspace/composables src/platform/workspace/stores
src/composables/useFeatureFlags` | 41 files, 1138 tests (12 new
projection tests, 13 new adapter rail tests, +5 store tests) |
| `pnpm typecheck`, `pnpm typecheck:browser`, `lint`, `format:check`,
`knip` | exit 0 |
| `fallow audit --changed-since
origin/jaewon/fe-2210-hosted-destination-port` | no issues in 11 changed
files, complexity 0, duplication 0 |
| Playwright
`browser_tests/tests/dialogs/cancelSubscriptionSdkRail.spec.ts` (cloud
project) | **3 passed** against a served cloud dev build —
`PLAYWRIGHT_TEST_URL=http://localhost:5173 pnpm exec playwright test
--project=cloud
browser_tests/tests/dialogs/cancelSubscriptionSdkRail.spec.ts
--reporter=list`. Flag off → legacy request, flow unchanged; flag on →
SDK request (`Idempotency-Key`), same dialog outcome; flag on + 404 →
legacy fallback. |

Billing SDK track FE-2210 ([implementation plan
V2](https://app.notion.com/p/3d86d73d36508152b92cdbdfdfe83ac8)). Hybrid
model: top-up in-app, subscription management / invoices / payment
methods on the hosted billing app.

| Phase | Item | Ticket | Status |
| --- | --- | --- | --- |
| 1-2 | Session core, transport, readers | FE-2211/2212/2213 | merged |
| 3 | Operation lifecycle, commands, eight-state projection |
FE-2227/2214/2223 | merged (#17655) |
| 4 | `@comfyorg/account-ui` composables + `CheckoutSteps` | FE-2215 |
merged (#17662, #17663) |
| 5 slice 1 | Top-up through the SDK behind `billing_sdk_topup_enabled`
| FE-2216 | merged (#17665) |
| rollout C | `hosted_billing_destination` server flag read by the host
| FE-2218 | merged (#17716) |
| rollout C | `hostedDestination` port on the lifecycle, value on
operation state | FE-2210/2218 | #17783 (review; parent of this PR) |
| 7 prep | Scope-source port + credentialed transport (BFF / cookie
hosts) | FE-2218 | merged (#17782) |
| 7 prep | `@comfyorg/account` → `@comfyorg/account-core` rename |
FE-2218 | #17851 (review) |
| 7 prep | `billing-contract` route builder + `return_to` registry |
FE-2218 | merged (#17795) |
| 3A-3 | Workshop adapter over `createHostedTopupCheckout` | FE-2214 |
merged (#17793) |
| 8 core | `previewSubscribe` command | FE-2331 | merged (#17797) |
| 8 core | Plans + saved payment-methods readers | FE-2331 | #17798
(queued) |
| 8 ui | account-ui composables (`usePlans`, `usePaymentMethods`,
`usePreviewSubscribe`) | FE-2331 | #17798 (queued) |
| 7 | billing-web own-origin session, sign-in, SDK composition | FE-2218
| #17798 (queued) |
| 7 | billing-web unit tests in CI (`ci-billing-web-unit.yaml`) |
FE-2218 | merged (#17827); #17844 (queued) |
| 7 | ingest CORS + top-up return hosts for billing.comfy.org and its
previews (Comfy-Org/cloud) | FE-2218 | merged (Comfy-Org/cloud#9512) |
| 8 ui | billing-web `/v1` entry routing + subscription / payment-method
surfaces | FE-2331 | #17798 (queued) |
| 7 | npm publish (`ingest-types`, `account-core`, `billing-contract`),
Platform install, billing-web live top-up | FE-2218 | todo |
| 6 | Contract tests per generated schema (package layer) | FE-2217 |
| 6 | Live E2E per flow × consumer + evidence table | FE-2217 | todo
(needs staging flags) |
| 5 slice 2a | Cancel, resubscribe and payment portal through the SDK
behind `billing_sdk_subscription_enabled` | FE-2216 | **this PR** |
| 5 slice 2b | Subscribe / plan change through the SDK
(`previewSubscribe` quote, then subscribe; the SDK stops
short-circuiting an active plan) | FE-2216 | next, stacked on this PR |
| follow-up | One `needsCustomerAttention` predicate (from the #17665
review) | FE-2216 | merged (#17792) |
| follow-up | Opaque `BillingServerCode` (from the #17656 review) |
FE-2227 | merged (#17794) |
| follow-up | `useCredits` clears on `SUPERSEDED` (from the #17799
review) | FE-2215 | merged (#17824) |
| follow-up | credits / status / capabilities readers fence a late
failure as `SUPERSEDED` (from the #17798 review) | FE-2331 | merged
(#17828) |

```mermaid
flowchart LR
  P3["Phase 3 core lifecycle (merged)"]
  P4["Phase 4 account-ui (merged)"]
  P5["Phase 5 slice 1 top-up flag (merged)"]
  FC["PR 17716 hosted_billing_destination flag (merged)"]
  HD["PR 17783 hostedDestination port"]
  SS["PR 17782 scope-source port + credentialed transport"]
  RN["account-core rename"]
  RB["billing-contract route builder + return_to"]
  WS["Workshop adapter"]
  P8PV["previewSubscribe command"]
  P8RD["plans + payment-methods readers"]
  P8["account-ui hosted composables"]
  BWS["billing-web session + sign-in"]
  BWV["billing-web /v1 surfaces"]
  CORS["cloud PR 9512 ingest CORS + return hosts"]
  PUB["npm publish account-core / billing-contract"]
  P7["Phase 7 host proof: Platform + billing-web live"]
  P6C["Phase 6 contract tests"]
  P6["Phase 6 live evidence"]
  S2A["Phase 5 slice 2a cancel / resubscribe / portal rail"]
  S2B["Phase 5 slice 2b subscribe + plan change"]
  FU9["customer-attention predicate"]
  FU11["opaque BillingServerCode"]
  FU12["useCredits clears on SUPERSEDED"]
  FU13["reader late-failure fence"]
  P3 --> HD
  FC --> HD
  HD --> RB
  P3 --> SS
  SS --> P7
  RB --> P7
  P3 --> RN
  RN --> PUB
  RB --> PUB
  PUB --> P7
  P3 --> P8PV
  P3 --> P8RD
  P8PV --> P8
  P8RD --> P8
  P4 --> P8
  P8 --> S2B
  HD --> S2A
  S2A --> S2B
  P8 --> BWS
  BWS --> BWV
  RB --> BWV
  BWV --> P7
  CORS --> P7
  P5 --> P6
  P3 --> P6C
  P5 --> WS
  P5 --> FU9
  P3 --> FU11
  P4 --> FU12
  P3 --> FU13
  style P3 fill:#d4edda,stroke:#155724
  style P4 fill:#d4edda,stroke:#155724
  style P5 fill:#d4edda,stroke:#155724
  style FC fill:#d4edda,stroke:#155724
  style SS fill:#d4edda,stroke:#155724
  style RB fill:#d4edda,stroke:#155724
  style WS fill:#d4edda,stroke:#155724
  style FU9 fill:#d4edda,stroke:#155724
  style FU11 fill:#d4edda,stroke:#155724
  style FU12 fill:#d4edda,stroke:#155724
  style FU13 fill:#d4edda,stroke:#155724
  style CORS fill:#d4edda,stroke:#155724
  style P8PV fill:#d4edda,stroke:#155724
  style S2A stroke:#0366d6,stroke-width:4px
```
pull Bot pushed a commit to Penguinjanator/ComfyUI_frontend that referenced this pull request Sep 17, 2026
…unt-core (Comfy-Org#17851)

Stacked on Comfy-Org#17798 (base branch
`jaewon/fe-2331-plans-payment-methods-readers`); merge that first, then
this rebases to `main` with no content change.

## Why

Phase 7 (FE-2218) publishes the framework-free billing core to npm so
Platform can install it from a clean non-workspace checkout, and the
plan fixes the physical `account-core` / `account-ui` split as the
boundary that gets published, not the transitional `packages/account`.
The view package `@comfyorg/account-ui` already exists; the core still
carries the old name. This is the one mechanical rename PR the plan
schedules after Phase 5 slice 1 and before the first publish.

## How

Two commits so the review is trivial:

1. `git mv packages/account packages/account-core` — 95 files, 0
insertions, 0 deletions, every path a 100% rename.
2. The specifier and config edits — package name `@comfyorg/account` →
`@comfyorg/account-core`, every `workspace:*` dependency (root,
`apps/billing-web`, `apps/website`, `packages/account-ui`), every import
specifier under `src/`, `packages/`, `apps/`, `browser_tests/`, the root
`typecheck` / `lint` scripts (`typecheck:account` →
`typecheck:account-core`), `knip.config.ts`, `eslint.config.ts`, the
per-package loop and codecov file list in `ci-tests-unit.yaml`, the
lockfile importer keys, and the two ADRs that name the package in prose.
The delta over a 1:1 swap is oxfmt reflowing import lines the five extra
characters pushed past 80 columns.

Left alone on purpose: the `./vue` entry (the auth Vue pieces move to
`account-ui` in the next PR of this stack), the Firebase app name
`comfy-account` in ADR-0028, and the ADR filenames and headings
(renaming those would break the ADR index and inbound links). `git grep
"@comfyorg/account\b"` and `git grep "packages/account/"` return nothing
after this change.

The replay script lives under `temp/scripts/rename-account-core.sh`
(gitignored); if a sibling PR merges first, re-running it on a fresh
base reproduces this diff.

## AS-IS / TO-BE

No user-facing change; package boundary only.

- AS-IS: `packages/account` publishes as `@comfyorg/account` and is the
name Platform would have to install, while the view layer is already
`@comfyorg/account-ui`.
- TO-BE: `packages/account-core` publishes as `@comfyorg/account-core`;
`account-ui` and `billing-web` depend on it by the final name.

## Testing

| Gate | Result |
| --- | --- |
| `pnpm install --frozen-lockfile` | resolves with the new name |
| `packages/account-core` vitest | 41 files, 674 tests |
| `packages/account-ui` vitest | 9 files, 41 tests |
| `@comfyorg/billing-web` test:unit / build | 10 files, 90 tests / built
|
| `@comfyorg/website` typecheck | 0 errors |
| root `pnpm typecheck`, `lint`, `format`, `knip` | all exit 0 |
| `vitest run src/platform/workspace/billing` | 5 files, 50 tests |
| `pnpm typecheck:browser`, `typecheck:website` (pre-commit) | green |

## Where this sits in the plan

Billing SDK track FE-2210 ([implementation plan
V2](https://app.notion.com/p/3d86d73d36508152b92cdbdfdfe83ac8)). Hybrid
model: top-up in-app, subscription management / invoices / payment
methods on the hosted billing app.

| Phase | Item | Ticket | Status |
| --- | --- | --- | --- |
| 1-2 | Session core, transport, readers | FE-2211/2212/2213 | merged |
| 3 | Operation lifecycle, commands, eight-state projection |
FE-2227/2214/2223 | merged (Comfy-Org#17655) |
| 4 | `@comfyorg/account-ui` composables + `CheckoutSteps` | FE-2215 |
merged (Comfy-Org#17662, Comfy-Org#17663) |
| 5 slice 1 | Top-up through the SDK behind `billing_sdk_topup_enabled`
| FE-2216 | merged (Comfy-Org#17665) |
| rollout C | `hosted_billing_destination` server flag read by the host
| FE-2218 | merged (Comfy-Org#17716) |
| rollout C | `hostedDestination` port on the lifecycle, value on
operation state | FE-2210/2218 | Comfy-Org#17783 (review) |
| 7 prep | Scope-source port + credentialed transport (BFF / cookie
hosts) | FE-2218 | merged (Comfy-Org#17782) |
| 7 prep | `@comfyorg/account` → `@comfyorg/account-core` rename |
FE-2218 | **this PR** |
| 7 prep | `billing-contract` route builder + `return_to` registry |
FE-2218 | merged (Comfy-Org#17795) |
| 3A-3 | Workshop adapter over `createHostedTopupCheckout` | FE-2214 |
merged (Comfy-Org#17793) |
| 8 core | `previewSubscribe` command | FE-2331 | merged (Comfy-Org#17797) |
| 8 core | Plans + saved payment-methods readers | FE-2331 | Comfy-Org#17798
(review) |
| 8 ui | account-ui composables (`usePlans`, `usePaymentMethods`,
`usePreviewSubscribe`) | FE-2331 | Comfy-Org#17798 (review) |
| 7 | billing-web own-origin session, sign-in, SDK composition | FE-2218
| Comfy-Org#17798 (review) |
| 7 | billing-web unit tests in CI (`ci-billing-web-unit.yaml`) |
FE-2218 | merged (Comfy-Org#17827); Comfy-Org#17844 follow-up (review) |
| 7 | ingest CORS + top-up return hosts for billing.comfy.org and its
previews (Comfy-Org/cloud) | FE-2218 | merged (Comfy-Org/cloud#9512) |
| 8 ui | billing-web `/v1` entry routing + subscription / payment-method
surfaces | FE-2331 | Comfy-Org#17798 (review) |
| 7 | npm publish (`ingest-types`, `account-core`, `billing-contract`),
Platform install, billing-web live top-up | FE-2218 | todo |
| 6 | Contract tests per generated schema (package layer) | FE-2217 |
Comfy-Org#17829 (review) |
| 6 | Live E2E per flow × consumer + evidence table | FE-2217 | todo
(needs staging flags) |
| 5 slice 2 | Subscription flows through the SDK | FE-2216 | todo
(plan-change decision) |
| follow-up | One `needsCustomerAttention` predicate (from the Comfy-Org#17665
review) | FE-2216 | merged (Comfy-Org#17792) |
| follow-up | Opaque `BillingServerCode` (from the Comfy-Org#17656 review) |
FE-2227 | merged (Comfy-Org#17794) |
| follow-up | `useCredits` clears on `SUPERSEDED` (from the Comfy-Org#17799
review) | FE-2215 | merged (Comfy-Org#17824) |
| follow-up | credits / status / capabilities readers fence a late
failure as `SUPERSEDED` (from the Comfy-Org#17798 review) | FE-2331 | merged
(Comfy-Org#17828) |

```mermaid
flowchart LR
  P3["Phase 3 core lifecycle (merged)"]
  P4["Phase 4 account-ui (merged)"]
  P5["Phase 5 slice 1 top-up flag (merged)"]
  FC["PR 17716 hosted_billing_destination flag (merged)"]
  HD["PR 17783 hostedDestination port"]
  SS["PR 17782 scope-source port + credentialed transport"]
  RN["account-core rename"]
  RB["billing-contract route builder + return_to"]
  WS["Workshop adapter"]
  P8PV["previewSubscribe command"]
  P8RD["plans + payment-methods readers"]
  P8["account-ui hosted composables"]
  BWS["billing-web session + sign-in"]
  BWV["billing-web /v1 surfaces"]
  CORS["cloud PR 9512 ingest CORS + return hosts"]
  PUB["npm publish account-core / billing-contract"]
  P7["Phase 7 host proof: Platform + billing-web live"]
  P6C["Phase 6 contract tests"]
  P6["Phase 6 live evidence"]
  S2["Phase 5 slice 2 subscription"]
  FU9["customer-attention predicate"]
  FU11["opaque BillingServerCode"]
  FU12["useCredits clears on SUPERSEDED"]
  FU13["reader late-failure fence"]
  P3 --> HD
  FC --> HD
  HD --> RB
  P3 --> SS
  SS --> P7
  RB --> P7
  P3 --> RN
  RN --> PUB
  RB --> PUB
  PUB --> P7
  P3 --> P8PV
  P3 --> P8RD
  P8PV --> P8
  P8RD --> P8
  P4 --> P8
  P8 --> S2
  P8 --> BWS
  BWS --> BWV
  RB --> BWV
  BWV --> P7
  CORS --> P7
  P5 --> P6
  P3 --> P6C
  P5 --> WS
  P5 --> FU9
  P3 --> FU11
  P4 --> FU12
  P3 --> FU13
  style P3 fill:#d4edda,stroke:#155724
  style P4 fill:#d4edda,stroke:#155724
  style P5 fill:#d4edda,stroke:#155724
  style FC fill:#d4edda,stroke:#155724
  style SS fill:#d4edda,stroke:#155724
  style RB fill:#d4edda,stroke:#155724
  style WS fill:#d4edda,stroke:#155724
  style FU9 fill:#d4edda,stroke:#155724
  style FU11 fill:#d4edda,stroke:#155724
  style FU12 fill:#d4edda,stroke:#155724
  style FU13 fill:#d4edda,stroke:#155724
  style CORS fill:#d4edda,stroke:#155724
  style P8PV fill:#d4edda,stroke:#155724
  style RN stroke:#0366d6,stroke-width:4px
```
pull Bot pushed a commit to Mu-L/ComfyUI_frontend that referenced this pull request Sep 17, 2026
…ling core (Comfy-Org#17854)

Stacked on Comfy-Org#17851 (base branch `jaewon/fe-2218-account-core-rename`),
which stacks on Comfy-Org#17798; merge those first.

## Why

The plan's first decision was that the Vue layer leaves the account
package: composables and unstyled components ship from
`@comfyorg/account-ui`, and the core keeps zero Vue coupling by
construction rather than by an import-guard test. The auth Vue pieces
(`PasswordRules`, `SocialAuthButtons`, `TurnstileWidget`, the region and
Turnstile gates, the lifecycle scope and generation guard) had shipped
in the core's `./vue` entry days before that decision and were
deliberately left for a later follow-up so the fresh auth stack was not
destabilised. With the rename in Comfy-Org#17851 fixing `account-core` as the
boundary that gets published (Phase 7), this is that follow-up: the
published core must not drag `vue`, `@vueuse/core` or a `.vue` entry to
Platform.

## How

- `packages/account-core/src/vue/**` → `packages/account-ui/src/auth/**`
with `git mv` (7 modules + their 7 tests; git records every file as a
rename). The framework-free helpers stay in the core and keep their
public subpaths (`/signInSchemas`, `/turnstileScript`,
`/boundedOperation`); the moved files reach them through those.
- `@comfyorg/account-ui` gains per-module `./auth/*` exports (mirroring
how consumers already import these individually and how the app-side
test mocks target one module each) plus the two workspace deps the moved
files need (`@comfyorg/shared-frontend-utils`,
`@comfyorg/tailwind-utils`; both fine in the view package, neither
allowed in the core).
- The core drops the `./vue/*` exports, `vue`, `@vueuse/core`,
`vue-tsc`, `@vitejs/plugin-vue`, `@testing-library/vue|user-event`,
`@comfyorg/tailwind-utils` and the `peerDependenciesMeta` block;
`typecheck` becomes `tsc --noEmit`; the vitest `account-vue` project
becomes `account-firebase` (happy-dom for `src/firebase/**` only).
- `vueBoundary.test.ts` now proves the boundary three ways: no `vue` /
`@vueuse` import anywhere under `src` (the old `vue/` carve-out is
gone), no Vue dependency in any manifest field, and no `.vue` file
behind any export.
- 17 import sites in 13 files repointed (`apps/billing-web`,
`apps/website`, `src/`); root and `apps/website` gain
`@comfyorg/account-ui: workspace:*`.

A pure `git mv` commit was not possible: the pre-commit hook lints and
type-checks the staged tree, and a rename without repoints leaves 17
unresolved imports. Commit 1 is therefore the rename plus the mechanical
repoints; commit 2 is the boundary guard.

## AS-IS / TO-BE

No user-facing change; package boundary only.

- AS-IS: `@comfyorg/account-core` exports `./vue/*` and depends on
`vue`; a Platform install of the core would pull Vue and `.vue` files.
- TO-BE: `@comfyorg/account-core` has no view entry and no Vue
dependency; the sign-in pieces ship from `@comfyorg/account-ui/auth/*`
next to `./billing`.

## Testing

| Gate | Result |
| --- | --- |
| `packages/account-core` vitest | 34 files, 638 tests |
| `packages/account-ui` vitest | 16 files, 79 tests (7 moved suites) |
| `@comfyorg/billing-web` test:unit / build | 10 files, 90 tests / built
|
| `@comfyorg/website` typecheck | 0 errors |
| root `pnpm typecheck`, `lint`, `format`, `knip` | exit 0 |
| `vitest run src/components/dialog/content/signin src/components/auth
src/platform/workspace/billing` | 11 files, 94 tests |
| `git grep "account-core/vue"` | no matches |

## Where this sits in the plan

Billing SDK track FE-2210 ([implementation plan
V2](https://app.notion.com/p/3d86d73d36508152b92cdbdfdfe83ac8)). Hybrid
model: top-up in-app, subscription management / invoices / payment
methods on the hosted billing app.

| Phase | Item | Ticket | Status |
| --- | --- | --- | --- |
| 1-2 | Session core, transport, readers | FE-2211/2212/2213 | merged |
| 3 | Operation lifecycle, commands, eight-state projection |
FE-2227/2214/2223 | merged (Comfy-Org#17655) |
| 4 | `@comfyorg/account-ui` composables + `CheckoutSteps` | FE-2215 |
merged (Comfy-Org#17662, Comfy-Org#17663) |
| 5 slice 1 | Top-up through the SDK behind `billing_sdk_topup_enabled`
| FE-2216 | merged (Comfy-Org#17665) |
| rollout C | `hosted_billing_destination` server flag read by the host
| FE-2218 | merged (Comfy-Org#17716) |
| rollout C | `hostedDestination` port on the lifecycle, value on
operation state | FE-2210/2218 | Comfy-Org#17783 (review) |
| 7 prep | Scope-source port + credentialed transport (BFF / cookie
hosts) | FE-2218 | merged (Comfy-Org#17782) |
| 7 prep | `@comfyorg/account` → `@comfyorg/account-core` rename |
FE-2218 | Comfy-Org#17851 (review; parent of this PR) |
| 4 follow-up | auth Vue pieces leave the core for
`@comfyorg/account-ui` (`./auth/*`) | FE-2215 | **this PR** |
| 7 prep | `billing-contract` route builder + `return_to` registry |
FE-2218 | merged (Comfy-Org#17795) |
| 3A-3 | Workshop adapter over `createHostedTopupCheckout` | FE-2214 |
merged (Comfy-Org#17793) |
| 8 core | `previewSubscribe` command | FE-2331 | merged (Comfy-Org#17797) |
| 8 core | Plans + saved payment-methods readers | FE-2331 | Comfy-Org#17798
(queued) |
| 8 ui | account-ui composables (`usePlans`, `usePaymentMethods`,
`usePreviewSubscribe`) | FE-2331 | Comfy-Org#17798 (queued) |
| 7 | billing-web own-origin session, sign-in, SDK composition | FE-2218
| Comfy-Org#17798 (queued) |
| 7 | billing-web unit tests in CI (`ci-billing-web-unit.yaml`) |
FE-2218 | merged (Comfy-Org#17827); Comfy-Org#17844 (queued) |
| 7 | ingest CORS + top-up return hosts for billing.comfy.org and its
previews (Comfy-Org/cloud) | FE-2218 | merged (Comfy-Org/cloud#9512) |
| 8 ui | billing-web `/v1` entry routing + subscription / payment-method
surfaces | FE-2331 | Comfy-Org#17798 (queued) |
| 7 | npm publish (`ingest-types`, `account-core`, `billing-contract`),
Platform install, billing-web live top-up | FE-2218 | todo |
| 6 | Contract tests per generated schema (package layer) | FE-2217 |
Comfy-Org#17829 (review) |
| 6 | Live E2E per flow × consumer + evidence table | FE-2217 | todo
(needs staging flags) |
| 5 slice 2 | Subscription flows through the SDK | FE-2216 | todo
(plan-change decision) |
| follow-up | One `needsCustomerAttention` predicate (from the Comfy-Org#17665
review) | FE-2216 | merged (Comfy-Org#17792) |
| follow-up | Opaque `BillingServerCode` (from the Comfy-Org#17656 review) |
FE-2227 | merged (Comfy-Org#17794) |
| follow-up | `useCredits` clears on `SUPERSEDED` (from the Comfy-Org#17799
review) | FE-2215 | merged (Comfy-Org#17824) |
| follow-up | credits / status / capabilities readers fence a late
failure as `SUPERSEDED` (from the Comfy-Org#17798 review) | FE-2331 | merged
(Comfy-Org#17828) |

```mermaid
flowchart LR
  P3["Phase 3 core lifecycle (merged)"]
  P4["Phase 4 account-ui (merged)"]
  P5["Phase 5 slice 1 top-up flag (merged)"]
  FC["PR 17716 hosted_billing_destination flag (merged)"]
  HD["PR 17783 hostedDestination port"]
  SS["PR 17782 scope-source port + credentialed transport"]
  RN["PR 17851 account-core rename"]
  VUE["auth Vue pieces to account-ui"]
  RB["billing-contract route builder + return_to"]
  WS["Workshop adapter"]
  P8PV["previewSubscribe command"]
  P8RD["plans + payment-methods readers"]
  P8["account-ui hosted composables"]
  BWS["billing-web session + sign-in"]
  BWV["billing-web /v1 surfaces"]
  CORS["cloud PR 9512 ingest CORS + return hosts"]
  PUB["npm publish account-core / billing-contract"]
  P7["Phase 7 host proof: Platform + billing-web live"]
  P6C["Phase 6 contract tests"]
  P6["Phase 6 live evidence"]
  S2["Phase 5 slice 2 subscription"]
  FU9["customer-attention predicate"]
  FU11["opaque BillingServerCode"]
  FU12["useCredits clears on SUPERSEDED"]
  FU13["reader late-failure fence"]
  P3 --> HD
  FC --> HD
  HD --> RB
  P3 --> SS
  SS --> P7
  RB --> P7
  P3 --> RN
  RN --> PUB
  RN --> VUE
  RB --> PUB
  PUB --> P7
  P3 --> P8PV
  P3 --> P8RD
  P8PV --> P8
  P8RD --> P8
  P4 --> P8
  P8 --> S2
  P8 --> BWS
  BWS --> BWV
  RB --> BWV
  BWV --> P7
  CORS --> P7
  P5 --> P6
  P3 --> P6C
  P5 --> WS
  P5 --> FU9
  P3 --> FU11
  P4 --> FU12
  P3 --> FU13
  style P3 fill:#d4edda,stroke:#155724
  style P4 fill:#d4edda,stroke:#155724
  style P5 fill:#d4edda,stroke:#155724
  style FC fill:#d4edda,stroke:#155724
  style SS fill:#d4edda,stroke:#155724
  style RB fill:#d4edda,stroke:#155724
  style WS fill:#d4edda,stroke:#155724
  style FU9 fill:#d4edda,stroke:#155724
  style FU11 fill:#d4edda,stroke:#155724
  style FU12 fill:#d4edda,stroke:#155724
  style FU13 fill:#d4edda,stroke:#155724
  style CORS fill:#d4edda,stroke:#155724
  style P8PV fill:#d4edda,stroke:#155724
  style VUE stroke:#0366d6,stroke-width:4px
```
dante01yoon added a commit that referenced this pull request Sep 17, 2026
…act when the hosted destination says billing_web (#17860)

Stacked on #17856 (base branch `jaewon/fe-2216-plan-change`) → #17853 →
#17783; merge those first.

## Why

Rollout layer C (`hosted_billing_destination`, `stripe` | `billing_web`,
PostHog at 100% `stripe`) decides where a hosted billing action lands.
The plan says the host reads the flag, hands it to the SDK (#17783) and,
when it says `billing_web`, mints a `/v1/<intent>` entry with
`return_to` from `@comfyorg/billing-contract`, the one definition of
that route surface (#17795); when it says `stripe`, the backend's URL is
opened unchanged. Today the host only opens the bare billing-web origin
from the user popover (#17716) with no intent and no `return_to`, and
"Billing & invoices" in the settings panel always goes to the Stripe
portal. This is the last un-opened code item before the Phase 7 host
proof.

## How

- `src/platform/workspace/billing/hostedBillingRoutes.ts`:
`hostedBillingRoute(destination, intent)` returns `{ kind:
'billing_web', url }` built by `buildBillingEntryUrl({ billingOrigin,
intent, product: 'comfyui', returnTo: 'comfyui_workspace' })`, or `{
kind: 'provider' }` meaning "use the server's URL". The environment is
derived, not hardcoded: the cloud base URL's hostname through the
existing `resolveDeployEnv` map (`prod-v2 | stg-v2 | test-v2` →
`production | staging | test`), which also classifies a local dev
session by the backend it talks to. Fails closed to the provider on: no
configured origin, an unknown backend family, a return target with no
destination in that family, or an entry the contract refuses. A
path-prefixed `VITE_BILLING_WEB_URL` keeps its prefix under the minted
route.
- Consumers: the popover's "Plans and pricing" mints the `pricing`
intent (billing-web routes it to the subscription view; the in-app
dialog stays the `stripe` behaviour and the popup-blocked fallback);
`useWorkspaceBilling.manageSubscription()` mints `payment-methods`
**before** either rail is consulted, so on `billing_web` no portal URL
is requested on the SDK rail or the legacy one, and `openPortalWindow` +
`refreshOnPortalReturn` still run so the return re-reads status, balance
and capabilities.
- Also fixed on the way: the popover treated a falsy `window.open(…,
"noopener,noreferrer")` result as a blocked popup and showed the in-app
pricing dialog as a fallback. Per the HTML spec `noopener` always
returns `null`, so on `billing_web` the tab and the dialog opened
together — a latent defect inherited from #17370 on `main`, caught by
this PR's evidence run. The fallback is gone; the E2E `window.open` stub
now returns `null` for `noopener` like a browser does, and a popover
case covers both destinations.
- Left on the provider on purpose:
`useSubscriptionCheckout.recoverOutstandingPayment` and the
`payment_method_url` steps inside an operation are mid-checkout provider
steps, not hosted management; `invoices` and `result` are not served by
billing-web yet (`ComingSoonView`), so nothing mints them; the legacy
`/customers` rail's `accessBillingPortal` is being retired by the
personal-billing flip and is not touched.
- `@comfyorg/billing-contract` becomes a root `workspace:*` dependency.
The CI cloud build for E2E (`.github/actions/build-cloud-frontend`, used
only by `ci-tests-e2e.yaml` and
`pr-update-playwright-expectations.yaml`, never by a deploy) gets
`VITE_BILLING_WEB_URL=https://billing-web.example`, a reserved origin
the spec stubs, reachable only when the server flag says `billing_web`.
- No frontend-derived server state: the destination is the flag as-is;
the host chooses only the URL shape.

## AS-IS / TO-BE

| AS-IS — `hosted_billing_destination: stripe` | TO-BE —
`hosted_billing_destination: billing_web` |
| --- | --- |
| **1. User popover, "Plans and pricing" hovered**<br><img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17860-screenshots/screenshots/as-is-popover-plans.png"><br>Same
menu item, unchanged by the flag. | **1. User popover, "Plans and
pricing" hovered**<br><img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17860-screenshots/screenshots/to-be-popover-plans.png"><br>Same
menu item, unchanged by the flag. |
| **2. After clicking "Plans and pricing"**<br><img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17860-screenshots/screenshots/as-is-plans-result.png"><br>In-app
"Choose a Plan" dialog, no tab opened. | **2. After clicking "Plans and
pricing"**<br><img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17860-screenshots/screenshots/to-be-plans-result.png"><br>`billing-web.example/v1/pricing?product=comfyui&return_to=comfyui_workspace`
tab opens and nothing else: `window.open` returns `null` under
`noopener` as the spec requires, and no in-app dialog is left behind. |
| **3. Settings ▸ Workspace ▸ Plan & Credits, before clicking "Billing &
invoices"**<br><img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17860-screenshots/screenshots/as-is-settings-billing.png"><br>Identical
panel; the destination is only read on click. | **3. Settings ▸
Workspace ▸ Plan & Credits, before clicking "Billing &
invoices"**<br><img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17860-screenshots/screenshots/to-be-settings-billing.png"><br>Identical
panel; the destination is only read on click. |
| **4. After clicking "Billing & invoices"**<br><img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17860-screenshots/screenshots/as-is-manage-result.png"><br>`POST
/api/billing/payment-portal` recorded, and the URL it returned
(`https://billing.example/portal`) opened. | **4. After clicking
"Billing & invoices"**<br><img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17860-screenshots/screenshots/to-be-manage-result.png"><br>No
request to `/api/billing/payment-portal` on either rail;
`billing-web.example/v1/payment-methods?product=comfyui&return_to=comfyui_workspace`
minted and opened. |
| **5. Return trip — refocusing the app tab after the hosted tab
opened**<br><img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17860-screenshots/screenshots/as-is-return-refresh.png"><br>`/api/billing/status`,
`/balance` and `/capabilities` re-read. | **5. Return trip — refocusing
the app tab after the hosted tab opened**<br><img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17860-screenshots/screenshots/to-be-return-refresh.png"><br>Same
three reads; `openPortalWindow` + `refreshOnPortalReturn` still run on
the minted route. |

- AS-IS (`stripe`, today's default): popover → in-app pricing dialog;
settings → Stripe portal via `POST /billing/payment-portal`.
- TO-BE (`billing_web`): popover →
`<billing-web>/v1/pricing?product=comfyui&return_to=comfyui_workspace`;
settings → `<billing-web>/v1/payment-methods?…`, no portal request on
either rail; the app re-reads billing state on return.

## Testing

| Gate | Result |
| --- | --- |
| `vitest run src/platform/workspace src/composables/billing
src/composables/useFeatureFlags src/config` | 91 files, 1890 tests (19
new route cases: intent × destination × env × prefix × each fail-closed
branch; 3 new adapter cases; 3 popover cases re-pointed) |
| `packages/billing-contract` vitest | 3 files, 62 tests |
| `pnpm typecheck`, `typecheck:browser`, `lint`, `format`, `knip` | exit
0 |
| `fallow audit --changed-since origin/jaewon/fe-2216-plan-change` | no
issues in 10 changed files |
| `PLAYWRIGHT_TEST_URL=http://localhost:5431 pnpm exec playwright test
--project=cloud
browser_tests/tests/dialogs/hostedBillingDestination.spec.ts
--reporter=list`, against
`VITE_BILLING_WEB_URL=https://billing-web.example pnpm dev:cloud` | `4
passed (4.6s)` — settings on both destinations, plus the two new
avatar-menu cases: `opens the in-app pricing table from the avatar menu
while the destination is stripe` and `opens the billing-web pricing
entry alone from the avatar menu while the destination is billing_web` |

## Where this sits in the plan

Billing SDK track FE-2210 ([implementation plan
V2](https://app.notion.com/p/3d86d73d36508152b92cdbdfdfe83ac8)). Hybrid
model: top-up in-app, subscription management / invoices / payment
methods on the hosted billing app.

| Phase | Item | Ticket | Status |
| --- | --- | --- | --- |
| 1-2 | Session core, transport, readers | FE-2211/2212/2213 | merged |
| 3 | Operation lifecycle, commands, eight-state projection |
FE-2227/2214/2223 | merged (#17655) |
| 4 | `@comfyorg/account-ui` composables + `CheckoutSteps` | FE-2215 |
merged (#17662, #17663) |
| 5 slice 1 | Top-up through the SDK behind `billing_sdk_topup_enabled`
| FE-2216 | merged (#17665) |
| rollout C | `hosted_billing_destination` server flag read by the host
| FE-2218 | merged (#17716) |
| rollout C | `hostedDestination` port on the lifecycle, value on
operation state | FE-2210/2218 | #17783 (review) |
| 7 prep | Scope-source port + credentialed transport (BFF / cookie
hosts) | FE-2218 | merged (#17782) |
| 7 prep | `@comfyorg/account` → `@comfyorg/account-core` rename |
FE-2218 | #17851 (review) |
| 7 prep | `billing-contract` route builder + `return_to` registry |
FE-2218 | merged (#17795) |
| 3A-3 | Workshop adapter over `createHostedTopupCheckout` | FE-2214 |
merged (#17793) |
| 8 core | `previewSubscribe` command | FE-2331 | merged (#17797) |
| 8 core | Plans + saved payment-methods readers | FE-2331 | merged
(#17798) |
| 8 ui | account-ui composables (`usePlans`, `usePaymentMethods`,
`usePreviewSubscribe`) | FE-2331 | merged (#17798) |
| 7 | billing-web own-origin session, sign-in, SDK composition | FE-2218
| merged (#17798) |
| 7 | billing-web unit tests in CI (`ci-billing-web-unit.yaml`) |
FE-2218 | merged (#17827, #17844) |
| 7 | ingest CORS + top-up return hosts for billing.comfy.org and its
previews (Comfy-Org/cloud) | FE-2218 | merged (Comfy-Org/cloud#9512) |
| 8 ui | billing-web `/v1` entry routing + subscription / payment-method
surfaces | FE-2331 | merged (#17798) |
| 7 | npm publish (`ingest-types`, `account-core`, `billing-contract`),
Platform install, billing-web live top-up | FE-2218 | todo |
| 6 | Contract tests per generated schema (package layer) | FE-2217 |
#17829 (review) |
| 6 | Live E2E per flow × consumer + evidence table | FE-2217 | todo
(needs staging flags) |
| 5 slice 2a | Cancel, resubscribe and payment portal through the SDK
behind `billing_sdk_subscription_enabled` | FE-2216 | #17853 (review) |
| 5 slice 2b | Subscribe and plan change through the SDK, priced by the
server | FE-2216 | #17856 (review; parent of this PR) |
| 7 / rollout C | Host mints billing-web `/v1/<intent>` entries with
`return_to` when `hosted_billing_destination` is `billing_web` | FE-2218
| **this PR** |
| follow-up | One `needsCustomerAttention` predicate (from the #17665
review) | FE-2216 | merged (#17792) |
| follow-up | Opaque `BillingServerCode` (from the #17656 review) |
FE-2227 | merged (#17794) |
| follow-up | `useCredits` clears on `SUPERSEDED` (from the #17799
review) | FE-2215 | merged (#17824) |
| follow-up | credits / status / capabilities readers fence a late
failure as `SUPERSEDED` (from the #17798 review) | FE-2331 | merged
(#17828) |

```mermaid
flowchart LR
  P3["Phase 3 core lifecycle (merged)"]
  P4["Phase 4 account-ui (merged)"]
  P5["Phase 5 slice 1 top-up flag (merged)"]
  FC["PR 17716 hosted_billing_destination flag (merged)"]
  HD["PR 17783 hostedDestination port"]
  SS["PR 17782 scope-source port + credentialed transport"]
  RN["account-core rename"]
  RB["billing-contract route builder + return_to"]
  WS["Workshop adapter"]
  P8PV["previewSubscribe command"]
  P8RD["plans + payment-methods readers"]
  P8["account-ui hosted composables"]
  BWS["billing-web session + sign-in"]
  BWV["billing-web /v1 surfaces"]
  CORS["cloud PR 9512 ingest CORS + return hosts"]
  PUB["npm publish account-core / billing-contract"]
  P7["Phase 7 host proof: Platform + billing-web live"]
  P6C["Phase 6 contract tests"]
  P6["Phase 6 live evidence"]
  S2A["PR 17853 slice 2a cancel / resubscribe / portal rail"]
  S2B["PR 17856 slice 2b subscribe + plan change"]
  LC["Layer C: host mints billing-web entries"]
  FU9["customer-attention predicate"]
  FU11["opaque BillingServerCode"]
  FU12["useCredits clears on SUPERSEDED"]
  FU13["reader late-failure fence"]
  P3 --> HD
  FC --> HD
  HD --> RB
  P3 --> SS
  SS --> P7
  RB --> P7
  P3 --> RN
  RN --> PUB
  RB --> PUB
  PUB --> P7
  P3 --> P8PV
  P3 --> P8RD
  P8PV --> P8
  P8RD --> P8
  P4 --> P8
  P8 --> S2B
  HD --> S2A
  S2A --> S2B
  S2B --> LC
  RB --> LC
  HD --> LC
  LC --> P7
  P8 --> BWS
  BWS --> BWV
  RB --> BWV
  BWV --> P7
  CORS --> P7
  P5 --> P6
  P3 --> P6C
  P5 --> WS
  P5 --> FU9
  P3 --> FU11
  P4 --> FU12
  P3 --> FU13
  style P3 fill:#d4edda,stroke:#155724
  style P4 fill:#d4edda,stroke:#155724
  style P5 fill:#d4edda,stroke:#155724
  style FC fill:#d4edda,stroke:#155724
  style SS fill:#d4edda,stroke:#155724
  style RB fill:#d4edda,stroke:#155724
  style WS fill:#d4edda,stroke:#155724
  style FU9 fill:#d4edda,stroke:#155724
  style BWV fill:#d4edda,stroke:#155724
  style BWS fill:#d4edda,stroke:#155724
  style P8 fill:#d4edda,stroke:#155724
  style P8RD fill:#d4edda,stroke:#155724
  style CORS fill:#d4edda,stroke:#155724
  style FU13 fill:#d4edda,stroke:#155724
  style FU12 fill:#d4edda,stroke:#155724
  style FU11 fill:#d4edda,stroke:#155724
  style P8PV fill:#d4edda,stroke:#155724
  style LC stroke:#0366d6,stroke-width:4px
```
dante01yoon added a commit that referenced this pull request Sep 17, 2026
…act when the hosted destination says billing_web (#17860)

Stacked on #17856 (base branch `jaewon/fe-2216-plan-change`) → #17853 →

Rollout layer C (`hosted_billing_destination`, `stripe` | `billing_web`,
PostHog at 100% `stripe`) decides where a hosted billing action lands.
The plan says the host reads the flag, hands it to the SDK (#17783) and,
when it says `billing_web`, mints a `/v1/<intent>` entry with
`return_to` from `@comfyorg/billing-contract`, the one definition of
that route surface (#17795); when it says `stripe`, the backend's URL is
opened unchanged. Today the host only opens the bare billing-web origin
from the user popover (#17716) with no intent and no `return_to`, and
"Billing & invoices" in the settings panel always goes to the Stripe
portal. This is the last un-opened code item before the Phase 7 host
proof.

- `src/platform/workspace/billing/hostedBillingRoutes.ts`:
`hostedBillingRoute(destination, intent)` returns `{ kind:
'billing_web', url }` built by `buildBillingEntryUrl({ billingOrigin,
intent, product: 'comfyui', returnTo: 'comfyui_workspace' })`, or `{
kind: 'provider' }` meaning "use the server's URL". The environment is
derived, not hardcoded: the cloud base URL's hostname through the
existing `resolveDeployEnv` map (`prod-v2 | stg-v2 | test-v2` →
`production | staging | test`), which also classifies a local dev
session by the backend it talks to. Fails closed to the provider on: no
configured origin, an unknown backend family, a return target with no
destination in that family, or an entry the contract refuses. A
path-prefixed `VITE_BILLING_WEB_URL` keeps its prefix under the minted
route.
- Consumers: the popover's "Plans and pricing" mints the `pricing`
intent (billing-web routes it to the subscription view; the in-app
dialog stays the `stripe` behaviour and the popup-blocked fallback);
`useWorkspaceBilling.manageSubscription()` mints `payment-methods`
**before** either rail is consulted, so on `billing_web` no portal URL
is requested on the SDK rail or the legacy one, and `openPortalWindow` +
`refreshOnPortalReturn` still run so the return re-reads status, balance
and capabilities.
- Also fixed on the way: the popover treated a falsy `window.open(…,
"noopener,noreferrer")` result as a blocked popup and showed the in-app
pricing dialog as a fallback. Per the HTML spec `noopener` always
returns `null`, so on `billing_web` the tab and the dialog opened
together — a latent defect inherited from #17370 on `main`, caught by
this PR's evidence run. The fallback is gone; the E2E `window.open` stub
now returns `null` for `noopener` like a browser does, and a popover
case covers both destinations.
- Left on the provider on purpose:
`useSubscriptionCheckout.recoverOutstandingPayment` and the
`payment_method_url` steps inside an operation are mid-checkout provider
steps, not hosted management; `invoices` and `result` are not served by
billing-web yet (`ComingSoonView`), so nothing mints them; the legacy
`/customers` rail's `accessBillingPortal` is being retired by the
personal-billing flip and is not touched.
- `@comfyorg/billing-contract` becomes a root `workspace:*` dependency.
The CI cloud build for E2E (`.github/actions/build-cloud-frontend`, used
only by `ci-tests-e2e.yaml` and
`pr-update-playwright-expectations.yaml`, never by a deploy) gets
`VITE_BILLING_WEB_URL=https://billing-web.example`, a reserved origin
the spec stubs, reachable only when the server flag says `billing_web`.
- No frontend-derived server state: the destination is the flag as-is;
the host chooses only the URL shape.

| AS-IS — `hosted_billing_destination: stripe` | TO-BE —
`hosted_billing_destination: billing_web` |
| --- | --- |
| **1. User popover, "Plans and pricing" hovered**<br><img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17860-screenshots/screenshots/as-is-popover-plans.png"><br>Same
menu item, unchanged by the flag. | **1. User popover, "Plans and
pricing" hovered**<br><img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17860-screenshots/screenshots/to-be-popover-plans.png"><br>Same
menu item, unchanged by the flag. |
| **2. After clicking "Plans and pricing"**<br><img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17860-screenshots/screenshots/as-is-plans-result.png"><br>In-app
"Choose a Plan" dialog, no tab opened. | **2. After clicking "Plans and
pricing"**<br><img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17860-screenshots/screenshots/to-be-plans-result.png"><br>`billing-web.example/v1/pricing?product=comfyui&return_to=comfyui_workspace`
tab opens and nothing else: `window.open` returns `null` under
`noopener` as the spec requires, and no in-app dialog is left behind. |
| **3. Settings ▸ Workspace ▸ Plan & Credits, before clicking "Billing &
invoices"**<br><img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17860-screenshots/screenshots/as-is-settings-billing.png"><br>Identical
panel; the destination is only read on click. | **3. Settings ▸
Workspace ▸ Plan & Credits, before clicking "Billing &
invoices"**<br><img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17860-screenshots/screenshots/to-be-settings-billing.png"><br>Identical
panel; the destination is only read on click. |
| **4. After clicking "Billing & invoices"**<br><img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17860-screenshots/screenshots/as-is-manage-result.png"><br>`POST
/api/billing/payment-portal` recorded, and the URL it returned
(`https://billing.example/portal`) opened. | **4. After clicking
"Billing & invoices"**<br><img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17860-screenshots/screenshots/to-be-manage-result.png"><br>No
request to `/api/billing/payment-portal` on either rail;
`billing-web.example/v1/payment-methods?product=comfyui&return_to=comfyui_workspace`
minted and opened. |
| **5. Return trip — refocusing the app tab after the hosted tab
opened**<br><img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17860-screenshots/screenshots/as-is-return-refresh.png"><br>`/api/billing/status`,
`/balance` and `/capabilities` re-read. | **5. Return trip — refocusing
the app tab after the hosted tab opened**<br><img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17860-screenshots/screenshots/to-be-return-refresh.png"><br>Same
three reads; `openPortalWindow` + `refreshOnPortalReturn` still run on
the minted route. |

- AS-IS (`stripe`, today's default): popover → in-app pricing dialog;
settings → Stripe portal via `POST /billing/payment-portal`.
- TO-BE (`billing_web`): popover →
`<billing-web>/v1/pricing?product=comfyui&return_to=comfyui_workspace`;
settings → `<billing-web>/v1/payment-methods?…`, no portal request on
either rail; the app re-reads billing state on return.

| Gate | Result |
| --- | --- |
| `vitest run src/platform/workspace src/composables/billing
src/composables/useFeatureFlags src/config` | 91 files, 1890 tests (19
new route cases: intent × destination × env × prefix × each fail-closed
branch; 3 new adapter cases; 3 popover cases re-pointed) |
| `packages/billing-contract` vitest | 3 files, 62 tests |
| `pnpm typecheck`, `typecheck:browser`, `lint`, `format`, `knip` | exit
0 |
| `fallow audit --changed-since origin/jaewon/fe-2216-plan-change` | no
issues in 10 changed files |
| `PLAYWRIGHT_TEST_URL=http://localhost:5431 pnpm exec playwright test
--project=cloud
browser_tests/tests/dialogs/hostedBillingDestination.spec.ts
--reporter=list`, against
`VITE_BILLING_WEB_URL=https://billing-web.example pnpm dev:cloud` | `4
passed (4.6s)` — settings on both destinations, plus the two new
avatar-menu cases: `opens the in-app pricing table from the avatar menu
while the destination is stripe` and `opens the billing-web pricing
entry alone from the avatar menu while the destination is billing_web` |

Billing SDK track FE-2210 ([implementation plan
V2](https://app.notion.com/p/3d86d73d36508152b92cdbdfdfe83ac8)). Hybrid
model: top-up in-app, subscription management / invoices / payment
methods on the hosted billing app.

| Phase | Item | Ticket | Status |
| --- | --- | --- | --- |
| 1-2 | Session core, transport, readers | FE-2211/2212/2213 | merged |
| 3 | Operation lifecycle, commands, eight-state projection |
FE-2227/2214/2223 | merged (#17655) |
| 4 | `@comfyorg/account-ui` composables + `CheckoutSteps` | FE-2215 |
merged (#17662, #17663) |
| 5 slice 1 | Top-up through the SDK behind `billing_sdk_topup_enabled`
| FE-2216 | merged (#17665) |
| rollout C | `hosted_billing_destination` server flag read by the host
| FE-2218 | merged (#17716) |
| rollout C | `hostedDestination` port on the lifecycle, value on
operation state | FE-2210/2218 | #17783 (review) |
| 7 prep | Scope-source port + credentialed transport (BFF / cookie
hosts) | FE-2218 | merged (#17782) |
| 7 prep | `@comfyorg/account` → `@comfyorg/account-core` rename |
FE-2218 | #17851 (review) |
| 7 prep | `billing-contract` route builder + `return_to` registry |
FE-2218 | merged (#17795) |
| 3A-3 | Workshop adapter over `createHostedTopupCheckout` | FE-2214 |
merged (#17793) |
| 8 core | `previewSubscribe` command | FE-2331 | merged (#17797) |
| 8 core | Plans + saved payment-methods readers | FE-2331 | merged
(#17798) |
| 8 ui | account-ui composables (`usePlans`, `usePaymentMethods`,
`usePreviewSubscribe`) | FE-2331 | merged (#17798) |
| 7 | billing-web own-origin session, sign-in, SDK composition | FE-2218
| merged (#17798) |
| 7 | billing-web unit tests in CI (`ci-billing-web-unit.yaml`) |
FE-2218 | merged (#17827, #17844) |
| 7 | ingest CORS + top-up return hosts for billing.comfy.org and its
previews (Comfy-Org/cloud) | FE-2218 | merged (Comfy-Org/cloud#9512) |
| 8 ui | billing-web `/v1` entry routing + subscription / payment-method
surfaces | FE-2331 | merged (#17798) |
| 7 | npm publish (`ingest-types`, `account-core`, `billing-contract`),
Platform install, billing-web live top-up | FE-2218 | todo |
| 6 | Contract tests per generated schema (package layer) | FE-2217 |
| 6 | Live E2E per flow × consumer + evidence table | FE-2217 | todo
(needs staging flags) |
| 5 slice 2a | Cancel, resubscribe and payment portal through the SDK
behind `billing_sdk_subscription_enabled` | FE-2216 | #17853 (review) |
| 5 slice 2b | Subscribe and plan change through the SDK, priced by the
server | FE-2216 | #17856 (review; parent of this PR) |
| 7 / rollout C | Host mints billing-web `/v1/<intent>` entries with
`return_to` when `hosted_billing_destination` is `billing_web` | FE-2218
| **this PR** |
| follow-up | One `needsCustomerAttention` predicate (from the #17665
review) | FE-2216 | merged (#17792) |
| follow-up | Opaque `BillingServerCode` (from the #17656 review) |
FE-2227 | merged (#17794) |
| follow-up | `useCredits` clears on `SUPERSEDED` (from the #17799
review) | FE-2215 | merged (#17824) |
| follow-up | credits / status / capabilities readers fence a late
failure as `SUPERSEDED` (from the #17798 review) | FE-2331 | merged
(#17828) |

```mermaid
flowchart LR
  P3["Phase 3 core lifecycle (merged)"]
  P4["Phase 4 account-ui (merged)"]
  P5["Phase 5 slice 1 top-up flag (merged)"]
  FC["PR 17716 hosted_billing_destination flag (merged)"]
  HD["PR 17783 hostedDestination port"]
  SS["PR 17782 scope-source port + credentialed transport"]
  RN["account-core rename"]
  RB["billing-contract route builder + return_to"]
  WS["Workshop adapter"]
  P8PV["previewSubscribe command"]
  P8RD["plans + payment-methods readers"]
  P8["account-ui hosted composables"]
  BWS["billing-web session + sign-in"]
  BWV["billing-web /v1 surfaces"]
  CORS["cloud PR 9512 ingest CORS + return hosts"]
  PUB["npm publish account-core / billing-contract"]
  P7["Phase 7 host proof: Platform + billing-web live"]
  P6C["Phase 6 contract tests"]
  P6["Phase 6 live evidence"]
  S2A["PR 17853 slice 2a cancel / resubscribe / portal rail"]
  S2B["PR 17856 slice 2b subscribe + plan change"]
  LC["Layer C: host mints billing-web entries"]
  FU9["customer-attention predicate"]
  FU11["opaque BillingServerCode"]
  FU12["useCredits clears on SUPERSEDED"]
  FU13["reader late-failure fence"]
  P3 --> HD
  FC --> HD
  HD --> RB
  P3 --> SS
  SS --> P7
  RB --> P7
  P3 --> RN
  RN --> PUB
  RB --> PUB
  PUB --> P7
  P3 --> P8PV
  P3 --> P8RD
  P8PV --> P8
  P8RD --> P8
  P4 --> P8
  P8 --> S2B
  HD --> S2A
  S2A --> S2B
  S2B --> LC
  RB --> LC
  HD --> LC
  LC --> P7
  P8 --> BWS
  BWS --> BWV
  RB --> BWV
  BWV --> P7
  CORS --> P7
  P5 --> P6
  P3 --> P6C
  P5 --> WS
  P5 --> FU9
  P3 --> FU11
  P4 --> FU12
  P3 --> FU13
  style P3 fill:#d4edda,stroke:#155724
  style P4 fill:#d4edda,stroke:#155724
  style P5 fill:#d4edda,stroke:#155724
  style FC fill:#d4edda,stroke:#155724
  style SS fill:#d4edda,stroke:#155724
  style RB fill:#d4edda,stroke:#155724
  style WS fill:#d4edda,stroke:#155724
  style FU9 fill:#d4edda,stroke:#155724
  style BWV fill:#d4edda,stroke:#155724
  style BWS fill:#d4edda,stroke:#155724
  style P8 fill:#d4edda,stroke:#155724
  style P8RD fill:#d4edda,stroke:#155724
  style CORS fill:#d4edda,stroke:#155724
  style FU13 fill:#d4edda,stroke:#155724
  style FU12 fill:#d4edda,stroke:#155724
  style FU11 fill:#d4edda,stroke:#155724
  style P8PV fill:#d4edda,stroke:#155724
  style LC stroke:#0366d6,stroke-width:4px
```
pull Bot pushed a commit to Mu-L/ComfyUI_frontend that referenced this pull request Sep 17, 2026
…contract and ingest-types (Comfy-Org#17882)

## Why

`@comfyorg/account-core`, `@comfyorg/billing-contract` and
`@comfyorg/ingest-types` are about to be installed by Platform from the
public registry, and today none of them can be packed: `exports` point
at `src/*.ts`, there is no `files` allowlist, no build, and the core
still reaches into a private workspace utility. The release workflows on
Comfy-Org#17881 assume `build` and `smoke:pack` exist; this PR is the part that
makes a tarball installable in plain Node.

Built on Comfy-Org#17854 (auth Vue surface → `account-ui`, now merged) so the
core builds from a Vue-free tree, and it reproduces Maanil's Comfy-Org#17838 /
Comfy-Org#17839 / Comfy-Org#17840 on the renamed tree as agreed in the review thread
there. Base is `main`.

## How

- **Private-utility cut** — the one remaining reach out of the core was
`turnstileScript.ts` →
`@comfyorg/shared-frontend-utils/loadExternalScript`. The loader is now
package-owned (`packages/account-core/src/loadExternalScript.ts`,
byte-identical) and `@comfyorg/shared-frontend-utils` leaves the core's
dependencies. `publishBoundary.test.ts` fails on any future `workspace:`
dependency that is not itself published (`@comfyorg/ingest-types` is the
only allowed one).
- **Manifests** — `files: ["dist"]`, `sideEffects: false`,
`repository`/`homepage`/`author`, MIT `LICENSE` per package,
`publishConfig.exports` mapping every dev `exports` entry to `dist/*.js`
+ `.d.ts`, `./package.json` export, `access: public`.
`@comfyorg/ingest-types` moves `zod` to a peer so a consumer never gets
two zod copies. `private: true` stays on all three (`ingest-types` had
no `private` at all; it now has the latch). Flipping `private` is a
one-line change per manifest in a later reviewed PR.
- **Build** — `tsconfig.build.json` per package (`declaration`,
`noEmitOnError`, `types: []`, tests and fixtures excluded), `build` =
`clean` + `tsc -p`, `prepack` runs it. Relative imports carry `.js` so
the emitted ESM resolves under `nodenext`; `openapi-ts.config.ts` sets
`importFileExtension: '.js'` so regeneration keeps it.
- **Smoke pack** — `scripts/smokePack.ts` (run as `pnpm --filter
@comfyorg/account-core smoke:pack`) packs all three, checks each tarball
(no source/test/fixture files, every export target present, no
unrewritten `catalog:`/`workspace:`), installs them into a throwaway npm
project, imports all 21 entries from plain Node ESM, and type-checks a
`nodenext` consumer. Dropping one `.js` extension makes the typed step
fail with `TS2835`, which the plain-Node step alone would not catch.
- **CI** — `ci-packages-pack.yaml` on `pull_request` for the three
package paths: matrix job per package (typecheck → build → `check:pack`)
plus one `smoke-consumer` job. The tarball rules live in one pure
module, `publishableTarball.ts`, with its own test file; the CLI and the
smoke test are two entry points onto it, so CI and the smoke test cannot
drift.

Deliberate divergences from Comfy-Org#17839: no `region` export and no deletion
in `shared-frontend-utils/networkUtil.ts` (the region gate moved to
`account-ui` with the Vue surface and three app suites still import it);
`createScriptLoader` stays in the shared package for its three
`src/platform` callers.

Open point: the root `LICENSE` is GPL-3.0 while all three manifests
already declare MIT (as `@comfyorg/design-system` publishes). Without a
per-package file pnpm would inject the GPL text into a tarball whose
manifest says MIT, so the MIT files fix the actual defect; whether the
SDK packages should be MIT at all is a call for the reviewer to confirm.

## AS-IS / TO-BE

No UI change; packages, scripts and CI only.

- AS-IS: `pnpm pack` on any of the three ships `src/*.ts` (or nothing)
with `exports` a consumer cannot resolve, and the core depends on a
private workspace package.
- TO-BE: `smoke:pack` proves the three tarballs install and import from
plain Node with types, and CI runs that proof on every change to the
packages.

## Testing

| Check | Result |
| --- | --- |
| `build` account-core / billing-contract / ingest-types | 92 / 18 / 6
dist files |
| `smoke:pack` | 3 packed, 21 entries imported under Node ESM,
`nodenext` tsc clean |
| vitest account-core / account-ui / billing-contract / billing-web |
675 / 79 / 62 / 90 pass |
| `pnpm typecheck`, `pnpm lint`, `pnpm format:check`, `pnpm knip` (with
`dist` on disk) | exit 0 |
| `yamllint` on the new workflow | clean |

## Where this sits in the plan

Billing SDK track FE-2210 ([implementation plan
V2](https://app.notion.com/p/3d86d73d36508152b92cdbdfdfe83ac8)). Hybrid
model: top-up in-app, subscription management / invoices / payment
methods on the hosted billing app.

| Phase | Item | Ticket | Status |
| --- | --- | --- | --- |
| 1-2 | Session core, transport, readers | FE-2211/2212/2213 | merged |
| 3 | Operation lifecycle, commands, eight-state projection |
FE-2227/2214/2223 | merged (Comfy-Org#17655) |
| 4 | `@comfyorg/account-ui` composables + `CheckoutSteps` | FE-2215 |
merged (Comfy-Org#17662, Comfy-Org#17663) |
| 5 slice 1 | Top-up through the SDK behind `billing_sdk_topup_enabled`
| FE-2216 | merged (Comfy-Org#17665) |
| rollout C | `hosted_billing_destination` server flag read by the host
| FE-2218 | merged (Comfy-Org#17716) |
| rollout C | `hostedDestination` port on the lifecycle, value on
operation state | FE-2210/2218 | Comfy-Org#17783 (review, carries slice 2a) |
| 7 prep | Scope-source port + credentialed transport (BFF / cookie
hosts) | FE-2218 | merged (Comfy-Org#17782) |
| 7 prep | `@comfyorg/account` → `@comfyorg/account-core` rename |
FE-2218 | merged (Comfy-Org#17851) |
| 7 prep | Auth Vue surface → `account-ui`; core Vue-free by
construction | FE-2215 | merged (Comfy-Org#17854) |
| 7 prep | `billing-contract` route builder + `return_to` registry |
FE-2218 | merged (Comfy-Org#17795) |
| 3A-3 | Workshop adapter over `createHostedTopupCheckout` | FE-2214 |
merged (Comfy-Org#17793) |
| 8 core | `previewSubscribe` command | FE-2331 | merged (Comfy-Org#17797) |
| 8 core | Plans + saved payment-methods readers | FE-2331 | merged
(Comfy-Org#17798) |
| 8 ui | account-ui composables (`usePlans`, `usePaymentMethods`,
`usePreviewSubscribe`) | FE-2331 | merged (Comfy-Org#17798) |
| 7 | billing-web own-origin session, sign-in, SDK composition | FE-2218
| merged (Comfy-Org#17798) |
| 7 | billing-web unit tests in CI (`ci-billing-web-unit.yaml`) |
FE-2218 | merged (Comfy-Org#17827, Comfy-Org#17844) |
| 7 | ingest CORS + top-up return hosts for billing.comfy.org and its
previews (Comfy-Org/cloud) | FE-2218 | merged (Comfy-Org/cloud#9512) |
| 8 ui | billing-web `/v1` entry routing + subscription / payment-method
surfaces | FE-2331 | merged (Comfy-Org#17798) |
| 7 | Package release workflows + versioning ADR (bump PR → publish on
merge, snapshots) | FE-2218 | Comfy-Org#17881 (review) |
| 7 | Publish readiness: dist build, files allowlist, pack smoke test,
private-utility cut | FE-2218 | **this PR** |
| 7 | First publish (`private` off), Platform install, billing-web live
top-up | FE-2218 | todo |
| 6 | Contract tests per generated schema (package layer) | FE-2217 |
Comfy-Org#17829 (review) |
| 6 | Live E2E per flow × consumer + evidence table | FE-2217 | todo
(needs staging flags) |
| 5 slice 2 | Subscription flows through the SDK | FE-2216 | Comfy-Org#17856 /
Comfy-Org#17860 (review) |
| follow-up | One `needsCustomerAttention` predicate (from the Comfy-Org#17665
review) | FE-2216 | merged (Comfy-Org#17792) |
| follow-up | Opaque `BillingServerCode` (from the Comfy-Org#17656 review) |
FE-2227 | merged (Comfy-Org#17794) |
| follow-up | `useCredits` clears on `SUPERSEDED` (from the Comfy-Org#17799
review) | FE-2215 | merged (Comfy-Org#17824) |
| follow-up | credits / status / capabilities readers fence a late
failure as `SUPERSEDED` (from the Comfy-Org#17798 review) | FE-2331 | merged
(Comfy-Org#17828) |

```mermaid
flowchart LR
  P3["Phase 3 core lifecycle (merged)"]
  P4["Phase 4 account-ui (merged)"]
  P5["Phase 5 slice 1 top-up flag (merged)"]
  FC["PR 17716 hosted_billing_destination flag (merged)"]
  HD["PR 17783 hostedDestination port"]
  SS["PR 17782 scope-source port + credentialed transport"]
  RN["account-core rename (merged)"]
  AV["auth Vue surface to account-ui (merged)"]
  RB["billing-contract route builder + return_to"]
  WS["Workshop adapter"]
  P8PV["previewSubscribe command"]
  P8RD["plans + payment-methods readers"]
  P8["account-ui hosted composables"]
  BWS["billing-web session + sign-in"]
  BWV["billing-web /v1 surfaces"]
  CORS["cloud PR 9512 ingest CORS + return hosts"]
  RW["PR 17881 release workflows + ADR"]
  PR["publish readiness: dist, files, smoke pack"]
  PUB["first publish account-core / billing-contract / ingest-types"]
  P7["Phase 7 host proof: Platform + billing-web live"]
  P6C["Phase 6 contract tests"]
  P6["Phase 6 live evidence"]
  S2["Phase 5 slice 2 subscription"]
  FU9["customer-attention predicate"]
  FU11["opaque BillingServerCode"]
  FU12["useCredits clears on SUPERSEDED"]
  FU13["reader late-failure fence"]
  P3 --> HD
  FC --> HD
  HD --> RB
  P3 --> SS
  SS --> P7
  RB --> P7
  P3 --> RN
  RN --> AV
  AV --> PR
  RW --> PUB
  PR --> PUB
  RB --> PUB
  PUB --> P7
  P3 --> P8PV
  P3 --> P8RD
  P8PV --> P8
  P8RD --> P8
  P4 --> P8
  P8 --> S2
  P8 --> BWS
  BWS --> BWV
  RB --> BWV
  BWV --> P7
  CORS --> P7
  P5 --> P6
  P3 --> P6C
  P5 --> WS
  P5 --> FU9
  P3 --> FU11
  P4 --> FU12
  P3 --> FU13
  style P3 fill:#d4edda,stroke:#155724
  style P4 fill:#d4edda,stroke:#155724
  style P5 fill:#d4edda,stroke:#155724
  style FC fill:#d4edda,stroke:#155724
  style SS fill:#d4edda,stroke:#155724
  style RB fill:#d4edda,stroke:#155724
  style WS fill:#d4edda,stroke:#155724
  style FU9 fill:#d4edda,stroke:#155724
  style BWV fill:#d4edda,stroke:#155724
  style BWS fill:#d4edda,stroke:#155724
  style P8 fill:#d4edda,stroke:#155724
  style P8RD fill:#d4edda,stroke:#155724
  style CORS fill:#d4edda,stroke:#155724
  style FU13 fill:#d4edda,stroke:#155724
  style FU12 fill:#d4edda,stroke:#155724
  style FU11 fill:#d4edda,stroke:#155724
  style P8PV fill:#d4edda,stroke:#155724
  style RN fill:#d4edda,stroke:#155724
  style AV fill:#d4edda,stroke:#155724
  style PR stroke:#0366d6,stroke-width:4px
```
pull Bot pushed a commit to Mu-L/ComfyUI_frontend that referenced this pull request Sep 17, 2026
…codes (Comfy-Org#17829)

Linear FE-2217.

## Why

The billing SDK core decodes generated zod schemas from
`@comfyorg/ingest-types/zod`, which a bot regenerates from the cloud
OpenAPI whenever the backend moves. Today a regen that renames a field,
drops it, or widens an enum the reducer switches on surfaces either as a
typecheck error somewhere deep in the core or, worse, as a runtime
`MALFORMED_RESPONSE` in front of a customer mid-payment. Nothing states,
in one readable place, which fields of which schema the SDK actually
depends on.

This adds a contract test per generated schema the core decodes. Each
pins the fields the core reads and the enum members it branches on, at
the type level and at parse time, so a regen that changes one of them
fails a named block whose name says what broke — the parse rows under
`vitest run`, the `expectTypeOf` exhaustiveness pins under the package
typecheck. A failure here means the backend contract moved: fix the SDK,
not the test.

These are pins, not behaviour: reader and command behaviour stays
covered by the existing `credits.test.ts`, `status.test.ts`,
`capabilities.test.ts`, `operationState.test.ts`,
`subscriptionCommands.test.ts`, and `topup.test.ts`.

## How

New folder `packages/account-core/src/core/billing/contracts/`, one file
per endpoint contract, picked up by the package's existing
`src/core/**/*.{test,spec}.ts` include. Each file holds a canonical
fixture typed as `z.input<typeof schema>` built by a small typed builder
(no casts), parses it with `safeParse`, pins the output type with
`expectTypeOf`, and runs one `it.for` row per enum value the SDK
branches on.

| Schema | Module that decodes it | Fields pinned |
| --- | --- | --- |
| `zBillingBalanceResponse` | `credits.ts` (read by `topup.ts`,
`balanceWatch.ts`) | `amount_micros` as a number; the four optional
breakdown micros |
| `zBillingStatusResponse` | `status.ts` (read by
`operationLifecycle.ts`, `subscriptionCommands.ts`, `presentation.ts`) |
`billing_rail` (3), `pending_billing_op_id`, `pending_billing_op_type`
(2), `action_url`, `payment_intent_client_secret`, `is_active`,
`subscription_tier` (7), `subscription_status` (3) |
| `zBillingCapabilitiesResponse`, `zBillingCapabilities`,
`zBillingCapabilityScope`, `zBillingCapabilityRolloutDefaults` |
`capabilities.ts` (which parses the three named pieces, not the response
schema) | the five response keys the reader recomposes into its own
schema, reading `expires_at` as a plain string and `revision` as a
number; all seven capability booleans; `resolved_for.user_id` /
`workspace_id`; `expires_at`; `revision` as an int64 bounded to the
JavaScript-safe range the reader reads it back as a number over;
`denied_reasons` absent from the contract, which is why
`capabilityDenials.ts` decodes it off the raw body |
| `zBillingOpStatusResponse` | `operationLifecycle.ts`,
`operationState.ts` | `id`; `status` (the 4 the reducer handles);
`authentication_state` (the 5 it reads or assigns); `decline_reason` (8,
incl. the `generic` fallback); `recovery_action` (4); `phase` (3);
`action_url`; `payment_intent_client_secret`; `retryable` optional |
| `zErrorResponse` | `billingErrorBody.ts` | `code` as an open string
the commands match against their own closed set; a body without
`message` yields no code |
| `zSubscribeRequest`, `zSubscribeResponse` | `subscriptionCommands.ts`
| `confirmation_token`, `saved_payment_method_id` (`pm_` prefix),
`idempotency_key`, `confirm_reactivation`; `billing_op_id`, `status`
(3), optional `payment_method_url` |
| `zResubscribeResponse` | `subscriptionCommands.ts` | `billing_op_id`
regardless of `status` (2) |
| `zCancelSubscriptionResponse2` | `subscriptionCommands.ts` |
`billing_op_id` on both members of the response union |
| `zPaymentPortalResponse` | `subscriptionCommands.ts` | `url` required,
and not https-checked by the schema, which is why the command re-checks
it |
| `zPreviewSubscribeRequest`, `zPreviewSubscribeResponse` |
`subscriptionCommands.ts` | `plan_slug` required and the three optional
request fields; `allowed`, `is_immediate`, `effective_at`,
`transition_type` (4), the int64 money fields and their JSON-number
coercion, `discounts`, `requires_reactivation_confirmation` |
| `zCreateTopupRequest`, `zCreateTopupResponse` | `topup.ts` |
`amount_cents` minimum and its int64 coercion of the JSON number the
command validates but does not send; `idempotency_key`; `billing_op_id`
regardless of `status` (3) |
| `zCreateTopupCheckoutRequest`, `zCreateTopupCheckoutResponse` |
`topup.ts` | the amount bounds and the `return_url` URL rule, pinned by
the issue **path** the command reads to tell the two apart;
`checkout_url` required, `session_id` optional |

`capabilityDenials.ts` is the one billing module that decodes without a
generated schema — deliberately, since a strict enum parse would lose
the whole capability set the first time the server names an unfamiliar
policy branch. Its absence from the generated contract is pinned in
`billingCapabilities.contract.test.ts`.

## AS-IS / TO-BE

No UI. A regenerated `zBillingOpStatusResponse` that adds a fifth
`status`:

- AS-IS: the new value falls through `terminalFromStatus` into the
pending branch; the operation polls until its budget runs out and
reports `timed_out`.
- TO-BE: `billingOpStatus.contract.test.ts` fails on the regen PR,
naming the reducer as what needs updating. Two gates, and which one
fires depends on the pin: the enum rows (`accepts the %s status`) fail
under `vitest run`, while the exhaustiveness pin at
`billingOpStatus.contract.test.ts:36` sits at module scope and fails as
a TS2344 under the package typecheck, not in the test run.

## Testing

- `cd packages/account-core && vitest run src/core/billing/contracts` —
12 files, 90 tests, all passing. The type pins are not among them: they
sit at module scope and fail `pnpm --filter @comfyorg/account-core
typecheck` instead, because nothing here runs `vitest --typecheck`.
- `cd packages/account-core && tsc --noEmit` — clean
- `pnpm typecheck` — passing; verified the type pins bite by injecting a
spurious enum member and watching `expectTypeOf` fail with TS2344
- `pnpm lint`, `pnpm format`, `pnpm knip` — passing
- `fallow audit --changed-since origin/main` — no issues in the 13
changed files
## Where this sits in the plan

Billing SDK track FE-2210 ([implementation plan
V2](https://app.notion.com/p/3d86d73d36508152b92cdbdfdfe83ac8)). Hybrid
model: top-up in-app, subscription management / invoices / payment
methods on the hosted billing app.

| Phase | Item | Ticket | Status |
| --- | --- | --- | --- |
| 1-2 | Session core, transport, readers | FE-2211/2212/2213 | merged |
| 3 | Operation lifecycle, commands, eight-state projection |
FE-2227/2214/2223 | merged (Comfy-Org#17655) |
| 4 | `@comfyorg/account-ui` composables + `CheckoutSteps` | FE-2215 |
merged (Comfy-Org#17662, Comfy-Org#17663) |
| 5 slice 1 | Top-up through the SDK behind `billing_sdk_topup_enabled`
| FE-2216 | merged (Comfy-Org#17665) |
| rollout C | `hosted_billing_destination` server flag read by the host
| FE-2218 | merged (Comfy-Org#17716) |
| rollout C | `hostedDestination` port on the lifecycle, value on
operation state | FE-2210/2218 | open (Comfy-Org#17783, carries slice 2a) |
| 7 prep | Scope-source port + credentialed transport (BFF / cookie
hosts) | FE-2218 | merged (Comfy-Org#17782) |
| 7 prep | `@comfyorg/account` → `@comfyorg/account-core` rename |
FE-2218 | merged (Comfy-Org#17851) — this PR sits on it |
| 7 prep | `billing-contract` route builder + `return_to` registry |
FE-2218 | merged (Comfy-Org#17795) |
| 3A-3 | Workshop adapter over `createHostedTopupCheckout` | FE-2214 |
merged (Comfy-Org#17793) |
| 8 core | `previewSubscribe` command | FE-2331 | merged (Comfy-Org#17797) |
| 8 core | Plans + saved payment-methods readers | FE-2331 | merged
(Comfy-Org#17798) |
| 8 ui | account-ui composables (`usePlans`, `usePaymentMethods`,
`usePreviewSubscribe`) | FE-2331 | merged (Comfy-Org#17798) |
| 7 | billing-web own-origin session, sign-in, SDK composition | FE-2218
| merged (Comfy-Org#17798) |
| 7 | billing-web unit tests in CI (`ci-billing-web-unit.yaml`) |
FE-2218 | merged (Comfy-Org#17827, Comfy-Org#17844) |
| 7 | ingest CORS + top-up return hosts for billing.comfy.org and its
previews (Comfy-Org/cloud) | FE-2218 | merged (Comfy-Org/cloud#9512) |
| 8 ui | billing-web `/v1` entry routing + subscription / payment-method
surfaces | FE-2331 | merged (Comfy-Org#17798) |
| 7 | Publish readiness: dist build, files allowlist, pack smoke test |
FE-2218 | merged (Comfy-Org#17882) |
| 7 | Package release workflows + versioning ADR | FE-2218 | open
(Comfy-Org#17881) |
| 7 | First publish (`private` off), Platform install, billing-web live
top-up | FE-2218 | todo |
| 6 | Contract tests per generated schema (package layer) | FE-2217 |
**this PR** |
| 6 | Live E2E per flow × consumer + evidence table | FE-2217 | todo
(needs staging flags) |
| 5 slice 2 | Subscription flows through the SDK | FE-2216 | open
(Comfy-Org#17856, Comfy-Org#17860) |
| follow-up | One `needsCustomerAttention` predicate (from the Comfy-Org#17665
review) | FE-2216 | merged (Comfy-Org#17792) |
| follow-up | Opaque `BillingServerCode` (from the Comfy-Org#17656 review) |
FE-2227 | merged (Comfy-Org#17794) |
| follow-up | `useCredits` clears on `SUPERSEDED` (from the Comfy-Org#17799
review) | FE-2215 | merged (Comfy-Org#17824) |
| follow-up | credits / status / capabilities readers fence a late
failure as `SUPERSEDED` (from the Comfy-Org#17798 review) | FE-2331 | open
(Comfy-Org#17828) |

```mermaid
flowchart LR
  P3["Phase 3 core lifecycle (merged)"]
  P4["Phase 4 account-ui (merged)"]
  P5["Phase 5 slice 1 top-up flag (merged)"]
  FC["PR 17716 hosted_billing_destination flag (merged)"]
  HD["PR 17783 hostedDestination port"]
  SS["PR 17782 scope-source port + credentialed transport"]
  RN["account-core rename"]
  RB["billing-contract route builder + return_to"]
  WS["Workshop adapter"]
  P8PV["previewSubscribe command"]
  P8RD["plans + payment-methods readers"]
  P8["account-ui hosted composables"]
  BWS["billing-web session + sign-in"]
  BWV["billing-web /v1 surfaces"]
  CORS["cloud PR 9512 ingest CORS + return hosts"]
  PUB["npm publish account-core / billing-contract"]
  P7["Phase 7 host proof: Platform + billing-web live"]
  P6C["Phase 6 contract tests"]
  P6["Phase 6 live evidence"]
  S2["Phase 5 slice 2 subscription"]
  FU9["customer-attention predicate"]
  FU11["opaque BillingServerCode"]
  FU12["useCredits clears on SUPERSEDED"]
  FU13["reader late-failure fence"]
  P3 --> HD
  FC --> HD
  HD --> RB
  P3 --> SS
  SS --> P7
  RB --> P7
  P3 --> RN
  RN --> PUB
  RB --> PUB
  PUB --> P7
  P3 --> P8PV
  P3 --> P8RD
  P8PV --> P8
  P8RD --> P8
  P4 --> P8
  P8 --> S2
  P8 --> BWS
  BWS --> BWV
  RB --> BWV
  BWV --> P7
  CORS --> P7
  P5 --> P6
  P3 --> P6C
  P5 --> WS
  P5 --> FU9
  P3 --> FU11
  P4 --> FU12
  P3 --> FU13
  style P3 fill:#d4edda,stroke:#155724
  style P4 fill:#d4edda,stroke:#155724
  style P5 fill:#d4edda,stroke:#155724
  style FC fill:#d4edda,stroke:#155724
  style SS fill:#d4edda,stroke:#155724
  style RB fill:#d4edda,stroke:#155724
  style WS fill:#d4edda,stroke:#155724
  style FU9 fill:#d4edda,stroke:#155724
  style P8PV fill:#d4edda,stroke:#155724
  style P6C stroke:#0366d6,stroke-width:4px
```
pull Bot pushed a commit to Penguinjanator/ComfyUI_frontend that referenced this pull request Sep 17, 2026
…ced by the server (Comfy-Org#17856)

Stacked on Comfy-Org#17853 (base branch `jaewon/fe-2216-subscription-rail`),
which stacks on Comfy-Org#17783; merge those first.

## Why

Slice 2a (Comfy-Org#17853) put cancel, resubscribe and the payment portal on the
SDK rail. Subscribe — new subscriptions and plan changes — was left on
the legacy call because the SDK's `subscribe` refused an active
subscription on the client (`active → ALREADY_HELD`) and routed a
scheduled cancel to `resubscribe()`, which carries no plan. Both
contradict what the host already does: `useWorkspaceBilling.subscribe`
posts `/billing/subscribe` whatever the subscription state,
`useSubscriptionCheckout` quotes the change first with
`previewSubscribe`, and the server prices the change, reactivates or
refuses (`REACTIVATION_CONFIRMATION_REQUIRED` exists for exactly that).
Decision (2026-09-16): mirror the host; no product change.

## How

- **Core.** `subscribe()` issues `POST /billing/subscribe` for every
subscription state and never short-circuits; the client-side eligibility
switch, `eligibilityOf` and its type are gone (nothing else read them).
`resubscribe()` stays the explicit "resume" command.
`docs/billing-command-eligibility.md` (the path the module doc already
referenced) now records the route per command and that the status read
decides nothing for subscribe.
- **Core, quote decoding.** The generated zod for the preview coerces
every int64 to `bigint` while the generated TS type for the same fields
is `number`, so the SDK's quote was not assignable to the host's
`PreviewSubscribeResponse`. The cents fields are decoded as `z.number()`
via `.extend` on the generated schemas (the precedent `capabilities.ts`
sets for `revision`; money on this route is bounded to cents well inside
the safe range). The two types are now structurally identical and `pnpm
typecheck` proves the assignment with no hand-written projection.
- **Host.** On the rail (read once per action, as in 2a)
`useWorkspaceBilling.subscribe` maps `SubscribeOptions → SubscribeInput`
field for field (`confirmationToken` / `savedPaymentMethodId` empty →
dropped, as the workspace client does; nothing dropped otherwise) and
runs `sdk.commands.subscribe`; `previewSubscribe` runs
`sdk.commands.previewSubscribe`. Both share 2a's route latch (404 →
legacy once), and every other failure is thrown as a `WorkspaceApiError`
whose `.code` carries the server code verbatim, so
`useSubscriptionCheckout` and `useDowngradeToPersonal` keep branching on
`REACTIVATION_CONFIRMATION_REQUIRED`, `SUBSCRIPTION_PAYMENT_REQUIRED`,
`OUTSTANDING_PAYMENT_REQUIRED`, `TRANSITION_NOT_ALLOWED`,
`PRORATION_QUOTE_EXPIRED`, `SUBSCRIPTION_QUOTE_STALE` unchanged.
- **Customer steps.** The SDK settles the operation inside
`subscribe()`, so nothing else watches it: the store's lifecycle
subscriber now handles non-topup pending states — the existing in-page
challenge driver, and a once-per-operation `window.open(actionUrl)` with
the same popup-blocked toast the checkout shows. Without both, a 3DS
plan change or a `needs_payment_method` answer would time out with
nothing on screen.
- **Settled response.** A settled subscribe projects to the `{
billing_op_id, status: 'subscribed' }` body `handleSubscribeResponse`
already handles; `needs_payment_method` / `pending_payment` never reach
the host because the lifecycle drove them first.
- Not on the rail: `teamSubscriptionCheckoutUtil.ts` calls
`workspaceApi.subscribe` directly and stays legacy on both rails;
`savePendingSubscriptionCheckout` and checkout-journey `billing_op_id`
linking run after settlement rather than at issue, because the SDK does
not surface the issued operation (recovery across reloads is the
lifecycle's `recover()`).

## AS-IS / TO-BE

Same journey on both: `?pricing=creator&cycle=yearly` against an active
`standard-annual` subscription on the `stripe` rail, 1280×800, every
endpoint mocked.

| State | AS-IS — `billing_sdk_subscription_enabled: false` | TO-BE —
`billing_sdk_subscription_enabled: true` |
| --- | --- | --- |
| "Confirm your upgrade" with the quote | <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17856-screenshots/screenshots/as-is-confirm-upgrade.png">
| <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17856-screenshots/screenshots/to-be-confirm-upgrade.png">
|
| "You're all set" after confirming | <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17856-screenshots/screenshots/as-is-all-set.png">
| <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17856-screenshots/screenshots/to-be-all-set.png">
|
| Recorded `subscribe` request (quote above it carries no key on either
rail) | no `Idempotency-Key` <br> <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17856-screenshots/screenshots/as-is-subscribe-headers.png">
| `Idempotency-Key` present and echoed as `idempotency_key` <br> <img
width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17856-screenshots/screenshots/to-be-subscribe-headers.png">
|
| `POST /billing/subscribe` answers 404 | one POST, the click fails
("Request failed with status code 404") <br> <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17856-screenshots/screenshots/as-is-404-fallback.png">
| two POSTs from one click — first with the key → 404, second without →
200, "You're all set" <br> <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17856-screenshots/screenshots/to-be-404-fallback.png">
|
| Server answers `REACTIVATION_CONFIRMATION_REQUIRED` | re-quotes, shows
the reactivation panel and the coded toast <br> <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17856-screenshots/screenshots/as-is-reactivation-required.png">
| identical panel, toast and CTA on the rail <br> <img width="480"
src="https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/assets/pr-17856-screenshots/screenshots/to-be-reactivation-required.png">
|

- AS-IS (flag off): quote and subscribe go through the workspace API; a
3DS or payment-method step is driven by the checkout composable off the
raw response.
- TO-BE (flag on): the same screens and copy; quote and subscribe go
through the SDK transport (`Idempotency-Key` on the subscribe POST),
settlement through the operation lifecycle; a 404 falls back to the
legacy call.

## Testing

| Gate | Result |
| --- | --- |
| `packages/account` vitest | 39 files, 634 tests (new: active plan
change issues the request; canceled carries `plan_slug` +
`confirm_reactivation`; `REACTIVATION_CONFIRMATION_REQUIRED` surfaces
coded) |
| host vitest (billing sdk, composables/billing, workspace composables +
stores, feature flags) | 41 files, 1151 tests |
| `pnpm typecheck`, `typecheck:browser`, `lint`, `format`, `knip` | exit
0 |
| `fallow audit --changed-since origin/jaewon/fe-2216-subscription-rail`
| no issues in 10 changed files, complexity 0, duplication 0 |
| Playwright cloud: `planChangeSdkRail.spec.ts` (3) +
`cancelSubscriptionSdkRail.spec.ts` (3) | `6 passed (11.5s)` —
`PLAYWRIGHT_TEST_URL=http://localhost:5173 pnpm exec playwright test
--project=cloud browser_tests/tests/dialogs/planChangeSdkRail.spec.ts
browser_tests/tests/dialogs/cancelSubscriptionSdkRail.spec.ts
--reporter=list` against a `pnpm dev:cloud` vite server, all endpoints
mocked |

## Where this sits in the plan

Billing SDK track FE-2210 ([implementation plan
V2](https://app.notion.com/p/3d86d73d36508152b92cdbdfdfe83ac8)). Hybrid
model: top-up in-app, subscription management / invoices / payment
methods on the hosted billing app.

| Phase | Item | Ticket | Status |
| --- | --- | --- | --- |
| 1-2 | Session core, transport, readers | FE-2211/2212/2213 | merged |
| 3 | Operation lifecycle, commands, eight-state projection |
FE-2227/2214/2223 | merged (Comfy-Org#17655) |
| 4 | `@comfyorg/account-ui` composables + `CheckoutSteps` | FE-2215 |
merged (Comfy-Org#17662, Comfy-Org#17663) |
| 5 slice 1 | Top-up through the SDK behind `billing_sdk_topup_enabled`
| FE-2216 | merged (Comfy-Org#17665) |
| rollout C | `hosted_billing_destination` server flag read by the host
| FE-2218 | merged (Comfy-Org#17716) |
| rollout C | `hostedDestination` port on the lifecycle, value on
operation state | FE-2210/2218 | Comfy-Org#17783 (review) |
| 7 prep | Scope-source port + credentialed transport (BFF / cookie
hosts) | FE-2218 | merged (Comfy-Org#17782) |
| 7 prep | `@comfyorg/account` → `@comfyorg/account-core` rename |
FE-2218 | Comfy-Org#17851 (review) |
| 7 prep | `billing-contract` route builder + `return_to` registry |
FE-2218 | merged (Comfy-Org#17795) |
| 3A-3 | Workshop adapter over `createHostedTopupCheckout` | FE-2214 |
merged (Comfy-Org#17793) |
| 8 core | `previewSubscribe` command | FE-2331 | merged (Comfy-Org#17797) |
| 8 core | Plans + saved payment-methods readers | FE-2331 | merged
(Comfy-Org#17798) |
| 8 ui | account-ui composables (`usePlans`, `usePaymentMethods`,
`usePreviewSubscribe`) | FE-2331 | merged (Comfy-Org#17798) |
| 7 | billing-web own-origin session, sign-in, SDK composition | FE-2218
| merged (Comfy-Org#17798) |
| 7 | billing-web unit tests in CI (`ci-billing-web-unit.yaml`) |
FE-2218 | merged (Comfy-Org#17827, Comfy-Org#17844) |
| 7 | ingest CORS + top-up return hosts for billing.comfy.org and its
previews (Comfy-Org/cloud) | FE-2218 | merged (Comfy-Org/cloud#9512) |
| 8 ui | billing-web `/v1` entry routing + subscription / payment-method
surfaces | FE-2331 | merged (Comfy-Org#17798) |
| 7 | npm publish (`ingest-types`, `account-core`, `billing-contract`),
Platform install, billing-web live top-up | FE-2218 | todo |
| 6 | Contract tests per generated schema (package layer) | FE-2217 |
Comfy-Org#17829 (review) |
| 6 | Live E2E per flow × consumer + evidence table | FE-2217 | todo
(needs staging flags) |
| 5 slice 2a | Cancel, resubscribe and payment portal through the SDK
behind `billing_sdk_subscription_enabled` | FE-2216 | Comfy-Org#17853 (review;
parent of this PR) |
| 5 slice 2b | Subscribe and plan change through the SDK: quote, then
subscribe; the SDK never short-circuits on the client | FE-2216 | **this
PR** |
| follow-up | One `needsCustomerAttention` predicate (from the Comfy-Org#17665
review) | FE-2216 | merged (Comfy-Org#17792) |
| follow-up | Opaque `BillingServerCode` (from the Comfy-Org#17656 review) |
FE-2227 | merged (Comfy-Org#17794) |
| follow-up | `useCredits` clears on `SUPERSEDED` (from the Comfy-Org#17799
review) | FE-2215 | merged (Comfy-Org#17824) |
| follow-up | credits / status / capabilities readers fence a late
failure as `SUPERSEDED` (from the Comfy-Org#17798 review) | FE-2331 | merged
(Comfy-Org#17828) |

```mermaid
flowchart LR
  P3["Phase 3 core lifecycle (merged)"]
  P4["Phase 4 account-ui (merged)"]
  P5["Phase 5 slice 1 top-up flag (merged)"]
  FC["PR 17716 hosted_billing_destination flag (merged)"]
  HD["PR 17783 hostedDestination port"]
  SS["PR 17782 scope-source port + credentialed transport"]
  RN["account-core rename"]
  RB["billing-contract route builder + return_to"]
  WS["Workshop adapter"]
  P8PV["previewSubscribe command"]
  P8RD["plans + payment-methods readers"]
  P8["account-ui hosted composables"]
  BWS["billing-web session + sign-in"]
  BWV["billing-web /v1 surfaces"]
  CORS["cloud PR 9512 ingest CORS + return hosts"]
  PUB["npm publish account-core / billing-contract"]
  P7["Phase 7 host proof: Platform + billing-web live"]
  P6C["Phase 6 contract tests"]
  P6["Phase 6 live evidence"]
  S2A["PR 17853 slice 2a cancel / resubscribe / portal rail"]
  S2B["Phase 5 slice 2b subscribe + plan change"]
  FU9["customer-attention predicate"]
  FU11["opaque BillingServerCode"]
  FU12["useCredits clears on SUPERSEDED"]
  FU13["reader late-failure fence"]
  P3 --> HD
  FC --> HD
  HD --> RB
  P3 --> SS
  SS --> P7
  RB --> P7
  P3 --> RN
  RN --> PUB
  RB --> PUB
  PUB --> P7
  P3 --> P8PV
  P3 --> P8RD
  P8PV --> P8
  P8RD --> P8
  P4 --> P8
  P8 --> S2B
  HD --> S2A
  S2A --> S2B
  P8 --> BWS
  BWS --> BWV
  RB --> BWV
  BWV --> P7
  CORS --> P7
  P5 --> P6
  P3 --> P6C
  P5 --> WS
  P5 --> FU9
  P3 --> FU11
  P4 --> FU12
  P3 --> FU13
  style P3 fill:#d4edda,stroke:#155724
  style P4 fill:#d4edda,stroke:#155724
  style P5 fill:#d4edda,stroke:#155724
  style FC fill:#d4edda,stroke:#155724
  style SS fill:#d4edda,stroke:#155724
  style RB fill:#d4edda,stroke:#155724
  style WS fill:#d4edda,stroke:#155724
  style FU9 fill:#d4edda,stroke:#155724
  style BWV fill:#d4edda,stroke:#155724
  style BWS fill:#d4edda,stroke:#155724
  style P8 fill:#d4edda,stroke:#155724
  style P8RD fill:#d4edda,stroke:#155724
  style CORS fill:#d4edda,stroke:#155724
  style FU13 fill:#d4edda,stroke:#155724
  style FU12 fill:#d4edda,stroke:#155724
  style FU11 fill:#d4edda,stroke:#155724
  style P8PV fill:#d4edda,stroke:#155724
  style S2B stroke:#0366d6,stroke-width:4px
```
pull Bot pushed a commit to Penguinjanator/ComfyUI_frontend that referenced this pull request Sep 17, 2026
…Rs, with the versioning ADR (Comfy-Org#17881)

## Why

`@comfyorg/account-core`, `@comfyorg/billing-contract` and
`@comfyorg/ingest-types` are about to be installed by Platform from the
public registry, and the plan had nothing on how their versions are cut.
The monorepo already releases one package (`@comfyorg/design-system`)
through a version-bump PR that publishes on merge; the decision
(2026-09-16) is to follow that pattern for the SDK packages, generalized
over a package input rather than copied, and to defer Changesets with
the revisit conditions written down.

## How

- `version-bump-package.yaml` — `workflow_dispatch` with `package`
(account-core / billing-contract / ingest-types), `version_type`,
`pre_release`; bumps on `main` and opens a `Release`-labelled PR titled
`<package> <version>` (same pinned `create-pull-request` action as the
design-system workflow).
- `publish-package.yaml` — reusable (`workflow_dispatch` +
`workflow_call`): name/version match, an explicit failure while
`"private": true`, `build` and `smoke:pack` via `--if-present` (works
before and after the publish-readiness PR lands), `npm view` skip on an
existing version, `pnpm publish --access public --tag … --provenance`
under `id-token: write`.
- `publish-package-on-merge.yaml` — on a merged `Release` PR touching
one of the three manifests, publishes every package whose `version`
changed against the first parent (matrix), posts the release-links
comment per package and the Slack notice.
- `.github/actions/comment-release-links` — three additive cases so each
package's summary has its own section.
- `packages/{account-core,billing-contract,ingest-types}/package.json` —
`"private": true` removed. Comfy-Org#17882 is merged and its smoke test proves
the three tarballs install from plain Node, so the latch comes off here,
in the same reviewed PR as the machinery that checks it. Nothing
publishes on this merge: the on-merge job needs a `Release` label and a
version change, and neither is present.
-
`docs/adr/RELEASES-PACKAGES-0033-sdk-packages-release-through-version-bump-prs.md`
(+ index): context, the decision and each workflow's rationale, the
versioning policy (`1.0.0-alpha.N` on `next` until the Phase 7 host
proof, then `1.0.0`; generated-contract additions minor, removals major,
decided on the regeneration PR), alternatives (Changesets,
release-please, semantic-release, per-package copies) and the explicit
"when to revisit Changesets" list.

Written against the post-rename names (`packages/account-core`); the
on-merge path filter matches once Comfy-Org#17851 lands. Design-system workflows
are untouched.

Not in this PR, on purpose: the `ingest-types` regeneration bump — the
generator lives in Comfy-Org/cloud; the one-step change needed there is
recorded in the ADR's follow-ups.

**Snapshot publishing is not in this PR.** A `pull_request` run executes
the workflow definition from the pull request's own merge ref, so a
publish step triggered that way is PR-authored code holding `NPM_TOKEN`,
and on `main` today no `pull_request` workflow reaches that secret. It
returns in its own PR, publishing from a `workflow_run` job that runs
the default branch's definition over an artifact the pull-request job
produces.

## AS-IS / TO-BE

No UI change; CI and docs only.

- AS-IS: only `@comfyorg/design-system` has a release path; the SDK
packages have no bump, no publish, no policy.
- TO-BE: one dispatch bumps any of the three, the merged `Release` PR
publishes with provenance, and the ADR records why Changesets waits and
what the snapshot follow-up has to satisfy.

## Testing

| Check | Result |
| --- | --- |
| `actionlint` on the four workflows | 0 findings |
| `zizmor --min-severity medium` | clean apart from the repo-exempt
`actions/checkout@v7` / `setup-node@v6` pins (`.pinact.yaml`);
workflow-level `permissions: contents: read` added after its finding |
| `yamllint` (as `ci-yaml-validation.yaml` runs it) | clean |
| `pnpm adr:check`, `pnpm lint`, `pnpm format:check`, `pnpm knip` | exit
0 |

After the second review round (860ef8a, 8f7972f, 41793c7):
`publish-package.yaml` rejects a prerelease on `latest` and reports
whether it published or skipped, and `version-bump-package.yaml` holds
`account-core` and `billing-contract` on the `1.0.0-alpha.N` line, since
`patch`, `minor` and `major` all turn `1.0.0-alpha.0` into `1.0.0`. The
hardening that round added to the snapshot workflow left with it in
25b09c3.

After the first review round (23b854e, 5985af7): the manual
publish no longer takes a caller-supplied `ref` (it publishes the ref it
was dispatched on), and the ADR scopes the prerelease-first gate to the
hand-written packages, putting `ingest-types` outside it.

The Slack notice posts to `#proj-billing` (`C0BNGQG2LCW`), not the
design-system channel. Open points for review: `--provenance` is new
relative to the design-system publish and is confirmed on the first real
run; Follow-ups, not in this PR: a protected `environment` with required
reviewers and an environment-scoped `NPM_TOKEN` on the publish job (repo
configuration), and the same `ref` removal on
`publish-design-system.yaml`.

## Where this sits in the plan

Billing SDK track FE-2210 ([implementation plan
V2](https://app.notion.com/p/3d86d73d36508152b92cdbdfdfe83ac8)). Hybrid
model: top-up in-app, subscription management / invoices / payment
methods on the hosted billing app.

| Phase | Item | Ticket | Status |
| --- | --- | --- | --- |
| 1-2 | Session core, transport, readers | FE-2211/2212/2213 | merged |
| 3 | Operation lifecycle, commands, eight-state projection |
FE-2227/2214/2223 | merged (Comfy-Org#17655) |
| 4 | `@comfyorg/account-ui` composables + `CheckoutSteps` | FE-2215 |
merged (Comfy-Org#17662, Comfy-Org#17663) |
| 5 slice 1 | Top-up through the SDK behind `billing_sdk_topup_enabled`
| FE-2216 | merged (Comfy-Org#17665) |
| rollout C | `hosted_billing_destination` server flag read by the host
| FE-2218 | merged (Comfy-Org#17716) |
| rollout C | `hostedDestination` port on the lifecycle, value on
operation state | FE-2210/2218 | Comfy-Org#17783 (review, carries slice 2a) |
| 7 prep | Scope-source port + credentialed transport (BFF / cookie
hosts) | FE-2218 | merged (Comfy-Org#17782) |
| 7 prep | `@comfyorg/account` → `@comfyorg/account-core` rename |
FE-2218 | Comfy-Org#17851 (queued) |
| 7 prep | `billing-contract` route builder + `return_to` registry |
FE-2218 | merged (Comfy-Org#17795) |
| 3A-3 | Workshop adapter over `createHostedTopupCheckout` | FE-2214 |
merged (Comfy-Org#17793) |
| 8 core | `previewSubscribe` command | FE-2331 | merged (Comfy-Org#17797) |
| 8 core | Plans + saved payment-methods readers | FE-2331 | merged
(Comfy-Org#17798) |
| 8 ui | account-ui composables (`usePlans`, `usePaymentMethods`,
`usePreviewSubscribe`) | FE-2331 | merged (Comfy-Org#17798) |
| 7 | billing-web own-origin session, sign-in, SDK composition | FE-2218
| merged (Comfy-Org#17798) |
| 7 | billing-web unit tests in CI (`ci-billing-web-unit.yaml`) |
FE-2218 | merged (Comfy-Org#17827, Comfy-Org#17844) |
| 7 | ingest CORS + top-up return hosts for billing.comfy.org and its
previews (Comfy-Org/cloud) | FE-2218 | merged (Comfy-Org/cloud#9512) |
| 8 ui | billing-web `/v1` entry routing + subscription / payment-method
surfaces | FE-2331 | merged (Comfy-Org#17798) |
| 7 | Package release workflows + versioning ADR (bump dispatch →
publish on merge) | FE-2218 | **this PR** |
| 7 | Pre-merge snapshots from a default-branch `workflow_run` job |
FE-2218 | todo (split out of this PR) |
| 7 | Publish readiness: dist build, files allowlist, pack smoke test,
private-utility cut | FE-2218 | merged (Comfy-Org#17882) |
| 7 | `private` off on the three manifests | FE-2218 | **this PR** |
| 7 | First publish (bump PRs: ingest-types, then billing-contract,
account-core), Platform install, billing-web live top-up | FE-2218 |
todo |
| 6 | Contract tests per generated schema (package layer) | FE-2217 |
Comfy-Org#17829 (review) |
| 6 | Live E2E per flow × consumer + evidence table | FE-2217 | todo
(needs staging flags) |
| 5 slice 2 | Subscription flows through the SDK | FE-2216 | Comfy-Org#17856 /
Comfy-Org#17860 (review) |
| follow-up | One `needsCustomerAttention` predicate (from the Comfy-Org#17665
review) | FE-2216 | merged (Comfy-Org#17792) |
| follow-up | Opaque `BillingServerCode` (from the Comfy-Org#17656 review) |
FE-2227 | merged (Comfy-Org#17794) |
| follow-up | `useCredits` clears on `SUPERSEDED` (from the Comfy-Org#17799
review) | FE-2215 | merged (Comfy-Org#17824) |
| follow-up | credits / status / capabilities readers fence a late
failure as `SUPERSEDED` (from the Comfy-Org#17798 review) | FE-2331 | merged
(Comfy-Org#17828) |

```mermaid
flowchart LR
  P3["Phase 3 core lifecycle (merged)"]
  P4["Phase 4 account-ui (merged)"]
  P5["Phase 5 slice 1 top-up flag (merged)"]
  FC["PR 17716 hosted_billing_destination flag (merged)"]
  HD["PR 17783 hostedDestination port"]
  SS["PR 17782 scope-source port + credentialed transport"]
  RN["account-core rename"]
  RB["billing-contract route builder + return_to"]
  WS["Workshop adapter"]
  P8PV["previewSubscribe command"]
  P8RD["plans + payment-methods readers"]
  P8["account-ui hosted composables"]
  BWS["billing-web session + sign-in"]
  BWV["billing-web /v1 surfaces"]
  CORS["cloud PR 9512 ingest CORS + return hosts"]
  RW["release workflows + ADR"]
  PUB["npm publish account-core / billing-contract"]
  P7["Phase 7 host proof: Platform + billing-web live"]
  P6C["Phase 6 contract tests"]
  P6["Phase 6 live evidence"]
  S2["Phase 5 slice 2 subscription"]
  FU9["customer-attention predicate"]
  FU11["opaque BillingServerCode"]
  FU12["useCredits clears on SUPERSEDED"]
  FU13["reader late-failure fence"]
  P3 --> HD
  FC --> HD
  HD --> RB
  P3 --> SS
  SS --> P7
  RB --> P7
  P3 --> RN
  RN --> PUB
  RW --> PUB
  RB --> PUB
  PUB --> P7
  P3 --> P8PV
  P3 --> P8RD
  P8PV --> P8
  P8RD --> P8
  P4 --> P8
  P8 --> S2
  P8 --> BWS
  BWS --> BWV
  RB --> BWV
  BWV --> P7
  CORS --> P7
  P5 --> P6
  P3 --> P6C
  P5 --> WS
  P5 --> FU9
  P3 --> FU11
  P4 --> FU12
  P3 --> FU13
  style P3 fill:#d4edda,stroke:#155724
  style P4 fill:#d4edda,stroke:#155724
  style P5 fill:#d4edda,stroke:#155724
  style FC fill:#d4edda,stroke:#155724
  style SS fill:#d4edda,stroke:#155724
  style RB fill:#d4edda,stroke:#155724
  style WS fill:#d4edda,stroke:#155724
  style FU9 fill:#d4edda,stroke:#155724
  style BWV fill:#d4edda,stroke:#155724
  style BWS fill:#d4edda,stroke:#155724
  style P8 fill:#d4edda,stroke:#155724
  style P8RD fill:#d4edda,stroke:#155724
  style CORS fill:#d4edda,stroke:#155724
  style FU13 fill:#d4edda,stroke:#155724
  style FU12 fill:#d4edda,stroke:#155724
  style FU11 fill:#d4edda,stroke:#155724
  style P8PV fill:#d4edda,stroke:#155724
  style RW stroke:#0366d6,stroke-width:4px
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk:xhigh PR risk grade (advisory shadow check; grader-owned)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants