mirror of
https://github.com/block/buzz.git
synced 2026-11-06 17:31:19 +00:00
Finding [L4] MessageActionBar (Tier 3): the action bar re-rendered with every row render even when its props were unchanged. Wrap it in `React.memo`. The memo was dead on arrival, though — the row passed an inline `onRemindLater` arrow, a fresh function identity every render that defeated the shallow prop compare. Extract it to a `handleRemindLater` useCallback (deps [channelId, openReminder]); all other props are already stable (openReminder and handleReactionSelect are useCallbacks, setBadgeBurstEmoji is a state setter), so the memo now actually skips. Co-authored-by: Tyler Longwell <tlongwell@block.xyz> Signed-off-by: Tyler Longwell <tlongwell@block.xyz>
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