You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| 前端 UI、状态、适配层或多语言文案 |`pnpm run lint:web && pnpm run type-check:web && pnpm --dir src/web-ui run test:run`|
188
+
| 前端 UI、状态、适配层或多语言文案 |`pnpm run i18n:contract:test && pnpm run i18n:audit && pnpm run lint:web && pnpm run type-check:web && pnpm --dir src/web-ui run test:run`|
175
189
| Mobile web UI、状态、配对、断开或重连行为 |`pnpm --dir src/mobile-web run type-check && pnpm run build:mobile-web`;行为变化还需要在 PR 中说明手动配对 / 重连验证 |
176
190
| Deep Review / 代码审核团队行为 | 运行上面的前端验证,再运行 `cargo test -p bitfun-core deep_review -- --nocapture`;如果触及后端或 Tauri API,还需要运行下方 Rust / 桌面端验证 |
Copy file name to clipboardExpand all lines: AGENTS.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,8 @@ pnpm run fmt:rs # format only changed / staged Rust files
54
54
pnpm run lint:web
55
55
pnpm run type-check:web
56
56
pnpm --dir src/mobile-web run type-check
57
+
pnpm run i18n:contract:test
58
+
pnpm run i18n:audit
57
59
pnpm run check:repo-hygiene
58
60
pnpm run check:github-config
59
61
cargo check --workspace
@@ -88,6 +90,9 @@ For the full script list, see [`package.json`](package.json).
88
90
in the owning product surface.
89
91
- Do not import Web UI locale resources into smaller product surfaces such as
90
92
`src/mobile-web` or `BitFun-Installer`. See `docs/architecture/i18n.md`.
93
+
- Web UI loads only bootstrap namespaces eagerly; use `useI18n(namespace)` for
94
+
route or feature copy and keep direct `i18nService.t(...)` calls in bootstrap
95
+
namespaces.
91
96
92
97
### Logging
93
98
@@ -186,7 +191,7 @@ Session data is stored under `.bitfun/sessions/{session_id}/`.
186
191
187
192
| Change type | Minimum verification |
188
193
|---|---|
189
-
| Frontend UI, state, adapters, or locales |`pnpm run lint:web && pnpm run type-check:web && pnpm --dir src/web-ui run test:run`|
194
+
| Frontend UI, state, adapters, or locales |`pnpm run i18n:contract:test && pnpm run i18n:audit && pnpm run lint:web && pnpm run type-check:web && pnpm --dir src/web-ui run test:run`|
190
195
| Mobile web UI, state, pairing, disconnect, or reconnect behavior |`pnpm --dir src/mobile-web run type-check && pnpm run build:mobile-web`; include manual pairing / reconnect verification when behavior changes |
191
196
| Deep Review / Code Review Team behavior | Web UI verification above, plus `cargo test -p bitfun-core deep_review -- --nocapture`; also run the Rust / desktop rows below when backend or Tauri APIs are touched |
192
197
| Shared Rust logic in `core`, `transport`, `api-layer`, or services |`cargo check --workspace && cargo test --workspace`|
0 commit comments