memos/web/src
memoclaw c53677fcba fix(api): improve SSE hub design and fix double-broadcast on comments
- Fix duplicate SSE event on comment creation: CreateMemoComment now
  suppresses the redundant memo.created broadcast from the inner
  CreateMemo call, emitting only memo.comment.created
- Extract reaction event-building IIFEs into buildMemoReactionSSEEvent
  helper, removing duplicated inline DB-fetch logic
- Promote resolveSSEAudienceCreatorID from method to free function
  (resolveSSECreatorID) since it never used the receiver
- Add userID to SSE connect/disconnect log lines for traceability
- Change canReceive default from permissive (return true) to
  deny-with-warning for unknown visibility types
- Add comprehensive tests covering all new helpers, visibility edge
  cases, slow-client drop behavior, and the double-broadcast fix

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-29 07:33:40 +08:00
..
components fix(api): improve SSE hub design and fix double-broadcast on comments 2026-03-29 07:33:40 +08:00
contexts refactor(web): improve Settings page maintainability and consistency (#5757) 2026-03-21 15:05:48 +08:00
helpers fix(api): switch user resource names to usernames (#5779) 2026-03-25 09:11:17 +08:00
hooks fix(api): improve SSE hub design and fix double-broadcast on comments 2026-03-29 07:33:40 +08:00
layouts fix(api): switch user resource names to usernames (#5779) 2026-03-25 09:11:17 +08:00
lib feat: treat tag setting keys as anchored regex patterns (#5759) 2026-03-22 08:07:45 +08:00
locales feat: add outline navigation to memo detail sidebar (#5771) 2026-03-24 00:20:40 +08:00
pages refactor(web): consolidate SharedMemo into MemoDetail (#5773) 2026-03-24 08:40:49 +08:00
router refactor(web): consolidate SharedMemo into MemoDetail (#5773) 2026-03-24 08:40:49 +08:00
themes refactor(theme): consolidate theme system and polish dark mode colors 2026-03-02 09:30:57 +08:00
types fix(api): switch user resource names to usernames (#5779) 2026-03-25 09:11:17 +08:00
utils feat: add outline navigation to memo detail sidebar (#5771) 2026-03-24 00:20:40 +08:00
App.tsx fix(web): persist auth token in localStorage for cross-tab sessions 2026-02-22 13:55:46 +08:00
auth-state.ts fix(auth): recover session via refresh cookie when localStorage is empty (#5748) 2026-03-20 19:21:11 +08:00
connect.ts fix(api): remove public activity service (#5734) 2026-03-18 22:42:57 +08:00
i18n.ts feat(memo): add share links for private memos (#5742) 2026-03-19 23:47:22 +08:00
index.css fix: improve KaTeX and Mermaid error handling and overflow 2026-03-02 21:11:07 +08:00
main.tsx feat: add live refresh via Server-Sent Events (SSE) with visual indicator (#5638) 2026-03-03 22:56:12 +08:00