Commit Graph

18 Commits

Author SHA1 Message Date
EmanueleAlfano
64e1e5a244 feat: add debug build command and update documentation for frontend path changes 2026-02-04 15:35:47 +01:00
EmanueleAlfano
8e8042c851 feat: add debug build command and update documentation for frontend path changes 2026-02-04 15:33:20 +01:00
EmanueleAlfano
68d8245596 feat: fix return to home when dev.sh is used with source 2026-02-04 15:11:16 +01:00
EmanueleAlfano
4ba1fd5a85 feat: fix return to home when dev.sh is used with source 2026-02-04 14:50:07 +01:00
EmanueleAlfano
145a091dc3 feat: update frontend paths to include trailing slashes for consistency 2026-02-04 14:33:09 +01:00
EmanueleAlfano
458b074f45 feat: update frontend path to '/badge' and adjust related documentation 2026-02-04 13:12:15 +01:00
EmanueleAlfano
77bea025fa gitingore update 2026-02-04 09:50:15 +01:00
EmanueleAlfano
7131a09574 delete lock file from git 2026-02-04 09:49:50 +01:00
EmanueleAlfano
077f864315 Endpoint update with '/api' prepend 2026-02-04 09:28:01 +01:00
907822f168 feat: aggiunti test per il componente UserCard nel sistema di voto Focolari 2026-01-24 18:55:33 +01:00
855d2b3160 feat: Sistema controllo accessi Focolari completo con test E2E
🎯 Funzionalità Implementate:
- Frontend React/TypeScript/Tailwind ottimizzato per tablet
- Backend mock FastAPI con API complete
- Hook RFID multi-pattern (US: ;? / IT: ò_)
- Flusso validatore → partecipante → conferma ingresso
- Carosello benvenuto multilingua (10 lingue, animazione smooth)
- Gestione sessione con invalidazione su server restart
- Pagina debug RFID accessibile da /debug

🧪 Test Implementati:
- 56 unit test (Vitest) - hook RFID, API, componenti
- 14 test E2E (Playwright) - flussi completi con browser reale
- Test sicurezza: verifica blocco backend per utenti non ammessi

📋 Comandi Disponibili:
- ./dev.sh install     → Setup dipendenze
- ./dev.sh dev         → Sviluppo (hot reload)
- ./dev.sh server      → Produzione locale
- ./dev.sh test        → Unit test
- ./dev.sh test:e2e    → Test E2E headless
- ./dev.sh test:e2e:headed → Test E2E con browser visibile
- ./dev.sh test:e2e:ui → Playwright UI per debug

📝 Documentazione:
- README.md con guida completa
- API_SPECIFICATION.md per backend reale
- TEST_CHECKLIST.md per test manuali
- Piani sviluppo in ai-prompts/

 Stato: MVP completo, in attesa di feedback e richieste future
2026-01-24 18:29:54 +01:00
f59c7af383 feat: esteso il tempo di visualizzazione dei messaggi nel SuccessModal e aggiornato il layout del WelcomeCarousel 2026-01-24 16:54:55 +01:00
3f4abf5c57 feat: aggiornato il modello utente con nuovi ruoli e modifiche alla documentazione API.
Rimosso un utente per testare caso badge non presente
2026-01-24 16:35:30 +01:00
c214ded44b feat: rimosso il token dalla risposta di login e aggiornati i modelli di dati 2026-01-24 16:22:32 +01:00
7895bde7ca feat: aggiornamenti alla documentazione e miglioramenti UI/UX 2026-01-20 00:24:16 +01:00
b467d4753d fix: correzioni critiche e checklist test manuali
CORREZIONI:
- Badge confrontato ESATTAMENTE come stringa (rimosso .lstrip("0"))
- Success modal si chiude quando arriva nuovo badge (fix dipendenze useCallback)
- Polling ogni 30s per invalidare sessione se server riparte
- Area carosello allargata per testi lunghi (es. russo)

DOCUMENTAZIONE:
- API_SPECIFICATION.md aggiornata: badge come stringa esatta
- Creata TEST_CHECKLIST.md con 22 test manuali
- Aggiornati piani backend e frontend

Badge sono STRINGHE, non numeri:
- "0008988288" != "8988288" (zeri iniziali significativi)
2026-01-17 23:32:33 +01:00
e68f299feb feat: Controllo accessi RFID completo con gestione sessioni
- Aggiunto supporto multi-pattern RFID (US/IT layout)
- Implementata invalidazione sessioni al restart del server
- Schermata "badge non trovato" con countdown 30s
- Notifica quando badge validatore passato senza utente
- Database aggiornato con badge reali di test
- Layout ottimizzato per tablet orizzontale
- Banner NumLock per desktop
- Toggle visibilità password
- Carosello benvenuto multilingua (10 lingue)
- Pagina debug RFID (/debug)
2026-01-17 20:08:36 +01:00
21b509c6ba feat: setup iniziale sistema controllo accessi Focolari
Struttura progetto:
- Backend mock Python (FastAPI) con API per gestione varchi
- Frontend React + TypeScript + Vite + Tailwind CSS
- Documentazione e piani di sviluppo

Backend (backend-mock/):
- API REST: /info-room, /login-validate, /anagrafica, /entry-request
- Dati mock: 7 utenti, validatore (999999/focolari)
- CORS abilitato, docs OpenAPI automatiche
- Configurazione pipenv per ambiente virtuale

Frontend (frontend/):
- State machine completa per flusso accesso varco
- Hook useRFIDScanner per lettura badge (pattern singolo)
- Componenti UI: Logo, Button, Input, Modal, UserCard, Timer
- Schermate: Loading, Login, ActiveGate, Success/Error Modal
- Design system con colori Focolari
- Ottimizzato per tablet touch

Documentazione (ai-prompts/):
- Welcome guide per futuri agenti
- Piano sviluppo backend e frontend con checklist

DA COMPLETARE:
- Hook RFID multi-pattern (US/IT/altri layout tastiera)
- Pagina /debug per diagnostica in loco
- Logging console strutturato
2026-01-17 18:20:55 +01:00