generated from coulomb/repo-seed
refactoring for canon conformity
This commit is contained in:
@@ -1226,7 +1226,7 @@ def graph_explorer_page() -> str:
|
||||
detailTitle.textContent = data.name || data.label || data.id;
|
||||
detailSummary.textContent = data.description || data.id;
|
||||
const nodeType = data.layer ? nodeTypeLabels[data.layer] || humanize(data.layer) : "";
|
||||
detailPills.innerHTML = [data.kind, nodeType, data.repo, data.reviewState, data.displayState]
|
||||
detailPills.innerHTML = [data.kind, nodeType, data.canonCategory || data.canonicalType, data.evidenceState, data.repo, data.reviewState, data.displayState]
|
||||
.map((value) => value ? `<span class="pill">${escapeHtml(value)}</span>` : "")
|
||||
.join("");
|
||||
const links = data.deepLinks || {};
|
||||
@@ -1236,6 +1236,10 @@ def graph_explorer_page() -> str:
|
||||
["source", data.source],
|
||||
["target", data.target],
|
||||
["edge", data.edgeType],
|
||||
["canonical", data.canonicalType || data.canonCategory],
|
||||
["evidence", data.evidenceState],
|
||||
["mapping", data.mappingFit],
|
||||
["display only", data.displayOnly === true ? "yes" : ""],
|
||||
["strength", data.strength],
|
||||
...Object.entries(links),
|
||||
...refs.map((ref) => [ref.label || ref.kind || "source", ref.path || ref.url || ref.ref || ""])
|
||||
|
||||
Reference in New Issue
Block a user