The best way to control Claude Code, Codex and more from any computer or phone
fix(web): explain when a theme hides environment artwork (#27936)
Co-authored-by: PR Batch Tester <agent@local.test> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
shivam committed
Nov 1, 2026 at 07:49 UTC
4e6b7d8447d3d2067747304e7a61e7d41f2464df
1 file changed
+16
-5
apps/web/src/components/settings/AppearanceSettingsPanel.tsx
+16
-5
@@ -19,6 +19,7 @@ import {
19
useEnvironmentStageLabel,
20
} from "../SidebarStageBackdrop";
21
import { useCustomThemes } from "../../hooks/useCustomThemes";
22
+import { useEnvironmentIdentificationMode } from "../../hooks/useSettings";
23
import { useTheme } from "../../hooks/useTheme";
24
import { useScopedSettings, useUpdateScopedSettings } from "./useScopedSettings";
25
import { Select, SelectItem, SelectPopup, SelectTrigger, SelectValue } from "../ui/select";
@@ -106,6 +107,20 @@ export function AppearanceSettingsPanel() {
107
environmentIdentificationOptionList.find(
108
([value]) => value === settings.environmentIdentificationMode,
109
)?.[1] ?? ENVIRONMENT_IDENTIFICATION_LABELS[settings.environmentIdentificationMode];
110
+ const effectiveEnvironmentIdentificationMode = useEnvironmentIdentificationMode();
111
+ const themeHidesEnvironmentArtwork =
112
+ effectiveEnvironmentIdentificationMode === "pill" &&
113
+ resolveSidebarStageBackdropVariant(
114
+ environmentStageLabel,
115
+ settings.environmentIdentificationMode,
116
+ ) !== null;
117
+ const environmentIdentificationDescription = themeHidesEnvironmentArtwork
118
+ ? environmentStageVariant
119
+ ? "Only built-in themes show artwork, so this theme shows the version pill."
120
+ : "Only built-in themes show artwork."
121
+ : environmentStageVariant
122
+ ? "Choose how Dev and Nightly environments are identified."
123
+ : "Show Dev or Nightly artwork in the sidebar header.";
124
const glassOpacityRatio =
125
(settings.glassOpacity - MIN_GLASS_OPACITY) / (MAX_GLASS_OPACITY - MIN_GLASS_OPACITY);
126
const glassOpacitySliderStyle = {
@@ -395,11 +410,7 @@ export function AppearanceSettingsPanel() {
410
/>
411
<SettingsRow
412
{...searchableSetting("environment-identification")}
398
- description={
399
- environmentStageVariant
400
- ? "Choose how Dev and Nightly environments are identified."
401
- : "Show Dev or Nightly artwork in the sidebar header."
402
- }
413
+ description={environmentIdentificationDescription}
414
resetAction={
415
settings.environmentIdentificationMode !== DEFAULT_ENVIRONMENT_IDENTIFICATION_MODE ? (
416
<SettingResetButton