Commit 494b8eb
authored
feat(dashboard): add comprehensive configuration editing UI (#402)
- Add EditModal component with support for multiple field types (text, number, boolean, select, multiselect, textarea, json)
- Implement full CRUD operations for Models and Endpoints (add, edit, delete)
- Add edit functionality for all configuration sections:
* Prompt Guard (PII Detection, Jailbreak Detection)
* Similarity Cache (Similarity BERT, Semantic Cache)
* Intelligent Routing (In-tree/Out-tree Classifiers)
* Tools Selection
* Observability (Distributed Tracing)
* Classification API
- Add edit functionality for Categories (system prompt, reasoning settings)
- Add edit functionality for Reasoning Families
- Add model score management in Categories (add, edit, delete model scores)
- Implement dynamic dropdowns populated from configuration:
* Reasoning Family selection from configured reasoning families
* Preferred Endpoints selection from configured endpoints
* Model selection for category model scores
- Add complete pricing configuration (currency, prompt/completion costs)
- Add complete PII policy configuration (allow/block, 17 PII types)
- Visualize all configuration fields (no JSON input required)
- Fix docker-compose volume mount to allow config file writes (ro -> rw)
- Remove deprecated fields (endpoint models, health_check_path, monitoring dashboard)
- Improve UI/UX with better card layouts, icons, and visual feedback
Backend changes:
- Add POST /api/router/config/update endpoint for configuration updates
- Add JSON to YAML conversion for config file writes
Frontend changes:
- Create reusable EditModal component with field validation
- Update ConfigPage with comprehensive edit buttons and handlers
- Add CSS styles for edit buttons, model scores, and multiselect fields
- Improve endpoint display (separate address, port, weight)
This enables full configuration management through the dashboard UI without
manual YAML editing.
Signed-off-by: bitliu <[email protected]>1 parent 4328db1 commit 494b8eb
File tree
7 files changed
+2810
-417
lines changed- dashboard
- backend
- frontend/src
- components
- pages
- deploy/docker-compose
7 files changed
+2810
-417
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
62 | 139 | | |
63 | 140 | | |
64 | 141 | | |
| |||
213 | 290 | | |
214 | 291 | | |
215 | 292 | | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
216 | 302 | | |
217 | 303 | | |
218 | 304 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | | - | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | | - | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | | - | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | | - | |
| 40 | + | |
40 | 41 | | |
41 | | - | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
47 | | - | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | | - | |
| 52 | + | |
52 | 53 | | |
53 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
54 | 61 | | |
55 | 62 | | |
56 | 63 | | |
| |||
0 commit comments