Repository navigation
fix(i18n): localize API key failure messages - #1235
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (4)
Included review availability: Your plan provides up to 2 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe API-key service now uses localized fallback messages for load, create, and revoke failures. It ignores missing, non-string, and blank server error values and includes the HTTP status in fallback messages. New service and component tests cover supported locales, malformed responses, network failures, pagination, creation, revocation, confirmation, retained rows, and request headers. Priority: ⬇️ Low Change: Bug fix Merge Risk: ⚪ Minimal · up to The localized fallback handling and its covered error paths do not show a concrete unresolved regression. The change is ready to merge. 🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
🧪 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 |
|
@coderabbitai full review Please review head eb78409. This is frontend error-message localization only. Authentication, permissions, credential handling, request headers and endpoints are unchanged. Check fallback handling, preservation of server diagnostics, locale selection and the service/component regression tests. The full local gate passed on this exact head; hosted coverage has a failure under investigation. |
|
✅ Action performedFull review finished. |
biggest-littlest
left a comment
There was a problem hiding this comment.
Reviewed the exact head after CodeRabbit completed its source review with no actionable findings. The local gate and hosted Playwright passed. Required CI is rerunning after the runner shutdown.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Fix
API-key failures could bypass the translated Settings messages because the service returned hardcoded English errors. Empty server errors could also leave the screen without useful feedback.
Reuse the existing load/create/revoke translations and fall back to them plus HTTP status for blank, missing or unreadable server errors. Keep nonblank server diagnostics unchanged. No changes to authentication, scopes, requests, headers, confirmation or credential revelation.
Verification
No browser or production deployment claim. Standard CodeRabbit review; no sensitive authentication or permission behavior changes requiring a second reviewer.
Changelog
i18n.global.t(...).errorfields.Could not load API keys.Concerns