Repository navigation
fix(mods): one set of words for mod details - #68
Merged
Merged
Conversation
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.
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.
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.