Skip to main content

Module staging_view

Module staging_view 

Source
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 AssetObject entries 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 DropTarget to 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 SystemTime as an ISO 8601 string in the local timezone.