Compare commits

...
5 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
FaroeGames c476e5c816 Add UI screenshots to docs/screenshots and embed in README showcase
Build and Publish Docker Image / test-and-publish (push) Successful in 6m14s
2026-11-17 16:10:36 -07:00
FaroeGames 488bf34e8e Rewrite READMEs as public showcase documentation with screenshot section 2026-11-17 16:07:04 -07:00
FaroeGames f3fde4ddba Remove harmless duplicate webp MIME entry from nginx.conf 2026-11-17 15:56:05 -07:00
27 changed files with 345 additions and 69 deletions

No files matched your search

+2
View File
@@ -3,6 +3,8 @@
node_modules
**/tests
*.xlsx
docs
scripts
README.md
**/README.md
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 assets/ /usr/share/nginx/html/assets/
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 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/
EXPOSE 28473
+78 -65
View File
@@ -1,88 +1,101 @@
# Professor Oak Challenge Trackers
Unified web portal hosting two standalone **Professor Oak Challenge** trackers under a shared landing hub:
A dark-mode **Professor Oak Challenge (POC)** web tracker hub covering multiple Pokémon games under one site. Built to make multi-section Pokédex planning fast, readable, and easy to track directly in your browser without spreadsheets.
- **`/`** — Landing hub ([index.html](./index.html)) showing live browser save summaries and launcher cards
- **`/oras/`** — Pokémon **Omega Ruby & Alpha Sapphire** tracker ([oras/](./oras/))
- **`/luminescent-platinum/`** — Pokémon **Luminescent Platinum (v2.1)** tracker ([luminescent-platinum/](./luminescent-platinum/))
All progress, save profiles, and toggles persist locally in your browser per game (`poc-tracker:v1:*` for ORAS, `lumi-poc-tracker:v1:*` for Luminescent Platinum), and each tracker has a **← Hub** link in the top header plus **Export Save / Import** JSON backups.
> **Browser-First & Private:** All progress, save profiles, and ruleset toggles are stored locally in your browser (`localStorage`), with one-click JSON backup export and import. There is no account system, database, or tracking.
---
## Local Development & Tests
## Included Trackers
Requires Node.js 20+ (no external npm packages or build step required):
### 1. Pokémon Omega Ruby & Alpha Sapphire (`/oras/`)
A full **Nintendo 3DS · Gen VI** Professor Oak Challenge tracker supporting both **Alpha Sapphire** and **Omega Ruby** in one app:
- **Version Modes & Rulesets:** Switch between **Alpha Sapphire** (`410` Solo POC Pokémon) and **Omega Ruby** (`410` Solo POC Pokémon), or toggle **Show All** (`478` total Pokémon including trade evolutions and version exclusives).
- **10 Level-Capped Checkpoints:** Enforces evolutions achievable at or below each upcoming Gym Leader / Champion level cap (`Roxanne Lv. 14` → `Steven Lv. 59` + `Post-Game / Delta Episode`).
- **Optional Secret Super Training Toggle:** Off by default—keep stone evolutions in later checkpoints via overworld/NPC stones and Dive Shards, or turn it on if you grind 510-EV Secret Super Training early.
- **Interactive Route Checklists:** Displays Pokémon sprites, elemental type pills, encounter rates, level ranges, evolution item icons, mutually exclusive branch locking (Starters, Fossils, Johto/Sinnoh/Unova gifts), and global **Caught** sync across every route and the Pokédex tab.
- **Route-Level Trainer & Gym Battles:** Collapsible battle drawers directly beneath each route and Gym, tracking trainer defeats and dynamically adapting Rival teams to your chosen starter.
- **Gen VI Pokédex, Stats & Movedex:** Sortable Pokédex table with `BST` / Base Stats, plus a detail inspector showing **Gen VI Base Stats**, **Abilities**, Regular & Shiny ORAS sprites, evolution family, all encounter locations, a searchable **ORAS Movedex** (`Level-Up`, `TM/HM`, `Tutor`, `Egg`, `All`), and external links (`Serebii`, `Bulbapedia`, `Pokémon Database`, `Smogon`).
### 2. Pokémon Luminescent Platinum v2.1 (`/luminescent-platinum/`)
A dedicated tracker tailored to the **Nintendo Switch · BDSP Mod (Luminescent Platinum v2.1)** Pokédex and mechanics:
- **Complete v2.1 Pokédex (`547` + Optional `+3` Special Forms):** Tracks every catch and evolution across **10 Boss Level-Cap Sections** (`Roark Lv. 16` → `Gardenia Lv. 26` → `Fantina Lv. 33` → `Maylene Lv. 39` → `Wake Lv. 44` → `Byron Lv. 53` → `Candice Lv. 56` → `Volkner Lv. 62` → `Cynthia Lv. 78` → `Post-Game Lv. 100`), with an optional **Special Forms (+3)** toggle for Crystal Onix, Stitched Gengar, and Spiky-Eared Pichu (`550`).
- **Live Incense Burner Slot Simulator:** Toggle **Incense Burner** right from the header, section banner, or next to `Any Incense` spawns to activate regional encounters (`Any Incense` / `Any Incense Surf`) and see real-time overwritten spawn rates (`20%` Grass slots 4–5 pushing displaced Pokémon into `1%` slots 10–11, and `30%` Surf slot 1 overrides marked **`Replaced by Incense`**).
- **Accurate Chronological Progression:** Includes the **Route 201 Initial Starter Picker**, **Jubilife Trainer School 1-of-18 Mystery Egg Picker** (tracks early bonus picks without locking the remaining 17 babies out of later routes), chronological **Old Rod** backtracks after visiting the Jubilife–Route 218 Gatehouse, and separate backtrack cards for Good Rod, Honey Trees, Surf, and Super Rod.
- **Route Trainers & `[Team 1–4]` Boss Variants:** Collapsible battle cards covering regular trainers, Rivals (`Barry`, `Dawn`, `Lucas`, `Cedric`), Team Galactic raids, Johto Time Portals, Type Masters, and randomized `[Team 1–4]` boss lineups with variant filtering.
- **Luminescent Base Stats & Movedex:** Sortable Pokédex plus full inspector modal with Luminescent v2.1 stats, custom abilities, Regular & Shiny sprites, full learnsets, and external Pokédex links.
---
## Core Site Features
- **Unified Hub Landing Page (`/`):** Launch either tracker cleanly from [index.html](./index.html), with live client-side detection showing your saved profile progress on each game card and a **`← Hub`** navigation button in every tracker header.
- **Independent Multi-Save Profiles:** Run multiple challenge playthroughs per game (Create, Rename, Delete, Reset, Export Save, Import JSON backup).
- **Zero-Dependency Stack:** Built with plain HTML, CSS, and Vanilla ES Modules—no frontend bundler, framework runtime, or third-party npm packages required.
---
## Project Layout
```text
.
├── index.html # Landing hub page (/)
├── assets/ # Hub styles & save-badge preview script
├── oras/ # Alpha Sapphire & Omega Ruby tracker (/oras/)
├── luminescent-platinum/ # Luminescent Platinum v2.1 tracker (/luminescent-platinum/)
├── tests/ # Hub server & packaging tests
├── docker/nginx.conf # Nginx static server configuration
├── Dockerfile # Lightweight Nginx container build
├── docker-compose.yml # Container deployment definition
└── server.mjs # Local Node.js static server
```
---
## Screenshots
### Unified Tracker Hub (`/`)
![Professor Oak Challenge Trackers Hub](./docs/screenshots/hub.jpg)
### Omega Ruby & Alpha Sapphire — Route Checklist (`/oras/`)
![ORAS Route Checklist with Exclusive Starter Locking and Sprites](./docs/screenshots/oras-checklist.jpg)
### Luminescent Platinum v2.1 — Live Incense Burner Slot Overrides (`/luminescent-platinum/`)
![Luminescent Platinum Checklist with Inline Incense Burner Rate Overrides](./docs/screenshots/luminescent-incense.jpg)
### Pokédex View & Pokémon Detail / Movedex Modal
![Luminescent Platinum Pokédex View](./docs/screenshots/luminescent-pokedex.jpg)
![Pokémon Inspector Modal with Base Stats, Abilities, Evolution Family, and Movedex](./docs/screenshots/pokedex-modal.jpg)
---
## Running Locally or with Docker
Requires **Node.js 20+** for local development/testing:
```bash
# Run unified site + ORAS + Luminescent Platinum test suites
# Run all test suites (Hub + ORAS + Luminescent Platinum)
npm test
# Serve unified site at http://127.0.0.1:4173
# Start unified local server on http://127.0.0.1:4173
npm start
```
---
## Uploading to Gitea (`git.trevorstocks.ca`)
This folder is already initialized with Git and ready to push once you create an empty repository on Gitea:
Or run as a self-contained static container (`nginx:1.27-alpine`, serving on port `28473`):
```bash
git remote add origin https://git.trevorstocks.ca/<your-username>/<repo-name>.git
git push -u origin main
```
---
## Hosting in a Standalone Docker Container on Unraid
The repository includes a lightweight `nginx:1.27-alpine` [Dockerfile](./Dockerfile), [docker/nginx.conf](./docker/nginx.conf), and [docker-compose.yml](./docker-compose.yml) configured cleanly for reverse proxies (`absolute_redirect off`, `.mjs`/`.webp` MIME types, trailing-slash redirects, `/health` probe, running on uncommon high port `28473`).
### Option A — Build Directly on Unraid (`docker compose`)
SSH into your Unraid server (e.g., into `/mnt/user/appdata/professor-oak-tracker`):
```bash
git clone https://git.trevorstocks.ca/<your-username>/<repo-name>.git /mnt/user/appdata/professor-oak-tracker
cd /mnt/user/appdata/professor-oak-tracker
docker compose up -d --build
```
To update later after pushing changes to Gitea:
```bash
cd /mnt/user/appdata/professor-oak-tracker
git pull
docker compose up -d --build
```
### Option B — Reverse Proxy / Subdomain Setup (Nginx Proxy Manager / SWAG)
- **Default Compose port:** `28473` on Unraid → container port `28473` (avoids `80`, `443`, `8080`, `8088`)
- **Nginx Proxy Manager / SWAG target:**
- Scheme: `http` (Nginx Proxy Manager handles HTTPS/SSL termination for your subdomain)
- Forward Hostname / IP: your Unraid IP (or `professor-oak-tracker` if both containers share a custom Docker bridge network like `proxynet`)
- Forward Port: `28473`
Behind a reverse proxy, point your host/subdomain to container port `28473` over `http` (`absolute_redirect off` is already enabled in [docker/nginx.conf](./docker/nginx.conf)).
---
## Automatic Updates on Unraid (Instead of Manual `git pull`)
## Data Sources & Credits
Unraid's Docker dashboard **"apply update"** badge only checks **remote Docker registries**—containers built locally with `docker compose up -d --build` will show updates as `not available`. Choose either approach below:
### Way 1 — Unraid Dashboard **"apply update"** Button (via Gitea Container Registry)
1. In Gitea (`git.trevorstocks.ca`), make sure **Packages** and **Actions** (with a Docker-capable runner) are enabled.
2. Generate a Personal Access Token (**Profile → Settings → Applications → Generate New Token**) with **`package` (`write:package`, `read:package`)** permission, then add it to your repository (**Settings → Actions → Secrets**) as **`REGISTRY_TOKEN`** *(Gitea's built-in `GITEA_TOKEN` usually lacks Container Registry write permission)*.
3. Push to `main`: [`.gitea/workflows/docker-publish.yml`](./.gitea/workflows/docker-publish.yml) runs `npm test` and pushes `git.trevorstocks.ca/faroegames/oaktracker:latest`.
3. In Gitea's **Packages** tab for `oaktracker`, set the container package visibility to **Public** (or run `docker login git.trevorstocks.ca` once in the Unraid terminal if keeping it private—note Unraid's automatic UI update checker works most reliably with public HTTPS packages; private custom registries may require clicking **Force Update** or using Watchtower).
4. On Unraid, add the container in **Docker → Add Container** (rather than Compose) with:
- **Name:** `professor-oak-tracker`
- **Repository:** `git.trevorstocks.ca/faroegames/oaktracker:latest`
- **Port:** Container `28473` → Host `28473`
- Now Unraid detects new pushes in its Docker tab (or Watchtower can auto-update it).
### Way 2 — Hands-Free Auto-Rebuild via Unraid **User Scripts** (Zero Gitea Runner Needed)
If you don't run a Gitea Actions Runner, keep building locally with `docker compose` and add [`scripts/unraid-git-update.sh`](./scripts/unraid-git-update.sh) to Unraid's **User Scripts** plugin on a schedule (e.g., `*/15 * * * *`). It checks `git fetch origin main` and only rebuilds/restarts when a new commit is pushed to `git.trevorstocks.ca`.
- **Team Luminescent:** Pokémon Luminescent Platinum v2.0/v2.1 Pokédex data, encounter tables, trainer teams, move learnsets, and sprites.
- **Serebii.net:** Pokémon ORAS Pokéarth encounter data and Gen VI `pokedex-xy` base stats & abilities.
- **PokeAPI:** Gen VI Pokémon/item sprites and ORAS learnset tables.
+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;
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);
}
-1
View File
@@ -12,7 +12,6 @@ server {
include /etc/nginx/mime.types;
types {
application/javascript mjs;
image/webp webp;
}
gzip on;
Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 133 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

+15
View File
@@ -4,6 +4,7 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Professor Oak Challenge Trackers</title>
<link rel="icon" type="image/svg+xml" href="./assets/favicon.svg" />
<link rel="stylesheet" href="./assets/landing.css" />
</head>
<body>
@@ -114,6 +115,20 @@
<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.
</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>
</main>
+2 -1
View File
@@ -8,7 +8,8 @@ Standalone interactive web tracker for **Pokémon Luminescent Platinum v2.1**, m
- **Complete 547 Excel Pokédex (+ Optional 3 Special Forms = 550)**:
- All 105 Sinnoh routes/areas from the workbook with `Morning`, `Day`, `Night`, `Poké Radar`, `Honey Tree`, `Any Incense`, `Any Incense Surf`, `Surf`, `Old/Good/Super Rod`, `Gift`, `Gift Egg`, `Trade`, `Static`, and `Quest` tables.
- Pre-Badge evolution checklists obey each upcoming Gym Leader's level cap, Luminescent's Lv. 36 trade-evo replacements, held-item stone conversions, Moss Rock / Magnetic Field / Ice Rock / Move Reminder gates, and Solaceon Nursery `Manaphy + Ditto → Phione` breeding.
- **Jubilife Gift Egg (Only 1)** lets you pick 1 early baby bonus without locking the remaining 17 babies out of later wild/gift routes.
- **Jubilife Gift Egg (Only 1)** lets you pick 1 early baby bonus without locking the remaining 17 babies out of later wild/gift routes, and **Route 201** includes an interactive initial **Starter** picker synced to your Rival teams.
- **Incense Burner Toggle** (available in the header, section banners, and inline next to Incense spawns) switches regional spawns ON/OFF and highlights real-time Grass & Surf slot rate overrides.
- **Special Forms (+3)** optional header toggle counts `Crystal Onix`, `Stitched Gengar`, and `Spiky-Eared Pichu` cleanly alongside the base 547 Pokédex.
- **Collapsible Route-Level Trainer & Boss Battles**: Includes regular route trainers, rivals (`Barry`, `Dawn`, `Lucas`, `Cedric`), Team Galactic commanders & HQ, `[Team 1–4]` randomized Gym Leader / Elite Four / Cynthia rosters with team-variant switcher pills, Johto Time Portals, Type Masters, and held items / abilities / natures / moves.
- **Global Caught Sync, Save Profiles & Movedex**:
+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 name="viewport" content="width=device-width, initial-scale=1.0" />
<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" />
</head>
<body>
+7
View File
@@ -73,6 +73,13 @@ export function renderHeader(game, state, progress, profilesWithCounts = null) {
<div class="brand-block">
<div class="brand-badges">
<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">
${versionPills}
</div>
+1 -1
View File
@@ -10,7 +10,7 @@ A dark-mode web application modeled on the **Luminescent 2.1 Professor Oak Track
- **10 Level-Capped Badge Checkpoints:** Tracks every section from **Pre-Badge 1 (Roxanne · Lv. 14)** through **Pre-Elite Four (Champion Steven · Lv. 59)** and **Post-Game**, scheduling evolutions at the earliest checkpoint whose upcoming Gym Leader / Champion level cap allows them (`≤ Lv. 14`, `16`, `21`, `28`, `30`, `35`, `45`, `46`, `59`, `79`). Includes an optional **Secret Super Training** toggle (off by default) if you prefer skipping 510-EV minigames and waiting for overworld / NPC / Dive Shard stones.
- **Route-Level Collapsible Trainer & Gym Cards:** Expand regular route trainers, Gyms, Rival lineups (adapting to your chosen starter), Team Aqua/Magma raids, Victory Road, Pokémon League, and Delta Episode battles directly under the route header where they take place, with defeated checkboxes.
- **Mutually Exclusive Choices:** All Hoenn starters, Route 111 fossils, and post-game starter gifts appear directly in the checklist—checking one option automatically locks out the alternatives in Strict Solo mode (and unchecking it unlocks them again). Switch **Strict Solo Cartridge / Show All** in the toolbar to view trade evolutions and opposite-version exclusives too.
- **Sortable & Searchable Pokédex, ORAS Movedex, External Guides & Sprites:** Sort by `Hoenn #`, `Nat #`, `Name`, `Caught`, `Earliest Milestone`, or `Evolution Method`. Every Pokédex row includes an arrow popup menu linking straight to **Serebii (Gen 6)**, **Bulbapedia**, **Pokémon Database**, and **Smogon**. Clicking any Pokémon opens its Regular & Shiny ORAS sprites, evolution family with evolution item icons, all route locations, and a searchable **ORAS Movedex** (Level-Up, TM/HM, Move Tutor, and Egg moves).
- **Sortable & Searchable Pokédex, Gen VI Stats, ORAS Movedex, External Guides & Sprites:** Route checklists display mini sprites and elemental type badges, while the Pokédex table sorts by `Hoenn #`, `Nat #`, `Name`, `Caught`, `Earliest Milestone`, `Base Stats (BST)`, or `Evolution Method`. Every Pokédex row includes an arrow popup menu linking straight to **Serebii (Gen 6)**, **Bulbapedia**, **Pokémon Database**, and **Smogon**. Clicking any Pokémon opens its Regular & Shiny ORAS sprites, **Gen VI Base Stats & Abilities**, evolution family with evolution item icons, all route locations, and a searchable **ORAS Movedex** (Level-Up, TM/HM, Move Tutor, and Egg moves).
- **Zero-Dependency & Offline-Ready:** Built with standard ES modules, CSS, and Node.js built-ins—no npm install required. Sprites and item icons load from [PokeAPI/sprites](https://github.com/PokeAPI/sprites), or automatically from `assets/sprites/` if you download the `sprites/` folder locally. Progress auto-saves to `localStorage` and supports JSON export/import backups.
## Running Locally
+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 name="viewport" content="width=device-width, initial-scale=1.0" />
<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" />
</head>
<body>
+7
View File
@@ -68,6 +68,13 @@ export function renderHeader(game, state, progress, profilesWithCounts = null) {
<div class="brand-block">
<div class="brand-badges">
<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">
${versionPills}
</div>
+2 -1
View File
@@ -6,7 +6,8 @@
"type": "module",
"scripts": {
"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": {
"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();
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'));
});