ext-apps/tests/e2e
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Olivier Chafik 7bbf2bb250
feat(basic-host): Add theme toggle and MCP style variables (#336)
* feat(basic-host): add theme toggle and MCP style variables

Add theme support to basic-host example:
- theme.ts: Global theme manager with light/dark toggle
- host-styles.ts: Full set of MCP CSS variables using light-dark()
- ThemeToggle component with sun/moon icons
- Theme-aware CSS using CSS custom properties
- Pass theme + styles to apps via hostContext
- Notify apps when theme changes via sendHostContextChange

Apps now receive:
- hostContext.theme: 'light' | 'dark'
- hostContext.styles.variables: All 60+ MCP CSS variables
- onhostcontextchanged notifications when theme changes

* test: update e2e goldens for theme changes
2026-01-23 20:41:26 +00:00
..
servers.spec.ts-snapshots feat(basic-host): Add theme toggle and MCP style variables (#336) 2026-01-23 20:41:26 +00:00
generate-grid-screenshots.spec.ts fix(e2e): update Map Server display name to CesiumJS Map Server (#324) 2026-01-23 16:13:51 +00:00
security.spec.ts add EXAMPLE=folder-name support for tests & basic-host (#292) 2026-01-19 20:16:37 +00:00
servers.spec.ts fix(e2e): update Map Server display name to CesiumJS Map Server (#324) 2026-01-23 16:13:51 +00:00