* fix: keep whole-library auto-upload discovery unfiltered
Share date filtering between app and extension, ignoring upload progress in whole-library mode. Clear the previous date when selecting the whole library and add regression tests.
Signed-off-by: Marino Faggiana <[email protected]>
* test: stabilize media viewer layout assertions
Account for pixel rounding in image centering and constrain video controls within a fixed test container.
Signed-off-by: Marino Faggiana <[email protected]>
---------
Signed-off-by: Marino Faggiana <[email protected]>
* fix: clean up PhotoKit upload jobs when auto upload stops
Cancel queued jobs from the host app and preserve successful upload records before acknowledgement. Stop extension discovery and scheduling when auto upload is disabled.
Assisted-by: Codex:GPT-6
Signed-off-by: Marino Faggiana <[email protected]>
* fix: explicitly capture database in PhotoKit change closure
Assisted-by: Codex:GPT-6
Signed-off-by: Marino Faggiana <[email protected]>
* fix: isolate PhotoKit auto upload sessions across restarts
Invalidate stale discovery and retry passes across start/stop transitions. Reconcile outstanding PhotoKit jobs before restarting, preserve discovery date advancement, and save the new-photos cutoff before enabling Start. Bump the Realm schema to 418.
Assisted-by: Codex:GPT-6
Signed-off-by: Marino Faggiana <[email protected]>
* fix: preview log snapshots without blocking the interface
Move logger flushes and log file operations off the main actor. Present an immutable temporary copy in Quick Look and prevent overlapping preview preparation.
Assisted-by: Codex:GPT-6
Signed-off-by: Marino Faggiana <[email protected]>
* build 9
Signed-off-by: Marino Faggiana <[email protected]>
* fix: preserve PhotoKit upload cancellation during job updates
Prevent stale job updates from recreating deleted transfers or clearing cancellation. Require the active auto-upload session before requeueing acknowledged failures.
Assisted-by: Codex:GPT-6
Signed-off-by: Marino Faggiana <[email protected]>
* fix: use view dimensions for media previews
Remove global screen dependencies from preview and avatar sizing, make media callback captures consistently weak, and raise the SwiftLint function body warning to 500 lines.
Assisted-by: Codex:GPT-6
Signed-off-by: Marino Faggiana <[email protected]>
* lint
Signed-off-by: Marino Faggiana <[email protected]>
* fix: separate auto upload cutoff from discovery progress
Replace the new-photos switch with whole-library and explicit-date choices, remove the intermediate reset confirmation, and preserve the selected cutoff across restarts.
Persist discovery progress independently, retain unfinished upload restart points, and guard legacy queue insertion and extraction against stopped sessions. Add date policy and account backup compatibility tests and migrate Realm to schema 420.
Assisted-by: Codex:GPT-6
Signed-off-by: Marino Faggiana <[email protected]>
* fix: refine auto upload date settings and defaults
Initialize new accounts with a saved current-date cutoff and preserve existing account settings on re-registration. Simplify range selection styling, group date controls, and dim them while auto upload is active.
Assisted-by: Codex:GPT-6
Signed-off-by: Marino Faggiana <[email protected]>
* revert
Signed-off-by: Marino Faggiana <[email protected]>
---------
Signed-off-by: Marino Faggiana <[email protected]>
Keep oversized Live Photo resources together and reserve paired filenames while the host app handles chunked uploads.
Update resolved Google binary package versions.
Signed-off-by: Marino Faggiana <[email protected]>
* fix: recover interrupted background upload jobs
Reconnect PhotoKit jobs to pending metadata and treat valid server file IDs as successful uploads to prevent duplicate retries.
Signed-off-by: Marino Faggiana <[email protected]>
* refactor: centralize background upload metadata state transitions
Apply complete upload lifecycle states through a single persistence helper to keep related metadata fields consistent.
Signed-off-by: Marino Faggiana <[email protected]>
---------
Signed-off-by: Marino Faggiana <[email protected]>
Process completed Live Photo pairs in bounded batches, retain transient failures for retry, and suspend uploads on authentication errors.
Signed-off-by: Marino Faggiana <[email protected]>
* fix: stop background uploads on database schema mismatch
Validate the Realm schema version before opening the database and fail background upload jobs when the database is unavailable.
Signed-off-by: Marino Faggiana <[email protected]>
* fix: require manual retry for background upload auth failures
Avoid falling back to the Camera Roll when selected albums are unavailable and document the background upload extension workflow.
Signed-off-by: Marino Faggiana <[email protected]>
* fix: suspend background uploads after repeated failures
Limit each upload to three attempts and pause an account after consecutive asset failures. Resume suspended queues through explicit user actions and surface the blocking error in Auto Upload status.
Signed-off-by: Marino Faggiana <[email protected]>
* perf: bound auto-upload asset discovery memory
Lazily merge sorted PhotoKit results and scope duplicate checks to active or relevant uploads.
Signed-off-by: Marino Faggiana <[email protected]>
* feat: add experimental background upload opt-in
Limit the PhotoKit extension to Debug and TestFlight builds on Nextcloud 35 or later.
Signed-off-by: Marino Faggiana <[email protected]>
* fix: clarify PhotoKit HEIC upload behavior
Signed-off-by: Marino Faggiana <[email protected]>
* fix: improve background upload diagnostics
Log processing stages and detailed errors, and promote extension diagnostics to notice level.
Signed-off-by: Marino Faggiana <[email protected]>
* fix: mark background PhotoKit uploads
Add the X-NC-PhotoKit-Upload header to background upload requests.
Signed-off-by: Marino Faggiana <[email protected]>
* Clean up background upload metadata when PhotoKit assets are missing
Signed-off-by: Marino Faggiana <[email protected]>
* Log
Signed-off-by: Marino Faggiana <[email protected]>
* Log
Signed-off-by: Marino Faggiana <[email protected]>
* feat: add log file browser to advanced settings
List, preview, and share active and rotated log files.
Limit upload diagnostics to failures and redact sensitive response headers.
Update NextcloudKit and Realm dependencies.
Signed-off-by: Marino Faggiana <[email protected]>
* feat: document Apache setup for PhotoKit uploads
Mark the background upload extension as experimental and show the required Apache rewrite rules.
Update NextcloudKit and bump the project build number.
Signed-off-by: Marino Faggiana <[email protected]>
---------
Signed-off-by: Marino Faggiana <[email protected]>
Queue and upload paired Live Photo image and video resources, then link them when supported by the server.
Signed-off-by: Marino Faggiana <[email protected]>
Mark retryable jobs as pending, add retry controls and auto-upload indicators, and improve account-specific error logging.
Signed-off-by: Marino Faggiana <[email protected]>
Use OSLog levels for extension diagnostics while persisting errors and key lifecycle events. Update the Nextcloud scheme to prompt for the app when debugging extensions.
Signed-off-by: Marino Faggiana <[email protected]>
Acknowledge orphaned jobs, stop retrying authentication failures, and keep processing active while upload jobs remain.
Signed-off-by: Marino Faggiana <[email protected]>
Restrict auto-upload processing to the active account and delegate supported flows to the Photos extension.
Cancel or acknowledge background jobs when auto-upload is disabled or moved to another account.
Signed-off-by: Marino Faggiana <[email protected]>
Limit pending metadata creation to available upload slots and prevent duplicate asset queuing by local identifier.
Signed-off-by: Marino Faggiana <[email protected]>
Scope pending uploads to active accounts, acknowledge orphan retry jobs, preserve asset dimensions and size, and accept standard ETag headers.
Signed-off-by: Marino Faggiana <[email protected]>
Use account-specific subfolder granularity when creating upload paths and only skip assets by their generated filename.
Signed-off-by: Marino Faggiana <[email protected]>
Move destination, job, and result handling into focused extension files and add retry processing for background upload jobs.
Signed-off-by: Marino Faggiana <[email protected]>
Enable the upload job extension for eligible accounts and fall back to the existing auto-upload flow when unavailable.
Signed-off-by: Marino Faggiana <[email protected]>
Create, retry, and acknowledge Photos background upload jobs while syncing their results to metadata.
Exclude extension-managed uploads from the legacy networking process.
Signed-off-by: Marino Faggiana <[email protected]>
Add Realm-backed metadata support and build upload destination requests in the background upload target.
Signed-off-by: Marino Faggiana <[email protected]>
Request full photo library access at launch and enable the upload job extension on iOS 27.
Use OSLog for background upload lifecycle events.
Signed-off-by: Marino Faggiana <[email protected]>