Skip to content

[PB-6100] feature/Handle offline and wifi option#486

Open
CandelR wants to merge 2 commits into
feature/PB-6083-limited-access-handlingfrom
feature/PB-6100-handle-offline-and-wifi-option
Open

[PB-6100] feature/Handle offline and wifi option#486
CandelR wants to merge 2 commits into
feature/PB-6083-limited-access-handlingfrom
feature/PB-6100-handle-offline-and-wifi-option

Conversation

@CandelR

@CandelR CandelR commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Handle WiFi only enforcement, and no connection backup pause

Summary

  • src/store/slices/photos/index.ts:
    • added paused-no-wifi and paused-no-connection sync statuses.
    • runUploadThunk now checks network state before starting and listens for changes mid-upload via addNetworkStateListener, aborting immediately on WiFi or connection loss.
    • setNetworkConditionThunk aborts active uploads when switching to wifi-only on cellular.
    • photosBucket is now persisted to AsyncStorage.
    • runBackupCycleThunk reinitialises device folder if either deviceId or photosBucket is missing.
  • GroupHeaderStatus.tsx: added GroupHeaderPausedNoWifi and GroupHeaderPausedNoConnection components shown in the timeline header when backup is paused due to network conditions.
  • PhotosGroupHeader.tsx: extended GroupSyncStatus and renders the two new network-pause header states.
  • photoTimelineGroups.ts: maps paused-no-wifi and paused-no-connection statuses to their GroupSyncStatus equivalents

@CandelR CandelR self-assigned this Jun 8, 2026
@CandelR CandelR added the enhancement New feature or request label Jun 8, 2026
@sonarqubecloud

sonarqubecloud Bot commented Jun 8, 2026

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.

1 participant