feat: Use Twake icon for default AI#2963
Conversation
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the 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 configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughThis PR updates the asset mapping and icon configuration for the OpenRag provider in the cozy-search component. The changes include replacing the OpenRagLogo import with TwakeLogo in the Provider component, updating the corresponding icon lookup object entry, reordering import statements, and updating the providers.json configuration file to reference TwakeLogo instead of OpenRagLogo for the OpenRag provider's icon field. Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
99272e8 to
7ddb9c2
Compare
There was a problem hiding this comment.
🧹 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
isOpenRagis 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
📒 Files selected for processing (2)
packages/cozy-search/src/components/CreateAssistantSteps/Provider.jsxpackages/cozy-search/src/components/CreateAssistantSteps/providers.json
24653f3 to
79394e7
Compare
79394e7 to
9b36ec9
Compare
We used to display the OpenRAG logo, let's use Twake instead.
0f993e3 to
eeff84e
Compare
This icon was using `fill: currentColor` which is not good for Custom provivder icon; but `fill: inherit` as set with `preserveColor` does the job
eeff84e to
b2a0ea6
Compare
We used to display the OpenRAG logo, let's use Twake instead.
Also fix assistant default icon. See before/after

Summary by CodeRabbit