Repository navigation
fix(i18n): localize fleet progress and preview booleans - #1230
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reachedNext included review available in 47 minutes. View limit detailsLimit 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. Review configuration: ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (20)
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. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
@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. |
|
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^ 3bd8fedcef2c3dc64683d351f4724ab1725344f4Length 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" 3bd8fedcef2c3dc64683d351f4724ab1725344f4Length 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.jsonLength 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]}")
PYLength 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}")
PYLength of output: 67851
I reviewed the PR diff from
I did not execute repository code in the shell sandbox. You are interacting with an AI system. |
…ogress-locales # Conflicts: # CHANGELOG.md
|
@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. |
|
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)$' \
|| trueLength 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.txtLength 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.txtLength of output: 4332
Verified
You are interacting with an AI system. |
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
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.