Auto-dismiss Hearth notifications after two seconds #7

Merged
exler merged 1 commit from fix/toast-two-seconds into main 2026-10-26 15:20:45 +01:00
Collaborator

Summary

  • Auto-dismiss ordinary and marked-as-bought/Undo notifications after 2 seconds, followed by the existing short fade (removed at 2.32s).
  • Keep Undo and explicit dismiss working while the notification is visible. Remove obsolete permanent-toast markers and update design documentation.

Verification

  • Regression demonstrated RED against original code: the ordinary toast was still present at the 2s deadline.
  • Independent real Chromium tests: 16/16 pass, covering exact timer boundaries, Undo before expiry, explicit dismissal, and concurrent/reordered responses.
  • Independent Django suite: 54/54 pass. JavaScript syntax and git diff --check pass.
  • Browser tests exercise real Django + vendored HTMX, isolated synthetic data, and Playwright clock for deterministic timing; no screenshot needed for this timing-only change.
  • Existing warning: local staticfiles directory absent in Django tests (plain static storage fixture).
  • Forgejo CI / test passed on eb69bca (run 36); Docker publication is intentionally skipped for pull requests.

Scope

No deployment or behavior changes to server-side guarded Undo. Undo is no longer available through that toast after it disappears; the ordinary list checkbox remains available.

## Summary - Auto-dismiss ordinary and marked-as-bought/Undo notifications after 2 seconds, followed by the existing short fade (removed at 2.32s). - Keep Undo and explicit dismiss working while the notification is visible. Remove obsolete permanent-toast markers and update design documentation. ## Verification - Regression demonstrated RED against original code: the ordinary toast was still present at the 2s deadline. - Independent real Chromium tests: 16/16 pass, covering exact timer boundaries, Undo before expiry, explicit dismissal, and concurrent/reordered responses. - Independent Django suite: 54/54 pass. JavaScript syntax and git diff --check pass. - Browser tests exercise real Django + vendored HTMX, isolated synthetic data, and Playwright clock for deterministic timing; no screenshot needed for this timing-only change. - Existing warning: local staticfiles directory absent in Django tests (plain static storage fixture). - Forgejo CI / test passed on eb69bca (run 36); Docker publication is intentionally skipped for pull requests. ## Scope No deployment or behavior changes to server-side guarded Undo. Undo is no longer available through that toast after it disappears; the ordinary list checkbox remains available.
Dismiss all notifications after two seconds, including Undo toasts
All checks were successful
CI / test (pull_request) Successful in 2m42s
CI / push (pull_request) Has been skipped
CI / test (push) Successful in 2m40s
CI / push (push) Successful in 19s
eb69bcaa21
exler merged commit eb69bcaa21 into main 2026-10-26 15:20:45 +01:00
exler deleted branch fix/toast-two-seconds 2026-10-26 15:20:45 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
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
exler/hearth!7
No description provided.