Skip to content

fix(i18n): localize fleet progress and preview booleans - #1230

Merged
scttbnsn merged 3 commits into
dev/v1.8from
fix/v1.8-fleet-progress-locales
Sep 16, 2026
Merged

scttbnsn merged 3 commits into
dev/v1.8from
fix/v1.8-fleet-progress-locales

Conversation

@scttbnsn

@scttbnsn scttbnsn commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Change

Translate the fleet-update banner's three progress messages in all 16 non-English locales. Keep interpolation fields and the existing completed-count, running-name limit and batch lifecycle behavior unchanged. This part changes only 48 catalog values.

Also replace two literal yes/no preview values in the full-page container view with existing common.yes/common.no translations, matching the side panel. Both boolean values, preview data and action behavior remain unchanged. No API, store, policy or update-execution changes. Combined scope is 21 files.

These are maintainer translations, not native-speaker or Crowdin approval.

Verification

  • 18 regressions failed on the English copies before the translation changes, with the English catalog still passing.
  • All 201 focused tests pass across 18 suites: all i18n tests, the mounted banner, fleet-progress composable and operation store.
  • The real mounted banner switches from English to French, counts successes and failures, shows only three running names plus overflow, drops the overflow message as work settles, and disappears after completion. Queued-only batches omit the running-name line; single-container batches remain hidden.
  • All 17 locale checks preserve and render each interpolation. Vue type checking, Biome and whitespace checks pass.
  • Preview regressions failed on both true/false combinations before the fix. The mounted full-page view now switches its running-status and compose-write values from English to French without changing data or invoking preview/update/trigger actions. All 296 focused tests across 20 suites pass, covering both detail views and the fleet tests.
  • Reviewed head 3bd8fed passed the full normal push gate and all required hosted checks. CodeRabbit's source review found no actionable issues.
  • Final dev integration 1df6ec7 preserves every original source/test/catalog file byte-for-byte. The only conflict was adjacent changelog entries, now preserved together. Its full normal push passed in 349.66 seconds: static analysis, 260 repository-script tests, 303 workflow tests, Vue checker, configured backend/UI coverage and both builds. Website/workflow-only steps correctly skipped this scoped repush; the original fleet-only push passed all 162 website tests and Zizmor. Final-head hosted CI and scoped integration review are pending.

Review scope: translation meaning, placeholder preservation, reuse of existing boolean labels and real-view regression quality. No live container updates, release or production deployment. Broader localization audit remains open.

@vercel

vercel Bot commented Sep 16, 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 16, 2026 5:07pm UTC
drydockdemo-website Ready Ready Preview Sep 16, 2026 5:07pm UTC

@coderabbitai

coderabbitai Bot commented Sep 16, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 47 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 2c6c810e-6e9f-47ea-bd49-52d7e5fa6ba1

📥 Commits

Reviewing files that changed from the base of the PR and between 1e3daaa and 1df6ec7.

⛔ Files ignored due to path filters (1)
  • CHANGELOG.md is excluded by !CHANGELOG.md
📒 Files selected for processing (20)
  • ui/src/components/containers/ContainerFullPageTabContent.vue
  • ui/src/locales/ar/containerComponents.json
  • ui/src/locales/de/containerComponents.json
  • ui/src/locales/es/containerComponents.json
  • ui/src/locales/fr/containerComponents.json
  • ui/src/locales/it/containerComponents.json
  • ui/src/locales/ja/containerComponents.json
  • ui/src/locales/ko/containerComponents.json
  • ui/src/locales/nl/containerComponents.json
  • ui/src/locales/pl/containerComponents.json
  • ui/src/locales/pt-BR/containerComponents.json
  • ui/src/locales/ru/containerComponents.json
  • ui/src/locales/tr/containerComponents.json
  • ui/src/locales/uk/containerComponents.json
  • ui/src/locales/vi/containerComponents.json
  • ui/src/locales/zh-CN/containerComponents.json
  • ui/src/locales/zh-TW/containerComponents.json
  • ui/tests/components/FleetUpdateProgressBanner.spec.ts
  • ui/tests/components/containers/ContainerFullPageTabContent.spec.ts
  • ui/tests/i18n/fleet-progress.spec.ts

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.

@scttbnsn scttbnsn changed the title fix(i18n): translate fleet update progress messages fix(i18n): localize fleet progress and preview booleans Sep 16, 2026
@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 review final head 3bd8fed. The prior responses were quota-only, so this still needs its first source review.

Scope: three fleet-progress messages across 16 non-English catalogs, two full-page preview boolean labels reusing common.yes/common.no, and their real-view/i18n regressions. Check translation meaning, placeholder preservation, locale reactivity and unchanged counts/actions. Threat model: a self-hosted Docker manager; no API, auth, update-policy or operation-store changes. Full normal gate and 296 focused tests passed. Maintainer translations, not native-speaker approval. Keep findings tied to this diff.

@coderabbitai

coderabbitai Bot commented Sep 16, 2026

Copy link
Copy Markdown

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

git status --short
git show --no-patch --format='commit=%H%nparents=%P%nsubject=%s' 3bd8fedcef2c3dc64683d351f4724ab1725344f4
base=$(git merge-base 3bd8fedcef2c3dc64683d351f4724ab1725344f4 HEAD^ 2>/dev/null || true)
printf 'computed_base=%s\n' "$base"
git diff --stat 3bd8fedcef2c3dc64683d351f4724ab1725344f4^ 3bd8fedcef2c3dc64683d351f4724ab1725344f4
git diff --name-status 3bd8fedcef2c3dc64683d351f4724ab1725344f4^ 3bd8fedcef2c3dc64683d351f4724ab1725344f4
git diff --unified=40 3bd8fedcef2c3dc64683d351f4724ab1725344f4^ 3bd8fedcef2c3dc64683d351f4724ab1725344f4

Length of output: 53783


🏁 Script executed:

#!/bin/bash
set -euo pipefail

gh pr view 1230 --repo CodesWhat/drydock --json number,baseRefName,baseRefOid,headRefName,headRefOid,commits,files --jq '{
  number,
  baseRefName,
  baseRefOid,
  headRefName,
  headRefOid,
  commits: [.commits[] | {oid, messageHeadline}],
  files: [.files[] | .path]
}'
base=$(gh pr view 1230 --repo CodesWhat/drydock --json baseRefOid --jq .baseRefOid)
printf '\nbase=%s\nhead=%s\n' "$base" '3bd8fedcef2c3dc64683d351f4724ab1725344f4'
git diff --stat "$base" 3bd8fedcef2c3dc64683d351f4724ab1725344f4
git diff --name-status "$base" 3bd8fedcef2c3dc64683d351f4724ab1725344f4

Length of output: 4599


🏁 Script executed:

#!/bin/bash
set -euo pipefail

base=bbd2d0a4468473cee7a77007281fc5b9fb83d3ff
head=3bd8fedcef2c3dc64683d351f4724ab1725344f4

git diff --unified=12 "$base" "$head" -- ui/src/locales
printf '\n===== changed tests =====\n'
git diff --unified=20 "$base" "$head" -- \
  ui/tests/components/FleetUpdateProgressBanner.spec.ts \
  ui/tests/i18n/fleet-progress.spec.ts \
  ui/tests/components/containers/ContainerFullPageTabContent.spec.ts

printf '\n===== banner candidates =====\n'
fd -t f 'FleetUpdateProgressBanner\.vue$|fleet.*progress.*\.(ts|vue)$' ui/src ui/tests
printf '\n===== banner outline =====\n'
ast-grep outline ui/src/components/FleetUpdateProgressBanner.vue --items all 2>/dev/null || true
printf '\n===== banner source =====\n'
cat -n ui/src/components/FleetUpdateProgressBanner.vue 2>/dev/null || true

printf '\n===== locale schema and English source keys =====\n'
rg -n -A4 -B3 '"(progressSummary|progressRunning|progressComplete)"' ui/src/locales/en/containerComponents.json ui/src/locales/*/containerComponents.json

Length of output: 36416


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '===== banner outline =====\n'
ast-grep outline ui/src/components/containers/FleetUpdateProgressBanner.vue --items all
printf '\n===== banner source =====\n'
cat -n ui/src/components/containers/FleetUpdateProgressBanner.vue

printf '\n===== operation store references =====\n'
rg -n -A12 -B8 '\b(applyOperationChanged|applyUpdateApplied|active|batch|operation)' ui/src/stores/operations.ts

printf '\n===== fleet banner references =====\n'
rg -n -A8 -B8 '\bFleetUpdateProgressBanner\b|fleetUpdateProgress(Running|RunningMore)?' ui/src ui/tests

printf '\n===== locale placeholder comparison =====\n'
python3 - <<'PY'
import json
import re
from pathlib import Path

keys = ("fleetUpdateProgress", "fleetUpdateProgressRunning", "fleetUpdateProgressRunningMore")
root = Path("ui/src/locales")
def values(path):
    return json.loads(path.read_text())["containerComponents"]["listContent"]
en = values(root / "en" / "containerComponents.json")
for path in sorted(root.glob("*/containerComponents.json")):
    locale = path.parent.name
    data = values(path)
    for key in keys:
        source = sorted(re.findall(r"\{\w+\}", en[key]))
        translated = sorted(re.findall(r"\{\w+\}", data[key]))
        print(f"{locale:5} {key:30} placeholders={translated} match={source == translated} value={data[key]}")
PY

Length of output: 68660


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '===== fleet progress composable =====\n'
fd -t f '^useFleetUpdateProgress\.ts$' ui/src | while IFS= read -r path; do
  ast-grep outline "$path" --items all || true
  cat -n "$path"
done

printf '\n===== full-page component setup and preview actions =====\n'
sed -n '1,180p' ui/src/components/containers/ContainerFullPageTabContent.vue
rg -n -A8 -B8 '\b(runContainerPreview|confirmUpdate|runAssociatedTrigger|detailPreview|detailComposePreview)\b' ui/src/components/containers/ContainerFullPageTabContent.vue

printf '\n===== full-page test setup and mocked actions =====\n'
sed -n '1,260p' ui/tests/components/containers/ContainerFullPageTabContent.spec.ts
rg -n -A8 -B8 '\b(mockRunContainerPreview|mockConfirmUpdate|mockRunAssociatedTrigger|mountComponent)\b' ui/tests/components/containers/ContainerFullPageTabContent.spec.ts

printf '\n===== common boolean labels =====\n'
python3 - <<'PY'
import json
from pathlib import Path
for path in sorted(Path("ui/src/locales").glob("*/common.json")):
    data = json.loads(path.read_text())
    print(f"{path.parent.name}: yes={data.get('common', {}).get('yes')!r}; no={data.get('common', {}).get('no')!r}")
PY

Length of output: 67851


@scttbnsn No actionable findings.

I reviewed the PR diff from bbd2d0a4468473cee7a77007281fc5b9fb83d3ff to 3bd8fedcef2c3dc64683d351f4724ab1725344f4.

  • All changed locale values preserve their required interpolation fields.
  • The banner still calculates completed count as succeeded + failed.
  • The three-name limit and overflow count remain unchanged.
  • The reactive computed batch list preserves the existing batch lifecycle and single-container exclusion.
  • The full-page preview uses existing common.yes and common.no values for both booleans.
  • The added tests cover locale changes, both boolean cases, action non-invocation, and fleet-progress transitions.

I did not execute repository code in the shell sandbox.

You are interacting with an AI system.

@scttbnsn

Copy link
Copy Markdown
Contributor Author

@coderabbitai Please verify only the dev integration at 1df6ec7 against reviewed 3bd8fed. Your first source review (comment5701228759) had no actionable findings. All twenty original source/test/catalog files remain byte-identical. The only conflict was adjacent CHANGELOG entries, now preserved together; other incoming files are the already-reviewed docs #1228 and Approvals/dashboard #1229. Check preservation and integration, not a new feature scope. Threat model remains the same self-hosted Docker manager with no API/auth/policy changes. Full normal push result is recorded in the PR body.

@coderabbitai

coderabbitai Bot commented Sep 16, 2026

Copy link
Copy Markdown

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

reviewed='3bd8fedcef2c3dc64683d351f4724ab1725344f4'
integration='1df6ec7a558ea9001bcfa7a485264fe197aa062e'

printf '===== commit topology =====\n'
git show -s --format='commit=%H%nparents=%P%nsubject=%s%n%nbody=%B' "$reviewed"
printf '\n--- integration ---\n'
git show -s --format='commit=%H%nparents=%P%nsubject=%s%n%nbody=%B' "$integration"
printf '\n===== ancestry =====\n'
git merge-base --is-ancestor "$reviewed" "$integration" && echo 'reviewed_is_ancestor=true' || echo 'reviewed_is_ancestor=false'
git merge-base "$reviewed" "$integration"

printf '\n===== integration first-parent delta =====\n'
git diff --name-status "${integration}^1" "$integration"
git diff --stat "${integration}^1" "$integration"
git diff --unified=20 "${integration}^1" "$integration" -- CHANGELOG.md

printf '\n===== reviewed scope changed paths =====\n'
git diff --name-only "${reviewed}^" "$reviewed" | tee /tmp/reviewed-paths.txt
printf '\n===== reviewed-path blob comparison =====\n'
while IFS= read -r path; do
  reviewed_blob=$(git rev-parse "${reviewed}:${path}")
  integration_blob=$(git rev-parse "${integration}:${path}")
  if [ "$reviewed_blob" = "$integration_blob" ]; then
    printf 'IDENTICAL %s %s\n' "$reviewed_blob" "$path"
  else
    printf 'DIFFERENT reviewed=%s integration=%s %s\n' "$reviewed_blob" "$integration_blob" "$path"
  fi
done < /tmp/reviewed-paths.txt

printf '\n===== complete integration delta from reviewed commit =====\n'
git diff --name-status "$reviewed" "$integration"
git diff --stat "$reviewed" "$integration"
printf '\n===== changes excluding changelog =====\n'
git diff --unified=8 "$reviewed" "$integration" -- . ':(exclude)CHANGELOG.md'

Length of output: 16551


🏁 Script executed:

#!/bin/bash
set -euo pipefail

reviewed='3bd8fedcef2c3dc64683d351f4724ab1725344f4'
integration='1df6ec7a558ea9001bcfa7a485264fe197aa062e'
review_base=$(git rev-parse "${reviewed}^")

printf '===== reviewed feature paths since review base =====\n'
git diff --name-only "$review_base" "$reviewed" > /tmp/reviewed-paths.txt
cat /tmp/reviewed-paths.txt

printf '\n===== blob comparison for every reviewed feature path =====\n'
different=0
while IFS= read -r path; do
  reviewed_blob=$(git rev-parse "${reviewed}:${path}")
  integration_blob=$(git rev-parse "${integration}:${path}")
  if [ "$reviewed_blob" = "$integration_blob" ]; then
    printf 'IDENTICAL %s %s\n' "$reviewed_blob" "$path"
  else
    printf 'DIFFERENT reviewed=%s integration=%s %s\n' "$reviewed_blob" "$integration_blob" "$path"
    different=1
  fi
done < /tmp/reviewed-paths.txt
printf 'different_blobs=%s\n' "$different"

printf '\n===== integration result versus reviewed first parent =====\n'
git diff --name-status "${integration}^1" "$integration"
printf '\n===== integration result versus incoming second parent =====\n'
git diff --name-status "${integration}^2" "$integration"

printf '\n===== resolved changelog context =====\ngit show "${integration}:CHANGELOG.md" | sed -n '125,175p'

printf '\n===== paths modified after reviewed commit, excluding stated incoming areas =====\n'
git diff --name-only "$reviewed" "$integration" | \
  grep -vE '^(CHANGELOG\.md|\.github/tests/readme-translations\.test\.ts|CONTRIBUTING\.md|README(\.(de|es|fr|pl|pt-BR|zh-CN))?\.md|scripts/community-docs\.test\.mjs|ui/src/locales/[A-Za-z-]+/approvalsView\.json|ui/src/views/dashboard/dashboardTypes\.ts|ui/tests/i18n/(approvals|dashboard-widgets)\.spec\.ts|ui/tests/views/(ApprovalsView|DashboardView)\.spec\.ts)$' \
  || true

Length of output: 4891


🏁 Script executed:

#!/bin/bash
set -euo pipefail

base='bbd2d0a4468473cee7a77007281fc5b9fb83d3ff'
reviewed='3bd8fedcef2c3dc64683d351f4724ab1725344f4'
integration='1df6ec7a558ea9001bcfa7a485264fe197aa062e'

printf '===== complete reviewed feature paths =====\n'
git diff --name-only "$base" "$reviewed" > /tmp/complete-reviewed-paths.txt
cat /tmp/complete-reviewed-paths.txt
printf 'path_count='
wc -l < /tmp/complete-reviewed-paths.txt

printf '\n===== complete reviewed feature blob comparison =====\ndifferent=0
while IFS= read -r path; do
  reviewed_blob=$(git rev-parse "${reviewed}:${path}")
  integration_blob=$(git rev-parse "${integration}:${path}")
  if [ "$reviewed_blob" = "$integration_blob" ]; then
    printf 'IDENTICAL %s\n' "$path"
  else
    printf 'DIFFERENT %s\n' "$path"
    different=1
  fi
done < /tmp/complete-reviewed-paths.txt
printf 'different_blobs=%s\n' "$different"

printf '\n===== changelog entries in each merge input and result =====\n'
for ref in "$reviewed" "${integration}^2" "$integration"; do
  printf '\n--- %s ---\n' "$ref"
  git show "${ref}:CHANGELOG.md" | grep -n -E 'Fleet-update progress now uses localized|Full-page update previews now reuse|Approvals screen now also translates|Dashboard customization reuses'
done

printf '\n===== integration-only path check against declared incoming scope =====\ngit diff --name-only "$reviewed" "$integration" > /tmp/integration-paths.txt
while IFS= read -r path; do
  case "$path" in
    CHANGELOG.md|.github/tests/readme-translations.test.ts|CONTRIBUTING.md|README.md|README.de.md|README.es.md|README.fr.md|README.pl.md|README.pt-BR.md|README.zh-CN.md|scripts/community-docs.test.mjs|ui/src/locales/*/approvalsView.json|ui/src/views/dashboard/dashboardTypes.ts|ui/tests/i18n/approvals.spec.ts|ui/tests/i18n/dashboard-widgets.spec.ts|ui/tests/views/ApprovalsView.spec.ts|ui/tests/views/DashboardView.spec.ts)
      ;;
    *) printf 'UNEXPECTED %s\n' "$path" ;;
  esac
done < /tmp/integration-paths.txt
printf 'integration_path_count='
wc -l < /tmp/integration-paths.txt

Length of output: 3604


🏁 Script executed:

#!/bin/bash
set -euo pipefail

base='bbd2d0a4468473cee7a77007281fc5b9fb83d3ff'
reviewed='3bd8fedcef2c3dc64683d351f4724ab1725344f4'
integration='1df6ec7a558ea9001bcfa7a485264fe197aa062e'

git diff --name-only "$base" "$reviewed" > /tmp/complete-reviewed-paths.txt

printf '===== source/test/catalog blob comparison =====\n'
different=0
checked=0
while IFS= read -r path; do
  if [ "$path" = 'CHANGELOG.md' ]; then
    continue
  fi
  checked=$((checked + 1))
  reviewed_blob=$(git rev-parse "${reviewed}:${path}")
  integration_blob=$(git rev-parse "${integration}:${path}")
  if [ "$reviewed_blob" = "$integration_blob" ]; then
    printf 'IDENTICAL %s\n' "$path"
  else
    printf 'DIFFERENT %s\n' "$path"
    different=1
  fi
done < /tmp/complete-reviewed-paths.txt
printf 'checked=%s different_blobs=%s\n' "$checked" "$different"

printf '\n===== resolved changelog entries =====\n'
git show "${integration}:CHANGELOG.md" | grep -n -E 'Fleet-update progress now uses localized|Full-page update previews now reuse|Approvals screen now also translates|Dashboard customization reuses'

printf '\n===== integration-only unexpected path check =====\ngit diff --name-only "$reviewed" "$integration" > /tmp/integration-paths.txt
unexpected=0
while IFS= read -r path; do
  case "$path" in
    CHANGELOG.md|.github/tests/readme-translations.test.ts|CONTRIBUTING.md|README.md|README.de.md|README.es.md|README.fr.md|README.pl.md|README.pt-BR.md|README.zh-CN.md|scripts/community-docs.test.mjs|ui/src/locales/*/approvalsView.json|ui/src/views/dashboard/dashboardTypes.ts|ui/tests/i18n/approvals.spec.ts|ui/tests/i18n/dashboard-widgets.spec.ts|ui/tests/views/ApprovalsView.spec.ts|ui/tests/views/DashboardView.spec.ts)
      ;;
    *)
      printf 'UNEXPECTED %s\n' "$path"
      unexpected=1
      ;;
  esac
done < /tmp/integration-paths.txt
printf 'unexpected_paths=%s\n' "$unexpected"
printf 'integration_path_count='
wc -l < /tmp/integration-paths.txt

Length of output: 4332


@scttbnsn No actionable findings.

Verified 1df6ec7a558ea9001bcfa7a485264fe197aa062e as a merge commit with 3bd8fedcef2c3dc64683d351f4724ab1725344f4 as its first parent.

  • All 20 original fleet-progress and preview source, catalog, and test files have identical Git blobs in both commits.
  • CHANGELOG.md is the only reviewed-scope file changed by the merge.
  • The resolved changelog retains both fleet-progress entries and the incoming Approvals and dashboard entries.
  • The first-parent merge delta contains only the stated documentation, Approvals/dashboard, and changelog changes.
  • No API, authentication, policy, operation-store, preview-data, or update-action file changed in this integration delta.

You are interacting with an AI system.

@scttbnsn
scttbnsn enabled auto-merge (squash) September 16, 2026 17:08
@scttbnsn
scttbnsn merged commit d74cee8 into dev/v1.8 Sep 16, 2026
32 of 33 checks passed
@scttbnsn
scttbnsn deleted the fix/v1.8-fleet-progress-locales branch September 16, 2026 17:32
scttbnsn added a commit that referenced this pull request Nov 2, 2026