feat(web): UI compact Trimiteri + bara bulk contextuala + fix buton "+" editor (PRD 5.22)
Trimiteri desktop = tabel grid cu header, un rand per trimitere: status = bulina cu tooltip, mediu = litera T/P, multi-cod = primul cod + badge +N, sub-linie de eroare cu textul brut RAR doar pe error/needs_data. Mobil: 2 linii prin grid-areas, fara header. Actiunile bulk apar doar la selectie (bara contextuala cu contor + texte explicite). Mapari: exemplu concret in loc de descriere la Reguli automate. Fix buton "+" chips (nu facea nimic, fara eroare): hx-disabled-elt="find button" mostenit de la form-ul parinte crapa htmx inainte de request -> hx-disabled-elt="this" explicit pe butoanele chips; separat, no-op-urile silentioase din post_form_chips au acum mesaje (cod invalid/duplicat) si confirmare cu chip evidentiat la succes. Suita: 1622 passed. Verify E2E in browser (desktop 1280 + mobil 390). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -198,3 +198,20 @@ def test_cod_invalid_respins(client):
|
||||
assert resp.status_code == 200
|
||||
assert "necunoscut" in resp.text.lower()
|
||||
assert _text_rules(acct) == []
|
||||
|
||||
|
||||
def test_sectiune_reguli_afiseaza_exemplu_nu_descriere(client):
|
||||
"""Capul sectiunii = un exemplu concret de regula, nu paragraf descriptiv."""
|
||||
_create_account_user("exemplu.regula@test.com")
|
||||
_login(client, "exemplu.regula@test.com")
|
||||
|
||||
resp = client.get("/?tab=mapari")
|
||||
assert resp.status_code == 200
|
||||
html = resp.text
|
||||
|
||||
# Exemplul concret e prezent (pattern + cod, formatate)
|
||||
assert "regula-exemplu" in html, "Blocul de exemplu (regula-exemplu) lipseste"
|
||||
assert "verificare" in html
|
||||
assert "OE-2" in html
|
||||
# Paragraful descriptiv vechi a disparut
|
||||
assert "nu egal, ci substring" not in html, "Descrierea veche inca prezenta"
|
||||
|
||||
Reference in New Issue
Block a user