J.A.R.V.I.S-rust/crates/jarvis-gui
Bossiara13 4efe306b3a feat(gui): profile switcher chip in header
Visible visual indicator of the active profile + click-to-swap dropdown.
Closes the last small UX gap pointed out in earlier sessions.

Tauri (crates/jarvis-gui/src/tauri_commands/profile.rs)
  - profile_list()   → Vec<String> of available profile names
  - profile_active() → {name, description, icon, greeting}
  - profile_set(name) → swaps active profile, returns new active

Frontend (frontend/src/components/Header.svelte)
  - Polls profile_active every 5 seconds.
  - Shows a coloured chip with icon+name when profile != "default"
    (orange tint, attention-grabbing). For "default" — muted star chip.
  - Click opens a dropdown listing all profile names; click one → swap.
  - Dropdown closes on outside-click (shared handler with lang dropdown).
  - SCSS styled to match existing aesthetic.

Build: cargo build --release -p jarvis-gui green (2m).

Now the user can see at a glance which profile is active (e.g. "💼 work")
without having to ask voice or open Settings.
2026-05-16 00:48:23 +03:00
..
capabilities Tray options implementation + Voice system rewrite + build fixes 2026-01-07 23:29:46 +05:00
gen/schemas chore: gitignore tauri-generated schema files 2026-04-22 17:55:56 +03:00
src feat(gui): profile switcher chip in header 2026-05-16 00:48:23 +03:00
build.rs build(gui): build.rs auto-runs npm run build, no more stale frontend bundle 2026-05-15 13:18:08 +03:00
Cargo.toml feat(gui): footer backend chips + Settings 'AI Backends' tab + i18n 2026-05-15 17:06:46 +03:00
Makefile.toml project restructure with Rust workspaces 2026-01-04 05:19:47 +05:00
tauri.conf.json Tray options implementation + Voice system rewrite + build fixes 2026-01-07 23:29:46 +05:00