LibreChat/packages/client/src/components
Marco Beretta c821638e3d
🌓 refactor: Scrim OGDialog With the Overlay Theme Role (#16068)
* 🌓 refactor: Scrim OGDialog With the Overlay Theme Role

OGDialog scrimmed with a literal bg-black/80, so a theme that redefined
surface-overlay moved the Dialog and AlertDialog families and left every
OGDialog black. The scrim now paints bg-surface-overlay/80: the opacity
is unchanged, so the themes whose overlay resolves to black (dark, and
both high-contrast modes) render the same rgba as before, and the light
theme gets the gray scrim it defines, at 4.3:1 against the dialog it
frames.

Follow-up from the review of #15798, tracked as berry-13/LibreChat#14.

* 🧪 test: Carry the Scenario Theme Mode in the URL

The black-overlay scenario switched modes by writing `color-theme` and
reloading, but the init script that seeds the mode stays registered for
the life of the page and rewrote it on every load, so the high-contrast
iterations re-read the first mode and never matched their `<html>`
classes. The mode now rides in the URL and the init script copies
whatever the current navigation asks for.

* 🧪 test: Read the Scrim of the Frontmost Open Dialog

The scrim helpers resolved the dialog with `querySelector`, which takes
the first match in document order. Nothing in the suite is affected —
the settings modal is Headless UI and carries no `data-state`, so the
stacked scenario already measured the account confirmation — but a
scenario that opened an OGDialog from inside another one would have
silently read the outer dialog's scrim. The helpers now resolve the
frontmost open dialog by z-index and read its sibling scrim, and the
color and both sample points come back from one pass over the DOM.

* 🗂️ fix: Let the SharePoint Picker Take the App's Scrim

The picker rendered an OGDialogOverlay of its own beside the
OGDialogContent that portals one anyway. Both sat at depth 1, so both
resolved to z-index 130, and the primitive's overlay — mounted second —
painted over the picker's, so the lighter black it asked for never
reached the screen. The dialog is opaque, so it needs no backdrop of
its own: the extra overlay and its literal are gone and the picker
scrims with the theme's overlay role, exactly once, like every other
OGDialog.

* 🧪 test: Compare the Picker's Scrim to the Primitive's Own

The picker spec pinned the scrim's utility classes, which says nothing
a reader of the app would recognise and would break the next time the
primitive's opacity moves. It now renders a bare OGDialog beside it and
asserts the picker's single scrim is the same layer the app paints.
2026-09-19 08:58:30 -04:00
..
__tests__ 🧷 fix: Keep Ref Cleanup and Hold Consumer Handlers to the Frontmost Dialog (#15751) 2026-09-08 16:37:35 -04:00
DataTable ✨ feat: add morphing state icons across the client (#14697) 2026-09-04 03:27:14 +02:00
Accordion.tsx 🎨 refactor: adopt the @librechat/client design system (semantic color tokens + component migration) (#13879) 2026-08-06 09:15:17 -04:00
Alert.tsx 🎨 refactor: adopt the @librechat/client design system (semantic color tokens + component migration) (#13879) 2026-08-06 09:15:17 -04:00
AlertDialog.tsx ♿ feat: High Contrast Light and Dark Appearance Modes (#15178) 2026-09-05 22:20:33 +02:00
AnimatedSearchInput.tsx 🧩 refactor: Shared UI Design System Tokens (#14670) 2026-08-06 22:13:02 -04:00
AnimatedTabs.css
AnimatedTabs.tsx
AnimatePopover.css 🗂️ feat: Rework the Projects Dashboard, Sidebar and Scoped Composer (#14866) 2026-08-16 11:06:18 -04:00
Avatar.tsx
Badge.spec.tsx 🧩 refactor: Shared UI Design System Tokens (#14670) 2026-08-06 22:13:02 -04:00
Badge.tsx ✨ feat: add morphing state icons across the client (#14697) 2026-09-04 03:27:14 +02:00
Breadcrumb.tsx 🎨 refactor: adopt the @librechat/client design system (semantic color tokens + component migration) (#13879) 2026-08-06 09:15:17 -04:00
Button.spec.tsx 🪟 fix: Opaque Header Controls Over the Chat Gradient (#15894) 2026-09-14 00:58:37 +02:00
Button.tsx 🪟 fix: Opaque Header Controls Over the Chat Gradient (#15894) 2026-09-14 00:58:37 +02:00
Checkbox.tsx 🎨 refactor: adopt the @librechat/client design system (semantic color tokens + component migration) (#13879) 2026-08-06 09:15:17 -04:00
CheckboxButton.spec.tsx 💠 style: Unify Code Approval With Composer Controls (#15721) 2026-09-07 23:13:27 -04:00
CheckboxButton.tsx 💠 style: Unify Code Approval With Composer Controls (#15721) 2026-09-07 23:13:27 -04:00
Chip.spec.tsx 🎨 feat: Add Versioned Theme Foundation (#14709) 2026-08-10 13:41:03 -04:00
Chip.tsx 🎨 feat: Add Versioned Theme Foundation (#14709) 2026-08-10 13:41:03 -04:00
Collapsible.tsx
Combobox.tsx 🫧 fix: Raise Nested Popovers Above Dialog Layers (#15738) 2026-09-08 10:51:17 -04:00
Composer.spec.tsx 🩹 fix: Stop the Subagent Composer Unmounting, and Give It Main Chat's Shape (#15448) 2026-09-01 00:29:22 -04:00
Composer.tsx 👆 style: Thumb-Sized Send Button on Touch Devices (#15979) 2026-09-15 23:39:17 -04:00
ControlCombobox.spec.tsx 🗂️ feat: Rework the Projects Dashboard, Sidebar and Scoped Composer (#14866) 2026-08-16 11:06:18 -04:00
ControlCombobox.tsx 🧵 refactor: Give the Subagent Panel One Composer and Main Chat's Metrics (#15436) 2026-08-31 21:46:58 -04:00
DataTable.tsx 🎨 refactor: adopt the @librechat/client design system (semantic color tokens + component migration) (#13879) 2026-08-06 09:15:17 -04:00
DelayedRender.tsx
Dialog.tsx ♿ feat: High Contrast Light and Dark Appearance Modes (#15178) 2026-09-05 22:20:33 +02:00
DialogTemplate.spec.tsx
DialogTemplate.tsx ♿ feat: High Contrast Light and Dark Appearance Modes (#15178) 2026-09-05 22:20:33 +02:00
DisclosureChevron.tsx 🧰 feat: Unify Tool Activity, Reasoning, Search, and Agent Workflows (#14546) 2026-09-06 14:56:50 -04:00
Dropdown.css ♿ feat: High Contrast Light and Dark Appearance Modes (#15178) 2026-09-05 22:20:33 +02:00
Dropdown.spec.tsx 🕰️ feat: Clock Format and Week Start Preferences (#15121) 2026-08-23 18:41:14 -04:00
Dropdown.tsx 🕰️ feat: Clock Format and Week Start Preferences (#15121) 2026-08-23 18:41:14 -04:00
DropdownMenu.tsx 🎨 refactor: adopt the @librechat/client design system (semantic color tokens + component migration) (#13879) 2026-08-06 09:15:17 -04:00
DropdownPopup.spec.tsx ♿ fix: Keep Portaled Dropdown Menus Clickable Inside Modal Dialogs (#15026) 2026-08-20 11:20:42 -04:00
DropdownPopup.tsx ♿ fix: Resolve axe Violations in Sidebar, Tools Dropdown and Footer (#14979) 2026-08-20 11:52:53 -04:00
EmptyState.spec.tsx 🪹 feat: Shared Empty State for Side Panels (#15123) 2026-08-23 18:56:34 -04:00
EmptyState.tsx 🪹 feat: Shared Empty State for Side Panels (#15123) 2026-08-23 18:56:34 -04:00
Field.css 🎨 feat: Refine Client Colors and Sharing Dialogs (#14734) 2026-08-10 22:43:57 -04:00
Field.ts ⏱️ feat: Run Scheduled Chats Through Durable Agent Triggers (#14939) 2026-08-20 11:51:30 -04:00
FieldMessage.spec.tsx 🎛️ feat: Consistent Dialogs, Clearer Settings, and a Keyboard Shortcuts Switch (#14882) 2026-08-16 16:10:17 -04:00
FieldMessage.tsx 🎛️ feat: Consistent Dialogs, Clearer Settings, and a Keyboard Shortcuts Switch (#14882) 2026-08-16 16:10:17 -04:00
FileUpload.tsx
FilterInput.tsx 🎨 refactor: adopt the @librechat/client design system (semantic color tokens + component migration) (#13879) 2026-08-06 09:15:17 -04:00
FormInput.tsx
HoverCard.tsx 🫧 fix: Raise Nested Popovers Above Dialog Layers (#15738) 2026-09-08 10:51:17 -04:00
IconButton.spec.tsx 🎨 feat: Add Versioned Theme Foundation (#14709) 2026-08-10 13:41:03 -04:00
IconButton.tsx 🎨 feat: Add Versioned Theme Foundation (#14709) 2026-08-10 13:41:03 -04:00
index.ts 🧰 feat: Unify Tool Activity, Reasoning, Search, and Agent Workflows (#14546) 2026-09-06 14:56:50 -04:00
InfoHoverCard.tsx ✅ feat: Delivery Receipt Checkmarks for Steered Messages (#15376) 2026-08-30 18:33:39 -04:00
Input.tsx ⏱️ feat: Run Scheduled Chats Through Durable Agent Triggers (#14939) 2026-08-20 11:51:30 -04:00
InputCombobox.tsx
InputNumber.tsx 🌐 fix: Scrollable Language Dropdown in Shared Chat Settings (#14954) 2026-08-17 22:42:28 -04:00
InputOTP.tsx 🎨 refactor: adopt the @librechat/client design system (semantic color tokens + component migration) (#13879) 2026-08-06 09:15:17 -04:00
InputWithDropDown.tsx 🎨 refactor: adopt the @librechat/client design system (semantic color tokens + component migration) (#13879) 2026-08-06 09:15:17 -04:00
Label.spec.tsx ✨ refactor: Presets, Skills Motion and Model Selector Polish (#14953) 2026-08-19 15:49:47 -04:00
Label.tsx ✨ refactor: Presets, Skills Motion and Model Selector Polish (#14953) 2026-08-19 15:49:47 -04:00
MorphIcon.spec.tsx ✨ feat: add morphing state icons across the client (#14697) 2026-09-04 03:27:14 +02:00
MorphIcon.ts ✨ feat: add morphing state icons across the client (#14697) 2026-09-04 03:27:14 +02:00
MultiSearch.tsx
MultiSelect.tsx 🩻 feat: improve agent filter controls for insights (#15807) 2026-09-11 10:54:37 -04:00
OGDialogTemplate.tsx ♿ feat: High Contrast Light and Dark Appearance Modes (#15178) 2026-09-05 22:20:33 +02:00
OriginalDialog.tsx 🌓 refactor: Scrim OGDialog With the Overlay Theme Role (#16068) 2026-09-19 08:58:30 -04:00
Pagination.tsx
PixelCard.tsx
Progress.tsx 🎨 refactor: adopt the @librechat/client design system (semantic color tokens + component migration) (#13879) 2026-08-06 09:15:17 -04:00
QuestionMark.tsx
Radio.spec.tsx 🎛 refactor: Replace Agent Skills Toggles With a Three-Way Mode Control (#15520) 2026-09-06 03:32:56 +02:00
Radio.tsx 📱 fix: Fit the Tool Library and Skills Pickers to Small Screens (#16067) 2026-09-18 17:29:39 +02:00
Resizable.tsx 🎨 refactor: adopt the @librechat/client design system (semantic color tokens + component migration) (#13879) 2026-08-06 09:15:17 -04:00
SecretInput.spec.tsx ✨ feat: add morphing state icons across the client (#14697) 2026-09-04 03:27:14 +02:00
SecretInput.tsx ✨ feat: add morphing state icons across the client (#14697) 2026-09-04 03:27:14 +02:00
SegmentedMeter.spec.tsx ✨ feat: Context Gauge Hover Reveal and Breakdown Motion Polish (#15038) 2026-08-21 11:34:36 -04:00
SegmentedMeter.tsx 🧮 feat: Surface Retained Tool-Message Context Usage (#15796) 2026-09-11 15:53:29 -04:00
Select.tsx 🫧 fix: Raise Nested Popovers Above Dialog Layers (#15738) 2026-09-08 10:51:17 -04:00
SelectDropDown.tsx 🎨 refactor: adopt the @librechat/client design system (semantic color tokens + component migration) (#13879) 2026-08-06 09:15:17 -04:00
SendActions.spec.tsx 🩹 fix: Stop the Subagent Composer Unmounting, and Give It Main Chat's Shape (#15448) 2026-09-01 00:29:22 -04:00
SendActions.tsx 🩹 fix: Stop the Subagent Composer Unmounting, and Give It Main Chat's Shape (#15448) 2026-09-01 00:29:22 -04:00
Separator.tsx
Skeleton.tsx
Slider.tsx 🎨 refactor: adopt the @librechat/client design system (semantic color tokens + component migration) (#13879) 2026-08-06 09:15:17 -04:00
SplitText.spec.tsx
SplitText.tsx
Switch.tsx 🎨 refactor: adopt the @librechat/client design system (semantic color tokens + component migration) (#13879) 2026-08-06 09:15:17 -04:00
Table.tsx 🎨 refactor: adopt the @librechat/client design system (semantic color tokens + component migration) (#13879) 2026-08-06 09:15:17 -04:00
Tabs.tsx 🎨 refactor: adopt the @librechat/client design system (semantic color tokens + component migration) (#13879) 2026-08-06 09:15:17 -04:00
Tag.spec.tsx 🧩 refactor: Shared UI Design System Tokens (#14670) 2026-08-06 22:13:02 -04:00
Tag.tsx 🧩 refactor: Shared UI Design System Tokens (#14670) 2026-08-06 22:13:02 -04:00
Textarea.tsx ⏱️ feat: Run Scheduled Chats Through Durable Agent Triggers (#14939) 2026-08-20 11:51:30 -04:00
TextareaAutosize.tsx
ThemeSelector.spec.tsx ♿ feat: High Contrast Light and Dark Appearance Modes (#15178) 2026-09-05 22:20:33 +02:00
ThemeSelector.tsx ♿ feat: High Contrast Light and Dark Appearance Modes (#15178) 2026-09-05 22:20:33 +02:00
TimePicker.spec.tsx ⏱️ feat: Shared Time Picker for Schedule Times (#15122) 2026-08-23 22:47:33 +00:00
TimePicker.tsx ⏱️ feat: Shared Time Picker for Schedule Times (#15122) 2026-08-23 22:47:33 +00:00
Toast.tsx 🔔 fix: Honor Toast Duration and Support Persistent Toasts (#15049) 2026-09-06 04:38:15 +02:00
Tooltip.css ♿ feat: High Contrast Light and Dark Appearance Modes (#15178) 2026-09-05 22:20:33 +02:00
Tooltip.spec.tsx
Tooltip.tsx ⛶ feat: add fullscreen artifact previews (#14585) 2026-08-08 23:15:04 -04:00