Skip to content

FE-2216 feat(billing): read the plan catalog through the SDK reader when a rail is on - #17942

Merged
dante01yoon merged 3 commits into
mainfrom
fe-2216-plans-on-sdk-rail
Sep 18, 2026
Merged

dante01yoon merged 3 commits into
mainfrom
fe-2216-plans-on-sdk-rail

Conversation

@dante01yoon

@dante01yoon dante01yoon commented Sep 17, 2026 •

Copy link
Copy Markdown
Collaborator

Linear FE-2216. Stacked on #17940, which put status and balance on the rail and deferred the catalog to its own review — this is that review.

Why

#17940 left fetchPlans on the workspace client on purpose: the plan catalog is the bigint-heaviest response the SDK decodes, and the app's Plan type is consumed across the pricing surfaces, so the projection deserved its own diff. With status and balance on the rail, the catalog was the last read the panels took from a different client than the one the commands refresh.

How

projectBillingPlans (billingPlansView.ts) — the counterpart of projectBillingStatus. zGetBillingPlansResponse coerces every int64 to bigint: price_cents, credits_cents, max_seats, the seat summary's two totals, and in the credit-stop ladder credits plus the monthly and yearly list_price_cents / price_cents. The generated type the pricing surfaces read them through says number for all of them. The projection reads each back as a number — cents, credits and seat counts, bounded far inside the safe range — and touches nothing else: availability, tier, duration and slug pass through, and a catalog without a ladder comes out without one. BillingPlansView.test.ts pins every converted field and the absent-ladder case.

readPlans() on the SDK store, next to readStatus / readBalance, and on the BillingReadRail interface.

readOnRail moves to its own module (composables/readOnRail.ts) rather than living inside useBillingReadRail.ts, so useBillingPlans.test.ts can replace the rail with a focused full mock — the repo's no-import-actual rule forbids importOriginal — while the helper it exercises stays real.

useBillingPlans.fetchPlans picks the rail once per fetch, the way the other reads do, and adopts the response through one adopt(); a SUPERSEDED read adopts nothing. The singleton, its de-duplication and its consumers (UnifiedPricingTable, useWorkspaceBilling) are untouched — every surface that reads the catalog moves together, because there is one catalog.

Review focus

The mock in useBillingPlans.test.ts now defines WorkspaceApiError. That file already full-mocks workspaceApi with only getBillingPlans; readOnRail throws the module's error class, so the mock needs it. The stand-in is class extends Error {} — only its message reaches error.value, which the failed-read case asserts.

Same gate as #17940: either write-rail flag turns the read on. Flag off is byte-for-byte the legacy path.

Verification

pnpm vitest run useBillingPlans.test.ts billingPlansView.test.ts \
  useWorkspaceBilling.{,sdk.}test.ts billingSdkStore.test.ts UnifiedPricingTable.test.ts
  -> 6 files, 200 tests
pnpm typecheck / eslint / oxlint / knip   # clean

New: billingPlansView.test.ts (2), three rail scenarios in useBillingPlans.test.ts — the catalog through the reader with the client untouched, SUPERSEDED leaves the previous catalog and no error, a failed read surfaces its code.

Why no Playwright regression test

Both fix( commits here are boundary conditions inside the projection and the
composable, and each ships its regression test in the same commit:

  • afd9907 refuses a catalog value past Number.MAX_SAFE_INTEGER instead of
    rounding it. No Cloud catalog produces a price, credit or seat count anywhere
    near 2^53 — the guard exists so that a future one could never be silently
    rounded into a wrong price — so no browser fixture reaches it.
    billingPlansView.test.ts drives the boundary directly.
  • 1f80420 keeps a reported plans failure when the next read returns
    SUPERSEDED. Reaching it needs two overlapping in-flight reads whose second
    one is superseded; Playwright cannot order that deterministically against a
    backend, while useBillingPlans.test.ts pins it exactly.

Neither has a UI surface of its own: the first refuses inside the projection
before anything renders, the second restores the same error object the pricing
surfaces already display. The path is behind the two rail flags as well, both at
0% in staging and prod, so an end-to-end test would have to force-enable a flag
that ships off and assert a configuration no environment runs.

AS IS / TO BE

No UI change; both flags at 0%.

  • AS IS — flag on: status and balance through the SDK readers, the catalog through the workspace client.
  • TO BE — flag on: all three reads through the readers the commands already refresh.

Where this sits in the plan

Billing SDK track FE-2210 (implementation plan V2); remaining work on FE-2216 / FE-2217 / FE-2218 / FE-2331.

Phase Item Ticket Status
7 What belongs in @comfyorg/account-ui (ADR-0034) FE-2218 merged (#17927)
7 billing-web Vercel deployment config FE-2218 merged (#17788)
7 Package release workflows + versioning ADR FE-2218 merged (#17881)
7 Publish report through a workflow_run consumer FE-2218 open (#17952)
7 account-ui builds to dist and packs clean FE-2218 open (#17929)
7 account-ui drops its unpublished dependencies, joins smoke:pack FE-2218 open (#17932)
7 billing-web report-only CSP and framing denial FE-2218 merged (#17941)
8 ui Promote the Stripe payment UI into account-ui FE-2331 open (#17934)
8 ui billing-web checkout, result page, invoices through the portal FE-2331 open (#17936)
8 ui billing-web cancel / resubscribe on the subscription surface FE-2331 open (#17937)
8 ui billing-web reactivation confirmation, refused subscribe surfaced FE-2331 open (#17943)
8 ui billing-web Playwright harness against a mocked Cloud FE-2218 open (#17947)
9 Status and balance reads on the rail FE-2216 open (#17940)
9 Plan catalog read on the rail FE-2216 this PR
9 Capabilities and saved payment methods on the rail FE-2216 open (#17946)
9 Legacy billingOperationStore removal FE-2216 after the flags flip
7 First publish (private off), Platform install FE-2218 unblocked: #17881 is on main
7 Phase 7 host proof: live top-up on billing.comfy.org FE-2218 gated (flags, CNAME, key)
6 Phase 6 live E2E evidence table FE-2217 gated (staging flags)
flowchart LR
  ADR["ADR-0034 (merged)"]
  REL["release workflows + ADR-0033 (merged #17881)"]
  PUBREP["publish report via workflow_run (#17952)"]
  UIB["account-ui dist build (#17929)"]
  DEPS["drop unpublished deps (#17932)"]
  CSP["billing-web CSP (merged #17941)"]
  PROMO["Stripe payment form in account-ui (#17934)"]
  CHK["billing-web checkout + result + invoices (#17936)"]
  SUBW["billing-web cancel / resubscribe (#17937)"]
  REACT["reactivation confirmation (#17943)"]
  E2E["billing-web Playwright harness (#17947)"]
  RD1["status + balance on the rail (#17940)"]
  RD2["plans on the rail (#17942)"]
  RD3["capabilities + payment methods on the rail (#17946)"]
  LEG(["legacy store removal, after the flags"])
  PUB(["first publish: workflows are on main, awaiting go"])
  H(["Phase 7 host proof"])
  E(["Phase 6 evidence"])
  OW{{"OWNER staging flags, CNAME, Stripe key"}}
  ADR --> PROMO
  UIB --> DEPS --> PROMO --> CHK --> SUBW --> REACT --> E2E
  REL --> PUBREP
  REL --> PUB
  DEPS --> PUB
  RD1 --> RD2 --> RD3 --> LEG
  CHK --> H
  CSP --> H
  OW -.-> H
  OW -.-> E
  OW -.-> LEG
  style ADR fill:#d4edda,stroke:#155724
  style REL fill:#d4edda,stroke:#155724
  style CSP fill:#d4edda,stroke:#155724
  style RD2 stroke:#0366d6,stroke-width:4px
Loading

@coderabbitai

coderabbitai Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

📝 Walkthrough

Walkthrough

Billing plan reads now support an optional SDK billing rail. The SDK converts decoded bigint values to safe numbers and reports malformed responses. The composable retains legacy client fallback and handles successful, superseded, and failed rail reads.

Changes

Billing SDK read rail

Layer / File(s) Summary
Safe billing response projection
src/platform/workspace/billing/sdk/billingPlansView.ts, src/platform/workspace/billing/sdk/billingPlansView.test.ts
projectBillingPlans converts bigint catalog values to safe numbers, preserves optional credit-stop data, and returns undefined for unsafe values.
Billing SDK plan reader
src/platform/workspace/billing/sdk/billingSdkStore.ts
The store adds readPlans, projects SDK data, propagates SDK errors, and returns MALFORMED_RESPONSE for unrepresentable catalogs.
Shared billing read handling
src/platform/workspace/composables/readOnRail.ts, src/platform/workspace/composables/useBillingReadRail.ts, src/platform/workspace/composables/useWorkspaceBilling.ts
The rail exposes readPlans. The shared helper handles successful, SUPERSEDED, and failed reads. Existing workspace billing reads use the shared helper.
Billing plan composable integration
src/platform/cloud/subscription/composables/useBillingPlans.ts, src/platform/cloud/subscription/composables/useBillingPlans.test.ts
useBillingPlans uses the SDK rail when available and otherwise uses workspaceApi. Successful responses update plan state. Superseded responses preserve existing state. Tests cover success, superseded reads, and failures.

Priority: ⬇️ Low

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant useBillingPlans
  participant useBillingReadRail
  participant billingSdkStore
  participant sdk.plans
  participant readOnRail
  participant workspaceApi
  useBillingPlans->>useBillingReadRail: resolve billing read rail
  alt SDK rail available
    useBillingPlans->>readOnRail: readPlans
    readOnRail->>billingSdkStore: readPlans
    billingSdkStore->>sdk.plans: read
    sdk.plans-->>billingSdkStore: decoded billing data
    billingSdkStore-->>readOnRail: projected BillingResult
    readOnRail-->>useBillingPlans: plan value or undefined
  else SDK rail unavailable
    useBillingPlans->>workspaceApi: getBillingPlans
    workspaceApi-->>useBillingPlans: billing response
  end
Loading

Merge Risk: 🔵 Low · up to 1f804

The SDK billing-read path is implemented, but a few malformed-response and store-boundary cases are not protected by tests. This is mergeable with bounded follow-up risk.

🚥 Pre-merge checks | ✅ 7
✅ Passed checks (7 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the primary change: reading the billing plan catalog through the SDK reader when the rail is enabled.
Description check ✅ Passed The description provides the change rationale, implementation details, review focus, verification results, testing scope, and explicit confirmation that no UI changes or screenshots apply. It uses dif…
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 contains bug-fix signals in the commit subjects (fix(billing): ...). It changes frontend files under src/ and no file under browser_tests/. However, the PR description includes a concrete…
Website End-To-End Regression Coverage ✅ Passed The changed-file list contains no files under apps/website/src/ or apps/website/public/. The PR changes billing platform and SDK files only, so this website-specific check does not apply.
Adr Compliance For Entity/Litegraph Changes ✅ Passed The changed-file list contains only billing SDK, composable, and test files. It contains no files under src/lib/litegraph/, src/ecs/, or files related to graph entities. The ADR-LAYOUT and ADR-ECS…
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

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

@github-actions

github-actions Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

🎭 Playwright: ✅ 2029 passed, 0 failed · 3 flaky

📊 Browser Reports
  • chromium: View Report (✅ 2008 / ❌ 0 / ⚠️ 3 / ⏭️ 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)

🎨 Storybook: ✅ Built — View Storybook

Details

⏰ Completed at: 09/17/2026, 10:49:59 PM UTC

Links

📦 Bundle: 10.1 MB gzip 🔴 +860 B

Details

Summary

  • Raw size: 42.8 MB baseline 42.8 MB — 🔴 +2.95 kB
  • Gzip: 10.1 MB baseline 10.1 MB — 🔴 +860 B
  • Brotli: 7.11 MB baseline 7.11 MB — 🔴 +571 B
  • Bundles: 452 current • 452 baseline • 162 added / 162 removed

Category Glance
Data & Services 🔴 +3.01 kB (3.83 MB) · Other 🟢 -64 B (17.7 MB) · Utilities & Hooks 🔴 +2 B (562 kB) · Graph Workspace 🔴 +1 B (1.44 MB) · Panels & Settings 🔴 +1 B (637 kB) · Vendor & Third-Party ⚪ 0 B (18.2 MB) · + 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-CRg6s55j.js (new) — 3.73 kB 🔴 +3.73 kB 🔴 +1.87 kB 🔴 +1.61 kB
assets/index-Cz2KiMml.js (removed) 3.73 kB — 🟢 -3.73 kB 🟢 -1.87 kB 🟢 -1.61 kB

Status: 1 added / 1 removed

Graph Workspace — 1.44 MB (baseline 1.44 MB) • 🔴 +1 B

Graph editor runtime, canvas, workflow orchestration

File Before After Δ Raw Δ Gzip Δ Brotli
assets/GraphView-DE1f1_2L.js (new) — 1.43 MB 🔴 +1.43 MB 🔴 +314 kB 🔴 +235 kB
assets/GraphView-DKCdZqJU.js (removed) 1.43 MB — 🟢 -1.43 MB 🟢 -314 kB 🟢 -235 kB
assets/WidgetCompositor-CG9lET0o.js (removed) 8.5 kB — 🟢 -8.5 kB 🟢 -2.81 kB 🟢 -2.5 kB
assets/WidgetCompositor-CN5vM7DL.js (new) — 8.5 kB 🔴 +8.5 kB 🔴 +2.81 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-BN8FOwNa.js (new) — 25 kB 🔴 +25 kB 🔴 +6.24 kB 🔴 +5.53 kB
assets/CloudSurveyView-bsFX6UPi.js (removed) 25 kB — 🟢 -25 kB 🟢 -6.24 kB 🟢 -5.53 kB
assets/CloudLayoutView-CVf1ssTr.js (new) — 21.7 kB 🔴 +21.7 kB 🔴 +6.56 kB 🔴 +5.74 kB
assets/CloudLayoutView-WGcNbcL0.js (removed) 21.7 kB — 🟢 -21.7 kB 🟢 -6.56 kB 🟢 -5.73 kB
assets/useCloudAuthPage-BAuaC8Sb.js (new) — 11 kB 🔴 +11 kB 🔴 +4.18 kB 🔴 +3.55 kB
assets/useCloudAuthPage-BHL47M_r.js (removed) 11 kB — 🟢 -11 kB 🟢 -4.18 kB 🟢 -3.54 kB
assets/CloudLoginView-CmS7HhAX.js (removed) 8.74 kB — 🟢 -8.74 kB 🟢 -2.56 kB 🟢 -2.25 kB
assets/CloudLoginView-JU32xvge.js (new) — 8.74 kB 🔴 +8.74 kB 🔴 +2.56 kB 🔴 +2.26 kB
assets/UserCheckView-BKIDFFzF.js (removed) 8.51 kB — 🟢 -8.51 kB 🟢 -2.13 kB 🟢 -1.86 kB
assets/UserCheckView-OUb6wzWG.js (new) — 8.51 kB 🔴 +8.51 kB 🔴 +2.13 kB 🔴 +1.86 kB
assets/CloudSignupView-Ca8uJFVT.js (removed) 6.96 kB — 🟢 -6.96 kB 🟢 -2.28 kB 🟢 -2 kB
assets/CloudSignupView-WwsZgGGK.js (new) — 6.96 kB 🔴 +6.96 kB 🔴 +2.28 kB 🔴 +2 kB
assets/WidgetTextPreview-Bp_NGvfW.js (new) — 6.06 kB 🔴 +6.06 kB 🔴 +2.13 kB 🔴 +1.89 kB
assets/WidgetTextPreview-D8gjQodK.js (removed) 6.06 kB — 🟢 -6.06 kB 🟢 -2.13 kB 🟢 -1.89 kB
assets/CloudSubscriptionRedirectView-DZExVCwr.js (new) — 5.69 kB 🔴 +5.69 kB 🔴 +1.93 kB 🔴 +1.7 kB
assets/CloudSubscriptionRedirectView-DZic3JYf.js (removed) 5.69 kB — 🟢 -5.69 kB 🟢 -1.94 kB 🟢 -1.7 kB
assets/UserSelectView-BWijHwRZ.js (removed) 5.63 kB — 🟢 -5.63 kB 🟢 -2 kB 🟢 -1.75 kB
assets/UserSelectView-Bx95TR4L.js (new) — 5.63 kB 🔴 +5.63 kB 🔴 +2 kB 🔴 +1.76 kB
assets/CloudForgotPasswordView-CbNDM-_C.js (new) — 5 kB 🔴 +5 kB 🔴 +1.72 kB 🔴 +1.5 kB
assets/CloudForgotPasswordView-DNKUMeYv.js (removed) 5 kB — 🟢 -5 kB 🟢 -1.72 kB 🟢 -1.5 kB
assets/CloudAuthTimeoutView-BerFFU4m.js (removed) 4.43 kB — 🟢 -4.43 kB 🟢 -1.54 kB 🟢 -1.33 kB
assets/CloudAuthTimeoutView-CTDh-dcm.js (new) — 4.43 kB 🔴 +4.43 kB 🔴 +1.54 kB 🔴 +1.34 kB
assets/WidgetResolutionPreview-CY0oj6Yv.js (new) — 3.78 kB 🔴 +3.78 kB 🔴 +1.49 kB 🔴 +1.33 kB
assets/WidgetResolutionPreview-D0ZTtegT.js (removed) 3.78 kB — 🟢 -3.78 kB 🟢 -1.49 kB 🟢 -1.33 kB
assets/OAuthLayoutView-BVd1p_Vp.js (removed) 1.32 kB — 🟢 -1.32 kB 🟢 -705 B 🟢 -595 B
assets/OAuthLayoutView-BvEIopmF.js (new) — 1.32 kB 🔴 +1.32 kB 🔴 +706 B 🔴 +596 B
assets/WidgetTextPreview-0WLEstWd.js (removed) 131 B — 🟢 -131 B 🟢 -100 B 🟢 -90 B
assets/WidgetTextPreview-CW2VQZvI.js (new) — 131 B 🔴 +131 B 🔴 +100 B 🔴 +95 B

Status: 14 added / 14 removed / 4 unchanged

Panels & Settings — 637 kB (baseline 637 kB) • 🔴 +1 B

Configuration panels, inspectors, and settings screens

File Before After Δ Raw Δ Gzip Δ Brotli
assets/KeybindingPanel-BEInmw_9.js (new) — 50 kB 🔴 +50 kB 🔴 +10.1 kB 🔴 +8.95 kB
assets/KeybindingPanel-UM5iibLv.js (removed) 50 kB — 🟢 -50 kB 🟢 -10.1 kB 🟢 -8.94 kB
assets/CreditsPanel-CbttBTAJ.js (new) — 38 kB 🔴 +38 kB 🔴 +9.12 kB 🔴 +8 kB
assets/CreditsPanel-Bn_VrUMD.js (removed) 38 kB — 🟢 -38 kB 🟢 -9.12 kB 🟢 -8 kB
assets/SecretsPanel-BIF_Vv-w.js (removed) 33.8 kB — 🟢 -33.8 kB 🟢 -7.9 kB 🟢 -6.93 kB
assets/SecretsPanel-BtNhNp_h.js (new) — 33.8 kB 🔴 +33.8 kB 🔴 +7.9 kB 🔴 +6.92 kB
assets/AboutPanel-at9f_HnR.js (removed) 11.4 kB — 🟢 -11.4 kB 🟢 -3.14 kB 🟢 -2.8 kB
assets/AboutPanel-BhfTJtgJ.js (new) — 11.4 kB 🔴 +11.4 kB 🔴 +3.14 kB 🔴 +2.8 kB
assets/ExtensionPanel-CbSEWoWP.js (new) — 9.19 kB 🔴 +9.19 kB 🔴 +2.51 kB 🔴 +2.23 kB
assets/ExtensionPanel-D_CbY-rs.js (removed) 9.19 kB — 🟢 -9.19 kB 🟢 -2.51 kB 🟢 -2.23 kB
assets/ServerConfigPanel-CrbWlqbd.js (new) — 6.15 kB 🔴 +6.15 kB 🔴 +1.96 kB 🔴 +1.74 kB
assets/ServerConfigPanel-CWm4wIfj.js (removed) 6.15 kB — 🟢 -6.15 kB 🟢 -1.96 kB 🟢 -1.74 kB
assets/UserPanel-C6wHyBag.js (removed) 5.76 kB — 🟢 -5.76 kB 🟢 -1.8 kB 🟢 -1.55 kB
assets/UserPanel-ZEdU4N1k.js (new) — 5.76 kB 🔴 +5.76 kB 🔴 +1.8 kB 🔴 +1.55 kB
assets/refreshRemoteConfig-CX5dHDMC.js (new) — 4.54 kB 🔴 +4.54 kB 🔴 +1.61 kB 🔴 +1.43 kB
assets/refreshRemoteConfig-EOMQ2hpW.js (removed) 4.54 kB — 🟢 -4.54 kB 🟢 -1.61 kB 🟢 -1.43 kB
assets/CreditsPanel-BfdZNM8i.js (removed) 116 B — 🟢 -116 B 🟢 -95 B 🟢 -92 B
assets/CreditsPanel-DCHYxHpl.js (new) — 116 B 🔴 +116 B 🔴 +95 B 🔴 +84 B
assets/refreshRemoteConfig-B5i5n5Dx.js (new) — 110 B 🔴 +110 B 🔴 +89 B 🔴 +82 B
assets/refreshRemoteConfig-fx5sm4PU.js (removed) 110 B — 🟢 -110 B 🟢 -89 B 🟢 -83 B

Status: 10 added / 10 removed / 17 unchanged

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

Authentication, profile, and account management bundles

File Before After Δ Raw Δ Gzip Δ Brotli
assets/SignUpForm-BRLtZj8c.js (new) — 18.3 kB 🔴 +18.3 kB 🔴 +5.79 kB 🔴 +5.02 kB
assets/SignUpForm-DuqrLExu.js (removed) 18.3 kB — 🟢 -18.3 kB 🟢 -5.79 kB 🟢 -5.04 kB
assets/PasswordFields-Bo4u45x_.js (removed) 6.22 kB — 🟢 -6.22 kB 🟢 -1.87 kB 🟢 -1.63 kB
assets/PasswordFields-BzrW_1qb.js (new) — 6.22 kB 🔴 +6.22 kB 🔴 +1.87 kB 🔴 +1.64 kB
assets/auth-C6jMyt0z.js (removed) 3.48 kB — 🟢 -3.48 kB 🟢 -1.2 kB 🟢 -1.01 kB
assets/auth-DCmvPxmn.js (new) — 3.48 kB 🔴 +3.48 kB 🔴 +1.21 kB 🔴 +1.01 kB
assets/UpdatePasswordContent-CzzJp5i2.js (removed) 1.85 kB — 🟢 -1.85 kB 🟢 -843 B 🟢 -740 B
assets/UpdatePasswordContent-Ddrb3yen.js (new) — 1.85 kB 🔴 +1.85 kB 🔴 +844 B 🔴 +737 B
assets/authStore-DEg4wRV3.js (removed) 126 B — 🟢 -126 B 🟢 -106 B 🟢 -101 B
assets/authStore-DSq0h8mm.js (new) — 126 B 🔴 +126 B 🔴 +106 B 🔴 +103 B
assets/workspaceAuthStore-BGK38X3n.js (removed) 108 B — 🟢 -108 B 🟢 -99 B 🟢 -105 B
assets/workspaceAuthStore-BH1-JUzG.js (new) — 108 B 🔴 +108 B 🔴 +99 B 🔴 +105 B
assets/auth-C_YCU_rE.js (new) — 105 B 🔴 +105 B 🔴 +96 B 🔴 +88 B
assets/auth-DHxznoEy.js (removed) 105 B — 🟢 -105 B 🟢 -96 B 🟢 -74 B

Status: 7 added / 7 removed / 4 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-B9quSFTs.js (new) — 90.8 kB 🔴 +90.8 kB 🔴 +19.4 kB 🔴 +16.6 kB
assets/ComfyHubPublishDialog-Cpcir4um.js (removed) 90.8 kB — 🟢 -90.8 kB 🟢 -19.4 kB 🟢 -16.6 kB
assets/useShareDialog-BJ9Aymwq.js (new) — 23.9 kB 🔴 +23.9 kB 🔴 +5.74 kB 🔴 +5.09 kB
assets/useShareDialog-CQ_GyJy6.js (removed) 23.9 kB — 🟢 -23.9 kB 🟢 -5.74 kB 🟢 -5.08 kB
assets/feedbackDialog-B889O3vr.js (removed) 4.45 kB — 🟢 -4.45 kB 🟢 -1.87 kB 🟢 -1.59 kB
assets/feedbackDialog-DmCQZ3lF.js (new) — 4.45 kB 🔴 +4.45 kB 🔴 +1.87 kB 🔴 +1.59 kB
assets/useRangeEditor-aV07BidK.js (removed) 3.29 kB — 🟢 -3.29 kB 🟢 -1.14 kB 🟢 -1.04 kB
assets/useRangeEditor-FV8zdsMF.js (new) — 3.29 kB 🔴 +3.29 kB 🔴 +1.14 kB 🔴 +1.04 kB
assets/useLayerEditor-6BdV0q-5.js (removed) 1.19 kB — 🟢 -1.19 kB 🟢 -566 B 🟢 -485 B
assets/useLayerEditor-CPy9ZOKS.js (new) — 1.19 kB 🔴 +1.19 kB 🔴 +564 B 🔴 +490 B
assets/ComfyHubPublishDialog-Bv9b9JkF.js (new) — 143 B 🔴 +143 B 🔴 +105 B 🔴 +96 B
assets/ComfyHubPublishDialog-C7y3xXmQ.js (removed) 143 B — 🟢 -143 B 🟢 -105 B 🟢 -88 B
assets/useSubscriptionDialog-BC2kf8It.js (new) — 107 B 🔴 +107 B 🔴 +101 B 🔴 +90 B
assets/useSubscriptionDialog-Cl-4dYcT.js (removed) 107 B — 🟢 -107 B 🟢 -101 B 🟢 -95 B

Status: 7 added / 7 removed / 1 unchanged

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

Reusable component library chunks

File Before After Δ Raw Δ Gzip Δ Brotli
assets/useMoreOptionsMenu-CXJUA95-.js (removed) 47.8 kB — 🟢 -47.8 kB 🟢 -11.5 kB 🟢 -9.96 kB
assets/useMoreOptionsMenu-DTxfQQaE.js (new) — 47.8 kB 🔴 +47.8 kB 🔴 +11.5 kB 🔴 +9.96 kB
assets/ComfyQueueButton-Cc-df6rL.js (new) — 14.6 kB 🔴 +14.6 kB 🔴 +3.98 kB 🔴 +3.53 kB
assets/ComfyQueueButton-Ds4EJcnV.js (removed) 14.6 kB — 🟢 -14.6 kB 🟢 -3.98 kB 🟢 -3.53 kB
assets/useTerminalTabs-CXpFes9G.js (new) — 11.8 kB 🔴 +11.8 kB 🔴 +3.71 kB 🔴 +3.29 kB
assets/useTerminalTabs-CzBDpGo0.js (removed) 11.8 kB — 🟢 -11.8 kB 🟢 -3.72 kB 🟢 -3.29 kB
assets/InviteMembersForm-BC_k71Bx.js (removed) 10.5 kB — 🟢 -10.5 kB 🟢 -3.15 kB 🟢 -2.8 kB
assets/InviteMembersForm-Chi0f5Du.js (new) — 10.5 kB 🔴 +10.5 kB 🔴 +3.15 kB 🔴 +2.83 kB
assets/SubscribeButton-B4nGbzDC.js (removed) 2.15 kB — 🟢 -2.15 kB 🟢 -971 B 🟢 -847 B
assets/SubscribeButton-KhqvjjV6.js (new) — 2.15 kB 🔴 +2.15 kB 🔴 +970 B 🔴 +847 B
assets/cloudFeedbackTopbarButton-DvX3tWGe.js (removed) 701 B — 🟢 -701 B 🟢 -423 B 🟢 -383 B
assets/cloudFeedbackTopbarButton-EyQ_l1wH.js (new) — 701 B 🔴 +701 B 🔴 +420 B 🔴 +372 B
assets/ComfyQueueButton-Cr6hQRXm.js (new) — 128 B 🔴 +128 B 🔴 +99 B 🔴 +90 B
assets/ComfyQueueButton-DfAH7BJD.js (removed) 128 B — 🟢 -128 B 🟢 -99 B 🟢 -93 B

Status: 7 added / 7 removed / 9 unchanged

Data & Services — 3.83 MB (baseline 3.83 MB) • 🔴 +3.01 kB

Stores, services, APIs, and repositories

File Before After Δ Raw Δ Gzip Δ Brotli
assets/settingStore-DxcyYGCG.js (new) — 3.54 MB 🔴 +3.54 MB 🔴 +840 kB 🔴 +634 kB
assets/settingStore-MSzgKTU9.js (removed) 3.54 MB — 🟢 -3.54 MB 🟢 -840 kB 🟢 -634 kB
assets/api-Bs0KAT6_.js (new) — 144 kB 🔴 +144 kB 🔴 +32.5 kB 🔴 +27.6 kB
assets/api-DwC45HnD.js (removed) 144 kB — 🟢 -144 kB 🟢 -32.5 kB 🟢 -27.6 kB
assets/load3dService-AqBg14rn.js (new) — 87 kB 🔴 +87 kB 🔴 +20.3 kB 🔴 +17.6 kB
assets/load3dService-C8TGnOfz.js (removed) 87 kB — 🟢 -87 kB 🟢 -20.3 kB 🟢 -17.6 kB
assets/releaseStore-DQ4xwA9F.js (removed) 23.8 kB — 🟢 -23.8 kB 🟢 -7.07 kB 🟢 -6.22 kB
assets/releaseStore-DT4Jc90l.js (new) — 23.8 kB 🔴 +23.8 kB 🔴 +7.07 kB 🔴 +6.22 kB
assets/workflowShareService-BW75mXXm.js (new) — 17.2 kB 🔴 +17.2 kB 🔴 +5.12 kB 🔴 +4.53 kB
assets/workflowShareService-D5QRpbYk.js (removed) 17.2 kB — 🟢 -17.2 kB 🟢 -5.12 kB 🟢 -4.53 kB
assets/keybindingService-BqBxibj8.js (new) — 6.95 kB 🔴 +6.95 kB 🔴 +1.74 kB 🔴 +1.51 kB
assets/keybindingService-Dkit7qU0.js (removed) 6.95 kB — 🟢 -6.95 kB 🟢 -1.74 kB 🟢 -1.51 kB
assets/userStore-CQSHyTf7.js (new) — 2.38 kB 🔴 +2.38 kB 🔴 +900 B 🔴 +796 B
assets/userStore-m8dYzfkK.js (removed) 2.38 kB — 🟢 -2.38 kB 🟢 -899 B 🟢 -794 B
assets/audioService-CmD6wHGL.js (removed) 1.71 kB — 🟢 -1.71 kB 🟢 -828 B 🟢 -725 B
assets/audioService-EI1vT1bQ.js (new) — 1.71 kB 🔴 +1.71 kB 🔴 +829 B 🔴 +731 B
assets/dialogService-DuwNZluF.js (new) — 97 B 🔴 +97 B 🔴 +96 B 🔴 +85 B
assets/dialogService-Twe25IRO.js (removed) 97 B — 🟢 -97 B 🟢 -96 B 🟢 -80 B
assets/releaseStore-Dofk1Jxy.js (removed) 95 B — 🟢 -95 B 🟢 -86 B 🟢 -91 B
assets/releaseStore-ZujPEquQ.js (new) — 95 B 🔴 +95 B 🔴 +86 B 🔴 +90 B
assets/settingStore-BIKhSlgq.js (removed) 95 B — 🟢 -95 B 🟢 -86 B 🟢 -87 B
assets/settingStore-Cl0EA6lE.js (new) — 95 B 🔴 +95 B 🔴 +86 B 🔴 +83 B
assets/assetsStore-B7ZWfNp0.js (new) — 94 B 🔴 +94 B 🔴 +92 B 🔴 +86 B
assets/assetsStore-DwApufzK.js (removed) 94 B — 🟢 -94 B 🟢 -92 B 🟢 -85 B
assets/api-BSGredHV.js (removed) 62 B — 🟢 -62 B 🟢 -74 B 🟢 -66 B
assets/api-Drb4ZVzR.js (new) — 62 B 🔴 +62 B 🔴 +74 B 🔴 +66 B

Status: 13 added / 13 removed / 3 unchanged

Utilities & Hooks — 562 kB (baseline 562 kB) • 🔴 +2 B

Helpers, composables, and utility bundles

File Before After Δ Raw Δ Gzip Δ Brotli
assets/useConflictDetection-7MS1DSUO.js (removed) 235 kB — 🟢 -235 kB 🟢 -53 kB 🟢 -43.2 kB
assets/useConflictDetection-Cgdy_Wgz.js (new) — 235 kB 🔴 +235 kB 🔴 +53 kB 🔴 +43.2 kB
assets/useLayerEditorSession-B7Y71QJ9.js (removed) 159 kB — 🟢 -159 kB 🟢 -41 kB 🟢 -34.5 kB
assets/useLayerEditorSession-C-NXn03-.js (new) — 159 kB 🔴 +159 kB 🔴 +41 kB 🔴 +34.4 kB
assets/useLoad3d-BTlLNtT5.js (removed) 26.3 kB — 🟢 -26.3 kB 🟢 -5.95 kB 🟢 -5.28 kB
assets/useLoad3d-xB-9o-i_.js (new) — 26.3 kB 🔴 +26.3 kB 🔴 +5.95 kB 🔴 +5.27 kB
assets/useLoad3dViewer-CPSRCjxO.js (new) — 21.9 kB 🔴 +21.9 kB 🔴 +5.25 kB 🔴 +4.59 kB
assets/useLoad3dViewer-DB4EPAPN.js (removed) 21.9 kB — 🟢 -21.9 kB 🟢 -5.25 kB 🟢 -4.58 kB
assets/useImageCrop-D2dsRyfE.js (new) — 15.3 kB 🔴 +15.3 kB 🔴 +3.54 kB 🔴 +3.08 kB
assets/useImageCrop-TXCcN0r4.js (removed) 15.3 kB — 🟢 -15.3 kB 🟢 -3.54 kB 🟢 -3.08 kB
assets/useDowngradeToPersonal-C_OkfuWX.js (new) — 11 kB 🔴 +11 kB 🔴 +2.78 kB 🔴 +2.38 kB
assets/useDowngradeToPersonal-CPF1_dN9.js (removed) 11 kB — 🟢 -11 kB 🟢 -2.78 kB 🟢 -2.39 kB
assets/useFeatureFlags-B1pR0uvd.js (new) — 9.69 kB 🔴 +9.69 kB 🔴 +2.67 kB 🔴 +2.28 kB
assets/useFeatureFlags-DO_vAI4y.js (removed) 9.69 kB — 🟢 -9.69 kB 🟢 -2.68 kB 🟢 -2.28 kB
assets/useExternalLink-DrQ0GsSC.js (new) — 7.57 kB 🔴 +7.57 kB 🔴 +2.55 kB 🔴 +2.18 kB
assets/useExternalLink-eZXeMZxn.js (removed) 7.57 kB — 🟢 -7.57 kB 🟢 -2.55 kB 🟢 -2.17 kB
assets/usePricingTableUrlLoader-B0ZecRVu.js (new) — 4.81 kB 🔴 +4.81 kB 🔴 +1.66 kB 🔴 +1.42 kB
assets/usePricingTableUrlLoader-ByfgCfRR.js (removed) 4.81 kB — 🟢 -4.81 kB 🟢 -1.66 kB 🟢 -1.41 kB
assets/useCompositorLayers--ferLozU.js (removed) 2.93 kB — 🟢 -2.93 kB 🟢 -859 B 🟢 -768 B
assets/useCompositorLayers-B5F3sPSP.js (new) — 2.93 kB 🔴 +2.93 kB 🔴 +858 B 🔴 +776 B
assets/useScheduledPlanChange-BAN-JQUK.js (new) — 2.4 kB 🔴 +2.4 kB 🔴 +962 B 🔴 +835 B
assets/useScheduledPlanChange-BJeEIkuY.js (removed) 2.4 kB — 🟢 -2.4 kB 🟢 -962 B 🟢 -838 B
assets/downloadUtil-CflCLEXB.js (removed) 2.04 kB — 🟢 -2.04 kB 🟢 -908 B 🟢 -728 B
assets/downloadUtil-YNW87Ap0.js (new) — 2.04 kB 🔴 +2.04 kB 🔴 +906 B 🔴 +728 B
assets/useUpstreamValue-DVBsK6Qn.js (new) — 1.97 kB 🔴 +1.97 kB 🔴 +751 B 🔴 +664 B
assets/useUpstreamValue-DWKjoSpO.js (removed) 1.97 kB — 🟢 -1.97 kB 🟢 -752 B 🟢 -664 B
assets/useWorkspaceTierLabel-462HbULb.js (removed) 1.97 kB — 🟢 -1.97 kB 🟢 -844 B 🟢 -712 B
assets/useWorkspaceTierLabel-DG41keq2.js (new) — 1.97 kB 🔴 +1.97 kB 🔴 +843 B 🔴 +713 B
assets/useErrorHandling-DNUmcjRC.js (new) — 1.49 kB 🔴 +1.49 kB 🔴 +614 B 🔴 +527 B
assets/useErrorHandling-JsvCH2S4.js (removed) 1.49 kB — 🟢 -1.49 kB 🟢 -614 B 🟢 -520 B
assets/useSessionCookie-C75uxXgC.js (new) — 688 B 🔴 +688 B 🔴 +355 B 🔴 +308 B
assets/useSessionCookie-Dq4nyNNe.js (removed) 688 B — 🟢 -688 B 🟢 -354 B 🟢 -309 B
assets/useLoad3d-BxW7qjeF.js (new) — 311 B 🔴 +311 B 🔴 +163 B 🔴 +149 B
assets/useLoad3d-BYswQgx_.js (removed) 311 B — 🟢 -311 B 🟢 -163 B 🟢 -149 B
assets/useSessionCookie-D8KKoknK.js (new) — 101 B 🔴 +101 B 🔴 +86 B 🔴 +77 B
assets/useSessionCookie-uwtjhTmK.js (removed) 101 B — 🟢 -101 B 🟢 -86 B 🟢 -80 B
assets/useFeatureFlags-BbpH2Xdi.js (removed) 98 B — 🟢 -98 B 🟢 -85 B 🟢 -83 B
assets/useFeatureFlags-DTQk120u.js (new) — 98 B 🔴 +98 B 🔴 +85 B 🔴 +85 B
assets/useLoad3dViewer-B5gX-iWd.js (new) — 98 B 🔴 +98 B 🔴 +85 B 🔴 +85 B
assets/useLoad3dViewer-mri-CIli.js (removed) 98 B — 🟢 -98 B 🟢 -85 B 🟢 -87 B
assets/useCurrentUser-Cw_wGV04.js (new) — 93 B 🔴 +93 B 🔴 +94 B 🔴 +90 B
assets/useCurrentUser-gmywfxow.js (removed) 93 B — 🟢 -93 B 🟢 -94 B 🟢 -88 B

Status: 21 added / 21 removed / 16 unchanged

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

External libraries and shared vendor chunks

Status: 18 unchanged

Other — 17.7 MB (baseline 17.7 MB) • 🟢 -64 B

Bundles that do not match a named category

File Before After Δ Raw Δ Gzip Δ Brotli
assets/main-DqJc_8b7.js (removed) 225 kB — 🟢 -225 kB 🟢 -65.9 kB 🟢 -55.2 kB
assets/main-CexOaWtC.js (new) — 225 kB 🔴 +225 kB 🔴 +65.8 kB 🔴 +55.2 kB
assets/core-C-0eGdld.js (removed) 118 kB — 🟢 -118 kB 🟢 -30.8 kB 🟢 -26 kB
assets/core-CukgOac7.js (new) — 118 kB 🔴 +118 kB 🔴 +30.8 kB 🔴 +26 kB
assets/WorkspaceSettingsPanelContent-DcDbXZWs.js (new) — 111 kB 🔴 +111 kB 🔴 +21.8 kB 🔴 +18.2 kB
assets/WorkspaceSettingsPanelContent-W_hJAmOB.js (removed) 111 kB — 🟢 -111 kB 🟢 -21.8 kB 🟢 -18.2 kB
assets/SubscriptionTransitionPreviewWorkspace-382FDVhe.js (new) — 104 kB 🔴 +104 kB 🔴 +20.3 kB 🔴 +17.2 kB
assets/SubscriptionTransitionPreviewWorkspace-DiyMi2Sg.js (removed) 104 kB — 🟢 -104 kB 🟢 -20.3 kB 🟢 -17.3 kB
assets/WidgetSelect-BlvBG4hF.js (removed) 88.6 kB — 🟢 -88.6 kB 🟢 -20.1 kB 🟢 -17.1 kB
assets/WidgetSelect-pcCGh7uG.js (new) — 88.6 kB 🔴 +88.6 kB 🔴 +20.1 kB 🔴 +17.1 kB
assets/Load3D-BIicMPP7.js (new) — 82.4 kB 🔴 +82.4 kB 🔴 +13.6 kB 🔴 +11.5 kB
assets/Load3D-D7VGTDvQ.js (removed) 82.4 kB — 🟢 -82.4 kB 🟢 -13.6 kB 🟢 -11.5 kB
assets/WidgetVideoEdit-5Jn8M499.js (new) — 73.2 kB 🔴 +73.2 kB 🔴 +17.4 kB 🔴 +15.2 kB
assets/WidgetVideoEdit-CN1XHooE.js (removed) 73.2 kB — 🟢 -73.2 kB 🟢 -17.4 kB 🟢 -15.2 kB
assets/CameraInfo-BXtyW_0f.js (removed) 67.3 kB — 🟢 -67.3 kB 🟢 -14.6 kB 🟢 -12.8 kB
assets/CameraInfo-Cd93-Mve.js (new) — 67.3 kB 🔴 +67.3 kB 🔴 +14.6 kB 🔴 +12.9 kB
assets/Preview3d-BGfdefmH.js (removed) 52.6 kB — 🟢 -52.6 kB 🟢 -8.6 kB 🟢 -7.51 kB
assets/Preview3d-C74beK2g.js (new) — 52.6 kB 🔴 +52.6 kB 🔴 +8.6 kB 🔴 +7.5 kB
assets/SubscriptionRequiredDialogContentUnified-jo-Au4G2.js (new) — 52.5 kB 🔴 +52.5 kB 🔴 +11 kB 🔴 +9.64 kB
assets/SubscriptionRequiredDialogContentUnified-CSGTm4rQ.js (removed) 52.5 kB — 🟢 -52.5 kB 🟢 -11 kB 🟢 -9.66 kB
assets/Viewport3d-Bi6AuMB1.js (removed) 48 kB — 🟢 -48 kB 🟢 -10.2 kB 🟢 -9.01 kB
assets/Viewport3d-DCx-SvMZ.js (new) — 48 kB 🔴 +48 kB 🔴 +10.2 kB 🔴 +9.01 kB
assets/LayerEditorContent-DXGP_wEq.js (removed) 45.4 kB — 🟢 -45.4 kB 🟢 -10.6 kB 🟢 -9.24 kB
assets/LayerEditorContent-ONLUJb0N.js (new) — 45.4 kB 🔴 +45.4 kB 🔴 +10.6 kB 🔴 +9.24 kB
assets/main-BkmMUbDl.js (new) — 44.4 kB 🔴 +44.4 kB 🔴 +13.3 kB 🔴 +11.5 kB
assets/main-BYfcP5u4.js (removed) 44.4 kB — 🟢 -44.4 kB 🟢 -13.3 kB 🟢 -11.5 kB
assets/WidgetBoundingBoxes-CKauf2Pj.js (new) — 33.8 kB 🔴 +33.8 kB 🔴 +9.18 kB 🔴 +8.13 kB
assets/WidgetBoundingBoxes-tnxkjKlP.js (removed) 33.8 kB — 🟢 -33.8 kB 🟢 -9.18 kB 🟢 -8.13 kB
assets/WidgetPainter-K7PlL_7Q.js (removed) 32.1 kB — 🟢 -32.1 kB 🟢 -7.89 kB 🟢 -6.96 kB
assets/WidgetPainter-SGzRdOsd.js (new) — 32.1 kB 🔴 +32.1 kB 🔴 +7.89 kB 🔴 +6.97 kB
assets/Load3dViewerContent-D8UuVWxY.js (new) — 30.6 kB 🔴 +30.6 kB 🔴 +6.21 kB 🔴 +5.38 kB
assets/Load3dViewerContent-DU0IBBUP.js (removed) 30.6 kB — 🟢 -30.6 kB 🟢 -6.21 kB 🟢 -5.38 kB
assets/HdrViewerContent-DVYHMIIx.js (removed) 29.8 kB — 🟢 -29.8 kB 🟢 -8.25 kB 🟢 -7.27 kB
assets/HdrViewerContent-l1glSGqR.js (new) — 29.8 kB 🔴 +29.8 kB 🔴 +8.25 kB 🔴 +7.28 kB
assets/SubscriptionRequiredDialogContent-BJcm4N_-.js (removed) 27.1 kB — 🟢 -27.1 kB 🟢 -6.4 kB 🟢 -5.63 kB
assets/SubscriptionRequiredDialogContent-C0P_wvwB.js (new) — 27.1 kB 🔴 +27.1 kB 🔴 +6.4 kB 🔴 +5.63 kB
assets/SubscriptionRequiredDialogContentWorkspace-BCx7Qqug.js (removed) 26.5 kB — 🟢 -26.5 kB 🟢 -6.08 kB 🟢 -5.36 kB
assets/SubscriptionRequiredDialogContentWorkspace-D4OkZadg.js (new) — 26.5 kB 🔴 +26.5 kB 🔴 +6.08 kB 🔴 +5.35 kB
assets/load3d-DJOwe5zf.js (new) — 22.2 kB 🔴 +22.2 kB 🔴 +5.43 kB 🔴 +4.7 kB
assets/load3d-VY5NPMY5.js (removed) 22.2 kB — 🟢 -22.2 kB 🟢 -5.43 kB 🟢 -4.7 kB
assets/SignInContent-B_jD2z9K.js (new) — 20.7 kB 🔴 +20.7 kB 🔴 +5.24 kB 🔴 +4.58 kB
assets/SignInContent-XXH7YOJs.js (removed) 20.7 kB — 🟢 -20.7 kB 🟢 -5.24 kB 🟢 -4.59 kB
assets/CurrentUserPopoverWorkspace-CElBMj7o.js (new) — 18.6 kB 🔴 +18.6 kB 🔴 +4.46 kB 🔴 +3.92 kB
assets/CurrentUserPopoverWorkspace-D36lZRZo.js (removed) 18.6 kB — 🟢 -18.6 kB 🟢 -4.46 kB 🟢 -3.92 kB
assets/i18n-BuARWR7H.js (removed) 17.1 kB — 🟢 -17.1 kB 🟢 -4.6 kB 🟢 -3.85 kB
assets/i18n-CyLaLfDV.js (new) — 17.1 kB 🔴 +17.1 kB 🔴 +4.6 kB 🔴 +3.85 kB
assets/WidgetRecordAudio-CEjxbhyZ.js (removed) 16.5 kB — 🟢 -16.5 kB 🟢 -4.59 kB 🟢 -4.09 kB
assets/WidgetRecordAudio-CHTYgXgV.js (new) — 16.5 kB 🔴 +16.5 kB 🔴 +4.59 kB 🔴 +4.1 kB
assets/WidgetInputNumber-DFD5xaSX.js (new) — 13.9 kB 🔴 +13.9 kB 🔴 +3.63 kB 🔴 +3.21 kB
assets/WidgetInputNumber-zavi5tBx.js (removed) 13.9 kB — 🟢 -13.9 kB 🟢 -3.63 kB 🟢 -3.21 kB
assets/WidgetRange-CS45vfkV.js (removed) 13.7 kB — 🟢 -13.7 kB 🟢 -3.55 kB 🟢 -3.13 kB
assets/WidgetRange-DXUb50aB.js (new) — 13.7 kB 🔴 +13.7 kB 🔴 +3.55 kB 🔴 +3.13 kB
assets/WaveAudioPlayer-BwFDHkrv.js (new) — 12.9 kB 🔴 +12.9 kB 🔴 +3.49 kB 🔴 +3.07 kB
assets/WaveAudioPlayer-Cz4o2FvF.js (removed) 12.9 kB — 🟢 -12.9 kB 🟢 -3.49 kB 🟢 -3.05 kB
assets/GlobalToast-Db-6cSgH.js (removed) 12.3 kB — 🟢 -12.3 kB 🟢 -4.06 kB 🟢 -3.53 kB
assets/GlobalToast-VYeFdABG.js (new) — 12.3 kB 🔴 +12.3 kB 🔴 +4.06 kB 🔴 +3.53 kB
assets/WidgetCurve-5dATZSpd.js (removed) 11.2 kB — 🟢 -11.2 kB 🟢 -3.48 kB 🟢 -3.16 kB
assets/WidgetCurve-B-_Cjy-n.js (new) — 11.2 kB 🔴 +11.2 kB 🔴 +3.48 kB 🔴 +3.16 kB
assets/AudioPreviewPlayer-CxRO_fdW.js (new) — 10.6 kB 🔴 +10.6 kB 🔴 +3.05 kB 🔴 +2.73 kB
assets/AudioPreviewPlayer-DwWEHQAA.js (removed) 10.6 kB — 🟢 -10.6 kB 🟢 -3.05 kB 🟢 -2.72 kB
assets/TeamWorkspacesDialogContent-B5_Ii80X.js (removed) 10.4 kB — 🟢 -10.4 kB 🟢 -2.99 kB 🟢 -2.65 kB
assets/TeamWorkspacesDialogContent-D23GK9AJ.js (new) — 10.4 kB 🔴 +10.4 kB 🔴 +2.99 kB 🔴 +2.65 kB
assets/onboardingCloudRoutes-DpBnFxuS.js (new) — 9.72 kB 🔴 +9.72 kB 🔴 +2.85 kB 🔴 +2.42 kB
assets/onboardingCloudRoutes-DTTXqj5n.js (removed) 9.72 kB — 🟢 -9.72 kB 🟢 -2.85 kB 🟢 -2.43 kB
assets/InviteMemberDialogContent-DLW1kS6k.js (new) — 9.65 kB 🔴 +9.65 kB 🔴 +2.86 kB 🔴 +2.56 kB
assets/InviteMemberDialogContent-DwEoHbhi.js (removed) 9.65 kB — 🟢 -9.65 kB 🟢 -2.87 kB 🟢 -2.56 kB
assets/Load3DConfiguration-CHZt2EiP.js (removed) 8.88 kB — 🟢 -8.88 kB 🟢 -2.59 kB 🟢 -2.28 kB
assets/Load3DConfiguration-YKKIvccV.js (new) — 8.88 kB 🔴 +8.88 kB 🔴 +2.59 kB 🔴 +2.29 kB
assets/nodeTemplates-Kfx9_F6L.js (removed) 8.67 kB — 🟢 -8.67 kB 🟢 -2.98 kB 🟢 -2.61 kB
assets/nodeTemplates-qclFIfPp.js (new) — 8.67 kB 🔴 +8.67 kB 🔴 +2.98 kB 🔴 +2.62 kB
assets/WidgetImageCrop-C2jywgD_.js (new) — 8.49 kB 🔴 +8.49 kB 🔴 +2.66 kB 🔴 +2.34 kB
assets/WidgetImageCrop-DkV5CnbX.js (removed) 8.49 kB — 🟢 -8.49 kB 🟢 -2.66 kB 🟢 -2.35 kB
assets/SetMemberCreditLimitDialogContent-Cw6dNYKP.js (removed) 8.47 kB — 🟢 -8.47 kB 🟢 -2.34 kB 🟢 -2.06 kB
assets/SetMemberCreditLimitDialogContent-Qr8yoFAH.js (new) — 8.47 kB 🔴 +8.47 kB 🔴 +2.34 kB 🔴 +2.06 kB
assets/CloudRunButtonWrapper-BP7Vazd0.js (removed) 8.15 kB — 🟢 -8.15 kB 🟢 -2.46 kB 🟢 -2.16 kB
assets/CloudRunButtonWrapper-Dsn1gee4.js (new) — 8.15 kB 🔴 +8.15 kB 🔴 +2.45 kB 🔴 +2.15 kB
assets/WorkspaceSwitcherPopover-7GWuknPE.js (removed) 8.08 kB — 🟢 -8.08 kB 🟢 -2.39 kB 🟢 -2.13 kB
assets/WorkspaceSwitcherPopover-D7VEGk-o.js (new) — 8.08 kB 🔴 +8.08 kB 🔴 +2.39 kB 🔴 +2.13 kB
assets/NightlySurveyController-bHGODPxE.js (new) — 7.5 kB 🔴 +7.5 kB 🔴 +2.56 kB 🔴 +2.25 kB
assets/NightlySurveyController-BNi1fQkl.js (removed) 7.5 kB — 🟢 -7.5 kB 🟢 -2.56 kB 🟢 -2.25 kB
assets/LayoutDefault-J7oTI84U.js (new) — 7.41 kB 🔴 +7.41 kB 🔴 +2.44 kB 🔴 +2.15 kB
assets/LayoutDefault-BzlkD688.js (removed) 7.41 kB — 🟢 -7.41 kB 🟢 -2.44 kB 🟢 -2.14 kB
assets/missingModelMetadata-DRc9pSyg.js (new) — 6.52 kB 🔴 +6.52 kB 🔴 +2.22 kB 🔴 +1.95 kB
assets/missingModelMetadata-jbxMKGOY.js (removed) 6.52 kB — 🟢 -6.52 kB 🟢 -2.22 kB 🟢 -1.95 kB
assets/WidgetWithControl-Cbb-tA5P.js (removed) 6.46 kB — 🟢 -6.46 kB 🟢 -2.65 kB 🟢 -2.34 kB
assets/WidgetWithControl-jpg2B-Dv.js (new) — 6.46 kB 🔴 +6.46 kB 🔴 +2.64 kB 🔴 +2.33 kB
assets/CancelSubscriptionDialogContent-DuK1ys0w.js (new) — 6.05 kB 🔴 +6.05 kB 🔴 +2.01 kB 🔴 +1.76 kB
assets/CancelSubscriptionDialogContent-DOpF6aSY.js (removed) 6.05 kB — 🟢 -6.05 kB 🟢 -2.01 kB 🟢 -1.76 kB
assets/main-CmyOsTU5.js (removed) 5.93 kB — 🟢 -5.93 kB 🟢 -1.92 kB 🟢 -1.59 kB
assets/main-DvlY6ui_.js (new) — 5.93 kB 🔴 +5.93 kB 🔴 +1.91 kB 🔴 +1.59 kB
assets/load3dPreviewExtensions-BJQxt__0.js (removed) 5.88 kB — 🟢 -5.88 kB 🟢 -1.81 kB 🟢 -1.61 kB
assets/load3dPreviewExtensions-D6tI9qpJ.js (new) — 5.88 kB 🔴 +5.88 kB 🔴 +1.81 kB 🔴 +1.6 kB
assets/ApiNodesSignInContent-DodtPWWs.js (new) — 5.68 kB 🔴 +5.68 kB 🔴 +2.02 kB 🔴 +1.79 kB
assets/ApiNodesSignInContent-DQ4gfTTv.js (removed) 5.68 kB — 🟢 -5.68 kB 🟢 -2.02 kB 🟢 -1.8 kB
assets/launchCancellationFlow-B2hnYgts.js (new) — 5.18 kB 🔴 +5.18 kB 🔴 +1.78 kB 🔴 +1.56 kB
assets/launchCancellationFlow-ByajSjKL.js (removed) 5.18 kB — 🟢 -5.18 kB 🟢 -1.78 kB 🟢 -1.56 kB
assets/CreateWorkspaceDialogContent-BWKtwjpD.js (new) — 5.12 kB 🔴 +5.12 kB 🔴 +1.8 kB 🔴 +1.55 kB
assets/CreateWorkspaceDialogContent-ClgwqKXX.js (removed) 5.12 kB — 🟢 -5.12 kB 🟢 -1.8 kB 🟢 -1.55 kB
assets/ChangeMemberRoleDialogContent-CM4EUXZq.js (removed) 4.97 kB — 🟢 -4.97 kB 🟢 -1.64 kB 🟢 -1.43 kB
assets/ChangeMemberRoleDialogContent-CYUweJy4.js (new) — 4.97 kB 🔴 +4.97 kB 🔴 +1.64 kB 🔴 +1.44 kB
assets/EditWorkspaceDialogContent-2qhonykp.js (new) — 4.93 kB 🔴 +4.93 kB 🔴 +1.76 kB 🔴 +1.53 kB
assets/EditWorkspaceDialogContent-CgNnsIcb.js (removed) 4.93 kB — 🟢 -4.93 kB 🟢 -1.76 kB 🟢 -1.53 kB
assets/WidgetTextarea-DNbgwCRE.js (new) — 4.83 kB 🔴 +4.83 kB 🔴 +1.88 kB 🔴 +1.64 kB
assets/WidgetTextarea-otCo-sEx.js (removed) 4.83 kB — 🟢 -4.83 kB 🟢 -1.88 kB 🟢 -1.64 kB
assets/saveMesh-CSQUBRYK.js (removed) 4.72 kB — 🟢 -4.72 kB 🟢 -1.51 kB 🟢 -1.33 kB
assets/saveMesh-DL8CA7oL.js (new) — 4.72 kB 🔴 +4.72 kB 🔴 +1.51 kB 🔴 +1.33 kB
assets/ValueControlPopover-AwMeAUqm.js (new) — 4.49 kB 🔴 +4.49 kB 🔴 +1.55 kB 🔴 +1.38 kB
assets/ValueControlPopover-P9Sylf88.js (removed) 4.49 kB — 🟢 -4.49 kB 🟢 -1.55 kB 🟢 -1.39 kB
assets/DeleteWorkspaceDialogContent-Cj-QFzkz.js (removed) 3.84 kB — 🟢 -3.84 kB 🟢 -1.44 kB 🟢 -1.24 kB
assets/DeleteWorkspaceDialogContent-DvQ-dkXS.js (new) — 3.84 kB 🔴 +3.84 kB 🔴 +1.44 kB 🔴 +1.24 kB
assets/RemoveMemberDialogContent-DOCS-fbX.js (removed) 3.76 kB — 🟢 -3.76 kB 🟢 -1.39 kB 🟢 -1.2 kB
assets/RemoveMemberDialogContent-DOL704qr.js (new) — 3.76 kB 🔴 +3.76 kB 🔴 +1.38 kB 🔴 +1.2 kB
assets/RevokeInviteDialogContent-SYKMwyTt.js (new) — 3.67 kB 🔴 +3.67 kB 🔴 +1.39 kB 🔴 +1.21 kB
assets/RevokeInviteDialogContent-UqnbQ3zE.js (removed) 3.67 kB — 🟢 -3.67 kB 🟢 -1.39 kB 🟢 -1.21 kB
assets/LeaveWorkspaceDialogContent-BPr6f3YH.js (new) — 3.67 kB 🔴 +3.67 kB 🔴 +1.38 kB 🔴 +1.2 kB
assets/LeaveWorkspaceDialogContent-CPi2Ccwr.js (removed) 3.67 kB — 🟢 -3.67 kB 🟢 -1.39 kB 🟢 -1.19 kB
assets/InviteMemberUpsellDialogContent-CCt94xH-.js (new) — 3.47 kB 🔴 +3.47 kB 🔴 +1.24 kB 🔴 +1.09 kB
assets/InviteMemberUpsellDialogContent-GIWKkW1L.js (removed) 3.47 kB — 🟢 -3.47 kB 🟢 -1.24 kB 🟢 -1.09 kB
assets/SubscribeToRun-C3QK7CVr.js (new) — 3.34 kB 🔴 +3.34 kB 🔴 +1.42 kB 🔴 +1.21 kB
assets/SubscribeToRun-DV7WpkFJ.js (removed) 3.34 kB — 🟢 -3.34 kB 🟢 -1.42 kB 🟢 -1.21 kB
assets/Media3DTop-AXC0oejn.js (new) — 3.21 kB 🔴 +3.21 kB 🔴 +1.27 kB 🔴 +1.1 kB
assets/Media3DTop-DrENDQdq.js (removed) 3.21 kB — 🟢 -3.21 kB 🟢 -1.27 kB 🟢 -1.1 kB
assets/signInSchema-BgSbWTnc.js (removed) 2.85 kB — 🟢 -2.85 kB 🟢 -1.02 kB 🟢 -862 B
assets/signInSchema-SQ6ZJ02T.js (new) — 2.85 kB 🔴 +2.85 kB 🔴 +1.02 kB 🔴 +865 B
assets/load3dAdvanced-DE66thYA.js (removed) 2.82 kB — 🟢 -2.82 kB 🟢 -1.1 kB 🟢 -954 B
assets/load3dAdvanced-E1-MxwzI.js (new) — 2.82 kB 🔴 +2.82 kB 🔴 +1.1 kB 🔴 +951 B
assets/LocalRunButtonWrapper-B5CkLjs2.js (removed) 2.49 kB — 🟢 -2.49 kB 🟢 -1.14 kB 🟢 -1 kB
assets/LocalRunButtonWrapper-Dm68hhMy.js (new) — 2.49 kB 🔴 +2.49 kB 🔴 +1.14 kB 🔴 +998 B
assets/inviteLinks-BpIRWeeX.js (removed) 1.83 kB — 🟢 -1.83 kB 🟢 -1.03 kB 🟢 -799 B
assets/inviteLinks-ynSjysQ9.js (new) — 1.83 kB 🔴 +1.83 kB 🔴 +1.03 kB 🔴 +801 B
assets/MediaAudioTop-BCy2y8TF.js (removed) 1.62 kB — 🟢 -1.62 kB 🟢 -809 B 🟢 -670 B
assets/MediaAudioTop-DKQFamJt.js (new) — 1.62 kB 🔴 +1.62 kB 🔴 +808 B 🔴 +670 B
assets/paymentReturnUrl-CIzud_V0.js (removed) 1.58 kB — 🟢 -1.58 kB 🟢 -784 B 🟢 -622 B
assets/paymentReturnUrl-CVB6d26m.js (new) — 1.58 kB 🔴 +1.58 kB 🔴 +785 B 🔴 +623 B
assets/cameraInfo-BObg7vCC.js (new) — 1.1 kB 🔴 +1.1 kB 🔴 +573 B 🔴 +491 B
assets/cameraInfo-DVPfKz5E.js (removed) 1.1 kB — 🟢 -1.1 kB 🟢 -573 B 🟢 -522 B
assets/Load3DAdvanced-B0kAILRY.js (removed) 761 B — 🟢 -761 B 🟢 -423 B 🟢 -359 B
assets/Load3DAdvanced-Biv6WSvJ.js (new) — 761 B 🔴 +761 B 🔴 +422 B 🔴 +362 B
assets/nightlyBadges-BaUulsqe.js (removed) 411 B — 🟢 -411 B 🟢 -274 B 🟢 -230 B
assets/nightlyBadges-C_MPRjTu.js (new) — 411 B 🔴 +411 B 🔴 +272 B 🔴 +264 B
assets/Load3dViewerContent-CA6Iv-5A.js (removed) 137 B — 🟢 -137 B 🟢 -103 B 🟢 -92 B
assets/Load3dViewerContent-DGkBGc9z.js (new) — 137 B 🔴 +137 B 🔴 +103 B 🔴 +92 B
assets/missingModelMetadata-B4x938Le.js (new) — 125 B 🔴 +125 B 🔴 +103 B 🔴 +103 B
assets/missingModelMetadata-BRTU9L4_.js (removed) 125 B — 🟢 -125 B 🟢 -103 B 🟢 -109 B
assets/Load3DAdvanced-Bg4qa3HO.js (new) — 122 B 🔴 +122 B 🔴 +97 B 🔴 +92 B
assets/Load3DAdvanced-Dh7lvZcN.js (removed) 122 B — 🟢 -122 B 🟢 -97 B 🟢 -88 B
assets/LayoutDefault-BYResYgv.js (removed) 119 B — 🟢 -119 B 🟢 -92 B 🟢 -83 B
assets/LayoutDefault-CCSL1zv0.js (new) — 119 B 🔴 +119 B 🔴 +92 B 🔴 +91 B
assets/WidgetLegacy-BRgI2S7L.js (new) — 117 B 🔴 +117 B 🔴 +106 B 🔴 +102 B
assets/WidgetLegacy-JWjUqjZT.js (removed) 117 B — 🟢 -117 B 🟢 -106 B 🟢 -106 B
assets/workflowDraftStoreV2-C_QNRzg2.js (new) — 112 B 🔴 +112 B 🔴 +101 B 🔴 +108 B
assets/workflowDraftStoreV2-DD4YynYv.js (removed) 112 B — 🟢 -112 B 🟢 -101 B 🟢 -109 B
assets/CameraInfo-BX1qrO6Y.js (removed) 110 B — 🟢 -110 B 🟢 -93 B 🟢 -91 B
assets/CameraInfo-DpKBEKyB.js (new) — 110 B 🔴 +110 B 🔴 +93 B 🔴 +92 B
assets/Load3D-CRdjpnc4.js (new) — 98 B 🔴 +98 B 🔴 +89 B 🔴 +83 B
assets/Load3D-D5K-k29t.js (removed) 98 B — 🟢 -98 B 🟢 -89 B 🟢 -83 B
assets/i18n-CKIuSlYC.js (new) — 97 B 🔴 +97 B 🔴 +92 B 🔴 +85 B
assets/i18n-D9etGlPT.js (removed) 97 B — 🟢 -97 B 🟢 -92 B 🟢 -101 B
assets/changeTracker-DI5PIvjX.js (removed) 92 B — 🟢 -92 B 🟢 -94 B 🟢 -87 B
assets/changeTracker-Dx68KhJt.js (new) — 92 B 🔴 +92 B 🔴 +94 B 🔴 +89 B

Status: 80 added / 80 removed / 217 unchanged

⚡ Performance Report

canvas-idle: · 60.0 avg FPS · 59.5 P5 FPS ✅ (target: ≥52) · 0ms TBT · 72.8 MB heap
canvas-mouse-sweep: · 60.0 avg FPS · 59.9 P5 FPS ✅ (target: ≥52) · 0ms TBT · 66.2 MB heap
canvas-zoom-sweep: · 60.0 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 0ms TBT · 60.9 MB heap
dom-widget-clipping: · 60.0 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 0ms TBT · 76.8 MB heap
large-graph-idle: · 60.0 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 0ms TBT · 79.6 MB heap
large-graph-pan: · 60.0 avg FPS · 59.9 P5 FPS ✅ (target: ≥52) · 0ms TBT · 76.2 MB heap
large-graph-zoom: · 60.0 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 0ms TBT · 65.0 MB heap
legacy-node-drag: · 60.0 avg FPS · 59.5 P5 FPS ✅ (target: ≥52) · 0ms TBT · 82.9 MB heap
minimap-idle: · 60.0 avg FPS · 59.5 P5 FPS ✅ (target: ≥52) · 0ms TBT · 80.2 MB heap
subgraph-dom-widget-clipping: · 60.0 avg FPS · 59.5 P5 FPS ✅ (target: ≥52) · 0ms TBT · 74.0 MB heap
subgraph-idle: · 60.0 avg FPS · 59.9 P5 FPS ✅ (target: ≥52) · 0ms TBT · 65.8 MB heap
subgraph-mouse-sweep: · 60.0 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 0ms TBT · 67.0 MB heap
subgraph-transition-enter: · 60.0 avg FPS · 59.9 P5 FPS ✅ (target: ≥52) · 143ms TBT · 77.0 MB heap
viewport-pan-sweep: · 60.0 avg FPS · 59.9 P5 FPS ✅ (target: ≥52) · 0ms TBT · 78.4 MB heap
vue-large-graph-idle: · 57.1 avg FPS · 59.5 P5 FPS ✅ (target: ≥52) · 0ms TBT · 167.8 MB heap
vue-large-graph-pan: · 56.2 avg FPS · 59.5 P5 FPS ✅ (target: ≥52) · 31ms TBT · 165.7 MB heap
vue-node-resize-workload: · 56.3 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 457ms TBT · 170.3 MB heap
vue-zoom-out-idle: · 56.3 avg FPS · 59.5 P5 FPS ✅ (target: ≥52) · 0ms TBT · 178.2 MB heap
workflow-execution: · 60.0 avg FPS · 59.9 P5 FPS ✅ (target: ≥52) · 0ms TBT · 62.3 MB heap

⚠️ 8 regressions detected

Show regressions
Metric Baseline PR (median) Δ Sig
canvas-idle: p95 frame time 17ms 17ms +1% ⚠️ z=2.2
canvas-idle: heap used 61.7 MB 72.8 MB +18% ⚠️ z=2.4
canvas-idle: DOM nodes -260 -124 -52% ⚠️ z=2.1
canvas-idle: event listeners -152 -74 -51% ⚠️ z=2.6
legacy-node-drag: p95 frame time 17ms 17ms +1% ⚠️ z=2.9
minimap-idle: p95 frame time 17ms 17ms +1% ⚠️ z=2.5
minimap-idle: event listeners -182 -154 -15% ⚠️ z=2.4
vue-node-resize-workload: event listeners -14926 -14921 -0% ⚠️ z=2.0
All metrics
Metric Baseline PR (median) Δ Sig
canvas-idle: avg frame time 17ms 17ms +0% z=0.3
canvas-idle: p95 frame time 17ms 17ms +1% ⚠️ z=2.2
canvas-idle: layout duration 0ms 0ms +0% —
canvas-idle: style recalc duration 5ms 7ms +50% z=0.2
canvas-idle: layout count 0 0 +0% —
canvas-idle: style recalc count 9 8 -11% z=-0.6
canvas-idle: task duration 334ms 457ms +37% z=0.5
canvas-idle: script duration 7ms 8ms +11% z=-0.7
canvas-idle: TBT 0ms 0ms +0% —
canvas-idle: heap used 61.7 MB 72.8 MB +18% ⚠️ z=2.4
canvas-idle: DOM nodes -260 -124 -52% ⚠️ z=2.1
canvas-idle: event listeners -152 -74 -51% ⚠️ z=2.6
canvas-mouse-sweep: avg frame time 17ms 17ms +0% z=-0.7
canvas-mouse-sweep: p95 frame time 17ms 17ms -1% z=-1.5
canvas-mouse-sweep: layout duration 3ms 4ms +55% z=-0.1
canvas-mouse-sweep: style recalc duration 17ms 29ms +67% z=0.1
canvas-mouse-sweep: layout count 14 14 +0% —
canvas-mouse-sweep: style recalc count 73 76 +4% z=0.2
canvas-mouse-sweep: task duration 570ms 828ms +45% z=0.2
canvas-mouse-sweep: script duration 95ms 162ms +70% z=0.5
canvas-mouse-sweep: TBT 0ms 0ms +0% —
canvas-mouse-sweep: heap used 67.6 MB 66.2 MB -2% z=0.7
canvas-mouse-sweep: DOM nodes -260 -260 +0% z=-0.3
canvas-mouse-sweep: event listeners -154 -155 +1% z=0.2
canvas-zoom-sweep: avg frame time 17ms 17ms -0% z=-1.0
canvas-zoom-sweep: p95 frame time 17ms 17ms -0% z=-0.2
canvas-zoom-sweep: layout duration 1ms 1ms +2% z=-0.0
canvas-zoom-sweep: style recalc duration 11ms 16ms +41% z=0.3
canvas-zoom-sweep: layout count 6 6 +0% —
canvas-zoom-sweep: style recalc count 31 31 +0% z=0.0
canvas-zoom-sweep: task duration 235ms 329ms +40% z=0.2
canvas-zoom-sweep: script duration 8ms 11ms +27% z=-0.5
canvas-zoom-sweep: TBT 0ms 0ms +0% —
canvas-zoom-sweep: heap used 61.7 MB 60.9 MB -1% z=-2.1
canvas-zoom-sweep: DOM nodes 77 75 -3% z=-0.9
canvas-zoom-sweep: event listeners 19 19 +0% z=-0.5
dom-widget-clipping: avg frame time 17ms 17ms -0% z=-0.9
dom-widget-clipping: p95 frame time 17ms 17ms +0% z=0.0
dom-widget-clipping: layout duration 0ms 0ms +0% —
dom-widget-clipping: style recalc duration 5ms 8ms +87% z=0.9
dom-widget-clipping: layout count 0 0 +0% —
dom-widget-clipping: style recalc count 11 12 +5% z=1.3
dom-widget-clipping: task duration 299ms 436ms +46% z=0.4
dom-widget-clipping: script duration 105ms 163ms +56% z=0.6
dom-widget-clipping: TBT 0ms 0ms +0% variance too high
dom-widget-clipping: heap used 76.7 MB 76.8 MB +0% z=1.3
dom-widget-clipping: DOM nodes 18 19 +6% z=1.4
dom-widget-clipping: event listeners 2 2 +0% z=1.4
large-graph-idle: avg frame time 17ms 17ms -0% z=-0.5
large-graph-idle: p95 frame time 17ms 17ms +0% z=0.2
large-graph-idle: layout duration 0ms 0ms +0% —
large-graph-idle: style recalc duration 5ms 6ms +28% z=0.0
large-graph-idle: layout count 0 0 +0% —
large-graph-idle: style recalc count 8 7 -19% z=0.0
large-graph-idle: task duration 443ms 557ms +26% z=0.1
large-graph-idle: script duration 28ms 33ms +19% z=-0.1
large-graph-idle: TBT 0ms 0ms +0% —
large-graph-idle: heap used 72.4 MB 79.6 MB +10% z=1.3
large-graph-idle: DOM nodes -257 -245 -5% z=1.8
large-graph-idle: event listeners -180 -153 -15% z=1.4
large-graph-pan: avg frame time 17ms 17ms +0% z=0.9
large-graph-pan: p95 frame time 17ms 17ms -1% z=-1.4
large-graph-pan: layout duration 0ms 0ms +0% —
large-graph-pan: style recalc duration 12ms 11ms -15% z=-0.6
large-graph-pan: layout count 0 0 +0% —
large-graph-pan: style recalc count 68 66 -4% z=-0.5
large-graph-pan: task duration 1090ms 1532ms +41% z=0.2
large-graph-pan: script duration 559ms 838ms +50% z=0.6
large-graph-pan: TBT 0ms 0ms +0% —
large-graph-pan: heap used 71.8 MB 76.2 MB +6% z=0.5
large-graph-pan: DOM nodes -251 -251 +0% z=-0.9
large-graph-pan: event listeners -182 -167 -8% z=-1.3
large-graph-zoom: avg frame time 17ms 17ms +0% z=1.0
large-graph-zoom: p95 frame time 17ms 17ms +0% z=0.4
large-graph-zoom: layout duration 12ms 13ms +6% z=-0.3
large-graph-zoom: style recalc duration 13ms 13ms +4% z=0.5
large-graph-zoom: layout count 60 60 +0% —
large-graph-zoom: style recalc count 66 63 -5% z=0.2
large-graph-zoom: task duration 1254ms 1773ms +41% z=0.8
large-graph-zoom: script duration 524ms 812ms +55% z=0.7
large-graph-zoom: TBT 0ms 0ms +0% —
large-graph-zoom: heap used 68.7 MB 65.0 MB -6% z=-2.1
large-graph-zoom: DOM nodes -259 -247 -5% z=-1.6
large-graph-zoom: event listeners -186 -183 -2% z=-1.7
legacy-node-drag: avg frame time 17ms 17ms +0% z=2.0
legacy-node-drag: p95 frame time 17ms 17ms +1% ⚠️ z=2.9
legacy-node-drag: layout duration 0ms 0ms +0% —
legacy-node-drag: style recalc duration 7ms 6ms -16% z=-1.0
legacy-node-drag: layout count 0 0 +0% —
legacy-node-drag: style recalc count 47 41 -13% z=-0.8
legacy-node-drag: task duration 1231ms 1889ms +54% z=0.4
legacy-node-drag: script duration 588ms 961ms +64% z=0.4
legacy-node-drag: TBT 0ms 0ms +0% variance too high
legacy-node-drag: heap used 95.8 MB 82.9 MB -13% z=0.2
legacy-node-drag: DOM nodes 14 -129 -1021% z=-1.9
legacy-node-drag: event listeners 184 94 -49% z=-1.7
minimap-idle: avg frame time 17ms 17ms +0% z=-0.6
minimap-idle: p95 frame time 17ms 17ms +1% ⚠️ z=2.5
minimap-idle: layout duration 0ms 0ms +0% —
minimap-idle: style recalc duration 4ms 4ms +4% z=-1.9
minimap-idle: layout count 0 0 +0% —
minimap-idle: style recalc count 7 5 -36% z=-1.4
minimap-idle: task duration 406ms 537ms +32% z=-0.0
minimap-idle: script duration 28ms 32ms +17% z=-0.3
minimap-idle: TBT 0ms 0ms +0% —
minimap-idle: heap used 73.0 MB 80.2 MB +10% z=1.9
minimap-idle: DOM nodes -257 -252 -2% z=1.0
minimap-idle: event listeners -182 -154 -15% ⚠️ z=2.4
subgraph-dom-widget-clipping: avg frame time 17ms 17ms -0% z=0.6
subgraph-dom-widget-clipping: p95 frame time 17ms 17ms -0% z=1.9
subgraph-dom-widget-clipping: layout duration 0ms 0ms +0% —
subgraph-dom-widget-clipping: style recalc duration 7ms 10ms +43% z=0.2
subgraph-dom-widget-clipping: layout count 0 0 +0% —
subgraph-dom-widget-clipping: style recalc count 48 47 -2% z=0.2
subgraph-dom-widget-clipping: task duration 273ms 396ms +45% z=0.5
subgraph-dom-widget-clipping: script duration 92ms 144ms +56% z=0.7
subgraph-dom-widget-clipping: TBT 0ms 0ms +0% —
subgraph-dom-widget-clipping: heap used 73.7 MB 74.0 MB +0% z=1.6
subgraph-dom-widget-clipping: DOM nodes 21 20 -5% z=0.2
subgraph-dom-widget-clipping: event listeners 6 8 +33% z=1.3
subgraph-idle: avg frame time 17ms 17ms -0% z=-2.3
subgraph-idle: p95 frame time 17ms 17ms +0% z=-1.1
subgraph-idle: layout duration 0ms 0ms +0% —
subgraph-idle: style recalc duration 6ms 8ms +38% z=-0.1
subgraph-idle: layout count 0 0 +0% —
subgraph-idle: style recalc count 10 10 -5% z=-0.2
subgraph-idle: task duration 349ms 390ms +12% z=-0.7
subgraph-idle: script duration 6ms 7ms +20% z=-0.8
subgraph-idle: TBT 0ms 0ms +0% —
subgraph-idle: heap used 58.7 MB 65.8 MB +12% z=0.9
subgraph-idle: DOM nodes -272 -276 +1% z=-0.5
subgraph-idle: event listeners -230 -215 -7% z=-0.4
subgraph-mouse-sweep: avg frame time 17ms 17ms +0% z=0.8
subgraph-mouse-sweep: p95 frame time 17ms 17ms -0% z=-0.1
subgraph-mouse-sweep: layout duration 4ms 5ms +32% z=0.0
subgraph-mouse-sweep: style recalc duration 18ms 27ms +45% z=0.2
subgraph-mouse-sweep: layout count 18 18 +0% —
subgraph-mouse-sweep: style recalc count 80 78 -3% z=-0.1
subgraph-mouse-sweep: task duration 564ms 732ms +30% z=-0.0
subgraph-mouse-sweep: script duration 70ms 108ms +54% z=0.5
subgraph-mouse-sweep: TBT 0ms 0ms +0% —
subgraph-mouse-sweep: heap used 53.7 MB 67.0 MB +25% z=0.9
subgraph-mouse-sweep: DOM nodes -274 -277 +1% z=-0.3
subgraph-mouse-sweep: event listeners -230 -216 -6% z=-0.2
subgraph-transition-enter: avg frame time 17ms 17ms +0% z=-1.4
subgraph-transition-enter: p95 frame time 17ms 17ms +0% z=-0.7
subgraph-transition-enter: layout duration 8ms 13ms +72% z=0.8
subgraph-transition-enter: style recalc duration 19ms 29ms +47% z=0.6
subgraph-transition-enter: layout count 5 5 +0% —
subgraph-transition-enter: style recalc count 18 17 -6% z=-0.4
subgraph-transition-enter: task duration 602ms 689ms +14% z=-1.0
subgraph-transition-enter: script duration 28ms 28ms -2% z=-0.0
subgraph-transition-enter: TBT 87ms 143ms +64% z=0.7
subgraph-transition-enter: heap used 91.4 MB 77.0 MB -16% z=-2.4
subgraph-transition-enter: DOM nodes 13587 13587 +0% —
subgraph-transition-enter: event listeners 2385 2385 +0% z=-1.0
viewport-pan-sweep: avg frame time 17ms 17ms -0% z=-3.1
viewport-pan-sweep: p95 frame time 17ms 17ms +0% z=-1.6
viewport-pan-sweep: layout duration 0ms 0ms +0% —
viewport-pan-sweep: style recalc duration 28ms 35ms +24% z=-0.3
viewport-pan-sweep: layout count 0 0 +0% —
viewport-pan-sweep: style recalc count 249 248 -1% z=-0.5
viewport-pan-sweep: task duration 4009ms 5419ms +35% z=0.1
viewport-pan-sweep: script duration 1833ms 2774ms +51% z=0.6
viewport-pan-sweep: TBT 0ms 0ms +0% —
viewport-pan-sweep: heap used 63.8 MB 78.4 MB +23% z=0.9
viewport-pan-sweep: DOM nodes -242 -256 +6% z=-1.2
viewport-pan-sweep: event listeners -136 -153 +13% z=-0.6
vue-large-graph-idle: avg frame time 17ms 18ms +5% z=-0.1
vue-large-graph-idle: p95 frame time 17ms 17ms +1% z=1.5
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 9916ms 16397ms +65% z=0.6
vue-large-graph-idle: script duration 137ms 274ms +100% z=0.6
vue-large-graph-idle: TBT 0ms 0ms +0% variance too high
vue-large-graph-idle: heap used 186.4 MB 167.8 MB -10% z=-0.6
vue-large-graph-idle: DOM nodes -8062 -8061 -0% z=0.5
vue-large-graph-idle: event listeners -14928 -14926 -0% z=0.7
vue-large-graph-pan: avg frame time 17ms 18ms +3% z=0.5
vue-large-graph-pan: p95 frame time 17ms 17ms -0% z=1.3
vue-large-graph-pan: layout duration 0ms 0ms +0% —
vue-large-graph-pan: style recalc duration 14ms 17ms +23% z=-0.0
vue-large-graph-pan: layout count 0 0 +0% —
vue-large-graph-pan: style recalc count 67 165 +146% z=1.0
vue-large-graph-pan: task duration 12809ms 20067ms +57% z=0.6
vue-large-graph-pan: script duration 675ms 896ms +33% z=0.6
vue-large-graph-pan: TBT 47ms 31ms -35% variance too high
vue-large-graph-pan: heap used 157.9 MB 165.7 MB +5% z=-1.6
vue-large-graph-pan: DOM nodes -8062 -8061 -0% z=0.5
vue-large-graph-pan: event listeners -14926 -14920 -0% z=1.1
vue-node-resize-workload: avg frame time 17ms 18ms +7% z=0.6
vue-node-resize-workload: p95 frame time 17ms 17ms +0% z=-0.7
vue-node-resize-workload: layout duration 21ms 24ms +14% z=-0.2
vue-node-resize-workload: style recalc duration 52ms 79ms +52% z=0.5
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 3760ms 6043ms +61% z=0.6
vue-node-resize-workload: script duration 64ms 106ms +67% z=0.3
vue-node-resize-workload: TBT 0ms 457ms — variance too high
vue-node-resize-workload: heap used 183.3 MB 170.3 MB -7% z=-0.7
vue-node-resize-workload: DOM nodes -8062 -8061 -0% z=1.5
vue-node-resize-workload: event listeners -14926 -14921 -0% ⚠️ z=2.0
vue-zoom-out-idle: avg frame time 17ms 18ms +3% z=0.8
vue-zoom-out-idle: p95 frame time 17ms 17ms +0% z=1.0
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 5267ms 8194ms +56% z=0.5
vue-zoom-out-idle: script duration 73ms 131ms +80% z=0.3
vue-zoom-out-idle: TBT 0ms 0ms +0% —
vue-zoom-out-idle: heap used 168.4 MB 178.2 MB +6% z=1.1
vue-zoom-out-idle: DOM nodes 0 -1 — z=-1.7
vue-zoom-out-idle: event listeners -10 -12 +20% z=-0.3
workflow-execution: avg frame time 17ms 17ms -0% z=-1.3
workflow-execution: p95 frame time 17ms 17ms +0% z=-1.2
workflow-execution: layout duration 2ms 2ms +7% z=-0.1
workflow-execution: style recalc duration 11ms 18ms +62% z=-0.3
workflow-execution: layout count 3 4 +17% z=-0.2
workflow-execution: style recalc count 7 9 +29% z=-1.2
workflow-execution: task duration 65ms 89ms +38% z=-0.6
workflow-execution: script duration 7ms 9ms +23% z=-0.6
workflow-execution: TBT 0ms 0ms +0% —
workflow-execution: heap used 62.2 MB 62.3 MB +0% z=-1.7
workflow-execution: DOM nodes 122 120 -2% z=-1.2
workflow-execution: event listeners 33 26 -21% z=-1.8
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 18.8%
canvas-idle: layout count 0 0 0.0%
canvas-idle: style recalc count 8 1 9.1%
canvas-idle: task duration 419ms 70ms 16.7%
canvas-idle: script duration 9ms 2ms 19.9%
canvas-idle: TBT 0ms 0ms 0.0%
canvas-idle: heap used 63.6 MB 3.8 MB 6.0%
canvas-idle: DOM nodes -225 48 0.0%
canvas-idle: event listeners -136 24 0.0%
canvas-mouse-sweep: avg frame time 17ms 0ms 0.0%
canvas-mouse-sweep: p95 frame time 17ms 0ms 0.2%
canvas-mouse-sweep: layout duration 4ms 1ms 17.5%
canvas-mouse-sweep: style recalc duration 28ms 6ms 22.7%
canvas-mouse-sweep: layout count 14 0 0.0%
canvas-mouse-sweep: style recalc count 76 2 2.7%
canvas-mouse-sweep: task duration 804ms 134ms 16.7%
canvas-mouse-sweep: script duration 148ms 29ms 19.8%
canvas-mouse-sweep: TBT 0ms 0ms 0.0%
canvas-mouse-sweep: heap used 63.2 MB 4.5 MB 7.1%
canvas-mouse-sweep: DOM nodes -248 36 0.0%
canvas-mouse-sweep: event listeners -159 23 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 10.6%
canvas-zoom-sweep: style recalc duration 15ms 3ms 17.0%
canvas-zoom-sweep: layout count 6 0 0.0%
canvas-zoom-sweep: style recalc count 31 0 1.3%
canvas-zoom-sweep: task duration 320ms 51ms 16.0%
canvas-zoom-sweep: script duration 12ms 2ms 17.0%
canvas-zoom-sweep: TBT 0ms 0ms 0.0%
canvas-zoom-sweep: heap used 61.7 MB 402.8 KB 0.6%
canvas-zoom-sweep: DOM nodes 76 1 0.8%
canvas-zoom-sweep: event listeners 19 1 3.2%
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 7ms 1ms 17.8%
dom-widget-clipping: layout count 0 0 0.0%
dom-widget-clipping: style recalc count 11 0 4.0%
dom-widget-clipping: task duration 409ms 61ms 15.0%
dom-widget-clipping: script duration 148ms 25ms 16.7%
dom-widget-clipping: TBT 1ms 2ms 387.3%
dom-widget-clipping: heap used 76.5 MB 287.0 KB 0.4%
dom-widget-clipping: DOM nodes 18 1 4.6%
dom-widget-clipping: event listeners 2 0 20.9%
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 15.6%
large-graph-idle: layout count 0 0 0.0%
large-graph-idle: style recalc count 6 1 21.1%
large-graph-idle: task duration 553ms 77ms 13.9%
large-graph-idle: script duration 34ms 4ms 13.2%
large-graph-idle: TBT 0ms 0ms 0.0%
large-graph-idle: heap used 76.1 MB 2.8 MB 3.6%
large-graph-idle: DOM nodes -252 4 0.0%
large-graph-idle: event listeners -169 12 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 11ms 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 1486ms 226ms 15.2%
large-graph-pan: script duration 756ms 129ms 17.1%
large-graph-pan: TBT 0ms 0ms 0.0%
large-graph-pan: heap used 74.3 MB 3.9 MB 5.3%
large-graph-pan: DOM nodes -195 59 0.0%
large-graph-pan: event listeners -108 47 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 13ms 2ms 12.2%
large-graph-zoom: style recalc duration 12ms 2ms 12.4%
large-graph-zoom: layout count 60 0 0.0%
large-graph-zoom: style recalc count 63 2 3.1%
large-graph-zoom: task duration 1587ms 241ms 15.2%
large-graph-zoom: script duration 726ms 127ms 17.5%
large-graph-zoom: TBT 0ms 0ms 0.0%
large-graph-zoom: heap used 74.5 MB 4.6 MB 6.2%
large-graph-zoom: DOM nodes -120 79 0.0%
large-graph-zoom: event listeners -77 63 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 17.6%
legacy-node-drag: layout count 0 0 0.0%
legacy-node-drag: style recalc count 43 2 4.6%
legacy-node-drag: task duration 1764ms 304ms 17.2%
legacy-node-drag: script duration 893ms 165ms 18.5%
legacy-node-drag: TBT 0ms 1ms 363.6%
legacy-node-drag: heap used 82.1 MB 4.9 MB 6.0%
legacy-node-drag: DOM nodes -28 54 0.0%
legacy-node-drag: event listeners 162 39 24.1%
minimap-idle: avg frame time 17ms 0ms 0.0%
minimap-idle: p95 frame time 17ms 0ms 0.1%
minimap-idle: layout duration 0ms 0ms 0.0%
minimap-idle: style recalc duration 5ms 1ms 11.5%
minimap-idle: layout count 0 0 0.0%
minimap-idle: style recalc count 6 1 19.7%
minimap-idle: task duration 541ms 83ms 15.3%
minimap-idle: script duration 34ms 4ms 13.3%
minimap-idle: TBT 0ms 0ms 0.0%
minimap-idle: heap used 76.5 MB 1.9 MB 2.5%
minimap-idle: DOM nodes -255 3 0.0%
minimap-idle: event listeners -168 6 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 2ms 16.6%
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 368ms 57ms 15.5%
subgraph-dom-widget-clipping: script duration 129ms 22ms 16.9%
subgraph-dom-widget-clipping: TBT 0ms 0ms 0.0%
subgraph-dom-widget-clipping: heap used 73.7 MB 158.6 KB 0.2%
subgraph-dom-widget-clipping: DOM nodes 20 1 5.2%
subgraph-dom-widget-clipping: event listeners 7 1 8.7%
subgraph-idle: avg frame time 17ms 0ms 0.0%
subgraph-idle: p95 frame time 17ms 0ms 0.2%
subgraph-idle: layout duration 0ms 0ms 0.0%
subgraph-idle: style recalc duration 8ms 1ms 17.8%
subgraph-idle: layout count 0 0 0.0%
subgraph-idle: style recalc count 10 1 6.8%
subgraph-idle: task duration 438ms 70ms 16.0%
subgraph-idle: script duration 9ms 2ms 21.5%
subgraph-idle: TBT 0ms 0ms 0.0%
subgraph-idle: heap used 61.9 MB 4.3 MB 6.9%
subgraph-idle: DOM nodes -256 41 0.0%
subgraph-idle: event listeners -205 25 0.0%
subgraph-mouse-sweep: avg frame time 17ms 0ms 0.0%
subgraph-mouse-sweep: p95 frame time 17ms 0ms 0.1%
subgraph-mouse-sweep: layout duration 5ms 1ms 16.1%
subgraph-mouse-sweep: style recalc duration 26ms 4ms 17.0%
subgraph-mouse-sweep: layout count 18 0 0.0%
subgraph-mouse-sweep: style recalc count 78 1 0.7%
subgraph-mouse-sweep: task duration 736ms 112ms 15.2%
subgraph-mouse-sweep: script duration 100ms 19ms 18.8%
subgraph-mouse-sweep: TBT 0ms 0ms 0.0%
subgraph-mouse-sweep: heap used 62.8 MB 4.5 MB 7.2%
subgraph-mouse-sweep: DOM nodes -269 27 0.0%
subgraph-mouse-sweep: event listeners -214 9 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 11ms 2ms 20.4%
subgraph-transition-enter: style recalc duration 26ms 4ms 16.5%
subgraph-transition-enter: layout count 5 0 0.0%
subgraph-transition-enter: style recalc count 17 1 5.7%
subgraph-transition-enter: task duration 808ms 123ms 15.2%
subgraph-transition-enter: script duration 28ms 5ms 17.1%
subgraph-transition-enter: TBT 123ms 27ms 21.7%
subgraph-transition-enter: heap used 93.9 MB 7.0 MB 7.4%
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 37ms 6ms 16.7%
viewport-pan-sweep: layout count 0 0 0.0%
viewport-pan-sweep: style recalc count 248 1 0.4%
viewport-pan-sweep: task duration 5333ms 867ms 16.3%
viewport-pan-sweep: script duration 2533ms 431ms 17.0%
viewport-pan-sweep: TBT 0ms 0ms 0.0%
viewport-pan-sweep: heap used 74.1 MB 5.1 MB 6.9%
viewport-pan-sweep: DOM nodes -249 5 0.0%
viewport-pan-sweep: event listeners -147 10 0.0%
vue-large-graph-idle: avg frame time 18ms 0ms 2.6%
vue-large-graph-idle: p95 frame time 17ms 0ms 0.1%
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 14777ms 2928ms 19.8%
vue-large-graph-idle: script duration 240ms 59ms 24.5%
vue-large-graph-idle: TBT 0ms 1ms 387.3%
vue-large-graph-idle: heap used 172.0 MB 6.7 MB 3.9%
vue-large-graph-idle: DOM nodes -8063 4 0.0%
vue-large-graph-idle: event listeners -14927 2 0.0%
vue-large-graph-pan: avg frame time 18ms 0ms 2.3%
vue-large-graph-pan: p95 frame time 17ms 0ms 0.2%
vue-large-graph-pan: layout duration 0ms 0ms 0.0%
vue-large-graph-pan: style recalc duration 17ms 4ms 20.4%
vue-large-graph-pan: layout count 0 0 0.0%
vue-large-graph-pan: style recalc count 126 39 31.1%
vue-large-graph-pan: task duration 18121ms 3487ms 19.2%
vue-large-graph-pan: script duration 822ms 130ms 15.8%
vue-large-graph-pan: TBT 59ms 41ms 70.0%
vue-large-graph-pan: heap used 171.9 MB 3.9 MB 2.3%
vue-large-graph-pan: DOM nodes -8063 3 0.0%
vue-large-graph-pan: event listeners -14922 2 0.0%
vue-node-resize-workload: avg frame time 17ms 0ms 2.6%
vue-node-resize-workload: p95 frame time 17ms 0ms 0.2%
vue-node-resize-workload: layout duration 25ms 3ms 13.8%
vue-node-resize-workload: style recalc duration 72ms 12ms 17.3%
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 5457ms 1025ms 18.8%
vue-node-resize-workload: script duration 100ms 22ms 22.5%
vue-node-resize-workload: TBT 299ms 186ms 62.4%
vue-node-resize-workload: heap used 174.0 MB 5.6 MB 3.2%
vue-node-resize-workload: DOM nodes -8061 1 0.0%
vue-node-resize-workload: event listeners -14924 2 0.0%
vue-zoom-out-idle: avg frame time 17ms 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 7474ms 1412ms 18.9%
vue-zoom-out-idle: script duration 123ms 30ms 24.3%
vue-zoom-out-idle: TBT 0ms 0ms 0.0%
vue-zoom-out-idle: heap used 172.2 MB 5.6 MB 3.3%
vue-zoom-out-idle: DOM nodes -0 0 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.1%
workflow-execution: layout duration 2ms 0ms 26.4%
workflow-execution: style recalc duration 19ms 3ms 15.9%
workflow-execution: layout count 4 1 15.7%
workflow-execution: style recalc count 12 3 21.9%
workflow-execution: task duration 98ms 15ms 14.9%
workflow-execution: script duration 10ms 2ms 19.7%
workflow-execution: TBT 0ms 0ms 0.0%
workflow-execution: heap used 63.2 MB 553.3 KB 0.9%
workflow-execution: DOM nodes 128 7 5.3%
workflow-execution: event listeners 55 16 29.5%
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 ▂▇▆▆▇▂▄▇▂▆██▄▄▁ ➡️ 5ms
canvas-idle: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0
canvas-idle: style recalc count █▁▄▅▂▅▄▆▆▆▇▆▃▄▆ ➡️ 9
canvas-idle: task duration ▂█▅▅▇▁▅▆▂▃▅▆▅▅▂ ➡️ 330ms
canvas-idle: script duration ▁█▄▃▆▂▄▄▂▆▂▄▅▂▁ ➡️ 7ms
canvas-idle: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
canvas-idle: heap used ▅▄▅▄▄█▆▂▄▄▆▁▆▅▆ ➡️ 66.3 MB
canvas-idle: DOM nodes █▁▁▁▁█▁███▁█▁▁▁ ➡️ -261
canvas-idle: event listeners ▇▁▁▁▁█▁▇██▁▅▁▁▁ ➡️ -153
canvas-mouse-sweep: avg frame time ▂▁▅▅▅█▄▅▅▄▅▂▄▄▄ ➡️ 17ms
canvas-mouse-sweep: p95 frame time █▁▃▆█▃▆▁▃█▃▃▃▃▆ ➡️ 17ms
canvas-mouse-sweep: layout duration ▁█▇▆▆▄▇▆▂▇▆▆▆▆▂ ➡️ 3ms
canvas-mouse-sweep: style recalc duration ▁█▇▅▆▂▆▇▂▄▅▅▅▅▁ 📉 17ms
canvas-mouse-sweep: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 14
canvas-mouse-sweep: style recalc count ▁██▄▇▁▇▇▁▁▅▄▆▄▁ ➡️ 73
canvas-mouse-sweep: task duration ▁█▇▅▆▂▇▆▂▂▆▆▆▅▁ ➡️ 585ms
canvas-mouse-sweep: script duration ▂█▇▇▇▂▆▆▂▃▇▇▅▅▁ 📉 98ms
canvas-mouse-sweep: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
canvas-mouse-sweep: heap used ▆▄▃▃▄▁▅▆▅▂█▅▂▃▄ ➡️ 63.6 MB
canvas-mouse-sweep: DOM nodes █▁▁▁▁▁▁▁▁▁█▁▁▁▁ ➡️ -259
canvas-mouse-sweep: event listeners ▇▂▂▁▃▁▂▃▂▁█▂▁▁▂ ➡️ -163
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 ▁█▇▅█▂▆▆▁▃▅▆▅▄▁ 📉 11ms
canvas-zoom-sweep: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 6
canvas-zoom-sweep: style recalc count ▅█▁▂▄▄▄▂▂▂▅▄▅▄▄ ➡️ 31
canvas-zoom-sweep: task duration ▂█▆▅▇▂▆▅▂▂▄▆▅▄▁ 📉 239ms
canvas-zoom-sweep: script duration ▁█▆▄▆▂▆▆▂▆▃▅▅▄▁ ➡️ 9ms
canvas-zoom-sweep: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
canvas-zoom-sweep: heap used ▂█▂▂▂▂▂▂▂▂▂▁▁▁▂ ➡️ 61.6 MB
canvas-zoom-sweep: DOM nodes ▇▆▃▆▇▄▄▁▅▆▃▄▄▃█ ➡️ 77
canvas-zoom-sweep: event listeners ▃▃▁▁▁▆▁▁█▁▁▁▁▁▁ ➡️ 19
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 ▂█▇█▇▅▇▆▂▅▆▇▅▅▁ 📉 5ms
dom-widget-clipping: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0
dom-widget-clipping: style recalc count ▅▃▁▆▁█▅▁█▆▅▃▅▃▅ ➡️ 11
dom-widget-clipping: task duration ▂█▇▆▇▃▇▇▂▂▆▇▅▆▁ ➡️ 299ms
dom-widget-clipping: script duration ▂█▇▆▇▃▆▆▂▂▇▇▅▆▁ ➡️ 106ms
dom-widget-clipping: TBT █▁▁▁▁▁▁▁▁▁▁▁▁▁▁ 📉 0ms
dom-widget-clipping: heap used ▆▆▆▅▂▇█▅▆▅▁▁▂██ ➡️ 76.8 MB
dom-widget-clipping: DOM nodes ▅▃▁▆▁▇▅▁█▅▅▃▅▃▅ ➡️ 18
dom-widget-clipping: event listeners ▁█▁██▁▁█▁▁▁▁▁█▁ 📉 1
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 ▃▆▂▄▆▃▂▅█▆▃▃▅▂▁ ➡️ 5ms
large-graph-idle: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0
large-graph-idle: style recalc count █▁▁▄▂▆▂▅▇▇▃▂▆▃▇ 📈 8
large-graph-idle: task duration ▃█▆▅▅▂▆▇▁▃▅▅▅▅▂ ➡️ 443ms
large-graph-idle: script duration ▁▇▆▅▆▂▇▇▁▃▆█▅▅▁ ➡️ 27ms
large-graph-idle: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
large-graph-idle: heap used ▂██▅▇▆█▃▂▄▅▇▁▇▁ ➡️ 72.0 MB
large-graph-idle: DOM nodes ▄▆▆▄▅█▇▂▄▇▄▇▁▆▃ ➡️ -257
large-graph-idle: event listeners ▁█▆▃▆▆█▁▂▄▁█▁▆▁ ➡️ -181
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 ▁▃▄▃▅█▅▆▂▇▅▃▆▅▅ ➡️ 12ms
large-graph-pan: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0
large-graph-pan: style recalc count █▁▃▃▃▇▅▅█▆▅▂▄▆█ ➡️ 68
large-graph-pan: task duration ▂█▇▅▇▃▆▇▂▂▆▇▅▆▁ ➡️ 1112ms
large-graph-pan: script duration ▂█▇▆▇▃▆▆▂▂▆▇▅▆▁ ➡️ 544ms
large-graph-pan: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
large-graph-pan: heap used ▃▇▄▆█▁▄▇▃▅▆▆▄▅▅ ➡️ 74.4 MB
large-graph-pan: DOM nodes ▁█▁▅▄▁▄▁▂█▅▅▅▂▁ ➡️ -251
large-graph-pan: event listeners ▂█▄▇▄▁▄▄▁▇▄█▇▄▁ ➡️ -171
large-graph-zoom: avg frame time ███▁▄▁▅▄▄▄███▄▄ ➡️ 17ms
large-graph-zoom: p95 frame time ▄█▁▁▄█▄██▄▁█▁█▄ ➡️ 17ms
large-graph-zoom: layout duration ▁▇▆▅▆▄▇▇▂█▅▆█▆▄ ➡️ 12ms
large-graph-zoom: style recalc duration ▂▄▃▂▃▅▇▅▁█▂▂▆▆▄ ➡️ 13ms
large-graph-zoom: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 60
large-graph-zoom: style recalc count █▂▂▃▂▇▅▃▅▆▃▁▄▅█ ➡️ 66
large-graph-zoom: task duration ▁█▇▆█▂█▇▁▂▆█▅▆▁ ➡️ 1227ms
large-graph-zoom: script duration ▁█▇▆▇▃▇▇▁▂▆█▅▆▁ 📉 528ms
large-graph-zoom: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
large-graph-zoom: heap used ▃▃▂▃▃█▅▂██▅▃▂▇▁ ➡️ 68.2 MB
large-graph-zoom: DOM nodes ▃▃▅▆▅▆▁▅█▃▆█▆▁▃ 📉 -168
large-graph-zoom: event listeners ▃▃▆▆▆▆▁▆█▃▆██▁▃ 📉 -121
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 ▆▂▁▂▄▆▃▄▆▅▅▁▅▁█ ➡️ 47
legacy-node-drag: task duration ▂█▇▇█▃▇▇▂▃▇█▆▆▁ ➡️ 1211ms
legacy-node-drag: script duration ▂█▇▇█▃▇▇▂▃▇█▅▇▁ ➡️ 592ms
legacy-node-drag: TBT ▁▁▁▁▁▁▁█▁▁▁▁▁▁▁ 📉 0ms
legacy-node-drag: heap used ▁▃▅▃▅▄▃▂▃▂▂▅▄▃█ ➡️ 94.7 MB
legacy-node-drag: DOM nodes █▁▇▄▅██▄██▅▇███ 📉 13
legacy-node-drag: event listeners █▄█▄▄██▁██▄████ 📈 184
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 ▇▂▃▄▁▇▄▃█▇▃▃▅▄▇ 📈 8
minimap-idle: task duration ▃█▆▅▇▃▆▄▂▂▅▇▄▅▁ 📉 399ms
minimap-idle: script duration ▁█▆▄▆▂▇▆▃▃▄█▅▄▂ ➡️ 28ms
minimap-idle: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
minimap-idle: heap used ▁▇▇▄▇▃▇▇▂▃█▄▅▆▃ ➡️ 74.6 MB
minimap-idle: DOM nodes ▄▄▅▂▅▅▅▅▇▅█▁▇▅▅ ➡️ -254
minimap-idle: event listeners ▁██▃█▄▇▇▃▄▇▄█▇▄ ➡️ -172
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 ▁▆▆▆█▄▆▇▁▆▆▆▅▅▁ ➡️ 7ms
subgraph-dom-widget-clipping: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0
subgraph-dom-widget-clipping: style recalc count ▅▁▄▄▇██▂▅▇▄▂▄▄█ ➡️ 48
subgraph-dom-widget-clipping: task duration ▁█▇▆▇▃▆▇▂▂▆▇▅▆▁ ➡️ 275ms
subgraph-dom-widget-clipping: script duration ▁█▇▇█▄▇▇▂▂▇█▅▆▁ ➡️ 92ms
subgraph-dom-widget-clipping: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
subgraph-dom-widget-clipping: heap used ▄▆▁▂▅▃▄▇▅▇▆█▃▅▅ ➡️ 73.7 MB
subgraph-dom-widget-clipping: DOM nodes ▅▁▄▄▇██▂▅▇▄▂▄▄▇ ➡️ 21
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 ▃█▆▅▇▄▄▇▁▅▆█▄▄▁ ➡️ 6ms
subgraph-idle: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0
subgraph-idle: style recalc count ▇▂▃▁▄█▂▅▂▄▅▄▃▃▆ ➡️ 10
subgraph-idle: task duration ▂█▅▃▆▂▆▆▂▄▄▅▅▄▁ ➡️ 326ms
subgraph-idle: script duration ▂█▅▃▃▁▅▅▁█▂▄▅▂▁ ➡️ 6ms
subgraph-idle: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
subgraph-idle: heap used ▂█▄▅▂▃▃▂▁▂▂▅▄▄▁ ➡️ 57.7 MB
subgraph-idle: DOM nodes ▁▁▁▁██▁▁▁▁▁▁▁▁█ ➡️ -175
subgraph-idle: event listeners ▁▃▂▃▁█▁▁▁▁▁▃▂▂▇ ➡️ -151
subgraph-mouse-sweep: avg frame time ▁▃▆▆▄▄█▄▄▄▆▃▆▆▄ ➡️ 17ms
subgraph-mouse-sweep: p95 frame time ▃▃▃▃▆▆▃▆▆▆▆▁█▆▆ ➡️ 17ms
subgraph-mouse-sweep: layout duration ▁█▇▅▇▄█▇▁█▅▇▇▆▂ ➡️ 4ms
subgraph-mouse-sweep: style recalc duration ▁█▇▅▇▃▆▆▁▆▅▇▅▅▁ ➡️ 19ms
subgraph-mouse-sweep: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 18
subgraph-mouse-sweep: style recalc count ▃▃▁▂▃▆▁▁▂▁▅▃▁▃█ ➡️ 79
subgraph-mouse-sweep: task duration ▁█▆▆▇▂▆▆▁▂▄▇▅▅▁ ➡️ 577ms
subgraph-mouse-sweep: script duration ▁█▇▆▇▂▆▆▁▄▅▇▅▅▁ ➡️ 72ms
subgraph-mouse-sweep: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
subgraph-mouse-sweep: heap used ▁▅▆▅▆▃█▆▇▄▄▄▆▄▁ ➡️ 54.5 MB
subgraph-mouse-sweep: DOM nodes █▁▁▁▁▁▁▁▁▁▁▁▁▁▁ ➡️ -273
subgraph-mouse-sweep: event listeners ▁▅▃▅▅▄▇▅█▅▅▃█▃▁ ➡️ -230
subgraph-transition-enter: avg frame time ▅▅▅▁▅▅▁▅▅█▅▅▅▁▁ ➡️ 17ms
subgraph-transition-enter: p95 frame time █▁▁█▁▁▁█▁█▁█▁▁▁ ➡️ 17ms
subgraph-transition-enter: layout duration ▂█▇▇▇▃▅▆▂▂▆▇▃▅▁ 📉 8ms
subgraph-transition-enter: style recalc duration ▂█▆▇▆▂▅▆▂▁▆▆▄▅▁ 📉 19ms
subgraph-transition-enter: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 5
subgraph-transition-enter: style recalc count ▆▃▃▆▁█▃▆▆▃█▁▁▃▆ ➡️ 18
subgraph-transition-enter: task duration ▃▇███▃▆█▂▂▆▇▅▆▁ 📉 602ms
subgraph-transition-enter: script duration ▂█▇▇▆▂▆▆▁▂▅▆▄▅▅ 📉 28ms
subgraph-transition-enter: TBT ▄█▇▇▇▃▅▆▄▁▆▇▆▅▂ 📉 87ms
subgraph-transition-enter: heap used ▇▁█▇█▇██▆▇█▇▇▁▆ ➡️ 91.4 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 ▁▇▆▅▆▅▆▆▃█▄▆▇▆▃ ➡️ 30ms
viewport-pan-sweep: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0
viewport-pan-sweep: style recalc count ▇▄▄▃▃█▁▂▇▇▃▃▅▅▇ ➡️ 249
viewport-pan-sweep: task duration ▁█▇▆▇▂▅▆▁▂▆▇▆▅▁ ➡️ 4021ms
viewport-pan-sweep: script duration ▁█▇▆▇▃▆▆▂▂▇█▆▅▁ ➡️ 1842ms
viewport-pan-sweep: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
viewport-pan-sweep: heap used ▂▇▅▆▂▅▂▃▆▇▂▃█▆▁ ➡️ 66.5 MB
viewport-pan-sweep: DOM nodes █▃▃▃▅▆▄█▅▁▅▅▂▁█ ➡️ -242
viewport-pan-sweep: event listeners █▃▃▅█▅▇▅▃▁██▃▂█ ➡️ -136
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 ▂█▇▇▆▄██▂▃▇█▅▇▁ 📉 9461ms
vue-large-graph-idle: script duration ▁█▆▅▆▃▆▇▃▂▅▇▅▆▁ 📉 146ms
vue-large-graph-idle: TBT ▁▁▁▁▁▁▁▁▁▁▁▁█▁▁ 📈 0ms
vue-large-graph-idle: heap used ▄█▄▄▅█▂▅▃▂▅▅▁▂▆ ➡️ 178.1 MB
vue-large-graph-idle: DOM nodes ██████▁██████▁▆ ➡️ -8064
vue-large-graph-idle: event listeners ▄▇▇▇█▆▇█▅▅▇█▅▁▄ ➡️ -14929
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 ▁█▇▇▇▄▆▇▁▁█▆▅▇▁ 📉 67
vue-large-graph-pan: task duration ▂█▇▆▇▃▆█▂▂▆▇▄▇▁ 📉 12135ms
vue-large-graph-pan: script duration ▁█▆▆▇▂▅▆▂▁▅▇▅▅▂ ➡️ 683ms
vue-large-graph-pan: TBT ▁█▆▃▆▂▄█▃▁▆▄▃▆▃ 📉 32ms
vue-large-graph-pan: heap used ▄▃▇▆▇▅▄▇█▂▇▇▆█▁ ➡️ 163.7 MB
vue-large-graph-pan: DOM nodes ████████▆███▁▁▇ ➡️ -8062
vue-large-graph-pan: event listeners ▁█▇██▃▅▇▁▁▆▇▅▅▁ ➡️ -14925
vue-node-resize-workload: avg frame time ▁▇█▇▇▅▇█▃▃█▆▄▇▁ ➡️ 17ms
vue-node-resize-workload: p95 frame time ▁▄▅█▄█▄▁▅█▅█▁▅▁ ➡️ 17ms
vue-node-resize-workload: layout duration ▁▇▆▇▆▃▅▇▂▄▄▆█▄▃ ➡️ 21ms
vue-node-resize-workload: style recalc duration ▂█▆▆▆▂▄▆▂▁▅▆▅▄▁ ➡️ 53ms
vue-node-resize-workload: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 20
vue-node-resize-workload: style recalc count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 20
vue-node-resize-workload: task duration ▁█▇▇█▄██▂▂▇▇▅▇▁ 📉 3746ms
vue-node-resize-workload: script duration ▁█▇▆█▃▇▇▃▂▆▇▅▆▁ 📉 61ms
vue-node-resize-workload: TBT ▁██▇█▄█▇▁▂▇▆▅█▁ 📉 1ms
vue-node-resize-workload: heap used ▅▆▅▃▂▇▂▁▁▇█▆█▅▇ ➡️ 178.5 MB
vue-node-resize-workload: DOM nodes ▆▇▃▂█▁▇▇▆▆▇▇▇▁▅ ➡️ -8062
vue-node-resize-workload: event listeners ▁▄▆▆▇▄▇▇▃▃▄▅▃█▂ ➡️ -14927
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 ▁█▇▇▆▄██▁▂▇█▅▇▁ 📉 5241ms
vue-zoom-out-idle: script duration ▁█▆▆▇▅▇█▃▂▅▇▄▇▁ 📉 73ms
vue-zoom-out-idle: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
vue-zoom-out-idle: heap used ▃▃▃▁▆▆█▄▁▆▃▆▇▆▄ ➡️ 172.1 MB
vue-zoom-out-idle: DOM nodes ██████████████▁ ➡️ -1
vue-zoom-out-idle: event listeners █▂▂▃▂▅▃▄▅▆▁▅▅▄▆ ➡️ -9
workflow-execution: avg frame time ▆▆▁▃▆▆▃▃▃█▃▃▆▃▆ ➡️ 17ms
workflow-execution: p95 frame time ▄█▅▅█▁▅▁▅▁▁▅▁█▅ ➡️ 17ms
workflow-execution: layout duration ▂▄▆▃▃▂▅▅▄▃█▆▃▁▃ 📈 1ms
workflow-execution: style recalc duration ▁▄█▃▅▃▅▃▂▄▆▃▆▃▁ ➡️ 15ms
workflow-execution: layout count ▄▂▇▁▁▁▄▄█▄█▂▄▁▂ ➡️ 3
workflow-execution: style recalc count ▄▃▅▃▃▆▃▃▃▃█▁▆▄▃ ➡️ 11
workflow-execution: task duration ▁▆▇▄▆▃▄▅▃▃█▃█▅▁ ➡️ 77ms
workflow-execution: script duration ▂▆▇▆▆▃▃▇▄▄▇▄█▄▁ ➡️ 6ms
workflow-execution: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
workflow-execution: heap used ▅▃▅▄▃▅▃▄▅▆█▁█▇▃ ➡️ 62.8 MB
workflow-execution: DOM nodes ▃▃▄▃▃▅▃▃▂▂█▁▄▁▃ ➡️ 127
workflow-execution: event listeners ▅▄▆▃▃▆▃▃▄▅█▁█▇▃ ➡️ 44
Raw data
{
  "timestamp": "2026-09-17T22:59:50.860Z",
  "gitSha": "ec60eea37872f63960288fc2bf425dda10031b9f",
  "branch": "fe-2216-plans-on-sdk-rail",
  "measurements": [
    {
      "name": "canvas-idle",
      "durationMs": 2025.3309999999942,
      "styleRecalcs": 8,
      "styleRecalcDurationMs": 7.29,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 478.54999999999995,
      "heapDeltaBytes": 25479936,
      "heapUsedBytes": 87339340,
      "domNodes": 16,
      "jsHeapTotalBytes": 6029312,
      "scriptDurationMs": 7.806,
      "eventListeners": 6,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333335,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "canvas-idle",
      "durationMs": 2004.2310000000043,
      "styleRecalcs": 8,
      "styleRecalcDurationMs": 7.3199999999999985,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 435.43399999999997,
      "heapDeltaBytes": 2826316,
      "heapUsedBytes": 65361036,
      "domNodes": -264,
      "jsHeapTotalBytes": 4448256,
      "scriptDurationMs": 8.121,
      "eventListeners": -154,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.670000000000012,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "canvas-mouse-sweep",
      "durationMs": 1863.1320000000073,
      "styleRecalcs": 78,
      "styleRecalcDurationMs": 29.708,
      "layouts": 14,
      "layoutDurationMs": 4.153,
      "taskDurationMs": 840.348,
      "heapDeltaBytes": 4944456,
      "heapUsedBytes": 67548976,
      "domNodes": -260,
      "jsHeapTotalBytes": 5234688,
      "scriptDurationMs": 163.123,
      "eventListeners": -154,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333332,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "canvas-mouse-sweep",
      "durationMs": 1773.9970000000085,
      "styleRecalcs": 74,
      "styleRecalcDurationMs": 27.434,
      "layouts": 14,
      "layoutDurationMs": 4.45,
      "taskDurationMs": 815.508,
      "heapDeltaBytes": 8821320,
      "heapUsedBytes": 71313700,
      "domNodes": -260,
      "jsHeapTotalBytes": 5496832,
      "scriptDurationMs": 160.264,
      "eventListeners": -156,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "canvas-zoom-sweep",
      "durationMs": 1738.691000000017,
      "styleRecalcs": 31,
      "styleRecalcDurationMs": 16.723000000000003,
      "layouts": 6,
      "layoutDurationMs": 1.251,
      "taskDurationMs": 337.13,
      "heapDeltaBytes": 2083876,
      "heapUsedBytes": 63046084,
      "domNodes": 76,
      "jsHeapTotalBytes": 4980736,
      "scriptDurationMs": 10.947,
      "eventListeners": 19,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333335,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "canvas-zoom-sweep",
      "durationMs": 1707.8570000001037,
      "styleRecalcs": 31,
      "styleRecalcDurationMs": 15.285,
      "layouts": 6,
      "layoutDurationMs": 1.1869999999999998,
      "taskDurationMs": 320.94,
      "heapDeltaBytes": 2174408,
      "heapUsedBytes": 64717200,
      "domNodes": 74,
      "jsHeapTotalBytes": 4980736,
      "scriptDurationMs": 10.457999999999998,
      "eventListeners": 19,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "dom-widget-clipping",
      "durationMs": 643.8479999999913,
      "styleRecalcs": 12,
      "styleRecalcDurationMs": 8.928,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 444.63,
      "heapDeltaBytes": 18243472,
      "heapUsedBytes": 80751164,
      "domNodes": 20,
      "jsHeapTotalBytes": 4980736,
      "scriptDurationMs": 167.034,
      "eventListeners": 2,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333332,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "dom-widget-clipping",
      "durationMs": 609.9179999999933,
      "styleRecalcs": 11,
      "styleRecalcDurationMs": 7.953000000000002,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 427.1309999999999,
      "heapDeltaBytes": 17914116,
      "heapUsedBytes": 80413296,
      "domNodes": 18,
      "jsHeapTotalBytes": 5242880,
      "scriptDurationMs": 159.45700000000002,
      "eventListeners": 2,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.699999999999818
    },
    {
      "name": "large-graph-idle",
      "durationMs": 2034.8489999999515,
      "styleRecalcs": 6,
      "styleRecalcDurationMs": 5.4730000000000025,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 558.8689999999999,
      "heapDeltaBytes": 3230440,
      "heapUsedBytes": 83491236,
      "domNodes": -247,
      "jsHeapTotalBytes": -794624,
      "scriptDurationMs": 34.855999999999995,
      "eventListeners": -154,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.699999999999818
    },
    {
      "name": "large-graph-idle",
      "durationMs": 2043.5629999999492,
      "styleRecalcs": 7,
      "styleRecalcDurationMs": 6.487,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 556.039,
      "heapDeltaBytes": 3515324,
      "heapUsedBytes": 83451100,
      "domNodes": -243,
      "jsHeapTotalBytes": -794624,
      "scriptDurationMs": 31.799999999999994,
      "eventListeners": -152,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333332,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "large-graph-pan",
      "durationMs": 2297.803999999985,
      "styleRecalcs": 65,
      "styleRecalcDurationMs": 10.069999999999995,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 1625.9470000000003,
      "heapDeltaBytes": -873572,
      "heapUsedBytes": 80016000,
      "domNodes": -251,
      "jsHeapTotalBytes": 741376,
      "scriptDurationMs": 849.561,
      "eventListeners": -152,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "large-graph-pan",
      "durationMs": 2168.6480000000756,
      "styleRecalcs": 66,
      "styleRecalcDurationMs": 11.057,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 1438.756,
      "heapDeltaBytes": 15219112,
      "heapUsedBytes": 79760652,
      "domNodes": -251,
      "jsHeapTotalBytes": 1273856,
      "scriptDurationMs": 826.235,
      "eventListeners": -182,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.699999999999818
    },
    {
      "name": "large-graph-zoom",
      "durationMs": 3637.646000000018,
      "styleRecalcs": 63,
      "styleRecalcDurationMs": 13.503999999999998,
      "layouts": 60,
      "layoutDurationMs": 13.116000000000001,
      "taskDurationMs": 1795.246,
      "heapDeltaBytes": -12672776,
      "heapUsedBytes": 69826224,
      "domNodes": -229,
      "jsHeapTotalBytes": 516096,
      "scriptDurationMs": 816.8109999999999,
      "eventListeners": -178,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.799999999999272
    },
    {
      "name": "large-graph-zoom",
      "durationMs": 3603.0660000000125,
      "styleRecalcs": 63,
      "styleRecalcDurationMs": 12.598,
      "layouts": 60,
      "layoutDurationMs": 12.868,
      "taskDurationMs": 1750.2020000000002,
      "heapDeltaBytes": -14878024,
      "heapUsedBytes": 66398624,
      "domNodes": -265,
      "jsHeapTotalBytes": 4972544,
      "scriptDurationMs": 807.875,
      "eventListeners": -188,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "legacy-node-drag",
      "durationMs": 3016.795000000002,
      "styleRecalcs": 40,
      "styleRecalcDurationMs": 4.812999999999998,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 1882.4270000000004,
      "heapDeltaBytes": 22324140,
      "heapUsedBytes": 88899120,
      "domNodes": 0,
      "jsHeapTotalBytes": 679936,
      "scriptDurationMs": 965.9250000000002,
      "eventListeners": 188,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666696,
      "p95FrameDurationMs": 16.799999999999272
    },
    {
      "name": "legacy-node-drag",
      "durationMs": 3060.1030000000264,
      "styleRecalcs": 42,
      "styleRecalcDurationMs": 6.269,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 1896.506,
      "heapDeltaBytes": 905948,
      "heapUsedBytes": 85058956,
      "domNodes": -258,
      "jsHeapTotalBytes": -376832,
      "scriptDurationMs": 956.297,
      "eventListeners": 0,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.670000000000012,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "minimap-idle",
      "durationMs": 2032.8059999999937,
      "styleRecalcs": 5,
      "styleRecalcDurationMs": 5.055000000000001,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 558.492,
      "heapDeltaBytes": -3581856,
      "heapUsedBytes": 84451692,
      "domNodes": -251,
      "jsHeapTotalBytes": -495616,
      "scriptDurationMs": 33.498,
      "eventListeners": -154,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333335,
      "p95FrameDurationMs": 16.799999999999272
    },
    {
      "name": "minimap-idle",
      "durationMs": 2009.0490000000045,
      "styleRecalcs": 4,
      "styleRecalcDurationMs": 3.1580000000000013,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 514.6630000000001,
      "heapDeltaBytes": -4005976,
      "heapUsedBytes": 83816944,
      "domNodes": -253,
      "jsHeapTotalBytes": -495616,
      "scriptDurationMs": 31.283999999999992,
      "eventListeners": -154,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "subgraph-dom-widget-clipping",
      "durationMs": 571.8620000000101,
      "styleRecalcs": 46,
      "styleRecalcDurationMs": 9.622,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 394.20199999999994,
      "heapDeltaBytes": 13673324,
      "heapUsedBytes": 77550272,
      "domNodes": 18,
      "jsHeapTotalBytes": 5242880,
      "scriptDurationMs": 143.60999999999999,
      "eventListeners": 8,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.799999999999272
    },
    {
      "name": "subgraph-dom-widget-clipping",
      "durationMs": 574.8290000000225,
      "styleRecalcs": 48,
      "styleRecalcDurationMs": 11.222,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 398.664,
      "heapDeltaBytes": 13524264,
      "heapUsedBytes": 77542036,
      "domNodes": 22,
      "jsHeapTotalBytes": 5242880,
      "scriptDurationMs": 144.988,
      "eventListeners": 8,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.799999999999272
    },
    {
      "name": "subgraph-idle",
      "durationMs": 1999.0139999999883,
      "styleRecalcs": 9,
      "styleRecalcDurationMs": 7.108999999999999,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 337.048,
      "heapDeltaBytes": 12479300,
      "heapUsedBytes": 76154964,
      "domNodes": -276,
      "jsHeapTotalBytes": 4972544,
      "scriptDurationMs": 7.2219999999999995,
      "eventListeners": -200,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.660000000000007,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "subgraph-idle",
      "durationMs": 2023.0609999999842,
      "styleRecalcs": 10,
      "styleRecalcDurationMs": 8.152,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 443.02000000000004,
      "heapDeltaBytes": -2029308,
      "heapUsedBytes": 61925444,
      "domNodes": -275,
      "jsHeapTotalBytes": 4972544,
      "scriptDurationMs": 7.357000000000003,
      "eventListeners": -230,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "subgraph-mouse-sweep",
      "durationMs": 1707.4559999999792,
      "styleRecalcs": 78,
      "styleRecalcDurationMs": 28.253,
      "layouts": 18,
      "layoutDurationMs": 5.615,
      "taskDurationMs": 802.0269999999999,
      "heapDeltaBytes": 13331000,
      "heapUsedBytes": 76781368,
      "domNodes": -276,
      "jsHeapTotalBytes": 5758976,
      "scriptDurationMs": 110.798,
      "eventListeners": -200,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "subgraph-mouse-sweep",
      "durationMs": 1701.7809999999827,
      "styleRecalcs": 77,
      "styleRecalcDurationMs": 25.231,
      "layouts": 18,
      "layoutDurationMs": 4.853,
      "taskDurationMs": 661.151,
      "heapDeltaBytes": -291608,
      "heapUsedBytes": 63636956,
      "domNodes": -277,
      "jsHeapTotalBytes": 6021120,
      "scriptDurationMs": 105.876,
      "eventListeners": -232,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.799999999999272
    },
    {
      "name": "subgraph-transition-enter",
      "durationMs": 900.1299999999901,
      "styleRecalcs": 17,
      "styleRecalcDurationMs": 28.560000000000002,
      "layouts": 5,
      "layoutDurationMs": 12.895,
      "taskDurationMs": 689.291,
      "heapDeltaBytes": -6401788,
      "heapUsedBytes": 80731256,
      "domNodes": 13587,
      "jsHeapTotalBytes": 11010048,
      "scriptDurationMs": 27.567,
      "eventListeners": 2385,
      "totalBlockingTimeMs": 143,
      "frameDurationMs": 16.66333333333335,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "viewport-pan-sweep",
      "durationMs": 8219.265000000007,
      "styleRecalcs": 247,
      "styleRecalcDurationMs": 35.259,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 5077.793000000001,
      "heapDeltaBytes": -13056212,
      "heapUsedBytes": 67122412,
      "domNodes": -249,
      "jsHeapTotalBytes": 4448256,
      "scriptDurationMs": 2757.371,
      "eventListeners": -138,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "viewport-pan-sweep",
      "durationMs": 8518.327,
      "styleRecalcs": 248,
      "styleRecalcDurationMs": 34.388000000000005,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 5760.1810000000005,
      "heapDeltaBytes": 17625772,
      "heapUsedBytes": 97395580,
      "domNodes": -262,
      "jsHeapTotalBytes": 3887104,
      "scriptDurationMs": 2790.057,
      "eventListeners": -168,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.660000000000036,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "vue-large-graph-idle",
      "durationMs": 16833.841000000008,
      "styleRecalcs": 0,
      "styleRecalcDurationMs": 0,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 16452.644,
      "heapDeltaBytes": -61846364,
      "heapUsedBytes": 170815436,
      "domNodes": -8061,
      "jsHeapTotalBytes": -9809920,
      "scriptDurationMs": 268.25,
      "eventListeners": -14928,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 17.776666666666642,
      "p95FrameDurationMs": 16.799999999999272
    },
    {
      "name": "vue-large-graph-idle",
      "durationMs": 16812.161999999946,
      "styleRecalcs": 0,
      "styleRecalcDurationMs": 0,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 16341.891,
      "heapDeltaBytes": -35061296,
      "heapUsedBytes": 180988760,
      "domNodes": -8061,
      "jsHeapTotalBytes": -10526720,
      "scriptDurationMs": 278.889,
      "eventListeners": -14924,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 17.223333333333358,
      "p95FrameDurationMs": 16.80000000000291
    },
    {
      "name": "vue-large-graph-pan",
      "durationMs": 20369.640000000003,
      "styleRecalcs": 165,
      "styleRecalcDurationMs": 17.380000000000006,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 20027.073,
      "heapDeltaBytes": -52390284,
      "heapUsedBytes": 179557288,
      "domNodes": -8061,
      "jsHeapTotalBytes": -13479936,
      "scriptDurationMs": 886.938,
      "eventListeners": -14920,
      "totalBlockingTimeMs": 16,
      "frameDurationMs": 17.780000000000047,
      "p95FrameDurationMs": 16.799999999999272
    },
    {
      "name": "vue-large-graph-pan",
      "durationMs": 20425.58399999996,
      "styleRecalcs": 164,
      "styleRecalcDurationMs": 16.88200000000001,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 20107.606,
      "heapDeltaBytes": -41115260,
      "heapUsedBytes": 167891272,
      "domNodes": -8061,
      "jsHeapTotalBytes": -10526720,
      "scriptDurationMs": 905.925,
      "eventListeners": -14920,
      "totalBlockingTimeMs": 45,
      "frameDurationMs": 17.776666666666642,
      "p95FrameDurationMs": 16.799999999999272
    },
    {
      "name": "vue-node-resize-workload",
      "durationMs": 6154.831000000002,
      "styleRecalcs": 20,
      "styleRecalcDurationMs": 82.07300000000001,
      "layouts": 20,
      "layoutDurationMs": 24.470000000000006,
      "taskDurationMs": 6054.972999999999,
      "heapDeltaBytes": -41992316,
      "heapUsedBytes": 174536168,
      "domNodes": -8060,
      "jsHeapTotalBytes": 17522688,
      "scriptDurationMs": 106.15699999999998,
      "eventListeners": -14920,
      "totalBlockingTimeMs": 482,
      "frameDurationMs": 17.776666666666642,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "vue-node-resize-workload",
      "durationMs": 6116.618999999901,
      "styleRecalcs": 20,
      "styleRecalcDurationMs": 75.738,
      "layouts": 20,
      "layoutDurationMs": 23.015999999999995,
      "taskDurationMs": 6031.888,
      "heapDeltaBytes": -31669608,
      "heapUsedBytes": 182628392,
      "domNodes": -8061,
      "jsHeapTotalBytes": 14413824,
      "scriptDurationMs": 106.11,
      "eventListeners": -14922,
      "totalBlockingTimeMs": 432,
      "frameDurationMs": 17.776666666666642,
      "p95FrameDurationMs": 16.80000000000109
    },
    {
      "name": "vue-zoom-out-idle",
      "durationMs": 8405.001000000027,
      "styleRecalcs": 0,
      "styleRecalcDurationMs": 0,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 8125.891000000001,
      "heapDeltaBytes": -12031176,
      "heapUsedBytes": 183923088,
      "domNodes": 0,
      "jsHeapTotalBytes": -21495808,
      "scriptDurationMs": 129.86899999999994,
      "eventListeners": -12,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 17.776666666666763,
      "p95FrameDurationMs": 16.799999999999272
    },
    {
      "name": "vue-zoom-out-idle",
      "durationMs": 8435.518000000002,
      "styleRecalcs": 0,
      "styleRecalcDurationMs": 0,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 8261.663000000002,
      "heapDeltaBytes": 6414688,
      "heapUsedBytes": 189710240,
      "domNodes": -1,
      "jsHeapTotalBytes": -15990784,
      "scriptDurationMs": 132.0300000000001,
      "eventListeners": -12,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 17.776666666666763,
      "p95FrameDurationMs": 16.799999999999272
    },
    {
      "name": "workflow-execution",
      "durationMs": 120.20499999999856,
      "styleRecalcs": 9,
      "styleRecalcDurationMs": 18.87,
      "layouts": 4,
      "layoutDurationMs": 1.5379999999999998,
      "taskDurationMs": 96.743,
      "heapDeltaBytes": 3295392,
      "heapUsedBytes": 65438892,
      "domNodes": 111,
      "jsHeapTotalBytes": 0,
      "scriptDurationMs": 11.508000000000001,
      "eventListeners": 35,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "workflow-execution",
      "durationMs": 110.81799999999475,
      "styleRecalcs": 9,
      "styleRecalcDurationMs": 17.541,
      "layouts": 3,
      "layoutDurationMs": 1.7730000000000001,
      "taskDurationMs": 81.50099999999999,
      "heapDeltaBytes": 3001940,
      "heapUsedBytes": 65226064,
      "domNodes": 128,
      "jsHeapTotalBytes": 262144,
      "scriptDurationMs": 5.553000000000001,
      "eventListeners": 17,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333332,
      "p95FrameDurationMs": 16.700000000000728
    }
  ]
}

🔬 E2E Coverage

Metric Covered Total Pct
Lines 51142 77773 65.8% 🟡
Functions 0 0 — —
Branches 0 0 — —
Top 10 files by uncovered lines
File Coverage Missed
src/LGraphCanvas.ts 67.8% 1155
src/LGraphNode.ts 70.4% 382
src/extensions/core/cameraInfo/CameraInfoViewport.ts 2.5% 344
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% 316
src/LGraph.ts 79.1% 263
src/platform/workspace/stores/teamWorkspaceStore.ts 38.9% 256
src/scripts/app.ts 71.7% 255
src/core/billing/operationLifecycle.ts 0.9% 232

@dante01yoon
dante01yoon force-pushed the fe-2216-plans-on-sdk-rail branch from af3ab66 to 508d0f3 Compare September 17, 2026 17:13
@github-actions github-actions Bot added the risk:xhigh PR risk grade (advisory shadow check; grader-owned) label Sep 17, 2026
@dante01yoon
dante01yoon force-pushed the fe-2216-plans-on-sdk-rail branch from 508d0f3 to d6df7c0 Compare September 17, 2026 17:28
@codecov

codecov Bot commented Sep 17, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 85.93750% with 9 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
.../platform/workspace/billing/sdk/billingSdkStore.ts 0.00% 7 Missing ⚠️
...platform/workspace/billing/sdk/billingPlansView.ts 95.23% 2 Missing ⚠️
@@            Coverage Diff             @@
##             main   #17942      +/-   ##
==========================================
+ Coverage   82.60%   83.62%   +1.02%     
==========================================
  Files        2909     2225     -684     
  Lines      143370   126874   -16496     
  Branches    38693    34117    -4576     
==========================================
- Hits       118427   106099   -12328     
+ Misses      23710    20491    -3219     
+ Partials     1233      284     -949     
Flag Coverage Δ
billing-web-unit ?
e2e 65.79% <64.28%> (-0.01%) ⬇️
unit 78.85% <85.93%> (+<0.01%) ⬆️
website-unit ?

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

Files with missing lines Coverage Δ
.../cloud/subscription/composables/useBillingPlans.ts 100.00% <100.00%> (ø)
src/platform/workspace/composables/readOnRail.ts 100.00% <100.00%> (ø)
...atform/workspace/composables/useBillingReadRail.ts 100.00% <ø> (ø)
...tform/workspace/composables/useWorkspaceBilling.ts 96.49% <ø> (+0.20%) ⬆️
...platform/workspace/billing/sdk/billingPlansView.ts 95.23% <95.23%> (ø)
.../platform/workspace/billing/sdk/billingSdkStore.ts 88.04% <0.00%> (-3.49%) ⬇️

... and 694 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.

pull Bot pushed a commit to Penguinjanator/ComfyUI_frontend that referenced this pull request Sep 17, 2026
…y and deny framing (Comfy-Org#17941)

Linear FE-2218. Based on `main`; independent of the billing-web feature
stack. Closes the "CSP" half of the last open line in the hosted-billing
TDD's *Can start immediately* list.

## Why

Comfy-Org#17788 gave `apps/billing-web` `noindex`, `nosniff` and a referrer
policy, and left CSP open. This is a payment surface that loads three
third parties — Stripe, Cloudflare Turnstile and Firebase — and talks to
one of three Cloud origins; nothing today says which origins it may load
from or connect to, so a compromised dependency or an injected script
has the whole web to reach.

## How

**Report-only first, on purpose.** The header ships as
`Content-Security-Policy-Report-Only`. A violation is logged in the
console and blocks nothing. The alternative — enforcing on the first try
— fails in exactly the way that is worst here: a missing origin does not
error, it makes a card form not mount or a 3DS frame not open, which
reads to the customer as "payment is broken". The README states the
promotion criterion: a preview that completes email and Google sign-in,
a card checkout with a 3DS challenge, and a portal round-trip with a
clean console. The console's report on that pass is the list of origins
to add.

**The allowlist is what the app actually loads**, not a template:

| Directive | Origins | For |
| --- | --- | --- |
| `script-src` | `js.stripe.com`, `challenges.cloudflare.com`,
`apis.google.com` | Stripe.js (`@stripe/stripe-js` injects it),
Turnstile, the Firebase popup sign-in helper |
| `connect-src` | `cloud.comfy.org`, `stagingcloud.comfy.org`,
`testcloud.comfy.org`, `api.stripe.com`,
`identitytoolkit.googleapis.com`, `securetoken.googleapis.com`,
`dreamboothy.firebaseapp.com`, `dreamboothy-dev.firebaseapp.com` |
billing reads and commands (all three families, since `vercel.json` is
one file), Elements, sign-in and token refresh |
| `frame-src` | `js.stripe.com`, `hooks.stripe.com`,
`challenges.cloudflare.com`, `dreamboothy.firebaseapp.com`,
`dreamboothy-dev.firebaseapp.com`, `apis.google.com` | Elements, the 3DS
challenge, Turnstile, the Firebase auth iframe (`signInWithPopup` — the
package never uses the redirect flow) |
| `style-src` | `'self' 'unsafe-inline'` | Vue-managed inline styles |
| `img-src` | `'self' data: https://*.stripe.com` | Stripe card-brand
art |
| `default-src`, `base-uri`, `form-action` | `'self'` | |
| `object-src` | `'none'` | |
| `frame-ancestors` | `'none'` | see below |

**`X-Frame-Options: DENY` is enforced, not report-only.** Billing is
opened as its own tab (`openDisownedTab` in the cloud app) and is never
embedded; there is no consumer to break and clickjacking a checkout is
the attack the header exists for. `frame-ancestors 'none'` says the same
thing in the CSP for browsers that prefer it.

## Review focus

**The two Firebase auth domains.** `signInWithPopup` loads the gapi
helper from `apis.google.com` and mounts the auth iframe on the
project's `authDomain`. The three Cloud families report two projects in
`/api/features`: `dreamboothy` for production and `dreamboothy-dev` for
staging and test, so both auth domains are listed rather than
`*.firebaseapp.com`, which would admit every Firebase project. A
deployment pointed at another project adds its domain to `connect-src`
and `frame-src`; the README says so.

**No reporting endpoint, on purpose.** The header carries no
`report-to`: this origin has no server to receive reports, so violations
are visible only in a console with devtools open. That is the stated
scope of the report-only phase, which is verified by hand on previews
per the README's promotion criterion. After promotion a production
violation is invisible until an endpoint exists, and adding one is the
first change to make when it does.

**`www.googleapis.com` is not listed.** `@firebase/auth` 1.10.8 contacts
`identitytoolkit.googleapis.com`, `securetoken.googleapis.com`,
`apis.google.com/js/api.js` and the auth domain's `/__/auth/*` paths,
and nothing else; the host was in an earlier revision defensively and is
out.

**Browser tests are not in this PR.** `browser_tests/` is the cloud
app's harness (`comfyPage`, its backend fixtures); `apps/billing-web`
has no Playwright project yet. A mock-driven harness for it is its own
piece of work and waits on Comfy-Org#17936, which gives it a checkout to drive.

## Verification

`vercel.json` parses; `oxfmt` clean. No runtime code changed, so no unit
tests are affected. The header is verified on a Vercel preview, which is
what report-only is for.

## AS IS / TO BE

- **AS IS** — no CSP, no framing protection; the app may load from and
connect to any origin.
- **TO BE** — framing denied; every third-party origin named and
reported against, with a stated path to enforcement.

No user-visible change.

## Where this sits in the plan

Billing SDK track FE-2210 ([implementation plan
V2](https://app.notion.com/p/3d86d73d36508152b92cdbdfdfe83ac8));
remaining work on FE-2216 / FE-2217 / FE-2218 / FE-2331.

| Phase | Item | Ticket | Status |
| --- | --- | --- | --- |
| 7 | What belongs in `@comfyorg/account-ui` (ADR-0034) | FE-2218 |
merged (Comfy-Org#17927) |
| 7 | billing-web Vercel deployment config | FE-2218 | merged (Comfy-Org#17788) |
| 7 | Package release workflows + versioning ADR | FE-2218 | approved
(Comfy-Org#17881) |
| 7 | Publish report through a `workflow_run` consumer | FE-2218 | open
(Comfy-Org#17952) |
| 7 | `account-ui` builds to dist and packs clean | FE-2218 | open
(Comfy-Org#17929) |
| 7 | `account-ui` drops its unpublished dependencies, joins
`smoke:pack` | FE-2218 | open (Comfy-Org#17932) |
| 7 | **billing-web report-only CSP and framing denial** | FE-2218 |
**this PR** |
| 8 ui | Promote the Stripe payment UI into `account-ui` | FE-2331 |
open (Comfy-Org#17934) |
| 8 ui | billing-web checkout, result page, invoices through the portal
| FE-2331 | open (Comfy-Org#17936) |
| 8 ui | billing-web cancel / resubscribe on the subscription surface |
FE-2331 | open (Comfy-Org#17937) |
| 8 ui | billing-web reactivation confirmation, refused subscribe
surfaced | FE-2331 | open (Comfy-Org#17943) |
| 8 ui | billing-web Playwright harness against a mocked Cloud | FE-2218
| open (Comfy-Org#17947) |
| 9 | Status and balance reads on the rail | FE-2216 | open (Comfy-Org#17940) |
| 9 | Plan catalog read on the rail | FE-2216 | open (Comfy-Org#17942) |
| 9 | Capabilities and saved payment methods on the rail | FE-2216 |
open (Comfy-Org#17946) |
| 9 | Legacy `billingOperationStore` removal | FE-2216 | after the flags
flip |
| 7 | First publish (`private` off), Platform install | FE-2218 | after
Comfy-Org#17881 merges |
| 7 | Phase 7 host proof: live top-up on billing.comfy.org | FE-2218 |
gated (flags, CNAME, key) |
| 6 | Phase 6 live E2E evidence table | FE-2217 | gated (staging flags)
|

```mermaid
flowchart LR
  ADR["ADR-0034 (merged)"]
  REL["release workflows + ADR-0033 (Comfy-Org#17881)"]
  PUBREP["publish report via workflow_run (Comfy-Org#17952)"]
  UIB["account-ui dist build (Comfy-Org#17929)"]
  DEPS["drop unpublished deps (Comfy-Org#17932)"]
  CSP["billing-web CSP (Comfy-Org#17941)"]
  PROMO["Stripe payment form in account-ui (Comfy-Org#17934)"]
  CHK["billing-web checkout + result + invoices (Comfy-Org#17936)"]
  SUBW["billing-web cancel / resubscribe (Comfy-Org#17937)"]
  REACT["reactivation confirmation (Comfy-Org#17943)"]
  E2E["billing-web Playwright harness (Comfy-Org#17947)"]
  RD1["status + balance on the rail (Comfy-Org#17940)"]
  RD2["plans on the rail (Comfy-Org#17942)"]
  RD3["capabilities + payment methods on the rail (Comfy-Org#17946)"]
  LEG(["legacy store removal, after the flags"])
  PUB(["first publish, after Comfy-Org#17881"])
  H(["Phase 7 host proof"])
  E(["Phase 6 evidence"])
  OW{{"OWNER staging flags, CNAME, Stripe key"}}
  ADR --> PROMO
  UIB --> DEPS --> PROMO --> CHK --> SUBW --> REACT --> E2E
  REL --> PUBREP
  REL --> PUB
  DEPS --> PUB
  RD1 --> RD2 --> RD3 --> LEG
  CHK --> H
  CSP --> H
  OW -.-> H
  OW -.-> E
  OW -.-> LEG
  style ADR fill:#d4edda,stroke:#155724
  style CSP stroke:#0366d6,stroke-width:4px
```

@christian-byrne christian-byrne 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.

Approving. The projection is the whole risk in this PR, so we checked it exhaustively rather than reading the description, and it holds on both axes.

Every int64 in the catalog is converted — verified against the schema, not the PR body. Walking zGetBillingPlansResponse through its referenced schemas gives exactly eight z.coerce.bigint() fields:

schema fields
zPlan credits_cents, max_seats, price_cents
zPlanSeatSummary total_cost_cents, total_credits_cents
zTeamCreditStop credits
zTeamCreditStopPrice list_price_cents, price_cents (× monthly and yearly)

All eight go through asSafeNumber. Your enumeration in the description matches the schema exactly, which is worth saying because that list is the thing a reviewer would otherwise have to take on trust.

Nothing is dropped by the rebuilds, which is the failure this shape invites. projectPlan spreads ...plan, so availability, duration, slug and tier pass through untouched — but seat_summary, projectStop, projectStopPrice and the team_credit_stops wrapper are all reconstructed key by key, and a reconstruction silently drops any field the author did not think of. Compared each against its schema:

  • zPlanSeatSummary has 3 fields; the rebuild writes 3.
  • zTeamCreditStop has 4 (credits, id, monthly, yearly); the rebuild writes 4.
  • zTeamCreditStopPrice has 2; the rebuild writes 2.
  • zTeamCreditStops has 2; the rebuild writes 2.

Exhaustive at every level. We check this specifically because the repo has lost a field to exactly this pattern before (failure?: never in a rename), and a dropped price field would be invisible until it rendered.

The undefined / null split is correct, not an inconsistency. projectBillingPlans tests the absent ladder with === undefined while projectBillingStatus tests the absent credit stop with === null, which looks like drift. It is not: zBillingPlansResponse declares team_credit_stops: zTeamCreditStops.optional() and the status schema declares its credit stop nullable. Each check matches its own schema. Flagging it only so the next reader does not "fix" one to match the other.

Failing the whole projection on one unrepresentable value is the right call for a catalog. A partially-projected catalog would be worse than no catalog — a pricing surface rendering a plan list with one plan quietly missing is harder to notice than a read that failed, and the ladder in particular is positional.


One non-blocking note, and it is about the test rather than the code.

The WorkspaceApiError stand-in in useBillingPlans.test.ts is class extends Error {}, so it carries message and nothing else. readOnRail throws new WorkspaceApiError(result.code, undefined, result.code) — the third argument is code, and against the stand-in it lands nowhere. The failed-read test asserts on error.value, which is the message, so it passes either way and would keep passing if readOnRail stopped setting code at all.

That does not matter for plans, where nothing branches on code. It matters because this is the second thing we have noticed about readOnRail's error shape in two PRs — on #17940 we flagged that it deliberately leaves status undefined, which categorizeBillingApiError reads as "never reached the backend" and isAlreadyInRequestedState reads as disqualifying. Neither is live yet. But the helper is now shared across three reads and moving to its own module, and its error contract is the one part of it with no test holding it in place.

Cheapest version: give the stand-in a code field and assert it once. That pins the contract where the helper lives, and the write paths that do branch on code inherit it for free.

Approved. CI green, no open threads.

pull Bot pushed a commit to Mu-L/ComfyUI_frontend that referenced this pull request Sep 17, 2026
…sumer instead of the pull_request job (Comfy-Org#17952)

Linear FE-2218. Stacked on Comfy-Org#17881; the direction ShihChi chose on its
review thread (option 2, "the real split"), built as the follow-up that
thread proposed.

## Why

`publish-package-on-merge.yaml` runs on `pull_request: closed`, and its
`comment_package_publish` job carried `pull-requests: write` and
`issues: write` to post the release links onto the Release PR.
`.github/AGENTS.md` says never to write PR comments from a
`pull_request` workflow: that trigger runs the workflow definition from
the pull request's own merge ref, so a job with write permission is
PR-authored code holding a write token. The job was gated on `merged ==
true` and the in-repo `Release` label, which a fork cannot acquire, but
the rule exists so that the next reader does not have to re-derive that
argument, and the review asked for the split rather than the exception.

## How

The two-workflow split the repository already uses for size, perf and
e2e reports:

- **Producer** (`publish-package-on-merge.yaml`):
`comment_package_publish` is replaced by `publish_report`, which holds
`contents: read` only. It writes the release links — one npm link per
published package, from the resolve job's matrix, plus the merge commit
— and the PR number into a `publish-report` artifact. `pull-requests:
write` and `issues: write` are gone from the workflow.
- **Consumer** (`pr-publish-report.yaml`, new): `workflow_run` on the
on-merge publish, so it runs the default branch's definition. On a
successful run it downloads the artifact from the triggering run, reads
the PR number, and upserts the `release` section of the unified PR
report through `.github/actions/upsert-comment-section`, the same
section and marker the old job wrote. A run that found no version change
uploads nothing and the consumer skips.

The report body is built with `jq` from the matrix rather than
`comment-release-links`, because that action reads the previous version
from `HEAD^1` and formats a `v…v` compare link that suits the root
package and the design system; a package publish has no such tag and its
useful link is the npm version page.

ADR-0033's workflow table gains the consumer row and says the on-merge
job writes the links to an artifact.

## Verification

Both workflow files parse; `oxfmt` clean. The consumer's download step
and the report format were checked by hand (`jq` dry run on a one-entry
matrix). The path runs only on a merged Release PR, so the first live
check is the first package release after this lands: the `release`
section on that PR should carry the npm links, written by `PR: Publish
Report` rather than the publish workflow.

## AS IS / TO BE

No user-visible change.

- **AS IS** — the `pull_request`-triggered publish workflow posts the
release links itself, holding `pull-requests: write`.
- **TO BE** — the publish workflow only reads; a `workflow_run` consumer
on the default branch posts the links.

## Where this sits in the plan

Billing SDK track FE-2210 ([implementation plan
V2](https://app.notion.com/p/3d86d73d36508152b92cdbdfdfe83ac8));
remaining work on FE-2216 / FE-2217 / FE-2218 / FE-2331.

| Phase | Item | Ticket | Status |
| --- | --- | --- | --- |
| 7 | What belongs in `@comfyorg/account-ui` (ADR-0034) | FE-2218 |
merged (Comfy-Org#17927) |
| 7 | billing-web Vercel deployment config | FE-2218 | merged (Comfy-Org#17788) |
| 7 | Package release workflows + versioning ADR | FE-2218 | merged
(Comfy-Org#17881) |
| 7 | **Publish report through a `workflow_run` consumer** | FE-2218 |
**this PR** |
| 7 | `account-ui` builds to dist and packs clean | FE-2218 | open
(Comfy-Org#17929) |
| 7 | `account-ui` drops its unpublished dependencies, joins
`smoke:pack` | FE-2218 | open (Comfy-Org#17932) |
| 7 | billing-web report-only CSP and framing denial | FE-2218 | merged
(Comfy-Org#17941) |
| 8 ui | Promote the Stripe payment UI into `account-ui` | FE-2331 |
open (Comfy-Org#17934) |
| 8 ui | billing-web checkout, result page, invoices through the portal
| FE-2331 | open (Comfy-Org#17936) |
| 8 ui | billing-web cancel / resubscribe on the subscription surface |
FE-2331 | open (Comfy-Org#17937) |
| 8 ui | billing-web reactivation confirmation, refused subscribe
surfaced | FE-2331 | open (Comfy-Org#17943) |
| 8 ui | billing-web Playwright harness against a mocked Cloud | FE-2218
| open (Comfy-Org#17947) |
| 9 | Status and balance reads on the rail | FE-2216 | open (Comfy-Org#17940) |
| 9 | Plan catalog read on the rail | FE-2216 | open (Comfy-Org#17942) |
| 9 | Capabilities and saved payment methods on the rail | FE-2216 |
open (Comfy-Org#17946) |
| 9 | Legacy `billingOperationStore` removal | FE-2216 | after the flags
flip |
| 7 | First publish (`private` off), Platform install | FE-2218 |
unblocked: Comfy-Org#17881 is on main |
| 7 | Phase 7 host proof: live top-up on billing.comfy.org | FE-2218 |
gated (flags, CNAME, key) |
| 6 | Phase 6 live E2E evidence table | FE-2217 | gated (staging flags)
|

```mermaid
flowchart LR
  ADR["ADR-0034 (merged)"]
  REL["release workflows + ADR-0033 (merged Comfy-Org#17881)"]
  PUBREP["publish report via workflow_run (Comfy-Org#17952)"]
  UIB["account-ui dist build (Comfy-Org#17929)"]
  DEPS["drop unpublished deps (Comfy-Org#17932)"]
  CSP["billing-web CSP (merged Comfy-Org#17941)"]
  PROMO["Stripe payment form in account-ui (Comfy-Org#17934)"]
  CHK["billing-web checkout + result + invoices (Comfy-Org#17936)"]
  SUBW["billing-web cancel / resubscribe (Comfy-Org#17937)"]
  REACT["reactivation confirmation (Comfy-Org#17943)"]
  E2E["billing-web Playwright harness (Comfy-Org#17947)"]
  RD1["status + balance on the rail (Comfy-Org#17940)"]
  RD2["plans on the rail (Comfy-Org#17942)"]
  RD3["capabilities + payment methods on the rail (Comfy-Org#17946)"]
  LEG(["legacy store removal, after the flags"])
  PUB(["first publish: workflows are on main, awaiting go"])
  H(["Phase 7 host proof"])
  E(["Phase 6 evidence"])
  OW{{"OWNER staging flags, CNAME, Stripe key"}}
  ADR --> PROMO
  UIB --> DEPS --> PROMO --> CHK --> SUBW --> REACT --> E2E
  REL --> PUBREP
  REL --> PUB
  DEPS --> PUB
  RD1 --> RD2 --> RD3 --> LEG
  CHK --> H
  CSP --> H
  OW -.-> H
  OW -.-> E
  OW -.-> LEG
  style ADR fill:#d4edda,stroke:#155724
  style REL fill:#d4edda,stroke:#155724
  style CSP fill:#d4edda,stroke:#155724
  style PUBREP stroke:#0366d6,stroke-width:4px
```
pull Bot pushed a commit to Mu-L/ComfyUI_frontend that referenced this pull request Sep 17, 2026
…s publishable (Comfy-Org#17929)

Linear FE-2218. Depends on the boundary recorded in Comfy-Org#17927.

## Why

`@comfyorg/account-ui` is the package Platform installs, and it is the
only
workspace package that ships Vue. Comfy-Org#17882 made `account-core`,
`billing-contract` and `ingest-types` publishable; `account-ui` was left
out,
and Comfy-Org#17881 says so in a comment on its own version gate — "add
account-ui to
it when the package goes public."

It was left out because the others build with `tsc -p
tsconfig.build.json`,
which cannot emit `.vue`. The package had no `tsconfig.build.json`, no
bundler
config, no `files`, and no `publishConfig`, so `pnpm pack` would have
uploaded
`src` — which the shared publishable rules reject outright
(`NON_PUBLIC_FILE` matches `^src/`).

## How

A Vite library build, one entry per published export, so `dist` mirrors
the
export map and importing `@comfyorg/account-ui/auth/regionGate` pulls
that
module rather than the package.

- `packages/account-ui/vite.config.ts` — eight entries, ES only, `vue()`
for
the SFCs and `vite-plugin-dts` for declarations with `cleanVueFileName`
so
  `PasswordRules.vue` emits `PasswordRules.d.ts` rather than
`PasswordRules.vue.d.ts`. Vue, VueUse and the sibling `@comfyorg`
packages
are external: a bundled Vue would give the consumer two runtimes, and
the
  injection keys the billing composables share are identity-compared.
- `packages/account-ui/tsconfig.build.json` — excludes tests and
  `__fixtures__`, which the tarball rules also reject.
- `packages/account-ui/package.json` — `files`, `sideEffects`,
repository
metadata, and a `publishConfig.exports` that resolves every subpath into
  `dist`, matching what `account-core` does.
- `.github/workflows/ci-packages-pack.yaml` — `account-ui` joins the
matrix
  and the path filter, so the same `check:pack` gate runs on it.
- `eslint.config.ts` — the new config file joins `allowDefaultProject`,
as the
  sibling `vitest.config.ts` files already do.

`build` runs `vite build --logLevel error`. That is not cosmetic:
`packPublishable` reads `pnpm pack --json` over a pipe, and `prepack`
writes
to the same stdout, so Vite's default build summary lands in the middle
of the
JSON and the check dies on `Unexpected token 'v'`. The three `tsc`
packages
never hit this because `tsc` is silent on success; quieting Vite makes
`account-ui` behave the same way, and errors still print and still fail
the
build.

## Verification

```
pnpm -C packages/account-ui build        # 8 entries, 28 packed files
pnpm -C packages/account-core run check:pack "$PWD/packages/account-ui"
  -> @comfyorg/account-ui: 28 packed files are publishable
pnpm -C packages/account-ui typecheck    # clean
pnpm -C packages/account-ui test         # 16 files, 79 tests
pnpm -C packages/account-ui lint         # clean
```

`dist` contains no test file and no `__fixtures__` entry.

## What this does NOT do, and it matters

**This PR does not make `@comfyorg/account-ui` installable from npm.**
The
tarball is now well formed, which is necessary and not sufficient. Its
runtime
`dependencies` are three workspace packages, and none of them is on the
registry:

| dependency | reached from | state |
| --- | --- | --- |
| `@comfyorg/account-core` | the billing composables | publishable since
Comfy-Org#17882, still `private` |
| `@comfyorg/tailwind-utils` | `cn()` in `PasswordRules.vue` | exports
`./src/index.ts`, no `files`, no `publishConfig` |
| `@comfyorg/shared-frontend-utils` | `isInChina()` in `regionGate.ts` |
same, plus it depends on `@comfyorg/object-info-parser` |

`pnpm pack` rewrites `workspace:*` to a version number, so the published
manifest *looks* correct and `check:pack` passes — the failure would
land on
the consumer's `npm install`, not here. The check that would catch it is
`smoke:pack`, which installs into a clean consumer; extending it to
`account-ui` requires those three packages to be packable first, so it
is not
in this PR.

Two things to decide before anything is published, neither of which is
mine
to settle:

1. **Licensing.** `account-ui` is MIT. `@comfyorg/object-info-parser` is
   GPL-3.0-only, and npm installs a package's whole `dependencies` graph
   regardless of which entry the consumer imports — so publishing
`shared-frontend-utils` as it stands puts GPL code in the install tree
of
   an MIT package. `@comfyorg/tailwind-utils` and
   `@comfyorg/shared-frontend-utils` carry no `license` field at all.
2. **Whether the dependency is worth keeping.** `account-ui` uses
exactly two
things from those packages: `cn()` and `isInChina()`. Relocating those
two
would drop `shared-frontend-utils` and `object-info-parser` out of the
publishing problem entirely, along with the licensing question above.
That
   is a smaller change than making three more packages publishable.

## AS IS / TO BE

No runtime or UI change. `account-ui`'s source exports are untouched, so
every
in-workspace consumer — the cloud app, `apps/website`,
`apps/billing-web` —
resolves exactly what it resolved before; `publishConfig` applies only
at
publish time.

- **AS IS** — `pnpm pack` on `account-ui` produces a tarball of `src`
that the
shared rules reject, and the package is absent from the pack CI matrix.
- **TO BE** — it produces a `dist` tarball that passes the same
`check:pack` gate as the other three, enforced in CI on every PR
touching
  `packages/account-ui/**`.

## Where this sits in the plan

Billing SDK track FE-2210 ([implementation plan
V2](https://app.notion.com/p/3d86d73d36508152b92cdbdfdfe83ac8));
remaining work on FE-2216 / FE-2217 / FE-2218 / FE-2331.

| Phase | Item | Ticket | Status |
| --- | --- | --- | --- |
| 7 | What belongs in `@comfyorg/account-ui` (ADR-0034) | FE-2218 |
merged (Comfy-Org#17927) |
| 7 | billing-web Vercel deployment config | FE-2218 | merged (Comfy-Org#17788) |
| 7 | Package release workflows + versioning ADR | FE-2218 | merged
(Comfy-Org#17881) |
| 7 | Publish report through a `workflow_run` consumer | FE-2218 | open
(Comfy-Org#17952) |
| 7 | **`account-ui` builds to dist and packs clean** | FE-2218 | **this
PR** |
| 7 | `account-ui` drops its unpublished dependencies, joins
`smoke:pack` | FE-2218 | open (Comfy-Org#17932) |
| 7 | billing-web report-only CSP and framing denial | FE-2218 | merged
(Comfy-Org#17941) |
| 8 ui | Promote the Stripe payment UI into `account-ui` | FE-2331 |
open (Comfy-Org#17934) |
| 8 ui | billing-web checkout, result page, invoices through the portal
| FE-2331 | open (Comfy-Org#17936) |
| 8 ui | billing-web cancel / resubscribe on the subscription surface |
FE-2331 | open (Comfy-Org#17937) |
| 8 ui | billing-web reactivation confirmation, refused subscribe
surfaced | FE-2331 | open (Comfy-Org#17943) |
| 8 ui | billing-web Playwright harness against a mocked Cloud | FE-2218
| open (Comfy-Org#17947) |
| 9 | Status and balance reads on the rail | FE-2216 | open (Comfy-Org#17940) |
| 9 | Plan catalog read on the rail | FE-2216 | open (Comfy-Org#17942) |
| 9 | Capabilities and saved payment methods on the rail | FE-2216 |
open (Comfy-Org#17946) |
| 9 | Legacy `billingOperationStore` removal | FE-2216 | after the flags
flip |
| 7 | First publish (`private` off), Platform install | FE-2218 |
unblocked: Comfy-Org#17881 is on main |
| 7 | Phase 7 host proof: live top-up on billing.comfy.org | FE-2218 |
gated (flags, CNAME, key) |
| 6 | Phase 6 live E2E evidence table | FE-2217 | gated (staging flags)
|

```mermaid
flowchart LR
  ADR["ADR-0034 (merged)"]
  REL["release workflows + ADR-0033 (merged Comfy-Org#17881)"]
  PUBREP["publish report via workflow_run (Comfy-Org#17952)"]
  UIB["account-ui dist build (Comfy-Org#17929)"]
  DEPS["drop unpublished deps (Comfy-Org#17932)"]
  CSP["billing-web CSP (merged Comfy-Org#17941)"]
  PROMO["Stripe payment form in account-ui (Comfy-Org#17934)"]
  CHK["billing-web checkout + result + invoices (Comfy-Org#17936)"]
  SUBW["billing-web cancel / resubscribe (Comfy-Org#17937)"]
  REACT["reactivation confirmation (Comfy-Org#17943)"]
  E2E["billing-web Playwright harness (Comfy-Org#17947)"]
  RD1["status + balance on the rail (Comfy-Org#17940)"]
  RD2["plans on the rail (Comfy-Org#17942)"]
  RD3["capabilities + payment methods on the rail (Comfy-Org#17946)"]
  LEG(["legacy store removal, after the flags"])
  PUB(["first publish: workflows are on main, awaiting go"])
  H(["Phase 7 host proof"])
  E(["Phase 6 evidence"])
  OW{{"OWNER staging flags, CNAME, Stripe key"}}
  ADR --> PROMO
  UIB --> DEPS --> PROMO --> CHK --> SUBW --> REACT --> E2E
  REL --> PUBREP
  REL --> PUB
  DEPS --> PUB
  RD1 --> RD2 --> RD3 --> LEG
  CHK --> H
  CSP --> H
  OW -.-> H
  OW -.-> E
  OW -.-> LEG
  style ADR fill:#d4edda,stroke:#155724
  style REL fill:#d4edda,stroke:#155724
  style CSP fill:#d4edda,stroke:#155724
  style UIB stroke:#0366d6,stroke-width:4px
```
Base automatically changed from fe-2216-reads-on-sdk-rail to main September 17, 2026 22:34
@dante01yoon
dante01yoon dismissed christian-byrne’s stale review September 17, 2026 22:34

The base branch was changed.

@dante01yoon
dante01yoon requested a review from a team September 17, 2026 22:34
@dante01yoon
dante01yoon force-pushed the fe-2216-plans-on-sdk-rail branch from d6df7c0 to afd9907 Compare September 17, 2026 22:36
@dante01yoon

Copy link
Copy Markdown
Collaborator Author

Your approval was dismissed by a rebase, not by a content change.

#17940 squash-merged underneath this PR, so the branch carried commits that no longer exist on main and GitHub marked it DIRTY. I rebased onto 8a1c68fa (d6df7c05 → afd99070) and force-pushed, which dismissed the review.

The diff this PR contributes is byte-identical across the rebase:

git diff 1b9b55a73e..d6df7c051d   # what you approved, against the old base
git diff origin/main..afd990700c  # the same PR now, against main
→ identical, 493 lines each

Verified on the rebased head before pushing: vue-tsc --noEmit clean, and the affected suites pass (40 files, 903 tests across billing/sdk, workspace/composables, cloud/subscription/composables).

Re-stamp when you get a moment. #17946 sits on this one and is already approved.

@coderabbitai

coderabbitai Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor
✅ Action performed

Comments resolved and changes approved.

@dante01yoon
dante01yoon added this pull request to the merge queue Sep 17, 2026
@coderabbitai

coderabbitai Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor
✅ Action performed

Comments resolved and changes approved.

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 17, 2026
@dante01yoon
dante01yoon added this pull request to the merge queue Sep 17, 2026
@dante01yoon

Copy link
Copy Markdown
Collaborator Author

Why this got ejected from the merge queue at 23:57:54Z, and why re-enqueueing will not help on its own.

The batch gh-readonly-queue/main/pr-17942-2c33416e45 failed one job: CI: Website E2E, shard 3/4 (run 35288782192). The single failing assertion is apps/website/e2e/models-performance.spec.ts:56:

[desktop] › catalogue browsing stays within its JavaScript budget
expect(totalBytes).toBeLessThan(1_800_000)
Received: 1802639

2,639 bytes over — 0.15%. Identical on all three attempts, because retries re-run the same build, not a new one.

It is not this PR. The ceiling is already breached on main by itself: run 35264444689 on main at 19:21:58Z failed the same line with Received: 1800461, 461 bytes over. The gate has also failed today on dependabot/npm_and_yarn/types/node-26.5.0, website-agent-guide, benjcooley/test-all-models, qwen-image-2-1-launch-day, mariana/v2-unified-catalogue-design and willie/des-1083-… — branches with nothing in common but the website bundle.

This PR's eight files are all under src/platform/… (billingPlansView, readOnRail, useBillingPlans, billingSdkStore, useWorkspaceBilling). None is reachable from the apps/website bundle, and the per-route delta assertion on line 51 (catalogueBytes < 900_000) passed — only the whole-route ceiling on line 56 tripped. The batch for #17960 on the same base 2c33416e45 passed that job, and main at 2c33416e45 passed it too: the measurement sits within ~0.03% of the ceiling and flips run to run.

So: /models/ is at or over its whole-route JS ceiling on main, and the gate only skips on PRs that do not touch apps/website — the merge queue does not skip it, which is why a billing-only PR meets it for the first time on the way in. Any PR entering the queue right now can be ejected by this.

Not fixing it from here: the remedy is either raising 1_800_000 with a named cause or trimming what / + /models/ pulls in, both in apps/website, and neither belongs in a commit on an approved FE-2216 reader PR. Needs whoever owns the website bundle. Re-enqueueing on its own is a coin flip until the bundle drops back under the line.

Merged via the queue into main with commit 700e421 Sep 18, 2026
113 checks passed
@dante01yoon
dante01yoon deleted the fe-2216-plans-on-sdk-rail branch September 18, 2026 00:24
dante01yoon added a commit that referenced this pull request Sep 18, 2026
…inst a mocked Cloud and identity (#17947)

Linear FE-2218. Stacked on #17943 → #17937 → #17936 → #17934 → #17932 →
#17929; merge after them. Closes the "browser tests" half of the last
open line in the hosted-billing TDD's *Can start immediately* list
(#17941 closed the CSP half).

## Why

`apps/billing-web` had unit tests only. Every view is covered with a
fake billing client handed in through `provide`, which proves the views
but not the app: that a customer arriving on an entry link is taken
through sign-in and back, that the session mint carries the identity
token and the reads carry the workspace token, that a hosted redirect
actually leaves the page, and that a bad link explains itself rather
than bouncing. Those are the things a preview deployment gets checked
for by hand before a promotion, and nothing ran them on every PR.

`browser_tests/` is the cloud app's harness — `comfyPage`, a ComfyUI
backend, its fixtures — and cannot drive this origin. #17936 gave the
app a checkout, a result page and the portal hand-off, which is what a
harness needs to drive.

## How

A Playwright project of the app's own, `apps/billing-web/e2e`, against a
**production build** of the app with the `test` Cloud family, a Firebase
project that exists only in the fixtures, and no Stripe key — so every
checkout routes hosted and no provider script loads. The build takes its
variables from the suite, never from a local `.env`.

**Everything the app can reach is answered in-process**
(`e2e/fixtures/cloud.ts`): the two Firebase endpoints an email sign-in
touches, the token refresh, the Cloud token exchange, every billing
route the SDK reads or commands, and the page a portal redirect lands
on. A catch-all registered first refuses any other origin, so a passing
spec has not contacted a real service. Each answer carries the CORS
headers a real Cloud would and preflights are answered, because to the
browser these are cross-origin responses.

`cloud.scenario` is what the mocked Cloud holds; a spec mutates it
before navigating or from a `cloud.reply` handler to model a server-side
change (the cancel spec flips `can_cancel` to `can_reactivate` when the
cancel lands). `cloud.requests` records what the app sent.
`signIn(path)` opens an entry link, goes through the email form and
resolves once the app is back on that link.

**15 specs**, ~4 s wall clock:

| Spec | Proves |
| --- | --- |
| `sign-in` | entry link → sign-in with `returnTo` → back on the intent;
the mint carries the Firebase token, reads carry the workspace JWT; a
reload restores without the form |
| `subscription` | catalog with the current plan marked and priced;
choosing a plan posts `preview-subscribe` and continues to checkout; a
checkout link with no plan sends the customer to choose one; cancel
needs a confirmation step, posts once, polls the operation and then
offers resubscribe; only server-allowed actions render |
| `result` | a pending `billing_op_id` on status is recovered and
reported on the return link as `billing_result=success&billing_ref=…`;
nothing pending says so |
| `invoices`, `payment-methods` | the portal hand-off leaves the page
with `return_url` set to the page; saved cards listed with the default
marked; empty state |
| `entry` | unknown product, unregistered return target, unknown intent
each explain themselves instead of redirecting |

**CI**: `CI: Billing Web E2E` runs in the Playwright container on every
PR that touches the app or a package, with the same gate job shape as
the unit workflow; the report is uploaded on failure.

## Verification

- `pnpm --filter @comfyorg/billing-web test:e2e`: 15 passed.
- `pnpm --filter @comfyorg/billing-web typecheck`, `lint`, `pnpm knip`
clean; `e2e/` is in the app's `tsconfig` and lint scope.

## AS IS / TO BE

No product change.

- **AS IS** — the hosted surfaces are proven view by view against a fake
client; the app as deployed is checked by hand on a preview.
- **TO BE** — every PR drives the deployed shape of the app in a
browser: sign-in, session, reads, commands, redirects and entry errors,
with no network beyond the test.

## Where this sits in the plan

Billing SDK track FE-2210 ([implementation plan
V2](https://app.notion.com/p/3d86d73d36508152b92cdbdfdfe83ac8));
remaining work on FE-2216 / FE-2217 / FE-2218 / FE-2331.

| Phase | Item | Ticket | Status |
| --- | --- | --- | --- |
| 7 | What belongs in `@comfyorg/account-ui` (ADR-0034) | FE-2218 |
merged (#17927) |
| 7 | billing-web Vercel deployment config | FE-2218 | merged (#17788) |
| 7 | Package release workflows + versioning ADR | FE-2218 | merged
(#17881) |
| 7 | Publish report through a `workflow_run` consumer | FE-2218 | open
(#17952) |
| 7 | `account-ui` builds to dist and packs clean | FE-2218 | open
(#17929) |
| 7 | `account-ui` drops its unpublished dependencies, joins
`smoke:pack` | FE-2218 | open (#17932) |
| 7 | billing-web report-only CSP and framing denial | FE-2218 | merged
(#17941) |
| 8 ui | Promote the Stripe payment UI into `account-ui` | FE-2331 |
open (#17934) |
| 8 ui | billing-web checkout, result page, invoices through the portal
| FE-2331 | open (#17936) |
| 8 ui | billing-web cancel / resubscribe on the subscription surface |
FE-2331 | open (#17937) |
| 8 ui | billing-web reactivation confirmation, refused subscribe
surfaced | FE-2331 | open (#17943) |
| 8 ui | **billing-web Playwright harness against a mocked Cloud** |
FE-2218 | **this PR** |
| 9 | Status and balance reads on the rail | FE-2216 | open (#17940) |
| 9 | Plan catalog read on the rail | FE-2216 | open (#17942) |
| 9 | Capabilities and saved payment methods on the rail | FE-2216 |
open (#17946) |
| 9 | Legacy `billingOperationStore` removal | FE-2216 | after the flags
flip |
| 7 | First publish (`private` off), Platform install | FE-2218 |
unblocked: #17881 is on main |
| 7 | Phase 7 host proof: live top-up on billing.comfy.org | FE-2218 |
gated (flags, CNAME, key) |
| 6 | Phase 6 live E2E evidence table | FE-2217 | gated (staging flags)
|

```mermaid
flowchart LR
  ADR["ADR-0034 (merged)"]
  REL["release workflows + ADR-0033 (merged #17881)"]
  PUBREP["publish report via workflow_run (#17952)"]
  UIB["account-ui dist build (#17929)"]
  DEPS["drop unpublished deps (#17932)"]
  CSP["billing-web CSP (merged #17941)"]
  PROMO["Stripe payment form in account-ui (#17934)"]
  CHK["billing-web checkout + result + invoices (#17936)"]
  SUBW["billing-web cancel / resubscribe (#17937)"]
  REACT["reactivation confirmation (#17943)"]
  E2E["billing-web Playwright harness (#17947)"]
  RD1["status + balance on the rail (#17940)"]
  RD2["plans on the rail (#17942)"]
  RD3["capabilities + payment methods on the rail (#17946)"]
  LEG(["legacy store removal, after the flags"])
  PUB(["first publish: workflows are on main, awaiting go"])
  H(["Phase 7 host proof"])
  E(["Phase 6 evidence"])
  OW{{"OWNER staging flags, CNAME, Stripe key"}}
  ADR --> PROMO
  UIB --> DEPS --> PROMO --> CHK --> SUBW --> REACT --> E2E
  REL --> PUBREP
  REL --> PUB
  DEPS --> PUB
  RD1 --> RD2 --> RD3 --> LEG
  CHK --> H
  CSP --> H
  OW -.-> H
  OW -.-> E
  OW -.-> LEG
  style ADR fill:#d4edda,stroke:#155724
  style REL fill:#d4edda,stroke:#155724
  style CSP fill:#d4edda,stroke:#155724
  style E2E stroke:#0366d6,stroke-width:4px
```
pull Bot pushed a commit to Penguinjanator/ComfyUI_frontend that referenced this pull request Sep 18, 2026
…s when a rail is on (Comfy-Org#17940)

Linear FE-2216. Independent of the billing-web stack; based on `main`.

## Why

Since Comfy-Org#17665 and Comfy-Org#17853 the cloud app's billing *writes* run on the SDK
rail behind the two flags, but its *reads* never moved:
`useWorkspaceBilling.fetchStatus` and `fetchBalance` still call
`workspaceApi` directly. `createBillingSdk` builds the status, credits,
capabilities, plans and payment-methods readers and disposes them, and
nothing in the app reads through them —
`sdk.paymentMethods.invalidate()` is called with no reader behind it.

That is a real inconsistency, not a tidiness gap. After a subscribe on
the rail, `refreshAfterSubscriptionChange` reads through the SDK's
`credits` and `status` readers (the commands refresh them on success),
then `reconcileBillingStateAfterSubscribe` re-reads the same two things
through the workspace client. The panels render the second read. Two
clients, two caches, one screen.

## How

**A read rail, chosen like the write rails.** `useBillingReadRail()`
returns the SDK store when *either* `billingSdkTopupRailEnabled` or
`billingSdkSubscriptionRailEnabled` is on, null otherwise, and is read
once per fetch and held — a flag flip mid-read must not start on one
client and publish through the other. Either write rail turns the reads
on because a status the SDK's lifecycle recovers from, or a balance its
top-up refreshed, should be the state the panels read, or the rail
settles one thing and the screen shows another.

**Two reads on the store.** `readStatus()` and `readBalance()` wrap
`sdk.status.read()` / `sdk.credits.read()` and return `BillingResult<…>`
in the host's own response types.

**One projection, because the generated types disagree with each
other.** `zBillingStatusResponse` coerces the credit stop's
`credits_monthly` and `stop_usd` (int64) to `bigint`, while the
generated TypeScript type the host reads them through says `number`.
`projectBillingStatus` reads the two back as numbers — whole units
bounded far inside the safe range, the way the core already reads cents
and the capability revision — on both `team_credit_stop` and
`scheduled_change.team_credit_stop`. Balance needs no projection; its
micros are plain numbers in both.

**`fetchStatus` / `fetchBalance`** pick the rail, then run exactly as
before: the same stale-read guards, the same `resumePendingOperation`,
the same `isLoading` / `error` handling. On the rail a `SUPERSEDED`
result is treated as a stale read — nothing published, nothing reported,
which is what a legacy read that lost a workspace race already does. Any
other failure throws a `WorkspaceApiError` carrying the code, so
`initialize`, `retryBillingRead` and
`reconcileBillingStateAfterSubscribe` keep their contract (they expect a
rejection) and `error.value` carries the code.

`fetchPlans` is deliberately not on this PR: the plans catalog is
bigint-heavy (`price_cents`, `credits_cents`, `max_seats`, the seat
summary) and the app's `Plan` type is consumed across the pricing
surfaces, so that projection deserves its own review.

## Review focus

**Turning on the top-up rail now also moves status reads to the SDK.**
Two existing tests in `useWorkspaceBilling.sdk.test.ts` asserted the SDK
was *not* built when only a subscription operation was pending; that
premise no longer holds, since the read itself builds the store. They
now assert what they were really guarding — that `lifecycle.recover`
does not run for a subscription — and stub the SDK status reader instead
of the workspace client.

**The thrown error is a `WorkspaceApiError`, not a bare `Error`.**
`comfy/no-new-error-throw` forbids the latter in production code, and
the class is what the legacy client throws on the same path, so
`error.value` and `isAlreadyInRequestedState` see the shape they already
handle.

## Verification

```
pnpm vitest run useWorkspaceBilling.{,sdk.,subscriptionRail.}test.ts \
  billingSdkStore.test.ts billingStatusView.test.ts useTopupOperation.test.ts
  -> 6 files, 173 tests
pnpm typecheck / eslint / oxlint / knip   # clean
```

New: `billingStatusView.test.ts` (2) pins the bigint projection and the
null pass-through; five read-rail scenarios in
`useWorkspaceBilling.sdk.test.ts` — legacy path with the flag off,
status and balance through the readers, `SUPERSEDED` leaves state and
error untouched, a failed read surfaces the code and rejects.

## AS IS / TO BE

No UI change. Both flags are at 0% in staging and prod, so nothing reads
differently until they move.

- **AS IS** — flag on: writes through the SDK, reads through the
workspace client; a subscribe refreshes the SDK's readers, then the
panels re-read and render the legacy client's answer.
- **TO BE** — flag on: writes and the two reads on the same readers; the
refresh a command performs is the read the panels render. Flag off:
byte-for-byte the legacy path.

## Where this sits in the plan

Billing SDK track FE-2210 ([implementation plan
V2](https://app.notion.com/p/3d86d73d36508152b92cdbdfdfe83ac8));
remaining work on FE-2216 / FE-2217 / FE-2218 / FE-2331.

| Phase | Item | Ticket | Status |
| --- | --- | --- | --- |
| 7 | What belongs in `@comfyorg/account-ui` (ADR-0034) | FE-2218 |
merged (Comfy-Org#17927) |
| 7 | billing-web Vercel deployment config | FE-2218 | merged (Comfy-Org#17788) |
| 7 | Package release workflows + versioning ADR | FE-2218 | merged
(Comfy-Org#17881) |
| 7 | Publish report through a `workflow_run` consumer | FE-2218 | open
(Comfy-Org#17952) |
| 7 | `account-ui` builds to dist and packs clean | FE-2218 | open
(Comfy-Org#17929) |
| 7 | `account-ui` drops its unpublished dependencies, joins
`smoke:pack` | FE-2218 | open (Comfy-Org#17932) |
| 7 | billing-web report-only CSP and framing denial | FE-2218 | merged
(Comfy-Org#17941) |
| 8 ui | Promote the Stripe payment UI into `account-ui` | FE-2331 |
open (Comfy-Org#17934) |
| 8 ui | billing-web checkout, result page, invoices through the portal
| FE-2331 | open (Comfy-Org#17936) |
| 8 ui | billing-web cancel / resubscribe on the subscription surface |
FE-2331 | open (Comfy-Org#17937) |
| 8 ui | billing-web reactivation confirmation, refused subscribe
surfaced | FE-2331 | open (Comfy-Org#17943) |
| 8 ui | billing-web Playwright harness against a mocked Cloud | FE-2218
| open (Comfy-Org#17947) |
| 9 | **Status and balance reads on the rail** | FE-2216 | **this PR** |
| 9 | Plan catalog read on the rail | FE-2216 | open (Comfy-Org#17942) |
| 9 | Capabilities and saved payment methods on the rail | FE-2216 |
open (Comfy-Org#17946) |
| 9 | Legacy `billingOperationStore` removal | FE-2216 | after the flags
flip |
| 7 | First publish (`private` off), Platform install | FE-2218 |
unblocked: Comfy-Org#17881 is on main |
| 7 | Phase 7 host proof: live top-up on billing.comfy.org | FE-2218 |
gated (flags, CNAME, key) |
| 6 | Phase 6 live E2E evidence table | FE-2217 | gated (staging flags)
|

```mermaid
flowchart LR
  ADR["ADR-0034 (merged)"]
  REL["release workflows + ADR-0033 (merged Comfy-Org#17881)"]
  PUBREP["publish report via workflow_run (Comfy-Org#17952)"]
  UIB["account-ui dist build (Comfy-Org#17929)"]
  DEPS["drop unpublished deps (Comfy-Org#17932)"]
  CSP["billing-web CSP (merged Comfy-Org#17941)"]
  PROMO["Stripe payment form in account-ui (Comfy-Org#17934)"]
  CHK["billing-web checkout + result + invoices (Comfy-Org#17936)"]
  SUBW["billing-web cancel / resubscribe (Comfy-Org#17937)"]
  REACT["reactivation confirmation (Comfy-Org#17943)"]
  E2E["billing-web Playwright harness (Comfy-Org#17947)"]
  RD1["status + balance on the rail (Comfy-Org#17940)"]
  RD2["plans on the rail (Comfy-Org#17942)"]
  RD3["capabilities + payment methods on the rail (Comfy-Org#17946)"]
  LEG(["legacy store removal, after the flags"])
  PUB(["first publish: workflows are on main, awaiting go"])
  H(["Phase 7 host proof"])
  E(["Phase 6 evidence"])
  OW{{"OWNER staging flags, CNAME, Stripe key"}}
  ADR --> PROMO
  UIB --> DEPS --> PROMO --> CHK --> SUBW --> REACT --> E2E
  REL --> PUBREP
  REL --> PUB
  DEPS --> PUB
  RD1 --> RD2 --> RD3 --> LEG
  CHK --> H
  CSP --> H
  OW -.-> H
  OW -.-> E
  OW -.-> LEG
  style ADR fill:#d4edda,stroke:#155724
  style REL fill:#d4edda,stroke:#155724
  style CSP fill:#d4edda,stroke:#155724
  style RD1 stroke:#0366d6,stroke-width:4px
```
pull Bot pushed a commit to Penguinjanator/ComfyUI_frontend that referenced this pull request Sep 18, 2026
…ndencies (Comfy-Org#17932)

Linear FE-2218. Stacked on Comfy-Org#17929 — review that first.

## Why

Comfy-Org#17929 makes `@comfyorg/account-ui` pack a well-formed `dist` tarball,
and
notes that this is necessary and not sufficient: the package still could
not be
installed from npm, because two of its three runtime dependencies are
unpublished workspace packages that export `./src/*.ts` and carry no
`files`
or `publishConfig`.

`npm view` confirms the state — of the whole `@comfyorg` scope only
`design-system@1.1.0` exists on the registry.

The obstacle was smaller than it looked. `account-ui` used exactly two
things
from those packages:

| import | from | used by |
| --- | --- | --- |
| `cn()` | `@comfyorg/tailwind-utils` | `PasswordRules.vue` |
| `isInChina()` | `@comfyorg/shared-frontend-utils/networkUtil` |
`regionGate.ts` |

Making three more packages publishable — `tailwind-utils`,
`shared-frontend-utils`, and `object-info-parser` beneath it — was the
alternative. It also carried a licensing question: `object-info-parser`
is
GPL-3.0-only, `account-ui` is MIT, and npm installs a package's whole
`dependencies` graph regardless of which entry the consumer imports.
Removing
the two imports removes that question rather than answering it.

## How

**`cn()` was doing nothing here.** Every call was `cn(!checks.x &&
unmetClass)`
— one class source, nothing to merge, so `tailwind-merge`'s conflict
resolution had no conflicts to resolve and `clsx` was collapsing a
single
value. The five bindings become `:class="checks.x ? undefined :
unmetClass"`.
This is not the `:class="[]"` array-merge the guidelines prohibit: there
is no
second class on the element and nothing to merge. If a class ever joins
them,
`cn()` comes back with the host's copy.

**`isInChina()` moves to the package that is its only consumer.** New
file
`packages/account-ui/src/auth/regionProbe.ts`, carrying the region half
of
`networkUtil.ts` verbatim — `getClientCountry`, the trace parse, the
bounded
`fetchWithin`, the Google/Baidu fallback. `useRegionGate` keeps its
signature,
so no call site changes.

Two details worth knowing:

- **It never needed axios.** `isInChina` is `fetch`, `navigator` and
`performance` only; the axios import at the top of `networkUtil.ts`
belongs
to `checkUrlReachable`, which stays behind for `UrlInput.vue`. Importing
the
module for the region probe was pulling in an HTTP client it does not
use.
- **`getClientCountry` and `isInChina` had exactly one production caller
between them**, `regionGate.ts`. Everything else in the grep was a test
  mocking the module. So this is a move, not a split.

`./auth/regionProbe` becomes a published subpath. It is the seam three
host
test suites already control — `CloudSignupView.test.ts`,
`SignInContent.test.ts` and the website's `AuthSignIn.test.ts` each mock
the
probe to drive `useRegionGate` through its deferred, hanging and
rejecting
paths — and they cannot pass an argument through a rendered component
tree, so
the module has to be addressable. Their `vi.mock` specifiers move with
it.

## Result

`account-ui`'s runtime dependencies are now `@comfyorg/account-core`
alone,
which Comfy-Org#17882 already made publishable. The remaining gate on publishing
is
flipping `private` on those two, not making more packages publishable.

## Verification

```
pnpm -C packages/account-ui test              # 17 files, 97 tests
pnpm -C packages/shared-frontend-utils test   # 4 files, 126 tests
pnpm vitest run src/platform/cloud/onboarding/CloudSignupView.test.ts \
                src/components/dialog/content/SignInContent.test.ts   # 18 tests
pnpm -C apps/website exec vitest run src/components/auth/AuthSignIn.test.ts  # 73 tests
pnpm -C packages/account-core run check:pack "$PWD/packages/account-ui"
  -> @comfyorg/account-ui: 30 packed files are publishable
pnpm typecheck / pnpm lint / pnpm knip        # clean
```

The moved tests are unchanged apart from their import path, so the
region
probe keeps the coverage it had in `shared-frontend-utils`.

## AS IS / TO BE

No runtime or UI change. `PasswordRules` renders the same markup — the
unmet
class is applied on exactly the same condition — and `useRegionGate`
resolves
on the same probe with the same signature.

- **AS IS** — `@comfyorg/account-ui` declares three runtime
dependencies, two
  of them unpublishable, one of those transitively GPL-3.0-only.
- **TO BE** — one runtime dependency, already publishable.

## Where this sits in the plan

Billing SDK track FE-2210 ([implementation plan
V2](https://app.notion.com/p/3d86d73d36508152b92cdbdfdfe83ac8));
remaining work on FE-2216 / FE-2217 / FE-2218 / FE-2331.

| Phase | Item | Ticket | Status |
| --- | --- | --- | --- |
| 7 | What belongs in `@comfyorg/account-ui` (ADR-0034) | FE-2218 |
merged (Comfy-Org#17927) |
| 7 | billing-web Vercel deployment config | FE-2218 | merged (Comfy-Org#17788) |
| 7 | Package release workflows + versioning ADR | FE-2218 | merged
(Comfy-Org#17881) |
| 7 | Publish report through a `workflow_run` consumer | FE-2218 | open
(Comfy-Org#17952) |
| 7 | `account-ui` builds to dist and packs clean | FE-2218 | open
(Comfy-Org#17929) |
| 7 | **`account-ui` drops its unpublished dependencies, joins
`smoke:pack`** | FE-2218 | **this PR** |
| 7 | billing-web report-only CSP and framing denial | FE-2218 | merged
(Comfy-Org#17941) |
| 8 ui | Promote the Stripe payment UI into `account-ui` | FE-2331 |
open (Comfy-Org#17934) |
| 8 ui | billing-web checkout, result page, invoices through the portal
| FE-2331 | open (Comfy-Org#17936) |
| 8 ui | billing-web cancel / resubscribe on the subscription surface |
FE-2331 | open (Comfy-Org#17937) |
| 8 ui | billing-web reactivation confirmation, refused subscribe
surfaced | FE-2331 | open (Comfy-Org#17943) |
| 8 ui | billing-web Playwright harness against a mocked Cloud | FE-2218
| open (Comfy-Org#17947) |
| 9 | Status and balance reads on the rail | FE-2216 | open (Comfy-Org#17940) |
| 9 | Plan catalog read on the rail | FE-2216 | open (Comfy-Org#17942) |
| 9 | Capabilities and saved payment methods on the rail | FE-2216 |
open (Comfy-Org#17946) |
| 9 | Legacy `billingOperationStore` removal | FE-2216 | after the flags
flip |
| 7 | First publish (`private` off), Platform install | FE-2218 |
unblocked: Comfy-Org#17881 is on main |
| 7 | Phase 7 host proof: live top-up on billing.comfy.org | FE-2218 |
gated (flags, CNAME, key) |
| 6 | Phase 6 live E2E evidence table | FE-2217 | gated (staging flags)
|

```mermaid
flowchart LR
  ADR["ADR-0034 (merged)"]
  REL["release workflows + ADR-0033 (merged Comfy-Org#17881)"]
  PUBREP["publish report via workflow_run (Comfy-Org#17952)"]
  UIB["account-ui dist build (Comfy-Org#17929)"]
  DEPS["drop unpublished deps (Comfy-Org#17932)"]
  CSP["billing-web CSP (merged Comfy-Org#17941)"]
  PROMO["Stripe payment form in account-ui (Comfy-Org#17934)"]
  CHK["billing-web checkout + result + invoices (Comfy-Org#17936)"]
  SUBW["billing-web cancel / resubscribe (Comfy-Org#17937)"]
  REACT["reactivation confirmation (Comfy-Org#17943)"]
  E2E["billing-web Playwright harness (Comfy-Org#17947)"]
  RD1["status + balance on the rail (Comfy-Org#17940)"]
  RD2["plans on the rail (Comfy-Org#17942)"]
  RD3["capabilities + payment methods on the rail (Comfy-Org#17946)"]
  LEG(["legacy store removal, after the flags"])
  PUB(["first publish: workflows are on main, awaiting go"])
  H(["Phase 7 host proof"])
  E(["Phase 6 evidence"])
  OW{{"OWNER staging flags, CNAME, Stripe key"}}
  ADR --> PROMO
  UIB --> DEPS --> PROMO --> CHK --> SUBW --> REACT --> E2E
  REL --> PUBREP
  REL --> PUB
  DEPS --> PUB
  RD1 --> RD2 --> RD3 --> LEG
  CHK --> H
  CSP --> H
  OW -.-> H
  OW -.-> E
  OW -.-> LEG
  style ADR fill:#d4edda,stroke:#155724
  style REL fill:#d4edda,stroke:#155724
  style CSP fill:#d4edda,stroke:#155724
  style DEPS stroke:#0366d6,stroke-width:4px
```
pull Bot pushed a commit to Penguinjanator/ComfyUI_frontend that referenced this pull request Sep 18, 2026
…17971)

## Summary

Website E2E on tip `700e421` (Comfy-Org#17942) failed `models-performance`
catalogue JS budget: same-origin decoded script bytes **1_802_639** vs
limit **1_800_000** (stable across 3 retries). Dig showed **Comfy-Org#17942 does
not touch `apps/website`**; the tip rebuild of the website tree already
near the ceiling after Comfy-Org#17951 (shared `translations` / workshop copy
loaded on `/models/` via layout). Not accidental billing-rail bloat.
This raises the whole-route total to **1_810_000** (~7 KB headroom over
tip). Catalogue delta limit `900_000` unchanged. No product change.

## Verification

```bash
pnpm exec playwright test apps/website/e2e/models-performance.spec.ts --grep "catalogue browsing stays within its JavaScript budget"
```

Expected: total same-origin decoded JS on `/models/` &lt; 1_810_000.

Failing-run evidence:
https://github.com/Comfy-Org/ComfyUI_frontend/actions/runs/35291084130
(1_802_639 ×3).
pull Bot pushed a commit to Penguinjanator/ComfyUI_frontend that referenced this pull request Sep 18, 2026
…rough the SDK readers when a rail is on (Comfy-Org#17946)

Linear FE-2216. Stacked on Comfy-Org#17942 (plans) → Comfy-Org#17940 (status, balance);
merge after both.

## Why

With a write rail on, the cloud app reads status, balance and plans
through the SDK's readers (Comfy-Org#17940, Comfy-Org#17942) so the panels show the state
the rail settled. Two reads still went around the SDK: the capabilities
snapshot (`useBillingCapabilities`) and the saved payment methods
(`useHasSavedPaymentMethod`, the checkout's default-card pick). The
shared top-up flow in `@comfyorg/account-ui` reads capabilities through
the SDK's own cache, so with the rail on the app and the shared flow
could hold two different capability snapshots for one workspace, and a
saved-card list the SDK invalidated after a portal round-trip stayed as
the legacy client last read it.

## How

`BillingReadRail` gains `readCapabilities(options)` and
`readPaymentMethods()`; the SDK store serves both from its readers.
`projectBillingCapabilities` turns the SDK snapshot back into the
`BillingCapabilitiesResponse` the composable already holds: `expires_at`
is the instant the SDK stops serving the snapshot, `resolved_for` is the
scope it was resolved for. No int64 in either body, so no safe-range
projection this time.

The capabilities composable keeps every push concern it owns — the
expiry timer, visibility gating, backoff, the revision listener — and
only swaps the read underneath. A first read for a scope takes the SDK's
cached snapshot, which is what the shared top-up flow just read; a
revalidation, which the composable only starts when a mutation or the
timer said the snapshot is stale, passes `forceRefresh` so the SDK cache
cannot answer it.

`readOnRail` now carries the failure's `httpStatus` into the thrown
`WorkspaceApiError`, so the composable's denial rule (401/403 fails
closed, no retry) reads the same on either rail. A `SUPERSEDED` read —
the SDK's scope moved on under the read while the stores' did not —
retries on the outage timer without a report, because the next read
answers for whichever scope settles.

The two saved-card readers pick the rail once per fetch, like every
other read.

## Verification

- `billingCapabilitiesView.test.ts`: snapshot → response projection.
- `useBillingCapabilities.test.ts`: rail read applied without the legacy
client; revalidation after a mutation revision bypasses the SDK cache;
`ACCESS_DENIED`/403 fails closed with no retry and `REQUEST_FAILED`/503
keeps the owner fallback and retries, as the legacy statuses do; a
superseded read retries unreported.
- `useHasSavedPaymentMethod.test.ts`, `useSubscriptionCheckout.test.ts`:
default-card pick through the rail; superseded → unknown; failed rail
read reported with its status.
- `pnpm typecheck`, `pnpm knip`, lint clean.

## AS IS / TO BE

No user-visible change while both rail flags are off. With a rail on:

- **AS IS** — capabilities and saved cards read by the legacy client;
the shared top-up flow and the app can disagree on what the customer may
do.
- **TO BE** — every billing read the app makes with a rail on comes from
the SDK's readers; one snapshot per scope.

## Where this sits in the plan

Billing SDK track FE-2210 ([implementation plan
V2](https://app.notion.com/p/3d86d73d36508152b92cdbdfdfe83ac8));
remaining work on FE-2216 / FE-2217 / FE-2218 / FE-2331.

| Phase | Item | Ticket | Status |
| --- | --- | --- | --- |
| 7 | What belongs in `@comfyorg/account-ui` (ADR-0034) | FE-2218 |
merged (Comfy-Org#17927) |
| 7 | billing-web Vercel deployment config | FE-2218 | merged (Comfy-Org#17788) |
| 7 | Package release workflows + versioning ADR | FE-2218 | merged
(Comfy-Org#17881) |
| 7 | Publish report through a `workflow_run` consumer | FE-2218 | open
(Comfy-Org#17952) |
| 7 | `account-ui` builds to dist and packs clean | FE-2218 | open
(Comfy-Org#17929) |
| 7 | `account-ui` drops its unpublished dependencies, joins
`smoke:pack` | FE-2218 | open (Comfy-Org#17932) |
| 7 | billing-web report-only CSP and framing denial | FE-2218 | merged
(Comfy-Org#17941) |
| 8 ui | Promote the Stripe payment UI into `account-ui` | FE-2331 |
open (Comfy-Org#17934) |
| 8 ui | billing-web checkout, result page, invoices through the portal
| FE-2331 | open (Comfy-Org#17936) |
| 8 ui | billing-web cancel / resubscribe on the subscription surface |
FE-2331 | open (Comfy-Org#17937) |
| 8 ui | billing-web reactivation confirmation, refused subscribe
surfaced | FE-2331 | open (Comfy-Org#17943) |
| 8 ui | billing-web Playwright harness against a mocked Cloud | FE-2218
| open (Comfy-Org#17947) |
| 9 | Status and balance reads on the rail | FE-2216 | open (Comfy-Org#17940) |
| 9 | Plan catalog read on the rail | FE-2216 | open (Comfy-Org#17942) |
| 9 | **Capabilities and saved payment methods on the rail** | FE-2216 |
**this PR** |
| 9 | Legacy `billingOperationStore` removal | FE-2216 | after the flags
flip |
| 7 | First publish (`private` off), Platform install | FE-2218 |
unblocked: Comfy-Org#17881 is on main |
| 7 | Phase 7 host proof: live top-up on billing.comfy.org | FE-2218 |
gated (flags, CNAME, key) |
| 6 | Phase 6 live E2E evidence table | FE-2217 | gated (staging flags)
|

```mermaid
flowchart LR
  ADR["ADR-0034 (merged)"]
  REL["release workflows + ADR-0033 (merged Comfy-Org#17881)"]
  PUBREP["publish report via workflow_run (Comfy-Org#17952)"]
  UIB["account-ui dist build (Comfy-Org#17929)"]
  DEPS["drop unpublished deps (Comfy-Org#17932)"]
  CSP["billing-web CSP (merged Comfy-Org#17941)"]
  PROMO["Stripe payment form in account-ui (Comfy-Org#17934)"]
  CHK["billing-web checkout + result + invoices (Comfy-Org#17936)"]
  SUBW["billing-web cancel / resubscribe (Comfy-Org#17937)"]
  REACT["reactivation confirmation (Comfy-Org#17943)"]
  E2E["billing-web Playwright harness (Comfy-Org#17947)"]
  RD1["status + balance on the rail (Comfy-Org#17940)"]
  RD2["plans on the rail (Comfy-Org#17942)"]
  RD3["capabilities + payment methods on the rail (Comfy-Org#17946)"]
  LEG(["legacy store removal, after the flags"])
  PUB(["first publish: workflows are on main, awaiting go"])
  H(["Phase 7 host proof"])
  E(["Phase 6 evidence"])
  OW{{"OWNER staging flags, CNAME, Stripe key"}}
  ADR --> PROMO
  UIB --> DEPS --> PROMO --> CHK --> SUBW --> REACT --> E2E
  REL --> PUBREP
  REL --> PUB
  DEPS --> PUB
  RD1 --> RD2 --> RD3 --> LEG
  CHK --> H
  CSP --> H
  OW -.-> H
  OW -.-> E
  OW -.-> LEG
  style ADR fill:#d4edda,stroke:#155724
  style REL fill:#d4edda,stroke:#155724
  style CSP fill:#d4edda,stroke:#155724
  style RD3 stroke:#0366d6,stroke-width:4px
```
dante01yoon added a commit that referenced this pull request Sep 18, 2026
…inst a mocked Cloud and identity (#17947)

Linear FE-2218. Stacked on #17943 → #17937 → #17936 → #17934 → #17932 →
#17929; merge after them. Closes the "browser tests" half of the last
open line in the hosted-billing TDD's *Can start immediately* list
(#17941 closed the CSP half).

## Why

`apps/billing-web` had unit tests only. Every view is covered with a
fake billing client handed in through `provide`, which proves the views
but not the app: that a customer arriving on an entry link is taken
through sign-in and back, that the session mint carries the identity
token and the reads carry the workspace token, that a hosted redirect
actually leaves the page, and that a bad link explains itself rather
than bouncing. Those are the things a preview deployment gets checked
for by hand before a promotion, and nothing ran them on every PR.

`browser_tests/` is the cloud app's harness — `comfyPage`, a ComfyUI
backend, its fixtures — and cannot drive this origin. #17936 gave the
app a checkout, a result page and the portal hand-off, which is what a
harness needs to drive.

## How

A Playwright project of the app's own, `apps/billing-web/e2e`, against a
**production build** of the app with the `test` Cloud family, a Firebase
project that exists only in the fixtures, and no Stripe key — so every
checkout routes hosted and no provider script loads. The build takes its
variables from the suite, never from a local `.env`.

**Everything the app can reach is answered in-process**
(`e2e/fixtures/cloud.ts`): the two Firebase endpoints an email sign-in
touches, the token refresh, the Cloud token exchange, every billing
route the SDK reads or commands, and the page a portal redirect lands
on. A catch-all registered first refuses any other origin, so a passing
spec has not contacted a real service. Each answer carries the CORS
headers a real Cloud would and preflights are answered, because to the
browser these are cross-origin responses.

`cloud.scenario` is what the mocked Cloud holds; a spec mutates it
before navigating or from a `cloud.reply` handler to model a server-side
change (the cancel spec flips `can_cancel` to `can_reactivate` when the
cancel lands). `cloud.requests` records what the app sent.
`signIn(path)` opens an entry link, goes through the email form and
resolves once the app is back on that link.

**15 specs**, ~4 s wall clock:

| Spec | Proves |
| --- | --- |
| `sign-in` | entry link → sign-in with `returnTo` → back on the intent;
the mint carries the Firebase token, reads carry the workspace JWT; a
reload restores without the form |
| `subscription` | catalog with the current plan marked and priced;
choosing a plan posts `preview-subscribe` and continues to checkout; a
checkout link with no plan sends the customer to choose one; cancel
needs a confirmation step, posts once, polls the operation and then
offers resubscribe; only server-allowed actions render |
| `result` | a pending `billing_op_id` on status is recovered and
reported on the return link as `billing_result=success&billing_ref=…`;
nothing pending says so |
| `invoices`, `payment-methods` | the portal hand-off leaves the page
with `return_url` set to the page; saved cards listed with the default
marked; empty state |
| `entry` | unknown product, unregistered return target, unknown intent
each explain themselves instead of redirecting |

**CI**: `CI: Billing Web E2E` runs in the Playwright container on every
PR that touches the app or a package, with the same gate job shape as
the unit workflow; the report is uploaded on failure.

## Verification

- `pnpm --filter @comfyorg/billing-web test:e2e`: 15 passed.
- `pnpm --filter @comfyorg/billing-web typecheck`, `lint`, `pnpm knip`
clean; `e2e/` is in the app's `tsconfig` and lint scope.

## AS IS / TO BE

No product change.

- **AS IS** — the hosted surfaces are proven view by view against a fake
client; the app as deployed is checked by hand on a preview.
- **TO BE** — every PR drives the deployed shape of the app in a
browser: sign-in, session, reads, commands, redirects and entry errors,
with no network beyond the test.

## Where this sits in the plan

Billing SDK track FE-2210 ([implementation plan
V2](https://app.notion.com/p/3d86d73d36508152b92cdbdfdfe83ac8));
remaining work on FE-2216 / FE-2217 / FE-2218 / FE-2331.

| Phase | Item | Ticket | Status |
| --- | --- | --- | --- |
| 7 | What belongs in `@comfyorg/account-ui` (ADR-0034) | FE-2218 |
merged (#17927) |
| 7 | billing-web Vercel deployment config | FE-2218 | merged (#17788) |
| 7 | Package release workflows + versioning ADR | FE-2218 | merged
(#17881) |
| 7 | Publish report through a `workflow_run` consumer | FE-2218 | open
(#17952) |
| 7 | `account-ui` builds to dist and packs clean | FE-2218 | open
(#17929) |
| 7 | `account-ui` drops its unpublished dependencies, joins
`smoke:pack` | FE-2218 | open (#17932) |
| 7 | billing-web report-only CSP and framing denial | FE-2218 | merged
(#17941) |
| 8 ui | Promote the Stripe payment UI into `account-ui` | FE-2331 |
open (#17934) |
| 8 ui | billing-web checkout, result page, invoices through the portal
| FE-2331 | open (#17936) |
| 8 ui | billing-web cancel / resubscribe on the subscription surface |
FE-2331 | open (#17937) |
| 8 ui | billing-web reactivation confirmation, refused subscribe
surfaced | FE-2331 | open (#17943) |
| 8 ui | **billing-web Playwright harness against a mocked Cloud** |
FE-2218 | **this PR** |
| 9 | Status and balance reads on the rail | FE-2216 | open (#17940) |
| 9 | Plan catalog read on the rail | FE-2216 | open (#17942) |
| 9 | Capabilities and saved payment methods on the rail | FE-2216 |
open (#17946) |
| 9 | Legacy `billingOperationStore` removal | FE-2216 | after the flags
flip |
| 7 | First publish (`private` off), Platform install | FE-2218 |
unblocked: #17881 is on main |
| 7 | Phase 7 host proof: live top-up on billing.comfy.org | FE-2218 |
gated (flags, CNAME, key) |
| 6 | Phase 6 live E2E evidence table | FE-2217 | gated (staging flags)
|

```mermaid
flowchart LR
  ADR["ADR-0034 (merged)"]
  REL["release workflows + ADR-0033 (merged #17881)"]
  PUBREP["publish report via workflow_run (#17952)"]
  UIB["account-ui dist build (#17929)"]
  DEPS["drop unpublished deps (#17932)"]
  CSP["billing-web CSP (merged #17941)"]
  PROMO["Stripe payment form in account-ui (#17934)"]
  CHK["billing-web checkout + result + invoices (#17936)"]
  SUBW["billing-web cancel / resubscribe (#17937)"]
  REACT["reactivation confirmation (#17943)"]
  E2E["billing-web Playwright harness (#17947)"]
  RD1["status + balance on the rail (#17940)"]
  RD2["plans on the rail (#17942)"]
  RD3["capabilities + payment methods on the rail (#17946)"]
  LEG(["legacy store removal, after the flags"])
  PUB(["first publish: workflows are on main, awaiting go"])
  H(["Phase 7 host proof"])
  E(["Phase 6 evidence"])
  OW{{"OWNER staging flags, CNAME, Stripe key"}}
  ADR --> PROMO
  UIB --> DEPS --> PROMO --> CHK --> SUBW --> REACT --> E2E
  REL --> PUBREP
  REL --> PUB
  DEPS --> PUB
  RD1 --> RD2 --> RD3 --> LEG
  CHK --> H
  CSP --> H
  OW -.-> H
  OW -.-> E
  OW -.-> LEG
  style ADR fill:#d4edda,stroke:#155724
  style REL fill:#d4edda,stroke:#155724
  style CSP fill:#d4edda,stroke:#155724
  style E2E stroke:#0366d6,stroke-width:4px
```
pull Bot pushed a commit to Mu-L/ComfyUI_frontend that referenced this pull request Sep 18, 2026
…ared package (Comfy-Org#17934)

Linear FE-2331. Stacked on Comfy-Org#17932 → Comfy-Org#17929 (both merged; this now
targets `main`). Implements decision 1 of ADR-PACKAGES-ACCOUNT-UI-0034
(Comfy-Org#17927, approved).

## Why

`apps/billing-web` renders `/v1/checkout` as a static mock with
`checkout-enabled` false. The working flow — mount Stripe Elements,
validate,
`createConfirmationToken`, hand the token to `subscribe` — lived in
`src/platform/workspace/components/UnifiedStripePaymentSelector.vue`,
inside
the private root package, which exposes no entry points and which
nothing
depends on. There was no specifier `apps/billing-web` could import it
by, so
hosted checkout was a choice between promoting the component and writing
a
second one. ADR-0034 settled that: a payment surface more than one host
renders
belongs to the package.

## How

`packages/account-ui/src/billing/stripe/`, exported as
`@comfyorg/account-ui/billing/stripe`. Per ADR-0034 decision 3 it is a
separate
entry point with `@stripe/stripe-js` as an **optional** peer, so a host
wanting
only the composables in `./billing` never installs the provider.

Decision 4 says promoted components take their host couplings as inputs.
Three
were imports and are now inputs:

| was | is |
| --- | --- |
| `Button` from the cloud app's design system | the `submit` slot, with
`disabled` / `loading` / `verificationPending` slot props |
| `useTelemetry()` + `getActiveCheckoutJourney()` | a `phase` emit
carrying `StripePaymentPhase` |
| `useI18n()` and seven `$t` keys | a `copy` prop, as
`PasswordRules.vue` already does |

A fourth was `import.meta.env.VITE_STRIPE_PUBLISHABLE_KEY`, which a
package
cannot read on the host's behalf — now a `publishableKey` prop.

The phase union is the package's own four members, not the host's nine.
The
form reports what happened; whether a journey is active, and what
context to
stamp on it, stays with the host — which is also the one guard that
could not
move, since the package cannot know the active journey belongs to a
later
checkout.

**The Tailwind classes stay.** They resolve against
`@comfyorg/design-system`
tokens, which both hosts already load, and ADR-0034's rule 4 names the
button,
the telemetry sink and the journey events specifically. "Unstyled" means
not
choosing a design system, not shipping unclassed markup.

`UnifiedStripePaymentSelector.vue` survives as the cloud app's binding —
same
props, same emits, so `SubscriptionAddPaymentPreviewWorkspace.vue` is
untouched.

## Review focus

**The Stripe entry is bundler-only, and the smoke test now says so out
loud.**
Adding it to the packed-tarball smoke test failed the plain-node import
with
`ERR_UNSUPPORTED_DIR_IMPORT`: `@stripe/stripe-js@9.12.1` publishes **no
`exports` map**, so `@stripe/stripe-js/pure` is a legacy directory
specifier —
a bundler probes it for an extension, node ESM refuses it. Reaching past
it to
`pure/index.mjs` would depend on an undeclared internal path, and
importing the
non-`pure` entry would reintroduce the side-effect script injection
`/pure`
exists to avoid.

So the entry is listed in `BUNDLER_ONLY_ENTRIES` and skipped in the node
sweep
only — `tsc --module nodenext --strict` still resolves a type and a
value from
it, and the run prints `bundler-only, skipped under node` rather than
passing
silently. Every host that renders this form builds through Vite. Worth a
second
opinion on whether the exclusion is the right call or whether the entry
should
carry a different loader.

**The test split.** The 23 provider tests move to the package against
the same
Stripe mocks; their telemetry assertions become assertions on what the
form
reported. Four new tests stay in the cloud app for the binding itself —
key,
translated copy, the slotted button's disabled state, and that a phase
arriving
with no active journey is dropped. That last one is the behaviour the
old file
covered only incidentally.

## Verification

```
pnpm -C packages/account-ui test          # 18 files, 119 tests (22 in the new suite)
pnpm vitest run .../UnifiedStripePaymentSelector.test.ts          # 4 tests
pnpm vitest run .../SubscriptionAddPaymentPreviewWorkspace.test.ts # 22 tests, untouched
pnpm --filter @comfyorg/account-core smoke:pack                    # passes
pnpm -C packages/account-core run check:pack "$PWD/packages/account-ui"
  -> @comfyorg/account-ui: 34 packed files are publishable
pnpm typecheck / pnpm lint / pnpm knip    # clean
```

### Why no Playwright regression test

`9cd35ce5` carries a `fix(` subject, so the end-to-end coverage check
asks for
one. There is no route from `browser_tests/` to the line it changes.

The guard lives inside `StripePaymentForm.submit()`. In the app that
form is
reached only through `UnifiedStripePaymentSelector` →
`SubscriptionAddPaymentPreviewWorkspace`, which mounts real Stripe
Payment and
Address Elements from `js.stripe.com` in a cross-origin iframe. No spec
in
`browser_tests/` mounts Stripe Elements — the billing specs there mock
the
billing JSON and stop short of the card form — so an end-to-end test
would
first need a live publishable key and a Stripe iframe harness. Even with
one,
the window is not orderable from a browser: the guard fires only when
`onBeforeUnmount` runs between `createConfirmationToken` being issued
and its
continuation resuming, and Playwright cannot hold that call open and
close the
dialog inside it.

A unit regression test was written and deliberately not committed,
because it
cannot fail — the state it would assert against cannot occur. The first
statement of `emit()` in `@vue/runtime-core@3.5.42` is
`if (instance.isUnmounted) return`, and `instance.isUnmounted` is
already `true`
by the time any awaited continuation resumes: with the gate resolved
from inside
`onBeforeUnmount` itself, the hook sees `isUnmounted=false` and the very
next
microtask sees `true`, with zero calls reaching the parent's handler.
Asserting
on `emitted()` is worse than inconclusive — after `unmount()` it returns
`{}`,
so the assertion is green whatever the component did. The two sibling
unmount
paths that *are* observable are already covered —
`StripePaymentForm.test.ts:273` (a submit rejection resolving after
unmount) and
`:295` (an element event after unmount).

The guard is left in as defense in depth on the money path, alongside
the same
shape in `reportPhase` one screen up, but it is unreachable rather than
a live
fix. `f568762d20` then lifts the validate-then-mint
sequence into `mintConfirmationToken()` so `submit()` stays inside
fallow's
complexity threshold; that commit is a pure extraction with no behavior
change,
covered by the 22 existing tests in the suite.

## AS IS / TO BE

No UI change: the rendered form is the same markup with the same
classes, the
same Stripe Elements configuration, and the same button. The cloud app's
component keeps its props and emits, so its only caller is unchanged and
the
22 tests around that caller pass untouched — which is the evidence that
the
behaviour moved without changing.

- **AS IS** — one checkout form, reachable only from the cloud app;
`apps/billing-web` shows a hardcoded mock.
- **TO BE** — the same form in `@comfyorg/account-ui/billing/stripe`,
rendered by the cloud app through a binding, and available to
`apps/billing-web` and the Platform install.

Wiring `apps/billing-web` to it is the next PR, not this one: this is
the move, with the cloud app proving it still works.

## Where this sits in the plan

Billing SDK track FE-2210 ([implementation plan
V2](https://app.notion.com/p/3d86d73d36508152b92cdbdfdfe83ac8));
remaining work on FE-2216 / FE-2217 / FE-2218 / FE-2331.

| Phase | Item | Ticket | Status |
| --- | --- | --- | --- |
| 7 | What belongs in `@comfyorg/account-ui` (ADR-0034) | FE-2218 |
merged (Comfy-Org#17927) |
| 7 | billing-web Vercel deployment config | FE-2218 | merged (Comfy-Org#17788) |
| 7 | Package release workflows + versioning ADR | FE-2218 | merged
(Comfy-Org#17881) |
| 7 | Publish report through a `workflow_run` consumer | FE-2218 |
merged (Comfy-Org#17952) |
| 7 | `account-ui` builds to dist and packs clean | FE-2218 | merged
(Comfy-Org#17929) |
| 7 | `account-ui` drops its unpublished dependencies, joins
`smoke:pack` | FE-2218 | merged (Comfy-Org#17932) |
| 7 | billing-web report-only CSP and framing denial | FE-2218 | merged
(Comfy-Org#17941) |
| 8 ui | **Promote the Stripe payment UI into `account-ui`** | FE-2331 |
**this PR** |
| 8 ui | billing-web checkout, result page, invoices through the portal
| FE-2331 | open (Comfy-Org#17936) |
| 8 ui | billing-web cancel / resubscribe on the subscription surface |
FE-2331 | open (Comfy-Org#17937) |
| 8 ui | billing-web reactivation confirmation, refused subscribe
surfaced | FE-2331 | open (Comfy-Org#17943) |
| 8 ui | billing-web Playwright harness against a mocked Cloud | FE-2218
| merged (Comfy-Org#17947) |
| 9 | Status and balance reads on the rail | FE-2216 | merged (Comfy-Org#17940) |
| 9 | Plan catalog read on the rail | FE-2216 | merged (Comfy-Org#17942) |
| 9 | Capabilities and saved payment methods on the rail | FE-2216 |
merged (Comfy-Org#17946) |
| 9 | Legacy `billingOperationStore` removal | FE-2216 | after the flags
flip |
| 7 | First publish of `account-core`, `billing-contract`,
`ingest-types` | FE-2218 | published on `next` |
| 7 | `account-ui` joins the release tables | FE-2218 | open (Comfy-Org#17989) |
| 7 | Phase 7 host proof: live top-up on billing.comfy.org | FE-2218 |
gated (flags, CNAME, key) |
| 6 | Phase 6 live E2E evidence table | FE-2217 | gated (staging flags)
|

```mermaid
flowchart LR
  ADR["ADR-0034 (merged)"]
  REL["release workflows + ADR-0033 (merged Comfy-Org#17881)"]
  PUBREP["publish report via workflow_run (merged Comfy-Org#17952)"]
  UIB["account-ui dist build (merged Comfy-Org#17929)"]
  DEPS["drop unpublished deps (merged Comfy-Org#17932)"]
  CSP["billing-web CSP (merged Comfy-Org#17941)"]
  PROMO["Stripe payment form in account-ui (Comfy-Org#17934)"]
  CHK["billing-web checkout + result + invoices (Comfy-Org#17936)"]
  SUBW["billing-web cancel / resubscribe (Comfy-Org#17937)"]
  REACT["reactivation confirmation (Comfy-Org#17943)"]
  E2E["billing-web Playwright harness (Comfy-Org#17947)"]
  RD1["status + balance on the rail (Comfy-Org#17940)"]
  RD2["plans on the rail (Comfy-Org#17942)"]
  RD3["capabilities + payment methods on the rail (merged Comfy-Org#17946)"]
  LEG(["legacy store removal, after the flags"])
  PUB["first publish: three packages on next"]
  UIPUB["account-ui joins the release tables (Comfy-Org#17989)"]
  H(["Phase 7 host proof"])
  E(["Phase 6 evidence"])
  OW{{"OWNER staging flags, CNAME, Stripe key"}}
  ADR --> PROMO
  UIB --> DEPS --> PROMO --> CHK --> SUBW --> REACT --> E2E
  REL --> PUBREP
  REL --> PUB
  DEPS --> UIPUB
  PUB --> UIPUB
  RD1 --> RD2 --> RD3 --> LEG
  CHK --> H
  CSP --> H
  OW -.-> H
  OW -.-> E
  OW -.-> LEG
  style ADR fill:#d4edda,stroke:#155724
  style REL fill:#d4edda,stroke:#155724
  style CSP fill:#d4edda,stroke:#155724
  style PROMO stroke:#0366d6,stroke-width:4px
```
pull Bot pushed a commit to Mu-L/ComfyUI_frontend that referenced this pull request Sep 18, 2026
…e package for release (Comfy-Org#17989)

## Why

`@comfyorg/account-ui` is the fourth package in the SDK release plan and
the
only one still held behind the `private: true` latch. The two PRs that
ADR-RELEASES-PACKAGES-0033 named as its precondition have both landed —
Comfy-Org#17929 gave it a `dist` build with declarations, Comfy-Org#17932 cut the two
workspace
dependencies that were never going to be published — and
`ci-packages-pack.yaml` has been validating its tarball on every PR
since.
Nothing has registered it for release, so the machinery that publishes
the
other three cannot see it.

The reason the ADR held it back no longer holds either. It said the
package
had "exactly one consumer inside this repository". On `main` today it
has
three — the cloud app, `apps/website` and `apps/billing-web` — and
ADR-PACKAGES-ACCOUNT-UI-0034 makes it the home of the shared payment UI
those
hosts render, with Platform as a fourth consumer that installs from npm
rather
than from this workspace. That turns its export map into an external
contract,
which is the condition the release ADR set.

## Root cause

Two latent defects, both invisible while the package was private:

1. `packages/account-ui/package.json` declared
`"@comfyorg/account-core": "workspace:*"`. pnpm rewrites that protocol
at
pack time, and `workspace:*` becomes an **exact** pin while
`workspace:^`
   becomes a caret range. ADR-0033 chose `workspace:^` for internal
   dependencies precisely so a consumer installing both `account-ui` and
`account-core` gets one copy; an exact pin makes that a lockfile
conflict
at the first divergent alpha. `account-core` already uses `workspace:^`
   for `ingest-types`; `account-ui` was the one manifest that did not.

2. `packages/account-core/scripts/smokePack.ts` packs four packages —
   `account-ui` was added to `PUBLISHED_PACKAGES` by Comfy-Org#17932 — but its
   docstring still said three.

## How

Six files, no runtime code:

- **`packages/account-ui/package.json`** — remove `private: true`, and
switch
  the `account-core` dependency to `workspace:^`.
- **`publish-package.yaml`** — `account-ui` joins the `package` choice
input
  and the npm-name resolve table.
- **`version-bump-package.yaml`** — same two places, with
`ALPHA_GATED=true`.
That is the load-bearing half: `patch` on `1.0.0-alpha.0` is `1.0.0`,
and
the merge path publishes a non-prerelease version to `latest`. The gate
rejects any increment but `pre*` with the `alpha` id, which is what
ADR-0033
  §Versioning policy requires for the hand-written packages.
- **`publish-package-on-merge.yaml`** —
`packages/account-ui/package.json`
joins the `paths` filter and the package loop that compares each
manifest's
  version against its first parent.
- **ADR-0033** — amended where it described `account-ui` as pending:
Context,
  the parameterized-table bullet, the `private` latch bullet, Versioning
  policy, Sequencing, the Positive consequence, the fourth-candidate
follow-up, and the "five or more published packages" trigger for
revisiting
Changesets. The ADR's own instruction is that promoting a package means
  amending that section and the gate together, so both move in this PR.
- **`smokePack.ts`** — the docstring's package count.

**This PR publishes nothing.** It registers the package and removes the
latch;
the first `@comfyorg/account-ui` version reaches npm only when someone
runs
`version-bump-package.yaml` for it and merges the `Release`-labelled PR
that
opens. Per the sequencing in ADR-0033 that bump comes after
`account-core`,
which is already on `next`, because `account-core` is `account-ui`'s one
runtime dependency and resolves from the registry.

## AS IS / TO BE

This is release plumbing with no user-facing surface, so there is no
screen to
capture. The observable behaviour is the published manifest and the
workflow
inputs; both are reproducible from this branch.

**AS IS** — the package could not be selected for release, and its
packed
manifest pinned the core exactly:

```
$ gh workflow view publish-package.yaml   # package choices
account-core, billing-contract, ingest-types

$ pnpm -C packages/account-ui pack && tar -xzOf *.tgz package/package.json
private: true
deps:    { "@comfyorg/account-core": "1.0.0-alpha.0" }
```

A dispatch for `account-ui` was not offered, and had the latch been
removed
alone, the `Verify package` step's own guard is what would have caught
it.

**TO BE** — measured on this branch:

```
$ pnpm -C packages/account-ui pack && tar -xzOf *.tgz package/package.json
private: <absent>
deps:    { "@comfyorg/account-core": "^1.0.0-alpha.0" }

$ pnpm -C packages/account-core run check:pack packages/account-ui
@comfyorg/account-ui: 30 packed files are publishable

$ pnpm --filter @comfyorg/account-core smoke:pack
@comfyorg/account-ui/billing:                 imported under node
@comfyorg/account-ui/auth/PasswordRules:      imported under node
@comfyorg/account-ui/auth/SocialAuthButtons:  imported under node
@comfyorg/account-ui/auth/TurnstileWidget:    imported under node
@comfyorg/account-ui/auth/regionGate:         imported under node
@comfyorg/account-ui/auth/regionProbe:        imported under node
@comfyorg/account-ui/auth/turnstileGate:      imported under node
@comfyorg/account-ui/auth/lifecycleScope:     imported under node
@comfyorg/account-ui/auth/useGenerationGuard: imported under node
@comfyorg/account-ui/package.json:            imported under node
tsc (nodenext, strict): a type and a value resolved from every entry
packed tarball smoke test passed
```

All nine entries plus the manifest import from a throwaway npm project
outside
the workspace, and `tsc` under `nodenext` resolves a type and a value
from
each. That is the proof the `private` latch was waiting on.

The alpha gate, simulated against the shipped case statement:

| package | increment | pre-id | outcome |
| --- | --- | --- | --- |
| `account-ui` | `patch` | — | rejected (would produce `1.0.0` →
`latest`) |
| `account-ui` | `minor` | `alpha` | rejected (increment) |
| `account-ui` | `prerelease` | `beta` | rejected (pre-id) |
| `account-ui` | `prerelease` | `alpha` | allowed → `1.0.0-alpha.1` |
| `ingest-types` | `patch` | — | allowed (outside the gate, by ADR) |

## Verification

- `pnpm -C packages/account-ui typecheck`, `build`, `test` (97 tests, 17
files)
- `pnpm -C packages/account-core typecheck`
- `pnpm -C packages/account-core run check:pack packages/account-ui`
- `pnpm --filter @comfyorg/account-core smoke:pack`
- `pnpm lint`, `pnpm format`, `pnpm knip`, `pnpm adr:check`
- All three workflow files parse, and the resolve table maps all four
packages
  and rejects an unknown one.

## Where this sits in the plan

Billing SDK track FE-2210 ([implementation plan
V2](https://app.notion.com/p/3d86d73d36508152b92cdbdfdfe83ac8));
remaining work on FE-2216 / FE-2217 / FE-2218 / FE-2331.

| Phase | Item | Ticket | Status |
| --- | --- | --- | --- |
| 7 | What belongs in `@comfyorg/account-ui` (ADR-0034) | FE-2218 |
merged (Comfy-Org#17927) |
| 7 | billing-web Vercel deployment config | FE-2218 | merged (Comfy-Org#17788) |
| 7 | Package release workflows + versioning ADR | FE-2218 | merged
(Comfy-Org#17881) |
| 7 | Publish report through a `workflow_run` consumer | FE-2218 |
merged (Comfy-Org#17952) |
| 7 | `account-ui` builds to dist and packs clean | FE-2218 | merged
(Comfy-Org#17929) |
| 7 | `account-ui` drops its unpublished dependencies, joins
`smoke:pack` | FE-2218 | merged (Comfy-Org#17932) |
| 7 | billing-web report-only CSP and framing denial | FE-2218 | merged
(Comfy-Org#17941) |
| 8 ui | Promote the Stripe payment UI into `account-ui` | FE-2331 |
open (Comfy-Org#17934) |
| 8 ui | billing-web checkout, result page, invoices through the portal
| FE-2331 | open (Comfy-Org#17936) |
| 8 ui | billing-web cancel / resubscribe on the subscription surface |
FE-2331 | open (Comfy-Org#17937) |
| 8 ui | billing-web reactivation confirmation, refused subscribe
surfaced | FE-2331 | open (Comfy-Org#17943) |
| 8 ui | billing-web Playwright harness against a mocked Cloud | FE-2218
| merged (Comfy-Org#17947) |
| 9 | Status and balance reads on the rail | FE-2216 | merged (Comfy-Org#17940) |
| 9 | Plan catalog read on the rail | FE-2216 | merged (Comfy-Org#17942) |
| 9 | Capabilities and saved payment methods on the rail | FE-2216 |
merged (Comfy-Org#17946) |
| 9 | Legacy `billingOperationStore` removal | FE-2216 | after the flags
flip |
| 7 | First publish of `account-core`, `billing-contract`,
`ingest-types` | FE-2218 | published on `next` |
| 7 | **`account-ui` joins the release tables** | FE-2218 | **this PR**
|
| 7 | Phase 7 host proof: live top-up on billing.comfy.org | FE-2218 |
gated (flags, CNAME, key) |
| 6 | Phase 6 live E2E evidence table | FE-2217 | gated (staging flags)
|

```mermaid
flowchart LR
  ADR["ADR-0034 (merged)"]
  REL["release workflows + ADR-0033 (merged Comfy-Org#17881)"]
  PUBREP["publish report via workflow_run (merged Comfy-Org#17952)"]
  UIB["account-ui dist build (merged Comfy-Org#17929)"]
  DEPS["drop unpublished deps (merged Comfy-Org#17932)"]
  CSP["billing-web CSP (merged Comfy-Org#17941)"]
  PROMO["Stripe payment form in account-ui (Comfy-Org#17934)"]
  CHK["billing-web checkout + result + invoices (Comfy-Org#17936)"]
  SUBW["billing-web cancel / resubscribe (Comfy-Org#17937)"]
  REACT["reactivation confirmation (Comfy-Org#17943)"]
  E2E["billing-web Playwright harness (Comfy-Org#17947)"]
  RD1["status + balance on the rail (Comfy-Org#17940)"]
  RD2["plans on the rail (Comfy-Org#17942)"]
  RD3["capabilities + payment methods on the rail (merged Comfy-Org#17946)"]
  LEG(["legacy store removal, after the flags"])
  PUB["first publish: three packages on next"]
  UIPUB["account-ui joins the release tables (Comfy-Org#17989)"]
  H(["Phase 7 host proof"])
  E(["Phase 6 evidence"])
  OW{{"OWNER staging flags, CNAME, Stripe key"}}
  ADR --> PROMO
  UIB --> DEPS --> PROMO --> CHK --> SUBW --> REACT --> E2E
  REL --> PUBREP
  REL --> PUB
  DEPS --> UIPUB
  PUB --> UIPUB
  RD1 --> RD2 --> RD3 --> LEG
  CHK --> H
  CSP --> H
  OW -.-> H
  OW -.-> E
  OW -.-> LEG
  style ADR fill:#d4edda,stroke:#155724
  style REL fill:#d4edda,stroke:#155724
  style CSP fill:#d4edda,stroke:#155724
  style UIPUB stroke:#0366d6,stroke-width:4px
```
pull Bot pushed a commit to Penguinjanator/ComfyUI_frontend that referenced this pull request Sep 18, 2026
…esult page and invoices through the portal (Comfy-Org#17936)

Linear FE-2331. Stacked on Comfy-Org#17934 → Comfy-Org#17932 → Comfy-Org#17929. Closes the
"billing-web is not yet a checkout" line in the hosted-billing TDD's
*Current state (2026-09-17)*.

## Why

`apps/billing-web` had every read it needs and exactly one write:
`openPaymentPortal`. `/v1/checkout` rendered a static mock with
`checkout-enabled` false, `/v1/result` and `/v1/invoices` rendered a
placeholder, and the subscription surface's "Pay and subscribe" button
was disabled with the copy "Payment actions will be connected through
Billing SDK." Comfy-Org#17934 put the Stripe payment form in
`@comfyorg/account-ui/billing/stripe` precisely so this app could render
it; this is the PR that does.

## How

**`/v1/checkout` — `CheckoutView`.** The entry's `plan` is quoted
through `usePreviewSubscribe`; the quote fills the summary panel (plan
name, price per period, credits, amount due today) and hands the form
its amount, currency and `payment_method_configuration_id`. The form's
confirmation token goes to `useCheckout().subscribe` together with
`plan_slug`, the quote's `quote_id` / `quote_version`, and a
`return_url` built with `buildBillingEntryUrl` pointing at this origin's
`/v1/result` with the same product, return target and plan. From then on
the page renders `CheckoutSteps` over the lifecycle's projection —
`preview` while polling, `verifying` on a challenge, `declined` /
`processing_error` with the retry that returns to the form — and the
`success` phase of the summary panel with a return link carrying
`billing_result=success&billing_ref=<op id>`. A hosted continuation
(`needs_payment_method`) redirects this tab through the composable's
`openUrl`; an embedded one drives 3DS through
`createStripeChallengePort`, which loads Stripe on the first challenge
and reports `provider_unavailable` rather than throwing when it cannot.

**`/v1/result` — `ResultView`.** Nothing about the payment travels in
the URL. On mount it calls `lifecycle.recover()` — the server's pending
operation first, then the tab's pointer — and renders `CheckoutSteps`
over whatever came back, with the return link's outcome derived from the
step (`success` / `cancelled` / `pending`) and the operation id as the
reference. "No payment in progress" when there is nothing to recover.

**`/v1/invoices` — `InvoicesView`.** Follows the cloud app: one button,
`openPaymentPortal({ returnUrl: location.href })`, `location.assign`. No
reader, no backend route, as decided on 2026-09-17.

**Subscription surface.** `SubscriptionQuote` emits `checkout`;
`SubscriptionPanel` pushes `/v1/checkout` with the entry's query plus
the chosen `plan`, so product and return target travel with it. The
button is enabled only for a quote the server `allowed`.

**Composition.** `embeddedCheckoutAvailable` now follows
`VITE_STRIPE_PUBLISHABLE_KEY` (new in `.env_example` and the README;
absent means every operation routes hosted, exactly as before).
`HostedSurface` takes a `returnResult` so a surface can put an outcome
on the trip back. `EmbeddedCheckout` keeps its summary panel and success
phase, takes the provider form through a `form` slot, and prices a
yearly plan by its own period instead of a derived per-month figure; its
mock card block, the dead promotion-code input and the `checkoutEnabled`
prop are gone. `/` becomes a plain front door ("open billing from your
Comfy product") since the scaffold's mock no longer exists.

## Review focus

**The subscribe request shape.** `plan_slug`, `confirmation_token`,
`quote_id`, `quote_version`, `return_url` — the generated
`zSubscribeRequest` accepts more (`promotion_code`,
`team_credit_stop_id`, `saved_payment_method_id`, `billing_cycle`). None
is wired here: no promotion input survives, saved cards are a later
slice, and the cycle is the plan's. Worth confirming the quote identity
is what the server expects on the hosted rail the way it is on the cloud
app's.

**`amountDueCents` falls back to `cost_today_cents`** when the quote
carries no `amount_due_cents`, on both the summary and the form's
amount. That is a display and Elements-mode amount only; the charge is
priced server-side from the quote.

**Recovery on `/v1/result` uses `useCheckout`** rather than a bare
`useBillingOperation`, so the same `openUrl` / `challengePort`
continuation runs if a recovered operation still offers one. That is
deliberate — a customer who closed the provider tab lands here and
should be able to continue — but it does mean the result page can
redirect.

## Verification

```
pnpm -C apps/billing-web typecheck     # clean
pnpm -C apps/billing-web test:unit     # 13 files, 103 tests
pnpm -C apps/billing-web lint          # clean
pnpm knip                              # clean
```

New: `CheckoutView.test.ts` (9), `ResultView.test.ts` (3),
`InvoicesView.test.ts` (2). Rewritten for the new shape:
`EmbeddedCheckout.test.ts`, `SubscriptionView.test.ts` (router-backed,
continue → checkout), `router.test.ts` and `App.test.ts` (front door).
The fake client now publishes the operation a `subscribe` or a `recover`
produces to lifecycle subscribers, so every projection the views render
is exercised through the real composables, not stubbed. The provider
form is mocked here; it is covered in the package against the real
Stripe mocks.

### Why no `browser_tests/` regression test

The two `fix(` commits on this branch repair code this same PR
introduces. `CheckoutView.vue` is added here — `git diff --name-status
origin/main...44b4f50` reports it as `A` — and both mismatches were
found in review before any of it shipped. There is no released behaviour
to regress against.

An end-to-end test is also not reachable at this point in the stack.
`browser_tests/` drives `http://localhost:8188`
(`browser_tests/fixtures/ComfyPage.ts:240`), the ComfyUI frontend served
by a ComfyUI backend, and it has no fixture that serves
`apps/billing-web` — a separate Vite app on its own origin, with its own
dev server and its own Playwright project. That project
(`apps/billing-web/e2e/`, `apps/billing-web/playwright.config.ts`,
merged as Comfy-Org#17947) is not on this branch: it arrives two PRs later, on
Comfy-Org#17943.

Both fixes are route-watcher behaviour inside one component, so
`CheckoutView.test.ts` is the level that proves them, and both tests
were mutation-checked rather than written to pass:

| test | mutation that breaks it |
| --- | --- |
| `keeps a live operation on the plan it was quoted for` | remove the
guard |
| `still quotes when the lifecycle already carries an operation at
mount` | drop the `previous` clause |

## AS IS / TO BE

- **AS IS** — `/v1/checkout`: a hardcoded "Creator, $28.00" mock with
every control disabled. `/v1/result`, `/v1/invoices`: "not available
yet". Subscription quote: a disabled pay button.
- **TO BE** — `/v1/checkout` quotes the linked plan, collects a card
through the shared form, subscribes, drives 3DS or redirects, and shows
the SDK's eight-state projection through to success with a way back.
`/v1/result` recovers and reports. `/v1/invoices` opens the portal. The
quote continues into checkout.

No production traffic reaches these pages until
`hosted_billing_destination` says `billing_web`; the Vercel project's
`VITE_STRIPE_PUBLISHABLE_KEY` is an owner action alongside the token and
the CNAME.

## Where this sits in the plan

Billing SDK track FE-2210 ([implementation plan
V2](https://app.notion.com/p/3d86d73d36508152b92cdbdfdfe83ac8));
remaining work on FE-2216 / FE-2217 / FE-2218 / FE-2331.

| Phase | Item | Ticket | Status |
| --- | --- | --- | --- |
| 7 | What belongs in `@comfyorg/account-ui` (ADR-0034) | FE-2218 |
merged (Comfy-Org#17927) |
| 7 | billing-web Vercel deployment config | FE-2218 | merged (Comfy-Org#17788) |
| 7 | Package release workflows + versioning ADR | FE-2218 | merged
(Comfy-Org#17881) |
| 7 | Publish report through a `workflow_run` consumer | FE-2218 |
merged (Comfy-Org#17952) |
| 7 | `account-ui` builds to dist and packs clean | FE-2218 | merged
(Comfy-Org#17929) |
| 7 | `account-ui` drops its unpublished dependencies, joins
`smoke:pack` | FE-2218 | merged (Comfy-Org#17932) |
| 7 | billing-web report-only CSP and framing denial | FE-2218 | merged
(Comfy-Org#17941) |
| 8 ui | Promote the Stripe payment UI into `account-ui` | FE-2331 |
open (Comfy-Org#17934) |
| 8 ui | **billing-web checkout, result page, invoices through the
portal** | FE-2331 | **this PR** |
| 8 ui | billing-web cancel / resubscribe on the subscription surface |
FE-2331 | open (Comfy-Org#17937) |
| 8 ui | billing-web reactivation confirmation, refused subscribe
surfaced | FE-2331 | open (Comfy-Org#17943) |
| 8 ui | billing-web Playwright harness against a mocked Cloud | FE-2218
| merged (Comfy-Org#17947) |
| 9 | Status and balance reads on the rail | FE-2216 | merged (Comfy-Org#17940) |
| 9 | Plan catalog read on the rail | FE-2216 | merged (Comfy-Org#17942) |
| 9 | Capabilities and saved payment methods on the rail | FE-2216 |
merged (Comfy-Org#17946) |
| 9 | Legacy `billingOperationStore` removal | FE-2216 | after the flags
flip |
| 7 | First publish of `account-core`, `billing-contract`,
`ingest-types` | FE-2218 | published on `next` |
| 7 | `account-ui` joins the release tables | FE-2218 | open (Comfy-Org#17989) |
| 7 | Phase 7 host proof: live top-up on billing.comfy.org | FE-2218 |
gated (flags, CNAME, key) |
| 6 | Phase 6 live E2E evidence table | FE-2217 | gated (staging flags)
|

```mermaid
flowchart LR
  ADR["ADR-0034 (merged)"]
  REL["release workflows + ADR-0033 (merged Comfy-Org#17881)"]
  PUBREP["publish report via workflow_run (merged Comfy-Org#17952)"]
  UIB["account-ui dist build (merged Comfy-Org#17929)"]
  DEPS["drop unpublished deps (merged Comfy-Org#17932)"]
  CSP["billing-web CSP (merged Comfy-Org#17941)"]
  PROMO["Stripe payment form in account-ui (Comfy-Org#17934)"]
  CHK["billing-web checkout + result + invoices (Comfy-Org#17936)"]
  SUBW["billing-web cancel / resubscribe (Comfy-Org#17937)"]
  REACT["reactivation confirmation (Comfy-Org#17943)"]
  E2E["billing-web Playwright harness (Comfy-Org#17947)"]
  RD1["status + balance on the rail (Comfy-Org#17940)"]
  RD2["plans on the rail (Comfy-Org#17942)"]
  RD3["capabilities + payment methods on the rail (merged Comfy-Org#17946)"]
  LEG(["legacy store removal, after the flags"])
  PUB["first publish: three packages on next"]
  UIPUB["account-ui joins the release tables (Comfy-Org#17989)"]
  H(["Phase 7 host proof"])
  E(["Phase 6 evidence"])
  OW{{"OWNER staging flags, CNAME, Stripe key"}}
  ADR --> PROMO
  UIB --> DEPS --> PROMO --> CHK --> SUBW --> REACT --> E2E
  REL --> PUBREP
  REL --> PUB
  DEPS --> UIPUB
  PUB --> UIPUB
  RD1 --> RD2 --> RD3 --> LEG
  CHK --> H
  CSP --> H
  OW -.-> H
  OW -.-> E
  OW -.-> LEG
  style ADR fill:#d4edda,stroke:#155724
  style REL fill:#d4edda,stroke:#155724
  style CSP fill:#d4edda,stroke:#155724
  style CHK stroke:#0366d6,stroke-width:4px
```
pull Bot pushed a commit to Mu-L/ComfyUI_frontend that referenced this pull request Sep 18, 2026
… surface, gated by the server's capabilities (Comfy-Org#17937)

Linear FE-2331. Stacked on Comfy-Org#17936 → Comfy-Org#17934 → Comfy-Org#17932 → Comfy-Org#17929. The last
write action `apps/billing-web` was missing.

## Why

After Comfy-Org#17936 the hosted app could subscribe, pay and recover, but a
customer on `/v1/subscription` still had no way to leave a plan or come
back to one: the surface listed plans and quoted a change, nothing else.
Cancel and resubscribe exist on the SDK (`commands.cancelSubscription`,
`useCheckout().resubscribe`) and ride the cloud app's rail since Comfy-Org#17853;
this gives the hosted surface the same two actions.

## How

`SubscriptionActions.vue`, rendered under the current-plan line:

- **Gated by the server, not by local state.** On mount it reads
`capabilities` and offers *Cancel subscription* only for `can_cancel`,
*Resubscribe* only for `can_reactivate`. Neither button exists for a
workspace the server says cannot do it, which is the same rule the cloud
app's popover follows.
- **Cancel confirms first.** One click shows "Cancel your subscription?
You can resubscribe at any time." with *Confirm cancellation* / *Keep my
plan*; only the confirmation calls `commands.cancelSubscription()`.
Cancel is not a checkout, so it goes straight to the command, as
`useCheckout`'s own docstring says it should.
- **Resubscribe runs on `useCheckout`**, because the server may answer
with a payment step; the composable's continuation redirects this tab to
the hosted page (or drives 3DS through `createStripeChallengePort` when
a key is configured), and `/v1/result` recovers on the way back — the
path Comfy-Org#17936 built.
- **After either succeeds**, the panel invalidates and re-reads
capabilities with `forceRefresh` (so the buttons flip immediately) and
emits `changed`, on which the panel refreshes the plan catalog (so the
current-plan line follows). A non-`succeeded` terminal phase and every
coded failure render our own copy: new `hosted.outcome.*` lines for
`failed` / `timed_out` / `reconciliation_needed` / `superseded`, and
three `hosted.failure` codes the subscription commands can return that
had no line yet (`REACTIVATION_CONFIRMATION_REQUIRED`,
`CONFLICTING_PAYMENT_METHOD`, `MISSING_PAYMENT_METHOD_URL`).

## Review focus

**`REACTIVATION_CONFIRMATION_REQUIRED` is surfaced, not handled.** The
server asks the host to re-preview and resend with
`confirm_reactivation`; here it reads as "Confirm the reactivation
charge before continuing" and stops. Wiring the confirm loop is a
follow-up — the cloud app's equivalent lives in
`useSubscriptionCheckout` and is not small.

**The fake client now answers `capabilities.read`** with every
capability denied unless a test grants one, and scripts
`cancelSubscription` / `resubscribe` like `subscribe`. That is what lets
the existing `SubscriptionView` tests keep passing unchanged (no buttons
appear for them) while the five new ones exercise the gate, the confirm
step, the back-out, resubscribe, and a refused cancel.

## Verification

```
pnpm -C apps/billing-web typecheck   # clean
pnpm -C apps/billing-web test:unit   # 13 files, 108 tests (+5)
pnpm -C apps/billing-web lint        # clean
```

## Why the regression coverage is not under `browser_tests/`

`browser_tests/` is the ComfyUI graph editor's suite: the root
`playwright.config.ts` points `testDir` at it, and `ci-tests-e2e.yaml`
runs it inside `comfyui-ci-container` with a live ComfyUI Python server
started per job. `apps/billing-web` is a separate Vite entry with no
ComfyUI backend behind it, so a spec placed under `browser_tests/`
cannot load the surface this PR changes.

The equivalent end-to-end coverage lives in `apps/billing-web/e2e`,
against a Cloud and identity the suite mocks in-process, and runs on
this PR through `ci-billing-web-e2e.yaml`: `subscription.spec.ts` covers
*cancels after a confirmation step and then offers to resubscribe* and
*shows only the actions the server allows*. The capability-refresh hold
that `fix(billing-web): hold the subscription actions through the
capability refresh` addressed is pinned by *keeps the action disabled
until the capability refresh lands* in `SubscriptionView.test.ts`.

## AS IS / TO BE

- **AS IS** — `/v1/subscription` shows the catalog and a quote; the only
write reachable from the hosted app is the payment portal.
- **TO BE** — the surface offers cancel (with confirmation) and
resubscribe exactly when the server permits them, runs both on the SDK
commands, and refreshes what the change touched.

No UI reaches production until `hosted_billing_destination` says
`billing_web`.

## Where this sits in the plan

Billing SDK track FE-2210 ([implementation plan
V2](https://app.notion.com/p/3d86d73d36508152b92cdbdfdfe83ac8));
remaining work on FE-2216 / FE-2217 / FE-2218 / FE-2331.

| Phase | Item | Ticket | Status |
| --- | --- | --- | --- |
| 7 | What belongs in `@comfyorg/account-ui` (ADR-0034) | FE-2218 |
merged (Comfy-Org#17927) |
| 7 | billing-web Vercel deployment config | FE-2218 | merged (Comfy-Org#17788) |
| 7 | Package release workflows + versioning ADR | FE-2218 | merged
(Comfy-Org#17881) |
| 7 | Publish report through a `workflow_run` consumer | FE-2218 |
merged (Comfy-Org#17952) |
| 7 | `account-ui` builds to dist and packs clean | FE-2218 | merged
(Comfy-Org#17929) |
| 7 | `account-ui` drops its unpublished dependencies, joins
`smoke:pack` | FE-2218 | merged (Comfy-Org#17932) |
| 7 | billing-web report-only CSP and framing denial | FE-2218 | merged
(Comfy-Org#17941) |
| 8 ui | Promote the Stripe payment UI into `account-ui` | FE-2331 |
merged (Comfy-Org#17934) |
| 8 ui | billing-web checkout, result page, invoices through the portal
| FE-2331 | merged (Comfy-Org#17936) |
| 8 ui | **billing-web cancel / resubscribe on the subscription
surface** | FE-2331 | **this PR** |
| 8 ui | billing-web reactivation confirmation, refused subscribe
surfaced | FE-2331 | squashed into Comfy-Org#17937 — **not on `main`** |
| 8 ui | billing-web Playwright harness against a mocked Cloud | FE-2218
| merged (Comfy-Org#17947) |
| 9 | Status and balance reads on the rail | FE-2216 | merged (Comfy-Org#17940) |
| 9 | Plan catalog read on the rail | FE-2216 | merged (Comfy-Org#17942) |
| 9 | Capabilities and saved payment methods on the rail | FE-2216 |
merged (Comfy-Org#17946) |
| 9 | Legacy `billingOperationStore` removal | FE-2216 | after the flags
flip |
| 7 | First publish of `account-core`, `billing-contract`,
`ingest-types` | FE-2218 | published on `next` |
| 7 | `account-ui` joins the release tables | FE-2218 | merged (Comfy-Org#17989)
|
| 7 | Phase 7 host proof: live top-up on billing.comfy.org | FE-2218 |
gated (flags, CNAME, key) |
| 6 | Phase 6 live E2E evidence table | FE-2217 | gated (staging flags)
|

```mermaid
flowchart LR
  ADR["ADR-0034 (merged)"]
  REL["release workflows + ADR-0033 (merged Comfy-Org#17881)"]
  PUBREP["publish report via workflow_run (merged Comfy-Org#17952)"]
  UIB["account-ui dist build (merged Comfy-Org#17929)"]
  DEPS["drop unpublished deps (merged Comfy-Org#17932)"]
  CSP["billing-web CSP (merged Comfy-Org#17941)"]
  PROMO["Stripe payment form in account-ui (merged Comfy-Org#17934)"]
  CHK["billing-web checkout + result + invoices (merged Comfy-Org#17936)"]
  SUBW["cancel / resubscribe + reactivation (Comfy-Org#17937)"]
  REACT["reactivation confirmation (Comfy-Org#17943, inside Comfy-Org#17937)"]
  E2E["billing-web Playwright harness (Comfy-Org#17947)"]
  RD1["status + balance on the rail (Comfy-Org#17940)"]
  RD2["plans on the rail (Comfy-Org#17942)"]
  RD3["capabilities + payment methods on the rail (merged Comfy-Org#17946)"]
  LEG(["legacy store removal, after the flags"])
  PUB["first publish: three packages on next"]
  UIPUB["account-ui release tables (merged Comfy-Org#17989)"]
  H(["Phase 7 host proof"])
  E(["Phase 6 evidence"])
  OW{{"OWNER staging flags, CNAME, Stripe key"}}
  ADR --> PROMO
  UIB --> DEPS --> PROMO --> CHK --> SUBW --> REACT --> E2E
  REL --> PUBREP
  REL --> PUB
  DEPS --> UIPUB
  PUB --> UIPUB
  RD1 --> RD2 --> RD3 --> LEG
  CHK --> H
  CSP --> H
  OW -.-> H
  OW -.-> E
  OW -.-> LEG
  style ADR fill:#d4edda,stroke:#155724
  style REL fill:#d4edda,stroke:#155724
  style CSP fill:#d4edda,stroke:#155724
  style SUBW stroke:#0366d6,stroke-width:4px
```
dante01yoon added a commit that referenced this pull request Sep 19, 2026
## Why

The usage log is the last billing read still bound to `workspaceApi`. PR
2 put the reader in `account-core` and exposed `readEvents` on
`billingSdkStore`; nothing calls it. This PR is that call site.

With `billing_sdk_topup_enabled` or `billing_sdk_subscription_enabled`
on, every other billing surface reads through the SDK and this one table
still reaches for the workspace client directly — the one read left off
the rail the other five already take.

## Root cause

`UsageLogsTable.vue` branches on `shouldUseWorkspaceBilling` alone: the
workspace client, or `customerEventService.getMyEvents` for the legacy
`/customers` feed. There is no third arm, because when the readers
landed (#17940 / #17942 / #17946) there was no core reader for
`/billing/events` to point one at.

That absence outlived the reader. `BillingReadRail` — the contract those
five reads resolve through — still declares five members, and FE-2467
deliberately stopped at `billingSdkStore`, leaving the interface
widening to whoever brought the caller. So even with the store method in
place, the rail type does not expose it: the switch could not be written
without this change.

## How

**`readEvents` joins `BillingReadRail`** (`useBillingReadRail.ts:28`).
It is the only member taking options, because it is the only read that
asks for one page rather than one route per scope.

**The workspace arm resolves through the rail**
(`UsageLogsTable.vue:150`–`:155`, called at `:168`):

```ts
const rail = useBillingReadRail()
return rail === null
  ? workspaceApi.getBillingEvents(params)
  : readOnRail(() => rail.readEvents(params))
```

Two choices inside that:

- **The read is closed over, not passed with its arguments.** FE-2479
sketches `readOnRail(rail.readEvents, params)`, but `readOnRail` takes a
zero-arg read and `useBillingCapabilities.ts:74` already closes over its
options rather than widening the signature. Following the existing
pattern keeps `readOnRail` — used by all five other reads — untouched.
- **The rail is read once per load and held for it**, inside
`readWorkspaceEvents`, per the rule on `useBillingReadRail`: a flag flip
mid-read must not start on one client and publish through the other.

**The `customerEventService` branch is untouched.** That is the legacy
`/customers` endpoint, out of scope per M1-13, and it keeps its own
error surface at `:204`.

**A superseded rail read gets its own early return** (`:181`).
`readOnRail` resolves `undefined` on `SUPERSEDED` rather than throwing,
and the existing falsy-response branch renders
`credits.loadEventsError`. Without the guard a scope change would reach
the customer as "Failed to load activity". `undefined` identifies
exactly one thing here: `getMyEvents` returns `CustomerEventsResponse |
null` and `getBillingEvents` throws instead of returning falsy, so only
a superseded rail read produces it. Nothing is published and nothing is
reported — the same stance `useBillingPlans.ts:44` takes on the same
result.

The `latestLoadToken` guard and the `isPendingTopupCompleted` call keep
their order, so a mid-checkout route flip still reports a top-up that
landed on the losing fetch.

## AS IS / TO BE

**Flag off, nothing changes.** `rail === null` resolves to the same
`workspaceApi.getBillingEvents(params)` call the file made before, on
the same branch, with the same error handling.

**Flag on, the same rows arrive over the SDK transport.** The store's
`readEvents` returns `BillingEventsResponse`, the type this table
already consumed, so the rendered page is identical — the rail changes
who fetches, not what is shown. A before/after capture would be two
identical tables, so none is attached.

The one new behaviour is the superseded case, and it is reachable only
on the rail. AS IS, a load that resolves falsy shows "Failed to load
activity". TO BE, a rail read whose scope moved on leaves the table as
it was and says nothing; a genuine failure still throws and still shows
the localized fallback.

## Testing

`UsageLogsTable.test.ts` grows from 22 to 31 tests:

- A four-row table over `shouldUseWorkspaceBilling × rail`, asserting
which of the three readers serves the page and that the other two are
not called. The `false × on` row is what holds the `/customers` feed off
the rail.
- The reader's page rendering the way the legacy rail renders its own.
- The paginator moving to page 2 issuing its own read for page 2 — the
reader keys requests by page, so this is the host-side half of what
`events.test.ts:92` proves in the core.
- `SUPERSEDED` publishing nothing and reporting nothing.
- A failed read surfacing the localized fallback.
- Top-up completion telemetry running off the reader page.

Each new test was checked against the unpatched component: reverting the
production diff fails five of them, and removing only the `undefined`
guard fails the superseded row.

`pnpm test:unit src/platform/workspace src/composables/billing
src/platform/cloud/subscription` (118 files, 2287 tests, 1
expected-fail), `pnpm typecheck`, `pnpm lint` and `pnpm knip` all pass.

## Plan position

Milestone 1, Step 1 — [PR
plan](https://linear.app/comfyorg/document/milestone-1-pr-plan-605f42c5e709).
This is **PR 3**, the tail of the two-PR usage-log stack. Its base is PR
2's branch, so review that one first.

| PR | Tickets | What | Status |
| --- | --- | --- | --- |
| 1 | FE-2469 | operation-state projections on the SDK store | open —
#18036 |
| 2 | FE-2467 | billing events reader in `account-core` | open — #18042
|
| **3** | **FE-2479** | **usage log reads on the SDK rail** | **this
PR** |
| 4 | FE-2468 | payment recovery reads on the rail | independent |
| 5 | FE-2470 | team checkout on the SDK subscribe command | independent
|
| 6 | FE-2471 | one status reader for the cloud subscription store |
independent |
| 7 | FE-2480 + FE-2481 | stop registering a second poller | needs 1 |
| 8 | FE-2482 | subscription panel reads the SDK store | needs 1 |
| 9 | FE-2484 + FE-2483 + FE-2485 | recovery through the SDK lifecycle |
needs 1 |
| 10 | FE-2474 | top-up dialog reads through its adapter | independent |
| 11 | FE-2481 | one `proration_at` rule | backend answer |
| 12 | FE-2472 | table-driven safety net | independent |

**The plan's open question for this PR is now closed.** It flagged that
FE-2479 adds a sixth read with no E2E ticket, and offered two ways out:
widen FE-2476 to six reads and stack it behind PR 3, or carry the events
row here. Nothing under `browser_tests/` references
`billingSdkTopupRailEnabled` or `billingSdkSubscriptionRailEnabled`
today, so there is no reader-rail spec to add a row to — carrying it
here would mean building the first rail-flag E2E harness inside an
adoption PR, duplicating the scaffolding FE-2476 exists to build.
FE-2476 was unstarted, so widening cost nothing. **Picked: widen FE-2476
to six reads**, now retitled and blocked on FE-2479. The cost is that PR
14 loses its independence from Step 1.

```mermaid
flowchart LR
  PR3["PR 3 · FE-2479<br/>usage log on the rail"]:::here
  PR2["PR 2 · FE-2467"] --> PR3
  PR1["PR 1 · FE-2469"] --> PR789["PR 7, 8, 9<br/>needs 1"]
  IND["PR 4, 5, 6, 10, 11, 12<br/>independent"]
  PR3 --> PR14["PR 14 · FE-2476<br/>six-read E2E"]

  PR3 --> BAKE["Step 3 · staging bake"]
  PR789 --> BAKE
  IND --> BAKE
  PR14 --> BAKE
  BAKE --> RAMP["Step 4 · production ramp"] --> REMOVE["Step 5 · legacy removal"]

  classDef here fill:#f2994a,stroke:#b35c00,color:#1a1a1a,font-weight:bold
```

- Part of FE-2479
dante01yoon added a commit that referenced this pull request Sep 19, 2026
## Why

The usage log is the last billing read still bound to `workspaceApi`. PR
2 put the reader in `account-core` and exposed `readEvents` on
`billingSdkStore`; nothing calls it. This PR is that call site.

With `billing_sdk_topup_enabled` or `billing_sdk_subscription_enabled`
on, every other billing surface reads through the SDK and this one table
still reaches for the workspace client directly — the one read left off
the rail the other five already take.

## Root cause

`UsageLogsTable.vue` branches on `shouldUseWorkspaceBilling` alone: the
workspace client, or `customerEventService.getMyEvents` for the legacy
`/customers` feed. There is no third arm, because when the readers
landed (#17940 / #17942 / #17946) there was no core reader for
`/billing/events` to point one at.

That absence outlived the reader. `BillingReadRail` — the contract those
five reads resolve through — still declares five members, and FE-2467
deliberately stopped at `billingSdkStore`, leaving the interface
widening to whoever brought the caller. So even with the store method in
place, the rail type does not expose it: the switch could not be written
without this change.

## How

**`readEvents` joins `BillingReadRail`** (`useBillingReadRail.ts:28`).
It is the only member taking options, because it is the only read that
asks for one page rather than one route per scope.

**The workspace arm resolves through the rail**
(`UsageLogsTable.vue:150`–`:155`, called at `:168`):

```ts
const rail = useBillingReadRail()
return rail === null
  ? workspaceApi.getBillingEvents(params)
  : readOnRail(() => rail.readEvents(params))
```

Two choices inside that:

- **The read is closed over, not passed with its arguments.** FE-2479
sketches `readOnRail(rail.readEvents, params)`, but `readOnRail` takes a
zero-arg read and `useBillingCapabilities.ts:74` already closes over its
options rather than widening the signature. Following the existing
pattern keeps `readOnRail` — used by all five other reads — untouched.
- **The rail is read once per load and held for it**, inside
`readWorkspaceEvents`, per the rule on `useBillingReadRail`: a flag flip
mid-read must not start on one client and publish through the other.

**The `customerEventService` branch is untouched.** That is the legacy
`/customers` endpoint, out of scope per M1-13, and it keeps its own
error surface at `:204`.

**A superseded rail read gets its own early return** (`:181`).
`readOnRail` resolves `undefined` on `SUPERSEDED` rather than throwing,
and the existing falsy-response branch renders
`credits.loadEventsError`. Without the guard a scope change would reach
the customer as "Failed to load activity". `undefined` identifies
exactly one thing here: `getMyEvents` returns `CustomerEventsResponse |
null` and `getBillingEvents` throws instead of returning falsy, so only
a superseded rail read produces it. Nothing is published and nothing is
reported — the same stance `useBillingPlans.ts:44` takes on the same
result.

The `latestLoadToken` guard and the `isPendingTopupCompleted` call keep
their order, so a mid-checkout route flip still reports a top-up that
landed on the losing fetch.

## AS IS / TO BE

**Flag off, nothing changes.** `rail === null` resolves to the same
`workspaceApi.getBillingEvents(params)` call the file made before, on
the same branch, with the same error handling.

**Flag on, the same rows arrive over the SDK transport.** The store's
`readEvents` returns `BillingEventsResponse`, the type this table
already consumed, so the rendered page is identical — the rail changes
who fetches, not what is shown. A before/after capture would be two
identical tables, so none is attached.

The one new behaviour is the superseded case, and it is reachable only
on the rail. AS IS, a load that resolves falsy shows "Failed to load
activity". TO BE, a rail read whose scope moved on leaves the table as
it was and says nothing; a genuine failure still throws and still shows
the localized fallback.

## Testing

`UsageLogsTable.test.ts` grows from 22 to 31 tests:

- A four-row table over `shouldUseWorkspaceBilling × rail`, asserting
which of the three readers serves the page and that the other two are
not called. The `false × on` row is what holds the `/customers` feed off
the rail.
- The reader's page rendering the way the legacy rail renders its own.
- The paginator moving to page 2 issuing its own read for page 2 — the
reader keys requests by page, so this is the host-side half of what
`events.test.ts:92` proves in the core.
- `SUPERSEDED` publishing nothing and reporting nothing.
- A failed read surfacing the localized fallback.
- Top-up completion telemetry running off the reader page.

Each new test was checked against the unpatched component: reverting the
production diff fails five of them, and removing only the `undefined`
guard fails the superseded row.

`pnpm test:unit src/platform/workspace src/composables/billing
src/platform/cloud/subscription` (118 files, 2287 tests, 1
expected-fail), `pnpm typecheck`, `pnpm lint` and `pnpm knip` all pass.

## Plan position

Milestone 1, Step 1 — [PR
plan](https://linear.app/comfyorg/document/milestone-1-pr-plan-605f42c5e709).
This is **PR 3**, the tail of the two-PR usage-log stack. Its base is PR
2's branch, so review that one first.

| PR | Tickets | What | Status |
| --- | --- | --- | --- |
| 1 | FE-2469 | operation-state projections on the SDK store | open —
#18036 |
| 2 | FE-2467 | billing events reader in `account-core` | open — #18042
|
| **3** | **FE-2479** | **usage log reads on the SDK rail** | **this
PR** |
| 4 | FE-2468 | payment recovery reads on the rail | independent |
| 5 | FE-2470 | team checkout on the SDK subscribe command | independent
|
| 6 | FE-2471 | one status reader for the cloud subscription store |
independent |
| 7 | FE-2480 + FE-2481 | stop registering a second poller | needs 1 |
| 8 | FE-2482 | subscription panel reads the SDK store | needs 1 |
| 9 | FE-2484 + FE-2483 + FE-2485 | recovery through the SDK lifecycle |
needs 1 |
| 10 | FE-2474 | top-up dialog reads through its adapter | independent |
| 11 | FE-2481 | one `proration_at` rule | backend answer |
| 12 | FE-2472 | table-driven safety net | independent |

**The plan's open question for this PR is now closed.** It flagged that
FE-2479 adds a sixth read with no E2E ticket, and offered two ways out:
widen FE-2476 to six reads and stack it behind PR 3, or carry the events
row here. Nothing under `browser_tests/` references
`billingSdkTopupRailEnabled` or `billingSdkSubscriptionRailEnabled`
today, so there is no reader-rail spec to add a row to — carrying it
here would mean building the first rail-flag E2E harness inside an
adoption PR, duplicating the scaffolding FE-2476 exists to build.
FE-2476 was unstarted, so widening cost nothing. **Picked: widen FE-2476
to six reads**, now retitled and blocked on FE-2479. The cost is that PR
14 loses its independence from Step 1.

```mermaid
flowchart LR
  PR3["PR 3 · FE-2479<br/>usage log on the rail"]:::here
  PR2["PR 2 · FE-2467"] --> PR3
  PR1["PR 1 · FE-2469"] --> PR789["PR 7, 8, 9<br/>needs 1"]
  IND["PR 4, 5, 6, 10, 11, 12<br/>independent"]
  PR3 --> PR14["PR 14 · FE-2476<br/>six-read E2E"]

  PR3 --> BAKE["Step 3 · staging bake"]
  PR789 --> BAKE
  IND --> BAKE
  PR14 --> BAKE
  BAKE --> RAMP["Step 4 · production ramp"] --> REMOVE["Step 5 · legacy removal"]

  classDef here fill:#f2994a,stroke:#b35c00,color:#1a1a1a,font-weight:bold
```

- Part of FE-2479
christian-byrne pushed a commit to christian-byrne/ComfyUI_frontend that referenced this pull request Sep 20, 2026
…r rail (Comfy-Org#18140)

## Why

Comfy-Org#17940 (status, balance), Comfy-Org#17942 (plans), Comfy-Org#17946 (capabilities, saved
payment methods) and Comfy-Org#18047 (billing events) moved every billing read
onto the SDK readers behind `useBillingReadRail`. **None of the four
shipped a browser spec.**

Nothing under `browser_tests/` referenced `billingSdkTopupRailEnabled`
or `billingSdkSubscriptionRailEnabled` before this stack, so the reader
rail — six routes feeding five rendered surfaces — has never been
exercised end to end. The int64 → number projections
(`safeInt64.asSafeNumber`, `projectBillingStatus`,
`projectBillingPlans`) are well unit-tested but had never been run
against a rendered value, which is the only place a silently rounded
amount would show.

## How

`browser_tests/tests/dialogs/billingReadsSdkRail.spec.ts`. Both rails
GET the same six routes, so the URL cannot separate them; the transport
can, as in the write-rail specs — the SDK runs on `fetch`, the legacy
workspace client on axios' XHR.

Settings ▸ Workspace ▸ Plan & Credits is the one surface that drives all
six, so the spec opens it once per row and asserts across the whole set
rather than route by route.

**Rows 1 and 2 are the parity pair.** Rail off: every route this flow
drives is read and *no* read went out on `fetch`. Rail on: the same
routes are read and *no* read went out on `xhr` — one leaking read would
mean a surface reading a backend the rail did not settle. Both rows
assert the same rendered values (the credits total, the usage-log row),
so the projections are pinned against a rendered surface rather than
against each other.

**Five of the six reads, not all six.** Saved payment methods is not
read by this panel — the top-up dialog reads it for its saved-card note
— so it belongs to `topUpSdkRail.spec.ts` (Comfy-Org#18138) rather than here.
Asserting it from this flow would mean driving a dialog this spec has no
other reason to open. The other five are all here, billing events
included, which is the read this ticket was widened for.

**The usage log is behind the panel's Activity tab.** The Credits tab it
opens on never mounts `UsageLogsTable`, so the events read does not go
out until that click — which is what the first CI runs of this spec
showed.

**Row 3 is the int64 case.** A balance of `9007199254740993` micros is
beyond `Number.MAX_SAFE_INTEGER`; the projection must refuse the read
rather than render a number off by an unknown amount. The fixture is
sent as **raw JSON rather than a JS literal** — written as a literal the
digits would be lost in the test file before the app ever saw them,
which would make the row assert nothing. `no-loss-of-precision` flagged
exactly that, and the raw body is the fix.

**Row 4 is the paging case Comfy-Org#18047 introduced.** The events reader is
scoped *and* paged, and `scopedReader` used to key an in-flight read on
scope alone — so a caller wanting page 2 could be handed page 1's
answer. The row pages forward and asserts page 2 issued its own request
and rendered its own row.

## Widened to six reads

FE-2476 originally covered five. The milestone plan left a choice open
before PR 3 could open — widen this ticket to six and stack it behind PR
3, or carry the events row inside PR 3 — and **widening won**: there was
no reader-rail spec to add a row to, so "the events row inside PR 3"
would have meant building the first rail-flag E2E harness inside an
adoption PR. The cost is that this PR is no longer independent of Step
1; it stacks on PR 3.

The `SUPERSEDED` row the ticket also names is not here. A superseded
read is a scope change under an in-flight request, which needs a
workspace switch mid-load; driving that reliably in a browser needs a
harness this spec does not have, and `UsageLogsTable.vue:181` already
discards an undefined response under unit test. Left for a follow-up
rather than written as a flaky row.

## AS IS / TO BE

**No product change** — this PR adds a spec file and touches no source.
There is nothing to capture; what changes is what CI proves about code
already on `main` and on the PR 2/3 stack.

## Testing

- `billingReadsSdkRail.spec.ts` (new, `@cloud`) — four rows as above.
- `pnpm typecheck`, `pnpm typecheck:browser` and `pnpm lint` pass.

**This spec has not been executed locally.** It needs a cloud backend on
`:8188`, which this checkout has no access to, so CI is its first run.
Reviewers should treat a red `@cloud` shard here as the spec's own
problem rather than a regression, and I will chase it.

## Plan position

Milestone 1, Step 1b — [PR
plan](https://linear.app/comfyorg/document/milestone-1-pr-plan-605f42c5e709).
This is **PR 14**. It targets PR 2's branch, which now carries PR 3
(Comfy-Org#18047 merged into it), because the sixth read only exists there.

| PR | Step | Tickets | What | Status |
| --- | --- | --- | --- | --- |
| 1 | 1 | FE-2469 | operation-state projections | merged — Comfy-Org#18036 |
| 2 | 1 | FE-2467 | billing events reader | open — Comfy-Org#18042 |
| 3 | 1 | FE-2479 | usage log on the rail | merged into 2 — Comfy-Org#18047 |
| 4 | 1 | FE-2468 | payment recovery on the rail | open — Comfy-Org#18060 |
| 5 | 1 | FE-2470 | team checkout on the rail | open — Comfy-Org#18136 |
| 6 | 1 | FE-2471 | one status reader | open — Comfy-Org#18092 |
| 7 | 1 | FE-2480 + FE-2481 | checkout reads on the rail | open — Comfy-Org#18134
|
| 8 | 1 | FE-2482 | subscription panel on the rail | open — Comfy-Org#18133 |
| 9 | 1 | FE-2484 + FE-2483 + FE-2485 | recovery on the rail | open —
Comfy-Org#18135 |
| 10 | 1 | FE-2474 | top-up dialog adapter | open — Comfy-Org#18132 |
| 11 | 1 | FE-2481 | one `proration_at` rule | backend answer |
| 12 | 1 | FE-2472 | table-driven safety net | open — Comfy-Org#18137 |
| 13 | 1b | FE-2475 | top-up rail E2E | open — Comfy-Org#18138 |
| **14** | **1b** | **FE-2476** | **six reads E2E** | **this PR** |
| 15 | 1b | FE-2477 | resubscribe + portal E2E | open — Comfy-Org#18139 |

```mermaid
flowchart LR
  PR2["PR 2 · FE-2467<br/>+ PR 3 · FE-2479"] --> PR14["PR 14 · FE-2476<br/>six reads E2E"]:::here
  STEP1["Step 1 · PRs 1, 4-12"]
  PR13["PR 13 · FE-2475"]
  PR15["PR 15 · FE-2477"]

  STEP1 --> BAKE["Step 3 · staging bake"]
  PR13 --> BAKE
  PR14 --> BAKE
  PR15 --> BAKE
  BAKE --> RAMP["Step 4 · production ramp"] --> REMOVE["Step 5 · legacy removal"]

  classDef here fill:#f2994a,stroke:#b35c00,color:#1a1a1a,font-weight:bold
```

- Part of FE-2476
pull Bot pushed a commit to Penguinjanator/ComfyUI_frontend that referenced this pull request Sep 21, 2026
…ption store (Comfy-Org#18092)

## Why

`performFetchSubscriptionStatus` in `useSubscription.ts` read billing
status straight off `workspaceApi.getBillingStatus()` with no rail
branch, in parallel with `useWorkspaceBilling.fetchStatus` (`:336`)
which has taken `useBillingReadRail()` since FE-2216. Two status
readers, one railed and one not.

With either billing SDK flag on, that is two clients answering the same
question. The unrailed one is the earlier of the two: it fires on the
auth watch at bootstrap, and its response is what writes
`workspaceStore.setWorkspaceBillingRail`. So the read that feeds the
legacy-versus-workspace routing decision was the one read still going
through the client the rail replaced.

## The decision

FE-2471 is a decision ticket. It offers two options, and this PR takes
**option 1 — read on the rail here as well, keeping two readers but one
transport.**

**Option 2, delegating to `useWorkspaceBilling.fetchStatus` and deleting
this fetch, is rejected on layering.** This read's response is the input
to the routing decision: `setWorkspaceBillingRail` feeds
`workspaceStore.activeWorkspaceBillingRail`, which
`useBillingRouting.ts:31` reads to choose between `useLegacyBilling` and
`useWorkspaceBilling`. Delegating puts that input inside one of the two
adapters being chosen between — and `useLegacyBilling.ts:49` reads this
very composable, so the legacy adapter would have to call the workspace
adapter to learn which adapter it should be. At bootstrap
`activeWorkspace?.type` is undefined, `useBillingRouting.type` is
therefore `'legacy'`, and the value that would settle it has not been
read yet.

Two further costs make it the wrong move for Step 1:

- **`useWorkspaceBilling.fetchStatus` carries side effects a bootstrap
read must not acquire.** It writes `seatCapacity` (`:349`) and calls
`resumePendingOperation` (`:304`), which registers a legacy poller or
calls `sdk.recover()`. That is precisely the code PRs 7 and 9 are
rewriting; making app bootstrap enter it would widen their blast radius
for no gain.
- **Its staleness fence is workspace-shaped.** `isStaleStatusRead`
(`:326`) drops any read whose captured `activeWorkspace?.id` no longer
matches, where this composable fences on `(userId, activeWorkspaceId)` —
the identity pair a user-scoped bootstrap read actually needs, and the
one the "identity switch" test in this file pins.

What the ticket's title complains about is better read as two
*transports* than two readers, and one transport is what this PR leaves.
**The consequence for the plan: FE-2495 (M1-26) closes as not needed** —
its own description says to close it if option 1 is chosen.

## How

The read comes out of `performFetchSubscriptionStatus` into
`readSubscriptionStatus`, which takes `useBillingReadRail()` and holds
it for that read — a flag flip mid-read must not start on one client and
publish through the other:

```ts
async function readSubscriptionStatus(): Promise<BillingStatusResponse | undefined> {
  const rail = useBillingReadRail()
  try {
    return rail
      ? await readOnRail(rail.readStatus)
      : await workspaceApi.getBillingStatus()
  } catch (error) {
    throw new AuthStoreError(
      t('toastMessages.failedToFetchSubscription', { … })
    )
  }
}
```

Splitting it is worth a word, since the rail branch alone would have
been three lines inline. Reading and publishing are two concerns, and
only the first one grew: which client answers and how its failure is
shaped now sit in one named function, leaving the caller with the scope
guards and the publish. It also drops a `let` that was assigned in a
`try`. Inline, the branch tipped `performFetchSubscriptionStatus` over
fallow's CRAP threshold (37.1 against 30, `introduced: true`);
extracting puts it back under without touching a test.

`readOnRail` returns `undefined` on `SUPERSEDED`, so the status is
optional and a superseded read returns `null` before the publish — no
status, no `setWorkspaceBillingRail`, no
`syncPendingSubscriptionSuccess`. That is the same nothing the identity
guard directly below produces from a read whose owner or workspace has
changed, which is why it sits next to it rather than in its own branch.

Nothing else moved. The error path is behaviourally untouched: a failed
rail read throws `WorkspaceApiError` out of `readOnRail` and hits the
same `catch`, wrapped in the same `AuthStoreError` with the same
`failedToFetchSubscription` message the legacy throw produced. The
in-flight dedupe, the pending-checkout telemetry and the `billing_rail`
write are all as they were.

This is the same shape FE-2216 gave `useBillingPlans.fetchPlans` in
Comfy-Org#17942 — the closest precedent, a cloud subscription composable reading
through `useBillingReadRail` with a superseded read publishing nothing.

## AS IS / TO BE

**No user-visible change, on either rail.** Same status, same panels,
same gate. What changes is which client answers.

| | AS IS (flag on) | TO BE (flag on) |
| --- | --- | --- |
| bootstrap status read | `workspaceApi.getBillingStatus()` |
`readStatus` on the read rail |
| `setWorkspaceBillingRail` source | legacy client's response | the
rail's response |
| superseded scope | stale read published | nothing published |
| flag off | `workspaceApi.getBillingStatus()` | unchanged |

Worth stating explicitly, since the read is on the bootstrap path: **the
rail read has no weaker auth precondition than the legacy one.** Under
`unified_cloud_auth` — the flag these billing rails ramp behind —
`getWorkspaceAuthHeader` returns the unified token or null, and a null
throws `userNotAuthenticated` without waiting; the SDK's scope source
reads the same unified session and answers `NOT_AUTHENTICATED` when it
is not established. Both paths need a minted unified session, so railing
this read adds no new unauthenticated-bootstrap window.

A before/after capture would show the same screen, so none is attached.

## Testing

`useSubscription.test.ts` — the two behaviours that hold on both clients
are now rows over both, so the rail path is pinned by the same
assertions as the legacy path rather than by a copy:

- **publishes a status read through `$reader` and updates the workspace
billing rail** — over the workspace client and the SDK reader. Each row
also asserts the *other* client was never called, which is the
one-transport claim the ticket is about.
- **reports a failed read through `$reader` in the same message** — a
legacy rejection and a rail `ACCESS_DENIED` both surface as `Failed to
fetch subscription status: …`.
- **keeps the published status when a rail read is superseded** —
rail-only: a good status is published first, then a `SUPERSEDED` read
resolves `null` and leaves it standing.

These replace the three legacy-only cases they subsume (`should fetch
subscription status successfully`, `should handle fetch errors
gracefully`, `updates the active workspace billing rail from status`)
with no loss of legacy coverage — the legacy row asserts strictly more
than the case it replaced.

Reverting the source change and re-running fails exactly the three rail
cases; the legacy rows pass on both sides, which is the flag-off half of
the dual path.

`pnpm vitest run src/platform/cloud src/platform/workspace
src/composables/billing` (145 files, 2598 tests), `pnpm typecheck`,
`pnpm lint` and `pnpm knip` all pass.

## Plan position

Milestone 1, Step 1 — [PR
plan](https://linear.app/comfyorg/document/milestone-1-pr-plan-605f42c5e709).
This is **PR 6**, independent: it depends on nothing in Step 1 and
blocks nothing in it. Its output is a plan change rather than a
dependency — it closes FE-2495 out of Step 5.

| PR | Tickets | What | Status |
| --- | --- | --- | --- |
| 1 | FE-2469 | operation-state projections on the SDK store | merged
(Comfy-Org#18036) |
| 2 | FE-2467 | billing events reader in `account-core` | open (Comfy-Org#18042)
|
| 3 | FE-2479 | usage log reads on the SDK rail | open (Comfy-Org#18047), stacked
on 2 |
| 4 | FE-2468 | payment recovery reads on the rail | open (Comfy-Org#18060) |
| 5 | FE-2470 | team checkout on the SDK subscribe command | independent
|
| **6** | **FE-2471** | **one status transport for the cloud
subscription store** | **this PR** |
| 7 | FE-2480 + FE-2481 | stop registering a second poller | needs 1 |
| 8 | FE-2482 | subscription panel reads the SDK store | needs 1 |
| 9 | FE-2484 + FE-2483 + FE-2485 | recovery through the SDK lifecycle |
needs 1 |
| 10 | FE-2474 | top-up dialog reads through its adapter | independent |
| 11 | FE-2481 | one `proration_at` rule | backend answer |
| 12 | FE-2472 | table-driven safety net | independent |

```mermaid
flowchart LR
  PR6["PR 6 · FE-2471<br/>one status transport"]:::here
  PR1["PR 1 · FE-2469<br/>merged"] --> PR7["PR 7 · FE-2480 + FE-2481"]
  PR1 --> PR8["PR 8 · FE-2482"]
  PR1 --> PR9["PR 9 · FE-2484 + FE-2483 + FE-2485"]
  PR2["PR 2 · FE-2467"] --> PR3["PR 3 · FE-2479"]
  IND["PR 4, 5, 10, 11, 12<br/>independent"]

  PR6 --> BAKE["Step 3 · staging bake"]
  PR7 --> BAKE
  PR8 --> BAKE
  PR9 --> BAKE
  PR3 --> BAKE
  IND --> BAKE
  BAKE --> RAMP["Step 4 · production ramp"] --> REMOVE["Step 5 · legacy removal<br/>FE-2495 closes as not needed"]

  classDef here fill:#f2994a,stroke:#b35c00,color:#1a1a1a,font-weight:bold
```

## Review focus

**The decision is the review, not the diff.** The source change is small
and follows Comfy-Org#17942; what needs a second opinion is choosing option 1
over delegation, because that choice retires FE-2495. If you read the
routing cycle differently — or think the two bootstrap round trips are
worth paying the layering cost to remove — this is the PR to say so on,
and FE-2495 should stay open.

Second, the superseded branch returning `null` rather than rescheduling:
a superseded read does not call `syncPendingSubscriptionSuccess`, so it
neither clears nor reschedules pending-checkout recovery. That matches
what a stale legacy read does today at the identity guard, and the
recovery retry is driven separately by the storage/visibility listeners
— but it is the one behavioural edge the rail introduces here.

- Part of FE-2471
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.

2 participants