From 8f9597eb10b575db51001b8e072bc6a29fc00c43 Mon Sep 17 00:00:00 2001 From: Dariusz L Date: Fri, 17 Apr 2026 23:50:50 +0200 Subject: [PATCH] Show filename and expandable other matches in linker Display the expected filename in the missing-item title and enable wrapping for node/category chips. Remove the duplicated filename row and make the "other matches below 100%" note expandable: clicking it toggles a hidden list of alternative matches. Each alternative now shows a confidence badge, truncated filename/path with tooltip, and a Link button that triggers the existing resolve action. These changes improve readability and UX when many matches are present. --- web/linker.js | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/web/linker.js b/web/linker.js index 115ce71..139ff04 100644 --- a/web/linker.js +++ b/web/linker.js @@ -1045,16 +1045,21 @@ class LinkerManagerDialog extends ComfyDialog { const versionLabel = modelUrl ? `${civitaiLabel}` : `${civitaiLabel}`; titleHtml += ` ${versionLabel}`; } + // Add filename in quotes + if (missing.civitai_info.expected_filename) { + titleHtml += ` "${missing.civitai_info.expected_filename}"`; + } } else if (missing.civitai_info && missing.civitai_info.model_name) { titleHtml += ` (${missing.civitai_info.model_name})`; } html += `

${titleHtml}

`; - html += `
`; + html += `
`; if (missing.category) { html += `${missing.category}`; } html += `${nodeLabel} #${missing.node_id}`; html += `
`; + // Removed - filename is already shown in title html += `
`; // Two-column layout @@ -1093,9 +1098,21 @@ class LinkerManagerDialog extends ComfyDialog { html += ``; } - // Add note if only showing 100% matches + // Add note if only showing 100% matches - make it expandable if (perfectMatches.length > 0 && otherMatches.length > 0) { - html += `
${otherMatches.length} other match${otherMatches.length > 1 ? 'es' : ''} below 100%
`; + const matchId = `more-matches-${missing.node_id}-${missing.widget_index}`; + html += `
${otherMatches.length} other match${otherMatches.length > 1 ? 'es' : ''} below 100%
`; + // Hidden container with other matches + html += ``; } } else if (allMatches.length > 0 && filteredMatches.length === 0) { html += `
No matches above 70% confidence
`;