Repository navigation
[backport cloud/1.52] billing: add the server-resolved capabilities source - #16088
Conversation
## 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 |  |  | | Settings > Plan & Credits |  |  | 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)
|
Important Review skippedIgnore keyword(s) in the title. ⛔ Ignored keywords (2)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
🎨 Storybook: ✅ Built — View Storybook🎭 Playwright: ✅ 1982 passed, 0 failed · 3 flaky📊 Browser Reports
📦 Bundle Size
⚡ Performance Report
Absolute values
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
}
]
} |
Codecov Report❌ Patch coverage is @@ 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
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 15 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Backport of #15803 to
cloud/1.52.Merge order — this PR is stacked
Base is deliberately
backport-15799-to-cloud-1.52, notcloud/1.52. GitHub retargets this PR tocloud/1.52once its parent merges.cloud/1.52→ #15799 → #15803 → #15804 → #15675 → #15967 → #16043 → #16046 → #16067Every 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).