feat(search): side preview panel for mirror search + strip stray NUL byte
Publish to Comfy registry / Publish Custom Node to registry (push) Has been cancelled
Publish to Comfy registry / Publish Custom Node to registry (push) Has been cancelled
Splits the palette into results (left) + a preview panel (right) that updates on hover / arrow-key navigation, modern-search style. Since disabled-pack nodes have no loaded definition (can't render a real node graphic), the panel shows the pack metadata we do have: title, author, description, repo link, version, and the sibling nodes in the pack (active node highlighted). Enable 7d / Enable available in both the row and the panel. buildDisabledCatalog now attaches a shared per-pack meta object (from getmappings entry[1]) to each catalog entry. Also removes a literal NUL byte that had slipped into the dedup separator string, which made grep treat the file as binary; replaced with a newline. Bump to 1.5.0.
This commit is contained in:
+95
-8
@@ -546,19 +546,36 @@ function buildDisabledCatalog(mappings, managerInfo) {
|
||||
}
|
||||
const catalog = [];
|
||||
const seen = new Set();
|
||||
const packMeta = {}; // dir -> shared { pack, title, author, description, repo, version, info, nodes:[] }
|
||||
for (const [packKey, entry] of Object.entries(mappings || {})) {
|
||||
const rec = byAnyKey[normalizeRepoUrl(packKey)];
|
||||
if (!rec || rec.info.state !== "disabled") continue;
|
||||
const list = entry && entry[0];
|
||||
if (!Array.isArray(list)) continue;
|
||||
const title = rec.info.title || rec.dir;
|
||||
const m = (entry && entry[1]) || {};
|
||||
let meta = packMeta[rec.dir];
|
||||
if (!meta) {
|
||||
const repo = (rec.info.files || []).find((f) => /^https?:\/\//i.test(f)) || "";
|
||||
meta = packMeta[rec.dir] = {
|
||||
pack: rec.dir,
|
||||
title: m.title || m.title_aux || rec.info.title || rec.dir,
|
||||
author: m.author || "",
|
||||
description: m.description || "",
|
||||
repo,
|
||||
version: rec.info.version || "",
|
||||
info: rec.info,
|
||||
nodes: [],
|
||||
};
|
||||
}
|
||||
for (const ct of list) {
|
||||
const dedup = rec.dir + " | ||||