Commit 8fa5762
feat(platform): enhance Human-in-the-Loop block with improved review UX
- Backend: Fix message handling and unify API structure
- Fix HITL block to properly yield review messages for both approved and rejected reviews
- Unify review API structure with single `reviews` array using `approved` boolean field
- Remove separate approved_reviews/rejected_review_ids in favor of cleaner unified approach
- Frontend: Complete UI/UX overhaul for review interface
- Replace plain JSON textarea with type-aware input components matching run dialog styling
- Add "Approve All" and "Reject All" buttons with smart disabled states
- Show rejection reason input only when excluding items (simplified UX)
- Fix Reviews tab auto-population when execution status changes to REVIEW
- Add proper local state management for real-time input updates
- Use design system Input components for consistent rounded styling
Key improvements:
- No more JSON syntax errors for string inputs
- Professional appearance matching platform standards
- Intuitive workflow with conditional UI elements
- Type-safe unified API structure
- Real-time input updates with proper state management
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent 39ec38f commit 8fa5762
File tree
8 files changed
+266
-140
lines changed- autogpt_platform
- backend/backend
- blocks
- server/v2/executions/review
- frontend/src
- app
- (platform)/library/agents/[id]/components
- AgentRunsView/components/SelectedRunView
- OldAgentLibraryView/components
- api
- components/organisms
- PendingReviewCard
- PendingReviewsList
8 files changed
+266
-140
lines changedLines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | 151 | | |
153 | | - | |
154 | 152 | | |
155 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
156 | 157 | | |
157 | 158 | | |
158 | | - | |
| 159 | + | |
| 160 | + | |
Lines changed: 16 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
101 | 104 | | |
102 | 105 | | |
103 | 106 | | |
104 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
105 | 110 | | |
106 | 111 | | |
107 | 112 | | |
| |||
168 | 173 | | |
169 | 174 | | |
170 | 175 | | |
171 | | - | |
| 176 | + | |
172 | 177 | | |
173 | 178 | | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
| 179 | + | |
| 180 | + | |
179 | 181 | | |
180 | 182 | | |
181 | 183 | | |
182 | 184 | | |
183 | | - | |
184 | | - | |
| 185 | + | |
| 186 | + | |
185 | 187 | | |
186 | 188 | | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
196 | 194 | | |
197 | 195 | | |
198 | 196 | | |
| |||
Lines changed: 14 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
| 142 | + | |
149 | 143 | | |
150 | 144 | | |
151 | 145 | | |
| |||
156 | 150 | | |
157 | 151 | | |
158 | 152 | | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
171 | 166 | | |
172 | 167 | | |
173 | 168 | | |
| |||
Lines changed: 26 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
53 | 59 | | |
54 | 60 | | |
55 | 61 | | |
| |||
114 | 120 | | |
115 | 121 | | |
116 | 122 | | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
133 | 142 | | |
134 | 143 | | |
135 | 144 | | |
| |||
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
80 | 87 | | |
81 | 88 | | |
82 | 89 | | |
| |||
382 | 389 | | |
383 | 390 | | |
384 | 391 | | |
385 | | - | |
| 392 | + | |
386 | 393 | | |
387 | 394 | | |
388 | 395 | | |
| |||
392 | 399 | | |
393 | 400 | | |
394 | 401 | | |
395 | | - | |
| 402 | + | |
396 | 403 | | |
397 | 404 | | |
398 | 405 | | |
399 | 406 | | |
400 | 407 | | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
401 | 412 | | |
402 | 413 | | |
403 | 414 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2988 | 2988 | | |
2989 | 2989 | | |
2990 | 2990 | | |
2991 | | - | |
| 2991 | + | |
2992 | 2992 | | |
2993 | 2993 | | |
2994 | 2994 | | |
| |||
3001 | 3001 | | |
3002 | 3002 | | |
3003 | 3003 | | |
3004 | | - | |
| 3004 | + | |
3005 | 3005 | | |
3006 | 3006 | | |
3007 | | - | |
| 3007 | + | |
| 3008 | + | |
| 3009 | + | |
| 3010 | + | |
3008 | 3011 | | |
3009 | 3012 | | |
3010 | 3013 | | |
3011 | | - | |
3012 | | - | |
3013 | 3014 | | |
3014 | 3015 | | |
3015 | 3016 | | |
| |||
8119 | 8120 | | |
8120 | 8121 | | |
8121 | 8122 | | |
| 8123 | + | |
| 8124 | + | |
| 8125 | + | |
| 8126 | + | |
| 8127 | + | |
8122 | 8128 | | |
8123 | 8129 | | |
8124 | 8130 | | |
| |||
8138 | 8144 | | |
8139 | 8145 | | |
8140 | 8146 | | |
8141 | | - | |
| 8147 | + | |
8142 | 8148 | | |
8143 | 8149 | | |
8144 | 8150 | | |
8145 | | - | |
| 8151 | + | |
8146 | 8152 | | |
8147 | 8153 | | |
8148 | 8154 | | |
8149 | 8155 | | |
8150 | 8156 | | |
8151 | | - | |
| 8157 | + | |
8152 | 8158 | | |
8153 | 8159 | | |
8154 | | - | |
8155 | | - | |
8156 | | - | |
8157 | | - | |
8158 | | - | |
8159 | | - | |
8160 | | - | |
8161 | | - | |
8162 | | - | |
8163 | | - | |
| 8160 | + | |
| 8161 | + | |
8164 | 8162 | | |
8165 | 8163 | | |
8166 | 8164 | | |
| 8165 | + | |
8167 | 8166 | | |
8168 | | - | |
| 8167 | + | |
8169 | 8168 | | |
8170 | 8169 | | |
8171 | 8170 | | |
| |||
0 commit comments