Scrum4Me/app
Madhura68 bec4c05e80 fix(m12): bell loses idea-questions on SSE reconnect
The notifications-realtime hook (PR #92) does close+connect on every
idea-question 'open' event, but the SSE state-event-handler in
/api/realtime/notifications only re-fetched story-questions. Result:
each reconnect wiped idea-questions from the bell within ~500ms, even
though the bridge had loaded them on initial page-render.

Symptom: clicking an idea-question in the bell sometimes hit a
\"question gone\" race because the close+connect after the live event
emptied them out.

Fix: SSE initial-state now does a Promise.all on
- story-questions (productAccessFilter, existing path)
- idea-questions (idea.user_id === session.userId, M12 strict-private)
and sends merged + sorted state with discriminated \`kind\` field.

This mirrors the bridge's own initial fetch (PR #92), so a bridge-mount
and an SSE-reconnect now produce identical state.

Tests: 546/546 still green.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-05 13:14:48 +02:00
..
(app) ui: /ideas/[id] detail page with 4-tab layout (M12 T-510) 2026-05-04 21:35:48 +02:00
(auth) fix(a11y): static accessibility findings (v1-readiness #4 — code-side) 2026-05-04 13:58:34 +02:00
(mobile) feat(ST-1138): mobile Solo-pagina + verify TaskDetailDialog (T-331/T-332/T-333) 2026-05-04 10:52:41 +02:00
_components/tasks fix(a11y): static accessibility findings (v1-readiness #4 — code-side) 2026-05-04 13:58:34 +02:00
api fix(m12): bell loses idea-questions on SSE reconnect 2026-05-05 13:14:48 +02:00
debug-env fix(privacy): NODE_ENV-guard 4 debug-routes (before-launch privacy review) 2026-05-04 14:16:49 +02:00
debug-realtime fix(privacy): NODE_ENV-guard 4 debug-routes (before-launch privacy review) 2026-05-04 14:16:49 +02:00
styles M14: TaskDialog (create/edit) + story auto-promotion (#21) 2026-04-30 16:55:20 +02:00
apple-icon.png chore: documentatie naar docs/, iconen bijgewerkt, theme.css verplaatst 2026-04-24 22:51:42 +02:00
favicon.ico chore: documentatie naar docs/, iconen bijgewerkt, theme.css verplaatst 2026-04-24 22:51:42 +02:00
globals.css M14: TaskDialog (create/edit) + story auto-promotion (#21) 2026-04-30 16:55:20 +02:00
icon.png chore: documentatie naar docs/, iconen bijgewerkt, theme.css verplaatst 2026-04-24 22:51:42 +02:00
layout.tsx Add analytics and documentation updates 2026-04-25 15:11:51 +02:00
page.tsx feat(landing): rewrite around local-first proposition + architecture diagram 2026-05-03 20:24:10 +02:00