Skip to content

Show reconnect banners after tracker session invalidation - #3058

Open
NoahBK wants to merge 1 commit into
edde746:mainfrom
NoahBK:feat/tracker-reconnect-banner
Open

NoahBK wants to merge 1 commit into
edde746:mainfrom
NoahBK:feat/tracker-reconnect-banner

Conversation

@NoahBK

@NoahBK NoahBK commented Nov 12, 2026

Copy link
Copy Markdown

TrackersProvider already clears a session after a permanent auth failure, but the user only sees a disconnected account in Services.

Persist a separate reconnect marker for the affected tracker and profile. Restore the warning with that profile, and clear it after a successful connection or deliberate disconnect. Keep the existing generation guards so callbacks from an old profile cannot mark the new profile.

Extend AuthErrorBanner with the service name and its existing login flow. Reuse translated text and focus controls, disable conflicting connect actions, and let the new action fit narrow screens with enlarged text. The existing clients retain ownership of failure detection; this adds no requests, polling, settings, playback notices, or shared queue changes.

Local validation with Flutter 3.47.1:
118 tests passed across nine focused suites, including all five tracker bindings, persisted warning scope, stale callbacks, recovery, cancellation, temporary failures, existing connection launchers, and banner layout. Project analyzer, formatting, icon consistency, strict translation hygiene, and scripts/codegen.sh --check passed.

AI assistance: OpenAI Codex (GPT 6).

TrackersProvider already clears a session after a permanent auth failure,
but the user only sees a disconnected account in Services.

Persist a separate reconnect marker for the affected tracker and profile.
Restore the warning with that profile, and clear it after a successful
connection or deliberate disconnect. Keep the existing generation guards
so callbacks from an old profile cannot mark the new profile.

Extend AuthErrorBanner with the service name and its existing login flow.
Reuse translated text and focus controls, disable conflicting connect
actions, and let the new action fit narrow screens with enlarged text.
The existing clients retain ownership of failure detection; this adds no
requests, polling, settings, playback notices, or shared queue changes.

Local validation with Flutter 3.47.1:
118 tests passed across nine focused suites, including all five tracker
bindings, persisted warning scope, stale callbacks, recovery, cancellation,
temporary failures, existing connection launchers, and banner layout.
Project analyzer, formatting, icon consistency, strict translation hygiene,
and scripts/codegen.sh --check passed.
@NoahBK

NoahBK commented Nov 12, 2026

Copy link
Copy Markdown
Author

This is the smaller followup to #2677, rebuilt from main to follow the maintainer’s feedback:

#2677 (comment)

The goal is unchanged: make a lost tracker login visible and easy to reconnect. Plezy already detects permanent login failures, so this PR adds the missing notice to that existing path.

This version keeps:

  1. A saved reconnect marker for each affected tracker and profile, restored after restarting the app.
  2. A warning through AuthErrorBanner, using existing translations and each service’s normal sign in flow.
  3. Warning cleanup after a successful reconnect or deliberate disconnect.

It leaves out the previous startup and resume account checks, periodic polling, interval settings, playback toast, dismissal controls, and SerialFutureQueue changes. It adds no automatic account checks or translation keys.

The new PR contains three application files and three test files. Opening a separate PR keeps the review focused on the smaller change requested.

The warning appears when normal tracker activity discovers a permanent login failure. This improves visibility and recovery without claiming to fix the underlying cause of an unexpected signout.

snapetech added a commit to snapetech-org/pleazyng that referenced this pull request Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant