Skip to content

fix(publish): localize fallback publish errors#362

Merged
KurodaKayn merged 3 commits into
mainfrom
fix/redis-publish-review
Jun 21, 2026
Merged

fix(publish): localize fallback publish errors#362
KurodaKayn merged 3 commits into
mainfrom
fix/redis-publish-review

Conversation

@KurodaKayn

Copy link
Copy Markdown
Owner

Change Description

  • Documents the Redis Cluster staging cutover envs needed for client mTLS.
  • Restores localized publish fallback errors by letting the dashboard workflow format helper fallback messages.
  • Adds regression coverage for fallback publish errors and missing queued publication status.

Implementation Approach

  • Kept the publish helper UI-agnostic by passing optional formatter callbacks instead of importing translations there.
  • Reused existing platform label translation in the content publish workflow.
  • Left DB migration behavior untouched.

Testing

  • Passed: pnpm --filter frontend exec oxfmt --check 'src/app/[locale]/dashboard/content/_lib/publish-content.ts' 'src/app/[locale]/dashboard/content/_lib/publish-content.test.ts' 'src/app/[locale]/dashboard/content/_workflows/use-content-publish-workflow.ts'
  • Passed: pnpm --filter frontend type-check
  • Passed: pnpm --filter frontend test -- 'src/app/[locale]/dashboard/content/_lib/publish-content.test.ts' (Vitest ran 41 files, 175 tests)
  • Passed: git diff --check origin/main...HEAD
  • Partial: bash script/ci/kubernetes.sh passed kustomize render/schema validation and Ruby tests before failing at the Redis capacity alert promtool container step because the local Docker/OrbStack socket /Users/kurodakayn/.orbstack/run/docker.sock was unavailable.

Staging self-hosted Redis Cluster rehearsals require client TLS material for app traffic.

Document the CA, client certificate, and client key config paths alongside cluster endpoint settings.

Operators can follow the cutover note without missing mTLS client authentication.
Publish fallback errors moved into a shared helper and lost access to dashboard translations.

Allow callers to provide localized fallback formatters and pass translated platform labels from the workflow.

Fallback publish toasts no longer expose raw platform ids or hard-coded English copy.
The publish helper now relies on callers to provide localized fallback messages.

Add coverage for failed publish fallbacks and missing queued publication status fallbacks.

The tests guard against reintroducing hard-coded helper copy.
@KurodaKayn KurodaKayn merged commit 2cb9ba2 into main Jun 21, 2026
14 checks passed
@KurodaKayn KurodaKayn deleted the fix/redis-publish-review branch June 21, 2026 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant