mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 16:19:19 +02:00
Fix relink: FilePond addFile API, yellow border, limbo type + await
- Fix addFile argument format: FilePond.addFile() takes (source, options)
as two separate arguments, not a single {source, options} object.
- Change .filepond--file default border from accent-yellow to accent-green.
Existing files loaded in edit mode have type 'local' and never reach
processing-complete state, so they got the yellow border.
- Change relinked file add from type 'local' to 'limbo'. Limbo items
go through DID_COMPLETE_ITEM_PROCESSING which triggers onprocessfile
(ensures syncOrderInput runs with serverId available) and renders
the green checkmark visual.
- Await addFile Promise and close modal in .then() instead of
immediately, ensuring the item is created before cleanup.
- Remove duplicate modal.close() after the addFile block.
This commit is contained in:
1
TODO.md
1
TODO.md
@@ -30,6 +30,7 @@
|
||||
- [x] JS: integrate relink button into FilePond UI (XamxamOpenFileBrowser + XamxamRelinkFile)
|
||||
- [x] CSS: .relink-modal + .file-browser styles in form.css
|
||||
- [x] Fix: relinked file not appearing in FilePond pool — add file metadata to addFile() options and extensive diag logging
|
||||
- [x] Fix: addFile called with single object instead of (source, options) — FilePond API mismatch prevented files from loading
|
||||
- [ ] Migration: rename existing theses/ directories to documents/ on disk and update DB paths
|
||||
|
||||
## Trash policy
|
||||
|
||||
Reference in New Issue
Block a user