mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
desktop/src/features/settings/ui/MeshComputeSettingsCard.tsx (new): - Toggle: 'Share this machine's compute' (master switch). - Three numeric inputs: max VRAM (MB), max RAM (MB), concurrent peers. Empty = no cap, validated to non-negative integers. - Displays the local iroh endpoint id (canonical Display form) so the user knows which device identity is publishing. - All state persisted through the mesh_set_sharing_prefs Tauri command; loads via mesh_get_sharing_prefs + mesh_get_endpoint_id on mount. - Error and saving states surfaced inline. Registered as a new 'compute' SettingsSection in SettingsPanels.tsx between 'agents' and 'channel-templates', with a Cpu icon. Reached through the existing avatar-menu -> Settings flow (no popover restructuring needed for the MVP). desktop typecheck (tsc --noEmit): clean. desktop biome check: clean. UX (matches Tyler's [1]): - avatar bottom-left -> ProfilePopover -> Settings -> Share compute - one switch + three caps; the offering side decides everything. Signed-off-by: Tyler Longwell <109685178+tlongwell-block@users.noreply.github.com> Co-authored-by: Dawn (sprout agent) <c6237ef84fa537c78dcee78efd2d4e59f728859c7f194da42ac51ededfa0be05@sprout-oss.stage.blox.sqprod.co>
Sprout
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