Skip to content

[backport cloud/1.52] feat(billing): render sales-managed tiers through server capabilities - #16094

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

dante01yoon merged 3 commits into
cloud/1.52from
backport-16067-to-cloud-1.52

Conversation

@dante01yoon

Copy link
Copy Markdown
Collaborator

Backport of #16067 to cloud/1.52.

Merge order — this PR is stacked

Base is deliberately backport-16046-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).

Also carries #16032 and #16041

#16067's unit tests need mocks (app.queuePrompt, trackWorkflowExecution, useQueueSettingsStore) that #16032 introduced, and its run-gate coverage comes from #16041. Both are already backported independently as #16084 and #16059. This branch therefore contains them; whichever lands first makes the other's patch a no-op. Without #16032 the useCoreCommands hunks conflict and 8 tests fail.

@dosubot dosubot Bot added the size:L This PR changes 100-499 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: 44a0d57c-7a4f-4caa-804e-31241df09d53

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, 03:53:15 PM UTC

Links

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

📊 Browser Reports
  • chromium: View Report (✅ 1964 / ❌ 0 / ⚠️ 2 / ⏭️ 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.9 P5 FPS ✅ (target: ≥52) · 0ms TBT · 65.7 MB heap
canvas-zoom-sweep: · 60.0 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 0ms TBT · 62.9 MB heap
dom-widget-clipping: · 60.0 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 0ms TBT · 69.8 MB heap
large-graph-idle: · 60.0 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 0ms TBT · 69.2 MB heap
large-graph-pan: · 60.0 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 0ms TBT · 75.8 MB heap
large-graph-zoom: · 60.0 avg FPS · 59.9 P5 FPS ✅ (target: ≥52) · 0ms TBT · 67.1 MB heap
legacy-node-drag: · 60.0 avg FPS · 59.9 P5 FPS ✅ (target: ≥52) · 0ms TBT · 77.3 MB heap
minimap-idle: · 60.0 avg FPS · 59.5 P5 FPS ✅ (target: ≥52) · 0ms TBT · 62.6 MB heap
subgraph-dom-widget-clipping: · 60.0 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 0ms TBT · 70.9 MB heap
subgraph-idle: · 60.0 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 0ms TBT · 64.7 MB heap
subgraph-mouse-sweep: · 60.0 avg FPS · 59.9 P5 FPS ✅ (target: ≥52) · 0ms TBT · 75.2 MB heap
subgraph-transition-enter: · 60.0 avg FPS · 59.5 P5 FPS ✅ (target: ≥52) · 133ms TBT · 83.7 MB heap
viewport-pan-sweep: · 60.0 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 0ms TBT · 75.5 MB heap
vue-large-graph-idle: · 56.3 avg FPS · 59.5 P5 FPS ✅ (target: ≥52) · 0ms TBT · 161.8 MB heap
vue-large-graph-pan: · 57.1 avg FPS · 59.5 P5 FPS ✅ (target: ≥52) · 0ms TBT · 175.2 MB heap
workflow-execution: · 60.0 avg FPS · 59.7 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 9
canvas-idle: task duration 546ms
canvas-idle: script duration 10ms
canvas-idle: TBT 0ms
canvas-idle: heap used 76.0 MB
canvas-idle: DOM nodes -281
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 34ms
canvas-mouse-sweep: layout count 12
canvas-mouse-sweep: style recalc count 74
canvas-mouse-sweep: task duration 857ms
canvas-mouse-sweep: script duration 101ms
canvas-mouse-sweep: TBT 0ms
canvas-mouse-sweep: heap used 65.7 MB
canvas-mouse-sweep: DOM nodes -282
canvas-mouse-sweep: event listeners -151
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 16ms
canvas-zoom-sweep: layout count 6
canvas-zoom-sweep: style recalc count 31
canvas-zoom-sweep: task duration 376ms
canvas-zoom-sweep: script duration 12ms
canvas-zoom-sweep: TBT 0ms
canvas-zoom-sweep: heap used 62.9 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 8ms
dom-widget-clipping: layout count 0
dom-widget-clipping: style recalc count 12
dom-widget-clipping: task duration 385ms
dom-widget-clipping: script duration 54ms
dom-widget-clipping: TBT 0ms
dom-widget-clipping: heap used 69.8 MB
dom-widget-clipping: DOM nodes 19
dom-widget-clipping: event listeners 2
large-graph-idle: avg frame time 17ms
large-graph-idle: p95 frame time 17ms
large-graph-idle: layout duration 0ms
large-graph-idle: style recalc duration 8ms
large-graph-idle: layout count 0
large-graph-idle: style recalc count 10
large-graph-idle: task duration 641ms
large-graph-idle: script duration 16ms
large-graph-idle: TBT 0ms
large-graph-idle: heap used 69.2 MB
large-graph-idle: DOM nodes -276
large-graph-idle: event listeners -149
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 16ms
large-graph-pan: layout count 0
large-graph-pan: style recalc count 69
large-graph-pan: task duration 1212ms
large-graph-pan: script duration 326ms
large-graph-pan: TBT 0ms
large-graph-pan: heap used 75.8 MB
large-graph-pan: DOM nodes -282
large-graph-pan: event listeners -162
large-graph-zoom: avg frame time 17ms
large-graph-zoom: p95 frame time 17ms
large-graph-zoom: layout duration 9ms
large-graph-zoom: style recalc duration 16ms
large-graph-zoom: layout count 60
large-graph-zoom: style recalc count 65
large-graph-zoom: task duration 1332ms
large-graph-zoom: script duration 365ms
large-graph-zoom: TBT 0ms
large-graph-zoom: heap used 67.1 MB
large-graph-zoom: DOM nodes 11
large-graph-zoom: event listeners 8
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 10ms
legacy-node-drag: layout count 0
legacy-node-drag: style recalc count 47
legacy-node-drag: task duration 1399ms
legacy-node-drag: script duration 433ms
legacy-node-drag: TBT 0ms
legacy-node-drag: heap used 77.3 MB
legacy-node-drag: DOM nodes 13
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 632ms
minimap-idle: script duration 18ms
minimap-idle: TBT 0ms
minimap-idle: heap used 62.6 MB
minimap-idle: DOM nodes -283
minimap-idle: event listeners -179
subgraph-dom-widget-clipping: avg frame time 17ms
subgraph-dom-widget-clipping: p95 frame time 17ms
subgraph-dom-widget-clipping: layout duration 0ms
subgraph-dom-widget-clipping: style recalc duration 9ms
subgraph-dom-widget-clipping: layout count 0
subgraph-dom-widget-clipping: style recalc count 45
subgraph-dom-widget-clipping: task duration 391ms
subgraph-dom-widget-clipping: script duration 116ms
subgraph-dom-widget-clipping: TBT 0ms
subgraph-dom-widget-clipping: heap used 70.9 MB
subgraph-dom-widget-clipping: DOM nodes 15
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 10
subgraph-idle: task duration 511ms
subgraph-idle: script duration 9ms
subgraph-idle: TBT 0ms
subgraph-idle: heap used 64.7 MB
subgraph-idle: DOM nodes -282
subgraph-idle: event listeners -152
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 39ms
subgraph-mouse-sweep: layout count 16
subgraph-mouse-sweep: style recalc count 75
subgraph-mouse-sweep: task duration 847ms
subgraph-mouse-sweep: script duration 80ms
subgraph-mouse-sweep: TBT 0ms
subgraph-mouse-sweep: heap used 75.2 MB
subgraph-mouse-sweep: DOM nodes -283
subgraph-mouse-sweep: event listeners -152
subgraph-transition-enter: avg frame time 17ms
subgraph-transition-enter: p95 frame time 17ms
subgraph-transition-enter: layout duration 12ms
subgraph-transition-enter: style recalc duration 30ms
subgraph-transition-enter: layout count 15
subgraph-transition-enter: style recalc count 20
subgraph-transition-enter: task duration 870ms
subgraph-transition-enter: script duration 18ms
subgraph-transition-enter: TBT 133ms
subgraph-transition-enter: heap used 83.7 MB
subgraph-transition-enter: DOM nodes 13673
subgraph-transition-enter: event listeners 2375
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 45ms
viewport-pan-sweep: layout count 0
viewport-pan-sweep: style recalc count 250
viewport-pan-sweep: task duration 4180ms
viewport-pan-sweep: script duration 1021ms
viewport-pan-sweep: TBT 0ms
viewport-pan-sweep: heap used 75.5 MB
viewport-pan-sweep: DOM nodes -277
viewport-pan-sweep: event listeners -147
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 14543ms
vue-large-graph-idle: script duration 128ms
vue-large-graph-idle: TBT 0ms
vue-large-graph-idle: heap used 161.8 MB
vue-large-graph-idle: DOM nodes -8312
vue-large-graph-idle: event listeners -16393
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 22ms
vue-large-graph-pan: layout count 0
vue-large-graph-pan: style recalc count 157
vue-large-graph-pan: task duration 17928ms
vue-large-graph-pan: script duration 435ms
vue-large-graph-pan: TBT 0ms
vue-large-graph-pan: heap used 175.2 MB
vue-large-graph-pan: DOM nodes -8312
vue-large-graph-pan: event listeners -16389
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 109ms
workflow-execution: script duration 7ms
workflow-execution: TBT 0ms
workflow-execution: heap used 63.4 MB
workflow-execution: DOM nodes 138
workflow-execution: event listeners 62
Raw data
{
  "timestamp": "2026-08-27T16:04:06.811Z",
  "gitSha": "4498b86a232aa2a5ec1daff8fd3fc019525ed3c1",
  "branch": "backport-16067-to-cloud-1.52",
  "measurements": [
    {
      "name": "canvas-idle",
      "durationMs": 2076.0909999999626,
      "styleRecalcs": 9,
      "styleRecalcDurationMs": 6.695000000000001,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 563.7339999999999,
      "heapDeltaBytes": 15606752,
      "heapUsedBytes": 77908184,
      "domNodes": -281,
      "jsHeapTotalBytes": 4710400,
      "scriptDurationMs": 8.817,
      "eventListeners": -151,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "canvas-idle",
      "durationMs": 2037.6080000000911,
      "styleRecalcs": 9,
      "styleRecalcDurationMs": 6.900000000000001,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 527.956,
      "heapDeltaBytes": 18872548,
      "heapUsedBytes": 81399124,
      "domNodes": -280,
      "jsHeapTotalBytes": 4186112,
      "scriptDurationMs": 10.651,
      "eventListeners": -151,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333332,
      "p95FrameDurationMs": 16.699999999999818
    },
    {
      "name": "canvas-mouse-sweep",
      "durationMs": 1906.3889999999901,
      "styleRecalcs": 77,
      "styleRecalcDurationMs": 35.594,
      "layouts": 12,
      "layoutDurationMs": 3.9159999999999995,
      "taskDurationMs": 868.444,
      "heapDeltaBytes": -5483744,
      "heapUsedBytes": 57189476,
      "domNodes": -281,
      "jsHeapTotalBytes": 5234688,
      "scriptDurationMs": 100.444,
      "eventListeners": -151,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333332,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "canvas-mouse-sweep",
      "durationMs": 1770.7169999999905,
      "styleRecalcs": 70,
      "styleRecalcDurationMs": 31.47,
      "layouts": 12,
      "layoutDurationMs": 3.456,
      "taskDurationMs": 845.194,
      "heapDeltaBytes": 17583740,
      "heapUsedBytes": 80603552,
      "domNodes": -282,
      "jsHeapTotalBytes": 4710400,
      "scriptDurationMs": 100.897,
      "eventListeners": -151,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "canvas-zoom-sweep",
      "durationMs": 1713.0430000000274,
      "styleRecalcs": 31,
      "styleRecalcDurationMs": 15.585999999999999,
      "layouts": 6,
      "layoutDurationMs": 0.624,
      "taskDurationMs": 367.139,
      "heapDeltaBytes": 3347156,
      "heapUsedBytes": 65885688,
      "domNodes": 77,
      "jsHeapTotalBytes": 4718592,
      "scriptDurationMs": 11.349000000000002,
      "eventListeners": 19,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "canvas-zoom-sweep",
      "durationMs": 1724.3500000000722,
      "styleRecalcs": 30,
      "styleRecalcDurationMs": 16.554,
      "layouts": 6,
      "layoutDurationMs": 0.68,
      "taskDurationMs": 385.49099999999993,
      "heapDeltaBytes": 2923804,
      "heapUsedBytes": 66037588,
      "domNodes": 76,
      "jsHeapTotalBytes": 4456448,
      "scriptDurationMs": 12.409000000000002,
      "eventListeners": 19,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "dom-widget-clipping",
      "durationMs": 634.6189999999865,
      "styleRecalcs": 10,
      "styleRecalcDurationMs": 7.226,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 381.256,
      "heapDeltaBytes": 10380772,
      "heapUsedBytes": 72870704,
      "domNodes": 16,
      "jsHeapTotalBytes": 4456448,
      "scriptDurationMs": 55.347,
      "eventListeners": 2,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333332,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "dom-widget-clipping",
      "durationMs": 640.5799999999999,
      "styleRecalcs": 13,
      "styleRecalcDurationMs": 9.574,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 389.1620000000001,
      "heapDeltaBytes": 11009076,
      "heapUsedBytes": 73555140,
      "domNodes": 22,
      "jsHeapTotalBytes": 4980736,
      "scriptDurationMs": 53.587999999999994,
      "eventListeners": 2,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "large-graph-idle",
      "durationMs": 2052.2020000000225,
      "styleRecalcs": 10,
      "styleRecalcDurationMs": 8.262000000000002,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 626.322,
      "heapDeltaBytes": -4864796,
      "heapUsedBytes": 72506892,
      "domNodes": -276,
      "jsHeapTotalBytes": -1056768,
      "scriptDurationMs": 15.450999999999999,
      "eventListeners": -147,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "large-graph-idle",
      "durationMs": 2056.197999999995,
      "styleRecalcs": 9,
      "styleRecalcDurationMs": 8.686,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 656.416,
      "heapDeltaBytes": -4735792,
      "heapUsedBytes": 72702168,
      "domNodes": -275,
      "jsHeapTotalBytes": -8192,
      "scriptDurationMs": 16.106999999999996,
      "eventListeners": -151,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "large-graph-pan",
      "durationMs": 2149.4930000000068,
      "styleRecalcs": 69,
      "styleRecalcDurationMs": 15.473999999999998,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 1189.711,
      "heapDeltaBytes": 12340136,
      "heapUsedBytes": 89557264,
      "domNodes": -284,
      "jsHeapTotalBytes": 4935680,
      "scriptDurationMs": 311.681,
      "eventListeners": -177,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "large-graph-pan",
      "durationMs": 2148.853000000031,
      "styleRecalcs": 69,
      "styleRecalcDurationMs": 17.374000000000002,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 1233.9850000000001,
      "heapDeltaBytes": -8894212,
      "heapUsedBytes": 69340124,
      "domNodes": -280,
      "jsHeapTotalBytes": -45056,
      "scriptDurationMs": 339.874,
      "eventListeners": -147,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "large-graph-zoom",
      "durationMs": 3167.814000000021,
      "styleRecalcs": 64,
      "styleRecalcDurationMs": 15.167999999999997,
      "layouts": 60,
      "layoutDurationMs": 8.703,
      "taskDurationMs": 1322.4509999999998,
      "heapDeltaBytes": -8665976,
      "heapUsedBytes": 71030960,
      "domNodes": 10,
      "jsHeapTotalBytes": 6066176,
      "scriptDurationMs": 375.57800000000003,
      "eventListeners": 8,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333332,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "large-graph-zoom",
      "durationMs": 3164.319999999975,
      "styleRecalcs": 65,
      "styleRecalcDurationMs": 17.185,
      "layouts": 60,
      "layoutDurationMs": 9.538,
      "taskDurationMs": 1342.1879999999999,
      "heapDeltaBytes": -9770576,
      "heapUsedBytes": 69776288,
      "domNodes": 12,
      "jsHeapTotalBytes": 5804032,
      "scriptDurationMs": 353.892,
      "eventListeners": 8,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333332,
      "p95FrameDurationMs": 16.699999999999818
    },
    {
      "name": "legacy-node-drag",
      "durationMs": 2160.1040000000467,
      "styleRecalcs": 47,
      "styleRecalcDurationMs": 9.568,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 1344.445,
      "heapDeltaBytes": -13908604,
      "heapUsedBytes": 71495280,
      "domNodes": 14,
      "jsHeapTotalBytes": 8163328,
      "scriptDurationMs": 423.562,
      "eventListeners": 186,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.670000000000012,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "legacy-node-drag",
      "durationMs": 2303.5260000000335,
      "styleRecalcs": 46,
      "styleRecalcDurationMs": 11.067999999999998,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 1454.1709999999998,
      "heapDeltaBytes": 10431424,
      "heapUsedBytes": 90576108,
      "domNodes": 12,
      "jsHeapTotalBytes": 7008256,
      "scriptDurationMs": 443.21900000000005,
      "eventListeners": 186,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333332,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "minimap-idle",
      "durationMs": 2059.572000000003,
      "styleRecalcs": 7,
      "styleRecalcDurationMs": 6.258999999999997,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 629.347,
      "heapDeltaBytes": -12608808,
      "heapUsedBytes": 65772736,
      "domNodes": -283,
      "jsHeapTotalBytes": 3923968,
      "scriptDurationMs": 17.668000000000003,
      "eventListeners": -179,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "minimap-idle",
      "durationMs": 2010.6220000000121,
      "styleRecalcs": 8,
      "styleRecalcDurationMs": 7.188000000000003,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 634.589,
      "heapDeltaBytes": -12935992,
      "heapUsedBytes": 65566680,
      "domNodes": -283,
      "jsHeapTotalBytes": 3923968,
      "scriptDurationMs": 17.577,
      "eventListeners": -179,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "subgraph-dom-widget-clipping",
      "durationMs": 591.575999999975,
      "styleRecalcs": 46,
      "styleRecalcDurationMs": 9.763,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 392.4920000000001,
      "heapDeltaBytes": 11567116,
      "heapUsedBytes": 74402160,
      "domNodes": 18,
      "jsHeapTotalBytes": 5242880,
      "scriptDurationMs": 115.97800000000001,
      "eventListeners": 8,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333332,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "subgraph-dom-widget-clipping",
      "durationMs": 632.8399999999874,
      "styleRecalcs": 43,
      "styleRecalcDurationMs": 8.543000000000003,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 389.93100000000004,
      "heapDeltaBytes": 12001228,
      "heapUsedBytes": 74294540,
      "domNodes": 12,
      "jsHeapTotalBytes": 6029312,
      "scriptDurationMs": 115.24599999999998,
      "eventListeners": 6,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333332,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "subgraph-idle",
      "durationMs": 2009.9079999999958,
      "styleRecalcs": 9,
      "styleRecalcDurationMs": 7.104999999999999,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 494.19599999999997,
      "heapDeltaBytes": 17663528,
      "heapUsedBytes": 79853296,
      "domNodes": -281,
      "jsHeapTotalBytes": 4972544,
      "scriptDurationMs": 7.927,
      "eventListeners": -153,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333332,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "subgraph-idle",
      "durationMs": 2016.1430000000564,
      "styleRecalcs": 10,
      "styleRecalcDurationMs": 8.578,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 527.65,
      "heapDeltaBytes": -6862160,
      "heapUsedBytes": 55770492,
      "domNodes": -282,
      "jsHeapTotalBytes": 4448256,
      "scriptDurationMs": 9.311,
      "eventListeners": -151,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "subgraph-mouse-sweep",
      "durationMs": 1783.5000000000036,
      "styleRecalcs": 75,
      "styleRecalcDurationMs": 37.943000000000005,
      "layouts": 16,
      "layoutDurationMs": 4.3340000000000005,
      "taskDurationMs": 823.519,
      "heapDeltaBytes": 13512764,
      "heapUsedBytes": 75886028,
      "domNodes": -282,
      "jsHeapTotalBytes": 5496832,
      "scriptDurationMs": 74.297,
      "eventListeners": -153,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "subgraph-mouse-sweep",
      "durationMs": 1786.9029999999384,
      "styleRecalcs": 74,
      "styleRecalcDurationMs": 40.176,
      "layouts": 16,
      "layoutDurationMs": 5.166,
      "taskDurationMs": 870.3960000000001,
      "heapDeltaBytes": 19393692,
      "heapUsedBytes": 81821944,
      "domNodes": -283,
      "jsHeapTotalBytes": 5496832,
      "scriptDurationMs": 86.62899999999999,
      "eventListeners": -151,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333332,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "subgraph-transition-enter",
      "durationMs": 1366.1550000000489,
      "styleRecalcs": 20,
      "styleRecalcDurationMs": 30.116000000000003,
      "layouts": 15,
      "layoutDurationMs": 12.25,
      "taskDurationMs": 869.9649999999999,
      "heapDeltaBytes": -6205996,
      "heapUsedBytes": 87773020,
      "domNodes": 13673,
      "jsHeapTotalBytes": 13107200,
      "scriptDurationMs": 17.877000000000002,
      "eventListeners": 2375,
      "totalBlockingTimeMs": 133,
      "frameDurationMs": 16.66333333333332,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "viewport-pan-sweep",
      "durationMs": 8178.824999999961,
      "styleRecalcs": 250,
      "styleRecalcDurationMs": 44.268,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 4102.5689999999995,
      "heapDeltaBytes": 1730820,
      "heapUsedBytes": 78153844,
      "domNodes": -278,
      "jsHeapTotalBytes": -45056,
      "scriptDurationMs": 1006.61,
      "eventListeners": -161,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "viewport-pan-sweep",
      "durationMs": 8179.883000000018,
      "styleRecalcs": 250,
      "styleRecalcDurationMs": 46.018,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 4257.688,
      "heapDeltaBytes": 2807032,
      "heapUsedBytes": 80210636,
      "domNodes": -276,
      "jsHeapTotalBytes": -307200,
      "scriptDurationMs": 1035.318,
      "eventListeners": -133,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.80000000000109
    },
    {
      "name": "vue-large-graph-idle",
      "durationMs": 14952.698999999995,
      "styleRecalcs": 0,
      "styleRecalcDurationMs": 0,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 14357.930999999999,
      "heapDeltaBytes": -36251392,
      "heapUsedBytes": 176076716,
      "domNodes": -8312,
      "jsHeapTotalBytes": -21319680,
      "scriptDurationMs": 139.22199999999995,
      "eventListeners": -16393,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 17.77333333333336,
      "p95FrameDurationMs": 16.799999999999272
    },
    {
      "name": "vue-large-graph-idle",
      "durationMs": 15361.331999999948,
      "styleRecalcs": 0,
      "styleRecalcDurationMs": 0,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 14727.905,
      "heapDeltaBytes": -66982804,
      "heapUsedBytes": 163324076,
      "domNodes": -8312,
      "jsHeapTotalBytes": -18423808,
      "scriptDurationMs": 116.77799999999999,
      "eventListeners": -16392,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 17.776666666666642,
      "p95FrameDurationMs": 16.799999999999272
    },
    {
      "name": "vue-large-graph-pan",
      "durationMs": 18372.336000000018,
      "styleRecalcs": 152,
      "styleRecalcDurationMs": 21.943999999999992,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 17879.256999999998,
      "heapDeltaBytes": -37504632,
      "heapUsedBytes": 193861708,
      "domNodes": -8312,
      "jsHeapTotalBytes": -22011904,
      "scriptDurationMs": 456.843,
      "eventListeners": -16389,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 17.780000000000047,
      "p95FrameDurationMs": 16.799999999999272
    },
    {
      "name": "vue-large-graph-pan",
      "durationMs": 18457.525999999918,
      "styleRecalcs": 162,
      "styleRecalcDurationMs": 22.818000000000005,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 17977.597,
      "heapDeltaBytes": -52111448,
      "heapUsedBytes": 173538168,
      "domNodes": -8312,
      "jsHeapTotalBytes": -16556032,
      "scriptDurationMs": 412.314,
      "eventListeners": -16389,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 17.219999999999953,
      "p95FrameDurationMs": 16.799999999999272
    },
    {
      "name": "workflow-execution",
      "durationMs": 478.93599999997605,
      "styleRecalcs": 17,
      "styleRecalcDurationMs": 20.674,
      "layouts": 3,
      "layoutDurationMs": 1.4659999999999997,
      "taskDurationMs": 122.12800000000001,
      "heapDeltaBytes": 5131852,
      "heapUsedBytes": 67887604,
      "domNodes": 148,
      "jsHeapTotalBytes": 262144,
      "scriptDurationMs": 7.153,
      "eventListeners": 99,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "workflow-execution",
      "durationMs": 131.78999999990992,
      "styleRecalcs": 8,
      "styleRecalcDurationMs": 16.874999999999996,
      "layouts": 2,
      "layoutDurationMs": 1.467,
      "taskDurationMs": 96.273,
      "heapDeltaBytes": 3050224,
      "heapUsedBytes": 65032024,
      "domNodes": 127,
      "jsHeapTotalBytes": 262144,
      "scriptDurationMs": 7.184999999999999,
      "eventListeners": 25,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.800000000000182
    }
  ]
}

@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 95.12195% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...atform/cloud/subscription/constants/tierPricing.ts 77.77% 2 Missing ⚠️
...e/components/SubscriptionPanelContentWorkspace.vue 90.90% 2 Missing ⚠️
@@              Coverage Diff              @@
##             cloud/1.52   #16094   +/-   ##
=============================================
  Coverage              ?   82.01%           
=============================================
  Files                 ?     1910           
  Lines                 ?   109976           
  Branches              ?    31210           
=============================================
  Hits                  ?    90195           
  Misses                ?    19442           
  Partials              ?      339           
Flag Coverage Δ
e2e 66.16% <47.61%> (?)
unit 74.03% <97.43%> (?)

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

Files with missing lines Coverage Δ
...actionbar/ComfyRunButton/CloudRunButtonWrapper.vue 100.00% <100.00%> (ø)
src/composables/useCoreCommands.ts 63.27% <100.00%> (ø)
...form/cloud/subscription/components/CreditsTile.vue 98.98% <100.00%> (ø)
...bscription/composables/usePricingTableUrlLoader.ts 92.68% <100.00%> (ø)
...rkspace/components/CurrentUserPopoverWorkspace.vue 91.39% <100.00%> (ø)
...ponents/SubscriptionTransitionPreviewWorkspace.vue 91.20% <100.00%> (ø)
...orm/workspace/composables/useWorkspaceMenuItems.ts 98.36% <100.00%> (ø)
...c/platform/workspace/composables/useWorkspaceUI.ts 98.55% <100.00%> (ø)
...atform/cloud/subscription/constants/tierPricing.ts 89.47% <77.77%> (ø)
...e/components/SubscriptionPanelContentWorkspace.vue 96.62% <90.90%> (ø)
🚀 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
@dante01yoon
dante01yoon force-pushed the backport-16046-to-cloud-1.52 branch from a42a540 to faaf429 Compare August 27, 2026 15:10
@dante01yoon
dante01yoon force-pushed the backport-16067-to-cloud-1.52 branch from e00c963 to 0d091c1 Compare August 27, 2026 15:10
@dante01yoon
dante01yoon force-pushed the backport-16046-to-cloud-1.52 branch from faaf429 to 2249062 Compare August 27, 2026 15:31
Base automatically changed from backport-16046-to-cloud-1.52 to cloud/1.52 August 27, 2026 15:47
dante01yoon and others added 3 commits August 27, 2026 15:50
… workspace (#16041)

## Summary

Adds the E2E regression test for #16032 (Run silently doing nothing on
Local at 0 credits), driven through the real Run button.

## Why this was missed by E2E

`workspaceSwitcherFixture` already models the exact failing state
(`is_active: false`, balance 0, Local), but the existing queue test
calls `window.app.queuePrompt(0)` directly — bypassing the
`Comfy.QueuePrompt` command where the subscribe-to-run gate lives. The
QA-reported bug (thread: 1.51 local workspace switcher QA) lived
precisely in that skipped layer.

## Changes

- **What**: New test in `localWorkspaceSwitcher.spec.ts` that loads the
default workflow on an unsubscribed/zero-balance Local workspace, clicks
the actual Run button, and asserts `POST /api/prompt` is issued.

## Verification

- Passes against current main (real ComfyUI backend + dev server).
- Fails against the pre-#16032 gate (`if
(!canAccessSubscriptionFeatures.value)` reverted locally): Run click
produces no prompt request, test times out — reproducing the QA report.
- Full `localWorkspaceSwitcher.spec.ts` (3 tests) green.

## Review Focus

- Coverage audit of this QA round: every other reported case already has
unit + E2E coverage (race condition → `localWorkspaceSwitcher.spec.ts`;
API-key billing → `apiKeyLoginBilling.spec.ts`; Add credits on Local →
`localCreditsWorkspaceRail.spec.ts`; billing routes →
`localCreditsNoSubscribeUi.spec.ts` / `cloud.spec.ts`; Cloud
subscribe-to-run → `subscription.spec.ts` + unit gate tests in
`useCoreCommands.test.ts`). This was the last gap.

(cherry picked from commit 2ab204c)
## Summary

On Local, clicking Run silently did nothing when the active workspace
has no active subscription (e.g. 0 credits) — for any workflow, with or
without API nodes, on any login method. Scope the subscribe-to-run gate
in the queue commands to Cloud so Local always queues.

Found during 1.51 QA of the local workspace switcher ([Slack
report](https://comfy-organization.slack.com/archives/C0932CGKT5K/p1787740255008649?thread_ts=1787034725.224329&cid=C0932CGKT5K)).

## Root cause

The break is an interaction of three pieces:

1. `Comfy.QueuePrompt` / `Comfy.QueuePromptFront` /
`Comfy.QueueSelectedOutputNodes` return early when
`canAccessSubscriptionFeatures` is false (`useCoreCommands.ts`), with no
distribution check.
2. Since the local workspace switcher (#15558), Local routes billing to
the workspace rail once workspace context loads (`useBillingRouting`).
`useWorkspaceBilling.canAccessSubscriptionFeatures` is
`statusData?.is_active ?? false` — unlike the legacy rail
(`useSubscription.ts`), it has no `!isCloud → true` exemption, so an
unsubscribed/zero-credit workspace reports false on Local.
3. The gate's fallback `showSubscriptionDialog` → `showPricingTable`
starts with `if (!isCloud) return` (`useSubscriptionDialog.ts`), so on
Local the block is invisible: no dialog, no toast, nothing.

```mermaid
flowchart LR
    A[Run click] --> B[Comfy.QueuePrompt]
    B --> C{canAccessSubscriptionFeatures?}
    C -- "Local + workspace rail, is_active=false" --> D[showSubscriptionDialog]
    D --> E["showPricingTable: if (!isCloud) return"]
    E --> F[silent no-op — Run does nothing]
    C -- true --> G[app.queuePrompt]
```

## How we change it

Gate the three queue commands with `isCloud &&
!canAccessSubscriptionFeatures` — subscription gating is a Cloud
concept, and this mirrors the legacy rail's own `!isCloud` exemption.
The gate flag itself is left untouched: flipping
`useWorkspaceBilling.canAccessSubscriptionFeatures` to true on Local
would regress the Plan & Credits UI, which intentionally renders the
unsubscribed state on Local (#15828).

Insufficient-credit handling for partner nodes is unaffected: the
backend still rejects the prompt and the error-catalog path
(`insufficient_credits` → top-up dialog) handles it, so Local behavior
returns to server-driven.

## AS IS / TO BE

- **AS IS**: Local + workspace with 0 credits → Run click is a silent
no-op for every workflow (QA video in the Slack thread above).
- **TO BE**: Local always queues. OSS workflows run; partner-node
workflows surface the backend insufficient-credits error with top-up
CTA. Cloud gating is unchanged (dialog still shown when unsubscribed).

## Tests

- Unit (`useCoreCommands.test.ts`): Local +
`canAccessSubscriptionFeatures=false` queues and shows no dialog (fails
against the previous code); Cloud unsubscribed still blocks with the
`subscribe_to_run` dialog; Cloud subscribed queues.

## Review Focus

- The guard intentionally keys on distribution (`isCloud`), not on
billing-rail internals, so bootstrap-time rail flapping on Local can
never block Run.

⚠️ Needs backport to `core/1.51` — this is a 1.51 release blocker.

(cherry picked from commit 4a67eb4)
…#16067)

## Why this is needed

Enterprise workspaces exist in production (`enterprise_monthly` /
`enterprise_annual`, provisioned through the comfy-admin console) but
the frontend still renders them as a self-serve catalog plan. FE-1662
verified three gaps against the tree, and re-verification after the
capabilities migration (#15803/#15804/#15675) and the ENTERPRISE
contract landing (#15855) found the surviving surface smaller but real.

Supersedes #15403 — same behavioral spec and design of record ([Figma
4404-13011](https://www.figma.com/design/CkFTD4c20PyRGpNVAJgpfV/Team-Plan---Workspaces?node-id=4404-13011),
DES-782), rebuilt on the server-capabilities architecture that merged
underneath it. Co-authored with @comfydesigner, whose branch this
replaces.

- Fixes FE-1662

## Root cause

Three distinct causes, one per change group:

1. **Label fallbacks assume the catalog is total.**
`resolveSubscriptionTierKey` falls back to `'standard'` for any unmapped
tier, so an ENTERPRISE workspace's plan card renders **"Standard"**,
Standard's **$20 USD/mo** price (`useWorkspacePlanPricing` has the same
fallback), Standard's feature list, and the credits bar borrows
Standard's 4,200-credit monthly pool (`CreditsTile.tierKey ??
DEFAULT_TIER_KEY`). A scheduled change to an enterprise plan falls
through the `team`-prefix check and labels itself "Standard".
2. **Pricing-table entry points gate on membership, not on whether a
catalog exists.** The `?pricing=` deep link
(`usePricingTableUrlLoader`), the profile menu's "Plans & pricing", and
settings' "View more details about plans & pricing" all gate on
`canManageSubscription` (owner), so an Enterprise owner can still open
the self-serve pricing table. The subscribe-to-run upsell
(`CloudRunButtonWrapper`, `useCoreCommands`) gates only on
`canAccessSubscriptionFeatures`, so a lapsed Enterprise workspace is
offered a self-serve checkout it must not use.
3. **No representation for a tier outside the catalog.** A tier the
build doesn't recognize (server ahead of client) borrowed all of the
above from Standard — price and feature claims for a plan the frontend
cannot identify.

Lifecycle actions (cancel / reactivate / plan change / member invites)
are **not** part of this PR's policy surface: the server already
resolves them (`hideLifecycleCapabilities` in billing-api keeps
`can_top_up=true` and closes the rest), and main already consumes those
capabilities. This PR covers rendering and the pricing-catalog entry
points only.

## How

**One derived policy for every pricing-table entry point.**
`useWorkspaceUI.canOpenPricingSurface` reads the server-resolved
`can_subscribe_self_serve` on the workspace rail and falls back to
membership on `legacy_stripe` — the exact shape of `canReactivatePlan`
(#15967), so the legacy-rail regression class that #15967/#16043/#16046
fixed cannot recur here. Consumers: profile-menu "Plans & pricing",
settings "View more details", and the `?pricing=` deep link (which now
awaits capability initialization before deciding, like the `?topup=`
loader, so a pre-load deep link can't slip through).

**Tier drives rendering only.** `isSalesManagedTier` (ENTERPRISE or
unmapped) hides the catalog price row, benefits list, and borrowed
credit pool; `planDisplayName` renders "Enterprise" / "Current plan";
the scheduled-change label resolves enterprise slugs (the only signal on
that path — enterprise plans are absent from `plans`); `formatTierName`
gains a `te()` guard so an unknown tier degrades to a capitalized string
instead of a raw i18n key. The subscribe-to-run upsell and the
run-command dialog stay hidden on sales-managed plans (`SubscribeToRun`
requires a catalog to sell into); the run button remains a run button.

**Capability-driven credits tile.** The inactive-plan zero-state now
applies only when the server also withholds top-up (`inactivePlan &&
!canTopUp`): lapsed self-serve plans keep today's
reactivate-to-use-credits treatment (`lapsedSelfServeCapabilities`
withholds top-up), while a sales-managed plan — whose top-up stays open
whatever the subscription row says — keeps its real balance and Add
credits.

**Delete workspace hides on Enterprise** (DES-782): deletion requires a
cancellation only sales can perform, so the disabled menu item was a
permanent dead end.

## Behavioral spec (from #15403, verified by tests)

1. Enterprise owner cannot self-serve any plan change — no upgrade,
downgrade, cancel, or reactivate (server capabilities; regression-tested
here).
2. The pricing table never appears for an Enterprise workspace —
settings, profile menu, or `?pricing=` deep link (quiet no-op).
3. The plan reads "Enterprise" with its renewal date — never another
tier's name, price, credits, or feature list.
4. Money-in stays open: top-up and Billing & invoices always reachable.
5. A cancelled or ended Enterprise subscription shows the standard state
with no Reactivate/Subscribe action.
6. An unrecognized tier renders as "Current plan" with no borrowed
catalog content and no self-serve actions; credits, top-up, and runs
keep working, no crash.

> Story 5's amended form (ended Enterprise → Subscribe returns, per the
2026-08-21 decision with Justin) is **deliberately out of scope**:
billing-api resolves `can_subscribe_self_serve=false` for any enterprise
subscription row including ended ones, so that behavior needs a backend
change first (contract-first). Tracked as a follow-up.

## Tests

- **Unit (321 passing across the 11 touched suites):** new coverage in
`tierPricing` (helpers), `useWorkspaceUI` (`canOpenPricingSurface` rail
split), `SubscriptionPanelContentWorkspace` (stories 1, 3, 4, 5, 6 +
scheduled-change label), `CurrentUserPopoverWorkspace` (menu entry +
resubscribe), `usePricingTableUrlLoader` (deep-link no-op + pre-load
race), `CreditsTile` (sales-managed pool + inactive state),
`CloudRunButtonWrapper` / `useCoreCommands` (upsell suppression),
`useWorkspaceMenuItems` (cancel/delete/leave).
- **E2E (`browser_tests/tests/dialogs/enterpriseTierCloud.spec.ts`, 7
tests, @cloud):** one per user story against the real cloud build with
server-shaped capability mocks (`hideLifecycleCapabilities` shape), plus
a Pro-team self-serve regression and an unrecognized-tier no-crash
regression. `endedSubscription.spec.ts` additionally pins that a
non-enterprise inactive team keeps its Reactivate button. All 10 pass
locally against a ComfyUI server serving the cloud dist.
- `CloudWorkspaceMockHelper` gained an optional capability-overrides
parameter so specs can mock the server's sales-managed shape.

## AS IS / TO BE

Screenshots from the real app (cloud dist served by ComfyUI) being
attached in a follow-up edit to this description: Plan & Credits panel
(Standard-mislabel → Enterprise card), profile menu (Plans & pricing
removed), ended-enterprise run button (subscribe upsell removed).

Co-authored-by: comfydesigner <247099495+comfydesigner@users.noreply.github.com>
(cherry picked from commit bab0873)
@dante01yoon
dante01yoon enabled auto-merge (squash) August 27, 2026 15:50
@dante01yoon
dante01yoon force-pushed the backport-16067-to-cloud-1.52 branch from 0d091c1 to fe39ab2 Compare August 27, 2026 15:50
@dante01yoon
dante01yoon merged commit 1074087 into cloud/1.52 Aug 27, 2026
78 checks passed
@dante01yoon
dante01yoon deleted the backport-16067-to-cloud-1.52 branch August 27, 2026 16:05
@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:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants