Skip to content

fix(hive): resolve push handling regressions and improve notification UX#20

Merged
lucor merged 3 commits intomainfrom
fix/regressions
May 5, 2026
Merged

fix(hive): resolve push handling regressions and improve notification UX#20
lucor merged 3 commits intomainfrom
fix/regressions

Conversation

@lucor
Copy link
Copy Markdown
Owner

@lucor lucor commented May 5, 2026

  • Make Service Worker resilient to IndexedDB upgrade blocks during push by creating the DB on-demand when it does not exist yet.
  • Harden notification click flow: best-effort focus/openWindow, catch malformed client URLs, and persist after opening to avoid Android activation stalls.
  • Remove redundant E2E envelope null check after type guard.
  • Improve relative time formatting: show seconds for recent messages, absolute HH:MM for same-day >1h and previous days.
  • Expand test coverage for SW push, click, credentials, and bootstrap.

lucor added 3 commits May 6, 2026 00:16
- Make Service Worker resilient to IndexedDB upgrade blocks during push
  by creating the DB on-demand when it does not exist yet.
- Harden notification click flow: best-effort focus/openWindow, catch
  malformed client URLs, and persist after opening to avoid Android
  activation stalls.
- Remove redundant E2E envelope null check after type guard.
- Improve relative time formatting: show seconds for recent messages,
  absolute HH:MM for same-day >1h and previous days.
- Expand test coverage for SW push, click, credentials, and bootstrap.
TypeScript does not narrow the destructured 'envelope' binding even
after isE2EEnvelope() returns true because 'beebuzz' is optional in
the E2EEnvelope type. Add an explicit null check to satisfy the
compiler and match the pre-squash behavior.
- Disable svelte/prefer-svelte-reactivity for new Date() instances in
  formatRelativeTime, which is a pure utility function, not Svelte state.
- Disable @typescript-eslint/no-unsafe-assignment for vitest's
  expect.objectContaining matcher in the credentials-failure test.
@lucor lucor merged commit 0f61e5d into main May 5, 2026
3 checks passed
@lucor lucor deleted the fix/regressions branch May 5, 2026 22:32
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