Commit 32b27e8
feat: redesign setup modal with toolkit tabs and agent frameworks (#1506)
* feat: redesign setup modal with toolkit tabs, agent frameworks, and syntax highlighting
- Add top-level Agents/Toolkits segmented tabs
- Reorganize code snippets as toolkit-first sub-tabs (OpenAI SDK, Vercel AI SDK, LangChain, cURL)
- Add Python/TypeScript language toggle for OpenAI SDK tab
- Add Model field (auto) to connection details
- Add agent framework tabs: OpenClaw (with CLI/wizard sub-tabs) and Hermes Agent (coming soon)
- Add OpenClaw interactive wizard with onboard fields and CLI configuration
- Add syntax highlighting via highlight.js (Python, TypeScript, Bash)
- Add eye toggle + disabled copy button when API key is masked
- Add tab/toolkit logos (OpenAI, Vercel, LangChain, Python, TypeScript, OpenClaw, Hermes)
- Add ARIA roles (tablist, tab, tabpanel) for accessibility
- Add CopyButton disabled prop with visual feedback
* fix: disable API key copy button when key is masked in FrameworkSnippets
* feat: add Python language toggle for Vercel AI SDK tab
* feat: add agent type system with category/platform selection and platform-filtered setup
- Add agent_category (personal/app) and agent_platform columns to agents table
- Migration backfills existing agents to personal/openclaw
- Update CreateAgentDto and RenameAgentDto to accept category/platform
- Add updateAgentType method to AgentLifecycleService
- Add AgentTypePicker component (reusable in create modal + settings)
- Add OpenClawSetup and HermesSetup dedicated setup components
- Add platform-filtered wizard in SetupStepAddProvider (reactive Show/Switch)
- Merge Settings tabs into single page with name + type + API key + setup
- Show platform icon in agent cards and Overview header
- Add LangChain (blue pinwheel), Other (3D box) icons
- Add YAML syntax highlighting for Hermes config
- Replace Total cost with Tokens in agent cards
- Fix SolidJS reactivity in SetupStepAddProvider (use Show/Switch not if/return)
- Fix CopyButton disabled reactivity (check inside handler)
- Add eye toggle + disabled copy to all code blocks with API keys
- Add "Change agent type" link in setup that scrolls to type picker
- Accessibility: visually-hidden radio inputs, focus-within rings, ARIA roles
* fix: address review feedback — clear stale platform, fix save validation
* feat: redesign setup modal UX — tab-style type selection, platform-specific instructions, Settings change modal (#1522)
- Replace category radio buttons with panel tab style in AgentTypePicker
- Default to Personal AI Agent / OpenClaw on create; auto-select first platform on tab switch
- Show platform-specific setup instructions (OpenClaw CLI, Hermes config, SDK snippets, cURL)
- Fix FrameworkSnippets reactivity — activeTab now syncs when defaultToolkit prop changes
- Redesign Settings agent type section: read-only display + Change button opens modal
- After saving type change, SetupModal opens automatically with new instructions
- Add platform icon to header breadcrumb
- Update syntax highlighting: softer string colors, blue instead of green
- Darken muted-foreground text color for better readability
- Remove border-radius from platform icons, invert OpenAI/Vercel logos in dark mode
- Update all related tests (AgentTypePicker, FrameworkSnippets, SetupStepAddProvider, Settings, etc.)
* chore: regenerate plugin bundle after merging main
* fix: handle undefined platform fallback in category change handlers
* fix: remove regex HTML stripping flagged by CodeQL
Check highlighted output directly instead of stripping tags with a
regex that CodeQL flags as incomplete multi-character sanitization.
---------
Co-authored-by: Sébastien Conejo <sebastien.conejo@buddyweb.fr>
Co-authored-by: Sébastien Conejo <sebastien@buddyweb.fr>1 parent 6caf204 commit 32b27e8
File tree
126 files changed
+4886
-1038
lines changed- .changeset
- packages
- backend/src
- analytics
- controllers
- services
- common/dto
- database
- migrations
- entities
- otlp/services
- frontend
- public/icons
- src
- components
- pages
- services
- api
- styles
- tests
- components
- pages
- services
- openclaw-plugins/manifest/public
- assets
- icons
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
126 files changed
+4886
-1038
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 11 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
| |||
183 | 187 | | |
184 | 188 | | |
185 | 189 | | |
186 | | - | |
| 190 | + | |
187 | 191 | | |
188 | 192 | | |
189 | 193 | | |
| |||
195 | 199 | | |
196 | 200 | | |
197 | 201 | | |
198 | | - | |
| 202 | + | |
199 | 203 | | |
200 | 204 | | |
201 | 205 | | |
| |||
242 | 246 | | |
243 | 247 | | |
244 | 248 | | |
245 | | - | |
| 249 | + | |
246 | 250 | | |
247 | 251 | | |
248 | 252 | | |
| |||
272 | 276 | | |
273 | 277 | | |
274 | 278 | | |
275 | | - | |
| 279 | + | |
276 | 280 | | |
277 | 281 | | |
278 | 282 | | |
| |||
301 | 305 | | |
302 | 306 | | |
303 | 307 | | |
304 | | - | |
| 308 | + | |
305 | 309 | | |
306 | 310 | | |
307 | 311 | | |
| |||
329 | 333 | | |
330 | 334 | | |
331 | 335 | | |
332 | | - | |
| 336 | + | |
333 | 337 | | |
334 | 338 | | |
335 | 339 | | |
| |||
Lines changed: 31 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
79 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
80 | 88 | | |
81 | 89 | | |
82 | 90 | | |
| |||
102 | 110 | | |
103 | 111 | | |
104 | 112 | | |
105 | | - | |
| 113 | + | |
106 | 114 | | |
107 | 115 | | |
108 | 116 | | |
109 | 117 | | |
110 | | - | |
111 | | - | |
112 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
113 | 128 | | |
114 | | - | |
115 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
116 | 139 | | |
117 | | - | |
| 140 | + | |
118 | 141 | | |
119 | 142 | | |
120 | 143 | | |
| |||
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
28 | 58 | | |
29 | 59 | | |
30 | 60 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| 253 | + | |
| 254 | + | |
253 | 255 | | |
254 | 256 | | |
255 | 257 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
2 | 11 | | |
3 | 12 | | |
4 | 13 | | |
5 | 14 | | |
6 | 15 | | |
7 | 16 | | |
8 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
9 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
10 | 31 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
44 | 68 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
2 | 11 | | |
3 | 12 | | |
| 13 | + | |
4 | 14 | | |
5 | 15 | | |
6 | 16 | | |
7 | 17 | | |
8 | | - | |
9 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
10 | 32 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
| 137 | + | |
136 | 138 | | |
137 | 139 | | |
138 | 140 | | |
| |||
0 commit comments