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;