Hide paused MVP/Elo UI from the public historical page and remove server 3 from the frontend selector while preserving backend code and data.
8.8 KiB
id, title, status, type, team, supporting_teams, roadmap_item, priority
| id | title | status | type | team | supporting_teams | roadmap_item | priority | |
|---|---|---|---|---|---|---|---|---|
| TASK-111 | Hide paused Elo and MVP ranking UI | pending | frontend | Frontend Senior |
|
historical-ui | high |
TASK-111 - Hide paused Elo and MVP ranking UI
Goal
Hide paused or experimental Elo/MMR and advanced MVP ranking blocks from the public historical page while preserving stable historical content.
Context
HLL Vietnam now uses this operational backend policy:
- live data source: RCON
- historical data source: RCON
- public-scoreboard fallback only when RCON historical data fails
- Comunidad Hispana #03 removed from default targets
- Elo/MMR paused and decoupled from backend startup
Manual visual review of http://localhost:8080/historico.html shows that the public historical page still displays paused or experimental ranking blocks:
- MVP mensual V1
- MVP mensual V2
- Comparativa V1 vs V2
- Elo/MMR mensual / persistent rating
This contradicts the current product decision. This task is only a public UI/product-scope change. Preserve backend endpoints, historical ingestion, Elo/MMR implementation code, persisted data, snapshots, migrations and schemas.
Use branch:
chore/hide-paused-elo-mvp-ui
Steps
- Inspect the listed files first.
- Hide or remove from the public historical page the paused/experimental UI blocks:
- MVP mensual V1
- MVP mensual V2
- Comparativa V1 vs V2
- Elo/MMR mensual / persistent rating
- Stop calling the related frontend fetch/render flows for those hidden sections in
historico.js. - Keep normal historical content visible:
- summary/resumen
- weekly/monthly basic historical rankings
- recent matches
- any other non-Elo, non-MVP experimental historical content already considered stable
- Remove
comunidad-hispana-03from the frontend historical server selector and JavaScript server list if still present. - Preserve backend endpoints and code. Do not delete backend Elo/MMR code, historical ingestion code, endpoints, persisted data, snapshots, migrations or schemas.
- Prefer a minimal feature-flag-like constant in frontend JavaScript if useful, for example:
const SHOW_PAUSED_ADVANCED_RANKINGS = false;Do not leave visible empty panels. - Update text/docs only if necessary to clarify that advanced MVP/Elo ranking UI is paused.
- Do not add new frameworks or dependencies.
- Validate the result.
- Move this task file to
ai/tasks/done/after validation is complete. - Commit and push the completed work to origin. Do not leave completed work only in local.
Files to Read First
frontend/historico.htmlfrontend/assets/js/historico.jsfrontend/assets/css/historico.cssbackend/app/payloads.pyREADME.mddocs/decisions.mdai/repo-context.mdai/architecture-index.md
Rules:
- Read these files before implementation.
- Keep the implementation scoped to public historical UI behavior.
- Do not change backend historical policy.
Expected Files to Modify
frontend/historico.htmlfrontend/assets/js/historico.js- possibly
frontend/assets/css/historico.css - possibly
docs/decisions.md - possibly
ai/repo-context.md - possibly
ai/architecture-index.md ai/tasks/done/TASK-111-hide-paused-elo-mvp-ui.md
Rules:
- Prefer modifying only these files.
- If additional files become necessary, explain why in the task outcome and commit message.
- The task file should be moved from
ai/tasks/pending/toai/tasks/done/only after validation is complete.
Expected Files Not to Modify
- database migrations
- persisted data
- backend Elo/MMR implementation files
- historical ingestion implementation files
- Docker/Compose configuration
- local
.env - unrelated frontend pages
Constraints
- Keep the change minimal and verifiable.
- Preserve HLL Vietnam project identity: military, Vietnam, tactical, sober.
- Do not implement backend functionality.
- Do not delete backend Elo/MMR code.
- Do not delete historical ingestion code.
- Do not delete endpoints.
- Do not delete persisted data, snapshots, migrations or schemas.
- Do not change backend historical policy.
- Do not reintroduce Comunidad Hispana #03.
- Do not remove normal historical sections such as summary, basic rankings and recent matches.
- Do not introduce unnecessary frameworks or dependencies.
- Do not overwrite repository-specific context with generic platform template text.
- Confirm
backend/runtime/is not created or committed.
Validation
Before completing the task:
- Run
git status. - Run
powershell -ExecutionPolicy Bypass -File scripts/run-integration-tests.ps1. - Run
docker compose down. - Run
docker compose up -d --build. - Run
docker compose ps. - Run
Invoke-WebRequest http://localhost:8000/health | Select-Object -ExpandProperty Content. - Run
Invoke-WebRequest http://localhost:8080 | Select-Object -ExpandProperty StatusCode. - Manually verify
http://localhost:8080/historico.html:- no visible MVP mensual V1 block
- no visible MVP mensual V2 block
- no visible Comparativa V1 vs V2 block
- no visible Elo/MMR mensual block
- no visible Comunidad Hispana #03 selector
- summary/basic rankings/recent matches still render
- Confirm no backend Elo/MMR code was deleted.
- Confirm no migrations or persisted data changed.
- Confirm
backend/runtime/is not created or committed. - Review
git diff --name-onlyand confirm changed files match the expected scope.
Commit And Push Requirements
- Run validation before committing.
- Run
git status. - Stage only intended files.
- Commit with a clear message, for example:
chore: hide paused elo and mvp UI - Push the branch to origin.
- Do not leave completed work only in local.
Outcome
Completed.
Validation performed:
- Ran
git status. - Ran
node --check frontend/assets/js/historico.js. - Ran
powershell -ExecutionPolicy Bypass -File scripts/run-integration-tests.ps1.- Result: platform validation passed; no product integration tests are configured for this platform-only scope.
- Ran
docker compose down. - Ran
docker compose up -d --build. - Ran
docker compose ps.- Result:
backendandfrontendare running.
- Result:
- Ran
Invoke-WebRequest http://localhost:8000/health | Select-Object -ExpandProperty Content.- Result: backend returned
status: ok,live_data_source: rcon, andhistorical_data_source: rcon.
- Result: backend returned
- Ran
Invoke-WebRequest http://localhost:8080 | Select-Object -ExpandProperty StatusCode.- Result:
200.
- Result:
- Verified served
http://localhost:8080/historico.htmlcontent:- no visible MVP mensual V1 block
- no visible MVP mensual V2 block
- no visible Comparativa V1 vs V2 block
- no visible Elo/MMR mensual block
- no visible Comunidad Hispana #03 selector
- summary, basic rankings and recent matches markup remains present
- Verified served
frontend/assets/js/historico.jsno longer includes the monthly MVP V1, monthly MVP V2 or Elo/MMR frontend fetch wrappers/endpoints. - Confirmed no backend Elo/MMR code was deleted.
- Confirmed no migrations or persisted data changed.
- Confirmed
backend/runtime/was not created or committed. - Reviewed
git diff --name-only; changed files are limited to public historical frontend files plus this task file move.
Browser validation note:
- The Browser plugin is available, but its required Node REPL execution tool was not exposed in this session after tool discovery.
npx playwright --versioncould not be used as a fallback because npm failed withUNABLE_TO_VERIFY_LEAF_SIGNATURE.- The manual visual checklist was therefore validated through the running Docker frontend using served HTML and JavaScript HTTP assertions.
Notable decisions:
- Removed the paused/experimental public UI panels instead of hiding empty shells.
- Disabled the related frontend fetch/render flows by removing their active cache/fetch wiring from
historico.js. - Preserved backend endpoints, Elo/MMR implementation code, migrations, persisted data and historical ingestion code.
- Removed
comunidad-hispana-03from the public historical selector and JavaScript historical server list.
Follow-up:
- No follow-up task is required for this scoped UI pause.
Commit and push:
- Pending at task move time; final commit hash and push result will be reported by the worker after commit/push.
The final worker report must explicitly state:
- which paused/experimental UI blocks were hidden
- whether any related frontend fetch/render flows were disabled
- whether
comunidad-hispana-03was present and removed from the public historical selector/list - that normal historical content still renders
- that backend Elo/MMR code, endpoints, migrations and persisted data were preserved
- that
backend/runtime/was not created or committed - the commit hash and push result
Change Budget
- Prefer fewer than 5 modified files.
- Prefer changes under 200 lines when feasible.
- Split the work into follow-up tasks if limits are exceeded.