Skip to content

Fix #14: Display the connection interrupted sign only after some time of interruption#15

Merged
max-tet merged 1 commit into
mainfrom
clayde/issue-14-delay-warning
Apr 7, 2026
Merged

Fix #14: Display the connection interrupted sign only after some time of interruption#15
max-tet merged 1 commit into
mainfrom
clayde/issue-14-delay-warning

Conversation

@ClaydeCode
Copy link
Copy Markdown
Contributor

Closes #14

Replaced the isConnected boolean in the Vuex store with a disconnectedSince timestamp (null when connected, a Date.now() timestamp when disconnected). In Navbar.vue, added a 1-second reactive ticker (now) and a showConnectionWarning computed property that only returns true when disconnectedSince is non-null and at least 5000 ms have elapsed — hiding the connection warning on initial load and tolerating brief interruptions.

Replace `isConnected` boolean with `disconnectedSince` timestamp in the
Vuex store. The navbar now shows the connection warning only after the
shard has been disconnected for at least 5 seconds, suppressing the
false alarm on initial page load and tolerating brief interruptions.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ClaydeCode ClaydeCode requested a review from max-tet April 7, 2026 12:48
@max-tet max-tet merged commit 5531919 into main Apr 7, 2026
2 checks passed
@max-tet max-tet deleted the clayde/issue-14-delay-warning branch April 7, 2026 12:57
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.

Display the connection interrupted sign only after some time of interruption

2 participants