Skip to content

fix(web): avoid reconnect flashes and inert draft warnings - #859

Merged
nixuuu merged 1 commit into
devfrom
fix/thread-switch-warnings
Nov 16, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/thread-switch-warnings

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 16, 2026

Copy link
Copy Markdown
Member

Change

Switching threads replaced the overview subscription and briefly showed “Reconnecting…” even when the gateway was healthy. Keep the last availability status until the replacement receives a snapshot or actually fails; real outages and the existing timeout still work.

Keep the outgoing composer's selected draft in raw state through feed teardown so draft persistence does not read an inert derived. Make the feed's wheel listener passive and update the UI API documentation.

Fixes: #847

Verification

  • Web package typecheck: 0 errors and 0 warnings.
  • Lint and formatting of all three edited code files; diff/content review of the documentation.
  • Chromium with controlled API data: 20 thread switches across desktop/phone widths and light/dark themes, with no console warnings or errors and a steady Connected status. Also checked navigation after opening a sidebar hover card.
  • Typed draft survives switching away and back; wheel scrolling moves the feed normally.
  • Slow replacement stays connected; actual loss becomes reconnecting/unavailable; navigation preserves unavailable; manual retry recovers; a replacement without a snapshot reaches the existing timeout.
  • UI copy audit: not applicable; no UI text changed.

Full repository checks, integration tests and builds are left to CI.

@nixuuu
nixuuu enabled auto-merge (squash) November 16, 2026 07:18
Keep overview availability during planned subscription replacements, retain the outgoing composer draft through teardown, and make feed wheel handling passive.

Fixes: #847
@nixuuu
nixuuu force-pushed the fix/thread-switch-warnings branch from ce03be0 to f066e21 Compare November 16, 2026 07:31
@nixuuu
nixuuu merged commit 2564b5e into dev Nov 16, 2026
11 checks passed
@nixuuu
nixuuu deleted the fix/thread-switch-warnings branch November 16, 2026 07:43
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