Skip to content

Commit 30add0c

Browse files
committed
refactor: zombie -> data explorer
1 parent 34f320f commit 30add0c

8 files changed

Lines changed: 14 additions & 15 deletions

File tree

web/index.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@
33
<head>
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<title>ZOMBIE — Zoomable Observatory for Multi-scale Brain Investigation and Exploration</title>
6+
<title>Data Explorer</title>
77
<link rel="stylesheet" href="/styles/app.css" />
88
</head>
99
<body>
1010
<header class="app-header">
1111
<div class="app-header-brand">
12-
<h1 class="app-title">ZOMBIE</h1>
13-
<p class="app-subtitle">Zoomable Observatory for Multi-scale Brain Investigation and Exploration</p>
12+
<h1 class="app-title">Data Explorer</h1>
1413
</div>
1514
<nav class="app-nav" aria-label="Main navigation">
1615
<a href="/" data-path="/" aria-current="page">Explorer</a>

web/src/app.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* app.js — Entry point for ZOMBIE Mosaic.
2+
* app.js — Entry point for Data Explorer.
33
*
44
* Initializes the DuckDB coordinator, fetches metadata, then hands off to the
55
* client-side router. Routes:
@@ -39,7 +39,7 @@ async function init() {
3939
// 2. Fetch squirrel.json and register metadata tables in DuckDB.
4040
const metadata = await fetchAndRegisterMetadata(coordinator(), SQUIRREL_URL);
4141

42-
console.info('[ZOMBIE] Metadata loaded. Acorns:', metadata.acorns.map((a) => a.name));
42+
console.info('[DataExplorer] Metadata loaded. Acorns:', metadata.acorns.map((a) => a.name));
4343

4444
// Clear the initial loading message before mounting views.
4545
if (loadingEl) loadingEl.remove();
@@ -86,7 +86,7 @@ async function init() {
8686
});
8787

8888
} catch (err) {
89-
console.error('[ZOMBIE] Initialisation failed:', err);
89+
console.error('[DataExplorer] Initialisation failed:', err);
9090
renderError(err);
9191
}
9292
}

web/src/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Application-wide constants for ZOMBIE Mosaic.
2+
* Application-wide constants for Data Explorer.
33
*
44
* S3 paths use the virtual-hosted HTTPS style so DuckDB-WASM httpfs can
55
* reach them without AWS credentials (public bucket, CORS enabled).

web/src/explorer/data-view.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ async function fetchTableColumns(tableName) {
226226
}));
227227
}
228228
} catch (err) {
229-
console.warn(`[ZOMBIE] DESCRIBE ${tableName} failed:`, err);
229+
console.warn(`[DataExplorer] DESCRIBE ${tableName} failed:`, err);
230230
}
231231
return null;
232232
}
@@ -255,7 +255,7 @@ async function fetchDistinctValues(tableName, colName, colType = null) {
255255
return Array.from({ length: col.length }, (_, i) => String(col.get(i)));
256256
}
257257
} catch (err) {
258-
console.warn(`[ZOMBIE] Distinct values query failed (${tableName}.${colName}):`, err);
258+
console.warn(`[DataExplorer] Distinct values query failed (${tableName}.${colName}):`, err);
259259
}
260260
return [];
261261
}

web/src/explorer/settings.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ export function initSettings(coord, metadata) {
579579
await registerAcornTable(coord, state.acorn, { subjectIds });
580580
fireTableRegistered(state.acorn.name);
581581
} catch (err) {
582-
console.error(`[ZOMBIE] Failed to re-register "${state.acorn.name}":`, err);
582+
console.error(`[DataExplorer] Failed to re-register "${state.acorn.name}":`, err);
583583
fireTableFailed(state.acorn.name);
584584
}
585585
}
@@ -643,7 +643,7 @@ export function initSettings(coord, metadata) {
643643
fireTableRegistered(acorn.name);
644644
})
645645
.catch((err) => {
646-
console.error(`[ZOMBIE] Failed to register table "${acorn.name}":`, err);
646+
console.error(`[DataExplorer] Failed to register table "${acorn.name}":`, err);
647647
checkbox.checked = false;
648648
dataTypeState.get(acorn.name).enabled = false;
649649
fireTableFailed(acorn.name);
@@ -661,7 +661,7 @@ export function initSettings(coord, metadata) {
661661
state.enabled = true;
662662
fireTableRegistered(acorn.name);
663663
} catch (err) {
664-
console.error(`[ZOMBIE] Failed to register table "${acorn.name}":`, err);
664+
console.error(`[DataExplorer] Failed to register table "${acorn.name}":`, err);
665665
checkbox.checked = false;
666666
state.enabled = false;
667667
fireTableFailed(acorn.name);

web/src/lib/metadata.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ export async function fetchSubjectIdsForQuery(coordinator, queryFilter) {
295295
if (!col) return null;
296296
return Array.from({ length: col.length }, (_, i) => String(col.get(i)));
297297
} catch (err) {
298-
console.warn('[ZOMBIE] fetchSubjectIdsForQuery failed:', err);
298+
console.warn('[DataExplorer] fetchSubjectIdsForQuery failed:', err);
299299
return null;
300300
}
301301
}

web/src/router.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* router.js — Lightweight client-side router for ZOMBIE.
2+
* router.js — Lightweight client-side router.
33
*
44
* Matches window.location.pathname to a map of { '/path': renderFunction }.
55
* Unrecognised paths fall back to '/'.

web/styles/app.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* app.css — ZOMBIE Mosaic application styles.
2+
* app.css — Data Explorer application styles.
33
*
44
* Palette ported from src/zombie/layout.py AIND_COLORS.
55
* Background: AIND dark blue (#003057) + repeating SVG pattern (aind-pattern.svg).

0 commit comments

Comments
 (0)