Skip to content

test: subgraph integration contracts and expanded Playwright coverage - #10123

Merged
DrJKL merged 22 commits into
mainfrom
drjkl/subgraph-integration-contracts
Mar 19, 2026
Merged

DrJKL merged 22 commits into
mainfrom
drjkl/subgraph-integration-contracts

Conversation

@DrJKL

@DrJKL DrJKL commented Mar 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Add integration contract tests (unit) and expanded Playwright coverage for subgraph promotion, hydration, navigation, and lifecycle edge behaviors.

Changes

  • What: 22 unit/integration tests across 9 files covering promotion store sync, widget view lifecycle, input link resolution, pseudo-widget cache, navigation viewport restore, and subgraph operations. 13 Playwright E2E tests covering proxyWidgets hydration stability, promoted source removal cleanup, pseudo-preview unpack/remove, multi-link representative round-trip, nested promotion retarget, and navigation state on workflow switch.
  • Helpers: Added isPseudoPreviewEntry, getPseudoPreviewWidgets, getNonPreviewPromotedWidgets to promotedWidgets helper. Added SubgraphHelper.getNodeCount().

Review Focus

  • Test-only PR — no production code changes
  • Validates existing subgraph behaviors are covered by regression tests before further feature work
  • Phase 4 (unit/integration contracts) and Phase 5 (Playwright expansion) of the subgraph test coverage plan

┆Issue is synchronized with this Notion page by Unito

@coderabbitai

coderabbitai Bot commented Mar 16, 2026 •

Copy link
Copy Markdown
Contributor

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • ✅ Review completed - (🔄 Check again to review again)
📝 Walkthrough

Walkthrough

Adds public subgraph inspection/navigation helpers and promoted-widget filters, expands many subgraph-focused tests, introduces a canvas reset during workflow load to avoid UI state leakage, and exposes a named viewport cache size constant used by subgraph navigation.

Changes

Cohort / File(s) Summary
Subgraph test helpers
browser_tests/fixtures/helpers/SubgraphHelper.ts
Added public methods: isInSubgraph(), exitViaBreadcrumb(), countGraphPseudoPreviewEntries(), getHostPromotedTupleSnapshot(), getNodeCount(); added TestIds and expect imports.
Promoted-widget helpers
browser_tests/helpers/promotedWidgets.ts
Added isPseudoPreviewEntry(), getPseudoPreviewWidgets(), and getNonPreviewPromotedWidgets() to classify/filter promoted-widget entries by pseudo-preview semantics.
Browser integration tests
browser_tests/tests/subgraph.spec.ts, browser_tests/tests/subgraphLifecycle.spec.ts, browser_tests/tests/subgraphProgressClear.spec.ts, browser_tests/tests/subgraphPromotion.spec.ts, browser_tests/tests/subgraph-duplicate-ids.spec.ts
Added breadcrumb and workflow-switch tests, replaced inline helpers with comfyPage.subgraph API, introduced lifecycle edge-case suites, added progress-clear and promotion stability/reload tests, and refactored promotion-related test flows.
Core subgraph unit tests
src/core/graph/subgraph/.../*.test.ts (promotedWidgetView.test.ts, resolveSubgraphInputLink.test.ts, resolveSubgraphInputTarget.test.ts, subgraphNodePromotion.test.ts)
Added multi-level nested promotion and propagation tests, deterministic first-link selection tests, resolution/undefined scenarios, promotion removal and re-promotion tests.
Stores & services tests
src/stores/promotionStore.test.ts, src/stores/subgraphNavigationStore.test.ts, src/stores/subgraphNavigationStore.viewport.test.ts, src/services/subgraphPseudoWidgetCache.test.ts
Added tests for promotion ref-counting/idempotency, navigation state reset/restore and unreachable-ID handling, viewport persistence/eviction behavior, and pseudo-widget cache rebuild/filtering.
Composable & helper tweaks/tests
src/composables/graph/useSubgraphOperations.test.ts, browser_tests/fixtures/helpers/NodeOperationsHelper.ts
Added edge-case test ensuring addSubgraphToLibrary doesn't publish for non-Subgraph selections; added JSDoc for getNodeCount.
App script
src/scripts/app.ts
Call this.canvas.setGraph(this.rootGraph) during graph load to reset canvas state and prevent leaking previous subgraph UI state.
Viewport config
src/stores/subgraphNavigationStore.ts
Exported VIEWPORT_CACHE_MAX_SIZE constant (32) and used it to size the QuickLRU viewport cache.

Sequence Diagram(s)

sequenceDiagram
    participant App as ComfyApp
    participant Loader as loadGraphData
    participant Canvas as Canvas
    participant Root as RootGraph

    App->>Loader: initiate loadGraphData(workflow)
    Loader->>Loader: prepare graph data & cleanup
    Loader->>Canvas: setGraph(Root)        %% reset canvas state
    Canvas-->>Loader: canvas state reset
    Loader->>App: continue graph configuration
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

Possibly related PRs

Suggested labels

size:XL

Suggested reviewers

  • AustinMroz
  • christian-byrne
  • viva-jinyi
  • ltdrdata

Poem

🐇 I hopped through breadcrumbs and counted tiny views,
I chased promoted tuples with twitching news,
I nudged a sleepy canvas back to start,
I cached viewports gently — small rabbit heart,
and stitched many tests to keep your subgraphs smart.

🚥 Pre-merge checks | ✅ 3 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main changes: adding test coverage for subgraph integration contracts and Playwright E2E tests, which aligns with the 35 new tests added across the changeset.
Description check ✅ Passed The description follows the template with all required sections (Summary, Changes, Review Focus) completed. It clearly explains what was added (tests and helpers), the scope (35 tests across multiple files), and context (test-only PR as part of a phased testing plan).
End-To-End Regression Coverage For Fixes ✅ Passed PR title uses 'test:' prefix without bug-fix language, multiple browser_tests/ files changed with comprehensive Playwright E2E tests, and PR description explicitly documents 13 E2E tests covering specific subgraph behaviors.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch drjkl/subgraph-integration-contracts
📝 Coding Plan
  • Generate coding plan for human review comments

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

@github-actions

github-actions Bot commented Mar 16, 2026 •

Copy link
Copy Markdown
Contributor

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

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

@github-actions

github-actions Bot commented Mar 16, 2026 •

Copy link
Copy Markdown
Contributor

🎨 Storybook: ✅ Built — View Storybook

Details

⏰ Completed at: 03/19/2026, 11:48:47 PM UTC

Links

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 6

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@browser_tests/tests/subgraphLifecycle.spec.ts`:
- Around line 198-222: The test currently only checks that the subgraph node
count goes to zero; after unpacking you must also assert that no node still
carries pseudo-preview entries and that no DOM preview elements remain: call
getPseudoPreviewWidgets(comfyPage, '5') (or iterate over all nodes via
comfyPage.page.evaluate and check node.data or attributes for the
$$canvas-image-preview marker) and expect its length to be 0, and add a
DOM-level assertion ensuring document.querySelectorAll('$$canvas-image-preview')
(or the actual preview selector used in the app) returns length 0; apply the
same additional checks to the similar test at the other block (lines 224-243) so
both cover node data cleanup and DOM cleanup after graph.unpackSubgraph.

In `@browser_tests/tests/subgraphProgressClear.spec.ts`:
- Around line 114-122: Replace the direct assertion that checks
subgraphNode?.progress with a retrying assertion using expect(...).toPass();
specifically, wrap the comfyPage.page.evaluate call (which reads
window.app!.canvas.graph! and finds the subgraph node via the isSubgraphNode()
predicate) inside an async arrow passed to expect and call .toPass({ timeout:
5000 }) so the assertion retries until the progress is cleared (matching the
earlier pattern that uses .toPass({ timeout: 2_000 })).

In `@browser_tests/tests/subgraphPromotion.spec.ts`:
- Around line 556-573: The test currently only compares widget names
(beforeNames/afterNames) which misses cases where a different promoted node with
the same name is chosen; instead compare the full promoted-widget snapshot
returned by getPromotedWidgets() to ensure representative node IDs are
preserved. Replace the name-only assertions with a deep equality assertion
between beforeSnapshot and afterSnapshot (e.g.,
expect(afterSnapshot).toEqual(beforeSnapshot)), keeping or dropping the length
check as redundant; locate the comparison near the variables beforeSnapshot,
afterSnapshot, getPromotedWidgets, and the evaluate/loadGraphData calls.

In `@src/core/graph/subgraph/subgraphNodePromotion.test.ts`:
- Around line 332-334: Remove the unused local binding `store` from the test
named '3-level nested promotion resolves concrete widget type and value' by
deleting the `const store = usePromotionStore()` declaration; this eliminates
the unused-variable TS6133 error while leaving the rest of the test (and any
calls that rely on other bindings) unchanged—look for the test function with
that exact name and the `usePromotionStore` identifier to locate the line to
remove.

In `@src/stores/promotionStore.test.ts`:
- Around line 308-323: The test currently calls setPromotions twice but doesn't
exercise a single-step removal to catch double ref-counting; after calling
store.setPromotions(graphA, nodeId, entries) twice, invoke the single-step
removal API (prefer store.removePromotions(graphA, nodeId, entries) if it
exists; if not, keep using store.clearGraph(graphA) but ensure it represents a
single demote step) and assert that store.isPromotedByAny(graphA, '10', 'seed')
and store.isPromotedByAny(graphA, '11', 'steps') are false; this additional
assertion will fail if ref counts were incremented twice and not decremented by
one removal.

In `@src/stores/subgraphNavigationStore.test.ts`:
- Around line 149-180: The test currently defeats the workflow-switch behavior
by calling navigationStore.restoreState() manually after each activeWorkflow
change; update the test to rely on the store's automatic reaction to workflow
switches instead: initialize useSubgraphNavigationStore and useWorkflowStore,
set workflowStore.activeWorkflow = workflow1 and call
navigationStore.restoreState(['sub-1','sub-2']) once to seed state, then switch
workflowStore.activeWorkflow = workflow2 and assert
navigationStore.exportState() is reset (length 0) without calling restoreState
again, then switch back to workflow1 and assert navigationStore.exportState()
equals ['sub-1','sub-2']; reference restoreState, exportState,
useSubgraphNavigationStore, useWorkflowStore and activeWorkflow so the test
verifies the store's watcher/handler logic rather than re-applying state
manually.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 56144a35-a3b0-4235-9d03-c1d45ffd652b

📥 Commits

Reviewing files that changed from the base of the PR and between eb93bd8 and 17f4496.

📒 Files selected for processing (15)
  • browser_tests/fixtures/helpers/SubgraphHelper.ts
  • browser_tests/helpers/promotedWidgets.ts
  • browser_tests/tests/subgraph.spec.ts
  • browser_tests/tests/subgraphLifecycle.spec.ts
  • browser_tests/tests/subgraphProgressClear.spec.ts
  • browser_tests/tests/subgraphPromotion.spec.ts
  • src/composables/graph/useSubgraphOperations.test.ts
  • src/core/graph/subgraph/promotedWidgetView.test.ts
  • src/core/graph/subgraph/resolveSubgraphInputLink.test.ts
  • src/core/graph/subgraph/resolveSubgraphInputTarget.test.ts
  • src/core/graph/subgraph/subgraphNodePromotion.test.ts
  • src/services/subgraphPseudoWidgetCache.test.ts
  • src/stores/promotionStore.test.ts
  • src/stores/subgraphNavigationStore.test.ts
  • src/stores/subgraphNavigationStore.viewport.test.ts

Comment thread src/stores/promotionStore.test.ts Resolved
'Subgraph Lifecycle Edge Behaviors',
{ tag: ['@subgraph'] },
() => {
test.describe('Deterministic Hydrate from Serialized proxyWidgets', () => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

question: The old version of this test exercised a full page.reload() path with the subgraph-nested-duplicate-ids fixture to verify hydration survived a real browser boot cycle. The rewritten tests use in-memory serialize()/loadGraphData() round-trips with different fixtures instead.

Was the reload path dropped intentionally? The serialize round-trip is a good contract test, but it doesn't exercise the browser startup codepath (registered node types, DOM re-init, etc.) that the reload variant covered.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fair point — I restored boot-path confidence by adding a focused reload regression in �rowser_tests/tests/subgraph-duplicate-ids.spec.ts that snapshots promoted tuples, reloads, and verifies stability after reopen. So we now cover startup hydration again, not just in-memory round-trip.

test.describe(
'Subgraph Lifecycle Edge Behaviors',
{ tag: ['@subgraph'] },
() => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

question: The previous subgraphLifecycle suite had an "unpacking one preview host keeps remaining pseudo-preview promotions resolvable" test that unpacked node 7 and verified node 8's $$canvas-image-preview entries still resolved (using subgraph-with-multiple-promoted-previews). That cross-node isolation scenario appears to have been dropped rather than migrated.

Is there coverage for multi-node unpack isolation elsewhere, or was this intentionally descoped?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added explicit cross-node unpack isolation coverage in �rowser_tests/tests/subgraphLifecycle.spec.ts. Unpacking one host now verifies sibling pseudo-preview promotion state remains intact, which closes that gap proper.

const sourceNode = subgraph?.getNodeById(sourceNodeId)
if (!sourceNode) invalid.push(`${node.id}:${entry[0]}`)
}
async function exitSubgraphViaBreadcrumb(comfyPage: ComfyPage): Promise<void> {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

suggestion (non-blocking): exitSubgraphViaBreadcrumb is duplicated identically here and in subgraphPromotion.spec.ts:25. Consider extracting it into a shared helper (e.g. on SubgraphHelper or a helpers module) to keep a single source of truth.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Agreed and implemented — duplicated breadcrumb/subgraph navigation utility logic was consolidated into SubgraphHelper so we have one source of truth on the fixture surface. Had a butcher's and removed the split utility file.


// QuickLRU uses double-buffering: effective capacity is up to 2 * maxSize.
// Fill 65 entries (maxSize=32) so the earliest ones are fully evicted.
for (let i = 0; i < 65; i++) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

suggestion (non-blocking): The magic number 65 here relies on knowing QuickLRU's double-buffering implementation detail (2 * maxSize + 1). Consider deriving it from the actual maxSize constant (e.g. import { VIEWPORT_CACHE_SIZE } from ...) so the test stays correct if the capacity changes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Nice callout — the cache eviction test no longer hardcodes 65; it now derives overflow from exported VIEWPORT_CACHE_MAX_SIZE in src/stores/subgraphNavigationStore.ts / .viewport.test.ts. Keeps test intent aligned with implementation if capacity changes.

await this.comfyPage.nextFrame()
}

async getNodeCount(): Promise<number> {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nitpick (non-blocking): This getNodeCount() reads from canvas.graph (the currently-viewed graph, which may be a subgraph), while NodeOperationsHelper.getNodeCount() reads from app.graph (always root). The semantic difference is meaningful but not documented -- a brief JSDoc note would help future readers understand when to reach for which.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added concise docs clarifying node-count scope differences between root-graph and current-canvas/subgraph helpers in NodeOperationsHelper and SubgraphHelper. All sorted after a final butcher's hook.

Base automatically changed from drjkl/subgraphs-still to main March 17, 2026 19:03
DrJKL and others added 3 commits March 17, 2026 12:36
…and store sync

Phase 4 of subgraph test coverage plan:

Task 4.1 - Promotion pipeline contracts:

- Multi-link representative determinism

- Nested promotion chain propagation (3+ levels)

- Retarget/disconnect cleanup behavior

- Three-level nested value propagation

- Multi-link callback exhaustion

Task 4.2 - Store/service sync contracts:

- Cache invalidation for stale nodes with changed widgets

- Multiple pseudo-widget entries across nodes

- Non-pseudo promotion exclusion

- Promotion store ref-count consistency (clearGraph, idempotency, interleaving)

- Workflow switch navigation reset/restore

- Unreachable subgraph ID filtering

- Multi-subgraph viewport round-trip

- LRU viewport cache eviction

- Non-SubgraphNode selection guard

Amp-Thread-ID: https://ampcode.com/threads/T-019cf873-e8ef-778d-9f0d-65fc45b1df64
Co-authored-by: Amp <amp@ampcode.com>
…aviors

Task 5.1: Add scenarios to existing specs
- Multi-link representative stability through save/reload round-trip
- Nested promotion retarget cleanup after slot removal
- Breadcrumb disappears after workflow switch inside subgraph
- Stale progress cleared on workflow switch inside subgraph

Task 5.2: New lifecycle spec and helper expansion
- Deterministic hydrate from serialized proxyWidgets (3 tests)
- Placeholder behavior after promoted source removal (2 tests)
- Unpack/remove cleanup for pseudo-preview targets (4 tests)
- Add isPseudoPreviewEntry, getPseudoPreviewWidgets, getNonPreviewPromotedWidgets helpers
- Add SubgraphHelper.getNodeCount()

Amp-Thread-ID: https://ampcode.com/threads/T-019cf8d1-010f-7521-8e2c-3c94730b201b
Co-authored-by: Amp <amp@ampcode.com>
@DrJKL
DrJKL force-pushed the drjkl/subgraph-integration-contracts branch from 41be6af to c259aa1 Compare March 17, 2026 19:38
@github-actions

github-actions Bot commented Mar 17, 2026 •

Copy link
Copy Markdown
Contributor

📦 Bundle: 5.01 MB gzip 🔴 +1.23 kB

Details

Summary

  • Raw size: 23.1 MB baseline 23.1 MB — 🔴 +6.15 kB
  • Gzip: 5.01 MB baseline 5.01 MB — 🔴 +1.23 kB
  • Brotli: 3.88 MB baseline 3.88 MB — 🔴 +681 B
  • Bundles: 244 current • 244 baseline • 114 added / 114 removed

Category Glance
Data & Services 🔴 +5.42 kB (2.93 MB) · Graph Workspace 🔴 +730 B (1.11 MB) · Vendor & Third-Party ⚪ 0 B (9.79 MB) · Other ⚪ 0 B (8.24 MB) · Panels & Settings ⚪ 0 B (461 kB) · Utilities & Hooks ⚪ 0 B (322 kB) · + 5 more

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

Main entry bundles and manifests

File Before After Δ Raw Δ Gzip Δ Brotli
assets/index-B4N2HTHL.js (new) — 22.7 kB 🔴 +22.7 kB 🔴 +8.03 kB 🔴 +6.9 kB
assets/index-CTnSBtrj.js (removed) 22.7 kB — 🟢 -22.7 kB 🟢 -8.03 kB 🟢 -6.91 kB

Status: 1 added / 1 removed

Graph Workspace — 1.11 MB (baseline 1.11 MB) • 🔴 +730 B

Graph editor runtime, canvas, workflow orchestration

File Before After Δ Raw Δ Gzip Δ Brotli
assets/GraphView-C44XUXWK.js (new) — 1.11 MB 🔴 +1.11 MB 🔴 +237 kB 🔴 +178 kB
assets/GraphView-CZMVE6fx.js (removed) 1.11 MB — 🟢 -1.11 MB 🟢 -236 kB 🟢 -178 kB

Status: 1 added / 1 removed

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

Top-level views, pages, and routed surfaces

File Before After Δ Raw Δ Gzip Δ Brotli
assets/CloudSurveyView-CQsUJJy_.js (removed) 15.6 kB — 🟢 -15.6 kB 🟢 -3.38 kB 🟢 -2.88 kB
assets/CloudSurveyView-Dqdvv-KF.js (new) — 15.6 kB 🔴 +15.6 kB 🔴 +3.38 kB 🔴 +2.88 kB
assets/CloudLoginView-DPI8_TAc.js (removed) 11.9 kB — 🟢 -11.9 kB 🟢 -3.31 kB 🟢 -2.92 kB
assets/CloudLoginView-ROzOk15L.js (new) — 11.9 kB 🔴 +11.9 kB 🔴 +3.31 kB 🔴 +2.93 kB
assets/CloudSignupView-CPXRA-Vk.js (new) — 9.64 kB 🔴 +9.64 kB 🔴 +2.8 kB 🔴 +2.46 kB
assets/CloudSignupView-DI9qZ8PG.js (removed) 9.64 kB — 🟢 -9.64 kB 🟢 -2.8 kB 🟢 -2.46 kB
assets/UserCheckView-DS2_TqLY.js (removed) 9.01 kB — 🟢 -9.01 kB 🟢 -2.31 kB 🟢 -2.01 kB
assets/UserCheckView-NmePQVXf.js (new) — 9.01 kB 🔴 +9.01 kB 🔴 +2.31 kB 🔴 +2.01 kB
assets/CloudLayoutView-B5fYQ561.js (new) — 7.42 kB 🔴 +7.42 kB 🔴 +2.31 kB 🔴 +2.02 kB
assets/CloudLayoutView-Dmnidppc.js (removed) 7.42 kB — 🟢 -7.42 kB 🟢 -2.31 kB 🟢 -2 kB
assets/CloudForgotPasswordView-B5MatrYj.js (new) — 5.85 kB 🔴 +5.85 kB 🔴 +2.04 kB 🔴 +1.79 kB
assets/CloudForgotPasswordView-yBwkMC_t.js (removed) 5.85 kB — 🟢 -5.85 kB 🟢 -2.04 kB 🟢 -1.79 kB
assets/CloudAuthTimeoutView-BOBrG0V6.js (new) — 5.21 kB 🔴 +5.21 kB 🔴 +1.88 kB 🔴 +1.64 kB
assets/CloudAuthTimeoutView-CBHczr0n.js (removed) 5.21 kB — 🟢 -5.21 kB 🟢 -1.88 kB 🟢 -1.64 kB
assets/CloudSubscriptionRedirectView-Bm8WdHKO.js (new) — 4.98 kB 🔴 +4.98 kB 🔴 +1.86 kB 🔴 +1.64 kB
assets/CloudSubscriptionRedirectView-Cbh8Hvip.js (removed) 4.98 kB — 🟢 -4.98 kB 🟢 -1.86 kB 🟢 -1.64 kB
assets/UserSelectView-6oV3pc89.js (removed) 4.67 kB — 🟢 -4.67 kB 🟢 -1.73 kB 🟢 -1.53 kB
assets/UserSelectView-CkqZzBol.js (new) — 4.67 kB 🔴 +4.67 kB 🔴 +1.73 kB 🔴 +1.53 kB

Status: 9 added / 9 removed / 2 unchanged

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

Configuration panels, inspectors, and settings screens

File Before After Δ Raw Δ Gzip Δ Brotli
assets/KeybindingPanel-2l888CfN.js (removed) 28.9 kB — 🟢 -28.9 kB 🟢 -6.19 kB 🟢 -5.5 kB
assets/KeybindingPanel-DgdZCvgz.js (new) — 28.9 kB 🔴 +28.9 kB 🔴 +6.19 kB 🔴 +5.5 kB
assets/SecretsPanel-BPXRfap1.js (removed) 22.3 kB — 🟢 -22.3 kB 🟢 -5.41 kB 🟢 -4.76 kB
assets/SecretsPanel-CxYBI6-0.js (new) — 22.3 kB 🔴 +22.3 kB 🔴 +5.41 kB 🔴 +4.76 kB
assets/LegacyCreditsPanel-BO3lNNZF.js (new) — 21.4 kB 🔴 +21.4 kB 🔴 +5.71 kB 🔴 +5.04 kB
assets/LegacyCreditsPanel-CQ6_Z7qZ.js (removed) 21.4 kB — 🟢 -21.4 kB 🟢 -5.71 kB 🟢 -5.04 kB
assets/SubscriptionPanel-Bq539C8C.js (new) — 19.3 kB 🔴 +19.3 kB 🔴 +4.9 kB 🔴 +4.31 kB
assets/SubscriptionPanel-erX_p2KP.js (removed) 19.3 kB — 🟢 -19.3 kB 🟢 -4.89 kB 🟢 -4.31 kB
assets/AboutPanel--fB7BZgK.js (removed) 12 kB — 🟢 -12 kB 🟢 -3.31 kB 🟢 -2.97 kB
assets/AboutPanel-BAyx_xFO.js (new) — 12 kB 🔴 +12 kB 🔴 +3.31 kB 🔴 +2.97 kB
assets/ExtensionPanel-DkRChOO_.js (removed) 9.66 kB — 🟢 -9.66 kB 🟢 -2.76 kB 🟢 -2.45 kB
assets/ExtensionPanel-lVxmLm3w.js (new) — 9.66 kB 🔴 +9.66 kB 🔴 +2.76 kB 🔴 +2.46 kB
assets/ServerConfigPanel-DcIeOOGq.js (removed) 6.74 kB — 🟢 -6.74 kB 🟢 -2.23 kB 🟢 -2.04 kB
assets/ServerConfigPanel-GryHpqUA.js (new) — 6.74 kB 🔴 +6.74 kB 🔴 +2.23 kB 🔴 +2 kB
assets/UserPanel-BL_-mJwI.js (removed) 6.44 kB — 🟢 -6.44 kB 🟢 -2.09 kB 🟢 -1.85 kB
assets/UserPanel-CvU_93oG.js (new) — 6.44 kB 🔴 +6.44 kB 🔴 +2.1 kB 🔴 +1.84 kB
assets/cloudRemoteConfig-CrsYYBoV.js (removed) 1.74 kB — 🟢 -1.74 kB 🟢 -848 B 🟢 -743 B
assets/cloudRemoteConfig-deL7ymnr.js (new) — 1.74 kB 🔴 +1.74 kB 🔴 +849 B 🔴 +738 B
assets/refreshRemoteConfig-3TWDvlxS.js (removed) 1.45 kB — 🟢 -1.45 kB 🟢 -649 B 🟢 -549 B
assets/refreshRemoteConfig-Cj1BJfmz.js (new) — 1.45 kB 🔴 +1.45 kB 🔴 +649 B 🔴 +549 B

Status: 10 added / 10 removed / 12 unchanged

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

Authentication, profile, and account management bundles

File Before After Δ Raw Δ Gzip Δ Brotli
assets/auth-CU9uo8BD.js (removed) 3.57 kB — 🟢 -3.57 kB 🟢 -1.26 kB 🟢 -1.08 kB
assets/auth-dRGUYJ7r.js (new) — 3.57 kB 🔴 +3.57 kB 🔴 +1.26 kB 🔴 +1.08 kB
assets/SignUpForm-BCqr6pAZ.js (removed) 3.18 kB — 🟢 -3.18 kB 🟢 -1.29 kB 🟢 -1.14 kB
assets/SignUpForm-Cg8IO7zT.js (new) — 3.18 kB 🔴 +3.18 kB 🔴 +1.29 kB 🔴 +1.15 kB
assets/UpdatePasswordContent-CgaQIkas.js (removed) 2.56 kB — 🟢 -2.56 kB 🟢 -1.14 kB 🟢 -1.01 kB
assets/UpdatePasswordContent-DnYFmGFa.js (new) — 2.56 kB 🔴 +2.56 kB 🔴 +1.14 kB 🔴 +1.01 kB
assets/firebaseAuthStore-6l1T_UO9.js (new) — 907 B 🔴 +907 B 🔴 +435 B 🔴 +386 B
assets/firebaseAuthStore-Cv69pRS4.js (removed) 907 B — 🟢 -907 B 🟢 -436 B 🟢 -391 B
assets/auth-CeCFoptf.js (removed) 313 B — 🟢 -313 B 🟢 -198 B 🟢 -171 B
assets/auth-pEk4rU5C.js (new) — 313 B 🔴 +313 B 🔴 +204 B 🔴 +180 B

Status: 5 added / 5 removed / 2 unchanged

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

Modals, dialogs, drawers, and in-app editors

File Before After Δ Raw Δ Gzip Δ Brotli
assets/useShareDialog-BpbwN1vr.js (new) — 81.2 kB 🔴 +81.2 kB 🔴 +16.9 kB 🔴 +14.5 kB
assets/useShareDialog-CiMr8gS3.js (removed) 81.2 kB — 🟢 -81.2 kB 🟢 -16.9 kB 🟢 -14.5 kB
assets/useSubscriptionDialog-Duetu4NA.js (removed) 855 B — 🟢 -855 B 🟢 -425 B 🟢 -369 B
assets/useSubscriptionDialog-e1bR5T7X.js (new) — 855 B 🔴 +855 B 🔴 +426 B 🔴 +364 B

Status: 2 added / 2 removed

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

Reusable component library chunks

File Before After Δ Raw Δ Gzip Δ Brotli
assets/ComfyQueueButton-DC5Qef-c.js (new) — 14.3 kB 🔴 +14.3 kB 🔴 +4 kB 🔴 +3.58 kB
assets/ComfyQueueButton-wURZhZ_j.js (removed) 14.3 kB — 🟢 -14.3 kB 🟢 -4 kB 🟢 -3.58 kB
assets/useTerminalTabs-BC29jnVT.js (new) — 10.6 kB 🔴 +10.6 kB 🔴 +3.55 kB 🔴 +3.12 kB
assets/useTerminalTabs-BqY8Daq9.js (removed) 10.6 kB — 🟢 -10.6 kB 🟢 -3.55 kB 🟢 -3.12 kB
assets/SubscribeButton-C7FIWZOr.js (removed) 2.42 kB — 🟢 -2.42 kB 🟢 -1.04 kB 🟢 -915 B
assets/SubscribeButton-DTmBmYFM.js (new) — 2.42 kB 🔴 +2.42 kB 🔴 +1.04 kB 🔴 +916 B
assets/cloudFeedbackTopbarButton-B4FJLUat.js (removed) 1.55 kB — 🟢 -1.55 kB 🟢 -791 B 🟢 -717 B
assets/cloudFeedbackTopbarButton-CmfNDQpL.js (new) — 1.55 kB 🔴 +1.55 kB 🔴 +792 B 🔴 +712 B
assets/ComfyQueueButton-Cgpx3K3X.js (new) — 912 B 🔴 +912 B 🔴 +439 B 🔴 +391 B
assets/ComfyQueueButton-DzevN8o8.js (removed) 912 B — 🟢 -912 B 🟢 -439 B 🟢 -391 B

Status: 5 added / 5 removed / 8 unchanged

Data & Services — 2.93 MB (baseline 2.93 MB) • 🔴 +5.42 kB

Stores, services, APIs, and repositories

File Before After Δ Raw Δ Gzip Δ Brotli
assets/dialogService-CN-c8oIY.js (new) — 1.91 MB 🔴 +1.91 MB 🔴 +441 kB 🔴 +334 kB
assets/dialogService-9qozyeRs.js (removed) 1.91 MB — 🟢 -1.91 MB 🟢 -441 kB 🟢 -334 kB
assets/api-d_h6XjZO.js (new) — 875 kB 🔴 +875 kB 🔴 +209 kB 🔴 +165 kB
assets/api-jKZcPUmi.js (removed) 871 kB — 🟢 -871 kB 🟢 -208 kB 🟢 -164 kB
assets/load3dService-DBNFTj0E.js (removed) 92.3 kB — 🟢 -92.3 kB 🟢 -19.6 kB 🟢 -16.9 kB
assets/load3dService-RXRmyI-e.js (new) — 92.3 kB 🔴 +92.3 kB 🔴 +19.6 kB 🔴 +16.9 kB
assets/workflowShareService-BdsoIFsA.js (new) — 14.1 kB 🔴 +14.1 kB 🔴 +4.32 kB 🔴 +3.8 kB
assets/workflowShareService-CxGzIOXT.js (removed) 14.1 kB — 🟢 -14.1 kB 🟢 -4.32 kB 🟢 -3.8 kB
assets/releaseStore-BoEDuwnj.js (new) — 8.12 kB 🔴 +8.12 kB 🔴 +2.27 kB 🔴 +1.99 kB
assets/releaseStore-Dt99QRu-.js (removed) 8.12 kB — 🟢 -8.12 kB 🟢 -2.26 kB 🟢 -1.99 kB
assets/keybindingService-CukizaPc.js (removed) 7.03 kB — 🟢 -7.03 kB 🟢 -1.75 kB 🟢 -1.5 kB
assets/keybindingService-DHUuOA2O.js (new) — 7.03 kB 🔴 +7.03 kB 🔴 +1.75 kB 🔴 +1.51 kB
assets/systemStatsStore-BOtMygkM.js (removed) 4.92 kB — 🟢 -4.92 kB 🟢 -1.67 kB 🟢 -1.44 kB
assets/systemStatsStore-DkPO6d5E.js (new) — 4.92 kB 🔴 +4.92 kB 🔴 +1.67 kB 🔴 +1.45 kB
assets/userStore-CHQwbU2C.js (new) — 2.24 kB 🔴 +2.24 kB 🔴 +871 B 🔴 +762 B
assets/userStore-eHn2TdrJ.js (removed) 2.24 kB — 🟢 -2.24 kB 🟢 -868 B 🟢 -762 B
assets/audioService-B9_iei7M.js (new) — 1.75 kB 🔴 +1.75 kB 🔴 +866 B 🔴 +741 B
assets/audioService-BiIlle_W.js (removed) 1.75 kB — 🟢 -1.75 kB 🟢 -864 B 🟢 -743 B
assets/releaseStore-CG7DQCCH.js (removed) 879 B — 🟢 -879 B 🟢 -429 B 🟢 -374 B
assets/releaseStore-Dw2mSGVp.js (new) — 879 B 🔴 +879 B 🔴 +430 B 🔴 +372 B
assets/workflowDraftStore-D6qJzvj-.js (new) — 855 B 🔴 +855 B 🔴 +426 B 🔴 +374 B
assets/workflowDraftStore-dqBXDA5j.js (removed) 855 B — 🟢 -855 B 🟢 -425 B 🟢 -373 B
assets/dialogService-CcBwJfYz2.js (new) — 844 B 🔴 +844 B 🔴 +418 B 🔴 +366 B
assets/dialogService-D_V63U7w2.js (removed) 844 B — 🟢 -844 B 🟢 -417 B 🟢 -369 B
assets/settingStore-DOrcJjwN.js (new) — 842 B 🔴 +842 B 🔴 +421 B 🔴 +364 B
assets/settingStore-eqXrZuaz.js (removed) 842 B — 🟢 -842 B 🟢 -420 B 🟢 -367 B
assets/assetsStore-CLjVGHwv.js (removed) 841 B — 🟢 -841 B 🟢 -420 B 🟢 -369 B
assets/assetsStore-CS2RcvUC.js (new) — 841 B 🔴 +841 B 🔴 +421 B 🔴 +364 B

Status: 14 added / 14 removed / 3 unchanged

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

Helpers, composables, and utility bundles

File Before After Δ Raw Δ Gzip Δ Brotli
assets/useConflictDetection-Ckf8U2_V.js (new) — 231 kB 🔴 +231 kB 🔴 +51.2 kB 🔴 +41.8 kB
assets/useConflictDetection-l0o8Rmk8.js (removed) 231 kB — 🟢 -231 kB 🟢 -51.2 kB 🟢 -41.7 kB
assets/useLoad3dViewer-BIpEjwKC.js (removed) 18.6 kB — 🟢 -18.6 kB 🟢 -4.42 kB 🟢 -3.88 kB
assets/useLoad3dViewer-By3ygBCb.js (new) — 18.6 kB 🔴 +18.6 kB 🔴 +4.42 kB 🔴 +3.89 kB
assets/useLoad3d-C7I6lgDU.js (new) — 15 kB 🔴 +15 kB 🔴 +3.78 kB 🔴 +3.36 kB
assets/useLoad3d-pIy4yjDT.js (removed) 15 kB — 🟢 -15 kB 🟢 -3.78 kB 🟢 -3.36 kB
assets/useFeatureFlags-B_hwHWEh.js (removed) 5.78 kB — 🟢 -5.78 kB 🟢 -1.75 kB 🟢 -1.48 kB
assets/useFeatureFlags-hXuZhPEa.js (new) — 5.78 kB 🔴 +5.78 kB 🔴 +1.75 kB 🔴 +1.48 kB
assets/useWorkspaceUI-BXT8d8t_.js (removed) 3.34 kB — 🟢 -3.34 kB 🟢 -981 B 🟢 -812 B
assets/useWorkspaceUI-CaH26urZ.js (new) — 3.34 kB 🔴 +3.34 kB 🔴 +980 B 🔴 +810 B
assets/subscriptionCheckoutUtil-CaNs3cq5.js (new) — 3.04 kB 🔴 +3.04 kB 🔴 +1.32 kB 🔴 +1.15 kB
assets/subscriptionCheckoutUtil-DArGz9-3.js (removed) 3.04 kB — 🟢 -3.04 kB 🟢 -1.32 kB 🟢 -1.14 kB
assets/assetPreviewUtil-C3fdEVL7.js (new) — 2.27 kB 🔴 +2.27 kB 🔴 +959 B 🔴 +833 B
assets/assetPreviewUtil-k79VAqPS.js (removed) 2.27 kB — 🟢 -2.27 kB 🟢 -957 B 🟢 -833 B
assets/useUpstreamValue-C67f0oz_.js (new) — 2.08 kB 🔴 +2.08 kB 🔴 +804 B 🔴 +713 B
assets/useUpstreamValue-CJtUNIgO.js (removed) 2.08 kB — 🟢 -2.08 kB 🟢 -804 B 🟢 -714 B
assets/useErrorHandling-CcJ7maPW.js (removed) 1.54 kB — 🟢 -1.54 kB 🟢 -649 B 🟢 -548 B
assets/useErrorHandling-vM-nutLd.js (new) — 1.54 kB 🔴 +1.54 kB 🔴 +649 B 🔴 +550 B
assets/useLoad3d-C2kYKefz.js (new) — 1.02 kB 🔴 +1.02 kB 🔴 +489 B 🔴 +436 B
assets/useLoad3d-CzqSDBUE.js (removed) 1.02 kB — 🟢 -1.02 kB 🟢 -489 B 🟢 -437 B
assets/audioUtils-BFdismnw.js (new) — 958 B 🔴 +958 B 🔴 +562 B 🔴 +460 B
assets/audioUtils-C1Ak7cjm.js (removed) 958 B — 🟢 -958 B 🟢 -564 B 🟢 -504 B
assets/useLoad3dViewer-BFcWzREh.js (removed) 957 B — 🟢 -957 B 🟢 -454 B 🟢 -407 B
assets/useLoad3dViewer-DicuSnus.js (new) — 957 B 🔴 +957 B 🔴 +454 B 🔴 +405 B
assets/useCurrentUser-Dyo9WBqj.js (removed) 841 B — 🟢 -841 B 🟢 -421 B 🟢 -366 B
assets/useCurrentUser-e2Fr-wrF.js (new) — 841 B 🔴 +841 B 🔴 +420 B 🔴 +365 B
assets/useWorkspaceSwitch-BJ6pvhws.js (removed) 747 B — 🟢 -747 B 🟢 -384 B 🟢 -333 B
assets/useWorkspaceSwitch-C6t1dMZH.js (new) — 747 B 🔴 +747 B 🔴 +387 B 🔴 +335 B

Status: 14 added / 14 removed / 8 unchanged

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

External libraries and shared vendor chunks

Status: 16 unchanged

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

Bundles that do not match a named category

File Before After Δ Raw Δ Gzip Δ Brotli
assets/core-Cp5MXiDz.js (new) — 76.2 kB 🔴 +76.2 kB 🔴 +19.7 kB 🔴 +16.8 kB
assets/core-EN_iy4bP.js (removed) 76.2 kB — 🟢 -76.2 kB 🟢 -19.7 kB 🟢 -16.7 kB
assets/groupNode-hKMktkmS.js (removed) 73.9 kB — 🟢 -73.9 kB 🟢 -18.5 kB 🟢 -16.2 kB
assets/groupNode-ZJJt97s_.js (new) — 73.9 kB 🔴 +73.9 kB 🔴 +18.5 kB 🔴 +16.3 kB
assets/WidgetSelect-DHRGpLYX.js (removed) 63.3 kB — 🟢 -63.3 kB 🟢 -13.8 kB 🟢 -11.9 kB
assets/WidgetSelect-DMruaLjQ.js (new) — 63.3 kB 🔴 +63.3 kB 🔴 +13.8 kB 🔴 +11.9 kB
assets/SubscriptionRequiredDialogContentWorkspace-C4oq2MHj.js (new) — 47.2 kB 🔴 +47.2 kB 🔴 +8.8 kB 🔴 +7.6 kB
assets/SubscriptionRequiredDialogContentWorkspace-CbKtrsqN.js (removed) 47.2 kB — 🟢 -47.2 kB 🟢 -8.8 kB 🟢 -7.63 kB
assets/WidgetPainter-D3UeTcW7.js (new) — 33.2 kB 🔴 +33.2 kB 🔴 +8.06 kB 🔴 +7.15 kB
assets/WidgetPainter-D7QXNkW8.js (removed) 33.2 kB — 🟢 -33.2 kB 🟢 -8.06 kB 🟢 -7.16 kB
assets/Load3DControls-BuUi66AA.js (removed) 32.1 kB — 🟢 -32.1 kB 🟢 -5.47 kB 🟢 -4.75 kB
assets/Load3DControls-CBsFTtH2.js (new) — 32.1 kB 🔴 +32.1 kB 🔴 +5.47 kB 🔴 +4.75 kB
assets/WorkspacePanelContent-8Y54vx3_.js (new) — 29.8 kB 🔴 +29.8 kB 🔴 +6.28 kB 🔴 +5.52 kB
assets/WorkspacePanelContent-C70f3KzJ.js (removed) 29.8 kB — 🟢 -29.8 kB 🟢 -6.27 kB 🟢 -5.52 kB
assets/SubscriptionRequiredDialogContent-Bjkct2sJ.js (new) — 26.3 kB 🔴 +26.3 kB 🔴 +6.7 kB 🔴 +5.9 kB
assets/SubscriptionRequiredDialogContent-DNYPc5zQ.js (removed) 26.3 kB — 🟢 -26.3 kB 🟢 -6.7 kB 🟢 -5.92 kB
assets/Load3dViewerContent-CEoBBs9f.js (removed) 24.3 kB — 🟢 -24.3 kB 🟢 -5.32 kB 🟢 -4.63 kB
assets/Load3dViewerContent-CIg4AJHy.js (new) — 24.3 kB 🔴 +24.3 kB 🔴 +5.32 kB 🔴 +4.64 kB
assets/WidgetImageCrop-CD1SrlpJ.js (new) — 23.2 kB 🔴 +23.2 kB 🔴 +5.77 kB 🔴 +5.08 kB
assets/WidgetImageCrop-DC0xm5Dr.js (removed) 23.2 kB — 🟢 -23.2 kB 🟢 -5.77 kB 🟢 -5.08 kB
assets/SubscriptionPanelContentWorkspace-C0f-AFHJ.js (new) — 22.2 kB 🔴 +22.2 kB 🔴 +5.18 kB 🔴 +4.55 kB
assets/SubscriptionPanelContentWorkspace-DuIH3sAC.js (removed) 22.2 kB — 🟢 -22.2 kB 🟢 -5.17 kB 🟢 -4.54 kB
assets/CurrentUserPopoverWorkspace-By21yFre.js (removed) 20.9 kB — 🟢 -20.9 kB 🟢 -5.04 kB 🟢 -4.5 kB
assets/CurrentUserPopoverWorkspace-Cx-TsYns.js (new) — 20.9 kB 🔴 +20.9 kB 🔴 +5.04 kB 🔴 +4.49 kB
assets/SignInContent-CUL--0t0.js (removed) 20.2 kB — 🟢 -20.2 kB 🟢 -5.21 kB 🟢 -4.53 kB
assets/SignInContent-DZQm4pz0.js (new) — 20.2 kB 🔴 +20.2 kB 🔴 +5.21 kB 🔴 +4.54 kB
assets/WidgetInputNumber-CJSRJdLk.js (new) — 19.1 kB 🔴 +19.1 kB 🔴 +4.84 kB 🔴 +4.3 kB
assets/WidgetInputNumber-DK5eDBjS.js (removed) 19.1 kB — 🟢 -19.1 kB 🟢 -4.84 kB 🟢 -4.29 kB
assets/WidgetRecordAudio-CZWjiZ8h.js (new) — 18.1 kB 🔴 +18.1 kB 🔴 +5.14 kB 🔴 +4.61 kB
assets/WidgetRecordAudio-TeRMZRkm.js (removed) 18.1 kB — 🟢 -18.1 kB 🟢 -5.14 kB 🟢 -4.62 kB
assets/Load3D-D1g-7Ty2.js (removed) 16.9 kB — 🟢 -16.9 kB 🟢 -4.11 kB 🟢 -3.58 kB
assets/Load3D-DBHZAAFu.js (new) — 16.9 kB 🔴 +16.9 kB 🔴 +4.11 kB 🔴 +3.58 kB
assets/WidgetCurve-BEF-F5Kb.js (new) — 15.1 kB 🔴 +15.1 kB 🔴 +4.67 kB 🔴 +4.21 kB
assets/WidgetCurve-C_E4gzDw.js (removed) 15.1 kB — 🟢 -15.1 kB 🟢 -4.67 kB 🟢 -4.2 kB
assets/load3d-Cr95a9Mw.js (new) — 14.9 kB 🔴 +14.9 kB 🔴 +4.27 kB 🔴 +3.71 kB
assets/load3d-DKF2CE_a.js (removed) 14.9 kB — 🟢 -14.9 kB 🟢 -4.28 kB 🟢 -3.71 kB
assets/AudioPreviewPlayer-YLjTm0mu.js (new) — 11.3 kB 🔴 +11.3 kB 🔴 +3.35 kB 🔴 +2.99 kB
assets/AudioPreviewPlayer-zuOfPJ7s.js (removed) 11.3 kB — 🟢 -11.3 kB 🟢 -3.35 kB 🟢 -3 kB
assets/nodeTemplates-BUqg_Lrb.js (new) — 9.45 kB 🔴 +9.45 kB 🔴 +3.33 kB 🔴 +2.92 kB
assets/nodeTemplates-CH3AVJUH.js (removed) 9.45 kB — 🟢 -9.45 kB 🟢 -3.33 kB 🟢 -2.92 kB
assets/InviteMemberDialogContent-CvuinbKZ.js (removed) 7.66 kB — 🟢 -7.66 kB 🟢 -2.39 kB 🟢 -2.1 kB
assets/InviteMemberDialogContent-IdrxGGBH.js (new) — 7.66 kB 🔴 +7.66 kB 🔴 +2.4 kB 🔴 +2.1 kB
assets/Load3DConfiguration-DKsbjZ1K.js (removed) 6.55 kB — 🟢 -6.55 kB 🟢 -2.03 kB 🟢 -1.77 kB
assets/Load3DConfiguration-DzN2Y0S9.js (new) — 6.55 kB 🔴 +6.55 kB 🔴 +2.03 kB 🔴 +1.77 kB
assets/onboardingCloudRoutes-C-Ch4D4t.js (new) — 6.31 kB 🔴 +6.31 kB 🔴 +1.96 kB 🔴 +1.72 kB
assets/onboardingCloudRoutes-ClCggyYV.js (removed) 6.31 kB — 🟢 -6.31 kB 🟢 -1.96 kB 🟢 -1.71 kB
assets/WidgetWithControl-CrbdgVnt.js (removed) 5.87 kB — 🟢 -5.87 kB 🟢 -2.3 kB 🟢 -2.05 kB
assets/WidgetWithControl-TxozWDBG.js (new) — 5.87 kB 🔴 +5.87 kB 🔴 +2.3 kB 🔴 +2.06 kB
assets/CreateWorkspaceDialogContent-BiA4ytlx.js (new) — 5.84 kB 🔴 +5.84 kB 🔴 +2.09 kB 🔴 +1.82 kB
assets/CreateWorkspaceDialogContent-pphgULFj.js (removed) 5.84 kB — 🟢 -5.84 kB 🟢 -2.09 kB 🟢 -1.83 kB
assets/FreeTierDialogContent-BV1SMhWp.js (removed) 5.7 kB — 🟢 -5.7 kB 🟢 -1.99 kB 🟢 -1.76 kB
assets/FreeTierDialogContent-CPE1ldx9.js (new) — 5.7 kB 🔴 +5.7 kB 🔴 +1.99 kB 🔴 +1.77 kB
assets/EditWorkspaceDialogContent-DO4sch_C.js (new) — 5.63 kB 🔴 +5.63 kB 🔴 +2.06 kB 🔴 +1.79 kB
assets/EditWorkspaceDialogContent-st2vMemB.js (removed) 5.63 kB — 🟢 -5.63 kB 🟢 -2.05 kB 🟢 -1.79 kB
assets/Preview3d-DwuZ3rKz.js (new) — 5.24 kB 🔴 +5.24 kB 🔴 +1.74 kB 🔴 +1.51 kB
assets/Preview3d-HC1u14Ce.js (removed) 5.24 kB — 🟢 -5.24 kB 🟢 -1.74 kB 🟢 -1.51 kB
assets/ValueControlPopover-CGtutaJG.js (new) — 5.22 kB 🔴 +5.22 kB 🔴 +1.87 kB 🔴 +1.68 kB
assets/ValueControlPopover-Dd_JTWR4.js (removed) 5.22 kB — 🟢 -5.22 kB 🟢 -1.87 kB 🟢 -1.69 kB
assets/WidgetTextarea-CjvJj6hl.js (removed) 5.15 kB — 🟢 -5.15 kB 🟢 -2.02 kB 🟢 -1.78 kB
assets/WidgetTextarea-DcK8e0Tg.js (new) — 5.15 kB 🔴 +5.15 kB 🔴 +2.02 kB 🔴 +1.79 kB
assets/CancelSubscriptionDialogContent-C2WN6nFg.js (new) — 5.11 kB 🔴 +5.11 kB 🔴 +1.89 kB 🔴 +1.66 kB
assets/CancelSubscriptionDialogContent-CI3vRZ_Y.js (removed) 5.11 kB — 🟢 -5.11 kB 🟢 -1.89 kB 🟢 -1.65 kB
assets/DeleteWorkspaceDialogContent-Cz7jtakc.js (removed) 4.54 kB — 🟢 -4.54 kB 🟢 -1.73 kB 🟢 -1.5 kB
assets/DeleteWorkspaceDialogContent-iU9r_N1g.js (new) — 4.54 kB 🔴 +4.54 kB 🔴 +1.74 kB 🔴 +1.5 kB
assets/tierBenefits-DR3zEzwk.js (new) — 4.47 kB 🔴 +4.47 kB 🔴 +1.58 kB 🔴 +1.37 kB
assets/tierBenefits-swni1a6P.js (removed) 4.47 kB — 🟢 -4.47 kB 🟢 -1.58 kB 🟢 -1.37 kB
assets/LeaveWorkspaceDialogContent-CnQqURN1.js (removed) 4.37 kB — 🟢 -4.37 kB 🟢 -1.68 kB 🟢 -1.46 kB
assets/LeaveWorkspaceDialogContent-CYsRWIma.js (new) — 4.37 kB 🔴 +4.37 kB 🔴 +1.68 kB 🔴 +1.45 kB
assets/RemoveMemberDialogContent-Crw_T7i8.js (new) — 4.35 kB 🔴 +4.35 kB 🔴 +1.63 kB 🔴 +1.42 kB
assets/RemoveMemberDialogContent-KoD60M0m.js (removed) 4.35 kB — 🟢 -4.35 kB 🟢 -1.63 kB 🟢 -1.43 kB
assets/RevokeInviteDialogContent-Br7WGxAA.js (new) — 4.26 kB 🔴 +4.26 kB 🔴 +1.65 kB 🔴 +1.44 kB
assets/RevokeInviteDialogContent-DXKAc8Pk.js (removed) 4.26 kB — 🟢 -4.26 kB 🟢 -1.64 kB 🟢 -1.44 kB
assets/InviteMemberUpsellDialogContent-C3kNL-JA.js (removed) 4.16 kB — 🟢 -4.16 kB 🟢 -1.51 kB 🟢 -1.32 kB
assets/InviteMemberUpsellDialogContent-D_ccF9M3.js (new) — 4.16 kB 🔴 +4.16 kB 🔴 +1.51 kB 🔴 +1.32 kB
assets/cloudSessionCookie-C9YDwpJ7.js (removed) 4.02 kB — 🟢 -4.02 kB 🟢 -1.43 kB 🟢 -1.25 kB
assets/cloudSessionCookie-D9L_4c_Q.js (new) — 4.02 kB 🔴 +4.02 kB 🔴 +1.43 kB 🔴 +1.24 kB
assets/saveMesh-CoTawqkL.js (removed) 3.8 kB — 🟢 -3.8 kB 🟢 -1.63 kB 🟢 -1.43 kB
assets/saveMesh-Dry3VqPY.js (new) — 3.8 kB 🔴 +3.8 kB 🔴 +1.63 kB 🔴 +1.44 kB
assets/Media3DTop-CVl4UinG.js (removed) 3.73 kB — 🟢 -3.73 kB 🟢 -1.57 kB 🟢 -1.37 kB
assets/Media3DTop-Dc43gY1D.js (new) — 3.73 kB 🔴 +3.73 kB 🔴 +1.57 kB 🔴 +1.38 kB
assets/GlobalToast-C4V6kcCU.js (removed) 3.04 kB — 🟢 -3.04 kB 🟢 -1.26 kB 🟢 -1.08 kB
assets/GlobalToast-D4qsfNOt.js (new) — 3.04 kB 🔴 +3.04 kB 🔴 +1.26 kB 🔴 +1.08 kB
assets/SubscribeToRun-BsGXrU_p.js (removed) 2.13 kB — 🟢 -2.13 kB 🟢 -979 B 🟢 -853 B
assets/SubscribeToRun-BVWKBp1j.js (new) — 2.13 kB 🔴 +2.13 kB 🔴 +982 B 🔴 +857 B
assets/CloudRunButtonWrapper-Cy1dPpXB.js (removed) 1.88 kB — 🟢 -1.88 kB 🟢 -857 B 🟢 -759 B
assets/CloudRunButtonWrapper-VfamcgFK.js (new) — 1.88 kB 🔴 +1.88 kB 🔴 +858 B 🔴 +760 B
assets/cloudBadges-Cm8Ru2c2.js (new) — 1.65 kB 🔴 +1.65 kB 🔴 +840 B 🔴 +742 B
assets/cloudBadges-IC-s2lOd.js (removed) 1.65 kB — 🟢 -1.65 kB 🟢 -837 B 🟢 -741 B
assets/cloudSubscription-CNxwcSzv.js (new) — 1.56 kB 🔴 +1.56 kB 🔴 +761 B 🔴 +656 B
assets/cloudSubscription-DJML_OWm.js (removed) 1.56 kB — 🟢 -1.56 kB 🟢 -760 B 🟢 -655 B
assets/previousFullPath-B6vDBflq.js (removed) 1.53 kB — 🟢 -1.53 kB 🟢 -693 B 🟢 -597 B
assets/previousFullPath-DdwqUOe4.js (new) — 1.53 kB 🔴 +1.53 kB 🔴 +693 B 🔴 +600 B
assets/Load3D-9M2DdMtA.js (removed) 1.23 kB — 🟢 -1.23 kB 🟢 -564 B 🟢 -494 B
assets/Load3D-Kz2Y1rcf.js (new) — 1.23 kB 🔴 +1.23 kB 🔴 +561 B 🔴 +497 B
assets/nightlyBadges-C_pqK9Y7.js (removed) 1.18 kB — 🟢 -1.18 kB 🟢 -605 B 🟢 -535 B
assets/nightlyBadges-CH6lrV43.js (new) — 1.18 kB 🔴 +1.18 kB 🔴 +604 B 🔴 +530 B
assets/Load3dViewerContent-C1yoqleA.js (new) — 1.11 kB 🔴 +1.11 kB 🔴 +513 B 🔴 +449 B
assets/Load3dViewerContent-DWqy4m8P.js (removed) 1.11 kB — 🟢 -1.11 kB 🟢 -514 B 🟢 -455 B
assets/SubscriptionPanelContentWorkspace-32q2rz5T.js (removed) 1.04 kB — 🟢 -1.04 kB 🟢 -482 B 🟢 -418 B
assets/SubscriptionPanelContentWorkspace-BUvWkegd.js (new) — 1.04 kB 🔴 +1.04 kB 🔴 +483 B 🔴 +420 B
assets/WidgetLegacy-DfauqiAp.js (new) — 864 B 🔴 +864 B 🔴 +431 B 🔴 +372 B
assets/WidgetLegacy-FDgJKxZv.js (removed) 864 B — 🟢 -864 B 🟢 -430 B 🟢 -374 B
assets/changeTracker-MUoZYNMs.js (removed) 839 B — 🟢 -839 B 🟢 -420 B 🟢 -369 B
assets/changeTracker-RU-VbG7E.js (new) — 839 B 🔴 +839 B 🔴 +421 B 🔴 +364 B
assets/graphHasMissingNodes-BfWyNEQ8.js (new) — 822 B 🔴 +822 B 🔴 +416 B 🔴 +348 B
assets/graphHasMissingNodes-Dr36i0pU.js (removed) 822 B — 🟢 -822 B 🟢 -411 B 🟢 -351 B

Status: 53 added / 53 removed / 79 unchanged

⚡ Performance

⏳ Performance tests in progress…

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

♻️ Duplicate comments (3)
browser_tests/tests/subgraphProgressClear.spec.ts (1)

114-121: ⚠️ Potential issue | 🟡 Minor

Wrap the post-switch progress assertion in toPass() to reduce flakiness.

This check is on an async cleanup path and can race; a retrying assertion (as already used earlier in this spec) is safer.

Proposed patch
-      const progressAfter = await comfyPage.page.evaluate(() => {
-        const graph = window.app!.canvas.graph!
-        const subgraphNode = graph.nodes.find(
-          (n) => typeof n.isSubgraphNode === 'function' && n.isSubgraphNode()
-        )
-        return subgraphNode?.progress
-      })
-      expect(progressAfter).toBeUndefined()
+      await expect(async () => {
+        const progressAfter = await comfyPage.page.evaluate(() => {
+          const graph = window.app!.canvas.graph!
+          const subgraphNode = graph.nodes.find(
+            (n) => typeof n.isSubgraphNode === 'function' && n.isSubgraphNode()
+          )
+          return subgraphNode?.progress
+        })
+        expect(progressAfter).toBeUndefined()
+      }).toPass({ timeout: 5_000 })

Based on learnings, toPass() already retries with backoff in this repo and a ~5000ms timeout is the preferred stabilization approach for async operations. As per coding guidelines, browser Playwright specs should use retrying assertions rather than fixed waits.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@browser_tests/tests/subgraphProgressClear.spec.ts` around lines 114 - 121,
The post-switch check for subgraph progress is flaky; change the direct
assertion that reads progressAfter via comfyPage.page.evaluate and expects it
toBeUndefined() into a retrying assertion using the repo's toPass() helper with
~5000ms timeout. Concretely, move the comfyPage.page.evaluate call inside a
toPass() callback (or pass a function that calls comfyPage.page.evaluate) and
assert that the evaluated subgraphNode?.progress is undefined inside toPass so
it retries with backoff instead of a single
expect(progressAfter).toBeUndefined().
src/stores/subgraphNavigationStore.test.ts (1)

149-180: ⚠️ Potential issue | 🟠 Major

Workflow-switch test still bypasses the behavior it claims to validate.

This still manually reapplies navigation via restoreState() after each switch, so it won’t catch regressions in switch-triggered reset/restore logic.

💡 Suggested test adjustment
 it('should reset navigation on workflow switch and restore on switch back', async () => {
   const navigationStore = useSubgraphNavigationStore()
   const workflowStore = useWorkflowStore()
@@
   workflowStore.activeWorkflow =
     workflow2 as typeof workflowStore.activeWorkflow
 
-  navigationStore.restoreState([])
+  await nextTick()
   expect(navigationStore.exportState()).toHaveLength(0)
@@
   workflowStore.activeWorkflow =
     workflow1 as typeof workflowStore.activeWorkflow
 
-  navigationStore.restoreState(['sub-1', 'sub-2'])
+  await nextTick()
   expect(navigationStore.exportState()).toEqual(['sub-1', 'sub-2'])
 })

As per coding guidelines, "Do not write tests that just test the mocks; ensure tests fail when code behaves unexpectedly."

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/stores/subgraphNavigationStore.test.ts` around lines 149 - 180, The test
currently re-applies navigation manually and therefore doesn't validate
workflow-switch-driven reset/restore; update the test to call
navigationStore.restoreState(...) only once to seed the store (e.g., before
switching away), then change workflowStore.activeWorkflow to workflow2 and
assert navigationStore.exportState() is empty (verifying automatic reset), then
set activeWorkflow back to workflow1 and assert exportState() equals the seeded
state (verifying automatic restore). Refer to useSubgraphNavigationStore,
useWorkflowStore, activeWorkflow, restoreState, and exportState when locating
and changing the test.
browser_tests/tests/subgraphLifecycle.spec.ts (1)

198-243: ⚠️ Potential issue | 🟠 Major

Pseudo-preview cleanup tests still assert node deletion, not cleanup invariants.

Both tests can pass while pseudo-preview entries/preview artifacts leak elsewhere. Add post-action assertions that no remaining graph nodes retain $$... proxy-widget entries (and keep a DOM-level no-preview assertion in the delete path).

As per coding guidelines, "Do not write tests that just test the mocks; ensure tests fail when code behaves unexpectedly."

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@browser_tests/tests/subgraphLifecycle.spec.ts` around lines 198 - 243, The
tests currently only assert node removal but not that pseudo-preview artifacts
are cleaned; after the unpack action in "Unpacking subgraph clears
pseudo-preview entries from graph" and after the delete action in "Removing
subgraph node clears pseudo-preview DOM elements", add assertions that iterate
the remaining graph nodes (via window.app!.graph!.nodes or graph.getNodeById
helpers) and verify none of their widget/property entries start with the proxy
prefix "$$" (or contain proxy/preview objects returned by
getPseudoPreviewWidgets), and retain the existing DOM-level assertion in the
delete test to ensure no preview DOM elements remain; reference
getPseudoPreviewWidgets, graph.unpackSubgraph, comfyPage.nodeOps.getNodeRefById
and window.app!.graph! when locating where to insert these checks.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Duplicate comments:
In `@browser_tests/tests/subgraphLifecycle.spec.ts`:
- Around line 198-243: The tests currently only assert node removal but not that
pseudo-preview artifacts are cleaned; after the unpack action in "Unpacking
subgraph clears pseudo-preview entries from graph" and after the delete action
in "Removing subgraph node clears pseudo-preview DOM elements", add assertions
that iterate the remaining graph nodes (via window.app!.graph!.nodes or
graph.getNodeById helpers) and verify none of their widget/property entries
start with the proxy prefix "$$" (or contain proxy/preview objects returned by
getPseudoPreviewWidgets), and retain the existing DOM-level assertion in the
delete test to ensure no preview DOM elements remain; reference
getPseudoPreviewWidgets, graph.unpackSubgraph, comfyPage.nodeOps.getNodeRefById
and window.app!.graph! when locating where to insert these checks.

In `@browser_tests/tests/subgraphProgressClear.spec.ts`:
- Around line 114-121: The post-switch check for subgraph progress is flaky;
change the direct assertion that reads progressAfter via comfyPage.page.evaluate
and expects it toBeUndefined() into a retrying assertion using the repo's
toPass() helper with ~5000ms timeout. Concretely, move the
comfyPage.page.evaluate call inside a toPass() callback (or pass a function that
calls comfyPage.page.evaluate) and assert that the evaluated
subgraphNode?.progress is undefined inside toPass so it retries with backoff
instead of a single expect(progressAfter).toBeUndefined().

In `@src/stores/subgraphNavigationStore.test.ts`:
- Around line 149-180: The test currently re-applies navigation manually and
therefore doesn't validate workflow-switch-driven reset/restore; update the test
to call navigationStore.restoreState(...) only once to seed the store (e.g.,
before switching away), then change workflowStore.activeWorkflow to workflow2
and assert navigationStore.exportState() is empty (verifying automatic reset),
then set activeWorkflow back to workflow1 and assert exportState() equals the
seeded state (verifying automatic restore). Refer to useSubgraphNavigationStore,
useWorkflowStore, activeWorkflow, restoreState, and exportState when locating
and changing the test.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 8a063efb-a830-4476-a3b0-a210fe323d5d

📥 Commits

Reviewing files that changed from the base of the PR and between 17f4496 and c259aa1.

📒 Files selected for processing (15)
  • browser_tests/fixtures/helpers/SubgraphHelper.ts
  • browser_tests/helpers/promotedWidgets.ts
  • browser_tests/tests/subgraph.spec.ts
  • browser_tests/tests/subgraphLifecycle.spec.ts
  • browser_tests/tests/subgraphProgressClear.spec.ts
  • browser_tests/tests/subgraphPromotion.spec.ts
  • src/composables/graph/useSubgraphOperations.test.ts
  • src/core/graph/subgraph/promotedWidgetView.test.ts
  • src/core/graph/subgraph/resolveSubgraphInputLink.test.ts
  • src/core/graph/subgraph/resolveSubgraphInputTarget.test.ts
  • src/core/graph/subgraph/subgraphNodePromotion.test.ts
  • src/services/subgraphPseudoWidgetCache.test.ts
  • src/stores/promotionStore.test.ts
  • src/stores/subgraphNavigationStore.test.ts
  • src/stores/subgraphNavigationStore.viewport.test.ts
🚧 Files skipped from review as they are similar to previous changes (9)
  • src/stores/subgraphNavigationStore.viewport.test.ts
  • src/core/graph/subgraph/subgraphNodePromotion.test.ts
  • src/services/subgraphPseudoWidgetCache.test.ts
  • browser_tests/tests/subgraphPromotion.spec.ts
  • browser_tests/tests/subgraph.spec.ts
  • browser_tests/fixtures/helpers/SubgraphHelper.ts
  • src/core/graph/subgraph/resolveSubgraphInputTarget.test.ts
  • src/core/graph/subgraph/resolveSubgraphInputLink.test.ts
  • src/stores/promotionStore.test.ts

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

♻️ Duplicate comments (1)
browser_tests/tests/subgraphPromotion.spec.ts (1)

575-592: ⚠️ Potential issue | 🟠 Major

Compare full promoted-widget tuples, not names-only, in the representative-stability test.

This assertion can still pass when the representative interior node changes but widget names remain the same. That misses the exact regression this test is meant to catch.

Suggested fix
         const beforeSnapshot = await getPromotedWidgets(comfyPage, '11')
         expect(beforeSnapshot.length).toBeGreaterThan(0)
-        const beforeNames = beforeSnapshot.map(([, name]) => name)

         const serialized = await comfyPage.page.evaluate(() => {
           return window.app!.graph!.serialize()
         })
@@
         const afterSnapshot = await getPromotedWidgets(comfyPage, '11')
-        const afterNames = afterSnapshot.map(([, name]) => name)

-        expect(afterNames).toEqual(beforeNames)
-        expect(afterSnapshot.length).toBe(beforeSnapshot.length)
+        expect(afterSnapshot).toEqual(beforeSnapshot)
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@browser_tests/tests/subgraphPromotion.spec.ts` around lines 575 - 592, The
test currently only compares widget names (beforeNames vs afterNames) which can
miss changes in the representative interior node; instead compare the full
promoted-widget tuples returned by getPromotedWidgets so the entire tuple (e.g.,
id, name, representative info) must match. Locate the variables beforeSnapshot
and afterSnapshot (and the call to getPromotedWidgets) in the
representative-stability test and replace the names-only assertion with a deep
equality assertion comparing afterSnapshot to beforeSnapshot (you can keep or
remove the separate length check), ensuring the full tuples are used for the
equality check.
🧹 Nitpick comments (1)
browser_tests/tests/subgraphPromotion.spec.ts (1)

762-776: Strengthen this test contract beyond count-only checks.

You already capture initialNames; asserting only finalCount can pass on unrelated changes. Consider asserting the post-removal promoted snapshot/names differ from the initial set in a specific, deterministic way.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@browser_tests/tests/subgraphPromotion.spec.ts` around lines 762 - 776,
Replace the final count-only assertion with a deterministic comparison of
promoted widget names: after calling exitSubgraphToParent(comfyPage), call
getPromotedWidgetNames(comfyPage, '5') to get finalNames and assert that the
final set differs from initialNames in a specific way (e.g., verify that a
particular removed name from initialNames is not present in finalNames or that
finalNames equals initialNames.filter(name => name !== expectedRemovedName));
keep using comfyPage.nodeOps.getNodeRefById('5') and the context menu steps but
change expect(finalCount).toBeLessThan(initialCount) to an explicit
set/membership or equality check between initialNames and finalNames so the test
verifies the exact removal.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Duplicate comments:
In `@browser_tests/tests/subgraphPromotion.spec.ts`:
- Around line 575-592: The test currently only compares widget names
(beforeNames vs afterNames) which can miss changes in the representative
interior node; instead compare the full promoted-widget tuples returned by
getPromotedWidgets so the entire tuple (e.g., id, name, representative info)
must match. Locate the variables beforeSnapshot and afterSnapshot (and the call
to getPromotedWidgets) in the representative-stability test and replace the
names-only assertion with a deep equality assertion comparing afterSnapshot to
beforeSnapshot (you can keep or remove the separate length check), ensuring the
full tuples are used for the equality check.

---

Nitpick comments:
In `@browser_tests/tests/subgraphPromotion.spec.ts`:
- Around line 762-776: Replace the final count-only assertion with a
deterministic comparison of promoted widget names: after calling
exitSubgraphToParent(comfyPage), call getPromotedWidgetNames(comfyPage, '5') to
get finalNames and assert that the final set differs from initialNames in a
specific way (e.g., verify that a particular removed name from initialNames is
not present in finalNames or that finalNames equals initialNames.filter(name =>
name !== expectedRemovedName)); keep using comfyPage.nodeOps.getNodeRefById('5')
and the context menu steps but change
expect(finalCount).toBeLessThan(initialCount) to an explicit set/membership or
equality check between initialNames and finalNames so the test verifies the
exact removal.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 4c1db45c-ca10-4695-ad3e-5ca495d029f3

📥 Commits

Reviewing files that changed from the base of the PR and between c259aa1 and 582ae6c.

📒 Files selected for processing (1)
  • browser_tests/tests/subgraphPromotion.spec.ts

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

♻️ Duplicate comments (1)
browser_tests/tests/subgraphLifecycle.spec.ts (1)

210-255: ⚠️ Potential issue | 🟠 Major

Cleanup tests are under-asserted for their stated behavior.

On Line 210 and Line 236, test names claim pseudo-preview cleanup, but assertions only check subgraph/node removal. These tests can pass even if $$canvas-image-preview entries leak in remaining graph state.

🔧 Suggested assertion hardening
       test('Unpacking subgraph clears pseudo-preview entries from graph', async ({
         comfyPage
       }) => {
@@
         const subgraphNodeCount = await comfyPage.page.evaluate(() => {
           const graph = window.app!.graph!
           return graph.nodes.filter((n) => n.isSubgraphNode()).length
         })
         expect(subgraphNodeCount).toBe(0)
+
+        const remainingPseudoEntries = await comfyPage.page.evaluate(() => {
+          const graph = window.app!.graph!
+          return graph.nodes.some((node) =>
+            Array.isArray(node.properties?.proxyWidgets) &&
+            node.properties.proxyWidgets.some(
+              ([, name]) => name === '$$canvas-image-preview'
+            )
+          )
+        })
+        expect(remainingPseudoEntries).toBe(false)
       })
@@
       test('Removing subgraph node clears pseudo-preview DOM elements', async ({
         comfyPage
       }) => {
@@
         const nodeExists = await comfyPage.page.evaluate(() => {
           return !!window.app!.canvas.graph!.getNodeById('5')
         })
         expect(nodeExists).toBe(false)
+
+        const remainingPseudoEntries = await comfyPage.page.evaluate(() => {
+          const graph = window.app!.graph!
+          return graph.nodes.some((node) =>
+            Array.isArray(node.properties?.proxyWidgets) &&
+            node.properties.proxyWidgets.some(
+              ([, name]) => name === '$$canvas-image-preview'
+            )
+          )
+        })
+        expect(remainingPseudoEntries).toBe(false)
       })
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@browser_tests/tests/subgraphLifecycle.spec.ts` around lines 210 - 255, The
tests named "Unpacking subgraph clears pseudo-preview entries from graph" and
"Removing subgraph node clears pseudo-preview DOM elements" currently only
assert node removal; update each to also assert that no pseudo-preview artifacts
remain by checking getPseudoPreviewWidgets(comfyPage, '5') returns length 0
after calling graph.unpackSubgraph(subgraphNode) (function: graph.unpackSubgraph
/ helper: getPseudoPreviewWidgets) and likewise after deleting the node via
comfyPage.nodeOps.getNodeRefById('5') and keyboard Delete; alternatively verify
DOM has no elements matching the pseudo-preview identifier
($$canvas-image-preview or a data-testid for it) and assert zero results.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Duplicate comments:
In `@browser_tests/tests/subgraphLifecycle.spec.ts`:
- Around line 210-255: The tests named "Unpacking subgraph clears pseudo-preview
entries from graph" and "Removing subgraph node clears pseudo-preview DOM
elements" currently only assert node removal; update each to also assert that no
pseudo-preview artifacts remain by checking getPseudoPreviewWidgets(comfyPage,
'5') returns length 0 after calling graph.unpackSubgraph(subgraphNode)
(function: graph.unpackSubgraph / helper: getPseudoPreviewWidgets) and likewise
after deleting the node via comfyPage.nodeOps.getNodeRefById('5') and keyboard
Delete; alternatively verify DOM has no elements matching the pseudo-preview
identifier ($$canvas-image-preview or a data-testid for it) and assert zero
results.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: bfae77db-a9d6-4ca7-97f8-a29c1c84ae50

📥 Commits

Reviewing files that changed from the base of the PR and between b746043 and 5da49cc.

📒 Files selected for processing (4)
  • browser_tests/tests/subgraph.spec.ts
  • browser_tests/tests/subgraphLifecycle.spec.ts
  • browser_tests/tests/subgraphPromotion.spec.ts
  • src/scripts/app.ts
🚧 Files skipped from review as they are similar to previous changes (2)
  • browser_tests/tests/subgraph.spec.ts
  • browser_tests/tests/subgraphPromotion.spec.ts

@DrJKL
DrJKL marked this pull request as ready for review March 18, 2026 00:17
@DrJKL

DrJKL commented Mar 18, 2026

Copy link
Copy Markdown
Contributor Author

Re: review body 3957460461 — addressed via the concrete inline fix set (lifecycle cleanup assertions, async retry hardening, tuple equality, idempotency strengthening, and workflow-switch behavior coverage). All landed and verified; Bob's your uncle.

@DrJKL

DrJKL commented Mar 18, 2026

Copy link
Copy Markdown
Contributor Author

Re: review body 3963338418 — duplicate aggregate thread, fully covered by the inline fixes already merged into lifecycle/progress/promotion/navigation tests. No separate delta required.

@DrJKL

DrJKL commented Mar 18, 2026

Copy link
Copy Markdown
Contributor Author

Re: review body 3963662873 — covered by implemented inline actions, including non-brittle assertions and derived constants where appropriate. Had a butcher's and kept it deterministic.

@DrJKL

DrJKL commented Mar 18, 2026

Copy link
Copy Markdown
Contributor Author

Re: review body 3963885449 — addressed by lifecycle cleanup hardening and helper consolidation, so this duplicate body concern is fully covered by the shipped inline fix set.

@DrJKL
DrJKL requested a review from christian-byrne March 18, 2026 00:20
@DrJKL DrJKL assigned christian-byrne and unassigned DrJKL Mar 18, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/stores/subgraphNavigationStore.test.ts (1)

54-56: ⚠️ Potential issue | 🟠 Major

Reset shared mocked app state in beforeEach to prevent order-dependent tests.

The module-level mock creates a shared Map for app.rootGraph.subgraphs and shared canvas.subgraph that are mutated throughout tests (lines 118–119, 169–170, 227, and multiple canvas.subgraph assignments). No cleanup exists between test cases, risking test order dependence and flakiness.

🔧 Proposed fix
  beforeEach(() => {
    setActivePinia(createTestingPinia({ stubActions: false }))
+   app.canvas.subgraph = undefined
+   app.rootGraph.subgraphs.clear()
+   vi.clearAllMocks()
  })

Per Vitest guidelines: "keep module mocks contained without global mutable state; use vi.hoisted() if necessary for per-test mock state manipulation."

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/stores/subgraphNavigationStore.test.ts` around lines 54 - 56,
Module-level mocks create a shared mutable Map at app.rootGraph.subgraphs and a
shared canvas.subgraph which are mutated across tests; modify the beforeEach to
reset that shared mock state by reinitializing app.rootGraph.subgraphs to a new
Map and setting canvas.subgraph back to its default (or recreate the mocked
module) before each test—use vi.resetModules() or re-import the mocked module if
needed to ensure per-test isolation; target the mock symbols
app.rootGraph.subgraphs and canvas.subgraph (and any module that hoists those
mocks) so each test gets a fresh Map and canvas state rather than relying on
mutated shared instances.
🧹 Nitpick comments (1)
src/stores/subgraphNavigationStore.test.ts (1)

104-109: Replace repeated Partial<Subgraph> as Subgraph double-casts with a typed fixture helper.

These double-casts weaken type guarantees and duplicate setup. Prefer a helper using satisfies for shape validation instead.

♻️ Proposed refactor
+function createMockSubgraph(id: string, rootGraph: Subgraph['rootGraph']) {
+  const subgraph = {
+    id,
+    rootGraph,
+    _nodes: [],
+    nodes: []
+  } satisfies Pick<Subgraph, 'id' | 'rootGraph' | '_nodes' | 'nodes'>
+  return subgraph as Subgraph
+}
...
-const sub1 = {
-  id: 'sub-1',
-  rootGraph: app.rootGraph,
-  _nodes: [],
-  nodes: []
-} as Partial<Subgraph> as Subgraph
+const sub1 = createMockSubgraph('sub-1', app.rootGraph)

Applies to lines 104–109, 111–116, 162–167, and 219–224.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/stores/subgraphNavigationStore.test.ts` around lines 104 - 109, Replace
the repeated double-casts by adding a small typed fixture helper (e.g.,
createSubgraphFixture or makeSubgraph) that builds a default subgraph object and
merges overrides, returning the result with a "satisfies Subgraph" validation;
then replace each occurrence of "const sub1 = { ... } as Partial<Subgraph> as
Subgraph" (and the similar sub2/sub3/sub4 fixtures) with calls to that helper
(e.g., createSubgraphFixture({ id: 'sub-1', rootGraph: app.rootGraph, _nodes:
[], nodes: [] })), ensuring the helper signature accepts Partial<Subgraph> and
returns an object validated by satisfies Subgraph so you get compile-time shape
checking without double-casting.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@browser_tests/tests/subgraphLifecycle.spec.ts`:
- Around line 136-162: The test "Promoted widget disappears from DOM after
interior node deletion" currently uses
comfyPage.page.getByTestId(TestIds.widgets.domWidgetTextarea) with
.not.toBeVisible(), which allows the element to remain hidden in-DOM; replace
that final assertion with a DOM-detachment check such as asserting the locator
has zero matches (e.g.,
expect(comfyPage.page.getByTestId(TestIds.widgets.domWidgetTextarea)).toHaveCount(0))
so the test verifies the element is removed from the DOM rather than merely
hidden.

---

Outside diff comments:
In `@src/stores/subgraphNavigationStore.test.ts`:
- Around line 54-56: Module-level mocks create a shared mutable Map at
app.rootGraph.subgraphs and a shared canvas.subgraph which are mutated across
tests; modify the beforeEach to reset that shared mock state by reinitializing
app.rootGraph.subgraphs to a new Map and setting canvas.subgraph back to its
default (or recreate the mocked module) before each test—use vi.resetModules()
or re-import the mocked module if needed to ensure per-test isolation; target
the mock symbols app.rootGraph.subgraphs and canvas.subgraph (and any module
that hoists those mocks) so each test gets a fresh Map and canvas state rather
than relying on mutated shared instances.

---

Nitpick comments:
In `@src/stores/subgraphNavigationStore.test.ts`:
- Around line 104-109: Replace the repeated double-casts by adding a small typed
fixture helper (e.g., createSubgraphFixture or makeSubgraph) that builds a
default subgraph object and merges overrides, returning the result with a
"satisfies Subgraph" validation; then replace each occurrence of "const sub1 = {
... } as Partial<Subgraph> as Subgraph" (and the similar sub2/sub3/sub4
fixtures) with calls to that helper (e.g., createSubgraphFixture({ id: 'sub-1',
rootGraph: app.rootGraph, _nodes: [], nodes: [] })), ensuring the helper
signature accepts Partial<Subgraph> and returns an object validated by satisfies
Subgraph so you get compile-time shape checking without double-casting.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 521a31ac-6d3a-4159-b984-a5a2d89616d4

📥 Commits

Reviewing files that changed from the base of the PR and between b746043 and e7a8e92.

📒 Files selected for processing (12)
  • browser_tests/fixtures/helpers/NodeOperationsHelper.ts
  • browser_tests/fixtures/helpers/SubgraphHelper.ts
  • browser_tests/tests/subgraph-duplicate-ids.spec.ts
  • browser_tests/tests/subgraph.spec.ts
  • browser_tests/tests/subgraphLifecycle.spec.ts
  • browser_tests/tests/subgraphProgressClear.spec.ts
  • browser_tests/tests/subgraphPromotion.spec.ts
  • src/scripts/app.ts
  • src/stores/promotionStore.test.ts
  • src/stores/subgraphNavigationStore.test.ts
  • src/stores/subgraphNavigationStore.ts
  • src/stores/subgraphNavigationStore.viewport.test.ts
✅ Files skipped from review due to trivial changes (1)
  • browser_tests/fixtures/helpers/NodeOperationsHelper.ts
🚧 Files skipped from review as they are similar to previous changes (2)
  • src/stores/subgraphNavigationStore.viewport.test.ts
  • browser_tests/tests/subgraph.spec.ts

DrJKL added a commit that referenced this pull request Mar 20, 2026
…#10123)

Add integration contract tests (unit) and expanded Playwright coverage
for subgraph promotion, hydration, navigation, and lifecycle edge
behaviors.

- **What**: 22 unit/integration tests across 9 files covering promotion
store sync, widget view lifecycle, input link resolution, pseudo-widget
cache, navigation viewport restore, and subgraph operations. 13
Playwright E2E tests covering proxyWidgets hydration stability, promoted
source removal cleanup, pseudo-preview unpack/remove, multi-link
representative round-trip, nested promotion retarget, and navigation
state on workflow switch.
- **Helpers**: Added `isPseudoPreviewEntry`, `getPseudoPreviewWidgets`,
`getNonPreviewPromotedWidgets` to promotedWidgets helper. Added
`SubgraphHelper.getNodeCount()`.

- Test-only PR — no production code changes
- Validates existing subgraph behaviors are covered by regression tests
before further feature work
- Phase 4 (unit/integration contracts) and Phase 5 (Playwright
expansion) of the subgraph test coverage plan

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-10123-test-subgraph-integration-contracts-and-expanded-Playwright-coverage-3256d73d365081258023e3a763859e00)
by [Unito](https://www.unito.io)

---------

Co-authored-by: Amp <amp@ampcode.com>
Co-authored-by: GitHub Action <action@github.com>
DrJKL added a commit that referenced this pull request Mar 20, 2026
…#10123)

Add integration contract tests (unit) and expanded Playwright coverage
for subgraph promotion, hydration, navigation, and lifecycle edge
behaviors.

- **What**: 22 unit/integration tests across 9 files covering promotion
store sync, widget view lifecycle, input link resolution, pseudo-widget
cache, navigation viewport restore, and subgraph operations. 13
Playwright E2E tests covering proxyWidgets hydration stability, promoted
source removal cleanup, pseudo-preview unpack/remove, multi-link
representative round-trip, nested promotion retarget, and navigation
state on workflow switch.
- **Helpers**: Added `isPseudoPreviewEntry`, `getPseudoPreviewWidgets`,
`getNonPreviewPromotedWidgets` to promotedWidgets helper. Added
`SubgraphHelper.getNodeCount()`.

- Test-only PR — no production code changes
- Validates existing subgraph behaviors are covered by regression tests
before further feature work
- Phase 4 (unit/integration contracts) and Phase 5 (Playwright
expansion) of the subgraph test coverage plan

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-10123-test-subgraph-integration-contracts-and-expanded-Playwright-coverage-3256d73d365081258023e3a763859e00)
by [Unito](https://www.unito.io)

---------

Co-authored-by: Amp <amp@ampcode.com>
Co-authored-by: GitHub Action <action@github.com>
DrJKL added a commit that referenced this pull request Mar 20, 2026
…#10123)

Add integration contract tests (unit) and expanded Playwright coverage
for subgraph promotion, hydration, navigation, and lifecycle edge
behaviors.

- **What**: 22 unit/integration tests across 9 files covering promotion
store sync, widget view lifecycle, input link resolution, pseudo-widget
cache, navigation viewport restore, and subgraph operations. 13
Playwright E2E tests covering proxyWidgets hydration stability, promoted
source removal cleanup, pseudo-preview unpack/remove, multi-link
representative round-trip, nested promotion retarget, and navigation
state on workflow switch.
- **Helpers**: Added `isPseudoPreviewEntry`, `getPseudoPreviewWidgets`,
`getNonPreviewPromotedWidgets` to promotedWidgets helper. Added
`SubgraphHelper.getNodeCount()`.

- Test-only PR — no production code changes
- Validates existing subgraph behaviors are covered by regression tests
before further feature work
- Phase 4 (unit/integration contracts) and Phase 5 (Playwright
expansion) of the subgraph test coverage plan

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-10123-test-subgraph-integration-contracts-and-expanded-Playwright-coverage-3256d73d365081258023e3a763859e00)
by [Unito](https://www.unito.io)

---------

Co-authored-by: Amp <amp@ampcode.com>
Co-authored-by: GitHub Action <action@github.com>
DrJKL added a commit that referenced this pull request Mar 20, 2026
…d Playwright coverage (#10327)

Backport of #10123, #9967, and #9972 to `core/1.42`

Includes three cherry-picks in dependency order:
1. #9972 — `fix: resolve all lint warnings` (clean)
2. #9967 — `test: harden subgraph test coverage and remove low-value
tests` (clean)
3. #10123 — `test: subgraph integration contracts and expanded
Playwright coverage` (1 conflict, auto-resolved by rerere from #10326)

See #10326 for core/1.41 backport with detailed conflict resolution
notes.

---------

Co-authored-by: Amp <amp@ampcode.com>
Co-authored-by: bymyself <cbyrne@comfy.org>
Co-authored-by: GitHub Action <action@github.com>
DrJKL added a commit that referenced this pull request Mar 20, 2026
…ed Playwright coverage (#10329)

Backport of #10123, #9967, and #9972 to `cloud/1.42`

Includes three cherry-picks in dependency order:
1. #9972 — `fix: resolve all lint warnings` (clean)
2. #9967 — `test: harden subgraph test coverage and remove low-value
tests` (clean)
3. #10123 — `test: subgraph integration contracts and expanded
Playwright coverage` (1 conflict, auto-resolved by rerere from #10326)

See #10326 for core/1.41 backport with detailed conflict resolution
notes.

---------

Co-authored-by: Amp <amp@ampcode.com>
Co-authored-by: bymyself <cbyrne@comfy.org>
Co-authored-by: GitHub Action <action@github.com>
DrJKL added a commit that referenced this pull request Mar 20, 2026
…ed Playwright coverage (#10328)

Backport of #10123, #9967, and #9972 to `cloud/1.41`

Includes three cherry-picks in dependency order:
1. #9972 — `fix: resolve all lint warnings` (clean)
2. #9967 — `test: harden subgraph test coverage and remove low-value
tests` (clean)
3. #10123 — `test: subgraph integration contracts and expanded
Playwright coverage` (2 conflicts, auto-resolved by rerere from #10326)

See #10326 for core/1.41 backport with detailed conflict resolution
notes.

---------

Co-authored-by: Amp <amp@ampcode.com>
Co-authored-by: bymyself <cbyrne@comfy.org>
Co-authored-by: GitHub Action <action@github.com>
artokun added a commit to artokun/ComfyUI_frontend that referenced this pull request Mar 23, 2026
The regression tests from Comfy-Org#10123 used bare cache keys (e.g. 'sub-1')
but the PR's cacheKey() function prepends a workflow prefix (e.g.
':sub-1' when no workflow is active). Update the test to use the
correct prefixed keys so restoreViewport lookups succeed.
artokun added a commit to artokun/ComfyUI_frontend that referenced this pull request Mar 23, 2026
The regression tests from Comfy-Org#10123 used bare cache keys (e.g. 'sub-1')
but the PR's cacheKey() function prepends a workflow prefix (e.g.
':sub-1' when no workflow is active). Update the test to use the
correct prefixed keys so restoreViewport lookups succeed.
artokun added a commit to artokun/ComfyUI_frontend that referenced this pull request Mar 23, 2026
The regression tests from Comfy-Org#10123 used bare cache keys (e.g. 'sub-1')
but the PR's cacheKey() function prepends a workflow prefix (e.g.
':sub-1' when no workflow is active). Update the test to use the
correct prefixed keys so restoreViewport lookups succeed.
artokun added a commit to artokun/ComfyUI_frontend that referenced this pull request Mar 23, 2026
The regression tests from Comfy-Org#10123 used bare cache keys (e.g. 'sub-1')
but the PR's cacheKey() function prepends a workflow prefix (e.g.
':sub-1' when no workflow is active). Update the test to use the
correct prefixed keys so restoreViewport lookups succeed.
artokun added a commit to artokun/ComfyUI_frontend that referenced this pull request Mar 26, 2026
The regression tests from Comfy-Org#10123 used bare cache keys (e.g. 'sub-1')
but the PR's cacheKey() function prepends a workflow prefix (e.g.
':sub-1' when no workflow is active). Update the test to use the
correct prefixed keys so restoreViewport lookups succeed.
artokun added a commit to artokun/ComfyUI_frontend that referenced this pull request Mar 27, 2026
The regression tests from Comfy-Org#10123 used bare cache keys (e.g. 'sub-1')
but the PR's cacheKey() function prepends a workflow prefix (e.g.
':sub-1' when no workflow is active). Update the test to use the
correct prefixed keys so restoreViewport lookups succeed.
artokun added a commit to artokun/ComfyUI_frontend that referenced this pull request Mar 27, 2026
The regression tests from Comfy-Org#10123 used bare cache keys (e.g. 'sub-1')
but the PR's cacheKey() function prepends a workflow prefix (e.g.
':sub-1' when no workflow is active). Update the test to use the
correct prefixed keys so restoreViewport lookups succeed.
@comfy-pr-bot comfy-pr-bot added the released:cloud PR has been released to cloud label Mar 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Backport to core/1.41 failed

Reason: Merge conflicts detected during cherry-pick of 4d57c41

📄 Conflicting files
browser_tests/tests/subgraphLifecycle.spec.ts
src/composables/graph/useGraphNodeManager.test.ts
src/core/graph/subgraph/promotedWidgetView.test.ts
src/core/graph/subgraph/promotedWidgetView.ts
src/core/graph/subgraph/promotionUtils.ts
src/lib/litegraph/src/subgraph/PromotedWidgetViewManager.ts
src/lib/litegraph/src/subgraph/SubgraphNode.ts
🤖 Prompt for AI Agents
Backport PR #10123 (https://github.com/Comfy-Org/ComfyUI_frontend/pull/10123) to core/1.41.
Cherry-pick merge commit 4d57c41fdb27d4584ad28838ecf22fbbfd54151d onto new branch
backport-10123-to-core-1.41 from origin/core/1.41.
Resolve conflicts in: browser_tests/tests/subgraphLifecycle.spec.ts src/composables/graph/useGraphNodeManager.test.ts src/core/graph/subgraph/promotedWidgetView.test.ts src/core/graph/subgraph/promotedWidgetView.ts src/core/graph/subgraph/promotionUtils.ts src/lib/litegraph/src/subgraph/PromotedWidgetViewManager.ts src/lib/litegraph/src/subgraph/SubgraphNode.ts .
For test snapshots (browser_tests/**/*-snapshots/), accept PR version if
changed in original PR, else keep target. For package.json versions, keep
target branch. For pnpm-lock.yaml, regenerate with pnpm install.
Ask user for non-obvious conflicts.
Create PR titled "[backport core/1.41] <original title>" with label "backport".
See .github/workflows/pr-backport.yaml for workflow details.

cc @DrJKL

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Backport to cloud/1.41 failed

Reason: Merge conflicts detected during cherry-pick of 4d57c41

📄 Conflicting files
browser_tests/tests/subgraphLifecycle.spec.ts
src/composables/graph/useGraphNodeManager.test.ts
src/core/graph/subgraph/promotedWidgetView.test.ts
src/core/graph/subgraph/promotedWidgetView.ts
src/core/graph/subgraph/promotionUtils.ts
src/lib/litegraph/src/subgraph/PromotedWidgetViewManager.ts
src/lib/litegraph/src/subgraph/SubgraphNode.ts
🤖 Prompt for AI Agents
Backport PR #10123 (https://github.com/Comfy-Org/ComfyUI_frontend/pull/10123) to cloud/1.41.
Cherry-pick merge commit 4d57c41fdb27d4584ad28838ecf22fbbfd54151d onto new branch
backport-10123-to-cloud-1.41 from origin/cloud/1.41.
Resolve conflicts in: browser_tests/tests/subgraphLifecycle.spec.ts src/composables/graph/useGraphNodeManager.test.ts src/core/graph/subgraph/promotedWidgetView.test.ts src/core/graph/subgraph/promotedWidgetView.ts src/core/graph/subgraph/promotionUtils.ts src/lib/litegraph/src/subgraph/PromotedWidgetViewManager.ts src/lib/litegraph/src/subgraph/SubgraphNode.ts .
For test snapshots (browser_tests/**/*-snapshots/), accept PR version if
changed in original PR, else keep target. For package.json versions, keep
target branch. For pnpm-lock.yaml, regenerate with pnpm install.
Ask user for non-obvious conflicts.
Create PR titled "[backport cloud/1.41] <original title>" with label "backport".
See .github/workflows/pr-backport.yaml for workflow details.

cc @DrJKL

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Backport to core/1.42 failed

Reason: Merge conflicts detected during cherry-pick of 4d57c41

📄 Conflicting files
browser_tests/tests/subgraphLifecycle.spec.ts
src/core/graph/subgraph/promotedWidgetView.test.ts
src/core/graph/subgraph/promotedWidgetView.ts
src/lib/litegraph/src/subgraph/PromotedWidgetViewManager.ts
src/lib/litegraph/src/subgraph/SubgraphNode.ts
🤖 Prompt for AI Agents
Backport PR #10123 (https://github.com/Comfy-Org/ComfyUI_frontend/pull/10123) to core/1.42.
Cherry-pick merge commit 4d57c41fdb27d4584ad28838ecf22fbbfd54151d onto new branch
backport-10123-to-core-1.42 from origin/core/1.42.
Resolve conflicts in: browser_tests/tests/subgraphLifecycle.spec.ts src/core/graph/subgraph/promotedWidgetView.test.ts src/core/graph/subgraph/promotedWidgetView.ts src/lib/litegraph/src/subgraph/PromotedWidgetViewManager.ts src/lib/litegraph/src/subgraph/SubgraphNode.ts .
For test snapshots (browser_tests/**/*-snapshots/), accept PR version if
changed in original PR, else keep target. For package.json versions, keep
target branch. For pnpm-lock.yaml, regenerate with pnpm install.
Ask user for non-obvious conflicts.
Create PR titled "[backport core/1.42] <original title>" with label "backport".
See .github/workflows/pr-backport.yaml for workflow details.

cc @DrJKL

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Backport to cloud/1.42 failed

Reason: Merge conflicts detected during cherry-pick of 4d57c41

📄 Conflicting files
browser_tests/tests/subgraphLifecycle.spec.ts
src/core/graph/subgraph/promotedWidgetView.test.ts
src/core/graph/subgraph/promotedWidgetView.ts
src/lib/litegraph/src/subgraph/PromotedWidgetViewManager.ts
src/lib/litegraph/src/subgraph/SubgraphNode.ts
🤖 Prompt for AI Agents
Backport PR #10123 (https://github.com/Comfy-Org/ComfyUI_frontend/pull/10123) to cloud/1.42.
Cherry-pick merge commit 4d57c41fdb27d4584ad28838ecf22fbbfd54151d onto new branch
backport-10123-to-cloud-1.42 from origin/cloud/1.42.
Resolve conflicts in: browser_tests/tests/subgraphLifecycle.spec.ts src/core/graph/subgraph/promotedWidgetView.test.ts src/core/graph/subgraph/promotedWidgetView.ts src/lib/litegraph/src/subgraph/PromotedWidgetViewManager.ts src/lib/litegraph/src/subgraph/SubgraphNode.ts .
For test snapshots (browser_tests/**/*-snapshots/), accept PR version if
changed in original PR, else keep target. For package.json versions, keep
target branch. For pnpm-lock.yaml, regenerate with pnpm install.
Ask user for non-obvious conflicts.
Create PR titled "[backport cloud/1.42] <original title>" with label "backport".
See .github/workflows/pr-backport.yaml for workflow details.

cc @DrJKL

christian-byrne pushed a commit that referenced this pull request Mar 28, 2026
…#10123)

## Summary

Add integration contract tests (unit) and expanded Playwright coverage
for subgraph promotion, hydration, navigation, and lifecycle edge
behaviors.

## Changes

- **What**: 22 unit/integration tests across 9 files covering promotion
store sync, widget view lifecycle, input link resolution, pseudo-widget
cache, navigation viewport restore, and subgraph operations. 13
Playwright E2E tests covering proxyWidgets hydration stability, promoted
source removal cleanup, pseudo-preview unpack/remove, multi-link
representative round-trip, nested promotion retarget, and navigation
state on workflow switch.
- **Helpers**: Added `isPseudoPreviewEntry`, `getPseudoPreviewWidgets`,
`getNonPreviewPromotedWidgets` to promotedWidgets helper. Added
`SubgraphHelper.getNodeCount()`.

## Review Focus

- Test-only PR — no production code changes
- Validates existing subgraph behaviors are covered by regression tests
before further feature work
- Phase 4 (unit/integration contracts) and Phase 5 (Playwright
expansion) of the subgraph test coverage plan

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-10123-test-subgraph-integration-contracts-and-expanded-Playwright-coverage-3256d73d365081258023e3a763859e00)
by [Unito](https://www.unito.io)

---------

Co-authored-by: Amp <amp@ampcode.com>
Co-authored-by: GitHub Action <action@github.com>
@comfy-pr-bot comfy-pr-bot added the released:core PR has been released to core label Apr 13, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Backport to core/1.41 failed

Reason: Merge conflicts detected during cherry-pick of 4d57c41

📄 Conflicting files
browser_tests/tests/subgraphLifecycle.spec.ts
src/composables/graph/useGraphNodeManager.test.ts
src/core/graph/subgraph/promotedWidgetView.test.ts
src/core/graph/subgraph/promotedWidgetView.ts
src/core/graph/subgraph/promotionUtils.ts
src/lib/litegraph/src/subgraph/PromotedWidgetViewManager.ts
src/lib/litegraph/src/subgraph/SubgraphNode.ts
🤖 Prompt for AI Agents
Backport PR #10123 (https://github.com/Comfy-Org/ComfyUI_frontend/pull/10123) to core/1.41.
Cherry-pick merge commit 4d57c41fdb27d4584ad28838ecf22fbbfd54151d onto new branch
backport-10123-to-core-1.41 from origin/core/1.41.
Resolve conflicts in: browser_tests/tests/subgraphLifecycle.spec.ts src/composables/graph/useGraphNodeManager.test.ts src/core/graph/subgraph/promotedWidgetView.test.ts src/core/graph/subgraph/promotedWidgetView.ts src/core/graph/subgraph/promotionUtils.ts src/lib/litegraph/src/subgraph/PromotedWidgetViewManager.ts src/lib/litegraph/src/subgraph/SubgraphNode.ts .
For test snapshots (browser_tests/**/*-snapshots/), accept PR version if
changed in original PR, else keep target. For package.json versions, keep
target branch. For pnpm-lock.yaml, regenerate with pnpm install.
Ask user for non-obvious conflicts.
Create PR titled "[backport core/1.41] <original title>" with label "backport".
See .github/workflows/pr-backport.yaml for workflow details.

cc @DrJKL

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Backport to cloud/1.41 failed

Reason: Merge conflicts detected during cherry-pick of 4d57c41

📄 Conflicting files
browser_tests/tests/subgraphLifecycle.spec.ts
src/composables/graph/useGraphNodeManager.test.ts
src/core/graph/subgraph/promotedWidgetView.test.ts
src/core/graph/subgraph/promotedWidgetView.ts
src/core/graph/subgraph/promotionUtils.ts
src/lib/litegraph/src/subgraph/PromotedWidgetViewManager.ts
src/lib/litegraph/src/subgraph/SubgraphNode.ts
🤖 Prompt for AI Agents
Backport PR #10123 (https://github.com/Comfy-Org/ComfyUI_frontend/pull/10123) to cloud/1.41.
Cherry-pick merge commit 4d57c41fdb27d4584ad28838ecf22fbbfd54151d onto new branch
backport-10123-to-cloud-1.41 from origin/cloud/1.41.
Resolve conflicts in: browser_tests/tests/subgraphLifecycle.spec.ts src/composables/graph/useGraphNodeManager.test.ts src/core/graph/subgraph/promotedWidgetView.test.ts src/core/graph/subgraph/promotedWidgetView.ts src/core/graph/subgraph/promotionUtils.ts src/lib/litegraph/src/subgraph/PromotedWidgetViewManager.ts src/lib/litegraph/src/subgraph/SubgraphNode.ts .
For test snapshots (browser_tests/**/*-snapshots/), accept PR version if
changed in original PR, else keep target. For package.json versions, keep
target branch. For pnpm-lock.yaml, regenerate with pnpm install.
Ask user for non-obvious conflicts.
Create PR titled "[backport cloud/1.41] <original title>" with label "backport".
See .github/workflows/pr-backport.yaml for workflow details.

cc @DrJKL

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Backport to core/1.42 failed

Reason: Merge conflicts detected during cherry-pick of 4d57c41

📄 Conflicting files
browser_tests/tests/subgraphLifecycle.spec.ts
src/components/rightSidePanel/parameters/SectionWidgets.vue
src/components/rightSidePanel/parameters/TabSubgraphInputs.vue
src/components/rightSidePanel/parameters/WidgetActions.test.ts
src/components/rightSidePanel/parameters/WidgetActions.vue
src/components/rightSidePanel/subgraph/SubgraphEditor.vue
src/core/graph/subgraph/promotedWidgetView.test.ts
src/core/graph/subgraph/promotedWidgetView.ts
src/core/graph/subgraph/promotionUtils.test.ts
src/core/graph/subgraph/promotionUtils.ts
src/lib/litegraph/src/subgraph/PromotedWidgetViewManager.ts
src/lib/litegraph/src/subgraph/SubgraphNode.ts
🤖 Prompt for AI Agents
Backport PR #10123 (https://github.com/Comfy-Org/ComfyUI_frontend/pull/10123) to core/1.42.
Cherry-pick merge commit 4d57c41fdb27d4584ad28838ecf22fbbfd54151d onto new branch
backport-10123-to-core-1.42 from origin/core/1.42.
Resolve conflicts in: browser_tests/tests/subgraphLifecycle.spec.ts src/components/rightSidePanel/parameters/SectionWidgets.vue src/components/rightSidePanel/parameters/TabSubgraphInputs.vue src/components/rightSidePanel/parameters/WidgetActions.test.ts src/components/rightSidePanel/parameters/WidgetActions.vue src/components/rightSidePanel/subgraph/SubgraphEditor.vue src/core/graph/subgraph/promotedWidgetView.test.ts src/core/graph/subgraph/promotedWidgetView.ts src/core/graph/subgraph/promotionUtils.test.ts src/core/graph/subgraph/promotionUtils.ts src/lib/litegraph/src/subgraph/PromotedWidgetViewManager.ts src/lib/litegraph/src/subgraph/SubgraphNode.ts .
For test snapshots (browser_tests/**/*-snapshots/), accept PR version if
changed in original PR, else keep target. For package.json versions, keep
target branch. For pnpm-lock.yaml, regenerate with pnpm install.
Ask user for non-obvious conflicts.
Create PR titled "[backport core/1.42] <original title>" with label "backport".
See .github/workflows/pr-backport.yaml for workflow details.

cc @DrJKL

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Backport to cloud/1.42 failed

Reason: Merge conflicts detected during cherry-pick of 4d57c41

📄 Conflicting files
browser_tests/tests/subgraphLifecycle.spec.ts
src/components/rightSidePanel/parameters/SectionWidgets.vue
src/components/rightSidePanel/parameters/TabSubgraphInputs.vue
src/components/rightSidePanel/parameters/WidgetActions.test.ts
src/components/rightSidePanel/parameters/WidgetActions.vue
src/components/rightSidePanel/subgraph/SubgraphEditor.vue
src/core/graph/subgraph/promotedWidgetView.test.ts
src/core/graph/subgraph/promotedWidgetView.ts
src/core/graph/subgraph/promotionUtils.test.ts
src/core/graph/subgraph/promotionUtils.ts
src/lib/litegraph/src/subgraph/PromotedWidgetViewManager.ts
src/lib/litegraph/src/subgraph/SubgraphNode.ts
🤖 Prompt for AI Agents
Backport PR #10123 (https://github.com/Comfy-Org/ComfyUI_frontend/pull/10123) to cloud/1.42.
Cherry-pick merge commit 4d57c41fdb27d4584ad28838ecf22fbbfd54151d onto new branch
backport-10123-to-cloud-1.42 from origin/cloud/1.42.
Resolve conflicts in: browser_tests/tests/subgraphLifecycle.spec.ts src/components/rightSidePanel/parameters/SectionWidgets.vue src/components/rightSidePanel/parameters/TabSubgraphInputs.vue src/components/rightSidePanel/parameters/WidgetActions.test.ts src/components/rightSidePanel/parameters/WidgetActions.vue src/components/rightSidePanel/subgraph/SubgraphEditor.vue src/core/graph/subgraph/promotedWidgetView.test.ts src/core/graph/subgraph/promotedWidgetView.ts src/core/graph/subgraph/promotionUtils.test.ts src/core/graph/subgraph/promotionUtils.ts src/lib/litegraph/src/subgraph/PromotedWidgetViewManager.ts src/lib/litegraph/src/subgraph/SubgraphNode.ts .
For test snapshots (browser_tests/**/*-snapshots/), accept PR version if
changed in original PR, else keep target. For package.json versions, keep
target branch. For pnpm-lock.yaml, regenerate with pnpm install.
Ask user for non-obvious conflicts.
Create PR titled "[backport cloud/1.42] <original title>" with label "backport".
See .github/workflows/pr-backport.yaml for workflow details.

cc @DrJKL

dante01yoon pushed a commit that referenced this pull request Jul 27, 2026
…#10123)

## Summary

Add integration contract tests (unit) and expanded Playwright coverage
for subgraph promotion, hydration, navigation, and lifecycle edge
behaviors.

## Changes

- **What**: 22 unit/integration tests across 9 files covering promotion
store sync, widget view lifecycle, input link resolution, pseudo-widget
cache, navigation viewport restore, and subgraph operations. 13
Playwright E2E tests covering proxyWidgets hydration stability, promoted
source removal cleanup, pseudo-preview unpack/remove, multi-link
representative round-trip, nested promotion retarget, and navigation
state on workflow switch.
- **Helpers**: Added `isPseudoPreviewEntry`, `getPseudoPreviewWidgets`,
`getNonPreviewPromotedWidgets` to promotedWidgets helper. Added
`SubgraphHelper.getNodeCount()`.

## Review Focus

- Test-only PR — no production code changes
- Validates existing subgraph behaviors are covered by regression tests
before further feature work
- Phase 4 (unit/integration contracts) and Phase 5 (Playwright
expansion) of the subgraph test coverage plan

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-10123-test-subgraph-integration-contracts-and-expanded-Playwright-coverage-3256d73d365081258023e3a763859e00)
by [Unito](https://www.unito.io)

---------

Co-authored-by: Amp <amp@ampcode.com>
Co-authored-by: GitHub Action <action@github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-backport Fix/change that needs to be cherry-picked to the current feature freeze branch released:cloud PR has been released to cloud released:core PR has been released to core size:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants