docs(admin): name the mechanism instead of the i18n roadmap label in entry code - #1886
Conversation
…entry code Every i18n milestone label in the admin entry form, list, filters, field wrapper, entry hooks and entry API sat in a sentence that already described what the code does. Remove the label and keep the sentence; two same-line references to a spec section go too. In-line only, so no comment changes its line count and no code changes. The comment-convention allowlist drops those 44 offences and 16 entries, and its pins lower to 228 entries and 507 offences.
|
@codex review |
|
Warning Review limit reachedNext included review available in 1 minute. View limit detailsLimit details: You’ve used the included review 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 selected for processing (19)
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 |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
What
This is the first batch of the roadmap-label cleanup. AGENTS.md says comments describe the code, never a plan. The comment check (#1869, #1878) blocks new
i18n <milestone>labels and records the old ones, which have to be removed file by file.This PR removes all 44 labels from 17 admin files: the entry form, the entry list and its filters, field wrappers, entry hooks, and the entry API.
How each one was rewritten. In every one of the 44 comments, the sentence already describes what the code does ("Active content locale — saves target this language", "request the per-locale translation-status overview", "render the field right-to-left…"). So the label code is deleted and the sentence stays, with its first word capitalised where the label used to open it. Nothing was reworded beyond that. Two
(spec §10)references on lines already being edited were removed too, for the same reason: they point at a document the reader can't open.Scope and territory
origin/main2510625, 40 files hold 149 recorded labels. I checked every file against each in-flight ledger claim, with globs expanded properly. 25 files are outside every claim.collections-handler.tsandcollection-entry-service.ts: open PR fix(nextly): publish all languages runs hooks and applies every language's pending change #1883 is editing them.one-companion-name-rule.Change shape
git diff -U0reports no changed line that isn't a comment (JSX{/* … */}included). The same filter flags a code line when given one.Verification
On
origin/main2510625:node scripts/check-comment-convention.mjs > out.log 2>&1; echo "EXIT=$?"givesEXIT=0("507 pre-existing offence(s) still allowlisted"), and it stays 0 after the commit hook. Its shrink check would fail any entry left too high.main: only removals. 0 new entries, 0 raised counts, 0 added digests. 244→228 entries, 551→507 offences.localized-serialization.test.tsandentryApi.update-locale.test.tspass (2 files, 10 tests).pnpm turbo lint --filter=@nextlyhq/adminpasses.check-comment-convention.test.mjs105 tests.pnpm test:scripts41 files, 1377 tests.pnpm check:docs-claimsexit 0.FALLOW_AUDIT_BASE=origin/main fallow audit:pass, 19 files, everything introduced 0.Changeset
None. Comments and test pins only. No published behaviour changes.