Skip to content

[PB-6362] feature/Cloud sync#442

Open
CandelR wants to merge 4 commits intofeature/PB-6353-generate-thumbnailsfrom
feature/PB-6362-cloud-sync
Open

[PB-6362] feature/Cloud sync#442
CandelR wants to merge 4 commits intofeature/PB-6353-generate-thumbnailsfrom
feature/PB-6362-cloud-sync

Conversation

@CandelR
Copy link
Copy Markdown
Contributor

@CandelR CandelR commented May 7, 2026

Implements cloud photo metadata synchronization: now fetches the structure of the remote backup folder and stores file metadata locally in a new cloud_asset table. This enables the Photos timeline to show photos that exist in the cloud but have not yet been downloaded to the device ("cloud-only" items), with their thumbnails loaded on demand.

Summary

  • PhotoCloudBrowser: new service that traverses the remote backup folder hierarchy and upserts file metadata into cloud_asset.
  • cloud_asset: new table that stores remote file metadata (uuid, device id, creation date, filename, thumbnail bucket refs). Deduplicated against asset_sync at render time so already-backed-up photos don't appear twice.
  • PhotoSyncStatus: extended with 'fetching-cloud'. The backup cycle now runs in order: cloud metadata fetch -> local discovery -> upload, so cloud-only items appear in the timeline before upload starts.
  • Progressive timeline updates: cloudFetchRevision counter in Redux state increments after each month is fetched. usePhotosTimeline reacts to it so cloud-only items appear progressively month by month, without waiting for the upload phase to complete.
  • Cloud thumbnails: useCloudThumbnail hook downloads and caches thumbnails for cloud-only items on demand.
  • Sign out: signOutThunk clears both asset_sync and cloud_asset tables on logout.

@CandelR CandelR self-assigned this May 7, 2026
@CandelR CandelR added bug Something isn't working enhancement New feature or request labels May 7, 2026
Copy link
Copy Markdown

@larryrider larryrider left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check sonarcloud issues

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 7, 2026

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

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants