🕵️ style: Mark Temporary Chat with the Incognito Icon

The dashed speech bubble (`MessageCircleDashed`) read as a generic chat glyph
rather than a retention cue, and its dashes break up at 16px. Every temporary
chat surface now uses lucide's `hat-glasses`, the hat-and-glasses incognito
mark: the header toggle, the read-only indicator chip once a conversation has
started, the overflow menu row, and the landing empty state.

`hat-glasses` landed in lucide 0.528.0, so `lucide` and `lucide-react` move
from `^0.525.0` to `^0.528.0` in `client` and `packages/client` (dependencies
and peers). That is the smallest bump that carries the icon; lucide redraws
existing icons between minors and the whole UI draws from it, so jumping to the
current 0.577 would bring unrelated visual churn.

`useChatBadges` imported the old icon without using it; the import is dropped.
This commit is contained in:
Marco Beretta 2026-09-11 17:33:11 +02:00
parent 8f13845da5
commit 9fd1003398
No known key found for this signature in database
GPG key ID: D918033D8E74CC11
7 changed files with 27 additions and 27 deletions

View file

@ -80,8 +80,8 @@
"js-cookie": "^3.0.5",
"librechat-data-provider": "*",
"lodash": "^4.17.23",
"lucide": "^0.525.0",
"lucide-react": "^0.525.0",
"lucide": "^0.528.0",
"lucide-react": "^0.528.0",
"match-sorter": "^8.1.0",
"mdast-util-directive": "^3.0.0",
"mdast-util-from-markdown": "^2.0.1",

View file

@ -1,7 +1,7 @@
import { useMemo, useCallback, useState, useEffect, useRef } from 'react';
import { useRecoilValue } from 'recoil';
import { HatGlasses } from 'lucide-react';
import { easings } from '@react-spring/web';
import { MessageCircleDashed } from 'lucide-react';
import { EModelEndpoint } from 'librechat-data-provider';
import { BirthdayIcon, TooltipAnchor, SplitText } from '@librechat/client';
import {
@ -160,7 +160,7 @@ export default function Landing({ centerFormOnLanding }: { centerFormOnLanding:
<div className={`relative size-10 justify-center ${textHasMultipleLines ? 'mb-2' : ''}`}>
{isTemporary ? (
<div className={containerClassName}>
<MessageCircleDashed className="h-2/3 w-2/3 text-text-primary" aria-hidden="true" />
<HatGlasses className="h-2/3 w-2/3 text-text-primary" aria-hidden="true" />
</div>
) : (
<ConvoIcon

View file

@ -1,9 +1,9 @@
import { useState, useId } from 'react';
import * as Ariakit from '@ariakit/react';
import { PermissionTypes, Permissions } from 'librechat-data-provider';
import { Ellipsis, PlusCircle, HatGlasses, Check } from 'lucide-react';
import { DropdownPopup, TooltipAnchor, Button } from '@librechat/client';
import { BookmarkFilledIcon, BookmarkIcon } from '@radix-ui/react-icons';
import { Ellipsis, PlusCircle, MessageCircleDashed, Check } from 'lucide-react';
import type { TStartupConfig } from 'librechat-data-provider';
import type * as t from '~/common';
import { BookmarkContext } from '~/Providers/BookmarkContext';
@ -100,7 +100,7 @@ export default function HeaderMenu({
icon: temporary.isTemporary ? (
<Check className="size-4 text-text-primary" />
) : (
<MessageCircleDashed className="size-4 text-text-secondary" />
<HatGlasses className="size-4 text-text-secondary" />
),
onClick: temporary.toggle,
});

View file

@ -1,4 +1,4 @@
import { MessageCircleDashed } from 'lucide-react';
import { HatGlasses } from 'lucide-react';
import { Chip, TooltipAnchor } from '@librechat/client';
import { useShortcutAriaKey, useShortcutHint } from '~/hooks/useKeyboardShortcuts';
import useTemporaryChat from '~/hooks/Chat/useTemporaryChat';
@ -32,7 +32,7 @@ export function TemporaryChat() {
: 'bg-presentation shadow-sm hover:bg-surface-active-alt',
)}
>
<MessageCircleDashed className="icon-md" aria-hidden="true" />
<HatGlasses className="icon-md" aria-hidden="true" />
</button>
}
/>
@ -59,7 +59,7 @@ export function TemporaryChatIndicator() {
size="theme"
shape="theme"
className="flex-shrink-0"
leading={<MessageCircleDashed className="size-4 shrink-0" aria-hidden="true" />}
leading={<HatGlasses className="size-4 shrink-0" aria-hidden="true" />}
>
<span className="max-md:sr-only">{localize('com_ui_temporary')}</span>
</Chip>

View file

@ -1,7 +1,7 @@
import { useMemo } from 'react';
import { useRecoilCallback } from 'recoil';
import { Box } from 'lucide-react';
import { useRecoilValue } from 'recoil';
import { MessageCircleDashed, Box } from 'lucide-react';
import { useRecoilCallback } from 'recoil';
import type { BadgeItem } from '~/common';
import { useLocalize, TranslationKeys } from '~/hooks';
import store from '~/store';

24
package-lock.json generated
View file

@ -937,8 +937,8 @@
"js-cookie": "^3.0.5",
"librechat-data-provider": "*",
"lodash": "^4.17.23",
"lucide": "^0.525.0",
"lucide-react": "^0.525.0",
"lucide": "^0.528.0",
"lucide-react": "^0.528.0",
"match-sorter": "^8.1.0",
"mdast-util-directive": "^3.0.0",
"mdast-util-from-markdown": "^2.0.1",
@ -30859,15 +30859,15 @@
"license": "ISC"
},
"node_modules/lucide": {
"version": "0.525.0",
"resolved": "https://registry.npmjs.org/lucide/-/lucide-0.525.0.tgz",
"integrity": "sha512-sfehWlaE/7NVkcEQ4T9JD3eID8RNMIGJBBUq9wF3UFiJIrcMKRbU3g1KGfDk4svcW7yw8BtDLXaXo02scDtUYQ==",
"version": "0.528.0",
"resolved": "https://registry.npmjs.org/lucide/-/lucide-0.528.0.tgz",
"integrity": "sha512-ECgCnfShg2QV+ExL6PPBB304Vfc/+1B99K+2zmAiHBWUlst8lziRoloR7PVeBDENABCC0DbCpw5UpUi/GG3JdA==",
"license": "ISC"
},
"node_modules/lucide-react": {
"version": "0.525.0",
"resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.525.0.tgz",
"integrity": "sha512-Tm1txJ2OkymCGkvwoHt33Y2JpN5xucVq1slHcgE6Lk0WjDfjgKWor5CdVER8U6DvcfMwh4M8XxmpTiyzfmfDYQ==",
"version": "0.528.0",
"resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.528.0.tgz",
"integrity": "sha512-Qeapzej+iIKQwOevWKtsSHJKkZh16ohe0Lm5bwdsmlMC7M3T9vIP+2jLiYjcvBl8Lekcc1BTtR4eUATqs3aAjw==",
"license": "ISC",
"peerDependencies": {
"react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0"
@ -43062,8 +43062,8 @@
"jotai": "^2.12.5",
"js-yaml": "^4.3.2",
"librechat-data-provider": "*",
"lucide": "^0.525.0",
"lucide-react": "^0.525.0",
"lucide": "^0.528.0",
"lucide-react": "^0.528.0",
"morphicons": "^1.4.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
@ -43113,8 +43113,8 @@
"input-otp": "^1.4.2",
"jotai": "^2.12.5",
"librechat-data-provider": "*",
"lucide": "^0.525.0",
"lucide-react": "^0.525.0",
"lucide": "^0.528.0",
"lucide-react": "^0.528.0",
"match-sorter": "^8.1.0",
"morphicons": "^1.4.1",
"rc-input-number": "^7.4.2",

View file

@ -78,8 +78,8 @@
"input-otp": "^1.4.2",
"jotai": "^2.12.5",
"librechat-data-provider": "*",
"lucide": "^0.525.0",
"lucide-react": "^0.525.0",
"lucide": "^0.528.0",
"lucide-react": "^0.528.0",
"match-sorter": "^8.1.0",
"morphicons": "^1.4.1",
"rc-input-number": "^7.4.2",
@ -114,8 +114,8 @@
"jotai": "^2.12.5",
"js-yaml": "^4.3.2",
"librechat-data-provider": "*",
"lucide": "^0.525.0",
"lucide-react": "^0.525.0",
"lucide": "^0.528.0",
"lucide-react": "^0.528.0",
"morphicons": "^1.4.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",