feat(tui): harvest zh-Hans locale bundle#3559
Conversation
|
Claude finished @Hmbown's task in 3m 54s —— View job Code Review
SummaryClean harvest. The JSON-loading approach for zh-Hans is architecturally sound, coverage is enforced by the existing test, and the bare- Correctness
Bare KeyCode::Char('v')
if key.modifiers == KeyModifiers::NONE
&& app.input.is_empty()
&& detail_target_cell_index(app).is_some() =>All three conditions must hold before a keystroke is consumed, so typing Vim normal mode interaction — worth knowing. Potential fragilityJSON key format coupling. Minor / nits
ZhHant fallback spec vs. runtime behaviour. TestsThe PR's verification commands ( LGTM with the note that the |
|
Claude finished @Hmbown's task in 2m 44s —— View job Code Review
SummaryClean harvest. The JSON-backed Correctness
zh-Hant fallback path — still works. Bare KeyCode::Char('v')
if key.modifiers == KeyModifiers::NONE
&& app.input.is_empty()
&& detail_target_cell_index(app).is_some() =>All three conditions must hold. If no tool/subagent cell is selected, the arm doesn't fire and Alt+V and macOS Option+V (√) preserved.
Worth notingVim normal mode interaction.
JSON key format coupling. TestsThe PR's verification commands cover the main paths. LGTM. The two follow-up items ( |
Add the cy2311 AUTHOR_MAP entry required by the harvest credit gate, rename the stale context-inspector v hint id, and document the bare-v detail shortcut precedence. Follow-up for PR #3559.
|
Claude finished @Hmbown's task in 2m 17s —— View job Code Review
SummaryThe follow-up commit ( Correctness
Bare KeyCode::Char('v')
if key.modifiers == KeyModifiers::NONE
&& app.input.is_empty()
&& detail_target_cell_index(app).is_some() =>All three conditions must hold. Vim-mode precedence comment — added. Residual:
|
Summary
crates/tui/locales/zh-Hans.jsonwithout reducing shipped locale coveragev; the old modified key path remains only as a compatibility aliasVerification
cargo fmt --allcargo test -p codewhale-tui --bin codewhale-tui --locked localization::testscargo test -p codewhale-tui --bin codewhale-tui --locked tool_details_help_documents_bare_v_without_alt_vcargo test -p codewhale-tui --bin codewhale-tui --locked activity_footer_hintcargo test -p codewhale-tui --bin codewhale-tui --locked activity_detailcargo test -p codewhale-tui --bin codewhale-tui --locked open_tool_details_pagerHarvested from PR #3549 by @cy2311.
Refs #3537.