Skip to content

feat: migrate compare page from AG Grid to native HTML tables - #75

Merged
Roddygithub merged 3 commits into
mainfrom
feat/native-html-compare
Jul 25, 2026
Merged

Roddygithub merged 3 commits into
mainfrom
feat/native-html-compare

Conversation

@Roddygithub

Copy link
Copy Markdown
Owner

Changements

Migration de la page /fights/compare des tableaux AG Grid vers des tableaux HTML natifs, cohérents avec ReadoutTabClient.

Nouveau composant

  • CompareReadoutTable.tsx : Tableau HTML natif avec tri par colonne indépendant
  • Supporte 4 types de tableaux : Dégâts, Soins, Boons, Défense
  • 14 icônes GW2 officielles dans les en-têtes Boons
  • onError graceful degradation sur toutes les icônes
  • Réutilise EliteSpecCellRenderer / CommanderCellRenderer existants

Page compare mise à jour

  • Remplace les 4 imports AG Grid par un seul import CompareReadoutTable
  • 4 appels CompareReadoutTable au lieu de PlayerReadoutDamage/Heal/Boons/Defense

Validation

  • TypeScript clean
  • 43 tests passent

Note dette technique

  • Les composants AG Grid (PlayerReadout*, PlayerReadoutGrid, PlayerReadoutBase) ne sont plus utilisés par la page compare mais peuvent encore être importés par les tests. Leur nettoyage peut être fait dans une PR suivante.

roddy added 3 commits July 25, 2026 02:53
- New CompareReadoutTable component with per-table independent sorting

- Replaces 4 AG Grid components (PlayerReadoutDamage/Heal/Boons/Defense)

- 14 GW2 boon icons in boon table headers (matching ReadoutTabClient)

- onError graceful degradation on all icons

Signed-off-by: RoddyGitHub <roddy@users.noreply.github.com>
- New shared module with style constants, BOONS, useSortedPlayers, utility components

- ReadoutTabClient imports from shared, passes ROLE_TOOLTIPS via IdentityCells prop

- CompareReadoutTable imports from shared, no more duplication

- Single source of truth: style/BOONS/sorting changes are now 1-file edits

Signed-off-by: RoddyGitHub <roddy@users.noreply.github.com>
…odule to lib/

- Deleted 6 dead AG Grid files (PlayerReadoutDamage/Heal/Boons/Defense/Grid/Base) + ag-grid-setup.ts restored (used by other grids)

- Deleted 7 test files (player-readout-*.test.tsx, combat-readout.test.tsx, PlayerReadoutGrid.test.tsx, PlayerReadoutBase.test.tsx)

- Updated setup.ts - removed 4 PlayerReadout mocks

- Moved readoutTableParts.tsx from shared/ to lib/ for project convention consistency

Signed-off-by: RoddyGitHub <roddy@users.noreply.github.com>
@Roddygithub
Roddygithub merged commit 6602e2a into main Jul 25, 2026
11 checks passed
@Roddygithub
Roddygithub deleted the feat/native-html-compare branch July 25, 2026 01:15
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