[feat]: New status page - #2194
Open
FalconChipp wants to merge 4 commits into
Open
Conversation
Add Dockerfile.en-ja and docker-compose.en-ja.yml for en/ja builds. Make compiler honor COMPILE_LANGS env var. Add status accessors to providers (getCardMarketStatus, getTCGPlayerStatus). Completely refactor server/src/status.ts to load generated stats from disk, compute pricing/sets/cards data, expose /status/data, /status/data/sets/:setId and /status/github.svg endpoints, and serve a modern interactive HTML status UI with per-set drilldown and region checks. Replace many static JSON imports with runtime reads and calculated metrics.
Remove Dockerfile.en-ja and rename docker-compose.en-ja.yml → docker-compose.local.yml (now uses Dockerfile). Minor log change in server/src/index.ts. Large refactor in server/src/status.ts: drop provider/region static data, add Asia series-name cache and a new /data/asia/:lang endpoint, change CardEntry/pricing shape to track image/hasCm/hasTp, generate a dynamic GitHub SVG, and overhaul the status HTML/CSS/JS (fonts, colors, collapsible sections, Asia vs international set views, client-side behavior and filtering).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Rewrite the /status page and add supporting endpoints:
Details
Asian languages (ja, ko, zh-tw, zh-cn, id, th) cannot be represented in the international Sets table because they use independent set hierarchies — the new /data/asia/:lang endpoint exposes their per-series/set counts, and the status page renders them in a dedicated view with a language picker and lazy-loaded series accordion.
The GitHub SVG badge is now fully dynamic: columns are built from langStats at request time (sorted alphabetically), so adding or removing a compiled language requires no code changes.