Files
buzz/desktop
npub1mn7jgtj4w2pd0g0zeuhxsa6jy6p0rewxz4kujt98my82ahfmp72sxjexk7 4769564d8a fix(channels): anchor thread unread divider for expand-revealed replies
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>
2026-06-22 21:57:10 -04:00
..
2026-06-11 15:06:24 +00:00
2026-06-11 15:06:24 +00:00

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 frontend
  • pnpm tauri dev - run the desktop app
  • pnpm build - typecheck and build frontend
  • pnpm typecheck - TypeScript checks
  • pnpm lint - Biome lint
  • pnpm 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