Skip to content

fix(ship): i18n ship-repo-section badges — unblock main lint#106

Merged
prellr merged 1 commit into
mainfrom
fix/roa264-i18n-lint-unblock
May 16, 2026
Merged

fix(ship): i18n ship-repo-section badges — unblock main lint#106
prellr merged 1 commit into
mainfrom
fix/roa264-i18n-lint-unblock

Conversation

@prellr
Copy link
Copy Markdown
Owner

@prellr prellr commented May 16, 2026

Summary

Unblocks main. ROA-264 (PR #100, cf7fa29d) merged with 4 i18next/no-literal-string errors in ship-repo-section.tsx, turning @multica/views#lint red on main for ~12h. Every PR branched off f46918fc (including #105) fails the frontend CI check on this inherited break.

Fix

  • ready / blocked / draft count badges → reuse the existing project_summary.{ready,blocked,draft}_pill keys (already built for the sibling ship-project-section.tsx; no new keys).
  • "No pull requests" empty state → new project_summary.no_prs. zh-Hans: "暂无 PR" — matches the established "暂无…" empty-state voice (tooltip_no_prs: "暂无待处理 PR") and the PR terminology used throughout the ship namespace.
  • Adds the useT("ship") hook, mirroring the sibling component.

Verification

Follow-up (separate)

How did PR #100 merge with red CI? The merge-train apparently doesn't gate on the frontend status check — that's the hole that let a main-breaking change land. Investigating next.

🤖 Generated with Claude Code

ROA-264 (PR #100, cf7fa29) merged with 4 i18next/no-literal-string
ERRORS in ship-repo-section.tsx, turning @multica/views#lint red on
main for ~12h and blocking the `frontend` CI check on every PR
branched off f46918f (incl. #105).

Wrap the unlocalized strings:
- ready/blocked/draft count badges → reuse the existing
  project_summary.{ready,blocked,draft}_pill keys (already created
  for the sibling ship-project-section.tsx; no new keys needed).
- "No pull requests" empty state → new project_summary.no_prs
  ("暂无 PR" in zh-Hans, matching the existing "暂无…" empty-state
  voice and the "PR" terminology used throughout the ship namespace).

Mirrors the useT("ship") pattern already in ship-project-section.tsx.
Verified: @multica/views lint 0 errors, views + web typecheck clean,
both ship.json valid. Unblocks main and all pending PRs.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@prellr prellr merged commit 4652f58 into main May 16, 2026
2 checks passed
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