fix(reorganize): Apply on the first click, one offer per toast, no open dialog replaced

Review of owner review 2, phase 4a (R7): the Reorganize dialogs of the desktop and the web panel.

Desktop
- Clicking Apply first takes the focus from the template field, which committed it and started
  a dry run identical to the one on screen: Apply turned off under the click. A commit now plans
  only when the templates differ from the shown plan (or the last dry run failed).
- The Settings toast's Reorganize… disposed whatever dialog the Archive screen had open, so a
  running Delete stopped without being asked. An open dialog now stays and its archive is not
  switched; Reorganize says it waits and opens once that dialog closes, with the archive's
  templates read again and every part the toasts offered meanwhile.
- Each Settings toast takes its own archive's offer (one pending offer per archive), and a toast
  gone early (dismissed, pushed out) lets the next change of that archive raise its own toast:
  Toast.Closed now says when a toast leaves the screen.

Web panel
- The Library sends the selected ids up to a thousand. all:true is used only above that, when
  the selection is exactly what Select all fetched without a filter and the archive has not grown
  since, so a sequence unticked or added later is never reorganized; otherwise the toast asks to
  select again.
- The preview's "before" of an untitled sequence is its old name, not the new title twice.
- A dry run of the same request answering during the confirmation no longer drops the confirmed
  apply; a plan that really changed is shown and said (Admin.Reorganize.PlanChanged).
- Enter in a template plans at once (the form never submitted on Enter).
- The confirm tooltip and the module header no longer say the moves are verified: moves and
  renames are not hashed.

Strings in en and it; the reworded key exists in no other culture.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit bed718fb5af2ef69943fd348690c689259872a34)
This commit is contained in:
Alby96 committed 2026-10-27 16:30:01 +01:00
1 parent 9ae773aa5a
commit 59ee982e4d
14 files changed
+301 -49

No files matched your search

+2 -1
View File
@@ -443,7 +443,7 @@
<data name="Admin.Reorganize.Column.Folder" xml:space="preserve"><value>Folder</value></data>
<data name="Admin.Reorganize.Column.Sequence" xml:space="preserve"><value>Sequence</value></data>
<data name="Admin.Reorganize.Confirm" xml:space="preserve"><value>Reorganize</value></data>
<data name="Admin.Reorganize.Confirm.Tip" xml:space="preserve"><value>Queue the job that moves and renames the originals, each one verified; nothing is overwritten or deleted</value></data>
<data name="Admin.Reorganize.Confirm.Tip" xml:space="preserve"><value>Queue the job that moves and renames the originals; nothing is overwritten or deleted</value></data>
<data name="Admin.Reorganize.ConfirmFiles.one" xml:space="preserve"><value>{0} photo gets a new name.</value><comment>long</comment></data>
<data name="Admin.Reorganize.ConfirmFiles.other" xml:space="preserve"><value>{0} photos get new names.</value><comment>long</comment></data>
<data name="Admin.Reorganize.ConfirmFolders.one" xml:space="preserve"><value>{0} folder moves.</value><comment>long</comment></data>
@@ -467,6 +467,7 @@
<data name="Admin.Reorganize.Offer.Tip" xml:space="preserve"><value>Apply the new templates to the sequences already in the archive; a preview shows every change first</value></data>
<data name="Admin.Reorganize.OpenJob" xml:space="preserve"><value>Open job</value></data>
<data name="Admin.Reorganize.OpenJob.Tip" xml:space="preserve"><value>Show the job and its log on the Jobs page</value></data>
<data name="Admin.Reorganize.PlanChanged" xml:space="preserve"><value>The archive changed during the confirmation; check the new preview and apply again.</value><comment>long</comment></data>
<data name="Admin.Reorganize.Planning" xml:space="preserve"><value>Planning…</value></data>
<data name="Admin.Reorganize.Preview" xml:space="preserve"><value>Preview</value></data>
<data name="Admin.Reorganize.Preview.Tip" xml:space="preserve"><value>What each sequence becomes, in the order the changes apply; nothing has changed yet</value></data>
+1
View File
@@ -240,6 +240,7 @@
<data name="Archive.Reorganize.Renamed.other" xml:space="preserve"><value>{0:N0} files renamed</value></data>
<data name="Archive.Reorganize.Title" xml:space="preserve"><value>Title</value></data>
<data name="Archive.Reorganize.Titles" xml:space="preserve"><value>Titles</value></data>
<data name="Archive.Reorganize.Waiting" xml:space="preserve"><value>Reorganize opens when the open dialog closes</value><comment>long: toast when the Settings toast's Reorganize… finds another Archive dialog open</comment></data>
<data name="Archive.Retag.Add" xml:space="preserve"><value>Add tags</value></data>
<data name="Archive.Retag.Apply" xml:space="preserve"><value>Apply</value></data>
<data name="Archive.Retag.Heading.one" xml:space="preserve"><value>Tags of {0:N0} sequence</value></data>
+2 -1
View File
@@ -442,7 +442,7 @@
<data name="Admin.Reorganize.Column.Folder" xml:space="preserve"><value>Cartella</value></data>
<data name="Admin.Reorganize.Column.Sequence" xml:space="preserve"><value>Sequenza</value></data>
<data name="Admin.Reorganize.Confirm" xml:space="preserve"><value>Riorganizza</value></data>
<data name="Admin.Reorganize.Confirm.Tip" xml:space="preserve"><value>Metti in coda il job che sposta e rinomina gli originali, verificandoli uno per uno; niente viene sovrascritto o eliminato</value></data>
<data name="Admin.Reorganize.Confirm.Tip" xml:space="preserve"><value>Metti in coda il job che sposta e rinomina gli originali; niente viene sovrascritto o eliminato</value></data>
<data name="Admin.Reorganize.ConfirmFiles.one" xml:space="preserve"><value>{0} foto riceve un nuovo nome.</value></data>
<data name="Admin.Reorganize.ConfirmFiles.other" xml:space="preserve"><value>{0} foto ricevono un nuovo nome.</value></data>
<data name="Admin.Reorganize.ConfirmFolders.one" xml:space="preserve"><value>Si sposta {0} cartella.</value></data>
@@ -466,6 +466,7 @@
<data name="Admin.Reorganize.Offer.Tip" xml:space="preserve"><value>Applica i nuovi modelli alle sequenze già nell'archivio; un'anteprima mostra prima ogni modifica</value></data>
<data name="Admin.Reorganize.OpenJob" xml:space="preserve"><value>Apri job</value></data>
<data name="Admin.Reorganize.OpenJob.Tip" xml:space="preserve"><value>Mostra il job e il suo log nella pagina Job</value></data>
<data name="Admin.Reorganize.PlanChanged" xml:space="preserve"><value>L'archivio è cambiato durante la conferma; controlla la nuova anteprima e applica di nuovo.</value></data>
<data name="Admin.Reorganize.Planning" xml:space="preserve"><value>Pianificazione…</value></data>
<data name="Admin.Reorganize.Preview" xml:space="preserve"><value>Anteprima</value></data>
<data name="Admin.Reorganize.Preview.Tip" xml:space="preserve"><value>Cosa diventa ogni sequenza, nell'ordine in cui si applicano le modifiche; ancora non è cambiato niente</value></data>
+1
View File
@@ -234,6 +234,7 @@
<data name="Archive.Reorganize.Renamed.other" xml:space="preserve"><value>{0:N0} file rinominati</value></data>
<data name="Archive.Reorganize.Title" xml:space="preserve"><value>Titolo</value></data>
<data name="Archive.Reorganize.Titles" xml:space="preserve"><value>Titoli</value></data>
<data name="Archive.Reorganize.Waiting" xml:space="preserve"><value>Riorganizza si apre quando si chiude la finestra aperta</value></data>
<data name="Archive.Retag.Add" xml:space="preserve"><value>Aggiungi tag</value></data>
<data name="Archive.Retag.Apply" xml:space="preserve"><value>Applica</value></data>
<data name="Archive.Retag.Heading.one" xml:space="preserve"><value>Tag di {0:N0} sequenza</value></data>