5.3 KiB
id, title, status, type, team, supporting_teams, roadmap_item, priority
| id | title | status | type | team | supporting_teams | roadmap_item | priority | |
|---|---|---|---|---|---|---|---|---|
| TASK-135 | Fix RCON match detail faction assets and icon display | pending | frontend | Frontend Senior |
|
rcon-full-data | high |
TASK-135 - Fix RCON Match Detail Faction Assets And Icon Display
Goal
Polish faction presentation in the historical RCON match detail scoreboard so faction icons load reliably, are visibly larger, and no longer show long descriptive faction subtitles.
Context
The historical match detail page already renders a RCON/materialized match detail view with a scoreboard-like result block, player table, local faction image paths, and local map/faction assets being added by the user.
The current direction is acceptable, especially the central result with score, map, Warfare and winner. Remaining rough details are visual and asset-related:
- German/Eje icon is not visible, likely due to wrong asset path or name.
- Faction icons are too small.
- Faction subtitles such as
Fuerzas estadounidensesandEjército alemánshould be removed. - Event timeline must remain hidden.
- Confidence/source/base must remain hidden.
- No
snapshotwording. - No Elo/MVP blocks.
- No Comunidad Hispana #03.
Files to Read First
AGENTS.mdai/architecture-index.mdai/repo-context.mdai/orchestrator/frontend-senior.mdfrontend/historico-partida.htmlfrontend/assets/js/historico-partida.js- relevant CSS used by
historico-partida.html
Expected Files to Modify
frontend/assets/js/historico-partida.js- relevant CSS used by
historico-partida.html - this task file when moving it from
ai/tasks/pendingtoai/tasks/done
If additional files are necessary, document why in the task outcome.
Implementation Requirements
- Work from a dedicated branch:
codex/task-135-faction-assets. - Verify faction assets exist in
frontend/assets/img/factions. - Use
.webppaths, not.svg, for faction icons:frontend/assets/img/factions/us.webpfrontend/assets/img/factions/germany.webpfrontend/assets/img/factions/soviets.webpfrontend/assets/img/factions/britain.webp
- Fix the German/Eje icon not displaying.
- Add graceful fallback if any faction image is missing.
- Increase faction icon size in the scoreboard layout.
- Remove long faction subtitle text such as:
Fuerzas estadounidensesEjército alemánFuerzas británicasEjército soviético
- Keep only main side/faction labels:
AliadosEjeSoviéticos,BritánicosorUSAonly if needed
- Do not show long descriptive subtitles under faction labels.
- Keep the winner marker if it remains visually subtle.
- Preserve the player table.
- Keep the event timeline hidden.
- Keep confidence/source/base hidden.
- Do not add implementation/debug text to the UI.
Constraints
- Keep the change small and focused.
- Preserve the dark HLL Vietnam visual identity.
- Do not introduce frameworks or dependencies.
- Do not modify backend behavior unless a minimal fallback contract issue is discovered and documented.
- Do not modify unrelated files.
- Do not reintroduce event timeline, confidence/source/base cards,
snapshotwording, Elo/MVP blocks or Comunidad Hispana #03.
Validation Commands
Run the relevant checks before marking this task done:
node --check frontend/assets/js/historico-partida.jsnode --check frontend/assets/js/historico.jsnode --check frontend/assets/js/historico-recent-live.jspython -m compileall backend/apppowershell -ExecutionPolicy Bypass -File scripts/run-integration-tests.ps1powershell -ExecutionPolicy Bypass -File scripts/run-rcon-data-pipeline-tests.ps1docker compose up -d --build backend frontendInvoke-WebRequest "http://localhost:8000/health" | Select-Object -ExpandProperty ContentInvoke-WebRequest "http://localhost:8000/api/historical/recent-matches?server=all-servers&limit=10" | Select-Object -ExpandProperty Content
Manual Verification
Open:
http://localhost:8080/historico.htmlhttp://localhost:8080/historico-partida.html?server=comunidad-hispana-02&match=comunidad-hispana-02%3A1779178461%3A1779183861%3Acarentanwarfare
Then hard refresh with Ctrl+F5 and verify:
- Score remains
3 : 2. - Winner remains
Aliados. - Map remains
Carentan. - Duration remains
1 h 30 min. - German/Eje icon is visible.
- Faction icons are larger than before.
- Long faction descriptions are gone.
- AntonioPruna still shows 1 kill, 0 deaths,
M1 GARAND. - Victim row still shows
death_byAntonioPruna. - No timeline/events section is visible.
- No confidence/source/base cards are visible.
- No
snapshot, Elo/MVP block or Comunidad Hispana #03 appears.
Git Requirements
- Use branch
codex/task-135-faction-assets. - Move only this task from
ai/tasks/pendingtoai/tasks/donewhen complete. - Add
OutcomeandValidation Resultsections before completing the task. - Stage only intended files.
- Commit and push the branch.
- Final git status must be clean.
Outcome
To be completed by AI Platform Run / Codex CLI.
Validation Result
To be completed by AI Platform Run / Codex CLI.
Change Budget
- Prefer fewer than 5 modified files.
- Prefer changes under 200 lines when feasible.
- Split follow-up work into separate tasks if scope grows.