Commit 4899d25
feat(dashboard): align chat bubbles to request/response sides and add… (#135)
* feat(dashboard): align chat bubbles to request/response sides and add collapsible function notes
User/request messages positioned left, agent/response messages right to
reflect audit log request-response flow. Function calls (from AI) align
right, function results (from client) align left. Function notes are now
collapsible via <details> — showing one-line summary by default with
expandable full content.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(dashboard): address code review findings in conversation drawer
- Fix CSS specificity so anchor border-color is not overridden by
role-specific function note styles
- Resolve tool result function names by matching tool_call_id against
call records instead of relying on m.name
- Add type="button" to Close button to prevent implicit form submission
- Use indexed key in tool-calls x-for loop to avoid duplicate keys
- Process requestBody.input in a single pass to preserve original
ordering of messages and function_call_output items
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(dashboard): handle Responses API input items directly instead of delegating to helper
extractResponsesInputMessages was designed for the full input, not
individual items. Process function_call, function_call_output, and
role-based message items explicitly in the single-pass loop, falling
back to the helper only for non-array inputs (plain strings).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(dashboard): lock body scroll when interactions drawer is open
Add overflow:hidden to body via conversation-drawer-open class toggled
on open/close. Make #interactions-drawer-content the scrollable region
with flex:1 and overflow-y:auto so the drawer scrolls independently.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 72866c0 commit 4899d25
3 files changed
Lines changed: 275 additions & 26 deletions
File tree
- internal/admin/dashboard
- static
- css
- js/modules
- templates
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1281 | 1281 | | |
1282 | 1282 | | |
1283 | 1283 | | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
1284 | 1288 | | |
1285 | 1289 | | |
1286 | 1290 | | |
| |||
1301 | 1305 | | |
1302 | 1306 | | |
1303 | 1307 | | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
1304 | 1314 | | |
| 1315 | + | |
1305 | 1316 | | |
1306 | 1317 | | |
1307 | 1318 | | |
1308 | 1319 | | |
1309 | 1320 | | |
1310 | 1321 | | |
1311 | | - | |
1312 | | - | |
1313 | 1322 | | |
1314 | 1323 | | |
1315 | 1324 | | |
| |||
1330 | 1339 | | |
1331 | 1340 | | |
1332 | 1341 | | |
1333 | | - | |
1334 | | - | |
| 1342 | + | |
1335 | 1343 | | |
1336 | 1344 | | |
1337 | 1345 | | |
1338 | | - | |
| 1346 | + | |
| 1347 | + | |
1339 | 1348 | | |
1340 | 1349 | | |
1341 | 1350 | | |
| |||
1346 | 1355 | | |
1347 | 1356 | | |
1348 | 1357 | | |
1349 | | - | |
| 1358 | + | |
1350 | 1359 | | |
1351 | 1360 | | |
1352 | 1361 | | |
| |||
1386 | 1395 | | |
1387 | 1396 | | |
1388 | 1397 | | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
| 1433 | + | |
| 1434 | + | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
1389 | 1503 | | |
1390 | 1504 | | |
1391 | 1505 | | |
| |||
Lines changed: 129 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| 86 | + | |
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
| |||
110 | 112 | | |
111 | 113 | | |
112 | 114 | | |
113 | | - | |
| 115 | + | |
114 | 116 | | |
115 | 117 | | |
116 | 118 | | |
| |||
125 | 127 | | |
126 | 128 | | |
127 | 129 | | |
128 | | - | |
| 130 | + | |
129 | 131 | | |
130 | 132 | | |
131 | 133 | | |
| |||
145 | 147 | | |
146 | 148 | | |
147 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
148 | 158 | | |
149 | 159 | | |
150 | 160 | | |
| |||
162 | 172 | | |
163 | 173 | | |
164 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
165 | 189 | | |
166 | 190 | | |
167 | 191 | | |
168 | 192 | | |
169 | 193 | | |
170 | 194 | | |
171 | | - | |
172 | | - | |
173 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
174 | 214 | | |
175 | 215 | | |
176 | 216 | | |
177 | 217 | | |
178 | 218 | | |
179 | 219 | | |
180 | 220 | | |
181 | | - | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
182 | 225 | | |
183 | 226 | | |
184 | 227 | | |
185 | 228 | | |
186 | 229 | | |
187 | 230 | | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
188 | 235 | | |
189 | 236 | | |
190 | 237 | | |
| |||
200 | 247 | | |
201 | 248 | | |
202 | 249 | | |
203 | | - | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
204 | 306 | | |
205 | 307 | | |
206 | 308 | | |
| |||
210 | 312 | | |
211 | 313 | | |
212 | 314 | | |
213 | | - | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
214 | 318 | | |
215 | 319 | | |
216 | 320 | | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
217 | 332 | | |
218 | 333 | | |
219 | 334 | | |
| |||
225 | 340 | | |
226 | 341 | | |
227 | 342 | | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
228 | 349 | | |
229 | 350 | | |
230 | 351 | | |
| |||
0 commit comments