Skip to content

Commit 99272e8

Browse files
committed
feat: Use Twake icon for default AI
We used to display the OpenRAG logo, let's use Twake instead.
1 parent fc2de5b commit 99272e8

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

packages/cozy-search/src/components/CreateAssistantSteps/Provider.jsx

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ import React from 'react'
44
import Icon from 'cozy-ui/transpiled/react/Icon'
55
import CheckIcon from 'cozy-ui/transpiled/react/Icons/Check'
66
import PlusSmallIcon from 'cozy-ui/transpiled/react/Icons/PlusSmall'
7+
import TwakeLogo from 'cozy-ui/transpiled/react/Icons/TwakeWorkplace'
78
import Typography from 'cozy-ui/transpiled/react/Typography'
8-
import { useI18n } from 'twake-i18n'
99
import { useCozyTheme } from 'cozy-ui-plus/dist/providers/CozyTheme'
10+
import { useI18n } from 'twake-i18n'
1011

1112
import styles from './styles.styl'
1213
import AnthropicLogo from '../../assets/anthropic.svg'
1314
import GeminiLogo from '../../assets/gemini.svg'
1415
import MetaLogo from '../../assets/meta.svg'
1516
import MistralLogo from '../../assets/mistral.svg'
1617
import OpenAILogo from '../../assets/open_ai.svg'
17-
import OpenRagLogo from '../../assets/openrag.png'
1818

1919
const ICONS = {
20-
OpenRagLogo,
20+
TwakeLogo,
2121
GeminiLogo,
2222
OpenAILogo,
2323
MistralLogo,
@@ -52,7 +52,14 @@ const Provider = ({ selectedProvider, provider, onSelect }) => {
5252
styles[`icon-container--${provider.id}`]
5353
)}
5454
>
55-
<Icon icon={ICONS[provider.icon]} size={40} />
55+
{
56+
/* FIXME: the twake icon is not rendered properly with Icon */
57+
isOpenRag ? (
58+
<TwakeLogo width={40} height={40} />
59+
) : (
60+
<Icon icon={ICONS[provider.icon]} size={40} />
61+
)
62+
}
5663
</div>
5764
<div className="u-flex-grow-1">
5865
<Typography

packages/cozy-search/src/components/CreateAssistantSteps/providers.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"name": "Twake",
55
"models": ["openrag"],
66
"description": "assistant_create.steps.provider_selection.openrag.description",
7-
"icon": "OpenRagLogo",
7+
"icon": "TwakeLogo",
88
"external": false
99
},
1010
{

0 commit comments

Comments
 (0)