Skip to content

fix(mods): one set of words for mod details - #68

Merged
Lynder063 merged 2 commits into
OpenRAC:mainfrom
nickyyOO:fix/mod-details-labels
Dec 4, 2026
Merged

Lynder063 merged 2 commits into
OpenRAC:mainfrom
nickyyOO:fix/mod-details-labels

Conversation

@nickyyOO

@nickyyOO nickyyOO commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Before: the Details box mixed styles. "today" in lower case, downloads as "2.2k", and disc ids with no name shown as raw codes ("ntsc2").

After: "Today", "Yesterday", "3 days ago". Downloads in full ("2,235"). Every OpenRAC disc id (pal, pal1, ntsc, ntsc2, jp) has a name, an unknown one shows in capitals, and a disc name never breaks in the middle. "Game" becomes "Games" when there are several. Version dates use one format.

How: small helpers in src/lib/mods/logic.ts (gameLabel, discLabel, discList, agoLong, formatNumber, formatDate), used by the mod page, the mod list, the disc badges and shared sets. Builds on #67; merge that first.

Tested: npm test (new test for the words), eslint, tsc. Checked the Details box on a local dev build against the live index.

Before: Going Commando's v2.00 disc showed as "ntsc2", and a readme the
index cut at 64 KB just stopped in the middle of a sentence.
After: it shows "NTSC-U v2.00", and a cut readme ends with a note and a
link to the whole text on GitHub.
Before: the Details box mixed styles: "today" in lower case, "2.2k"
downloads, and unknown disc ids such as "ntsc2" shown as raw codes.
After: "Today", "Yesterday", "3 days ago"; full download counts like
"2,235"; every OpenRAC disc id (pal, pal1, ntsc, ntsc2, jp) has a name,
and an unknown id shows in capitals. Names come from small helpers in
logic.ts, used by the mod page, list, badges and shared sets.
@Lynder063
Lynder063 merged commit d092015 into OpenRAC:main Dec 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants