Skip to content

[_] feature/Upload manually asset action#536

Open
CandelR wants to merge 2 commits into
feature/PB-6378-delete-assets-logicfrom
feature/modify-manual-backup-logic
Open

[_] feature/Upload manually asset action#536
CandelR wants to merge 2 commits into
feature/PB-6378-delete-assets-logicfrom
feature/modify-manual-backup-logic

Conversation

@CandelR

@CandelR CandelR commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Upload the asset immediately when the "Backup" button is pressed, instead of queueing it into the automatic backup cycle

Summary

  • thunks/upload.ts: added uploadAssetsManuallyThunk independent of runUploadThunk
  • PhotoUploadQueue.ts: added to start() an optional externalSignal param so a manual upload uses its own AbortController, decoupled from the automatic cycle's in order to paused/aborted cycle can no longer cancel a manual upload in progress
  • PhotoActionsService.ts: removed restoreToCloud, superseded by uploadAssetsManuallyThunk, it no longer did anything useful.
  • usePhotoActionHandlers.ts: handleRestore dispatches uploadAssetsManuallyThunk with its own throwaway signal, not the shared action abort ref, so closing the preview during upload doesn't cancel it.
  • usePreviewItems.ts: new markAssetBackedUp. The preview receives its items as a frozen snapshot that never re-syncs with Redux or DB while open, so this locally flags a uploaded item as backed to reflect state we already know, without waiting for the user to leave and re-open the preview.
  • PhotoPreviewScreen/index.tsx: isCloudDeleted/isSynced now derived from useLiveBackupStatus instead of the frozen snapshot.
  • useLiveBackupStatus.ts, usePhotoActions.ts: minor adjustments to keep automatic backup cycle completion tracking untouched by the manual path.

@CandelR CandelR requested a review from larryrider July 15, 2026 13:42
@CandelR CandelR self-assigned this Jul 15, 2026
@CandelR CandelR added the enhancement New feature or request label Jul 15, 2026
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants