INNER CODE UNIT · JavaScript
dsLink
rootSunc/CNEquity · frontend/src/main.js:218
function dsLink(id) {
return `<span class="ds-link" data-ds="${esc(id)}">${dsMarkup(id)}</span>`;
}
async function renderOverview() {
const [h, tiers, datasets, hm] = await Promise.all([
api("/api/health"),
api("/api/tiers"),
api("/api/datasets"),
api(`/api/heatmap?days=${DAYS}`),
]);
const sev = h.findings_by_severity || {};
const notes = [];
// The reason strings come from the ingestion layer and are English, with a
// run UUID in them. Fine in a log, wrong in the banner of a Chinese page.
// the id is not something the reader can act on. Translate the ones that can
// actually appear, keep the original as a tooltip for anyone debugging.
if (h.stats_stale) {