Compare commits

...
2 Commits
Author SHA1 Message Date
FaroeGames 708bf6b58c Remove source Excel workbook now that tracker data is extracted
Build and Publish Docker Image / test-and-publish (push) Successful in 1m16s
2026-11-17 16:21:38 -07:00
FaroeGames 6ce92b290c 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
2026-11-17 16:18:59 -07:00
18 changed files with 263 additions and 1 deletions

No files matched your search

+1
View File
@@ -4,6 +4,7 @@ node_modules
**/tests **/tests
*.xlsx *.xlsx
docs docs
scripts
README.md README.md
**/README.md **/README.md
package.json package.json
+24
View File
@@ -0,0 +1,24 @@
---
name: 🐛 Bug Report
about: Report a UI bug, broken link, save issue, or unexpected behavior
title: "[Bug] "
labels:
- bug
---
### Which tracker page?
- [ ] Unified Hub (`/`)
- [ ] Omega Ruby & Alpha Sapphire (`/oras/`)
- [ ] Luminescent Platinum v2.1 (`/luminescent-platinum/`)
### What happened?
<!-- Describe clearly what happened and what you expected instead. -->
### Steps to reproduce
1. Go to '...'
2. Click / toggle '...'
3. See error
### Browser & Device
- Browser: [e.g. Chrome, Edge, Safari, Firefox]
- Device: [e.g. Windows PC, iPhone, Android]
+21
View File
@@ -0,0 +1,21 @@
---
name: 📊 Pokédex / Encounter Data Correction
about: Report a wrong spawn rate, level range, trainer team, move, or evolution gate
title: "[Data] "
labels:
- data
---
### Which tracker & version?
- [ ] Alpha Sapphire / Omega Ruby
- [ ] Luminescent Platinum v2.1
### Location / Section / Pokémon
- **Badge Section:** [e.g. Pre-Badge 1]
- **Route / Area:** [e.g. Route 116 / Route 201]
- **Pokémon / Trainer:** [e.g. Abra / Rival Barry]
### Current vs. Expected Data
- **Currently shown in tracker:**
- **Correct in-game value:**
- **Source / Verification (Serebii, Team Luminescent Docs, in-game check):**
+13
View File
@@ -0,0 +1,13 @@
---
name: 💡 Feature or New Game Request
about: Suggest an improvement, quality-of-life toggle, or another Pokémon game tracker
title: "[Feature] "
labels:
- enhancement
---
### Summary
<!-- Describe the feature or new game you'd like to see added. -->
### Details / Notes
<!-- Any helpful details, spreadsheets, or challenge ruleset preferences. -->
Binary file not shown.
+2
View File
@@ -5,8 +5,10 @@ COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
COPY index.html /usr/share/nginx/html/index.html COPY index.html /usr/share/nginx/html/index.html
COPY assets/ /usr/share/nginx/html/assets/ COPY assets/ /usr/share/nginx/html/assets/
COPY oras/index.html /usr/share/nginx/html/oras/index.html COPY oras/index.html /usr/share/nginx/html/oras/index.html
COPY oras/favicon.svg /usr/share/nginx/html/oras/favicon.svg
COPY oras/src/ /usr/share/nginx/html/oras/src/ COPY oras/src/ /usr/share/nginx/html/oras/src/
COPY luminescent-platinum/index.html /usr/share/nginx/html/luminescent-platinum/index.html COPY luminescent-platinum/index.html /usr/share/nginx/html/luminescent-platinum/index.html
COPY luminescent-platinum/favicon.svg /usr/share/nginx/html/luminescent-platinum/favicon.svg
COPY luminescent-platinum/src/ /usr/share/nginx/html/luminescent-platinum/src/ COPY luminescent-platinum/src/ /usr/share/nginx/html/luminescent-platinum/src/
EXPOSE 28473 EXPOSE 28473
+13
View File
@@ -0,0 +1,13 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
<defs>
<linearGradient id="hub-top" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#34d399" />
<stop offset="100%" stop-color="#38bdf8" />
</linearGradient>
</defs>
<circle cx="32" cy="32" r="29" fill="#f4f4f6" stroke="#0c0c10" stroke-width="5" />
<path d="M5.5 32 A26.5 26.5 0 0 1 58.5 32 Z" fill="url(#hub-top)" />
<rect x="3" y="28.5" width="58" height="7" fill="#0c0c10" />
<circle cx="32" cy="32" r="10.5" fill="#f4f4f6" stroke="#0c0c10" stroke-width="4.5" />
<circle cx="32" cy="32" r="4.5" fill="#34d399" />
</svg>

After

Width:  |  Height:  |  Size: 629 B

+33
View File
@@ -255,3 +255,36 @@ body {
border-radius: 4px; border-radius: 4px;
color: #e5e7eb; color: #e5e7eb;
} }
.hub-footer-links {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 10px;
margin-top: 12px;
}
.hub-ext-link {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 5px 12px;
border-radius: 999px;
background: var(--bg-elevated);
border: 1px solid var(--border);
color: var(--text-main);
font-size: 12px;
font-weight: 700;
text-decoration: none;
transition: border-color 0.15s ease, color 0.15s ease;
}
.hub-ext-link:hover {
border-color: rgba(56, 189, 248, 0.55);
color: #7dd3fc;
}
.hub-ext-issue:hover {
border-color: rgba(52, 211, 153, 0.55);
color: var(--mint);
}
+15
View File
@@ -4,6 +4,7 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Professor Oak Challenge Trackers</title> <title>Professor Oak Challenge Trackers</title>
<link rel="icon" type="image/svg+xml" href="./assets/favicon.svg" />
<link rel="stylesheet" href="./assets/landing.css" /> <link rel="stylesheet" href="./assets/landing.css" />
</head> </head>
<body> <body>
@@ -114,6 +115,20 @@
<p> <p>
Progress saves locally in your browser per game (<code>poc-tracker:v1</code> for ORAS, <code>lumi-poc-tracker:v1</code> for Luminescent Platinum). If moving from a local port to a new domain, use <strong>Export Save → Import</strong> inside each tracker. Progress saves locally in your browser per game (<code>poc-tracker:v1</code> for ORAS, <code>lumi-poc-tracker:v1</code> for Luminescent Platinum). If moving from a local port to a new domain, use <strong>Export Save → Import</strong> inside each tracker.
</p> </p>
<div class="hub-footer-links">
<a
class="hub-ext-link"
href="https://git.trevorstocks.ca/FaroeGames/oaktracker"
target="_blank"
rel="noopener noreferrer"
>Source on Gitea ↗</a>
<a
class="hub-ext-link hub-ext-issue"
href="https://git.trevorstocks.ca/FaroeGames/oaktracker/issues"
target="_blank"
rel="noopener noreferrer"
>Report Bug / Data Issue ↗</a>
</div>
</footer> </footer>
</main> </main>
+14
View File
@@ -0,0 +1,14 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
<defs>
<linearGradient id="lumi-top" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#bae6fd" />
<stop offset="55%" stop-color="#38bdf8" />
<stop offset="100%" stop-color="#0284c7" />
</linearGradient>
</defs>
<circle cx="32" cy="32" r="29" fill="#e2e8f0" stroke="#0c0c10" stroke-width="5" />
<path d="M5.5 32 A26.5 26.5 0 0 1 58.5 32 Z" fill="url(#lumi-top)" />
<rect x="3" y="28.5" width="58" height="7" fill="#0c0c10" />
<circle cx="32" cy="32" r="10.5" fill="#f8fafc" stroke="#0c0c10" stroke-width="4.5" />
<polygon points="32,26.5 37,32 32,37.5 27,32" fill="#38bdf8" />
</svg>

After

Width:  |  Height:  |  Size: 694 B

+1
View File
@@ -4,6 +4,7 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Luminescent Platinum v2.1 — Professor Oak Challenge Tracker</title> <title>Luminescent Platinum v2.1 — Professor Oak Challenge Tracker</title>
<link rel="icon" type="image/svg+xml" href="./favicon.svg" />
<link rel="stylesheet" href="./src/styles/main.css" /> <link rel="stylesheet" href="./src/styles/main.css" />
</head> </head>
<body> <body>
+7
View File
@@ -73,6 +73,13 @@ export function renderHeader(game, state, progress, profilesWithCounts = null) {
<div class="brand-block"> <div class="brand-block">
<div class="brand-badges"> <div class="brand-badges">
<a class="hub-home-link" href="../" title="Back to Professor Oak Tracker Hub">← Hub</a> <a class="hub-home-link" href="../" title="Back to Professor Oak Tracker Hub">← Hub</a>
<a
class="hub-home-link issue-report-link"
href="https://git.trevorstocks.ca/FaroeGames/oaktracker/issues"
target="_blank"
rel="noopener noreferrer"
title="View source or report an issue on Gitea"
>Report Issue ↗</a>
<div class="version-switcher" role="group" aria-label="Game Version"> <div class="version-switcher" role="group" aria-label="Game Version">
${versionPills} ${versionPills}
</div> </div>
+20
View File
@@ -0,0 +1,20 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
<defs>
<linearGradient id="oras-left" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#60a5fa" />
<stop offset="100%" stop-color="#1d4ed8" />
</linearGradient>
<linearGradient id="oras-right" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#f87171" />
<stop offset="100%" stop-color="#b91c1c" />
</linearGradient>
</defs>
<circle cx="32" cy="32" r="29" fill="url(#oras-right)" stroke="#0c0c10" stroke-width="5" />
<path d="M32 5.5 A26.5 26.5 0 0 0 5.5 32 H32 Z" fill="url(#oras-left)" />
<path d="M32 5.5 A26.5 26.5 0 0 1 58.5 32 H32 Z" fill="url(#oras-right)" />
<path d="M5.5 32 A26.5 26.5 0 0 0 32 58.5 V32 Z" fill="#e5e7eb" />
<path d="M58.5 32 A26.5 26.5 0 0 1 32 58.5 V32 Z" fill="#f4f4f6" />
<rect x="3" y="28.5" width="58" height="7" fill="#0c0c10" />
<circle cx="32" cy="32" r="10.5" fill="#f4f4f6" stroke="#0c0c10" stroke-width="4.5" />
<path d="M32 27.5 L36.5 32 L32 36.5 L27.5 32 Z" fill="#3b82f6" />
</svg>

After

Width:  |  Height:  |  Size: 1.0 KiB

+1
View File
@@ -4,6 +4,7 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Omega Ruby &amp; Alpha Sapphire — Professor Oak Challenge Tracker</title> <title>Omega Ruby &amp; Alpha Sapphire — Professor Oak Challenge Tracker</title>
<link rel="icon" type="image/svg+xml" href="./favicon.svg" />
<link rel="stylesheet" href="./src/styles/main.css" /> <link rel="stylesheet" href="./src/styles/main.css" />
</head> </head>
<body> <body>
+7
View File
@@ -68,6 +68,13 @@ export function renderHeader(game, state, progress, profilesWithCounts = null) {
<div class="brand-block"> <div class="brand-block">
<div class="brand-badges"> <div class="brand-badges">
<a class="hub-home-link" href="../" title="Back to Professor Oak Tracker Hub">← Hub</a> <a class="hub-home-link" href="../" title="Back to Professor Oak Tracker Hub">← Hub</a>
<a
class="hub-home-link issue-report-link"
href="https://git.trevorstocks.ca/FaroeGames/oaktracker/issues"
target="_blank"
rel="noopener noreferrer"
title="View source or report an issue on Gitea"
>Report Issue ↗</a>
<div class="version-switcher" role="group" aria-label="Game Version"> <div class="version-switcher" role="group" aria-label="Game Version">
${versionPills} ${versionPills}
</div> </div>
+2 -1
View File
@@ -6,7 +6,8 @@
"type": "module", "type": "module",
"scripts": { "scripts": {
"start": "node server.mjs", "start": "node server.mjs",
"test": "node --test tests/*.test.mjs && node --test oras/tests/*.test.mjs && node --test luminescent-platinum/tests/*.test.mjs" "test": "node --test tests/*.test.mjs && node --test oras/tests/*.test.mjs && node --test luminescent-platinum/tests/*.test.mjs",
"gitea:issues": "node scripts/check-gitea.mjs"
}, },
"engines": { "engines": {
"node": ">=20.0.0" "node": ">=20.0.0"
+71
View File
@@ -0,0 +1,71 @@
#!/usr/bin/env node
/**
* Queries Gitea REST API for open issues & pull requests on FaroeGames/oaktracker.
* Usage:
* node scripts/check-gitea.mjs
* node scripts/check-gitea.mjs --issue 12
*
* For private repos, set GITEA_TOKEN in your environment before running.
*/
const GITEA_BASE = (process.env.GITEA_URL || 'https://git.trevorstocks.ca').replace(/\/+$/, '');
const REPO = process.env.GITEA_REPO || 'FaroeGames/oaktracker';
const TOKEN = process.env.GITEA_TOKEN || '';
async function apiGet(endpoint) {
const headers = { Accept: 'application/json' };
if (TOKEN) headers.Authorization = `token ${TOKEN}`;
const url = `${GITEA_BASE}/api/v1/repos/${REPO}${endpoint}`;
const res = await fetch(url, { headers });
if (!res.ok) {
throw new Error(`Gitea API ${res.status} ${res.statusText} at ${url}`);
}
return res.json();
}
const args = process.argv.slice(2);
const issueFlagIdx = args.indexOf('--issue');
try {
if (issueFlagIdx !== -1 && args[issueFlagIdx + 1]) {
const num = Number(args[issueFlagIdx + 1]);
const issue = await apiGet(`/issues/${num}`);
const comments = await apiGet(`/issues/${num}/comments`);
console.log(`#${issue.number} [${issue.state.toUpperCase()}] ${issue.title}`);
console.log(`URL: ${issue.html_url}`);
console.log(`Author: ${issue.user?.login} | Updated: ${issue.updated_at}`);
console.log('\n--- Body ---\n' + (issue.body || '(empty)'));
if (comments.length) {
console.log(`\n--- Comments (${comments.length}) ---`);
for (const c of comments) {
console.log(`\n@${c.user?.login} (${c.created_at}):\n${c.body}`);
}
}
} else {
const [issues, pulls] = await Promise.all([
apiGet('/issues?state=open&type=issues&limit=50'),
apiGet('/pulls?state=open&limit=50'),
]);
console.log(`Repository: ${GITEA_BASE}/${REPO}`);
console.log(`Open Issues: ${issues.length} | Open PRs: ${pulls.length}\n`);
if (issues.length) {
console.log('=== Open Issues ===');
for (const i of issues) {
const labels = (i.labels || []).map((l) => l.name).join(', ');
console.log(`#${i.number}${labels ? ` [${labels}]` : ''} ${i.title} (@${i.user?.login}) -> ${i.html_url}`);
}
console.log('');
}
if (pulls.length) {
console.log('=== Open Pull Requests ===');
for (const p of pulls) {
console.log(`PR #${p.number} ${p.title} (@${p.user?.login}) -> ${p.html_url}`);
}
}
}
} catch (err) {
console.error(err.message);
process.exitCode = 1;
}
+18
View File
@@ -43,6 +43,16 @@ test('Unified hub server serves landing page, trailing-slash redirects, both sub
const hubHtml = await hubRes.text(); const hubHtml = await hubRes.text();
assert.ok(hubHtml.includes('href="./oras/"')); assert.ok(hubHtml.includes('href="./oras/"'));
assert.ok(hubHtml.includes('href="./luminescent-platinum/"')); 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`); const cssRes = await fetch(`http://127.0.0.1:${port}/assets/landing.css`);
assert.equal(cssRes.status, 200); 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 orasProg = computeOrasProgress(orasGame, orasStore.getState().caught, orasStore.getState().ruleset);
const orasHdr = renderOrasHeader(orasGame, orasStore.getState(), orasProg); const orasHdr = renderOrasHeader(orasGame, orasStore.getState(), orasProg);
assert.ok(orasHdr.includes('href="../"')); assert.ok(orasHdr.includes('href="../"'));
assert.ok(orasHdr.includes('https://git.trevorstocks.ca/FaroeGames/oaktracker/issues'));
const lumiStore = createLumiStore({ storage: makeMemoryStorage() }); const lumiStore = createLumiStore({ storage: makeMemoryStorage() });
const lumiGame = getLumiGame(); const lumiGame = getLumiGame();
const lumiProg = computeLumiProgress(lumiGame, lumiStore.getState().caught, lumiStore.getState().ruleset); const lumiProg = computeLumiProgress(lumiGame, lumiStore.getState().caught, lumiStore.getState().ruleset);
const lumiHdr = renderLumiHeader(lumiGame, lumiStore.getState(), lumiProg); const lumiHdr = renderLumiHeader(lumiGame, lumiStore.getState(), lumiProg);
assert.ok(lumiHdr.includes('href="../"')); 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'); const dockerfile = await fs.readFile(path.join(ROOT_DIR, 'Dockerfile'), 'utf8');
for (const match of dockerfile.matchAll(/^COPY\s+(\S+)\s+/gm)) { 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'); const updateScript = await fs.readFile(path.join(ROOT_DIR, 'scripts/unraid-git-update.sh'), 'utf8');
assert.ok(updateScript.includes('docker compose up -d --build')); 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'));
}); });