Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
There was a problem hiding this comment.
Changes requested: one line in the changeset needs a fix.
- The changeset (
.changeset/comment-composer-agent-menu-catalog.md, line 5) gives@astryx.commentComposer.agentCommandUsageas"/{command} <prompt>", buten.jsonships"/{command} '<prompt>'", and the unquoted form fails to parse (UNCLOSED_TAG) when someone copies it intooverridesor a translation, so please quote the shipped message or describe the English output instead.
The row component, the two catalog entries and the regression test follow the internationalization contract, and the English rows are unchanged. CI has not run on this head yet; it runs once the pull request targets main.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Claims:
- Changeset: both lines of each agent row come from two catalog messages: verified (
CommentComposer.tsx:131-141,en.json:2342-2349). - Changeset: the usage message is
/{command} <prompt>: false (en.json:2343ships/{command} '<prompt>'). - Changeset: the summary message is
{name} · {description}: verified (en.json:2347). - Changeset and description: a locale can translate the placeholder word and the separator: verified (new test,
CommentComposer.test.tsx:130-164). - Changeset and description: English output is unchanged: verified (both messages format to the previous strings).
- Description: the rows were built in code, also on
main: verified (CommentComposer.tsx:131,:133before this change). - Description: the angle brackets are quoted for the message format, and both messages carry translator descriptions: verified (
en.json:2342-2349). - Description: each row renders through a small component that calls the translator: verified (
CommentComposer.tsx:119-151). - Description: no API, visual or other behavior change, and no CommentPin file touched: verified.
- Description: the regression test fails without the fix: verified by reading (the previous code renders literals, so the override cannot appear).
- Description: the catalog check and the runtime-catalog check pass: verified at this head.
- Description: the Comments tests, the pre-review checklist, the changeset check, Prettier and ESLint pass: not verified (CI has not run at this head).
- Changeset: both lines of each agent row come from two catalog messages: verified (
- Files:
.changeset/comment-composer-agent-menu-catalog.md: the finding above.packages/core/locales/en.json: clear.packages/lab/src/Comments/CommentComposer.test.tsx: clear.packages/lab/src/Comments/CommentComposer.tsx: clear.
26286ae to
6fb0bbf
Compare
e851898 to
088eaa8
Compare
|
Line 5 of the changeset now quotes the shipped message: |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet. It runs once this pull request targets main.
The earlier finding is fixed: the changeset now quotes the shipped agentCommandUsage message, "/{command} '<prompt>'". Both lines of each agent row now come from one catalog message each, the English rows are unchanged, and the new test shows a non-English override reaching both lines.
Claims and files checked
Review mode: full; reason: author-not-engowner
- Claims:
- Changeset: both lines of each agent row come from two catalog messages: verified (
CommentComposer.tsx:131-141,en.json:2342-2349). - Changeset: the usage message is
"/{command} '<prompt>'"and the summary"{name} · {description}": verified (en.json:2343,:2347). - Changeset and description: a locale can translate the placeholder word and the separator: verified (
CommentComposer.test.tsx:130-164overrides both; overrides resolve first inresolve.ts). - Changeset and description: English output is unchanged: verified by reading (the quoted brackets format as
<prompt>; the summary formats to the old string). - Description: it sits on #13738 and touches none of CommentPin's files: verified (the base branch is #13738's head; four files change).
- Description: applied to
mainalone, only the new test collides with #13738's test: verified (a three-way merge ontomainconflicts only inCommentComposer.test.tsx). - Description: the rows were assembled in code, also on
main: verified (CommentComposer.tsx:131,:133before this change). - Description: the internationalization contract requires catalog text and Core's strict lint enforces it: verified (
architecture:internationalizationINV1a;eslint.config.js:404-426scopes the rule to Core and richtext, not Lab, and it skips punctuation-only chunks). - Description: the component audit's graduation list names this blocker: not verifiable here (outside the repository).
- Description: the angle brackets are quoted, both messages carry translator descriptions, and a Core changeset names the change: verified.
- Description: each row renders through a small component that calls the translator: verified (
CommentComposer.tsx:119-151). - Description: no API, visual or other behavior change: verified (no export or prop changes; the row markup is the same).
- Description: the reproduction, the result with an override, and the test failing without the fix: verified by reading (the old code renders literals).
- Description: the catalog check and the runtime-catalog check pass: verified by reading only (both entries have a string message and a description, and the ICU parses); not executed.
- Description: the changeset check passes: verified by reading (a public package, a
[fix]tag and a credited author). - Description: the Comments tests, the pre-review checklist, Prettier and ESLint pass, validated on an earlier
main: not verified (not executed here; CI has not run).
- Changeset: both lines of each agent row come from two catalog messages: verified (
- Files:
.changeset/comment-composer-agent-menu-catalog.md: clear.packages/core/locales/en.json: clear.packages/lab/src/Comments/CommentComposer.test.tsx: clear.packages/lab/src/Comments/CommentComposer.tsx: clear.
6fb0bbf to
0026f37
Compare
088eaa8 to
cac80b5
Compare
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet. It runs once this pull request targets main.
Both lines of each agent row now come from one catalog message each, English rows are unchanged, and a French override or catalog reaches both lines. Reproduced locally, the new test fails without the change and passes with it.
Claims and files checked
Review mode: full; reason: recipe-changed (many rules)
- Claims:
- Title: the agent command menu words its rows through the catalog: verified (
CommentComposer.tsx:131-141; the new test fails without the change and passes with it, reproduced locally). - Changeset: the catalog words both lines of each agent row: verified (the test asserts both lines,
CommentComposer.test.tsx:162-163). - Changeset: the two messages and their English text: verified (
en.json:2343,:2347). - Changeset and description: a locale can translate the placeholder word and the separator: verified (reproduced locally through a provider override and through a French catalog that also reorders the summary).
- Changeset, description and commit: English output is unchanged: verified (reproduced locally: identical row text on the base and the head with no provider and under English, French and Arabic providers, for names and descriptions holding message syntax and an empty description; identical row markup and identical English screenshots).
- Description: stacked on #13738 and touching none of CommentPin's files: verified (the base branch is #13738's head; four files change).
- Description: on
mainit applies on top of #13738, and alone only its new test collides: verified against currentmain(alone, the only conflict isCommentComposer.test.tsx; with the branch below, the only conflicts are in two files of the pull requests below). - Description: the rows were built in code, also on
main: verified (CommentComposer.tsx:131,:133on the base and onmain). - Description: the internationalization contract requires catalog text: accurate for Astryx-owned text; caller copy such as the agent's name and description stays outside it.
- Description: Core's strict lint would keep the family from moving with this code: verified (reproduced locally: with this file under Core, strict lint errors on the usage line at
:131; it does not flag the summary template at:133). - Description: the component audit's issue list names this blocker: reported (outside the repository); the source half verified.
- Description: two messages with translator descriptions, quoted angle brackets, and a Core changeset: verified (
en.json:2342-2349, the changeset). - Description: each row renders through a small component that calls the translator: verified (
CommentComposer.tsx:119-151). - Description: no API, visual or other behavior change: verified (the API surface comparison of both builds lists no change; English markup and screenshots are identical).
- Description: the reproduction before, the result after, and the regression test failing without the fix: verified (reproduced locally).
- Description: the catalog check and the runtime check pass: verified (reproduced locally).
- Description: the Comments tests pass, the changeset check is valid, and Prettier is clean: verified (reproduced locally: 4 files, 101 tests).
- Description: ESLint is clean on the changed files: reported; locally, 0 errors and one warning on an unchanged line (
CommentComposer.test.tsx:24). - Description: the pre-review checklist has 0 findings, and the change was validated on
mainwith the pull requests below: reported.
- Title: the agent command menu words its rows through the catalog: verified (
- Files:
.changeset/comment-composer-agent-menu-catalog.md: clear.packages/core/locales/en.json: clear.packages/lab/src/Comments/CommentComposer.test.tsx: clear.packages/lab/src/Comments/CommentComposer.tsx: clear.
0026f37 to
e026f57
Compare
…he catalog The `/` menu built each agent's usage line, `/ask <prompt>`, and its summary, `name · description`, in code, so the placeholder word and the separator stayed English in every locale. Two catalog messages, `@astryx.commentComposer.agentCommandUsage` and `@astryx.commentComposer.agentCommandSummary`, now word them. English output is unchanged.
cac80b5 to
013414e
Compare
|
Rebased onto Repeated on this head: |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet. It runs once this pull request targets main.
Both lines of each agent row now come from one catalog message each, English rows are unchanged, and a French catalog or override reaches both lines. Reproduced locally, the new test fails without the change and passes with it.
Claims and files checked
Review mode: full; reason: author-not-engowner
- Claims:
- Title: the agent command menu words its rows through the catalog: verified (
CommentComposer.tsx:131-141; the new test fails without the change and passes with it, reproduced locally). - Changeset: the catalog words both lines of each agent row: verified (the test asserts both lines,
CommentComposer.test.tsx:162-163). - Changeset: the two messages and their English text: verified (
en.json:2375,:2379). - Changeset and description: a locale can translate the placeholder word and the separator: verified (reproduced locally through a provider override that also reorders the summary, and through a French catalog).
- Changeset and description: English output is unchanged: verified (reproduced locally: identical row text on the base and the head with no provider and under English, French and Arabic providers, for names and descriptions holding message syntax, an empty description and right-to-left text; identical row markup and pixel-identical English screenshots).
- Changeset: a Core patch release note: verified (
check:changesetspasses, reproduced locally). - Description: stacked on #13738 and touching none of CommentPin's files: verified (the base branch is #13738's head; four files change).
- Description: on
mainit applies on top of #13738, and alone only its new test collides: verified against currentmain(with the branch below it merges cleanly; alone, the only conflict isCommentComposer.test.tsx). - Description: the rows were built in code, also on
main: verified (CommentComposer.tsx:131,:133on the base and onmain). - Description: the internationalization contract requires catalog text: accurate for Astryx-owned text; caller copy such as the agent's name and description stays outside it.
- Description: Core's strict lint would keep the family from moving with this code: verified (reproduced locally: with this file under Core, strict lint errors on the usage line at
:131; it does not flag the summary's separator at:133). - Description: the component audit's issue list names this blocker: reported (outside the repository); the source half verified.
- Description: two messages with translator descriptions, quoted angle brackets, and a Core changeset: verified (
en.json:2374-2381, the changeset). - Description: each row renders through a small component that calls the translator: verified (
CommentComposer.tsx:119-151). - Description: no API, visual or other behavior change: verified (the API surface comparison of both builds lists no change; English markup and screenshots are identical).
- Description: the reproduction before, the result after, the unchanged English path and the regression test failing without the fix: verified (reproduced locally).
- Description: no screenshots because English rows look the same: verified (the English frames are pixel-identical, reproduced locally).
- Description: the scope checklist, including no internal context in public text: verified (no residue in the added lines, title, body, branch or commit message).
- Description: the catalog check and the runtime check pass: verified (reproduced locally).
- Description: the Comments tests pass, 102 on this head, and Prettier is clean: verified (reproduced locally: 4 files, 102 tests).
- Description: ESLint is clean on the changed files: reported; locally, 0 errors and one warning on an unchanged line (
CommentComposer.test.tsx:24). - Description: the pre-review checklist has 0 findings: reported.
- Description: rebased onto
mainwith the pull requests below, with its own patch unchanged: verified (the commit's patch is identical to the earlier head's).
- Title: the agent command menu words its rows through the catalog: verified (
- Files:
.changeset/comment-composer-agent-menu-catalog.md: clear.packages/core/locales/en.json: clear.packages/lab/src/Comments/CommentComposer.test.tsx: clear.packages/lab/src/Comments/CommentComposer.tsx: clear.
Stacked on #13738 (the previous Comments fix) only so the Comments move includes it. It touches none of CommentPin's files. On
mainit applies on top of #13738; on its own, only its new test collides with #13738's new test next to it inCommentComposer.test.tsx.User impact
A viewer in any locale but English who types
/in a comment composer sees the agent-command menu partly in English. Each row's usage line (/ask <prompt>) and summary (Release Assistant · Ask about the rollout) were built in code, so the placeholder word and the separator could not be translated or reordered.Problem and solution fit
architecture:internationalizationrequires that every word a component shows comes from the catalog. Core's strict lint enforces it, so the family could not graduate with this.Two catalog messages now word the rows:
@astryx.commentComposer.agentCommandUsage(/{command} '<prompt>', with the angle brackets quoted for the message format) and@astryx.commentComposer.agentCommandSummary({name} · {description}). English output is unchanged.Expected behavior and authority
architecture:internationalization: components take user-facing text from the catalog. A locale can reorder or re-punctuate an assembled string only when one message holds it.main.Smallest restoration
packages/core/locales/en.jsongains the two messages, with translator descriptions. A Core changeset names the catalog change.CommentComposerrenders each row through a small component that calls the translator.No API, visual, or other behavior change. English text is identical.
Evidence
/still shows/ask <prompt>./ask <demande>./ask <prompt>andRelease Assistant · Ask about the rollout, as before.CommentComposer.test.tsx"words the agent command menu through the catalog". It fails without the fix.check:i18n-catalogandgenerate-i18n-runtime --checkpass with the new keys.The rows look the same in English, so there are no screenshots.
Scope
Components: CommentComposer
Testing
vitest run packages/lab/src/Comments: pass. The new case fails without the fix.node scripts/check-i18n-catalog.mjsandnode scripts/generate-i18n-runtime.mjs --check: pass.pnpm review:pre: 0 findings.pnpm check:changesets: valid.prettierandeslinton the changed files: clean.Rebased onto
mainat 2608fe4, with the pull requests below this one, with no change to its own diff (the same patch ID as before the rebase). Repeated on this head:vitest run packages/lab/src/Comments: 102 passed.pnpm review:pre: 0 findings.check:i18n-catalogandcheck:i18n-runtime: pass.