Skip to content

fix(i18n): localize inventory loading and recheck errors - #1237

Merged
scttbnsn merged 1 commit into
dev/v1.8from
fix/v1.8-inventory-load-locales
Sep 16, 2026
Merged

scttbnsn merged 1 commit into
dev/v1.8from
fix/v1.8-inventory-load-locales

Conversation

@scttbnsn

@scttbnsn scttbnsn commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Test-first: 64 expected regressions failed before implementation, with six preservation checks passing. The real Containers and Agents views displayed the English service errors in French and Arabic.
  • 521 distinct focused tests across 12 suites pass, including the original service/view suites, new service-to-view regressions, fleet health, Dashboard data and locale parity checks.
  • Vue typechecking, Biome and diff checks pass.
  • Full normal pre-push gate passed in 350.69 seconds: 6,571 UI tests, 16,642 backend tests plus one existing skip, configured coverage thresholds, both builds, lint/static analysis, 260 script tests, 308 workflow tests, 162 website tests and workflow security checks.

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

  • ✨ Added localized error handling for getAgents, getAllContainers, and refreshAllContainers.
  • 🔧 Changed errors to include translated messages, HTTP status codes, and optional reason phrases.
  • ✨ Added service regression tests for locale changes, response handling, request options, abort signals, and network errors.
  • ✨ Added view tests for localized container and agent errors, recheck behavior, search state, request methods, and retry prevention.

Concerns

  • Review finding counts: unavailable from the supplied evidence.
  • Test, typecheck, lint, build, coverage, and security results: unavailable from the supplied evidence.

@vercel

vercel Bot commented Sep 16, 2026

Copy link
Copy Markdown

Deployment failed for project drydock-website with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/codeswhat?upgradeToPro=build-rate-limit

@coderabbitai

coderabbitai Bot commented Sep 16, 2026 •

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: e159ae5e-bd4d-4953-9d5b-6a77a8126a38

📥 Commits

Reviewing files that changed from the base of the PR and between 5f870db and 1a2b161.

⛔ Files ignored due to path filters (1)
  • CHANGELOG.md is excluded by !CHANGELOG.md
📒 Files selected for processing (6)
  • ui/src/services/agent.ts
  • ui/src/services/container.ts
  • ui/tests/services/agent.spec.ts
  • ui/tests/services/container.spec.ts
  • ui/tests/services/inventory-load-errors.spec.ts
  • ui/tests/views/InventoryLoad.errors.spec.ts

Included review availability: Your plan provides up to 2 included reviews per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

Agent 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 1a2b1

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)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/v1.8-inventory-load-locales

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.

@codecov

codecov Bot commented Sep 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@scttbnsn

Copy link
Copy Markdown
Contributor Author

@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.

@coderabbitai

coderabbitai Bot commented Sep 16, 2026 •

Copy link
Copy Markdown

@scttbnsn Starting a full review of #1237 at 1a2b161e98ae719761b6d9c6df8c024648b8bc61. I will assess the specified frontend error paths and regressions in the unchanged request-routing, scan, authentication, and agent contracts.

✅ Action performed

Full review finished.

@biggest-littlest biggest-littlest left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Reviewed the localized inventory error paths and regression coverage. CodeRabbit source review is clear and required CI has passed.

@scttbnsn
scttbnsn merged commit 6bfc736 into dev/v1.8 Sep 16, 2026
29 of 32 checks passed
@scttbnsn
scttbnsn deleted the fix/v1.8-inventory-load-locales branch September 16, 2026 20:16