Repository navigation
Add shared language selection and localize primary screens - #386
Merged
Merged
Conversation
Contributor
Author
|
6eed167 restores the translated Settings label with its current host shortcut in the tooltip and accessible name; the unchanged server-session-search spec reproduced the failure before the fix and passed both tests afterward, and browser checks confirmed all four language names retain the shortcut. |
This was referenced Oct 4, 2026
yansfil
added a commit
that referenced
this pull request
Oct 4, 2026
Related: #329, #361, #386, #387 Closes #322 ## Summary - File View도 Agent와 같은 연속 축소 계산과 탭 슬롯을 사용합니다. - 선택 탭이 제목과 닫기를 가장 오래 유지하며, 최소 마크 폭까지 모자랄 때만 스크롤합니다. - 기본은 기존 파일 타입 아이콘이며, 전체 이름과 저장 상태는 툴팁·접근성 이름에 남습니다. - 새 문구는 네 언어에 추가했고 `docs/UI_BEHAVIOR.md`를 갱신했습니다.  같은 12개 파일과 영역 폭입니다. 변경 후에는 선택 제목을 남기면서 나머지 파일도 스트립 안에 들어옵니다. ## Review - **질문**: 최소 상태는 A 파일 타입, B 확장자, C 이름 앞글자 중 무엇을 쓸까요? 기존 패턴인 A를 구현했습니다. - B/C는 같은 실행 화면에서 최소 상태의 마크만 바꾼 제안입니다. `collapsedDisplayMark` 한 곳에서 교체할 수 있습니다.  - **조심해서 볼 파일**: `AreaTree.tsx`의 크기 관찰을 View에도 적용합니다. 공유 계산과 Agent 동작은 유지합니다. - **비용 검토**: 보이는 View 영역당 ResizeObserver 하나를 추가합니다. 콜백은 경계 두 번 읽기와 CSS 폭 두 번 쓰기입니다. - 밀도가 바뀔 때만 렌더하며 core 이벤트·PTY 리사이즈를 보내지 않습니다. 최대 6개 영역이고 언마운트 때 해제합니다. ## Evidence - 수정 전 실제 e2e에서 File 탭이 104px에 멈추는 실패를 확인했습니다. 수정 후 독립 폭 계산과 실제 DOM이 일치합니다. - `verify-web.sh` 전체 통과: web 942개, desktop 99개 단위 테스트와 타입·lint·빌드, hcoord 검사 포함. - 관련 e2e 5개 통과: Agent 연속 축소, File 12탭의 밀도·선택·스크롤·닫기, 미리보기, 좁은 화면, 컬럼 토글. - 사설 Herdr와 격리된 Electron의 정확한 창 캡처로 축소·미저장 마크를 확인했고, 후보는 두 테마와 한·중·일 이름으로 비교했습니다. - 디자인 계약, harness 비공개 경계, 공개 소스의 워크스테이션 식별 정보 검사가 통과했습니다. - **확인하지 못한 것**: 아이콘 최종 선택은 사람의 판단이 남아 있습니다. Windows/Linux 네이티브 UI와 전체 e2e는 실행하지 않았습니다. - 기존 desktop 단위 테스트의 3개 skip은 그대로이며 이번 변경의 e2e에는 skip·재시도·시간 제한 변경이 없습니다. <details><summary>추가 증거</summary> 밝은 테마에서도 같은 세 후보를 비교했습니다.  </details>
yansfil
added a commit
that referenced
this pull request
Oct 4, 2026
## Summary Every PR ran Rust, the unit suites on three OSes and the full E2E, even a docs-only PR. The median time for the required checks to finish was 32.45 min (Orca 16.22, Paseo 20.65). Now a `plan` job reads the changed paths (`HEAD^1..HEAD` of the PR merge commit) and plans only the lanes the change needs. The same plan sets each job's `if:` and is what `verify` checks the results against. - `verify` passes only when every **planned** lane is `success` and every **unplanned** lane is `skipped`. A planned lane that was skipped, failed or cancelled fails `verify`, and so does a `needs` entry the plan doesn't know or a failed plan. - The Windows browser `@platform` smoke moves out of `windows check` into its own `windows e2e` lane, which calls `web-e2e.yml` the same way nightly does. Compile, unit tests and the OS contract stay in `windows check`. - `checks` is split into `policy` (on every plan), `web checks`, `desktop checks` and `hcoord`. - A main push, a comparison that fails (base missing, not a merge commit, diff parse failure, `cargo metadata` failure) and any unclassified path all run **every** lane. - Main pushes no longer cancel each other (`cancel-in-progress` is now PR-only). `design-contract.yml` also cancels only the same PR's previous run. - The rules live in one place, `scripts/ci-plan.py`; the table in `docs/TESTING.md`, "Which lanes a pull request runs", explains them. ## Review - **판단해 주세요**: whether it is acceptable that **main's full run is the safety net** for a lane wrongly left out. A wrongly skipped lane surfaces as a failure on main after the merge, not on the PR. - **판단해 주세요**: whether to keep the Windows smoke now skipping `@flaky` tests, as macOS already did. No `@platform` test is tagged `@flaky` today, so the behavior is the same for now. - **판단해 주세요**: web code shared with the desktop host (`SHARED_WEB`) also runs the desktop lanes and the macOS/Windows `@platform` lanes. That is broader than the brief's "desktop 연결까지"; I chose it because terminal, input and shortcut changes are Windows-impacting. - **조심해서 볼 파일**: `scripts/ci-plan.py` `READERS` and `SHARED_WEB`. These two hand-kept lists are where a lane can be dropped wrongly (the failure path). Review found five omissions from tests reading files across folders and they are fixed (below). - **조심해서 볼 파일**: the `verify` job in `.github/workflows/pr.yml` and `aggregate()`. This is the merge gate itself. - **질문**: `site/`, `tools/`, `spikes/`, `.github/*.md` and `agents/prd` currently fall under "unknown path → everything". Should a follow-up narrow them? ## Evidence **Plan replay over the last 20 merged PRs.** Each row runs the classifier on the merge commit's `^1..` diff: | PR | 경로 수 | 계획 | 생략되는 lane | Rust crate | | --- | ---: | --- | --- | --- | | #389 | 7 | 전체 (`scripts/web-shell-measure/run.sh`) | - | 전체 | | #388 | 6 | 부분 | desktop-checks, hcoord, os-contract, windows-check, windows-e2e, macOS-e2e, desktop-e2e | herdr-core | | #385 | 125 | 전체 (`.github/pull_request_template.md`) | - | 전체 | | #387 | 70 | 전체 (`contracts/hided-ws.schema.json`) | - | 전체 | | #386 | 61 | 전체 (`contracts/hided-ws.schema.json`) | - | 전체 | | #368 | 2 | 전체 (`.github/workflows/pr.yml`) | - | 전체 | | #372 | 23 | 전체 (`.github/workflows/nightly.yml`) | - | 전체 | | #382 | 3 | 부분 | web-checks, desktop-checks, hcoord | herdr-core, hide-host, hided | | #383 | 1 | 부분 | rust, desktop-checks, hcoord, os-contract, windows-check, desktop-e2e | - | | #384 | 8 | 부분 | web-checks, desktop-checks, hcoord, os-contract, windows-check, windows-e2e, web-e2e, macOS-e2e, desktop-e2e | herdr-core | | #380 | 2 | 부분 | web-checks, desktop-checks, hcoord | herdr-core, hided | | #381 | 1 | 부분 | rust, desktop-checks, hcoord, os-contract, windows-check, desktop-e2e | - | | #378 | 58 | 전체 (`.github/workflows/nightly.yml`) | - | 전체 | | #377 | 11 | 부분 | hcoord | herdr-core, hided | | #361 | 91 | 전체 (`agents/prd/three-column-panel/prd.md`) | - | 전체 | | #376 | 7 | 부분 | web-checks, desktop-checks, hcoord | herdr-core, hide-agent-hooks, hide-ai, hide-herdr-client, hide-host, hide-kit, hide-memory, hide-platform, hide-session, hided | | #367 | 27 | 부분 | hcoord | herdr-core, hide-host, hided | | #375 | 2 | 부분 | web-checks, desktop-checks, hcoord | herdr-core, hide-agent-hooks, hide-host, hide-kit, hide-memory, hided | | #366 | 8 | 전체 (`.github/workflows/release.yml`) | - | 전체 | | #362 | 153 | 전체 (`agents/prd/overview-request-view/prd.md`) | - | 전체 | - **줄어드는 lane**: - 11 of 20 PRs would run a partial plan; 9 run everything because they touch `.github/`, `contracts/`, `scripts/` or `agents/`. - A docs-only PR (#384) runs no E2E, Windows or macOS lane. It still runs `rust -p herdr-core`, because a herdr-core test reads the root `AGENTS.md`. - A web display change (#388) runs no Windows, macOS, desktop or OS-contract lane. - A Rust crate change tests only that crate and its reverse dependencies, from `cargo metadata`. For example #380 tests `herdr-core` and `hided` only. - **확인한 것**: - `scripts/tests/test_ci_plan.py` passes 19 cases. They cover: - Docs-only, which excludes Rust and E2E. - A pure web display change, which excludes the Windows smoke. - `hide-platform`, which includes Windows and the OS contract. - Shared web, a `@platform` spec, `desktop/src/main` and leaf-crate reverse dependencies. - Every `READERS` entry. - Unknown paths, lockfiles and workflows, a type change, an empty diff, a missing base, a non-merge HEAD and a missing crate graph, which all run everything. - The aggregate rejecting a skipped, failed or cancelled planned lane, an unplanned lane that ran, a missing or extra `needs` entry, a failed plan and an empty plan. - The full `python3 -m unittest discover -s scripts/tests` suite passes (108). That includes the check that every gate a workflow runs is a tracked script. - actionlint passes on every workflow. `check-herdr-pin-single-source`, `check-hide-design-enforcement`, `check-no-workstation-identity`, `check-harness-ignore-anchor` and `verify-cargo.sh fmt-check` all pass. - Running `plan` on #388 produced the expected `GITHUB_OUTPUT` (`lanes`, `full`, `rust-packages`) and the job-summary table. - Running `aggregate` with a fake `needs` passed when the results matched the plan and failed when a planned lane was skipped. - **리뷰 반영**: a code review and a fidelity review against the brief found these, now fixed: - Tests read files across folders, so these changes now plan the lanes that read them: the root `AGENTS.md` (herdr-core test), `web/src` and `hided/src` (herdr-core structure tests), `wirePath.ts` (imported by web e2e) and `design/tokens.json` (read by web tests). - Every crate change now runs `windows check`. - Main pushes no longer cancel each other. - `docs/PERFORMANCE_TESTING.md` no longer describes the old lanes. - **CI ([run 37214808511](https://github.com/modakbul-gongbang/hide/actions/runs/37214808511))**: - The plan was full (the change touches `.github/` and `scripts/`), and every lane ran, including the separate `windows e2e`. All passed. - The first attempt failed in Linux web e2e shard 2/6 on `home.spec.ts:82` (the location bar read `Home/hde-…` instead of `Home/~/hide`). This PR touches no web or test code. `verify` reported exactly `web-e2e: planned, expected success, got failure`. - One rerun of the failed jobs passed, and `verify` is green. - The `home.spec` failure is a flaky-test candidate; it belongs to the main-green work, not this PR. - **확인하지 못한 것**: - Partial plans have never run on Actions. A docs-only or web-only PR has not been tried; the first one after the merge will show it. - The cold-cache time of the `windows e2e` lane is unmeasured. It uses the same path as the nightly Windows lane. - Main runs now queue instead of cancelling, but GitHub keeps only one pending run per group. If three merges land in a row, the middle merge's full run can be dropped. - **안전망과 위험**: a lane that should have run but was skipped is the risk. Main's full run catches it after the merge; the fix is then a rule in `scripts/ci-plan.py` plus a test case. Does not include: a failure ledger or history, a quarantine registry, cache changes, a `max-parallel` experiment, or the `package.yml` `paths` trigger (all out of scope). If this and the main-green PR overlap in `pr.yml`, whichever merges later rebases.
yansfil
added a commit
that referenced
this pull request
Oct 5, 2026
Related: #339 (3개 중 첫 번째: 웹 셸 나머지 / 데스크톱 호스트 / 폰·푸시와 재발 방지 검사), 기반 #386 ## Summary 웹 셸에서 catalog 밖에 하드코딩돼 있던 제품 문구를 네 언어 catalog로 옮겼다. 동작, 레이아웃, 상태 모델은 그대로다. Settings 전 탭, 사이드바 행·메뉴·닫기 시트, Overview(요청, Agents 그래프, Issues, PRs), Workspace 툴바·탭·pane, 에디터·Explorer·History, 팔레트·시작 패널·프로젝트 대화상자, 디스크 정리, 기기 레일이 대상이다. 번역기는 훅(`t`)과, 렌더 밖에서 조립하는 문구용 `translate`(호출 시점의 언어)로 나눴다. | en | ko | zh-CN | ja | | --- | --- | --- | --- | |  |  |  |  | 캡션: 같은 Overview(요청 탭)를 네 언어로 본 것. 줄바꿈과 잘림 없이 들어간다. ## Review - **판단해 주세요**: 지금까지 영어 UI에도 한국어 리터럴로 나가던 문구(요청, 새 이슈, 정리, 맡기기, 내 차례 등)가 영어 locale에서는 catalog의 영어("Requests", "New issue")로 바뀐다. 한국어 locale은 기존 문구 그대로다. - **판단해 주세요**: 이슈 시작·PR 맡기기의 첫 프롬프트 초안이 인터페이스 언어를 따른다(시작 전에 편집 가능). - **판단해 주세요**: 영어 문법 정정 "1 lines added" -> "1 line added", 1일 전은 ko에서 "어제"(Intl 상대시간). - **조심해서 볼 파일**: `web/src/projects.ts` - 시간·PR 문구 helper가 모두 `t`를 받는다(sidebar, boards, sleep이 호출). `web/src/revealExternal.ts` - desktop 호스트가 `host.ts`로 import하므로 번역기를 끌어오지 않고 key만 반환한다. - **조심해서 볼 파일**: `web/src/sleep.ts` - 번역된 문자열을 "now"와 비교하던 것을 age 단위 판정으로 바꿨다. - **질문**: core가 문장으로 보내는 문구(status_label, 오류 reason 등)는 클라이언트가 번역하지 못한다. 번역 화면에 "Idle", "is not inside a Git repository" 같은 영어가 섞여 남는다. core가 코드를 보내게 바꿀지 결정이 필요하다. ## Evidence - **확인한 것**: `pnpm typecheck`, `pnpm lint`, web vitest 103 파일 988건, desktop typecheck/lint/vitest 통과. - **확인한 것**: 바뀐 문구를 건드리는 web e2e 15개 spec 31건 통과(close-subtree, cmdk, start-panel, overview*, device-rail, disk-cleanup, mobile, projects-sidebar, shell, home, agent-tab-names, interface-language). 격리된 후보 hided와 사설 Herdr로 실행. - **확인한 것**: 같은 격리 스택에서 네 언어 69장을 캡처해 Settings 8개 탭, 사이드바, Workspace, 단축키 시트, 검색, Overview 4개 탭의 잘림·줄바꿈을 눈으로 확인. - **확인하지 못한 것**: `sidebar-menus.spec.ts`(@flaky, #308)는 이 PR 전부터 실패한다(main의 프로젝트 메뉴에 "Open Overview"가 없다). 이 PR은 `data-section` 값만 바꿨다. - **확인하지 못한 것**: web e2e 전체는 CI에 맡겼고 로컬에서는 위 spec만 돌렸다. 데스크톱 창에서의 네이티브 확인과 desktop e2e는 다음 PR이다. - **확인하지 못한 것**: live Markdown 체크박스 aria-label은 위젯을 만들 때 한 번 정해져, 이미 그려진 체크박스는 다시 그릴 때까지 이전 언어다. <details><summary>추가 증거</summary> 사이드바 상단(검색·Overview·탭), 네 언어. | en | ko | zh-CN | ja | | --- | --- | --- | --- | |  |  |  |  | </details> <details><summary>Verification record</summary> base 079b6f2, 커밋은 영역별 6개(사이드바·Settings·보드·Workspace·대화상자·문서). 영역 사이에 helper 시그니처(`projects.ts`, `elapsed.tsx`, `ageWords`, `revealExternal.ts`)가 얽혀 있어 중간 커밋은 단독 빌드되지 않는다. `scripts/check-no-workstation-identity.sh` 통과. </details>
yansfil
added a commit
that referenced
this pull request
Oct 5, 2026
…coded text (#464) Closes #339 (마지막 PR: 웹 셸 #415, 데스크톱 호스트 #421은 머지됨) ## Summary 폰 화면과 푸시 알림을 네 언어 catalog로 옮기고, 제품 문구가 catalog 밖에 새로 생기면 `pnpm lint`가 잡도록 했다. 동작, 레이아웃, 상태 모델은 그대로다. 폰은 snapshot이 없어서 daemon이 core의 명시적 선택을 `agents` frame의 `interface_language`로 알려 주고, 선택이 없으면(그리고 첫 frame 전의 연결 화면은) 폰의 브라우저 언어를 쓴다. 푸시 문장은 이제 daemon이 만들지 않는다. payload는 에이전트 제목, 장소, 상태(`needs_you`/`done`)만 싣고, 서비스 워커가 페이지가 맡겨 둔 상태 단어(Cache API)와 장소를 합쳐서 알림을 그린다. 앱이 닫혀 있어도 맞는 언어로 나온다. | en | ko | zh-CN | ja | | --- | --- | --- | --- | |  |  |  |  | |  |  |  |  | 캡션: 같은 폰의 목록과 대화 상세를 네 언어로 본 것(데스크톱 Settings에서 고른 core 언어를 폰이 따라간다). 에이전트 제목, 요청 줄, 대화 본문은 사용자 데이터라 번역되지 않는다. ## Review - **판단해 주세요**: 폰의 한국어 문구 일부가 catalog의 ko 문구로 바뀐다. `<Mac>와 연결` -> `<Mac>에 연결`, `pane` -> `페인`, `설정 > Mobile` -> `설정 > 모바일`, `답장...` -> `답장…`. 영어 locale의 폰은 이전에 한국어였고 이제 catalog 영어다. 되돌리려면 catalog ko/en 값만 고치면 된다. - **판단해 주세요**: `manifest.webmanifest`의 한국어 `description`을 지웠다. 정적 파일이라 언어를 따라갈 수 없고, 설치 화면은 name을 쓴다. - **판단해 주세요**: 하드코딩 가드는 두 규칙이다. `i18next/no-literal-string`은 JSX 텍스트와 사람이 읽는 속성의 문장을, `no-restricted-syntax`는 제품 코드의 모든 문자열에서 한글·한자·가나를 잡는다. 허용 목록(키캡 이름, 제품 이름, 기호, 단위, 예시 경로)은 `web/eslint.config.js`에 이유와 함께 있고 인라인 disable은 쓰지 않는다. `.ts` helper가 반환하는 영어 문장은 이 가드가 보지 못한다(리뷰 몫, `docs/LOCALIZATION.md`에 적었다). - **조심해서 볼 파일**: `hided/src/mobile/push.rs`, `web/public/m/sw.js` - payload가 `body` 대신 `state`/`place`를 싣는다. 단어를 한 번도 저장하지 못한 구독(이 변경 전에 만든 것)은 단어 없이 장소만 보인다. 영어를 지어내지 않는다. - **조심해서 볼 파일**: `web/src/i18n/translator.tsx`, `client.tsx` - 두 페이지가 공유하는 번역기를 셸 store 없이 분리했다. 폰 번들은 아직 `StartSheet`가 끌어오는 공유 모듈(`layer.ts`, `terminals.ts` 등)로 셸 store에 닿는다. 이전부터 그랬고 이 PR은 건드리지 않았다. - **질문**: core가 문장으로 보내는 문구는 아직 번역되지 않는다. 폰 시작 화면의 대상 이름("This Mac", "Home", `hided/src/mobile/start.rs`), 사람 전달 알림의 영어 문장(`push_delivery`, 지금은 장소 자리에 그대로 실린다), 셸의 `status_label`·`reason`. core가 코드를 보내게 바꿀지 결정이 필요하다(#415, #421과 같은 질문). ## Evidence - **확인한 것**: web typecheck/lint, web vitest 109 파일 1030건, `hided` mobile Rust 테스트 47건과 clippy/fmt(위 변경 기준), `node --check sw.js`, `check-no-workstation-identity.sh`. - **확인한 것**: 격리된 후보 hided와 사설 Herdr에서 `mobile.spec` 3건과 `interface-language.spec` 2건 통과 - 폰이 데스크톱 Settings에서 고른 core 언어(ko, 시스템으로 복귀)를 따라가고, 만료된 코드 안내가 ko 폰에서 한국어로 나오고, 푸시 payload에 `body`가 없고 `state`/`place`가 있으며, 서비스 워커의 `hide-phone-words` 캐시에 두 단어가 저장된다. - **확인한 것**: 같은 스택에서 폰 목록과 상세를 네 언어로 캡처해 줄바꿈과 잘림을 확인했다(위 표). - **확인한 것**: 가드 자체는 `guard.test.ts`가 샘플 소스로 검증한다(영어 JSX 텍스트·속성, 세 문자 체계의 CJK, 허용 목록, 카탈로그 제외). - **전수 점검**: web 비테스트 소스 전체를 JSX 텍스트, 읽는 속성, CJK 문자, helper의 영어 문구로 훑었다. 나온 것은 장치 라벨 fallback 둘(`startTargets.ts`, `search.ts`, 이제 catalog)뿐이다. 남은 영어는 단축키 registry의 `title`(검색 키이자 `commandTitle`이 대체하는 영어 원본), 진단 문구, 에이전트 kind 이름이다. 린트는 `web/src` 전체에서 0건이다. - **확인하지 못한 것**: 실제 기기의 푸시 수신(Web Push 서비스를 거치는 알림)은 확인하지 못했다. payload와 서비스 워커의 본문 조립은 loopback push endpoint와 `vm` 시뮬레이션으로 확인했다. - **확인하지 못한 것**: 폰 화면 확인은 브라우저 안의 iPhone 크기 터치 페이지다. 홈 화면에 추가한 PWA와 iOS 글꼴은 확인하지 못했다. - **확인하지 못한 것**: web e2e 전체는 CI에 맡겼다. 로컬에서는 폰, 언어, 팔레트, 디스크 정리 등 바뀐 문구를 건드리는 spec만 돌렸다. <details><summary>Verification record</summary> base 523f89b(#421 머지), 커밋 3개(daemon·서비스 워커, 폰 페이지, 가드와 문서). `eslint-plugin-i18next`를 web devDependency로 추가했다. 폰의 한국어 문구 목록은 위 Review에 있다. 이 PR이 #339의 마지막이다: #386(기반), #415(웹 셸), #421(데스크톱 호스트). </details>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related #339
Summary
The four views show the shared selector and translated tabs; Japanese help text wraps within the existing row.
Review
model.rs,persistence.rsandruntime/events.rs: raw invalid values stay stored while the wire uses English.i18n/client.tsxandSettingsSheet.tsx: only confirmed core choices update the interface and selector.Evidence
C.UTF-8;Clocale passed all 51 kit tests.