Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active
TypeScript aianthropicartifactsawsazurechatgptchatgpt-cloneclaudeclonedeepseekgeminigooglegpt-5librechatmcpo1openairesponses-apivisionwebui
📌 test: Re-Pin Click UI Drift Guard to v0.13.0 and Probe the Checkbox- #16706 (#16706)
Marco Beretta47b525ebc239
diff --git a/packages/client/src/theme/themes/clickhouse.ts b/packages/client/src/theme/themes/clickhouse.tsindex da1b57a1d9..f7aeda3e60 100644--- a/packages/client/src/theme/themes/clickhouse.ts+++ b/packages/client/src/theme/themes/clickhouse.ts@@ -3,7 +3,7 @@ import type { IThemeAppearance, ThemeDefinition, IThemeRGB } from '../types';/*** ClickHouse reference theme, built from Click UI's design tokens* (github.com/ClickHouse/click-ui, `src/theme/tokens/variables.light.ts` and- * `variables.dark.ts` at tag v0.12.0, e2b3d213798f4223122581a75ebc8dd91e47fd9f). The tokens it+ * `variables.dark.ts` at tag v0.13.0, bb744e8255a3c97635d2fdc9a546c266b5b8a3e0). The tokens it* cites are pinned in `clickui.json`, and `clickui.spec.ts` fails on drift in either one.** This is the deliberately different theme that proves the engine repaints thediff --git a/packages/client/src/theme/themes/clickui.json b/packages/client/src/theme/themes/clickui.jsonindex dc03cddb42..f74de25a2d 100644--- a/packages/client/src/theme/themes/clickui.json+++ b/packages/client/src/theme/themes/clickui.json@@ -1,7 +1,7 @@{"source": "https://github.com/ClickHouse/click-ui",- "tag": "v0.12.0",- "commit": "e2b3d213798f4223122581a75ebc8dd91e47fd9f",+ "tag": "v0.13.0",+ "commit": "bb744e8255a3c97635d2fdc9a546c266b5b8a3e0","files": {"light": "src/theme/tokens/variables.light.ts","dark": "src/theme/tokens/variables.dark.ts"@@ -25,8 +25,13 @@"click.button.basic.color.secondary.stroke.default": "#e6e7e9","click.button.basic.space.gap": "0.5rem","click.button.basic.space.x": "1rem",- "click.button.basic.typography.label.default": "400 0.875rem/1.5 \"Inter\", \"SF Pro Display\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\", sans-serif;",+ "click.button.basic.typography.label.default": "400 0.875rem/1.5 \"Inter\", \"SF Pro Display\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\", sans-serif","click.button.iconButton.color.primary.background.active": "rgb(86.824% 87.176% 88.235%)",+ "click.checkbox.color.background.active": "#161517",+ "click.checkbox.color.background.default": "#f6f7fa",+ "click.checkbox.color.check.active": "#ffffff",+ "click.checkbox.color.stroke.default": "#b3b6bd",+ "click.checkbox.radii.all": "0.125rem","click.checkbox.size.all": "1rem","click.codeblock.lightMode.color.background.default": "#f6f7fa","click.codeblock.lightMode.color.text.default": "#282828",@@ -37,14 +42,14 @@"click.dialog.space.x": "2rem","click.dialog.stroke.default": "1px solid #e6e7e9","click.dialog.title.space.gap": "0.25rem",- "click.dialog.typography.title.default": "700 1.25rem/1.5 \"Inter\", \"SF Pro Display\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\", sans-serif;",+ "click.dialog.typography.title.default": "700 1.25rem/1.5 \"Inter\", \"SF Pro Display\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\", sans-serif","click.field.color.background.default": "#fbfcff","click.field.color.stroke.active": "#161517","click.field.color.stroke.default": "#e6e7e9","click.field.color.stroke.disabled": "#dfdfdf","click.field.color.text.default": "#302e32","click.field.space.y": "0.2813rem",- "click.field.typography.label.default": "500 0.75rem/1.5 \"Inter\", \"SF Pro Display\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\", sans-serif;",+ "click.field.typography.label.default": "500 0.75rem/1.5 \"Inter\", \"SF Pro Display\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\", sans-serif","click.genericMenu.panel.radii.all": "0.25rem","click.genericMenu.panel.shadow.default": "0 4px 6px -1px lch(6.7738 0 none / 0.15), 0 2px 4px -1px lch(6.7738 0 none / 0.15)","click.genericMenu.panel.size.height": "2rem",@@ -141,9 +146,9 @@"spaces.8": "4rem","transition.duration.medium": "100ms","transition.duration.smooth": "150ms",- "typography.font.families.display": "'Basier Square', \"Inter\", \"SF Pro Display\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\", sans-serif;",+ "typography.font.families.display": "'Basier Square', \"Inter\", \"SF Pro Display\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\", sans-serif","typography.font.families.mono": "\"Inconsolata\", Consolas, \"SFMono Regular\", monospace",- "typography.font.families.regular": "\"Inter\", \"SF Pro Display\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\", sans-serif;",+ "typography.font.families.regular": "\"Inter\", \"SF Pro Display\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\", sans-serif","typography.font.line-height.1": 1.5,"typography.font.sizes.1": "0.75rem","typography.font.sizes.2": "0.875rem",@@ -171,8 +176,13 @@"click.button.basic.color.secondary.stroke.default": "#414141","click.button.basic.space.gap": "0.5rem","click.button.basic.space.x": "1rem",- "click.button.basic.typography.label.default": "400 0.875rem/1.5 \"Inter\", \"SF Pro Display\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\", sans-serif;",+ "click.button.basic.typography.label.default": "400 0.875rem/1.5 \"Inter\", \"SF Pro Display\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\", sans-serif","click.button.iconButton.color.primary.background.active": "rgb(14.118% 14.118% 14.118%)",+ "click.checkbox.color.background.active": "#faff69",+ "click.checkbox.color.background.default": "rgb(17.794% 17.794% 17.794%)",+ "click.checkbox.color.check.active": "#151515",+ "click.checkbox.color.stroke.default": "#414141",+ "click.checkbox.radii.all": "0.125rem","click.checkbox.size.all": "1rem","click.codeblock.darkMode.color.background.default": "#282828","click.codeblock.darkMode.color.text.default": "#ffffff",@@ -183,14 +193,14 @@"click.dialog.space.x": "2rem","click.dialog.stroke.default": "1px solid #323232","click.dialog.title.space.gap": "0.25rem",- "click.dialog.typography.title.default": "700 1.25rem/1.5 \"Inter\", \"SF Pro Display\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\", sans-serif;",+ "click.dialog.typography.title.default": "700 1.25rem/1.5 \"Inter\", \"SF Pro Display\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\", sans-serif","click.field.color.background.default": "rgb(17.794% 17.794% 17.794%)","click.field.color.stroke.active": "#faff69","click.field.color.stroke.default": "rgb(23.627% 23.627% 23.627%)","click.field.color.stroke.disabled": "#414141","click.field.color.text.default": "#e6e7e9","click.field.space.y": "0.2813rem",- "click.field.typography.label.default": "500 0.75rem/1.5 \"Inter\", \"SF Pro Display\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\", sans-serif;",+ "click.field.typography.label.default": "500 0.75rem/1.5 \"Inter\", \"SF Pro Display\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\", sans-serif","click.genericMenu.panel.radii.all": "0.25rem","click.genericMenu.panel.shadow.default": "0 4px 6px -1px rgb(8.2353% 8.2353% 8.2353% / 0.6), 0 2px 4px -1px rgb(8.2353% 8.2353% 8.2353% / 0.6)","click.genericMenu.panel.size.height": "2rem",@@ -286,9 +296,9 @@"spaces.8": "4rem","transition.duration.medium": "100ms","transition.duration.smooth": "150ms",- "typography.font.families.display": "'Basier Square', \"Inter\", \"SF Pro Display\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\", sans-serif;",+ "typography.font.families.display": "'Basier Square', \"Inter\", \"SF Pro Display\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\", sans-serif","typography.font.families.mono": "\"Inconsolata\", Consolas, \"SFMono Regular\", monospace",- "typography.font.families.regular": "\"Inter\", \"SF Pro Display\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\", sans-serif;",+ "typography.font.families.regular": "\"Inter\", \"SF Pro Display\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\", sans-serif","typography.font.line-height.1": 1.5,"typography.font.sizes.1": "0.75rem","typography.font.sizes.2": "0.875rem",diff --git a/packages/client/src/theme/themes/clickui.spec.ts b/packages/client/src/theme/themes/clickui.spec.tsindex bdaa0c83f1..b1dc8db5d1 100644--- a/packages/client/src/theme/themes/clickui.spec.ts+++ b/packages/client/src/theme/themes/clickui.spec.ts@@ -15,6 +15,7 @@ import {import { OGDialog, OGDialogContent, OGDialogTitle } from '../../components/OriginalDialog';import { resolveTheme, themeAppearanceProperties } from '../registry';import { Tabs, TabsList, TabsTrigger } from '../../components/Tabs';+import { Checkbox } from '../../components/Checkbox';import { Button } from '../../components/Button';import { Switch } from '../../components/Switch';import Dropdown from '../../components/Dropdown';@@ -900,6 +901,9 @@ function mount(tree: ReactElement, selector: string): Element {const switchProbe = (checked: boolean) => () =>mount(createElement(Switch, { 'aria-label': 'probe', checked }), '[role="switch"]');+const checkboxProbe = (checked: boolean) => () =>+ mount(createElement(Checkbox, { 'aria-label': 'probe', checked }), '[role="checkbox"]');+const tableProbe = (selector: string) => () =>mount(createElement(@@ -1253,6 +1257,44 @@ const parityProbes: Record<string, ParityProbe> = {utility: 'rounded',element: switchProbe(false),},+ 'Checkbox fill, checked': {+ token: 'click.checkbox.color.background.active',+ kind: 'color',+ utility: 'bg',+ variant: 'data-[state=checked]:',+ element: checkboxProbe(true),+ near: ['light'],+ },+ 'Checkbox fill, unchecked': {+ token: 'click.checkbox.color.background.default',+ kind: 'color',+ utility: 'bg',+ element: checkboxProbe(false),+ },+ 'Checkbox check, checked': {+ token: 'click.checkbox.color.check.active',+ kind: 'color',+ utility: 'text',+ variant: 'data-[state=checked]:',+ element: checkboxProbe(true),+ near: ['dark'],+ },+ 'Checkbox stroke': {+ token: 'click.checkbox.color.stroke.default',+ kind: 'color',+ utility: 'border',+ element: checkboxProbe(false),+ deviation: {+ light: 'border-xheavy holds the box edge to the 3:1 non-text floor #b3b6bd misses',+ dark: 'border-xheavy holds the box edge to the 3:1 non-text floor #414141 misses',+ },+ },+ 'Checkbox corner': {+ token: 'click.checkbox.radii.all',+ kind: 'shape',+ utility: 'rounded',+ element: checkboxProbe(false),+ },'Table header fill': {token: 'click.table.header.color.background.default',kind: 'color',@@ -1347,7 +1389,20 @@ interface NotExpressible {* close it. Remove an entry when the change that closes it lands, and pin its decisions to what* they then measure.*/-const notExpressible: Record<string, NotExpressible> = {};+const notExpressible: Record<string, NotExpressible> = {+ 'Checkbox unchecked fill': {+ decisions: { light: ['Checkbox fill, unchecked'], dark: ['Checkbox fill, unchecked'] },+ reason:+ 'the checkbox paints no fill of its own and shows the surface behind it; no role carries checkbox.color.background.default',+ issue: 'https://github.com/berry-13/LibreChat/issues/250',+ },+ 'Checkbox corner': {+ decisions: { light: ['Checkbox corner'], dark: ['Checkbox corner'] },+ reason:+ 'the checkbox corner reads radiusSm, which the theme sets to border.radii.1 for every small corner; checkbox.radii.all is 0.125rem',+ issue: 'https://github.com/berry-13/LibreChat/issues/250',+ },+};type Verdict = 'match' | 'near' | 'deviation' | 'not expressible';