Expand description
Staging view for files opened via “Open With” or the --upload CLI flag.
Presents externally-provided file paths in a masonry grid with selection
checkboxes and Upload / Upload to Album actions. Reuses the existing
MasonryCanvas, LibraryAssetModel, AssetObject, ThumbnailCache,
and spawn_enqueue infrastructure.
Functions§
- build_
album_ 🔒listbox - Build the scrollable album list for the picker dialog.
- build_
staging_ 🔒assets - Build
AssetObjectentries from local file paths for the staging grid. - build_
staging_ 🔒header - Build the staging header bar with upload, album, and select-all buttons.
- build_
staging_ 🔒ui - Build header, grid, toolbar, status bar and return the interactive widgets.
- build_
staging_ window - Build and present the staging window populated with the given file paths.
- connect_
select_ 🔒all - connect_
selection_ 🔒tracking - connect_
staging_ 🔒drop_ target - Attach a
DropTargetto the staging window for appending additional files. - connect_
upload_ 🔒buttons - Wire both upload buttons; they share identical clone setup, differing only in action.
- count_
selected 🔒 - Count the number of selected items in a
MultiSelection. - handle_
album_ 🔒upload - Handle the album upload response: look up selected row and enqueue.
- present_
album_ 🔒list - Build and show the album selection list dialog.
- selected_
paths 🔒 - Collect file paths for the selected items, or all items if none selected.
- setup_
narrow_ 🔒breakpoint - Install a 600sp breakpoint to toggle narrow grid layout.
- show_
album_ 🔒picker - Present an album picker dialog and upload files to the chosen album.
- show_
upload_ 🔒result - Show a result dialog after upload enqueue completes.
- simple_
alert 🔒 - Create a one-button
AlertDialog(shared pattern used by multiple dialogs). - status_
text 🔒 - Format the status bar text for selected/total counts.
- systemtime_
to_ 🔒iso - Format a
SystemTimeas an ISO 8601 string in the local timezone.