Delay the reconnecting notices by three seconds #97

Merged
calvin merged 1 commit from reconnect-notice-delay into master 2026-11-13 14:46:01 +00:00
Owner

Same rule as Kantoor and Salt DNS: #client-error/#server-error wait 3 s (CSS animation, fill backwards), a visibilitychange handler restarts the wait; reduced motion keeps the delay without the fade; notices keep role="alert".

Measured in Chromium at 412x915 with this branch's CSS and script injected into a live LiveView page (the Karta console needs a sign-in that is disabled): a drop that reconnects never showed a notice; an un-hidden notice showed 3.05 s later; an 8 s outage showed client-error at 3.79 s; visibilitychange hid a visible notice at once and it returned 3.05 s later.

Not verified: on the Karta console itself, screen reader announcement, a real phone. Ran format, compile --force --warnings-as-errors, credo --strict. mix assets.build fails on import topbar from "../vendor/topbar" (no default export) in my worktree; the file assets/vendor/topbar.js and the import are not part of this change (I did not run the build on plain master). No markup changed, so no new test.

🤖 Generated with Claude Code

Same rule as Kantoor and Salt DNS: `#client-error`/`#server-error` wait 3 s (CSS animation, fill `backwards`), a `visibilitychange` handler restarts the wait; reduced motion keeps the delay without the fade; notices keep `role="alert"`. Measured in Chromium at 412x915 with this branch's CSS and script injected into a live LiveView page (the Karta console needs a sign-in that is disabled): a drop that reconnects never showed a notice; an un-hidden notice showed 3.05 s later; an 8 s outage showed client-error at 3.79 s; visibilitychange hid a visible notice at once and it returned 3.05 s later. Not verified: on the Karta console itself, screen reader announcement, a real phone. Ran format, compile --force --warnings-as-errors, credo --strict. `mix assets.build` fails on `import topbar from "../vendor/topbar"` (no default export) in my worktree; the file `assets/vendor/topbar.js` and the import are not part of this change (I did not run the build on plain master). No markup changed, so no new test. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Delay the reconnecting notices by three seconds
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
c5b590240b
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
calvin merged commit ae7f7a94cf into master 2026-11-13 14:46:01 +00:00
calvin deleted branch reconnect-notice-delay 2026-11-13 14:46:01 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
external/karta!97
No description provided.