5.4 KiB
id, title, status, type, team, supporting_teams, roadmap_item, priority
| id | title | status | type | team | supporting_teams | roadmap_item | priority | ||
|---|---|---|---|---|---|---|---|---|---|
| TASK-136 | Add RCON match detail map hero image | pending | frontend | Frontend Senior |
|
rcon-full-data | high |
TASK-136 - Add RCON Match Detail Map Hero Image
Goal
Add local map image support to the historical RCON match detail page and show the current match map image prominently in the top hero/header area.
Context
The historical match detail page currently shows the central result data well enough, but the top hero/header area should include the match map image, preferably on the right side. The community logo can stay where it is or be reduced if needed, but the map image should become a clear first-viewport visual element.
For the known Carentan match, the UI must map the displayed map to:
frontend/assets/img/maps/carentan-day.webp
The implementation should use local map assets under frontend/assets/img/maps and hide the image area gracefully when no asset is available.
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/historico-partida.htmlfrontend/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-136-map-hero-image. - Add map image support on
historico-partida.html/historico-partida.js. - Display the current map image in the top hero/header area, preferably on the right side.
- Keep the community logo where it is or reduce it if needed, while adding a prominent map image to the right.
- Use map assets from
frontend/assets/img/maps. - Add a robust JavaScript mapper from map name /
pretty_nameto asset path. - For the known Carentan match, map to
frontend/assets/img/maps/carentan-day.webp. - Account for likely available asset names:
carentan-day.webpstmereeglise-day.webpstmariedumont-day.webputahbeach-day.webpomahabeach-day.webppurpleheartlane-rain.webphurtgenforest-day.webpfoy-day.webpkursk-day.webpkharkov-day.webpdriel-day.webpelalamein-day.webptobruk-day.webptobruk-dawn.webpmortain-day.webphill400-day.webpelsenbornridge-day.webpsmolensk-day.webp
- If no map image is found, hide the image area gracefully.
- Keep the layout responsive.
- Do not show implementation/debug text in the UI.
- Preserve the player table.
- Keep event timeline hidden.
- Keep confidence/source/base hidden.
Constraints
- Keep the change small and focused.
- Preserve the dark HLL Vietnam visual identity.
- Do not introduce frameworks or dependencies.
- Do not modify backend unless a minimal API field issue is strictly necessary and documented.
- Do not modify unrelated files.
- Do not show
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. - Map image appears in the hero/right area.
- For the known Carentan match, the image uses
frontend/assets/img/maps/carentan-day.webp. - Layout remains responsive on desktop and mobile.
- AntonioPruna still shows 1 kill, 0 deaths,
M1 GARAND. - Victim row still shows
death_byAntonioPruna. - No implementation/debug text appears.
- 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-136-map-hero-image. - 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.