Repository navigation
fix(i18n): localize inventory loading and recheck errors - #1237
Conversation
|
Deployment failed for project drydock-website with the following error: |
|
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 (6)
Included review availability: Your plan provides up to 2 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughAgent and container services now throw localized errors that include HTTP status codes and optional status text. Service tests cover locale handling, request options, network errors, and abort signals. View tests cover localized load and recheck errors, search state, request counts, and button state in French and Arabic. Priority: ⬇️ Low Change: Bug fix Merge Risk: ⚪ Minimal · up to Localized inventory error handling and its service and view behavior have focused coverage; no merge-blocking risk is identified. 🚥 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
@coderabbitai full review Please run the first source review of 1a2b161 now that the stated allowance has reset. The earlier result was quota-only. Scope: frontend inventory load/recheck error messages and consumer regressions. Request routing, scan behavior, authentication and agent boundaries are unchanged; assess regressions in those existing contracts, not new subsystems. |
|
✅ Action performedFull review finished. |
biggest-littlest
left a comment
There was a problem hiding this comment.
Reviewed the localized inventory error paths and regression coverage. CodeRabbit source review is clear and required CI has passed.
What changed
Container inventory loading, container rechecks and agent-list failures now use the selected language and retain numeric HTTP status codes and reason phrases. The views already had translated fallbacks, but the service-generated English errors bypassed them.
This reuses three existing keys across all 17 locales. Network diagnostics, query options, caller abort signals, credentials, request methods, scan behavior and the agent roster are unchanged. No component implementation changes, new retries or translation catalog edits.
Verification
The new component tests use real services, router, Pinia and container list content with fake fetch and layout/table/decorative stubs. They exercise the actual recheck button and verify it recovers without retrying. No live browser QA claim. Review scope: frontend error presentation only, with no authentication, action access or scan scheduling changes.
Changelog
getAgents,getAllContainers, andrefreshAllContainers.Concerns