Commit 9e90103
authored
feat: update iframe capabilities for dojo (2) (#731)
* Add `chatDefaultOpen` parameter to close chat sidebar by default
* chore: remove unused imports
* feat: pass `chatDefaultOpen` to all uses of `CopilotSidebar` in Dojo
No instances of `CopilotPopup` are currently being used, and `CopilotChat` does not support `defaultOpen` prop
* fix: hide mobile header when `sidebarHidden=true` (`sidebar=false`)
* chore: consolidate redundant base styles
* fix: enforce body background/foreground colors (currently broken on 404)
* fix: support dark mode on code tabs
* chore: untrack and remove .DS_Store
* feat: improve dark mode styles
* feat: allow overriding theme via url `theme` param
* fix: match background to chat background color
* feat: finesse iframe'd styling for dojo examples
* fix: remove content rounded corners when used in iframe
* fix: use `neutral` color instead of `gray` when in iframe
* feat: add light and dark mode support for Monaco code editor
* feat: remove shadow from active tab in code editor tabs
* fix: use copilotkit docs bg color for code editor on dark mode
* feat: lighten code tabs active tab on light mode
* feat: offset tabs bg-color on dark mode
* feat: offset tabs bg-color on dark mode from 10% to 5%
* feat: round corners on code viewer contents to show as visually nested
* feat: refine how we mix background color
* feat: change bg mix opacity from 10% to 8% for light mode
* feat: change bg mix opacity from 8% to 3% for light mode
* fix(code-viewer): remove bottom border
* feat(code-viewer): refine CodeEditor wrapper border color
* fix(code-viewer): collapse redundant x-axis borders
* feat(code-viewer): refine border colors
* feat: add hook check for if the dojo is iframed from cpk docs
* fix: dojo sidebar collapsing, add theme color when in cpk iframe
* feat: remove override forcing primary color
* fix: don't round corners on FileTree, even when in iframe
* fix: fix e2e test error
* chore: update files.json
* fix: add `console.log` statements for troubleshooting
* fix: fix dojo startup error when running `run-everything` script
* chore: wrap `IFRAME_DETECTION` console.log statements in console.group
* fix: fix `chatDefaultOpen` parameter value logic
* chore: generate files.json and uv.lock files
* chore: re-run `pnpm run generate-content-json`1 parent 0a92b10 commit 9e90103
File tree
6 files changed
+1631
-683
lines changed- apps/dojo
- scripts
- src
- app
- contexts
- utils
- integrations
- adk-middleware/python/examples
- agno/python/examples
6 files changed
+1631
-683
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
310 | | - | |
| 310 | + | |
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
314 | | - | |
315 | | - | |
316 | | - | |
| 314 | + | |
317 | 315 | | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
| 316 | + | |
327 | 317 | | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
| 318 | + | |
337 | 319 | | |
338 | 320 | | |
339 | 321 | | |
| |||
342 | 324 | | |
343 | 325 | | |
344 | 326 | | |
345 | | - | |
| 327 | + | |
346 | 328 | | |
347 | 329 | | |
348 | 330 | | |
349 | 331 | | |
350 | 332 | | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
| 333 | + | |
360 | 334 | | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
| 335 | + | |
370 | 336 | | |
371 | 337 | | |
372 | 338 | | |
| |||
382 | 348 | | |
383 | 349 | | |
384 | 350 | | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
| 351 | + | |
395 | 352 | | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
| 353 | + | |
406 | 354 | | |
407 | 355 | | |
408 | 356 | | |
409 | 357 | | |
410 | 358 | | |
411 | | - | |
| 359 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
23 | 28 | | |
24 | 29 | | |
0 commit comments