Commit Graph

19 Commits

Author SHA1 Message Date
zhixian
07267c08ee docs: recipe engine redesign — composable steps with wizard UI
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 22:35:04 +09:00
zhixian
99dbe35d46 feat: global chat drawer, setup-agent recipe, profile sync, UX improvements
- Chat as collapsible right-side Sheet drawer, accessible from all pages
- Replace default-model-switch recipe with setup-agent identity recipe
- Add setup_agent_identity backend command (writes IDENTITY.md)
- Add "agent" param type to ParamForm for agent picker dropdown
- Custom action support in Cook flow (non-config-patch recipes)
- Profile save/delete in Settings now syncs to other pages via configVersion
- Move Backups section from Doctor to Settings
- Hide Doctor tab from sidebar navigation
- History preview now opens in Dialog instead of inline at page bottom
- Simplify History.tsx from useReducer to useState

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 21:40:10 +09:00
zhixian
3286ae3af1 feat: Discord guild/channel pickers, apply flow, agent identity
- Replace raw guild_id/channel_id text inputs with dropdown pickers
  showing human-readable names from openclaw config
- Add persistent file-level cache for Discord channel data with
  dedicated Channels tab and refresh button
- Read agent name/emoji from IDENTITY.md in workspace directories
- Rename Install→Cook throughout UI
- Add step-by-step apply flow: apply config → restart gateway → done
- Add global loading overlay for blocking operations
- Use react-diff-viewer-continued for config diff preview
- Fix validation bugs (Option<usize> null handling, discord type bypass)
- Fix serde camelCase on PreviewResult/ApplyResult structs
- Make slow commands async (refresh_discord, restart_gateway)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 18:37:28 +09:00
zhixian
1fbf266034 fix: replace Popover+Command combobox with simple autocomplete
The Radix Popover-based ComboboxField didn't work in Tauri's webview
(clicks had no effect). Replaced with a plain Input + absolute-
positioned dropdown list that uses only standard DOM events — no
Radix Portal, no cmdk dependency, no asChild composition issues.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 14:01:50 +09:00
zhixian
fcee6de2b4 fix: combobox trigger submitting form instead of opening popover
The ComboboxField's Button inside the <form> defaulted to
type="submit", causing form submission on click. Added explicit
type="button" so it opens the dropdown instead.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 13:56:01 +09:00
zhixian
60d1595b8e feat: fix version display, add backup/restore before upgrade
- Fix Home showing "Update available" when versions are identical
  by adding frontend guard (latest !== installed)
- Add Rust backup commands: backup_before_upgrade copies openclaw dir
  (excluding sessions/archive) to .clawpal/backups/{timestamp}/,
  list_backups, restore_from_backup, delete_backup
- Home: add "Backup & Upgrade" button next to "View update" that
  creates a backup then opens the releases page
- Doctor: add "Backups" section listing available backups with
  Show, Restore (with confirmation), and Delete (with confirmation)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 13:49:18 +09:00
zhixian
7d47b7f859 feat: add confirmation dialogs, show-folder buttons, refresh feedback
- Doctor: wrap all memory/session clear buttons with AlertDialog
  confirmation, destructive red styling, and "Show" folder buttons
- Doctor: add loading state ("Refreshing...") to Refresh button
- Settings: wrap profile Delete buttons with AlertDialog confirmation
- Settings: fix provider combobox not using cached catalog — prevent
  empty CLI refresh result from overwriting cached data

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 12:51:10 +09:00
zhixian
af5b853016 feat: switch to shadcn light theme, improve Settings UX
- Replace custom dark navy color palette with shadcn default light theme
- Remove all custom --color-* CSS variables and use semantic classes
- Remove Chat Model section from Settings (no longer needed)
- Replace native <datalist> with Combobox (Popover + Command) for
  provider/model selection in Settings
- Add shadcn command, popover, and dialog components

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 02:22:28 +09:00
zhixian
ca6bf7536f feat: migrate Settings page to shadcn Card/Input/Select/Checkbox/Badge/Button
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 02:00:25 +09:00
zhixian
30b2b11a65 feat: migrate Home page to shadcn Card/Badge/Button — remove all inline styles
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 01:53:55 +09:00
zhixian
499e74aaf4 feat: migrate Doctor page to shadcn Card/Badge/Button
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 01:51:14 +09:00
zhixian
8a88bd0565 feat: migrate History/Recipes/Install pages to shadcn components
Replace inline styles and old CSS class references with Tailwind
utilities and shadcn Card, Badge, Button, Input, and Label components.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 01:48:09 +09:00
zhixian
eb6daad1e1 feat: migrate Chat to shadcn ScrollArea/Select/Input/Button
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 01:44:23 +09:00
zhixian
004460022a feat: migrate ParamForm to shadcn Input/Textarea/Label/Button
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 01:41:09 +09:00
zhixian
a26da28da3 feat: migrate DiffViewer + RecipeCard to shadcn components
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 01:38:38 +09:00
zhixian
f2eac4b5d6 feat: migrate App sidebar to shadcn Button + Separator + Tailwind
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 01:36:17 +09:00
zhixian
8d4bcd6009 chore: initialize shadcn/ui with Tailwind v4, add UI components
- Create components.json (new-york style, slate base, CSS variables)
- Add shadcn/ui components: button, card, input, select, badge,
  scroll-area, checkbox, separator, label, textarea
- Create src/lib/utils.ts with cn() helper (clsx + tailwind-merge)
- Replace old CSS classes in styles.css with Tailwind v4 @theme inline
  block containing shadcn color tokens and custom app theme colors
- Add radix-ui dependency (required by shadcn components)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 01:33:02 +09:00
zhixian
e7c6331110 chore: add Tailwind CSS v4 and shadcn utility dependencies
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 01:28:04 +09:00
zhixian
700c5e9ab2 feat: ClawPal v0.1 — Tauri desktop GUI for OpenClaw
4-page layout (Home, Recipes, Settings, Doctor) with sidebar nav
and integrated Chat panel powered by OpenClaw agent (--local).

- Home: status, agents overview, recommended recipes, recent activity
- Recipes: browse, preview diff, apply with params
- Settings: model profiles CRUD, chat model selection, provider catalog
- Doctor: diagnostics with auto-fix
- Chat: OpenClaw agent integration with session persistence,
  agent selector, read-only advisory context injection
- Progressive data loading to avoid UI blocking
- API key resolution from OpenClaw agent auth-profiles
- Model catalog from openclaw CLI with cache

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 01:16:38 +09:00