diff --git a/docs/screenshots.mjs b/docs/screenshots.mjs index f583d56..07abbae 100644 --- a/docs/screenshots.mjs +++ b/docs/screenshots.mjs @@ -11,6 +11,11 @@ * Restart the mock before a run. The filters shot creates rules, so a second * run against the same mock shows them twice. * + * The files shot was taken by hand until 2026-08-27, and had gone stale twice + * over by the time anyone noticed. Anything the docs show should be generated + * from the mock, or it describes whatever the app looked like on the day + * somebody had a screenshot tool open. + * * Two shots are deliberately not taken here: * * - **mobile**, because at the tail of this sequence the app would not render @@ -227,6 +232,23 @@ try { await sleep(1800); await shot("contacts.jpg"); + // --- files --- + // Was the one shot taken by hand, which is why it outlived two rewrites of + // the view it was meant to show. The tree makes it worth automating: opening + // a folder is now the difference between a screenshot of a file manager and a + // screenshot of a list. + await go("http://localhost:5173/files"); + await waitFor("document.querySelector('.files-table, .files-layout')", "the files view"); + await evaluate(`(() => { + // Expand the tree and open a folder, so the shot shows the pane doing its job. + const twisty = document.querySelector('.sidebar .nav-twisty'); + if (twisty) twisty.click(); + const folder = [...document.querySelectorAll('.sidebar .nav-item')].find(e => /Documents/.test(e.textContent || "")); + if (folder) folder.click(); + })()`); + await sleep(1800); + await shot("files.jpg"); + // --- filters, with rules that actually say something --- await go("http://localhost:5173/settings/filters"); await evaluate(HELPERS); diff --git a/docs/screenshots/calendar.jpg b/docs/screenshots/calendar.jpg index 28100a3..0a6dff1 100644 Binary files a/docs/screenshots/calendar.jpg and b/docs/screenshots/calendar.jpg differ diff --git a/docs/screenshots/compose.jpg b/docs/screenshots/compose.jpg index ebacbfa..3533716 100644 Binary files a/docs/screenshots/compose.jpg and b/docs/screenshots/compose.jpg differ diff --git a/docs/screenshots/contacts.jpg b/docs/screenshots/contacts.jpg index ac3d143..5510d0b 100644 Binary files a/docs/screenshots/contacts.jpg and b/docs/screenshots/contacts.jpg differ diff --git a/docs/screenshots/files.jpg b/docs/screenshots/files.jpg new file mode 100644 index 0000000..1c551a9 Binary files /dev/null and b/docs/screenshots/files.jpg differ diff --git a/docs/screenshots/inbox-dark.jpg b/docs/screenshots/inbox-dark.jpg index 92c20db..7e15706 100644 Binary files a/docs/screenshots/inbox-dark.jpg and b/docs/screenshots/inbox-dark.jpg differ diff --git a/docs/screenshots/login.jpg b/docs/screenshots/login.jpg index c62dae2..15401c0 100644 Binary files a/docs/screenshots/login.jpg and b/docs/screenshots/login.jpg differ