Repository navigation
feat(web-ui): show CH Desktop hero badge inside desktop shell - #1323
Conversation
When the Web UI runs inside the Tauri desktop shell (which sets data-codexhost-shell and data-tauri-shell on <html> at document_start), display "CH Desktop" instead of "Web" in the new-session hero badge so desktop users clearly distinguish the standalone desktop shell from a browser tab. Browser sessions continue to display "Web". Switching is CSS-driven on the root shell attributes to prevent first-paint flicker and preserve centered narrow-viewport wrapping.
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
Summary
Display
CH Desktopinstead ofWebin the new-session hero badge when the Web UI runs inside the standalone Tauri desktop shell, while keepingWebin ordinary browser tabs.Changes
apps/web-ui/packages/client/ui-conversation/src/client/locales.ts: Add"hero.previewDesktop": "CH Desktop"for bothzhanden(keeping"hero.preview": "Web").apps/web-ui/packages/client/ui-conversation/src/client/skeleton/EmptyHero.tsx: Render both.previewBadgeWeband.previewBadgeDesktopspans inside.previewBadge.apps/web-ui/packages/client/ui-conversation/src/client/skeleton/HeroShell.module.css: Hide.previewBadgeDesktopby default, and switch visibility under:global(html[data-codexhost-shell])/:global(html[data-tauri-shell])(attributes set byapps/desktop-shell/src-tauri/src/init_script.jsatdocument_start) for zero first-paint flicker and preserved centered wrapping.Visual Changes
Web)CH Desktop, zh)CH Desktop, en)340px)Validation
pre-commitPrettier formatting check on all 3 changed files in the PR worktree: passed.node --import tsx apps/web-ui/scripts/build.ts) passed in the implementation session, and compiled CSS rules were verified.Web), desktop shell (CH Desktopzh/en), and340pxnarrow viewport wrapping.AGENTS.md.