scribe-org/Scribe-iOS

feat: add offline network indicator on download screen

Open

#637 建立於 2026年3月31日

在 GitHub 查看
 (1 留言) (0 反應) (1 負責人)Swift (106 fork)auto 404
help wanted

倉庫指標

Star
 (167 star)
PR 合併指標
 (PR 指標待抓取)

描述

Terms

Description

Summary

Currently, tapping "Download data", "Update all", or "Check for new data" while offline fails silently with no user feedback.

Proposed Solution

  • Add a lightweight NetworkMonitor singleton using Apple's native NWPathMonitor
  • Hook it into DownloadStateManager to guard download actions when offline
  • Show a clear toast: "No internet connection. Please connect and try again."

Affected Areas

  • handleDownloadAction
  • checkAllForUpdates
  • handleUpdateAllLanguages

No existing logic will be changed — purely additive.

Contribution

No response

貢獻者指南