Skip to content

[backport cloud/1.52] billing: add the server-resolved capabilities source - #16088

Merged
dante01yoon merged 2 commits into
cloud/1.52from
backport-15803-to-cloud-1.52
Aug 27, 2026
Merged

dante01yoon merged 2 commits into
cloud/1.52from
backport-15803-to-cloud-1.52

Conversation

@dante01yoon

Copy link
Copy Markdown
Collaborator

Backport of #15803 to cloud/1.52.

Merge order — this PR is stacked

Base is deliberately backport-15799-to-cloud-1.52, not cloud/1.52. GitHub retargets this PR to cloud/1.52 once its parent merges.

cloud/1.52 → #15799 → #15803 → #15804 → #15675 → #15967 → #16043 → #16046 → #16067

Every commit in this chain cherry-picks cleanly; there are no hand-resolved conflicts anywhere in the stack.

Verification

Run at the tip of the full stack: 93 unit test files, 1745 tests, 0 failures (src/platform/workspace, src/platform/cloud/subscription, src/composables/useCoreCommands.test.ts, src/components/actionbar).

dante01yoon and others added 2 commits August 27, 2026 03:46
## Summary

An unsubscribed workspace on Local had no way to add credits: the
subscribe CTA is hidden on Local (#15601) but the Add credits button
never appeared, because both entry points were gated on
`canAccessSubscriptionFeatures` (QA finding #11 from the 1.51
workspace-switcher test plan).

## Changes

- **What**: Gate the Add credits button in `CurrentUserPopoverWorkspace`
and `CreditsTile` on the billing policy table (`topUpAccess ===
'allowed'`) instead of `canAccessSubscriptionFeatures`.
`showTopUpCreditsDialog` already enforces this same policy, so the
buttons and the dialog now agree. The popover's free-tier upsell is
likewise driven by `showsSubscribeUpsellUI`, which also stops the
Cloud-only upgrade upsell from rendering on a Local free tier.

- **Team workspaces**: the Plan & Credits panel forced the
never-subscribed team prompt (`Subscribe now` + zero-state tile) on
every distribution, so a never-subscribed team workspace on Local also
had no top-up path. That prompt is now Cloud-only; the ended-team
inactive treatment is unchanged everywhere so billing, invoices, and
reactivation stay reachable.

## Review Focus

- Cloud behavior is unchanged by construction: on Cloud, `topUpAccess
=== 'allowed'` only in states where `canAccessSubscriptionFeatures` is
already true, and `CloudWithoutActiveSubscription`/`CloudAndFree` keep
their previous surfaces (subscribe action / upgrade upsell).
- On Local every policy state allows top-up, so the button now renders
for unsubscribed workspaces; owner permission gating
(`permissions.canTopUp`) is unchanged.
- The bug only reproduces on the workspace billing rail (`billing_rail:
'stripe'`): the legacy rail exempts Local from the subscription gate,
which is why the existing legacy-rail e2e passes on main. This PR adds
`localCreditsWorkspaceRail.spec.ts` (own fixture, no shared-file
changes, so no conflict with #15797) covering the failing rail end to
end.

Needs backport to `core/1.51` after merge — this is a sign-off blocker
for the 1.51 QA round.

## Screenshots

Local build, workspace billing rail, no active subscription (`is_active:
false`), owner.

| Surface | AS IS (main) | TO BE (this PR) |
| --- | --- | --- |
| Profile popover | ![as-is
popover](https://raw.githubusercontent.com/dante01yoon/ComfyUI_frontend/assets/pr-15799-screenshots/as-is-popover.png)
| ![to-be
popover](https://raw.githubusercontent.com/dante01yoon/ComfyUI_frontend/assets/pr-15799-screenshots/to-be-popover.png)
|
| Settings > Plan & Credits | ![as-is
settings](https://raw.githubusercontent.com/dante01yoon/ComfyUI_frontend/assets/pr-15799-screenshots/as-is-settings.png)
| ![to-be
settings](https://raw.githubusercontent.com/dante01yoon/ComfyUI_frontend/assets/pr-15799-screenshots/to-be-settings.png)
|

AS IS: no Add credits button in either surface (and no Subscribe button
on Local) — a dead end. TO BE: Add credits is available and opens the
top-up dialog.

(cherry picked from commit cb83284)
Adds the client-side source for server-resolved billing capabilities: a
shared composable that fetches `GET /api/billing/capabilities`, keeps
one snapshot per (auth, workspace) scope, and keeps that snapshot fresh.

Nothing renders from it yet — the consumers migrate in #15804. The only
production caller here is `WorkspaceAuthGate`, which kicks off
`initialize()` and never reads the values.

**The capability source** — `useBillingCapabilities`, a
`createSharedComposable` singleton with in-flight request dedupe, abort
handling, a `latestRequestId` guard against out-of-order responses, and
a scope watch that refetches on workspace or auth change and discards
reads resolved for a different workspace.

**Freshness** (originally #15880, merged in) — the response's
`expires_at` and `revision` are consumed rather than ignored, so a
snapshot can't outlive a webhook-processed billing change or a mutation
made in another tab:

- A single `setTimeout` from `expires_at`, gated on document visibility
— scheduled only while the tab is visible, cleared when it hides, and on
return either refetched (if expired) or rescheduled for the remainder.
This is push rather than pull deliberately: `capabilities` is a
`computed`, so wall-clock time is not a reactive dependency and a lazy
check would stay memoized while the UI renders stale values. Visibility
gating keeps an unconditional 2 requests/minute per session out of
hidden tabs, where staleness is unobservable.
- The refresh deadline is decided **once, at receipt**: the resolved
snapshot carries its own `refreshAt`. If the apparent remaining lifetime
clears a 5s floor it is used (capped at 1h); otherwise — negative, tiny,
or an unparseable timestamp — it falls back to a fixed 60s. No
wall-clock arithmetic is redone later, so a skewed clock cannot feed a
negative delay into a clamp.
- A background revalidation **does not blank the current snapshot**.
`capabilities`, `canTopUp` and `isReady` stay stable across it; only a
scope change (auth or workspace) resets immediately, because there the
old answer is wrong rather than merely stale. A failed refresh keeps the
last good snapshot and retries in 60s; a *denial* (401/403) still
replaces it, since that is the server answering about this actor rather
than an absence of an answer.
- A response interceptor on `workspaceApiClient` reads
`X-Capability-Revision` and invalidates on a change. It sits beside the
existing `attachUnifiedRemintInterceptor` rather than adding a layer;
the notifier is its own module because `workspaceApi` cannot import the
composable that imports it.

**Fallback policy.** An unreadable capability keeps top-up available
**only for owners**, and fails closed for every other role including an
unresolved one — `role === 'owner'` rather than `!== 'member'`, because
`activeWorkspace` can be null while `activeWorkspaceId` is set. Failing
fully closed would block an owner from adding credits during an outage,
turning a partial outage into a total billing outage for the only people
who can pay.

- `X-Capability-Revision` is absent on desktop, where CORS is bypassed
for local origins — the read is defensive and degrades silently.
- The middleware stamps the header *before* the handler, so failed
mutations carry it; both interceptor arms are registered, and a 402
still invalidates.
- The header is declared only on the capabilities GET, so generated
types never surface it on mutations — that read is hand-written.
- `POST /api/billing/payment-portal` has no revision middleware yet, so
portal-driven changes invalidate via the expiry timer rather than
instantly. Known backend gap, tracked separately.
- Interceptor ordering: the revision interceptor registers after the
remint one, so a re-minted 401 retry publishes twice. Self-limiting —
the first publish moves `readState` to `pending` and the listener
ignores anything not `resolved`.

- `pnpm typecheck`, `typecheck:browser`, `lint`, `format:check`, `knip`
— clean.
- Full unit suite under `--coverage`: **17,509 passed**, 0
coverage-threshold errors. The 12 `check-binary-size` failures are
pre-existing and environmental.
- The freshness tests were each confirmed to fail against unfixed
source, including the two absence assertions, which pair a negative with
a positive tail so they cannot pass vacuously.

(cherry picked from commit e371f10)
@dosubot dosubot Bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label Aug 27, 2026
@coderabbitai

coderabbitai Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Ignore keyword(s) in the title.

⛔ Ignored keywords (2)
  • [release]
  • [backport

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 301960b2-1ef2-4c55-9f54-bac1b8cd0192

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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

@github-actions

github-actions Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

🎨 Storybook: ✅ Built — View Storybook

Details

⏰ Completed at: 08/27/2026, 04:20:28 AM UTC

Links

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

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

📦 Bundle Size

⏳ Size data collection in progress…

⚡ Performance Report

canvas-idle: · 60.0 avg FPS · 59.9 P5 FPS ✅ (target: ≥52) · 0ms TBT · 76.0 MB heap
canvas-mouse-sweep: · 60.0 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 0ms TBT · 56.4 MB heap
canvas-zoom-sweep: · 60.0 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 0ms TBT · 63.0 MB heap
dom-widget-clipping: · 60.0 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 0ms TBT · 69.0 MB heap
large-graph-idle: · 60.0 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 0ms TBT · 69.7 MB heap
large-graph-pan: · 60.0 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 0ms TBT · 65.2 MB heap
large-graph-zoom: · 60.0 avg FPS · 59.9 P5 FPS ✅ (target: ≥52) · 0ms TBT · 67.8 MB heap
legacy-node-drag: · 60.0 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 0ms TBT · 66.8 MB heap
minimap-idle: · 60.0 avg FPS · 59.9 P5 FPS ✅ (target: ≥52) · 0ms TBT · 66.5 MB heap
subgraph-dom-widget-clipping: · 60.0 avg FPS · 59.5 P5 FPS ✅ (target: ≥52) · 0ms TBT · 71.4 MB heap
subgraph-idle: · 60.0 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 0ms TBT · 64.9 MB heap
subgraph-mouse-sweep: · 60.0 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 0ms TBT · 68.8 MB heap
subgraph-transition-enter: · 60.0 avg FPS · 59.5 P5 FPS ✅ (target: ≥52) · 143ms TBT · 82.8 MB heap
viewport-pan-sweep: · 60.0 avg FPS · 59.9 P5 FPS ✅ (target: ≥52) · 0ms TBT · 76.0 MB heap
vue-large-graph-idle: · 56.3 avg FPS · 59.5 P5 FPS ✅ (target: ≥52) · 0ms TBT · 171.7 MB heap
vue-large-graph-pan: · 55.4 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 84ms TBT · 186.3 MB heap
workflow-execution: · 60.0 avg FPS · 59.9 P5 FPS ✅ (target: ≥52) · 0ms TBT · 63.4 MB heap

ℹ️ No baseline found — significance unavailable.

Absolute values
Metric Value
canvas-idle: avg frame time 17ms
canvas-idle: p95 frame time 17ms
canvas-idle: layout duration 0ms
canvas-idle: style recalc duration 7ms
canvas-idle: layout count 0
canvas-idle: style recalc count 8
canvas-idle: task duration 518ms
canvas-idle: script duration 8ms
canvas-idle: TBT 0ms
canvas-idle: heap used 76.0 MB
canvas-idle: DOM nodes -284
canvas-idle: event listeners -151
canvas-mouse-sweep: avg frame time 17ms
canvas-mouse-sweep: p95 frame time 17ms
canvas-mouse-sweep: layout duration 4ms
canvas-mouse-sweep: style recalc duration 42ms
canvas-mouse-sweep: layout count 12
canvas-mouse-sweep: style recalc count 76
canvas-mouse-sweep: task duration 939ms
canvas-mouse-sweep: script duration 115ms
canvas-mouse-sweep: TBT 0ms
canvas-mouse-sweep: heap used 56.4 MB
canvas-mouse-sweep: DOM nodes -283
canvas-mouse-sweep: event listeners -152
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 18ms
canvas-zoom-sweep: layout count 6
canvas-zoom-sweep: style recalc count 32
canvas-zoom-sweep: task duration 362ms
canvas-zoom-sweep: script duration 10ms
canvas-zoom-sweep: TBT 0ms
canvas-zoom-sweep: heap used 63.0 MB
canvas-zoom-sweep: DOM nodes 78
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 8ms
dom-widget-clipping: layout count 0
dom-widget-clipping: style recalc count 11
dom-widget-clipping: task duration 369ms
dom-widget-clipping: script duration 58ms
dom-widget-clipping: TBT 0ms
dom-widget-clipping: heap used 69.0 MB
dom-widget-clipping: DOM nodes 17
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 8ms
large-graph-idle: layout count 0
large-graph-idle: style recalc count 9
large-graph-idle: task duration 621ms
large-graph-idle: script duration 15ms
large-graph-idle: TBT 0ms
large-graph-idle: heap used 69.7 MB
large-graph-idle: DOM nodes -276
large-graph-idle: event listeners -150
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 17ms
large-graph-pan: layout count 0
large-graph-pan: style recalc count 70
large-graph-pan: task duration 1239ms
large-graph-pan: script duration 339ms
large-graph-pan: TBT 0ms
large-graph-pan: heap used 65.2 MB
large-graph-pan: DOM nodes -278
large-graph-pan: event listeners -148
large-graph-zoom: avg frame time 17ms
large-graph-zoom: p95 frame time 17ms
large-graph-zoom: layout duration 8ms
large-graph-zoom: style recalc duration 16ms
large-graph-zoom: layout count 60
large-graph-zoom: style recalc count 66
large-graph-zoom: task duration 1439ms
large-graph-zoom: script duration 401ms
large-graph-zoom: TBT 0ms
large-graph-zoom: heap used 67.8 MB
large-graph-zoom: DOM nodes -285
large-graph-zoom: event listeners -184
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 11ms
legacy-node-drag: layout count 0
legacy-node-drag: style recalc count 47
legacy-node-drag: task duration 1499ms
legacy-node-drag: script duration 477ms
legacy-node-drag: TBT 0ms
legacy-node-drag: heap used 66.8 MB
legacy-node-drag: DOM nodes 14
legacy-node-drag: event listeners 186
minimap-idle: avg frame time 17ms
minimap-idle: p95 frame time 17ms
minimap-idle: layout duration 0ms
minimap-idle: style recalc duration 7ms
minimap-idle: layout count 0
minimap-idle: style recalc count 8
minimap-idle: task duration 624ms
minimap-idle: script duration 17ms
minimap-idle: TBT 0ms
minimap-idle: heap used 66.5 MB
minimap-idle: DOM nodes -281
minimap-idle: event listeners -163
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 12ms
subgraph-dom-widget-clipping: layout count 0
subgraph-dom-widget-clipping: style recalc count 47
subgraph-dom-widget-clipping: task duration 395ms
subgraph-dom-widget-clipping: script duration 117ms
subgraph-dom-widget-clipping: TBT 0ms
subgraph-dom-widget-clipping: heap used 71.4 MB
subgraph-dom-widget-clipping: DOM nodes 19
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 8ms
subgraph-idle: layout count 0
subgraph-idle: style recalc count 9
subgraph-idle: task duration 532ms
subgraph-idle: script duration 9ms
subgraph-idle: TBT 0ms
subgraph-idle: heap used 64.9 MB
subgraph-idle: DOM nodes -281
subgraph-idle: event listeners -151
subgraph-mouse-sweep: avg frame time 17ms
subgraph-mouse-sweep: p95 frame time 17ms
subgraph-mouse-sweep: layout duration 5ms
subgraph-mouse-sweep: style recalc duration 38ms
subgraph-mouse-sweep: layout count 16
subgraph-mouse-sweep: style recalc count 76
subgraph-mouse-sweep: task duration 834ms
subgraph-mouse-sweep: script duration 90ms
subgraph-mouse-sweep: TBT 0ms
subgraph-mouse-sweep: heap used 68.8 MB
subgraph-mouse-sweep: DOM nodes -281
subgraph-mouse-sweep: event listeners -167
subgraph-transition-enter: avg frame time 17ms
subgraph-transition-enter: p95 frame time 17ms
subgraph-transition-enter: layout duration 16ms
subgraph-transition-enter: style recalc duration 33ms
subgraph-transition-enter: layout count 16
subgraph-transition-enter: style recalc count 21
subgraph-transition-enter: task duration 970ms
subgraph-transition-enter: script duration 17ms
subgraph-transition-enter: TBT 143ms
subgraph-transition-enter: heap used 82.8 MB
subgraph-transition-enter: DOM nodes 13673
subgraph-transition-enter: event listeners 2373
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 39ms
viewport-pan-sweep: layout count 0
viewport-pan-sweep: style recalc count 250
viewport-pan-sweep: task duration 4370ms
viewport-pan-sweep: script duration 1074ms
viewport-pan-sweep: TBT 0ms
viewport-pan-sweep: heap used 76.0 MB
viewport-pan-sweep: DOM nodes -277
viewport-pan-sweep: event listeners -134
vue-large-graph-idle: avg frame time 18ms
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 16644ms
vue-large-graph-idle: script duration 120ms
vue-large-graph-idle: TBT 0ms
vue-large-graph-idle: heap used 171.7 MB
vue-large-graph-idle: DOM nodes -8312
vue-large-graph-idle: event listeners -16390
vue-large-graph-pan: avg frame time 18ms
vue-large-graph-pan: p95 frame time 17ms
vue-large-graph-pan: layout duration 0ms
vue-large-graph-pan: style recalc duration 18ms
vue-large-graph-pan: layout count 0
vue-large-graph-pan: style recalc count 171
vue-large-graph-pan: task duration 20264ms
vue-large-graph-pan: script duration 443ms
vue-large-graph-pan: TBT 84ms
vue-large-graph-pan: heap used 186.3 MB
vue-large-graph-pan: DOM nodes -8312
vue-large-graph-pan: event listeners -16387
workflow-execution: avg frame time 17ms
workflow-execution: p95 frame time 17ms
workflow-execution: layout duration 1ms
workflow-execution: style recalc duration 19ms
workflow-execution: layout count 3
workflow-execution: style recalc count 13
workflow-execution: task duration 99ms
workflow-execution: script duration 8ms
workflow-execution: TBT 0ms
workflow-execution: heap used 63.4 MB
workflow-execution: DOM nodes 138
workflow-execution: event listeners 63
Raw data
{
  "timestamp": "2026-08-27T04:31:40.854Z",
  "gitSha": "044edb8ff99bddf76a277ede69f6f0f9141a3cd6",
  "branch": "backport-15803-to-cloud-1.52",
  "measurements": [
    {
      "name": "canvas-idle",
      "durationMs": 2033.1630000000018,
      "styleRecalcs": 7,
      "styleRecalcDurationMs": 7.090000000000001,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 518.378,
      "heapDeltaBytes": 18970436,
      "heapUsedBytes": 80759288,
      "domNodes": -285,
      "jsHeapTotalBytes": 4448256,
      "scriptDurationMs": 8.548,
      "eventListeners": -151,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.670000000000012,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "canvas-idle",
      "durationMs": 2066.17899999992,
      "styleRecalcs": 8,
      "styleRecalcDurationMs": 7.397000000000001,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 517.1600000000001,
      "heapDeltaBytes": 16949608,
      "heapUsedBytes": 78546204,
      "domNodes": -283,
      "jsHeapTotalBytes": 4186112,
      "scriptDurationMs": 7.677999999999999,
      "eventListeners": -151,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "canvas-mouse-sweep",
      "durationMs": 1996.1980000000494,
      "styleRecalcs": 78,
      "styleRecalcDurationMs": 48.239000000000004,
      "layouts": 12,
      "layoutDurationMs": 3.696,
      "taskDurationMs": 999.6579999999999,
      "heapDeltaBytes": -2735316,
      "heapUsedBytes": 59754888,
      "domNodes": -282,
      "jsHeapTotalBytes": 5234688,
      "scriptDurationMs": 115.20300000000002,
      "eventListeners": -153,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "canvas-mouse-sweep",
      "durationMs": 1853.7390000000187,
      "styleRecalcs": 73,
      "styleRecalcDurationMs": 36.71600000000001,
      "layouts": 12,
      "layoutDurationMs": 3.641,
      "taskDurationMs": 878.6030000000001,
      "heapDeltaBytes": -3278536,
      "heapUsedBytes": 58482684,
      "domNodes": -283,
      "jsHeapTotalBytes": 4710400,
      "scriptDurationMs": 115.149,
      "eventListeners": -151,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "canvas-zoom-sweep",
      "durationMs": 1687.3170000000073,
      "styleRecalcs": 30,
      "styleRecalcDurationMs": 17.163999999999998,
      "layouts": 6,
      "layoutDurationMs": 0.642,
      "taskDurationMs": 361.135,
      "heapDeltaBytes": 3256900,
      "heapUsedBytes": 66184404,
      "domNodes": 77,
      "jsHeapTotalBytes": 4718592,
      "scriptDurationMs": 10.204,
      "eventListeners": 19,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "canvas-zoom-sweep",
      "durationMs": 1739.898999999923,
      "styleRecalcs": 33,
      "styleRecalcDurationMs": 19.032999999999998,
      "layouts": 6,
      "layoutDurationMs": 0.6690000000000002,
      "taskDurationMs": 363.38000000000005,
      "heapDeltaBytes": 3353080,
      "heapUsedBytes": 65837552,
      "domNodes": 78,
      "jsHeapTotalBytes": 4980736,
      "scriptDurationMs": 10.619,
      "eventListeners": 19,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "dom-widget-clipping",
      "durationMs": 563.5879999999815,
      "styleRecalcs": 10,
      "styleRecalcDurationMs": 6.628,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 351.819,
      "heapDeltaBytes": 10514368,
      "heapUsedBytes": 72078244,
      "domNodes": 16,
      "jsHeapTotalBytes": 4980736,
      "scriptDurationMs": 54.688,
      "eventListeners": 0,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.699999999999818
    },
    {
      "name": "dom-widget-clipping",
      "durationMs": 592.8729999999405,
      "styleRecalcs": 11,
      "styleRecalcDurationMs": 8.650000000000002,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 386.00900000000007,
      "heapDeltaBytes": 10432400,
      "heapUsedBytes": 72626804,
      "domNodes": 18,
      "jsHeapTotalBytes": 4980736,
      "scriptDurationMs": 60.697,
      "eventListeners": 2,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "large-graph-idle",
      "durationMs": 2038.5239999999385,
      "styleRecalcs": 8,
      "styleRecalcDurationMs": 6.858,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 619.1340000000001,
      "heapDeltaBytes": -4057216,
      "heapUsedBytes": 73088408,
      "domNodes": -276,
      "jsHeapTotalBytes": -532480,
      "scriptDurationMs": 15.663000000000004,
      "eventListeners": -149,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333332,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "large-graph-idle",
      "durationMs": 2054.5809999999847,
      "styleRecalcs": 9,
      "styleRecalcDurationMs": 9.569,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 623.0829999999999,
      "heapDeltaBytes": -4127956,
      "heapUsedBytes": 73144716,
      "domNodes": -276,
      "jsHeapTotalBytes": -1318912,
      "scriptDurationMs": 15.298000000000002,
      "eventListeners": -151,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "large-graph-pan",
      "durationMs": 2164.449999999988,
      "styleRecalcs": 70,
      "styleRecalcDurationMs": 19.087999999999997,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 1231.1370000000002,
      "heapDeltaBytes": -5244404,
      "heapUsedBytes": 72550292,
      "domNodes": -273,
      "jsHeapTotalBytes": -569344,
      "scriptDurationMs": 337.901,
      "eventListeners": -147,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333332,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "large-graph-pan",
      "durationMs": 2249.247000000082,
      "styleRecalcs": 69,
      "styleRecalcDurationMs": 15.036000000000001,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 1246.9519999999998,
      "heapDeltaBytes": -14257332,
      "heapUsedBytes": 64124780,
      "domNodes": -282,
      "jsHeapTotalBytes": 778240,
      "scriptDurationMs": 339.533,
      "eventListeners": -149,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66999999999998,
      "p95FrameDurationMs": 16.699999999999818
    },
    {
      "name": "large-graph-zoom",
      "durationMs": 3294.582000000105,
      "styleRecalcs": 65,
      "styleRecalcDurationMs": 15.463999999999999,
      "layouts": 60,
      "layoutDurationMs": 7.481,
      "taskDurationMs": 1454.341,
      "heapDeltaBytes": -5722996,
      "heapUsedBytes": 74008192,
      "domNodes": -286,
      "jsHeapTotalBytes": 5496832,
      "scriptDurationMs": 408.971,
      "eventListeners": -185,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "large-graph-zoom",
      "durationMs": 3219.2530000000943,
      "styleRecalcs": 66,
      "styleRecalcDurationMs": 16.239,
      "layouts": 60,
      "layoutDurationMs": 7.702999999999999,
      "taskDurationMs": 1423.26,
      "heapDeltaBytes": -10478800,
      "heapUsedBytes": 68152572,
      "domNodes": -284,
      "jsHeapTotalBytes": 4710400,
      "scriptDurationMs": 392.64,
      "eventListeners": -183,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "legacy-node-drag",
      "durationMs": 2385.189000000082,
      "styleRecalcs": 47,
      "styleRecalcDurationMs": 10.369999999999997,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 1468.166,
      "heapDeltaBytes": -17452476,
      "heapUsedBytes": 70012208,
      "domNodes": 14,
      "jsHeapTotalBytes": 11571200,
      "scriptDurationMs": 460.355,
      "eventListeners": 186,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.670000000000012,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "legacy-node-drag",
      "durationMs": 2684.203000000025,
      "styleRecalcs": 47,
      "styleRecalcDurationMs": 11.722,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 1529.793,
      "heapDeltaBytes": -17207532,
      "heapUsedBytes": 70145296,
      "domNodes": 14,
      "jsHeapTotalBytes": 10260480,
      "scriptDurationMs": 493.849,
      "eventListeners": 186,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "minimap-idle",
      "durationMs": 2042.33499999998,
      "styleRecalcs": 7,
      "styleRecalcDurationMs": 6.855,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 608.5319999999998,
      "heapDeltaBytes": -11905716,
      "heapUsedBytes": 66138456,
      "domNodes": -285,
      "jsHeapTotalBytes": 3661824,
      "scriptDurationMs": 15.288,
      "eventListeners": -179,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "minimap-idle",
      "durationMs": 2029.681000000096,
      "styleRecalcs": 8,
      "styleRecalcDurationMs": 7.713000000000001,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 639.144,
      "heapDeltaBytes": -12178292,
      "heapUsedBytes": 73263216,
      "domNodes": -277,
      "jsHeapTotalBytes": 3923968,
      "scriptDurationMs": 18.606,
      "eventListeners": -147,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333332,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "subgraph-dom-widget-clipping",
      "durationMs": 596.8629999999848,
      "styleRecalcs": 46,
      "styleRecalcDurationMs": 9.615999999999998,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 385.80600000000004,
      "heapDeltaBytes": 12056096,
      "heapUsedBytes": 75182900,
      "domNodes": 18,
      "jsHeapTotalBytes": 5242880,
      "scriptDurationMs": 115.772,
      "eventListeners": 8,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.670000000000012,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "subgraph-dom-widget-clipping",
      "durationMs": 607.3260000000573,
      "styleRecalcs": 47,
      "styleRecalcDurationMs": 15.199,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 403.22100000000006,
      "heapDeltaBytes": 11832972,
      "heapUsedBytes": 74602104,
      "domNodes": 20,
      "jsHeapTotalBytes": 5767168,
      "scriptDurationMs": 118.94100000000002,
      "eventListeners": 6,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "subgraph-idle",
      "durationMs": 2072.6980000000026,
      "styleRecalcs": 9,
      "styleRecalcDurationMs": 8.274000000000003,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 532.572,
      "heapDeltaBytes": -6827964,
      "heapUsedBytes": 56129176,
      "domNodes": -282,
      "jsHeapTotalBytes": 4972544,
      "scriptDurationMs": 8.359999999999998,
      "eventListeners": -151,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333335,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "subgraph-idle",
      "durationMs": 2022.4920000000566,
      "styleRecalcs": 9,
      "styleRecalcDurationMs": 8.514000000000001,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 531.0429999999999,
      "heapDeltaBytes": 18292268,
      "heapUsedBytes": 80010920,
      "domNodes": -280,
      "jsHeapTotalBytes": 4710400,
      "scriptDurationMs": 9.216,
      "eventListeners": -151,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "subgraph-mouse-sweep",
      "durationMs": 1724.523999999974,
      "styleRecalcs": 76,
      "styleRecalcDurationMs": 36.897,
      "layouts": 16,
      "layoutDurationMs": 4.751,
      "taskDurationMs": 848.9250000000001,
      "heapDeltaBytes": -1064644,
      "heapUsedBytes": 61795184,
      "domNodes": -281,
      "jsHeapTotalBytes": 3923968,
      "scriptDurationMs": 91.589,
      "eventListeners": -183,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "subgraph-mouse-sweep",
      "durationMs": 1740.9769999999298,
      "styleRecalcs": 75,
      "styleRecalcDurationMs": 39.102000000000004,
      "layouts": 16,
      "layoutDurationMs": 4.5889999999999995,
      "taskDurationMs": 819.746,
      "heapDeltaBytes": 19787328,
      "heapUsedBytes": 82566536,
      "domNodes": -281,
      "jsHeapTotalBytes": 4972544,
      "scriptDurationMs": 88.94399999999999,
      "eventListeners": -151,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "subgraph-transition-enter",
      "durationMs": 1400.7980000000089,
      "styleRecalcs": 21,
      "styleRecalcDurationMs": 33.245,
      "layouts": 16,
      "layoutDurationMs": 15.595999999999998,
      "taskDurationMs": 969.5940000000003,
      "heapDeltaBytes": -6128920,
      "heapUsedBytes": 86837532,
      "domNodes": 13673,
      "jsHeapTotalBytes": 11796480,
      "scriptDurationMs": 17.378999999999998,
      "eventListeners": 2373,
      "totalBlockingTimeMs": 143,
      "frameDurationMs": 16.66333333333332,
      "p95FrameDurationMs": 16.80000000000109
    },
    {
      "name": "viewport-pan-sweep",
      "durationMs": 8662.069000000087,
      "styleRecalcs": 250,
      "styleRecalcDurationMs": 39.499,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 4449.027,
      "heapDeltaBytes": 3806064,
      "heapUsedBytes": 81062680,
      "domNodes": -275,
      "jsHeapTotalBytes": -307200,
      "scriptDurationMs": 1112.8899999999999,
      "eventListeners": -135,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "viewport-pan-sweep",
      "durationMs": 8462.819999999965,
      "styleRecalcs": 250,
      "styleRecalcDurationMs": 38.263,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 4290.4039999999995,
      "heapDeltaBytes": 882176,
      "heapUsedBytes": 78295044,
      "domNodes": -278,
      "jsHeapTotalBytes": -45056,
      "scriptDurationMs": 1035.1599999999999,
      "eventListeners": -133,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "vue-large-graph-idle",
      "durationMs": 17028.76500000002,
      "styleRecalcs": 0,
      "styleRecalcDurationMs": 0,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 16512.267,
      "heapDeltaBytes": -30948932,
      "heapUsedBytes": 181268516,
      "domNodes": -8312,
      "jsHeapTotalBytes": -12406784,
      "scriptDurationMs": 115.31799999999998,
      "eventListeners": -16389,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 17.776666666666642,
      "p95FrameDurationMs": 16.799999999999272
    },
    {
      "name": "vue-large-graph-idle",
      "durationMs": 17544.984,
      "styleRecalcs": 0,
      "styleRecalcDurationMs": 0,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 16775.475,
      "heapDeltaBytes": -48156768,
      "heapUsedBytes": 178763772,
      "domNodes": -8312,
      "jsHeapTotalBytes": -16699392,
      "scriptDurationMs": 125.46,
      "eventListeners": -16391,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 17.776666666666642,
      "p95FrameDurationMs": 16.80000000000291
    },
    {
      "name": "vue-large-graph-pan",
      "durationMs": 20971.89800000001,
      "styleRecalcs": 174,
      "styleRecalcDurationMs": 17.521000000000008,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 20370.770999999997,
      "heapDeltaBytes": -36108680,
      "heapUsedBytes": 196001012,
      "domNodes": -8312,
      "jsHeapTotalBytes": -21491712,
      "scriptDurationMs": 420.37399999999997,
      "eventListeners": -16387,
      "totalBlockingTimeMs": 36,
      "frameDurationMs": 17.779999999999927,
      "p95FrameDurationMs": 16.799999999999272
    },
    {
      "name": "vue-large-graph-pan",
      "durationMs": 20677.539999999906,
      "styleRecalcs": 168,
      "styleRecalcDurationMs": 18.39000000000002,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 20157.645000000004,
      "heapDeltaBytes": -37234788,
      "heapUsedBytes": 194725780,
      "domNodes": -8312,
      "jsHeapTotalBytes": -24387584,
      "scriptDurationMs": 466.286,
      "eventListeners": -16387,
      "totalBlockingTimeMs": 132,
      "frameDurationMs": 18.333333333333332,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "workflow-execution",
      "durationMs": 475.74199999996836,
      "styleRecalcs": 18,
      "styleRecalcDurationMs": 21.767000000000003,
      "layouts": 3,
      "layoutDurationMs": 1.1139999999999999,
      "taskDurationMs": 117.569,
      "heapDeltaBytes": 5355060,
      "heapUsedBytes": 67930280,
      "domNodes": 148,
      "jsHeapTotalBytes": 0,
      "scriptDurationMs": 11.751,
      "eventListeners": 99,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333332,
      "p95FrameDurationMs": 16.699999999999818
    },
    {
      "name": "workflow-execution",
      "durationMs": 130.83899999992354,
      "styleRecalcs": 7,
      "styleRecalcDurationMs": 15.813,
      "layouts": 3,
      "layoutDurationMs": 1.382,
      "taskDurationMs": 81.312,
      "heapDeltaBytes": 2942040,
      "heapUsedBytes": 65093056,
      "domNodes": 127,
      "jsHeapTotalBytes": 0,
      "scriptDurationMs": 4.230000000000001,
      "eventListeners": 27,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.699999999999818
    }
  ]
}

@github-actions
github-actions Bot requested a review from thedatalife August 27, 2026 04:19
@github-actions github-actions Bot added the risk:R3 PR risk grade (advisory shadow check; grader-owned) label Aug 27, 2026
@codecov

codecov Bot commented Aug 27, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.54902% with 19 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/storybook/mocks/useBillingCapabilities.ts 0.00% 10 Missing ⚠️
...rm/workspace/composables/useBillingCapabilities.ts 96.51% 7 Missing ⚠️
src/platform/workspace/api/capabilityRevision.ts 97.14% 1 Missing ⚠️
src/platform/workspace/api/workspaceApi.ts 85.71% 1 Missing ⚠️
@@                       Coverage Diff                        @@
##           backport-15799-to-cloud-1.52   #16088      +/-   ##
================================================================
+ Coverage                         81.98%   82.00%   +0.02%     
================================================================
  Files                              1910     1913       +3     
  Lines                            109662   109916     +254     
  Branches                          31046    31147     +101     
================================================================
+ Hits                              89902    90134     +232     
- Misses                            19419    19435      +16     
- Partials                            341      347       +6     
Flag Coverage Δ
e2e 66.15% <31.55%> (-0.09%) ⬇️
unit 73.99% <93.54%> (+0.04%) ⬆️

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

Files with missing lines Coverage Δ
src/platform/workspace/auth/WorkspaceAuthGate.vue 97.98% <100.00%> (+0.02%) ⬆️
src/platform/workspace/api/capabilityRevision.ts 97.14% <97.14%> (ø)
src/platform/workspace/api/workspaceApi.ts 83.95% <85.71%> (+0.06%) ⬆️
...rm/workspace/composables/useBillingCapabilities.ts 96.51% <96.51%> (ø)
src/storybook/mocks/useBillingCapabilities.ts 0.00% <0.00%> (ø)

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

@dante01yoon dante01yoon added the backport Backporting a PR onto a release candidate label Aug 27, 2026
Base automatically changed from backport-15799-to-cloud-1.52 to cloud/1.52 August 27, 2026 14:27
@dante01yoon
dante01yoon merged commit c6dab25 into cloud/1.52 Aug 27, 2026
98 checks passed
@dante01yoon
dante01yoon deleted the backport-15803-to-cloud-1.52 branch August 27, 2026 14:28
@huang47 huang47 added the risk:xhigh PR risk grade (advisory shadow check; grader-owned) label Sep 2, 2026 — with ChatGPT Codex Connector
@huang47 huang47 removed the risk:R3 PR risk grade (advisory shadow check; grader-owned) label Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Backporting a PR onto a release candidate risk:xhigh PR risk grade (advisory shadow check; grader-owned) size:XL This PR changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants