Add custom SVG favicons, Gitea issue links and templates, and API triage script
Build and Publish Docker Image / test-and-publish (push) Successful in 2m29s

This commit is contained in:
FaroeGames committed 2026-11-17 16:18:59 -07:00
1 parent c476e5c816
commit 6ce92b290c
17 files changed
+263 -1

No files matched your search

+18
View File
@@ -43,6 +43,16 @@ test('Unified hub server serves landing page, trailing-slash redirects, both sub
const hubHtml = await hubRes.text();
assert.ok(hubHtml.includes('href="./oras/"'));
assert.ok(hubHtml.includes('href="./luminescent-platinum/"'));
assert.ok(hubHtml.includes('href="./assets/favicon.svg"'));
assert.ok(hubHtml.includes('https://git.trevorstocks.ca/FaroeGames/oaktracker/issues'));
for (const iconPath of ['/assets/favicon.svg', '/oras/favicon.svg', '/luminescent-platinum/favicon.svg']) {
const iconRes = await fetch(`http://127.0.0.1:${port}${iconPath}`);
assert.equal(iconRes.status, 200);
assert.match(iconRes.headers.get('content-type') || '', /image\/svg\+xml/);
const svgBody = await iconRes.text();
assert.ok(svgBody.includes('<svg'));
}
const cssRes = await fetch(`http://127.0.0.1:${port}/assets/landing.css`);
assert.equal(cssRes.status, 200);
@@ -148,12 +158,14 @@ test('Both trackers expose a relative Hub navigation link and valid Docker/Nginx
const orasProg = computeOrasProgress(orasGame, orasStore.getState().caught, orasStore.getState().ruleset);
const orasHdr = renderOrasHeader(orasGame, orasStore.getState(), orasProg);
assert.ok(orasHdr.includes('href="../"'));
assert.ok(orasHdr.includes('https://git.trevorstocks.ca/FaroeGames/oaktracker/issues'));
const lumiStore = createLumiStore({ storage: makeMemoryStorage() });
const lumiGame = getLumiGame();
const lumiProg = computeLumiProgress(lumiGame, lumiStore.getState().caught, lumiStore.getState().ruleset);
const lumiHdr = renderLumiHeader(lumiGame, lumiStore.getState(), lumiProg);
assert.ok(lumiHdr.includes('href="../"'));
assert.ok(lumiHdr.includes('https://git.trevorstocks.ca/FaroeGames/oaktracker/issues'));
const dockerfile = await fs.readFile(path.join(ROOT_DIR, 'Dockerfile'), 'utf8');
for (const match of dockerfile.matchAll(/^COPY\s+(\S+)\s+/gm)) {
@@ -176,4 +188,10 @@ test('Both trackers expose a relative Hub navigation link and valid Docker/Nginx
const updateScript = await fs.readFile(path.join(ROOT_DIR, 'scripts/unraid-git-update.sh'), 'utf8');
assert.ok(updateScript.includes('docker compose up -d --build'));
const giteaCheckScript = await fs.readFile(path.join(ROOT_DIR, 'scripts/check-gitea.mjs'), 'utf8');
assert.ok(giteaCheckScript.includes('api/v1/repos'));
const bugTpl = await fs.readFile(path.join(ROOT_DIR, '.gitea/ISSUE_TEMPLATE/bug_report.md'), 'utf8');
assert.ok(bugTpl.includes('Bug Report'));
});