Skip to content

feat: Use Twake icon for default AI#2963

Open
paultranvan wants to merge 2 commits intomasterfrom
fix-assistant-icon
Open

feat: Use Twake icon for default AI#2963
paultranvan wants to merge 2 commits intomasterfrom
fix-assistant-icon

Conversation

@paultranvan
Copy link
Contributor

@paultranvan paultranvan commented Mar 20, 2026

We used to display the OpenRAG logo, let's use Twake instead.

Also fix assistant default icon. See before/after
image

image

Summary by CodeRabbit

  • Style
    • Updated the icon displayed for the OpenRag provider in the assistant setup interface.

@coderabbitai
Copy link

coderabbitai bot commented Mar 20, 2026

Warning

Rate limit exceeded

@paultranvan has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 18 minutes and 51 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 9ca3a29e-5809-4d77-8bc9-aabca472bc51

📥 Commits

Reviewing files that changed from the base of the PR and between bbd7501 and 79394e7.

📒 Files selected for processing (4)
  • packages/cozy-search/src/components/Assistant/AssistantAvatar.jsx
  • packages/cozy-search/src/components/Assistant/AssistantSelection.jsx
  • packages/cozy-search/src/components/CreateAssistantSteps/Provider.jsx
  • packages/cozy-search/src/components/CreateAssistantSteps/providers.json

Walkthrough

This pull request replaces OpenRag branding with Twake for the OpenRag provider (imports and providers.json), updates Provider.jsx icon rendering to use TwakeLogo for that provider, changes AssistantAvatar to render assistant SVGs directly with a transparent fill style, updates AssistantSelection to use DEFAULT_ASSISTANT._id when selecting the default assistant, and adds color: transparent !important to .assistant-icon styling.

Possibly related PRs

Suggested reviewers

  • JF-Cozy
  • rezk2ll
  • zatteo
  • doubleface
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main change: replacing the OpenRAG logo with the Twake logo for the default AI assistant, which is evident across the modified files (Provider.jsx, providers.json, and related icon handling).
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-assistant-icon

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
packages/cozy-search/src/components/CreateAssistantSteps/Provider.jsx (1)

55-62: Consider removing the FIXME workaround—TwakeWorkplaceIcon renders properly with Icon component.

StorageButton.jsx successfully renders the same TwakeWorkplaceIcon using <Icon icon={TwakeWorkplaceIcon} size={22} />, suggesting this workaround may be outdated. To maintain consistency across the codebase, consider simplifying this to:

<Icon icon={ICONS[provider.icon]} size={40} />

for all providers, including when isOpenRag is true.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@packages/cozy-search/src/components/CreateAssistantSteps/Provider.jsx` around
lines 55 - 62, The Twake workaround (rendering TwakeLogo when isOpenRag is true)
should be removed and both branches should render via the shared Icon component
to keep consistency: replace the conditional rendering of TwakeLogo in
CreateAssistantSteps/Provider.jsx so that Icon is used for all providers (use
Icon with ICONS[provider.icon] and size 40), ensuring the ICONS mapping includes
the TwakeWorkplaceIcon identifier (same pattern as StorageButton.jsx's usage of
Icon) and drop the TwakeLogo component usage.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@packages/cozy-search/src/components/CreateAssistantSteps/Provider.jsx`:
- Around line 55-62: The Twake workaround (rendering TwakeLogo when isOpenRag is
true) should be removed and both branches should render via the shared Icon
component to keep consistency: replace the conditional rendering of TwakeLogo in
CreateAssistantSteps/Provider.jsx so that Icon is used for all providers (use
Icon with ICONS[provider.icon] and size 40), ensuring the ICONS mapping includes
the TwakeWorkplaceIcon identifier (same pattern as StorageButton.jsx's usage of
Icon) and drop the TwakeLogo component usage.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 4149ea11-3411-44bc-94bf-b771b6a8d851

📥 Commits

Reviewing files that changed from the base of the PR and between 0118431 and 7ddb9c2.

📒 Files selected for processing (2)
  • packages/cozy-search/src/components/CreateAssistantSteps/Provider.jsx
  • packages/cozy-search/src/components/CreateAssistantSteps/providers.json

We used to display the OpenRAG logo, let's use Twake instead.
Render SVG icons directly with inline transparent fill/color
to prevent MUI Chip's icon styles from overriding the
multicolor sparkle appearance. Also fix .id -> ._id for
default assistant comparison.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant