Interfaccia, parte 2: Attività, Impostazioni, collegamento, Importa, doppioni, primo avvio ed errori di configurazione

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-13 20:27:34 +00:00
1 parent 0515776b04
commit d614050ee5
90 files changed
+7825 -49

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
// The first start (spec §10.3): not connected and an empty library. The demo always has a library, so the screen is
// drawn here into the page body, as the library draws it when it finds nothing, with the header count of an empty one.
const { welcome } = await import('/js/pages/welcome.js');
const { t } = await import('/js/core/text.js');
const body = document.querySelector('.corpo');
body.replaceChildren(welcome());
document.querySelector('.strumenti')?.setAttribute('hidden', '');
const count = document.querySelector('.testa .quanti');
if (count) count.textContent = t('libreria.quanti', { elementi: t('comune.elementi', { n: 0 }), account: t('comune.account', { n: 0 }) });
await new Promise((r) => setTimeout(r, 300));
return [document.querySelectorAll('.benvenuto .btn').length, count?.textContent];
+8
View File
@@ -0,0 +1,8 @@
// Chooses «Tieni il più grande» on the first probable duplicate of the import review, then goes back to it: mockup 09
// shows a case with its decision (the panel moves on to the next case after each choice).
await new Promise((r) => setTimeout(r, 800));
document.querySelector('.scelte-doppione input[value="keepLarger"]')?.click();
await new Promise((r) => setTimeout(r, 900));
document.querySelector('.confronto .navigazione .btn.solo')?.click();
await new Promise((r) => setTimeout(r, 900));
return [document.querySelector('.confronto .navigazione .muto')?.textContent, document.querySelector('.scelte-doppione input:checked')?.value];
+8
View File
@@ -0,0 +1,8 @@
// Prints the boxes of the elements named in window.FEBE_MISURE (CSS selectors), for checking a layout against a mockup.
await new Promise((r) => setTimeout(r, 300));
const selectors = (window.FEBE_MISURE || new URLSearchParams(location.hash.slice(1)).get('m') || '.testa-blocco .destra').split('|');
return selectors.map((s) => [...document.querySelectorAll(s)].slice(0, 4).map((el) => {
const r = el.getBoundingClientRect();
const cs = getComputedStyle(el);
return `${s}: x=${Math.round(r.left)} y=${Math.round(r.top)} w=${Math.round(r.width)} h=${Math.round(r.height)} ml=${cs.marginLeft} d=${cs.display}`;
}).join('\n')).join('\n');
+7
View File
@@ -0,0 +1,7 @@
// Changes a value on «Limiti e comportamento»: the profile becomes «Su misura» and the save bar wakes up (spec §7.5).
await new Promise((r) => setTimeout(r, 500));
const input = document.querySelector('.tabella-tetti tbody tr:nth-child(2) td:nth-child(3) input');
input.value = '90';
input.dispatchEvent(new Event('input', { bubbles: true }));
await new Promise((r) => setTimeout(r, 300));
return [document.querySelector('.su-misura b')?.textContent, document.querySelector('.salva .nota')?.textContent, document.querySelector('.salva .btn.primo')?.disabled];
+5
View File
@@ -0,0 +1,5 @@
// Opens «Tutti i tetti» on the Attività page (spec §7.4: every category, hourly and daily).
await new Promise((r) => setTimeout(r, 500));
[...document.querySelectorAll('.testa-blocco .btn.collegamento')].find((b) => b.textContent.includes('tetti'))?.click();
await new Promise((r) => setTimeout(r, 600));
return document.querySelectorAll('.tutti-tetti tbody tr').length;
+25
View File
@@ -21,3 +21,28 @@ shot "$b/account/2?tema=scuro&tipo=storie" 12-account-storie-tema-scuro.png
shot "$b/libreria?tema=chiaro" 14-finestra-stretta.png 860 900
shot "$b/libreria?tema=chiaro" 14-telefono.png 390 844
shot "$b/account/2/cronologia?tema=chiaro" account-cronologia.png
# Part 2: Attività, Impostazioni, Collegamento, Importa, doppioni, primo avvio, errore di configurazione.
# The stopped scene first: «Riprendi» stays off until the browser has been used (spec §7.6).
shot "$b/attivita?scena=fermo&tema=scuro" 11-attivita-fermo-tema-scuro.png
shot "$b/attivita?scena=sessione&tema=chiaro" 06-attivita.png
shot "$b/attivita?scena=sessione&tema=chiaro" 06-attivita-tutti-i-tetti.png 1440 900 3000 "$here/passi/tutti-tetti.js"
shot "$b/attivita?scena=sessione&tema=chiaro" 14-attivita-finestra-stretta.png 860 900
shot "$b/attivita?scena=sessione&tema=chiaro" 14-attivita-telefono.png 390 844
shot "$b/attivita?scena=normale&tema=chiaro" 14-attivita-finestra-stretta-normale.png 860 900
shot "$b/attivita?scena=normale&tema=chiaro" 14-attivita-telefono-normale.png 390 844
shot "$b/impostazioni/limiti?tema=chiaro" 07-limiti-e-comportamento.png 1440 1470
shot "$b/impostazioni/limiti?tema=chiaro" 07-limiti-su-misura.png 1440 900 3000 "$here/passi/su-misura.js"
shot "$b/impostazioni/generali?tema=chiaro" 08-impostazioni-generali.png
shot "$b/impostazioni/notifiche?tema=chiaro" impostazioni-notifiche.png
shot "$b/impostazioni/dati?tema=chiaro" impostazioni-dati.png
shot "$b/impostazioni/informazioni?tema=chiaro" impostazioni-informazioni.png
shot "$b/importa?passo=1&tema=chiaro&veste=docker" 09-importa-sorgente.png
shot "$b/importa?passo=3&tema=chiaro" 09-importa-revisione.png 1440 900 3000 "$here/passi/doppione-scelto.js"
shot "$b/importa?passo=3&tema=chiaro" 09-importa-telefono.png 390 844
shot "$b/impostazioni/collegamento?scena=scollegato&tema=chiaro&veste=docker" 10-collegamento-instagram.png
shot "$b/impostazioni/collegamento?scena=scollegato&tema=chiaro&veste=windows" 10-collegamento-windows.png
shot "$b/impostazioni/collegamento?scena=normale&tema=chiaro&veste=docker" 10-collegamento-collegato.png
shot "$b/browser?scena=fermo&tema=chiaro&veste=docker" 10-browser.png
shot "$b/doppioni?tema=chiaro" doppioni-download.png
shot "$b/libreria?scena=scollegato&tema=chiaro" primo-avvio.png 1440 900 3000 "$here/passi/benvenuto.js"
shot "$b/libreria?scena=errore&tema=chiaro" errore-configurazione.png