- _submission_row_view expune eticheta_problema (motiv || eticheta_scurta), gol pe queued/sending/sent, fara decoder nou (R1 DRY) - parse_erori expune cheia `cod` (cod brut catalog) pe ramurile imbogatite, pentru derivare in modal - 5 teste US-001 in tests/test_web_submissions.py - gates: tests PASS (819), /review (backend) PASS Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
36 lines
2.0 KiB
Plaintext
36 lines
2.0 KiB
Plaintext
# Ralph Progress Log
|
|
Started: 2026-06-24
|
|
Project: autopass-5.9-ux-corectie-modal-mobil
|
|
Branch: ralph/5.9-ux-corectie-modal-mobil
|
|
Source PRD: docs/prd/prd-5.9-ux-corectie-modal-mobil.md
|
|
Note: PRD APROBAT 2026-06-24 cu revizii obligatorii R1-R12 (raport AUTOPLAN). R1-R12 au prioritate unde difera de AC original — sunt deja incorporate in acceptance criteria.
|
|
---
|
|
|
|
## Iteratie: 2026-06-24
|
|
### Story implementat: US-001 - Eticheta umana scurta pe randul de afisare + cod brut disponibil pentru modal (R1) (tags: backend)
|
|
### Status: Complete
|
|
|
|
### Gates rulate:
|
|
- Typecheck: SKIP (techStack.commands.typecheck gol)
|
|
- Lint: SKIP (techStack.commands.lint gol)
|
|
- Tests: PASS (tests/test_web_submissions.py 22; suita completa 819 passed, 1 deselected)
|
|
- /review (backend): PASS — no issues (DRY respectat, defensiv, aditiv non-regresie)
|
|
|
|
### Ce s-a schimbat:
|
|
- app/web/routes.py: helper `_eticheta_problema(status, motiv)` + constanta `_STARI_CU_PROBLEMA`;
|
|
`_submission_row_view` hoisteaza `motiv` intr-o variabila si adauga campul `eticheta_problema`
|
|
(text uman scurt: motiv || eticheta_scurta; gol pe queued/sending/sent).
|
|
- app/web/labels.py: `parse_erori` expune cheia `cod` (cod brut de catalog) pe ramurile imbogatite
|
|
(lista + dict), pentru ca modalul (US-004) sa-l deriveze via parse_erori(...)[0]['cod'] — fara decoder nou (R1 DRY).
|
|
- tests/test_web_submissions.py: 5 teste US-001 (sub_pill R1 rename, error/needs_mapping prezent, gol pe ok, defensiv JSON invalid).
|
|
|
|
### Learnings:
|
|
- `parse_erori` traieste in app/web/labels.py (nu app/errors.py cum sugera AC#4) — `app/errors.py` defineste CATALOG-ul de coduri si `eroare()`.
|
|
- `_GESTIONABILE_WEB` == aceleasi 3 stari cu problema; am definit `_STARI_CU_PROBLEMA` separat pentru claritate semantica (gestionabil != are-problema conceptual).
|
|
- Eticheta de pe rand e adaugata DOAR in view-model; randarea sub pill apartine US-002 (de aceea testele sunt unitare pe _submission_row_view).
|
|
|
|
### Next:
|
|
- US-003 (modal, ui, requiresDesignReview) — independent, priority 15.
|
|
- US-002 depinde de US-001 (acum done) + US-003.
|
|
---
|