Files
buzz/desktop
npub1mn7jgtj4w2pd0g0zeuhxsa6jy6p0rewxz4kujt98my82ahfmp72sxjexk7andWill Pfleger 8a4ef01cff feat(desktop): virtualize timeline + thread pane onto single scroll owner
The two chat-message surfaces (MessageTimeline, MessageThreadPanel) ran
on a hand-rolled scroll manager with two ResizeObservers and a double-rAF
scrollTop band-aid that raced during prepend, causing the channel-jump
bug. Replace it with @tanstack/react-virtual as the single scroll owner.

virtual-core@3.17.0 ships the three hard behaviors natively, so they are
configuration not hand-built code: anchorTo:"end" holds the viewport on
load-older prepend, followOnAppend pins the bottom during a burst, and the
internal reconcile loop settles deep-link scrollToIndex once the target
row measures. The hook owns only what the library does not: the
short-channel bottom-align pad, the at-bottom/new-message pill state, and
the deep-link highlight.

Channel/thread switch resets via key-remount (fresh virtualizer = zero
stale measurement cache) rather than porting the old reset logic.
useTimelineScrollManager + useLoadOlderOnScroll deleted, zero callers.

Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
2026-06-17 19:42:16 -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