Repository navigation
Tier list des héros : nouveau plugin dans « Communauté & Aide » - #205
Merged
Merged
Conversation
Rank the Altered heroes in tiers from their full arts and export the ranking as a PNG, on /pages/hero-tier-list, in the « Communauté & Aide » menu. Idea from a community HTML tool, rewritten in Angular on the design system. - Heroes from the cards API, frameless full arts from the CDN. - Own pointer drag and drop: the art follows the pointer, a slot shows the landing place in reading order (end of a tier included), the other heroes slide aside, auto-scroll; long press on touch screens. Tap + action bar for touch and keyboard. - Tiers: rename, recolour (--ac-tier-* tokens), reorder, add, delete; undo / redo; sizes S/M/L; search and filters on the heroes to rank; saved in localStorage. - PNG export drawn on a canvas in the site's theme. - Active by default on the stack (CI e2e), screen added to the loading checks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Tier list des héros
A new SPA plugin,
hero-tier-list(Angular 22), on/pages/hero-tier-list: rank the Altered heroes in tiers from their full arts, then export the ranking as a PNG. The idea comes from a community HTML tool ("Altered Hero Tier List – Stream Edition"). The code is rewritten from scratch on the site's design system; the stream/OBS mode, JSON import/export and share link are not ported.Its menu entry goes at the end of « Communauté & Aide » (manifest
menu→parent_url, the menu's HelloAsso URL). If production's menu has another URL, the entry lands at the top level, to move in the admin.Screenshots (desktop 1440 × 900, mobile 390 × 844)
A saved ranking: tiers on the left, heroes to rank on the right (below on mobile), with search, faction and set filters.
Drag and drop: the art follows the pointer, the dashed slot shows where it lands, the hero taken from the list stays faded there. On mobile, after a long press.
Tap (or keyboard): a hero picked, the bar places it in a tier.
Edit tiers: name, colour, order, delete; « Ajouter un tier » at the bottom.
PNG export of the same ranking:
What it does
card_groups?cardType=HERO), 36 today; new heroes appear on their own.illustrations/{SET}/{REF}_FRAMELESS_T1.webp, then the HD JPEG, thencards/assets/), cropped on the face and framed in the faction's colour.drag/hero-drag.ts, pointer events):--ac-tier-*tokens, light and dark), reorder, add, delete.localStorage.Other changes
design-system/tokens/tokens.css:--ac-tier-*tokens (tier colours and their text).docker-compose.stack.yml: the plugin is active by default on the stack, so the CI runs its e2e tests.plugins/rebuilder/e2e/screens.ts: the screen is in the loading checks (AGENTS.md rule).Checks
php tests/run.php: 148 passing.🤖 Generated with Claude Code