mirror of
https://github.com/block/buzz.git
synced 2026-11-03 16:01:35 +00:00
The in-thread "New" divider never appeared for replies first revealed by expanding a branch after a close->reopen cycle (E2E 04-thread-deep-nested-unread). Two compounding defects: markRevealedRepliesRead advanced a reveal-child's msg:<id> marker synchronously in the expand event handler, before React re-rendered with that child visible, so the render-time snapshot captured it as already read; and the divider resolver used `snapshot?.get(id) ?? live`, whose nullish-coalescing discarded a legitimately-captured null (never-read) and re-read the now-advanced live marker. Centralize capture in captureDividerReadState, call it before the marker advance in the reveal path, and switch the resolver to has-vs-?? so a captured null is honored. The badge predicates still read effective(msg:<id>) live and never consult the divider snapshot. Co-authored-by: Will Pfleger <pfleger.will@gmail.com> Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
Buzz
Desktop chat shell with:
- Tauri + React + TypeScript + Vite
- Tailwind CSS
- shadcn/ui-ready shared components
- Biome (lint/format/check)
- Feature-driven frontend structure
Scripts
pnpm dev- run the web frontendpnpm tauri dev- run the desktop apppnpm build- typecheck and build frontendpnpm typecheck- TypeScript checkspnpm lint- Biome lintpnpm format- Biome format (write)pnpm check- Biome check
Structure
src/shared- reusable app-wide code (ui,lib,styles)src/features- feature modules (vertical slices)src/app- top-level app composition