Interfaccia: correzioni della revisione (web-1, web-2, web-3, web-4, web-5, web-6, web-7, web-9, web-10, web-11, web-12, web-13, web-14, web-15)

Il browser preso dalle pagine Browser e Collegamento si restituisce uscendo senza «Ho finito» (anche chiudendo o ricaricando la scheda); dopo «Ho finito» la vista remota si chiude e non si riprende il browser. Vista remota: AltGr/Option come testo, pulsante rilasciato anche fuori dalla vista. Mosaico e scheda account senza risposte vecchie né viste sovrascritte; nuovi elementi dopo la libreria vuota; intestazione sempre aggiornata. Indietro del browser con la richiesta delle modifiche non salvate; nulla resta registrato da una pagina lasciata mentre caricava; maniglie della fascia trascinabili. «Da una data» come giorno locale; niente «@null» nel riquadro di stato; orari futuri dei fermi «verso le». Prove nel browser vero (InterfaceTests).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Claude-Session: https://claude.ai/code/session_01Mzbb6zeFTjT6Rp8b92AVkA
This commit is contained in:
Claude committed 2026-10-14 01:38:13 +00:00
1 parent 78c92eb2a4
commit 0ceffffe50
27 files changed
+1365 -59

No files matched your search

+8 -3
View File
@@ -1,6 +1,7 @@
// Browser (spec §10.3 «Apri il browser»; mockup 10 without the steps column): in Docker the remote view of the
// server's browser and «Ho finito»; on Windows the browser is its own window. While Alberto uses the browser the
// engine is still; «Ho finito» lets «Riprendi» become active after a verification.
// engine is still; «Ho finito» lets «Riprendi» become active after a verification. Leaving the page without «Ho finito»
// (another page, a reload, closing the tab) gives the browser back, like «Annulla».
import { api } from '../core/api.js';
import { caps } from '../core/context.js';
@@ -8,7 +9,7 @@ import { h, icon, fill } from '../core/dom.js';
import { navigate } from '../core/shell.js';
import { t } from '../core/text.js';
import { toast } from '../core/ui.js';
import { beginDriving, finishDriving, passwordNote, windowPanel } from './connection.js';
import { drivingLease, finishDriving, passwordNote, windowPanel } from './connection.js';
import { remoteView } from './remote-view.js';
export default {
@@ -21,11 +22,15 @@ export default {
} catch {
// the view says whether the browser answers
}
beginDriving(false);
if (page.signal.aborted) return;
const lease = drivingLease(page);
lease.begin(false);
const message = h('div', { 'aria-live': 'polite' });
const done = async () => {
const result = await finishDriving();
if (!result) return;
// «Ho finito» gives the browser back on the server whatever the answer.
lease.settled();
toast(result.message, result.connected ? '' : 'errore');
if (result.connected) navigate('/attivita');
else fill(message, h('div.avviso.rosso', icon('octagon-alert', 's'), h('span', result.message)));