Skip to content

feat(showcase): dark mode for every demo and shell - #8098

Merged
tylerslaton merged 4 commits into
mainfrom
tylerslaton/showcase-dark-mode
Nov 10, 2026
Merged

tylerslaton merged 4 commits into
mainfrom
tylerslaton/showcase-dark-mode

Conversation

@tylerslaton

@tylerslaton tylerslaton commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Embedded demos showed up white inside the dark docs. Now every showcase demo (all 22 React integrations, plus Angular and Vue) and every shell follows the reader's theme. When a page embeds a demo, the demo follows that page's theme, and it switches live without reloading.

How it works

One module, showcase/integrations/_shared/ts/theme.ts, holds both halves of the theme protocol. Integrations reach it through their _shared link; the shells import it directly.

  • The page being shown: its root layout inlines themeScript() in <head>, which sets .dark on <html> before first paint.
    • When framed, it sends { type: "copilotkit:theme-request" } to its parent. It applies a { type: "copilotkit:theme", theme } reply only when the reply comes from that parent.
    • Otherwise it uses ?theme=light|dark, then a stored pick if the page has a storageKey (the shell and dojo toggles), then the system preference.
    • It exposes one setter, window.__copilotkitTheme (get / set / subscribe). The newest choice wins between the page's own pick and the embedding page's theme. The system preference applies only when neither has chosen.
    • CopilotKit's components follow .dark with their own dark styles; nothing forces them.
  • The embedding page: installThemeBridge answers those requests, and sends the theme again whenever the page's theme changes. Iframe src values are unchanged.
    • Each shell's DemoThemeBridge is a thin wrapper around it. The dashboard passes an adapter for its data-theme attribute.
    • shell and shell-dojo get dark mode and a toggle. When embedded themselves, they follow their parent.
  • Angular and Vue: their index.html is static and can't import TypeScript, so each keeps an inline copy of the script with the same protocol.

Styles

  • Every integration's globals.css now has:
    • light and dark tokens (seven integrations had no dark tokens before);
    • color-scheme;
    • a class-based dark: variant;
    • a dark-only base-layer border default, so a bare border takes --border in dark. Light keeps Tailwind's currentColor, and explicit border colors still win.
  • Demo colors keep their light values and gain dark partners: dark: classes, or light-dark() for inline styles.
  • Dark CSS blocks sit outside @region markers, so published snippets stay within the 200-line limit.
  • Beautiful Chat's theme hook reads and sets the shared setter, so React state and the <html> class can't drift apart.

Scaffolding, docs and CI

  • create-integration links _shared and generates the theme script, tokens and dark styles. The starter template's layout and stylesheet include them too.
  • STYLING-GUIDE.md's "Theme" section describes this setup.
  • Changes to _shared/ts/theme.ts rebuild its consumers (the 22 React integrations and four shells) in both showcase_build.yml and showcase_build_check.yml, through a shared_theme paths filter. Each integration reaches the file through its _shared symlink, which the per-service filters don't see.

Light mode is unchanged

  • langgraph-python: the demo index and all 41 demo pages, screenshotted on the base commit and on this branch: 0 differing pixels.
  • Angular: all 37 routes, 0 differing pixels.
  • Vue: before and after light screenshots are byte-identical.
  • Intended light changes: the new theme toggles. The shell nav links shift about 20px left to make room, and shell-dojo gains a 16px icon.

Tests

  • New showcase/integrations/_shared/ts/theme.test.ts (11 tests, no backends). It covers:

    • each theme source;
    • a page pick surviving an OS flip;
    • stored picks;
    • foreign messages being ignored;
    • the inlined script string;
    • parent/iframe sync through the bridge.

    It runs in test_unit-showcase-integrations with the existing _shared/ts suite (26 tests).

  • shell 354/354, shell-docs 582/582 and shell-dashboard 1865 pass. The Angular (21 + 167) and Vue (22) suites match their baselines. The showcase/scripts generator, bundling and hosting tests pass.

  • Production builds of langgraph-python, shell, shell-dojo and shell-dashboard succeed. A browser run of the minified bootstrap covers:

    • system preference;
    • ?theme=;
    • an embedded demo;
    • the shell and dojo toggles: persistence, and live sync to the open demo.
  • CI's Docker build-check passes for all 22 integrations and all four shells.

  • Not yet run: the real-cell D6 probes required by showcase/AGENTS.md. Results will follow in a comment.

Known gaps (not in this PR)

  • The Angular package's CopilotSidebar and CopilotPopup have hardcoded white headers (packages/angular/.../modal). That needs a package fix; this PR doesn't override CopilotKit.
  • 19 placeholder integration logos in the shell are light-grey image tiles.
  • The open-gen-ui agent's prompt asks for white cards in the HTML it generates.
  • Angular's initial bundle has about 340 bytes left under its size budget.
  • The shell-docs-v2 side (bridge mount and a themed demo-frame body) lives on the docs-redo branch, since shell-docs-v2 isn't on main.

Deployed docs embed the production demos, so the fix shows up there after the integrations are redeployed.

🤖 Generated with Claude Code

@tylerslaton
tylerslaton requested review from jpr5 and mme as code owners October 30, 2026 01:48
@coderabbitai

coderabbitai Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Ignore keyword(s) in the title.

⛔ Ignored keywords: 4

  • fix(showcase)
  • feat(showcase)
  • chore(release)
  • chore: release

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Production Digest-Pinning Audit

All 43 services digest-pinned.

Run 2026-11-10 11:46:26 PST — 0 finding(s).

@contextablemark contextablemark left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking through this more closely, most of the size makes sense: the same demo UI exists across the integrations, and many cards, controls, and tooltips hardcode light colors. For example, the bar-chart tooltip needs its own color changes; setting .dark on the page wouldn’t fix that alone.

There are a few places where I think we could simplify things:

  1. Could we share the bootstrap script? This is the main change I’d suggest.

    The 22 integration theme-script.ts files are byte-identical—for example, LangGraph Python and AG2. They all implement the same query-param fallback, system preference listener, and parent-message handling. Any future fix to that behavior would need to reach all 22 copies.

    We already have a pattern for sharing source while keeping integration builds self-contained: stage_shared() materializes shared symlinks into each Docker build context. There’s also an existing Next route importing TypeScript through _shared, in probe-threads/route.ts. Could we use that pattern for the bootstrap and leave each layout with just the import and script injection?

    The bridges in shell, shell-dojo, and shell-docs are also identical. Sharing those might be worthwhile too, although the dashboard needs an adapter because it reads data-theme rather than .dark.

  2. Could the repeated border changes become one default?

    Across 171 UI component files, the styling change is just adding dark:border-border. Examples are Card and DialogContent.

    A scoped dark border default in Tailwind’s base layer seems like it could cover these, with explicit border utilities still taking precedence. That would remove a fair number of mechanical edits and automatically cover future primitives. The component-specific background, text, and status colors would still need their individual changes.

  3. Could the theme hook and bootstrap use the same setter?

    In Beautiful Chat, the theme hook holds React state and writes the HTML class. The bootstrap’s system listener can independently rewrite that class.

    For example: the demo starts light, the frontend tool selects dark, and then the OS switches dark and back to light. The bootstrap returns the page to light, but React still holds "dark". The next toggle asks React to set "dark" again, which can become a no-op.

    One setter handling explicit choices, parent updates, and system changes would avoid that split. A few focused tests for those transitions and iframe synchronization would help; they shouldn’t require agent backends.

  4. Could we include the scaffolding?

    generateLayout() still generates a layout without the bootstrap, and the starter stylesheet still hardcodes a light background and text. Updating those would keep the next integration from immediately reintroducing the issue.

I may be overengineering things and getting nitpicky, so feel free to ignore any or all of these suggestions. The 22 identical bootstrap scripts are the clearest win to me, especially given the shared-source patterns we already have.

tylerslaton added a commit that referenced this pull request Nov 2, 2026
…k borders

Addresses review on #8098.

- One theme module in integrations/_shared/ts/theme.ts replaces the 22
  identical theme-script.ts copies and the shell/dojo variants. Every
  integration links it through `_shared` (the five that had no link get one;
  Dockerfiles with explicit COPY lists copy the file). It exposes a single
  setter, `window.__copilotkitTheme`, so a page's own pick, the embedding
  page's theme, and the system preference no longer fight: the newest choice
  wins and an OS flip can't undo a pick.
- Beautiful Chat's theme hook reads and writes that setter instead of keeping
  its own React state.
- The shells' DemoThemeBridge components wrap one shared installThemeBridge;
  the dashboard passes an adapter for its data-theme attribute.
- A dark-only base-layer border default replaces the 171 `dark:border-border`
  edits to ui primitives (and 17 more across demos). Light mode keeps
  Tailwind's currentColor; explicit border colors still win.
- create-integration's layout and stylesheet, and the starter template, now
  include the bootstrap and dark styles.
- Tests for theme transitions and parent/iframe sync run in
  test_unit-showcase-integrations, with the existing _shared/ts suite.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Size Change: 0 B

Total Size: 2.47 MB

ℹ️ View Unchanged
Filename Size
packages/a2ui-renderer/dist/_virtual/_rolldown/runtime.cjs 516 B
packages/a2ui-renderer/dist/a2ui-types.cjs 472 B
packages/a2ui-renderer/dist/a2ui-types.mjs 469 B
packages/a2ui-renderer/dist/index.cjs 979 B
packages/a2ui-renderer/dist/index.mjs 637 B
packages/a2ui-renderer/dist/index.umd.js 13.8 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/A2uiSurface.cjs 1.52 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/A2uiSurface.mjs 1.46 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/adapter.cjs 1.87 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/adapter.mjs 1.8 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/AudioPlayer.cjs 920 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/AudioPlayer.mjs 508 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Button.cjs 1.04 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Button.mjs 631 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Card.cjs 845 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Card.mjs 435 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/CheckBox.cjs 1.11 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/CheckBox.mjs 1.04 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/ChildList.cjs 799 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/ChildList.mjs 737 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/ChoicePicker.cjs 1.65 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/ChoicePicker.mjs 1.58 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Column.cjs 856 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Column.mjs 802 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/DateTimeInput.cjs 1.12 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/DateTimeInput.mjs 1.05 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Divider.cjs 856 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Divider.mjs 446 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Icon.cjs 877 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Icon.mjs 469 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Image.cjs 995 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Image.mjs 587 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/List.cjs 920 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/List.mjs 508 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Modal.cjs 1.21 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Modal.mjs 1.15 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Row.cjs 855 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Row.mjs 801 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Slider.cjs 1.07 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Slider.mjs 1 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Tabs.cjs 1.11 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Tabs.mjs 1.06 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Text.cjs 919 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Text.mjs 504 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/TextField.cjs 1.22 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/TextField.mjs 1.15 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Video.cjs 788 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Video.mjs 378 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/index.cjs 928 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/index.mjs 855 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/utils.cjs 594 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/utils.mjs 571 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Button.cjs 998 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Button.mjs 593 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/ChildList.cjs 800 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/ChildList.mjs 735 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Column.cjs 1.08 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Column.mjs 1.02 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Row.cjs 1.07 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Row.mjs 1.01 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Text.cjs 894 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Text.mjs 839 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/TextField.cjs 1.21 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/TextField.mjs 802 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/index.cjs 849 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/index.mjs 804 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/index.cjs 310 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/index.mjs 325 B
packages/a2ui-renderer/dist/react-renderer/catalog-utils.cjs 930 B
packages/a2ui-renderer/dist/react-renderer/catalog-utils.mjs 875 B
packages/a2ui-renderer/dist/react-renderer/core/A2UIProvider.cjs 2.02 kB
packages/a2ui-renderer/dist/react-renderer/core/A2UIProvider.mjs 1.94 kB
packages/a2ui-renderer/dist/react-renderer/core/A2UIRenderer.cjs 909 B
packages/a2ui-renderer/dist/react-renderer/core/A2UIRenderer.mjs 847 B
packages/a2ui-renderer/dist/react-renderer/create-catalog.cjs 1.35 kB
packages/a2ui-renderer/dist/react-renderer/create-catalog.mjs 1.28 kB
packages/a2ui-renderer/dist/react-renderer/filter-catalog.cjs 622 B
packages/a2ui-renderer/dist/react-renderer/filter-catalog.mjs 569 B
packages/a2ui-renderer/dist/react-renderer/hooks/useA2UI.cjs 316 B
packages/a2ui-renderer/dist/react-renderer/hooks/useA2UI.mjs 309 B
packages/a2ui-renderer/dist/react-renderer/index.cjs 427 B
packages/a2ui-renderer/dist/react-renderer/index.mjs 568 B
packages/a2ui-renderer/dist/react-renderer/lib/utils.cjs 236 B
packages/a2ui-renderer/dist/react-renderer/lib/utils.mjs 188 B
packages/a2ui-renderer/dist/react-renderer/styles/index.cjs 239 B
packages/a2ui-renderer/dist/react-renderer/styles/index.mjs 231 B
packages/a2ui-renderer/dist/react-renderer/theme/ThemeContext.cjs 436 B
packages/a2ui-renderer/dist/react-renderer/theme/ThemeContext.mjs 381 B
packages/core/dist/a2ui-markdown-BxZr1mEU.mjs 13.8 kB
packages/core/dist/a2ui-markdown-DkMXFQih.cjs 13.9 kB
packages/core/dist/generative-ui/index.cjs 37.3 kB
packages/core/dist/generative-ui/index.mjs 37.2 kB
packages/core/dist/index.cjs 94.4 kB
packages/core/dist/index.mjs 93.9 kB
packages/core/dist/index.umd.js 114 kB
packages/mcp-apps-renderer/dist/activity.cjs 259 B
packages/mcp-apps-renderer/dist/activity.mjs 170 B
packages/mcp-apps-renderer/dist/activity.umd.js 2.24 kB
packages/mcp-apps-renderer/dist/constants.cjs 714 B
packages/mcp-apps-renderer/dist/constants.mjs 712 B
packages/mcp-apps-renderer/dist/content-schema.cjs 768 B
packages/mcp-apps-renderer/dist/content-schema.mjs 765 B
packages/mcp-apps-renderer/dist/follow-up.cjs 796 B
packages/mcp-apps-renderer/dist/follow-up.mjs 794 B
packages/mcp-apps-renderer/dist/index.mjs 369 B
packages/mcp-apps-renderer/dist/request-queue.mjs 2.39 kB
packages/mcp-apps-renderer/dist/sandbox.mjs 2 kB
packages/mcp-apps-renderer/dist/session.mjs 6.91 kB
packages/react-core/dist/chat-BnsrQ0VS.cjs 18.4 kB
packages/react-core/dist/chat-IWySXWXP.mjs 18 kB
packages/react-core/dist/copilotkit-C_hENF6p.cjs 136 kB
packages/react-core/dist/copilotkit-DAYYDsMu.mjs 139 kB
packages/react-core/dist/index.cjs 17.8 kB
packages/react-core/dist/index.mjs 17.7 kB
packages/react-core/dist/index.umd.js 85.9 kB
packages/react-core/dist/MarkdownSurfaces-BCVdnDAk.cjs 2.63 kB
packages/react-core/dist/MarkdownSurfaces-CjJduaJR.mjs 2.55 kB
packages/react-core/dist/refs-DiZXJ63p.mjs 495 B
packages/react-core/dist/refs-DL7ITFFD.cjs 590 B
packages/react-core/dist/use-generative-ui-root-CaTyBFNR.cjs 4.53 kB
packages/react-core/dist/use-generative-ui-root-WI9ERMpo.mjs 4.51 kB
packages/react-core/dist/v2/context.cjs 1.58 kB
packages/react-core/dist/v2/context.mjs 1.5 kB
packages/react-core/dist/v2/generative-ui.cjs 47.8 kB
packages/react-core/dist/v2/generative-ui.mjs 46.9 kB
packages/react-core/dist/v2/generative-ui/native.cjs 998 B
packages/react-core/dist/v2/generative-ui/native.mjs 860 B
packages/react-core/dist/v2/headless.cjs 17.7 kB
packages/react-core/dist/v2/headless.mjs 17.2 kB
packages/react-core/dist/v2/index.cjs 4.34 kB
packages/react-core/dist/v2/index.mjs 4.33 kB
packages/react-core/dist/v2/index.umd.js 160 kB
packages/react-native/dist/chunk-C0xms8kb.cjs 546 B
packages/react-native/dist/components/index.cjs 8.81 kB
packages/react-native/dist/components/index.mjs 8.62 kB
packages/react-native/dist/CopilotKitProvider-CXQGv39c.mjs 1.43 kB
packages/react-native/dist/CopilotKitProvider-zSfbWwIg.cjs 1.55 kB
packages/react-native/dist/generative-ui/index.cjs 7.72 kB
packages/react-native/dist/generative-ui/index.mjs 7.48 kB
packages/react-native/dist/headless.cjs 633 B
packages/react-native/dist/headless.mjs 373 B
packages/react-native/dist/index.cjs 6.8 kB
packages/react-native/dist/index.mjs 6.41 kB
packages/react-native/dist/polyfills.cjs 2.35 kB
packages/react-native/dist/polyfills.mjs 2.35 kB
packages/react-native/dist/polyfills/crypto.cjs 373 B
packages/react-native/dist/polyfills/crypto.mjs 381 B
packages/react-native/dist/polyfills/dom.cjs 540 B
packages/react-native/dist/polyfills/dom.mjs 550 B
packages/react-native/dist/polyfills/encoding.cjs 332 B
packages/react-native/dist/polyfills/encoding.mjs 307 B
packages/react-native/dist/polyfills/location.cjs 236 B
packages/react-native/dist/polyfills/location.mjs 244 B
packages/react-native/dist/polyfills/streams.cjs 371 B
packages/react-native/dist/polyfills/streams.mjs 339 B
packages/react-textarea/dist/index.cjs 17.7 kB
packages/react-textarea/dist/index.mjs 17 kB
packages/react-textarea/dist/index.umd.js 18.5 kB
packages/react-ui/dist/index.cjs 25.3 kB
packages/react-ui/dist/index.mjs 24.6 kB
packages/react-ui/dist/index.umd.js 26.6 kB
packages/runtime-client-gql/dist/_virtual/_rolldown/runtime.cjs 516 B
packages/runtime-client-gql/dist/client/conversion.cjs 1.52 kB
packages/runtime-client-gql/dist/client/conversion.mjs 1.45 kB
packages/runtime-client-gql/dist/client/CopilotRuntimeClient.cjs 1.58 kB
packages/runtime-client-gql/dist/client/CopilotRuntimeClient.mjs 1.54 kB
packages/runtime-client-gql/dist/client/types.cjs 701 B
packages/runtime-client-gql/dist/client/types.mjs 642 B
packages/runtime-client-gql/dist/graphql/@generated/gql.cjs 850 B
packages/runtime-client-gql/dist/graphql/@generated/gql.mjs 850 B
packages/runtime-client-gql/dist/graphql/@generated/graphql.cjs 2.4 kB
packages/runtime-client-gql/dist/graphql/@generated/graphql.mjs 2.36 kB
packages/runtime-client-gql/dist/graphql/definitions/mutations.cjs 740 B
packages/runtime-client-gql/dist/graphql/definitions/mutations.mjs 732 B
packages/runtime-client-gql/dist/graphql/definitions/queries.cjs 316 B
packages/runtime-client-gql/dist/graphql/definitions/queries.mjs 304 B
packages/runtime-client-gql/dist/index.cjs 679 B
packages/runtime-client-gql/dist/index.mjs 495 B
packages/runtime-client-gql/dist/index.umd.js 9.58 kB
packages/runtime-client-gql/dist/message-conversion/agui-to-gql.cjs 1.72 kB
packages/runtime-client-gql/dist/message-conversion/agui-to-gql.mjs 1.7 kB
packages/runtime-client-gql/dist/message-conversion/gql-to-agui.cjs 1.56 kB
packages/runtime-client-gql/dist/message-conversion/gql-to-agui.mjs 1.53 kB
packages/runtime-client-gql/dist/package.cjs 181 B
packages/runtime-client-gql/dist/package.mjs 116 B
packages/shared/dist/_virtual/_rolldown/runtime.cjs 516 B
packages/shared/dist/a2ui-catalog-schema.cjs 4.2 kB
packages/shared/dist/a2ui-catalog-schema.mjs 4.13 kB
packages/shared/dist/a2ui-envelope.cjs 2.44 kB
packages/shared/dist/a2ui-envelope.mjs 2.42 kB
packages/shared/dist/a2ui-prompts.cjs 4.57 kB
packages/shared/dist/a2ui-prompts.mjs 4.54 kB
packages/shared/dist/attachments/content.cjs 255 B
packages/shared/dist/attachments/content.mjs 253 B
packages/shared/dist/attachments/utils.cjs 1.83 kB
packages/shared/dist/attachments/utils.mjs 1.79 kB
packages/shared/dist/constants/index.cjs 501 B
packages/shared/dist/constants/index.mjs 480 B
packages/shared/dist/debug.cjs 454 B
packages/shared/dist/debug.mjs 452 B
packages/shared/dist/event-transforms/index.cjs 335 B
packages/shared/dist/event-transforms/index.mjs 165 B
packages/shared/dist/event-transforms/open-generative-ui-middleware.cjs 2.42 kB
packages/shared/dist/event-transforms/open-generative-ui-middleware.mjs 2.35 kB
packages/shared/dist/event-transforms/recorded-events.cjs 1.09 kB
packages/shared/dist/event-transforms/recorded-events.mjs 1.03 kB
packages/shared/dist/finalize-events.cjs 1.94 kB
packages/shared/dist/finalize-events.mjs 1.88 kB
packages/shared/dist/generative-ui/basic-functions.cjs 2.5 kB
packages/shared/dist/generative-ui/basic-functions.mjs 2.45 kB
packages/shared/dist/generative-ui/catalog/catalog-export.cjs 4.5 kB
packages/shared/dist/generative-ui/catalog/catalog-export.mjs 4.46 kB
packages/shared/dist/generative-ui/catalog/catalog.cjs 4.18 kB
packages/shared/dist/generative-ui/catalog/catalog.mjs 4.14 kB
packages/shared/dist/generative-ui/catalog/errors.cjs 203 B
packages/shared/dist/generative-ui/catalog/errors.mjs 198 B
packages/shared/dist/generative-ui/catalog/json-schema.cjs 466 B
packages/shared/dist/generative-ui/catalog/json-schema.mjs 405 B
packages/shared/dist/generative-ui/catalog/refs.cjs 414 B
packages/shared/dist/generative-ui/catalog/refs.mjs 369 B
packages/shared/dist/generative-ui/catalog/schema.cjs 1.17 kB
packages/shared/dist/generative-ui/catalog/schema.mjs 1.15 kB
packages/shared/dist/generative-ui/child-refs.cjs 2.34 kB
packages/shared/dist/generative-ui/child-refs.mjs 2.27 kB
packages/shared/dist/generative-ui/clone-value.cjs 4.37 kB
packages/shared/dist/generative-ui/clone-value.mjs 4.36 kB
packages/shared/dist/generative-ui/compact-schema.cjs 2.97 kB
packages/shared/dist/generative-ui/compact-schema.mjs 2.94 kB
packages/shared/dist/generative-ui/index.cjs 3.33 kB
packages/shared/dist/generative-ui/index.mjs 2.65 kB
packages/shared/dist/generative-ui/is-record.cjs 308 B
packages/shared/dist/generative-ui/is-record.mjs 301 B
packages/shared/dist/generative-ui/prompt-spec.cjs 8.13 kB
packages/shared/dist/generative-ui/prompt-spec.mjs 8.1 kB
packages/shared/dist/generative-ui/prompt.cjs 1.64 kB
packages/shared/dist/generative-ui/prompt.mjs 1.6 kB
packages/shared/dist/generative-ui/render-ui-args.cjs 1.48 kB
packages/shared/dist/generative-ui/render-ui-args.mjs 1.46 kB
packages/shared/dist/generative-ui/schema-render.cjs 3.92 kB
packages/shared/dist/generative-ui/schema-render.mjs 3.88 kB
packages/shared/dist/generative-ui/standard/chart-config.cjs 3.92 kB
packages/shared/dist/generative-ui/standard/chart-config.mjs 3.88 kB
packages/shared/dist/generative-ui/standard/chart.cjs 985 B
packages/shared/dist/generative-ui/standard/chart.mjs 928 B
packages/shared/dist/generative-ui/standard/checks.cjs 1.21 kB
packages/shared/dist/generative-ui/standard/checks.mjs 1.16 kB
packages/shared/dist/generative-ui/standard/components.cjs 328 B
packages/shared/dist/generative-ui/standard/components.mjs 327 B
packages/shared/dist/generative-ui/standard/composites.cjs 2.06 kB
packages/shared/dist/generative-ui/standard/composites.mjs 1.99 kB
packages/shared/dist/generative-ui/standard/data.cjs 2.33 kB
packages/shared/dist/generative-ui/standard/data.mjs 2.25 kB
packages/shared/dist/generative-ui/standard/declarations.cjs 519 B
packages/shared/dist/generative-ui/standard/declarations.mjs 488 B
packages/shared/dist/generative-ui/standard/feedback.cjs 1.45 kB
packages/shared/dist/generative-ui/standard/feedback.mjs 1.39 kB
packages/shared/dist/generative-ui/standard/inputs.cjs 3.42 kB
packages/shared/dist/generative-ui/standard/inputs.mjs 3.31 kB
packages/shared/dist/generative-ui/standard/layout.cjs 3.31 kB
packages/shared/dist/generative-ui/standard/layout.mjs 3.2 kB
packages/shared/dist/generative-ui/standard/map-helpers.cjs 2.14 kB
packages/shared/dist/generative-ui/standard/map-helpers.mjs 2.1 kB
packages/shared/dist/generative-ui/standard/map.cjs 475 B
packages/shared/dist/generative-ui/standard/map.mjs 426 B
packages/shared/dist/generative-ui/standard/media.cjs 2.37 kB
packages/shared/dist/generative-ui/standard/media.mjs 2.29 kB
packages/shared/dist/generative-ui/standard/parameter-order.cjs 1.71 kB
packages/shared/dist/generative-ui/standard/parameter-order.mjs 1.69 kB
packages/shared/dist/generative-ui/standard/style-helpers.cjs 2.02 kB
packages/shared/dist/generative-ui/standard/style-helpers.mjs 1.98 kB
packages/shared/dist/generative-ui/standard/styles.cjs 1.7 kB
packages/shared/dist/generative-ui/standard/styles.mjs 1.7 kB
packages/shared/dist/generative-ui/standard/text.cjs 2.34 kB
packages/shared/dist/generative-ui/standard/text.mjs 2.25 kB
packages/shared/dist/generative-ui/standard/theme.cjs 1.67 kB
packages/shared/dist/generative-ui/standard/theme.mjs 1.66 kB
packages/shared/dist/generative-ui/standard/tokens.cjs 3.08 kB
packages/shared/dist/generative-ui/standard/tokens.mjs 2.96 kB
packages/shared/dist/generative-ui/standard/url.cjs 792 B
packages/shared/dist/generative-ui/standard/url.mjs 778 B
packages/shared/dist/generative-ui/thrown.cjs 1.18 kB
packages/shared/dist/generative-ui/thrown.mjs 1.17 kB
packages/shared/dist/generative-ui/types.cjs 1.57 kB
packages/shared/dist/generative-ui/types.mjs 1.51 kB
packages/shared/dist/generative-ui/validate-operation.cjs 5.61 kB
packages/shared/dist/generative-ui/validate-operation.mjs 5.55 kB
packages/shared/dist/index.cjs 4.16 kB
packages/shared/dist/index.mjs 3.48 kB
packages/shared/dist/index.umd.js 69.9 kB
packages/shared/dist/intelligence-routing-fields.cjs 778 B
packages/shared/dist/intelligence-routing-fields.mjs 775 B
packages/shared/dist/logger.cjs 112 B
packages/shared/dist/logger.mjs 112 B
packages/shared/dist/open-generative-ui-prompts.cjs 1.59 kB
packages/shared/dist/open-generative-ui-prompts.mjs 1.59 kB
packages/shared/dist/package.cjs 181 B
packages/shared/dist/package.mjs 116 B
packages/shared/dist/standard-schema.cjs 740 B
packages/shared/dist/standard-schema.mjs 737 B
packages/shared/dist/telemetry/index.cjs 358 B
packages/shared/dist/telemetry/index.mjs 250 B
packages/shared/dist/telemetry/lambda-client.cjs 1.59 kB
packages/shared/dist/telemetry/lambda-client.mjs 1.58 kB
packages/shared/dist/telemetry/model-host.cjs 1.63 kB
packages/shared/dist/telemetry/model-host.mjs 1.63 kB
packages/shared/dist/telemetry/sampling.cjs 956 B
packages/shared/dist/telemetry/sampling.mjs 935 B
packages/shared/dist/telemetry/telemetry-client.cjs 1.89 kB
packages/shared/dist/telemetry/telemetry-client.mjs 1.83 kB
packages/shared/dist/telemetry/telemetry-disabled.cjs 454 B
packages/shared/dist/telemetry/telemetry-disabled.mjs 451 B
packages/shared/dist/telemetry/utils.cjs 271 B
packages/shared/dist/telemetry/utils.mjs 268 B
packages/shared/dist/transcription-errors.cjs 951 B
packages/shared/dist/transcription-errors.mjs 944 B
packages/shared/dist/utils/clipboard.cjs 407 B
packages/shared/dist/utils/clipboard.mjs 405 B
packages/shared/dist/utils/conditions.cjs 540 B
packages/shared/dist/utils/conditions.mjs 536 B
packages/shared/dist/utils/console-styling.cjs 1.23 kB
packages/shared/dist/utils/console-styling.mjs 1.21 kB
packages/shared/dist/utils/dashboard-url.cjs 415 B
packages/shared/dist/utils/dashboard-url.mjs 413 B
packages/shared/dist/utils/errors.cjs 4.51 kB
packages/shared/dist/utils/errors.mjs 4.41 kB
packages/shared/dist/utils/index.cjs 1.5 kB
packages/shared/dist/utils/index.mjs 1.82 kB
packages/shared/dist/utils/inspector-learning.cjs 2.74 kB
packages/shared/dist/utils/inspector-learning.mjs 2.73 kB
packages/shared/dist/utils/inspector-metadata.cjs 1.44 kB
packages/shared/dist/utils/inspector-metadata.mjs 1.43 kB
packages/shared/dist/utils/inspector-visibility.cjs 285 B
packages/shared/dist/utils/inspector-visibility.mjs 282 B
packages/shared/dist/utils/json-schema.cjs 1.97 kB
packages/shared/dist/utils/json-schema.mjs 1.91 kB
packages/shared/dist/utils/random-id.cjs 618 B
packages/shared/dist/utils/random-id.mjs 559 B
packages/shared/dist/utils/requests.cjs 706 B
packages/shared/dist/utils/requests.mjs 704 B
packages/shared/dist/utils/row-render-keys.cjs 3.38 kB
packages/shared/dist/utils/row-render-keys.mjs 3.36 kB
packages/shared/dist/utils/types.cjs 161 B
packages/shared/dist/utils/types.mjs 160 B
packages/voice/dist/_virtual/_rolldown/runtime.cjs 516 B
packages/voice/dist/index.cjs 175 B
packages/voice/dist/index.mjs 95 B
packages/voice/dist/index.umd.js 1.5 kB
packages/voice/dist/transcription/transcription-service-openai.cjs 495 B
packages/voice/dist/transcription/transcription-service-openai.mjs 434 B
packages/web-inspector/dist/assets/inspector-logo-kite.cjs 2.36 kB
packages/web-inspector/dist/assets/inspector-logo-kite.mjs 2.3 kB
packages/web-inspector/dist/assets/inspector-logo.cjs 4.32 kB
packages/web-inspector/dist/assets/inspector-logo.mjs 4.23 kB
packages/web-inspector/dist/components/generative-ui-view.cjs 7.95 kB
packages/web-inspector/dist/components/generative-ui-view.mjs 7.93 kB
packages/web-inspector/dist/components/learning-view.cjs 11.2 kB
packages/web-inspector/dist/components/learning-view.mjs 11.2 kB
packages/web-inspector/dist/index.cjs 132 kB
packages/web-inspector/dist/index.mjs 132 kB
packages/web-inspector/dist/index.umd.js 209 kB
packages/web-inspector/dist/lib/context-helpers.cjs 866 B
packages/web-inspector/dist/lib/context-helpers.mjs 835 B
packages/web-inspector/dist/lib/home-briefing.cjs 2.8 kB
packages/web-inspector/dist/lib/home-briefing.mjs 2.79 kB
packages/web-inspector/dist/lib/hud-config.cjs 1.34 kB
packages/web-inspector/dist/lib/hud-config.mjs 1.33 kB
packages/web-inspector/dist/lib/hud-defaults.cjs 287 B
packages/web-inspector/dist/lib/hud-defaults.mjs 285 B
packages/web-inspector/dist/lib/hud-loader.cjs 557 B
packages/web-inspector/dist/lib/hud-loader.mjs 546 B
packages/web-inspector/dist/lib/inspector-learning.cjs 754 B
packages/web-inspector/dist/lib/inspector-learning.mjs 732 B
packages/web-inspector/dist/lib/inspector-metadata.cjs 760 B
packages/web-inspector/dist/lib/inspector-metadata.mjs 750 B
packages/web-inspector/dist/lib/inspector-nav.cjs 685 B
packages/web-inspector/dist/lib/inspector-nav.mjs 661 B
packages/web-inspector/dist/lib/json-block.cjs 1.95 kB
packages/web-inspector/dist/lib/json-block.mjs 1.91 kB
packages/web-inspector/dist/lib/learning-setup.cjs 1.12 kB
packages/web-inspector/dist/lib/learning-setup.mjs 1.09 kB
packages/web-inspector/dist/lib/notification-loader.cjs 792 B
packages/web-inspector/dist/lib/notification-loader.mjs 786 B
packages/web-inspector/dist/lib/notifications.cjs 2.39 kB
packages/web-inspector/dist/lib/notifications.mjs 2.37 kB
packages/web-inspector/dist/lib/onboarding-prompt.cjs 2.38 kB
packages/web-inspector/dist/lib/onboarding-prompt.mjs 2.37 kB
packages/web-inspector/dist/lib/persistence.cjs 3.61 kB
packages/web-inspector/dist/lib/persistence.mjs 3.52 kB
packages/web-inspector/dist/lib/pop-out.cjs 1.07 kB
packages/web-inspector/dist/lib/pop-out.mjs 1.05 kB
packages/web-inspector/dist/lib/telemetry.cjs 5.59 kB
packages/web-inspector/dist/lib/telemetry.mjs 5.38 kB
packages/web-inspector/dist/lib/thread-selection.cjs 566 B
packages/web-inspector/dist/lib/thread-selection.mjs 563 B
packages/web-inspector/dist/package.cjs 181 B
packages/web-inspector/dist/package.mjs 116 B
packages/web-inspector/dist/styles/generated.cjs 20.1 kB
packages/web-inspector/dist/styles/generated.mjs 20 kB
packages/web-inspector/dist/styles/notification-article.cjs 1.44 kB
packages/web-inspector/dist/styles/notification-article.mjs 1.44 kB

compressed-size-action

@contextablemark contextablemark left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The earlier requests are addressed, and the surgical re-review passed: 137 focused tests, the shared-module typecheck, and Chromium checks for the minified bootstrap, cross-origin iframe synchronization, manual overrides, and border precedence.

One narrow P2 remains: changes to the new shared theme module are not inputs to either build matrix.

This theme-specific regression comes from the extraction in f748c69: previously the theme implementations lived inside each app's already-watched directory. Now all 22 React integrations and four shells import showcase/integrations/_shared/ts/theme.ts, but a change touching only that file matches zero filters in both showcase_build.yml and showcase_build_check.yml. Such a fix could pass unit tests while skipping its consumer image builds and deployment.

Could we include that exact file as a shared build dependency for its 26 consumers in both workflows?

GitHub's native Apply suggestion button cannot edit these two workflow files because neither is part of this PR's diff. Here is an apply-ready two-file patch instead. Save the diff as shared-theme-build-filters.patch and run git apply shared-theme-build-filters.patch from the repository root.

I validated that the patch applies cleanly, both workflows parse, and their actual jq selectors choose exactly the 22 integration images and four shells for a theme-only change. Empty changes, an individual integration change, and the production single-service dispatch still select the expected services. The shared-theme filter does not select unrelated services or match theme-test-only edits.

--- a/.github/workflows/showcase_build.yml
+++ b/.github/workflows/showcase_build.yml
@@ -143,6 +143,8 @@
           # single-line strings, but mixing styles (list vs. string)
           # in the same filters block is easy to misread during review.
           filters: |
+            shared_theme:
+              - 'showcase/integrations/_shared/ts/theme.ts'
             workflow_config:
               - '.github/workflows/showcase_build_check.yml'
             angular:
@@ -369,6 +371,10 @@
               ($dispatch == "" and (
                 ($workflow_changed or ($changes | index("workflow_config") != null)) or
                 ($changes | index($fk) != null) or
+                (($changes | index("shared_theme") != null) and (
+                  (.context | startswith("showcase/integrations/")) or
+                  (.dispatch_name | IN("shell", "shell-dojo", "shell-dashboard", "shell-docs"))
+                )) or
                 (($changes | index("angular") != null) and (
                   (.context | startswith("showcase/integrations/")) or
                   .dispatch_name == "shell"
--- a/.github/workflows/showcase_build_check.yml
+++ b/.github/workflows/showcase_build_check.yml
@@ -53,6 +53,8 @@
         id: filter
         with:
           filters: |
+            shared_theme:
+              - 'showcase/integrations/_shared/ts/theme.ts'
             workflow_config:
               - '.github/workflows/showcase_build.yml'
               - '.github/workflows/showcase_build_check.yml'
@@ -254,7 +256,11 @@
               if .build_args_branch == "__GH_REF_NAME__" then .build_args_branch = $ref else . end |
               (.filter_key as $fk | select(
               ($changes | index("workflow_config") != null) or
-              ($changes | index($fk) != null)
+              ($changes | index($fk) != null) or
+              (($changes | index("shared_theme") != null) and (
+                (.context | startswith("showcase/integrations/")) or
+                (.dispatch_name | IN("shell", "shell-dojo", "shell-dashboard", "shell-docs"))
+              ))
             ))]
           ')

No other changes requested from this re-review.

@tylerslaton

Copy link
Copy Markdown
Contributor Author

Thanks, Mark — all four are in f748c69.

  1. Shared bootstrap. showcase/integrations/_shared/ts/theme.ts replaces the 22 theme-script.ts copies; each layout imports themeScript() through _shared. The five integrations without a _shared link got one. The five Dockerfiles with explicit COPY lists now copy the file. The shell and dojo head scripts use the same module, with a storageKey so their toggles persist. The bridges are one installThemeBridge; the dashboard passes a small adapter for data-theme. Angular and Vue keep an inline copy because their index.html is static.

  2. Border default. A dark-only @layer base rule in each globals.css (.dark * { border-color: var(--border) }) replaces the 171 ui-primitive edits and 17 more across demos. Light keeps Tailwind's currentColor, and explicit border colors still win. CopilotKit's subtree already defaults to var(--border), so it matches there.

  3. One setter. The bootstrap exposes window.__copilotkitTheme (get / set / subscribe). The newest choice wins between the page's own pick and the embedding page's theme, and the system preference only applies when neither has chosen. Beautiful Chat's hook now reads it with useSyncExternalStore and sets through it, so React and the class can't split. Your scenario (pick dark, OS dark → light) is a test case. theme.test.ts also covers ?theme=, stored picks, foreign messages, the inlined string, and parent/iframe sync through the bridge, with no backends. It runs in test_unit-showcase-integrations together with the existing _shared/ts suite.

  4. Scaffolding. create-integration now links _shared and generates the bootstrap, tokens, and dark styles. The starter template's layout and stylesheet do the same.

Verified locally: production builds of langgraph-python, shell, dojo and dashboard, plus a browser run of the minified bootstrap (system, ?theme=, embedded, shell and dojo toggles with live demo sync). The shell (354), shell-docs (582), dashboard and generator test suites pass.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Showcase Eval Results

Verdict ❌ EVAL FAILED (exit code: 1)
Level d5
Scope langgraph-python,mastra,spring-ai
Run View workflow
Partial JSON output
{
  "version": 1,
  "timestamp": "2026-11-03T01:12:24.329Z",
  "branch": "HEAD",
  "base": "origin/main",
  "level": "d5",
  "scope": {
    "mode": "all",
    "reason": "manual override: langgraph-python, mastra, spring-ai",
    "slugs": [
      "langgraph-python",
      "mastra",
      "spring-ai"
    ]
  },
  "results": {
    "langgraph-python": {
      "_status": {
        "status": "fail",
        "duration_ms": 376
      }
    }
  },
  "summary": {
    "total": 1,
    "pass": 0,
    "fail": 1,
    "skip": 0,
    "duration_ms": 376
  }
}

Copy link
Copy Markdown
Contributor

I pushed 7142205 with the remaining build-filter wiring. Changes to the shared theme module now select its 22 React integrations and four shells in both PR build checks and the production pipeline. All 44 matrix tests pass, and I checked the actual filters/selectors too. That covers my last requested change.

@pkg-pr-new

pkg-pr-new Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
@copilotkit/a2ui-renderer

pnpm add https://pkg.pr.new/@copilotkit/a2ui-renderer@8098

@copilotkit/agentcore-runner

pnpm add https://pkg.pr.new/@copilotkit/agentcore-runner@8098

@copilotkit/angular

pnpm add https://pkg.pr.new/@copilotkit/angular@8098

@copilotkit/channels

pnpm add https://pkg.pr.new/@copilotkit/channels@8098

@copilotkit/channels-core

pnpm add https://pkg.pr.new/@copilotkit/channels-core@8098

@copilotkit/channels-discord

pnpm add https://pkg.pr.new/@copilotkit/channels-discord@8098

@copilotkit/channels-intelligence

pnpm add https://pkg.pr.new/@copilotkit/channels-intelligence@8098

@copilotkit/channels-slack

pnpm add https://pkg.pr.new/@copilotkit/channels-slack@8098

@copilotkit/channels-teams

pnpm add https://pkg.pr.new/@copilotkit/channels-teams@8098

@copilotkit/channels-ui

pnpm add https://pkg.pr.new/@copilotkit/channels-ui@8098

@copilotkit/channels-whatsapp

pnpm add https://pkg.pr.new/@copilotkit/channels-whatsapp@8098

@copilotkit/core

pnpm add https://pkg.pr.new/@copilotkit/core@8098

@copilotkit/intelligence-langgraph

pnpm add https://pkg.pr.new/@copilotkit/intelligence-langgraph@8098

@copilotkit/intelligence-mastra

pnpm add https://pkg.pr.new/@copilotkit/intelligence-mastra@8098

@copilotkit/learning

pnpm add https://pkg.pr.new/@copilotkit/learning@8098

@copilotkit/mcp-apps-renderer

pnpm add https://pkg.pr.new/@copilotkit/mcp-apps-renderer@8098

@copilotkit/react-core

pnpm add https://pkg.pr.new/@copilotkit/react-core@8098

@copilotkit/react-native

pnpm add https://pkg.pr.new/@copilotkit/react-native@8098

@copilotkit/react-textarea

pnpm add https://pkg.pr.new/@copilotkit/react-textarea@8098

@copilotkit/react-ui

pnpm add https://pkg.pr.new/@copilotkit/react-ui@8098

@copilotkit/runtime

pnpm add https://pkg.pr.new/@copilotkit/runtime@8098

@copilotkit/runtime-client-gql

pnpm add https://pkg.pr.new/@copilotkit/runtime-client-gql@8098

@copilotkit/sdk-js

pnpm add https://pkg.pr.new/@copilotkit/sdk-js@8098

@copilotkit/shared

pnpm add https://pkg.pr.new/@copilotkit/shared@8098

@copilotkit/sqlite-runner

pnpm add https://pkg.pr.new/@copilotkit/sqlite-runner@8098

@copilotkit/voice

pnpm add https://pkg.pr.new/@copilotkit/voice@8098

@copilotkit/vue

pnpm add https://pkg.pr.new/@copilotkit/vue@8098

@copilotkit/web-components

pnpm add https://pkg.pr.new/@copilotkit/web-components@8098

@copilotkit/web-inspector

pnpm add https://pkg.pr.new/@copilotkit/web-inspector@8098

commit: 758d44d

tylerslaton added a commit that referenced this pull request Nov 9, 2026
…k borders

Addresses review on #8098.

- One theme module in integrations/_shared/ts/theme.ts replaces the 22
  identical theme-script.ts copies and the shell/dojo variants. Every
  integration links it through `_shared` (the five that had no link get one;
  Dockerfiles with explicit COPY lists copy the file). It exposes a single
  setter, `window.__copilotkitTheme`, so a page's own pick, the embedding
  page's theme, and the system preference no longer fight: the newest choice
  wins and an OS flip can't undo a pick.
- Beautiful Chat's theme hook reads and writes that setter instead of keeping
  its own React state.
- The shells' DemoThemeBridge components wrap one shared installThemeBridge;
  the dashboard passes an adapter for its data-theme attribute.
- A dark-only base-layer border default replaces the 171 `dark:border-border`
  edits to ui primitives (and 17 more across demos). Light mode keeps
  Tailwind's currentColor; explicit border colors still win.
- create-integration's layout and stylesheet, and the starter template, now
  include the bootstrap and dark styles.
- Tests for theme transitions and parent/iframe sync run in
  test_unit-showcase-integrations, with the existing _shared/ts suite.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@tylerslaton
tylerslaton force-pushed the tylerslaton/showcase-dark-mode branch from 652c3e7 to 6e2d6bc Compare November 9, 2026 17:27
tylerslaton added a commit that referenced this pull request Nov 10, 2026
…k borders

Addresses review on #8098.

- One theme module in integrations/_shared/ts/theme.ts replaces the 22
  identical theme-script.ts copies and the shell/dojo variants. Every
  integration links it through `_shared` (the five that had no link get one;
  Dockerfiles with explicit COPY lists copy the file). It exposes a single
  setter, `window.__copilotkitTheme`, so a page's own pick, the embedding
  page's theme, and the system preference no longer fight: the newest choice
  wins and an OS flip can't undo a pick.
- Beautiful Chat's theme hook reads and writes that setter instead of keeping
  its own React state.
- The shells' DemoThemeBridge components wrap one shared installThemeBridge;
  the dashboard passes an adapter for its data-theme attribute.
- A dark-only base-layer border default replaces the 171 `dark:border-border`
  edits to ui primitives (and 17 more across demos). Light mode keeps
  Tailwind's currentColor; explicit border colors still win.
- create-integration's layout and stylesheet, and the starter template, now
  include the bootstrap and dark styles.
- Tests for theme transitions and parent/iframe sync run in
  test_unit-showcase-integrations, with the existing _shared/ts suite.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@tylerslaton
tylerslaton force-pushed the tylerslaton/showcase-dark-mode branch from 6e2d6bc to 758d44d Compare November 10, 2026 18:11

Copy link
Copy Markdown
Contributor

I pushed 029afa5 to bring OpenAI Agents Python onto the existing shared theme setup.

The production build, all three real D6 flows (Shared State Read, Human in the Loop, and A2UI), 26 shared unit tests, and 10 snippet tests pass. Production browser checks cover live iframe theme updates and manual overrides; light screenshots are pixel-identical on all three checked pages.

Standalone typechecking reports the same 18 pre-existing errors before and after, with none introduced by this patch. The follow-up is confined to this integration’s frontend.

tylerslaton and others added 4 commits November 10, 2026 11:44
Embedded demos rendered white inside the dark docs. Every showcase demo
(22 React integrations, Angular, Vue) and every shell now follows the
reader's theme, and an embedded demo follows the page around it.

- Demos run a pre-paint theme script (integrations' src/app/theme-script.ts,
  inlined in the Angular and Vue index.html). It asks the embedding page with
  a `copilotkit:theme-request` message, then falls back to `?theme=` and the
  system preference, and toggles `.dark` on <html>. CopilotKit follows that
  class with its own dark styles; nothing forces it.
- Shells answer through DemoThemeBridge and re-send when their theme changes,
  so open demos switch live. shell and shell-dojo gain dark mode and a toggle,
  and follow their own parent when embedded.
- Integration globals.css carry light and dark tokens, color-scheme, and a
  class-based `dark:` variant. Demo colors keep their light values and gain
  dark partners (`dark:` classes, `light-dark()`), so light mode is unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…k borders

Addresses review on #8098.

- One theme module in integrations/_shared/ts/theme.ts replaces the 22
  identical theme-script.ts copies and the shell/dojo variants. Every
  integration links it through `_shared` (the five that had no link get one;
  Dockerfiles with explicit COPY lists copy the file). It exposes a single
  setter, `window.__copilotkitTheme`, so a page's own pick, the embedding
  page's theme, and the system preference no longer fight: the newest choice
  wins and an OS flip can't undo a pick.
- Beautiful Chat's theme hook reads and writes that setter instead of keeping
  its own React state.
- The shells' DemoThemeBridge components wrap one shared installThemeBridge;
  the dashboard passes an adapter for its data-theme attribute.
- A dark-only base-layer border default replaces the 171 `dark:border-border`
  edits to ui primitives (and 17 more across demos). Light mode keeps
  Tailwind's currentColor; explicit border colors still win.
- create-integration's layout and stylesheet, and the starter template, now
  include the bootstrap and dark styles.
- Tests for theme transitions and parent/iframe sync run in
  test_unit-showcase-integrations, with the existing _shared/ts suite.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@tylerslaton
tylerslaton force-pushed the tylerslaton/showcase-dark-mode branch from 029afa5 to 3a9c392 Compare November 10, 2026 19:44
@contextablemark
contextablemark dismissed their stale review November 10, 2026 20:01

Changes have been incorporated

@tylerslaton
tylerslaton merged commit ebde1fc into main Nov 10, 2026
86 of 87 checks passed
@tylerslaton
tylerslaton deleted the tylerslaton/showcase-dark-mode branch November 10, 2026 21:20
tylerslaton added a commit that referenced this pull request Nov 10, 2026
## What does this PR do?

Fixes the `Static analysis (zizmor)` check, which fails on every PR that
changes a workflow file. The cause is on `main`, not in those PRs.

`security_zizmor.yml` runs zizmor `latest`. Since the action bump in
#7827, CI runs zizmor 1.32.0, which reports two new kinds of findings in
files the failing PRs don't touch:

- **`dangerous-triggers` (high):** the `issue_comment` triggers of
`showcase_eval.yml` (`/eval`) and `test_e2e-showcase-on-demand.yml`
(`/test`). Both already run only for trusted commenters:
`showcase_eval.yml` checks for write access with
`getCollaboratorPermissionLevel`, and `test_e2e-showcase-on-demand.yml`
requires `OWNER`, `MEMBER` or `COLLABORATOR`. Both check out PR-head
code with a `contents: read` token and `persist-credentials: false`.
Each file's SECURITY header records the remaining TOCTOU risk.
- **`obfuscation` (low):** `fromJSON('"\n"')` in `aeo_synthetics.yml`,
`showcase_build.yml`, `showcase_validate.yml`, `test_smoke-starter.yml`
and `test_starter-clean-install.yml`. It is how those workflows put a
newline inside a one-line `format()` expression. zizmor's `--fix=safe`
replaces it with a literal newline, which makes the YAML invalid.

This PR:
- adds the two comment-trigger workflows to `dangerous-triggers.ignore`,
with the reason, as the config asks for each new entry;
- adds an `obfuscation.ignore` list for the five workflows;
- pins the action to zizmor `1.32.0`, so a future zizmor release can't
fail unrelated PRs again. Bump it on purpose and update
`.github/zizmor.yml` in the same PR.

**Needs a maintainer's review:** the config says every new
`dangerous-triggers` suppression must be reviewed by a maintainer.

## Verification

- `uvx [email protected] --config .github/zizmor.yml --min-severity low .`
on `main`: 2 high and 8 low findings, the same as CI.
- The same command on this branch: "No findings to report" (45 ignored,
316 suppressed).
- The `ghcr.io/zizmorcore/zizmor:1.32.0` image exists, and zizmor-action
v0.8.1 accepts an exact `X.Y.Z` version.

## Related PRs and Issues

- Unblocks the zizmor check on #8098 and #8214.

## Checklist

- [x] I have read the [Contribution
Guide](https://github.com/copilotkit/copilotkit/blob/master/CONTRIBUTING.md)
- [x] If the PR changes or adds functionality, I have updated the
relevant documentation
- [x] If the PR contains a breaking change, the title has `!` (for
example `feat(react-core)!: ...`) and the description has a `BREAKING
CHANGE:` line with migration steps. See
[VERSIONING.md](https://github.com/CopilotKit/CopilotKit/blob/main/VERSIONING.md)
- [x] "Allow edits by maintainers" is checked (lets us help iterate on
your PR directly — faster turnaround for everyone)

🤖 Generated with [Claude Code](https://claude.com/claude-code)


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Chores**
  * Pinned the security workflow to a specific version.
* Updated security-check settings for selected workflows, including
documented safeguards and accepted risks. Also adjusted handling of
findings related to workflow expression formatting. These changes affect
automated repository checks and do not change the app’s user-facing
functionality.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants