mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-08-29 17:01:26 -03:00
fix(recipes): distinguish unobtainable LoRAs in recipe status and skip them in syntax
The recipe card pill counted LoRAs deleted from the source (isDeleted) as available, showing a green 'ready 2/2' for recipes that cannot be fully reproduced. LoRAs with an unresolvable hash (hashInvalid) were counted as missing/downloadable even though downloads always fail, and recipe syntax generation emitted broken tokens for them. - Four-state status on RecipeCard pill and RecipeTab badge: ready (all in library), missing (downloadable, red, keeps the action cue), partial (unobtainable entries skipped when used, amber, fa-circle-minus), unavailable (nothing usable, gray, fa-ban) - Pill numerator is now the real in-library count; tooltips spell out missing vs unavailable (deleted from source or unresolvable hash) - get_recipe_syntax_tokens skips hashInvalid entries like deleted ones instead of emitting tokens pointing at nonexistent files - Bulk missing-download manager and recipe context menu exclude hashInvalid LoRAs, matching the modal's per-item download block - New locale keys loraStatus.missingAndUnavailable/partial/noneUsable, translated for all 9 non-en locales
This commit is contained in:
@@ -699,6 +699,20 @@ body.hide-card-version .hl-badge {
|
||||
border-color: rgba(231, 76, 60, 0.65);
|
||||
}
|
||||
|
||||
/* Partial: usable but degraded — some LoRAs are unobtainable (deleted from
|
||||
the source or unresolvable hash) and are skipped when the recipe is used.
|
||||
Amber sits between ready green and missing red. */
|
||||
.lora-count.partial {
|
||||
background: rgba(243, 156, 18, 0.35);
|
||||
border-color: rgba(243, 156, 18, 0.65);
|
||||
}
|
||||
|
||||
/* Unavailable: no usable LoRA at all — gray marks the recipe as dead. */
|
||||
.lora-count.unavailable {
|
||||
background: rgba(149, 165, 166, 0.35);
|
||||
border-color: rgba(149, 165, 166, 0.65);
|
||||
}
|
||||
|
||||
.placeholder-message {
|
||||
grid-column: 1 / -1;
|
||||
text-align: center;
|
||||
|
||||
Reference in New Issue
Block a user