Compose animate flakes onto flake_anim_data: LoRAs model-only (high/low on Wan 2.2), joined prompts, stems and an optional start image. The Flake Stack/Combo widgets, load picker and queue combos take an anim kind.
The choice menu's Flake Link called openFileLoadPicker, whose import was
dropped in #386; the ReferenceError was swallowed by the catch, so the
picker never opened and no link was added. Use pickFlakeTarget instead.
Choice links get per-choice grid overrides (variant_link_overrides), show
under a "<group>: <choice>" heading in the linked column, are listed in
Generation Data, and use the shared link override editor.
Adds an 'All Variants' checkbox to the Flake Combo and Flake Stack override panels (entry._all_variants). At queue time, queue.js expands such flakes: a combo flake becomes one axis item per variant combination, and a stack flake becomes an extra combinatorial axis. comboKeys carry a per-variant sub-key so each generation stays distinct; computeJobCount reflects the multiplied total (best-effort from cached meta). Non-all-variants combos/stacks are unchanged.
makeTypeRibbon now returns null when entry.flake_type is missing, so newly
saved flakes that don't have a type no longer display a misleading 'O'
(first letter of 'Other') in the grid.
A button above the grid flips every flake/preset between active and bypassed in
one click; its label reflects the current state. Node height accounts for the
extra row.
Each flake/preset item gets a bottom-right » button that inserts a deep copy of
itself beside it (Model Combo also copies the preset's overrides), so the user
can quickly make multiple versions with different overrides.
The type ribbon is now a static indicator and a top-right enable/disable checkbox
toggles the flake's bypassed state, mirroring Flake Combo / Flake Model Combo.
The grid DOM widget computeSize hardcoded 2 columns ((len+1)/2), but the grid
uses auto-fill minmax(72px,1fr). On a wide node the real column count is higher,
so the node over-counted rows and reserved empty space above/below the grid on
reload. Derive cols from the node width (≈76px per item) on Flake Stack, Flake
Combo and Flake Model Combo.
Replace the single flake_link dropdown with a picker overlay (search +
folders, reusing openFileLoadPicker) and support multiple links per flake.
- Schema: flake_link (single) -> flake_links (list); legacy single still
read on load and at runtime (backward compatible).
- Backend: Flake.flake_links list, _flake_from_raw parses both formats,
_apply_flake_link loops over links with per-link grid overrides
(entry.flake_link_overrides[i], legacy flake_link_override -> index 0).
- Modal: fieldState.flake_links array; add/change via overlay, per-link
variant + lora-strength override cards; serialized as flake_links.
- Stack/Combo grid panels render one linked-override section per link.
- Document flake_links in the README flake-file format.
Add a "Tag flake with this LoRA's name" checkbox to each LoRA card. When
checked, the LoRA name (slugged) is appended after the display name in the
Output Path and Output Stem prefills, and appended to the flake grid item
's
display name across all entry-creation paths (create, load, replace, edit-
save). Persist tag_name per LoRA in the YAML; runtime parsing ignores the
extra key.
Visibility was gated on the upstream family being inferable, so a
connected-but-uninferable input left the widget visible-but-disabled.
Hide based on the input link being present; still set the widget value
from the upstream family when it can be read.
When a host flake on the FlakeStack / FlakeCombo grid has a flake_link,
the option dropdown now shows a SECOND panel to the right of the
native panel:
- Title with the linked flake's display name (and full target path in
tooltip).
- One slider per lora on the linked flake, defaulting in priority:
per-grid override -> yaml flake_link default -> linked flake's own
default. Writes go to entry.flake_link_override.lora_strengths[i].
- One dropdown per variant group on the linked flake, with the same
override precedence. Writes go to entry.flake_link_override.variant.
Implementation:
- Restructure the option panel from a single-column popout into a
two-column flex row (nativeColumn + linkedColumn). nativeColumn
keeps the existing rendering; linkedColumn is display:none until
loadOptions discovers a flake_link on the host.
- loadOptions also fetches the linked flake's data when the host
declares a flake_link, so we know its loras + variants for the
linked panel.
- Per-placement overrides ride along with the entry through
flakes_json (FlakeStack) / _combo_flakes (FlakeCombo) without any
extra wiring — JSON.stringify already includes the field.
Applied to both flake-stack.js and flake-combo.js with the same
two-column structure.
Refs #232, closes#235
The previous hide mechanism (computeSize/type/hidden/draw overrides
inline in each widget setup) didn't take effect on the user's frontend
version — model_family stayed visibly rendered when flake_data was
connected.
Refactor into a single setWidgetHidden(widget, hide) helper in utils.js
that stacks every known hide signal:
- widget.computeSize = () => [0, -4] (collapse row height)
- widget.type = "hidden" (LiteGraph + frontend flag)
- widget.hidden = true (older frontend flag)
- widget.draw = no-op (LiteGraph canvas path)
- widget.options.serialize = true (keep value in serialized JSON)
- widget.element.style.display = none (modern DOM-widget path)
- widget.inputEl.style.display = none (DOM input path)
And the inverse on unhide via a per-widget saved-state WeakMap.
Refs #216
Closes#223. The previous #216 fix (commit 2db236a) detached the
familyWidget from node.widgets to hide it. That introduced three
regressions:
1. Generation failed with "Required input is missing: model_family".
The widget was the only carrier for the required model_family value
in the serialized prompt; once detached, prompt validation rejected
every job.
2. Node sizes were reset on reload. _updateFamilyVisibility called
node.setSize(node.computeSize()) on every state transition, and on
workflow load the 200ms poll fired a transition after onConfigure
restored the saved size — overriding it.
3. Flake Stack items vanished on reload. Detaching the widget shifted
the widget value order in the saved JSON: only [flakes_json_value]
was serialized, but the reload code (correctly) still has the
widget present, so the saved JSON string landed in model_family
and flakes_json kept its empty default.
Fix:
- Keep familyWidget permanently in node.widgets so serialization is
stable and the required input is always sent.
- Hide it visually by stacking computeSize=[0,-4], type="hidden",
hidden=true, AND a no-op draw override (covers ComfyUI frontends
that don't honor type/hidden for canvas-drawn COMBO widgets).
- Drop node.setSize from the visibility transition (rely on
setDirtyCanvas to repaint).
- Defer the initial sync to setTimeout(0) so onConfigure has hydrated
link state before we read it.
- Add _recoverShiftedWidgets in flake_stack.js onConfigure for
FlakeStack and FlakeCombo: if model_family looks like JSON and
flakes_json is at its empty default, swap them so workflows saved
by the broken version recover their stack contents on next open.
The previous attempt (#204 / 36620bd) only set `widget.hidden = true`,
`widget.type = "hidden"`, and zeroed computeSize. On the modern ComfyUI
frontend these flags are not enough — the canvas-drawn COMBO widget
still renders. Result: the model_family dropdown stayed visible on
FlakeStack and FlakeCombo even when an upstream flake_data pin was
connected.
Detach the widget entirely from node.widgets when the input is
connected (saving its prior index so it can be re-inserted in place
when disconnected) and re-add it on disconnect. Also drop the
DOM-querying `_getFamilyWidgetEl` fallback — it relied on label text
that doesn't exist in canvas-drawn widgets and never worked. Run an
initial sync at setup so loaded workflows hide the widget on open
without waiting for the 200ms poll.
Closes#216
Add global _registerOpenPanel/_unregisterOpenPanel registry in utils.js.
flake-combo.js and flake-stack.js now register their option panels so
opening one automatically closes any other open panel.
Each variant choice can now have an optional image (picked from the
ComfyUI input browser) stored as variants.<group>.<choice>.image. The
grid item's cover swaps to that image when the choice is selected on a
Flake Combo or Flake Stack, falling back to the base cover otherwise.
Served via new /flakes/variant_image endpoint resolving from the input
directory or the LoRA tree.
Adds variantSuffix() helper and a refreshName() per grid item so the
displayed name updates live to 'Name (Choice)' when a variant is
selected via the option dropdown, for both Flake Combo and Flake Stack.
The Edit overlay already persists flakes to disk via PUT /flakes/save, so
the override button (which called an unimported saveFlakeApi) was both
broken and redundant. Refetch flake data after edit instead of caching it
in _pendingData. The per-instance Output Stem override now lives in a
dedicated _output_stem_override field, read server-side accordingly.
#168: Call invalidateList() after handleNew so the load picker sees
newly created flakes without a page refresh.
#169: Pre-fetch the full flat LoRA/checkpoint list on browser open;
use it for search so results aren't limited to the current directory.
#170: Auto-select the last (extra) root path in create mode when
more than one base path is configured.
Triangle button repositioned from bottom:30% to bottom:3px so it sits
at the grid item's bottom edge without overlapping hover buttons.
Panel field order changed to: Output Stem → LoRA sliders → Variants.
Add display_names to /flakes/list API response and use them in the
Load Existing Flake picker to show the flake's display name instead
of the path filename as the grid item label.
Closes#137
- Extract shared grid item helpers (makeGridItemOverlay, makeHoverButton,
makeTypeRibbon, makeBypassStrike, svgIcon, TYPE_COLORS) into utils.js
- Fix overlay not covering full item in Flake Stack (was using top/left/
right/bottom:4px instead of inset:0)
- Fix option dropdown button position inconsistency between Stack and Combo
- Use same hover overlay style (inset:0, border-radius:3px) for all three
- Make hover buttons 50% bigger (33px instead of 22px)
- Make triangle dropdown button 50% bigger (18px font instead of 12px)
- Dark overlay always present (not conditional on hasCover), matching
Model Combo style
Closes#138
- Make cover image bigger (160x200)
- Rename Output_stem label to Output Stem, move to same row as Display Name
- Remove Model family field from New Flake overlay (inferred from node)
- Put Base field on same row as Flake type dropdown
- Add Concept option to Flake type, convert checkboxes to dropdown
- Put Output Path in its own row with resolved path preview
- Strip img/<model_family> prefix from Output Path input, show full resolved path below
- Make Output Stem editable in grid item options dropdown
- Make triangle button appear on hover (white, visible)
- Add Concept to TYPE_COLORS in grid
- Remove Output Filename Stem from Add flake field dropdown (now in top section)
- Rotate bypassed bar from horizontal (-) to diagonal (/) with -30deg
- Increase bar thickness from 2px to 2.5px
- Brighten bar color from rgba(200,60,60,0.7) to rgba(230,90,90,0.85)
- Applied to both flake-stack and flake-combo grid items
Closes#129
- Add 4px inset padding to hover button overlay so buttons stay within
grid item bounds when node size increases
- Raise triangle button z-index from 2 to 4 (above hover buttons at 3)
so it remains clickable when hover buttons are visible