Skip to content

fix(notifications): treat offline as a connection state, not an error - #3706

Merged
setchy merged 5 commits into
mainfrom
feat/connection-status-offline
Nov 23, 2026
Merged

setchy merged 5 commits into
mainfrom
feat/connection-status-offline

Conversation

@setchy

@setchy setchy commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Summary

Gitify now uses the device's network state to decide when to show Offline. A notification query can also pause while the device is online (for example, when a retry waits for the window to become visible), so a pause alone no longer shows Offline or turns the tray red. Usable cached notifications stay visible during an online pause.

  • On reconnect, cached failures stay out of the inbox and tray while the notification fetch is pending. A fresh failure still appears normally.
  • If a poll was already running when the network dropped and returns a total failure after reconnect, Gitify makes one fresh attempt before publishing a failed result. If the original poll succeeds, it does not fetch again.

Test plan

  • pnpm check
  • pnpm test — 2,206 tests passed, including online pauses, reconnect with cached failures, and success/failure of polls that span reconnect.

A paused notification query means there is no connectivity, not that a fetch failed. Derive an explicit offline status so the tray and notifications view do not present the offline/reconnect transition as an error.
@github-actions github-actions Bot added the bug Something isn't working label Nov 17, 2026
@setchy
setchy marked this pull request as ready for review November 18, 2026 06:04
@setchy
setchy requested a review from afonsojramos as a code owner November 18, 2026 06:05
Name the device-level online flag separately from the paused-query presentation state, and document why the notifications view checks both.
@setchy
setchy marked this pull request as draft November 18, 2026 06:16
@setchy
setchy marked this pull request as ready for review November 18, 2026 06:26
@sonarqubecloud

Copy link
Copy Markdown

@setchy
setchy merged commit 1511c79 into main Nov 23, 2026
20 checks passed
@setchy
setchy deleted the feat/connection-status-offline branch November 23, 2026 22:01
@github-actions github-actions Bot added this to the Release 8.2.1 milestone Nov 23, 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

Development

Successfully merging this pull request may close these issues.

1 participant