mirror of
https://github.com/block/buzz.git
synced 2026-10-29 05:21:31 +00:00
Three assertion-only additions to close Thufir's pass-4 BLOCK:
1. runWholeBlobCarlSuite + runWholeBlobP2a1HookSuite each gain an
assertHookState parameter (lane-specific hook oracle). Both callers
(sections: .sections/.assignments; sort: .sortModeFor("remote"))
pass assertions that target hook.result.current after the act() flush.
2. The four named test sites call assertHookState after the storage and
outbox assertions, independently verifying React state. The erroneous
"collapsed into storage" comment is removed.
3. Removed the applyRemote-returns-prev class of regression: if the
callback writes storage but returns stale React state the hook tests
now go red while the storage assertions stay green — exactly the
mutation Thufir proved in his disposable tree.
4. wholeBlobSyncCarl.shared.test.mjs trimmed from 1009 to 995 lines by
collapsing redundant inline comments (already covered in JSDoc).
All touched files ≤1000 lines (wc -l).
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