Add a table view to the award overview - #273
Open
andrzejdus wants to merge 1 commit into
Open
andrzejdus wants to merge 1 commit into
andrzejdus wants to merge 1 commit into
Conversation
The award overview was only available as a 3-per-row grid of cards, which is hard to scan once there are a couple of hundred awards. Add a table rendering next to it: one row per award with the icon and title (the description underneath), the current holder, and the record value in its own right-aligned column, using the same markup and classes as the Hall of Fame. The two views are switchable from the page and routed through the hash like the player list: `#awards` and `#awards:cards` render the cards (the default), `#awards:table` the table. The switch reuses the pagination markup so it matches the theme without new CSS. Each renderer lives in its own file (`mcstats-awardcards.js`, `mcstats-awardtable.js`); `mcstats-awardlist.js` keeps only the page and the switch. Adds `page.awardList.value`, `page.awardList.viewCards` and `page.awardList.viewTable` to every localization file. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
andrzejdus
force-pushed
the
award-list-table
branch
from
September 5, 2026 01:38
bfc72cf to
989d752
Compare
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.
Adds a table rendering of the award overview next to the existing card grid, with a switch between the two on the page.
#awards/#awards:cards— card grid (default, unchanged)#awards:table— one row per award: icon, title with description, holder, record valueThe renderers are split into
mcstats-awardcards.jsandmcstats-awardtable.js;mcstats-awardlist.jskeeps the page and the switch. The switch reuses the pagination markup.New localization keys in all languages:
page.awardList.value,page.awardList.viewCards,page.awardList.viewTable.🤖 Generated with Claude Code