docs: aggiorna README e documentazione con feature attuali
This commit is contained in:
+47
-2
@@ -73,9 +73,11 @@ Accedi a: http://localhost:8000
|
||||
```
|
||||
|
||||
3. **Modificare i file:**
|
||||
- HTML: `app/web/templates/index.html`
|
||||
- HTML: `app/web/templates/index.html`, `servers.html`, `models_running.html`
|
||||
- CSS input: `app/web/static/css/input.css` (raramente, usa classi Tailwind)
|
||||
- JavaScript: `app/web/static/js/app.js` e `data-sync.worker.js`
|
||||
- JavaScript: `app/web/static/js/app.js`, `servers.js`, `models-running.js`, `data-sync.worker.js`
|
||||
|
||||
> ⚠️ **Classi Tailwind dinamiche**: Le classi generate dinamicamente via `innerHTML` (es. in accordion o card) **non** vengono rilevate dal JIT scanner. Usa stili inline (`style="..."`) o classi hardcoded nei template HTML per queste situazioni.
|
||||
|
||||
4. **Compilato automaticamente:**
|
||||
- Tailwind genera `app/web/static/css/output.css` automaticamente
|
||||
@@ -198,6 +200,49 @@ npm run tailwind:build
|
||||
|
||||
- [ ] Eseguire `npm run tailwind:build` per minificare
|
||||
- [ ] Verificare che `output.css` sia generato
|
||||
- [ ] Eseguire i test Python: `make test`
|
||||
- [ ] Eseguire i test E2E: `npm run test:e2e`
|
||||
|
||||
---
|
||||
|
||||
## 🧪 Testing
|
||||
|
||||
### Unit Test (pytest)
|
||||
|
||||
```bash
|
||||
# Tutti i test
|
||||
pytest tests/ -v
|
||||
|
||||
# Con coverage
|
||||
pytest tests/ --cov=app
|
||||
```
|
||||
|
||||
### E2E Test (Playwright)
|
||||
|
||||
I test E2E verificano il comportamento del browser (cache-first, navigazione, PWA).
|
||||
|
||||
```bash
|
||||
# Installare i browser Playwright (prima volta)
|
||||
npx playwright install --with-deps
|
||||
|
||||
# Eseguire i test E2E (richiede Ollama attivo)
|
||||
OLLAMA_HOST=http://<ollama-host>:11434 npm run test:e2e
|
||||
|
||||
# Con report HTML
|
||||
npm run test:e2e -- --reporter=html
|
||||
```
|
||||
|
||||
I test si trovano in `tests/e2e/`. Il report viene generato in `playwright-report/` (gitignored).
|
||||
|
||||
### Makefile
|
||||
|
||||
```bash
|
||||
make test # pytest
|
||||
make lint # flake8
|
||||
make format # black
|
||||
make dev # uvicorn --reload
|
||||
make deploy-no-cache # Docker rebuild forzato
|
||||
```
|
||||
- [ ] Controllare che il container Docker usi il CSS compilato
|
||||
- [ ] Test performance con Lighthouse
|
||||
- [ ] Verifica bundle size `output.css`
|
||||
|
||||
Reference in New Issue
Block a user