34b972ec2a
The previous build used IntersectionObserver to highlight whichever section was in view. With nine sections of unequal heights and smooth- scroll firing observer callbacks mid-scroll, the active highlight drifted (clicking 'Konto' showed 'Soundboard' as active because the last section never crossed the observer's 20%-30% band). Switched to a tab pattern (macOS System Settings / Discord / GitHub style): the sidebar selects ONE section, only that section renders. `useState<TabId>` is the single source of truth; no observer, no scrolling between sections, no anchor links to clash with HashRouter. Mobile fallback (<lg) gets a `<select>` dropdown above the panel. Drops the now-unused `id` prop from Section and removes the IntersectionObserver effect.
@chat-app/desktop
Tauri v2 + React + Vite + Tailwind desktop client (macOS / Windows / Linux).
Prerequisites
- Node 22+, pnpm 9+
- Rust + Cargo (install via https://rustup.rs)
- Platform build deps:
- macOS: Xcode Command Line Tools
- Linux:
libwebkit2gtk-4.1-dev,build-essential,libssl-dev(Debian/Ubuntu) - Windows: Microsoft C++ Build Tools + WebView2
Dev
# from repo root
pnpm install
pnpm desktop:dev # tauri dev — launches Vite + native window
pnpm desktop:build # production bundle per platform
Layout
src/— React app (Vite bundles intodist/).src-tauri/— Rust backend.main.rswires Tauri plugins.vite.config.ts— port1420, HMR on1421, aliases to shared packages.
Secure Storage
Session tokens + user private keys live in Stronghold (tauri-plugin-stronghold).
Local message history lives in SQLite (tauri-plugin-sql), DB file encrypted at rest.