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

@@ -94,7 +94,13 @@ export default async function limits(page, box) {
}
// ------------------------------------------------------------------------------------------- window and days
// The ticks and the two handles stay the same elements: a handle being dragged holds the pointer capture, and
// replacing it would end the drag after the first step. Only the bands are drawn again.
const windowBar = h('div.fascia-barra');
const startHandle = handle('inizio');
const endHandle = handle('fine');
let bandEls = [];
windowBar.append(...[3, 6, 9, 12, 15, 18, 21].map((hour) => h('span.tacca', { style: { left: `${((hour * 60) / 1440) * 100}%` } })), startHandle, endHandle);
// Text fields with 24-hour times (a time input would follow the browser's locale, possibly with AM/PM).
const timeField = (id) => h('input.dati', { type: 'text', id, inputmode: 'numeric', maxlength: '5', placeholder: '07:30', autocomplete: 'off', spellcheck: 'false' });
const startInput = timeField('fascia-inizio');
@@ -139,10 +145,11 @@ export default async function limits(page, box) {
if (end === 0) end = 1440;
const bands = end > start ? [[start, end]] : [[start, 1440], [0, end]];
const pct = (m) => `${(m / 1440) * 100}%`;
fill(windowBar,
[3, 6, 9, 12, 15, 18, 21].map((hour) => h('span.tacca', { style: { left: pct(hour * 60) } })),
bands.map(([a, b]) => h('span.banda', { style: { left: pct(a), width: pct(b - a) } })),
handle('inizio', start), handle('fine', end % 1440 === 0 && end === 1440 ? 1440 : end));
for (const band of bandEls) band.remove();
bandEls = bands.map(([a, b]) => h('span.banda', { style: { left: pct(a), width: pct(b - a) } }));
startHandle.before(...bandEls);
startHandle.style.left = pct(start);
endHandle.style.left = pct(end);
if (document.activeElement !== startInput) startInput.value = minutesOf(form.values.windowStart) == null ? form.values.windowStart : textOf(start);
if (document.activeElement !== endInput) endInput.value = minutesOf(form.values.windowEnd) == null ? form.values.windowEnd : textOf(end);
jitterInput.value = form.values.jitterMinutes;
@@ -167,8 +174,8 @@ export default async function limits(page, box) {
}
/** A draggable handle of the window bar (15-minute steps); the time fields stay the precise way. */
function handle(which, minutes) {
const el = h('span.maniglia', { style: { left: `${(minutes / 1440) * 100}%` }, 'aria-hidden': 'true' });
function handle(which) {
const el = h('span.maniglia', { 'aria-hidden': 'true' });
el.addEventListener('pointerdown', (e) => {
e.preventDefault();
el.setPointerCapture(e.pointerId);
@@ -183,9 +190,11 @@ export default async function limits(page, box) {
const up = () => {
el.removeEventListener('pointermove', move);
el.removeEventListener('pointerup', up);
el.removeEventListener('lostpointercapture', up);
};
el.addEventListener('pointermove', move);
el.addEventListener('pointerup', up);
el.addEventListener('lostpointercapture', up);
});
return el;
}