Add Google AI Studio shortcut#229
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughAdds Google AI Studio as a new toggleable AI tool: inserts its catalog entry in ChangesAdd Google AI Studio to AI Tools
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested labels
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@scripts/ai-tools.js`:
- Around line 53-64: The mergeAIToolsSettings function accepts and preserves all
saved settings without validating them against known tool IDs from aiToolsRaw,
allowing stale or malformed entries to persist. Before calculating
missingSettings, filter the savedSettings array to only include entries whose
tool IDs (obtained via getAIToolId) exist in the aiToolsRaw reference data, then
proceed with appending the missing defaults as currently done. This ensures only
valid and known tool IDs are retained in the merged result.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 63ea0788-2d9b-42ce-97fc-5bb2967f5748
📒 Files selected for processing (5)
CHANGELOG.mdindex.htmllocales/en.jsscripts/ai-tools.jsscripts/languages.js
📌 Description
Adds Google AI Studio as an AI Tools shortcut linking to
https://aistudio.google.com/prompts/new_chat.The shortcut is hidden by default, matching the existing optional AI tools pattern, and existing saved AI Tools settings now append newly-added default tools so current users can opt into Google AI Studio without resetting their existing order.
🎨 Visual Changes (Screenshots / Videos)
No screenshot attached from this environment. The visible change is one additional hidden-by-default AI Tools option that appears in the AI Tools settings list and can be enabled by the user.
🔗 Related Issues
✅ Checklist
git diff --check,node --check scripts/ai-tools.js,node --check scripts/languages.js, and a repository consistency check for the new tool id/link.🤖 AI Assistance (Coding)
Summary
This PR adds Google AI Studio as a new AI Tools shortcut linking to
https://aistudio.google.com/prompts/new_chat. It integrates with the existing optional AI tools system so the shortcut is hidden by default and can be enabled via AI Tools settings, while ensuring current users’ saved tool preferences are preserved.Changes
CHANGELOG.md
index.html
locales/en.js
googleAIStudiolocalization string with value “Google AI Studio”.scripts/ai-tools.js
aiToolsRaw) to include Google AI Studio, including default visibility/order changes.applyAIToolsSettings()andshowAIToolsSettings()to always merge saved settings with defaults, and to avoid rewritinglocalStorageunless merged settings differ from the previously loaded ones.scripts/languages.js
googleAIStudioto thetranslationMapso language switching populates the new AI tools UI text.Implementation Notes