Skip to content

fix(ui): localize Outbox fallback errors - #1184

Merged
scttbnsn merged 1 commit into
dev/v1.8from
feat/v1.8-outbox-error-locale
Sep 13, 2026
Merged

scttbnsn merged 1 commit into
dev/v1.8from
feat/v1.8-outbox-error-locale

Conversation

@scttbnsn

@scttbnsn scttbnsn commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Use the existing translated Outbox messages when load, retry or discard fails without a usable server diagnostic. The service previously supplied English fallback text that took precedence over the view's translation.

Nonempty server diagnostics remain unchanged, including whitespace. Retry/delete errors keep their HTTP status code. No API, global error utility, locale catalog or dependency changes.

Verification

  • Real-service French regressions: 18 expected failures before the fix, covering three operations and missing, empty, blank, non-string, null and malformed error envelopes.
  • Focused checks: 77 tests passed across five files; a separate rerun of both Outbox suites passed all 69 tests.
  • Changed Outbox service: 100% statement, branch, function and line coverage.
  • Normal full pre-push passed on 800e8e300fcad283379dbc774631a3de3c0eecfd: 16,509 backend tests passed (one existing skip), 5,612 UI tests passed, 100% backend and UI TypeScript coverage, both builds and UI typecheck passed. Also passed 248 script, 290 workflow and 96 website-script tests plus the blocking static checks. Optional local Docker build was skipped normally. Vue SFC runtime coverage remains outside the current gate and is tracked separately.

This closes the three confirmed Outbox fallback paths. It does not claim all frontend literals or network/provider diagnostics are localized.

Changelog

  • 🐛 Fixed Outbox load, retry, and discard errors to use localized fallback messages when server diagnostics are empty or unusable.
  • 🔧 Preserved nonempty server diagnostics, including whitespace-only values, and retained HTTP status codes for retry and discard failures.
  • ✨ Added coverage for localized French fallback messages, valid diagnostics, reload recovery, and successful retry refresh behavior.
  • 🗑️ Removed statusText fallback usage from Outbox service errors.

@vercel

vercel Bot commented Sep 13, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
drydock-website Ready Ready Preview Sep 13, 2026 4:22pm UTC
drydockdemo-website Ready Ready Preview Sep 13, 2026 4:22pm UTC

@coderabbitai

coderabbitai Bot commented Sep 13, 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: 29bde9ed-7088-40ae-8f98-16db32c054f7

📥 Commits

Reviewing files that changed from the base of the PR and between 6e75b37 and 800e8e3.

⛔ Files ignored due to path filters (1)
  • CHANGELOG.md is excluded by !CHANGELOG.md
📒 Files selected for processing (4)
  • ui/src/services/notification-outbox.ts
  • ui/src/views/NotificationOutboxView.vue
  • ui/tests/services/notification-outbox.spec.ts
  • ui/tests/views/NotificationOutboxView.spec.ts

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


📝 Walkthrough

Walkthrough

The notification outbox service now returns server error strings or empty messages without status-text fallbacks. Retry and delete errors retain HTTP status codes. The view applies localized load, retry, and discard messages only when the service returns no message. Tests cover malformed responses, missing diagnostics, server diagnostics, recovery, and successful retry refreshes.

Priority: ⬇️ Low

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 800e8

Localized fallback messages are applied when server diagnostics are unusable, while valid diagnostics and retry/delete status codes remain preserved. No actionable merge risk remains.

🚥 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 feat/v1.8-outbox-error-locale

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 13, 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 review

@coderabbitai

coderabbitai Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@scttbnsn
scttbnsn merged commit 2b99230 into dev/v1.8 Sep 13, 2026
32 of 33 checks passed
@scttbnsn
scttbnsn deleted the feat/v1.8-outbox-error-locale branch September 13, 2026 17:10