From b991c18e7386d86853acd4aba4da7ccbf0c254af Mon Sep 17 00:00:00 2001 From: archipelago Date: Thu, 23 Jul 2026 04:43:42 -0400 Subject: [PATCH] fix(aiui): color-scheme meta keeps iframe transparent so background art survives dark shell Browsers only honor a transparent same-origin iframe canvas when the embedder and the iframe agree on color-scheme; the neode-ui shell's :root{color-scheme:dark} was forcing the AIUI frame opaque and hiding the background art behind the chat. Also adds neode-ui/vite.preview.config.mts (preview on :8100 against the mock backend on :5959). Co-Authored-By: Claude Fable 5 --- demo/aiui/index.html | 6 ++++++ neode-ui/vite.preview.config.mts | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 neode-ui/vite.preview.config.mts diff --git a/demo/aiui/index.html b/demo/aiui/index.html index 241e7854..edcadf00 100644 --- a/demo/aiui/index.html +++ b/demo/aiui/index.html @@ -3,6 +3,12 @@ + + diff --git a/neode-ui/vite.preview.config.mts b/neode-ui/vite.preview.config.mts new file mode 100644 index 00000000..3fbddb4d --- /dev/null +++ b/neode-ui/vite.preview.config.mts @@ -0,0 +1,7 @@ +import baseConfig from './vite.config' +const cfg = { ...(baseConfig as Record) } as any +cfg.server = { ...(cfg.server || {}), port: 8100, strictPort: true } +const proxy = { ...(cfg.server.proxy || {}) } +for (const k of Object.keys(proxy)) proxy[k] = { ...proxy[k], target: 'http://localhost:5959' } +cfg.server.proxy = proxy +export default cfg