refactor admin navigation; update links to ingest pages and improve loading of data in parallel

This commit is contained in:
ImBenji
2026-04-24 00:08:52 +01:00
parent 16cd61fdf5
commit fc7ea464b3
17 changed files with 292 additions and 67 deletions
+4
View File
@@ -47,6 +47,8 @@ async function loadIntelCompanies() {
if (!sel) return;
const companies = await api("/admin/api/intelligence/companies");
const current = queryGet("company_id"); // preserve selection if url set it
sel.innerHTML = '<option value="">All companies</option>';
companies.forEach(c => {
const opt = document.createElement("option");
@@ -54,6 +56,8 @@ async function loadIntelCompanies() {
opt.textContent = `${c.name} (${c.ticker})`;
sel.appendChild(opt);
});
if (current) sel.value = current;
}