Skip to content

DataLex theme: shared-contract alignment (white theme + minimal embed shim)#114

Merged
KKranthi6881 merged 6 commits into
mainfrom
claude/theme-mode-fix
Jun 26, 2026
Merged

DataLex theme: shared-contract alignment (white theme + minimal embed shim)#114
KKranthi6881 merged 6 commits into
mainfrom
claude/theme-mode-fix

Conversation

@KKranthi6881

Copy link
Copy Markdown
Collaborator

Brings the cloud-embed theme work onto main so code matches the AGENTS.md contract: adds the white theme (maps the cloud global white 1:1), drives the real theme mechanism (data-theme + dm_theme), and reduces the embed shim to a minimal stub (no localStorage namespacing, which was hiding the theme key). Merged main in (no conflicts); builds clean. Standalone DataLex unaffected (shim is a no-op without ?embedded=1).

KKranthi6881 and others added 6 commits June 26, 2026 12:27
On datalex.theme with a mode, fire the Shell's datalex:theme-change hook so the
embedded DataLex flips light/dark with the cloud, not just a few color tokens.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Set localStorage['datalex.theme'] so the Shell's initial state adopts the cloud
theme even when the message arrives before the live listener mounts.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Theme+mode, x-oss-app + bearer fetch wrap, capability-driven chrome-hiding,
cloud-context injection, route reporting and the ready handshake are now driven
from OUTSIDE the OSS app by the cloud's build-injected embed adapter
(governed-analytics-cloud: scripts/embed-adapter.js) + its override CSS. This
shim keeps only per-project localStorage isolation. Standalone DataLex is
unaffected (no-op without ?embedded=1). Builds clean (vite).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Namespacing hid the cloud adapter's pre-boot dm_theme write behind a
project-scoped key the uiStore never reads, so the embedded DataLex theme never
applied (stuck dark). The cloud owns embedded UI state; the shim is now just the
embed flag + cloud-context reader. Builds clean (vite).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Adds a [data-theme="white"] block (crisp light) mirroring the paper block, using
the canonical white values from the shared contract (@duckcodeai/design-tokens).
This lets the cloud global "white" theme map 1:1 onto DataLex instead of falling
back to arctic. Core vars (bg/text/accent/border) use the canonical white;
DataLex-specific extras (pk/fk/idx, cat-*, sql-*) are tuned to match. Builds
clean (vite).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@KKranthi6881 KKranthi6881 merged commit 4f876a4 into main Jun 26, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

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.

1 participant