E2: schermate delle copie esterne e confronto con i mockup
Otto schermate nuove in docs/schermate (Impostazioni → Esportazione anche in Docker, finestra della destinazione, blocco «Copie esterne» della scheda account, «Copia in…», Libreria con il filtro «Copie» e il menu dell'icona CSV, righe delle copie nel visualizzatore, scheda «Esportazione» della Dashboard), con le voci e i passi del programma delle schermate, perché §10.7 chiede di confrontare ogni schermata con i mockup da cui nasce. Dal confronto, piccole correzioni dell'interfaccia: la riga dei tipi sotto la cartella generale e le note in Docker non stanno più attaccate, la scheda della Dashboard ha spazio sotto le linguette, il tipo di cartella del blocco dell'account va sopra il campo così il percorso non si taglia, «Copia di nuovo» è allineato ai valori e le icone dei pulsanti dentro un avviso non prendono più il colore dell'avviso. differenze.md elenca la composizione di ogni schermata e le differenze: niente formati né conversione (E3), niente «Automatica» (E5), niente «Fotogrammi…» né «È un video fermo?», il segno sulla tessera, le schede «Motore» ed «Esportazione». Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
724db13e1b
commit
28c7f814b1
18 files changed
+174
-7
No files matched your search
@@ -0,0 +1,13 @@
|
||||
// Scrolls the account's Impostazioni down to «Cartella» and the block «Copie esterne» under it (spec §4.10, tappa E2;
|
||||
// composed from mockup 05): the switch, the account's own folder, the files still to copy and «Copia in…».
|
||||
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
|
||||
let block = null;
|
||||
for (let i = 0; i < 50 && !block; i++) {
|
||||
block = document.querySelector('.copie-esterne');
|
||||
if (!block) await sleep(100);
|
||||
}
|
||||
const body = document.querySelector('.corpo');
|
||||
const folder = block.previousElementSibling || block;
|
||||
body.scrollTop = folder.getBoundingClientRect().top - body.getBoundingClientRect().top + body.scrollTop - 24;
|
||||
await sleep(400);
|
||||
return block.querySelector('.conteggio-copie')?.textContent;
|
||||
@@ -0,0 +1,13 @@
|
||||
// «Copia in…» on the whole Libreria, from the menu of the CSV icon (spec §4.10, §10.3, tappa E2; composed from the
|
||||
// dialogs of mockup 13 and mockup 09): the summary line, one row per folder the files go to, «Copia di nuovo anche i N
|
||||
// tolti o superati» unchecked. Nothing is started.
|
||||
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
|
||||
const button = () => [...document.querySelectorAll('.strumenti button')].find((b) => (b.getAttribute('aria-label') || '').startsWith('Esporta'));
|
||||
for (let i = 0; i < 50 && !(button() && document.querySelector('.tess[data-id]')); i++) await sleep(100);
|
||||
button().click();
|
||||
await sleep(400);
|
||||
[...document.querySelectorAll('.menu button, .menu [role=menuitem]')].find((x) => x.textContent.includes('Copia'))?.click();
|
||||
for (let i = 0; i < 100 && !document.querySelector('.dialogo.copia-in .riepilogo-copia'); i++) await sleep(100);
|
||||
await sleep(300);
|
||||
document.activeElement?.blur();
|
||||
return document.querySelector('.dialogo.copia-in .riepilogo-copia')?.textContent;
|
||||
@@ -0,0 +1,22 @@
|
||||
// Opens «Modifica…» on the general folder of Impostazioni → Esportazione (spec §4.10, tappa E2; composed from mockup 08
|
||||
// and the dialogs of mockup 13), chooses «Uno schema suo» and changes the first scheme, so «Risultato» shows the tree.
|
||||
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
|
||||
let edit = null;
|
||||
for (let i = 0; i < 50 && !edit; i++) {
|
||||
edit = [...document.querySelectorAll('.cartella-impostazioni .btn')].find((b) => b.textContent.includes('Modifica'));
|
||||
if (!edit) await sleep(100);
|
||||
}
|
||||
edit.click();
|
||||
let own = null;
|
||||
for (let i = 0; i < 50 && !own; i++) {
|
||||
own = document.querySelector('.dialogo.destinazione input[type=radio][value=suo]');
|
||||
if (!own) await sleep(100);
|
||||
}
|
||||
own.click();
|
||||
await sleep(400);
|
||||
const scheme = document.getElementById('schema-copie');
|
||||
scheme.value = ['{account}', '{anno}', '{tipo}', '{data}_{ora}_{codice}_{n}'].join(String.fromCharCode(92));
|
||||
scheme.dispatchEvent(new Event('input', { bubbles: true }));
|
||||
await sleep(1500);
|
||||
document.activeElement?.blur();
|
||||
return document.querySelector('.dialogo.destinazione .albero')?.textContent.slice(0, 120);
|
||||
@@ -0,0 +1,8 @@
|
||||
// Opens the menu of the CSV icon in the Libreria (spec §4.10, tappa E2; composed from mockup 01): «Esporta l'elenco
|
||||
// (CSV)» and «Copia i file in…». The address chooses «Copie: Copiati», so every tile has the copy mark.
|
||||
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
|
||||
const button = () => [...document.querySelectorAll('.strumenti button')].find((b) => (b.getAttribute('aria-label') || '').startsWith('Esporta'));
|
||||
for (let i = 0; i < 50 && !(button() && document.querySelector('.tess[data-id]')); i++) await sleep(100);
|
||||
button().click();
|
||||
await sleep(600);
|
||||
return [document.querySelector('.quanti')?.textContent, document.querySelector('.menu')?.textContent];
|
||||
@@ -0,0 +1,16 @@
|
||||
// Opens in the viewer a photo whose copy was taken away from the folder, with the copy row and «Copia di nuovo» in the
|
||||
// File panel (spec §4.10, tappa E2; composed from mockup 02). The address chooses «Copie: Tolti o superati».
|
||||
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
|
||||
for (let i = 0; i < 50 && !document.querySelector('.tess[data-id]'); i++) await sleep(100);
|
||||
document.querySelector('.tess[data-id]').click();
|
||||
const wanted = () => {
|
||||
const text = document.querySelector('.vis')?.innerText || '';
|
||||
return text.includes('Copia di nuovo') && !text.includes('non è sul disco') && /\n(Post|Storia), foto/.test(text);
|
||||
};
|
||||
await sleep(1500);
|
||||
for (let i = 0; i < 40 && !wanted(); i++) {
|
||||
document.dispatchEvent(new KeyboardEvent('keydown', { key: 'ArrowRight', bubbles: true }));
|
||||
await sleep(900);
|
||||
}
|
||||
await sleep(600);
|
||||
return document.querySelector('.vis .dove')?.textContent;
|
||||
Reference in new issue
Block a user