fix(admin): revalidate panel files, count bulk jobs, refresh every loaded row
The phase 3 packages land together, so the panel's pieces must stay in step:
- Admin files are served with Cache-Control: no-cache and their content
ETag (If-None-Match lists, W/ tags and * honoured). With max-age=3600 a
browser that loaded the panel before an upgrade could run new modules
next to cached old ones for up to an hour; now it revalidates each file
and only what the upgrade changed is sent again.
- The Library's Upload and a sequence's Add photos open upload.js, which
now ships with the panel: the test requires the module (no 404), the
dynamic import and the openUpload({ api, sequence, onDone }) calls.
- Bulk jobs over more than 1000 sequences queue one job per 1000; the
toast now says how many were queued, also when a later chunk failed.
- The live refresh re-reads every loaded row, a thousand per request,
instead of dropping rows beyond the first 1000 back to Load more.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0e52bf0e1b
commit
6ea611d949
6 files changed
+104
-24
No files matched your search
+2
-1
@@ -272,7 +272,8 @@
|
||||
<data name="Admin.Library.Job.Thumbnails.Tip" xml:space="preserve"><value>Queue drawing the thumbnails of the selected sequences again</value></data>
|
||||
<data name="Admin.Library.Job.Verify" xml:space="preserve"><value>Verify</value></data>
|
||||
<data name="Admin.Library.Job.Verify.Tip" xml:space="preserve"><value>Queue a verify: every original of the selected sequences is read again and its SHA-256 compared</value></data>
|
||||
<data name="Admin.Library.JobQueued" xml:space="preserve"><value>Job queued.</value></data>
|
||||
<data name="Admin.Library.JobsQueued.one" xml:space="preserve"><value>{0} job queued.</value></data>
|
||||
<data name="Admin.Library.JobsQueued.other" xml:space="preserve"><value>{0} jobs queued.</value></data>
|
||||
<data name="Admin.Library.NoMatch" xml:space="preserve"><value>No sequences match the filters</value></data>
|
||||
<data name="Admin.Library.NoTags" xml:space="preserve"><value>Type at least one tag to add or remove.</value><comment>long</comment></data>
|
||||
<data name="Admin.Library.NothingQueued" xml:space="preserve"><value>Nothing queued.</value></data>
|
||||
|
||||
@@ -272,7 +272,8 @@
|
||||
<data name="Admin.Library.Job.Thumbnails.Tip" xml:space="preserve"><value>Metti in coda il ridisegno delle miniature delle sequenze selezionate</value></data>
|
||||
<data name="Admin.Library.Job.Verify" xml:space="preserve"><value>Verifica</value></data>
|
||||
<data name="Admin.Library.Job.Verify.Tip" xml:space="preserve"><value>Metti in coda una verifica: ogni originale delle sequenze selezionate viene riletto e il suo SHA-256 confrontato</value></data>
|
||||
<data name="Admin.Library.JobQueued" xml:space="preserve"><value>Job in coda.</value></data>
|
||||
<data name="Admin.Library.JobsQueued.one" xml:space="preserve"><value>{0} job in coda.</value></data>
|
||||
<data name="Admin.Library.JobsQueued.other" xml:space="preserve"><value>{0} job in coda.</value></data>
|
||||
<data name="Admin.Library.NoMatch" xml:space="preserve"><value>Nessuna sequenza corrisponde ai filtri</value></data>
|
||||
<data name="Admin.Library.NoTags" xml:space="preserve"><value>Digita almeno un tag da aggiungere o togliere.</value><comment>long</comment></data>
|
||||
<data name="Admin.Library.NothingQueued" xml:space="preserve"><value>Nulla in coda.</value></data>
|
||||
|
||||
Reference in new issue
Block a user