Repository navigation
docs(pt): sync 8 pages with English - #2604
eriveltonelias wants to merge 1 commit into
Conversation
Bring ci/codemagic, services, reference/electron, reference/desktop, desktop, core, reference/test, and cache back in line with the current English pages, and add two glossary rows (finalizar for ending an app with closeApp, grupo de variáveis).
Docs previewThe site runs each docs page as code, so a fork's pull request is previewed only after a maintainer reads it. To preview e4a7066, comment |
|
No actionable comments were generated in the recent review. Walkthrough
Change: Other Merge Risk:
|
There was a problem hiding this comment.
4 issues found across 9 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="docs/pt/README.md">
<violation number="1" location="docs/pt/README.md:423">
P3: This glossary row is keyed on `closeApp` generically, but mobile pages still translate `device.closeApp()` as "encerra" (reference/mobile.mdx:145, migrate/maestro.mdx:112). Either scope the row to desktop (`desktop.closeApp()`), or update those mobile lines to "finaliza" in this PR so the standardization is consistent.</violation>
</file>
<file name="docs/pt/core.mdx">
<violation number="1" location="docs/pt/core.mdx:14">
P3: This Portuguese card inherits the shared component’s English “opens in a new tab” link text. Make that label localizable and pass its Portuguese translation here.</violation>
</file>
<file name="docs/pt/services.mdx">
<violation number="1" location="docs/pt/services.mdx:17">
P2: O exemplo abaixo ainda aguarda `once(server, 'close')` sem `signal`, então o teardown pode continuar pendente após cancelamento ou timeout. Passe `{ signal }` para essa espera também.</violation>
</file>
<file name="docs/pt/ci/codemagic.mdx">
<violation number="1" location="docs/pt/ci/codemagic.mdx:40">
P2: Uma gravação só evita chamadas para os passos `agent.act` reproduzidos; cache misses e `agent.assert`, `agent.waitFor` e `agent.extract` ainda chamam o modelo. Restrinja a garantia ao passo reproduzido, não ao build.</violation>
</file>
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
| Em `defineService`, use um gerador assíncrono para `start`. Inicie a | ||
| dependência antes do `yield`, faça yield do objeto de que a sua configuração e | ||
| os seus testes precisam e coloque a limpeza depois do `yield`. Passe `signal` | ||
| para tudo o que você inicia ou encerra: assim, nada fica esperando quando a |
There was a problem hiding this comment.
P2: O exemplo abaixo ainda aguarda once(server, 'close') sem signal, então o teardown pode continuar pendente após cancelamento ou timeout. Passe { signal } para essa espera também.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At docs/pt/services.mdx, line 17:
<comment>O exemplo abaixo ainda aguarda `once(server, 'close')` sem `signal`, então o teardown pode continuar pendente após cancelamento ou timeout. Passe `{ signal }` para essa espera também.</comment>
<file context>
@@ -3,19 +3,20 @@ title: Serviços
+Em `defineService`, use um gerador assíncrono para `start`. Inicie a
+dependência antes do `yield`, faça yield do objeto de que a sua configuração e
+os seus testes precisam e coloque a limpeza depois do `yield`. Passe `signal`
+para tudo o que você inicia ou encerra: assim, nada fica esperando quando a
+inicialização é cancelada ou um
+[tempo limite](#timeouts-and-cancellation) se esgota.
</file context>
| - Leia os resultados na aba Tests do build e guarde o relatório JSON, o log | ||
| e as páginas de trace do e2e como artefatos. | ||
| - Reproduza passos do agente a partir de uma gravação commitada. Um build | ||
| com uma gravação correspondente não precisa da chave do modelo e não faz |
There was a problem hiding this comment.
P2: Uma gravação só evita chamadas para os passos agent.act reproduzidos; cache misses e agent.assert, agent.waitFor e agent.extract ainda chamam o modelo. Restrinja a garantia ao passo reproduzido, não ao build.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At docs/pt/ci/codemagic.mdx, line 40:
<comment>Uma gravação só evita chamadas para os passos `agent.act` reproduzidos; cache misses e `agent.assert`, `agent.waitFor` e `agent.extract` ainda chamam o modelo. Restrinja a garantia ao passo reproduzido, não ao build.</comment>
<file context>
@@ -1,113 +1,349 @@
+- Leia os resultados na aba Tests do build e guarde o relatório JSON, o log
+ e as páginas de trace do e2e como artefatos.
+- Reproduza passos do agente a partir de uma gravação commitada. Um build
+ com uma gravação correspondente não precisa da chave do modelo e não faz
+ nenhuma chamada ao modelo.
+- Rode o mesmo step do e2e em um workflow de release acionado por tag, antes
</file context>
| | failure recap | resumo da falha | | ||
| | best-effort | com o melhor esforço | | ||
| | tool pack | pacote de ferramentas | | ||
| | end (an app, `closeApp`; no quit handlers run) | finalizar (`encerrar` stays for quit) | |
There was a problem hiding this comment.
P3: This glossary row is keyed on closeApp generically, but mobile pages still translate device.closeApp() as "encerra" (reference/mobile.mdx:145, migrate/maestro.mdx:112). Either scope the row to desktop (desktop.closeApp()), or update those mobile lines to "finaliza" in this PR so the standardization is consistent.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At docs/pt/README.md, line 423:
<comment>This glossary row is keyed on `closeApp` generically, but mobile pages still translate `device.closeApp()` as "encerra" (reference/mobile.mdx:145, migrate/maestro.mdx:112). Either scope the row to desktop (`desktop.closeApp()`), or update those mobile lines to "finaliza" in this PR so the standardization is consistent.</comment>
<file context>
@@ -420,3 +420,5 @@ translation moves or goes with it in the same change.
| failure recap | resumo da falha |
| best-effort | com o melhor esforço |
| tool pack | pacote de ferramentas |
+| end (an app, `closeApp`; no quit handlers run) | finalizar (`encerrar` stays for quit) |
+| variable group (Codemagic) | grupo de variáveis |
</file context>
| | end (an app, `closeApp`; no quit handlers run) | finalizar (`encerrar` stays for quit) | | |
| | end (a desktop app, `desktop.closeApp`; no quit handlers run) | finalizar (`encerrar` stays for quit) | |
| sem o runner de testes: não há arquivo de configuração, nem relatório, nem | ||
| `expect`. | ||
|
|
||
| <VideoCard |
There was a problem hiding this comment.
P3: This Portuguese card inherits the shared component’s English “opens in a new tab” link text. Make that label localizable and pass its Portuguese translation here.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At docs/pt/core.mdx, line 14:
<comment>This Portuguese card inherits the shared component’s English “opens in a new tab” link text. Make that label localizable and pass its Portuguese translation here.</comment>
<file context>
@@ -4,11 +4,19 @@ sidebarTitle: Scripts de automação
sem o runner de testes: não há arquivo de configuração, nem relatório, nem
`expect`.
+<VideoCard
+ id="2YTREHZxrr4"
+ title="Automação agêntica de navegador e mobile com o e2e core"
</file context>
okwasniewski
left a comment
There was a problem hiding this comment.
Automated review (AI triage pass), not yet read by a maintainer.
Reviewed e4a706692. Brings 8 pt pages and the glossary in line with the current English pages; English for these pages has not changed on main since the PR's base (c182e1f), so the sync is current.
Checked structurally against English on each page: fenced code blocks, link targets, JSX components and heading counts match exactly; inline code spans match except the translated prose inside the codemagic setup prompt, which is expected. Spot-read the new prose in reference/electron, reference/desktop, services, cache, reference/test, core and desktop against English: same facts, same error codes, same caveats. No em or en dashes added. Locally check-docs-examples, -package-managers, -anchors, -logos, -mdx and -translations all exit 0; CI green.
No must-fix.
On the cubic comments: the services once(server, 'close') code and the codemagic "no model call" sentence match English word for word (English docs/ci/codemagic.mdx:38-39), so any change belongs in the English page first. The VideoCard "(opens in a new tab)" label is hard-coded in docs/snippets/video-card.jsx and already used by pt/es/ja/zh pages; out of scope here.
What and why
Eight pt pages had fallen behind their English pages:
ci/codemagic: English rewrote the guide (Mac instance, the sample repository, a release workflow that publishes only what passed, the agent setup prompt, the model key and replay notes). The pt page is retranslated from the current English.services: the new intro,signalon start and stop, a new "Tempos limite e cancelamento" section, and the failure table turned into a list.reference/electron:app.back()waits for the window and fails withNOT_ACTIONABLEorACTION_MAY_HAVE_COMMITTED, theevaluateargrules, window order, and thewindow()errors.reference/desktopanddesktop:closeApp()now ends the app and its processes without running quit handlers, andpressfails when the app has no window. The pt pages say "finalizar" for ending the app and keep "encerrar" for Quit.core: the new video card.reference/test: worker fixtures that name an overridden worker fixture get one instance pertest.cache: steps whoseunique()path contains|or}}, or ends in}, run live withno-entry.README.md: two glossary rows (finalizarfor ending an app,grupo de variáveis).Issue
Part of #1890
Verified
Ran it locally: yes.
cmp.mjsprints ok for every page. The DIFFs it prints forci/codemagic(translated prose inside the setup prompt) andreference/desktop(a double-backtick span) are artifacts of the script; a per-span comparison shows the code spans match English in order.rep-check.tsprints[]for every changed page, and the added prose has no em or en dashes.docs/:check-docs-examples,check-docs-package-managers,check-docs-anchors,check-docs-logos,check-docs-mdx, andcheck-docs-translationsall exit 0 with no warning for these pages.desktop.closeApp()" inreference/desktopnow says "Finalize", "release anterior" incachebecame "versão anterior", and three small wording fixes inreference/electron,ci/codemagic, andservices.Summary by CodeRabbit