Skip to content

feat: add the practice chapter on going back and forth fast - #1636

Merged
yansfil merged 16 commits into
mainfrom
practice-ch2
Oct 23, 2026
Merged

yansfil merged 16 commits into
mainfrom
practice-ch2

Conversation

@yansfil

@yansfil yansfil commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Related: #1632 (practice-foundation, this PR's base)

Summary

연습 모드에 2편 "빠르게 오가기"를 더합니다.
지어낸 프로젝트 두 개(practice-app, practice-docs)에서 세 가지를 익힙니다: ⌃⇥로 방금 쓴 에이전트로 돌아가기, ⌥⇥로 방금 쓴 프로젝트로 가기, ⌘P로 파일 이름을 쳐서 열기.
⏎만 눌러도 끝까지 가고, 직접 키를 눌러도 됩니다. 이 장은 새 파일과 문서 두 문장뿐이고, 필요한 공용 변경은 #1632에 먼저 올렸습니다.

리뷰에서 나온 두 막힘을 고쳤습니다.

  • 말풍선대로 ⌃를 누른 채 ⇥를 두 번 눌러 docs 에이전트로 가면 그 단계에 갇혔습니다. 이제 처음 pane에서 어느 에이전트로든 옮기면 끝나고, 다음 프로젝트 단계는 그때 있던 프로젝트가 아닌 쪽으로 가면 끝납니다.
  • 파일 고르기 단계에서 Esc로 목록을 닫으면 ⏎도 버튼도 아무것도 하지 않았습니다. 이제 목록이 닫혀 있으면 ⏎가 목록을 다시 열고, 말풍선도 그렇게 안내합니다.

⌃⇥⇥로 docs에 간 뒤 project 단계
⌃를 누른 채 ⇥ 두 번으로 docs 에이전트에 간 뒤: 첫 단계가 끝나고 프로젝트 단계로 넘어갑니다. 문구는 어느 에이전트로 왔든 맞는 말입니다.

Esc로 닫은 뒤 pick 단계
파일 고르기 단계에서 Esc로 목록을 닫은 뒤: 말풍선이 ⏎로 다시 열라고 안내하고 해 보기 버튼이 돌아옵니다.

Review

  • 판단해 주세요: "최근 pane"을 recent_panel이 아니라 recent_area_tab(⌃⇥)으로 가르칩니다. recent_panel은 데스크톱과 브라우저 모두 기본 키가 없고, ⌃⇥가 프로젝트를 넘나드는 최근 에이전트 순환이라 목업 장면과 같습니다.
  • 판단해 주세요: ⌘1~9는 1편 jump 단계와 겹쳐 뺐습니다.
  • 판단해 주세요: 첫 단계 문구를 "첫 키를 누른 채 두 번째 키를 한 번 더 누르면 한 칸 더 뒤로"로 바꿨습니다. 키캡이 데스크톱은 ⌃ ⇥, 브라우저는 ⌥ ` 라서 키 이름 대신 말풍선 아래 키캡의 순서로 가리킵니다. 4개 언어 뜻을 맞췄습니다.
  • 알아 두세요: 파일 고르기 단계에 open_file 명령을 줘서, 팔레트에 글자를 칠 때 ⌘P 키캡이 깜빡일 수 있었습니다. 공용 코치가 셸의 팔레트나 전환 목록이 열려 있는 동안 깜빡이지 않도록 #1632에 고쳤고(be2ed01), 이 브랜치에 병합했습니다.
  • 조심해서 볼 파일: web/src/practice/worlds/switch.ts - 두 프로젝트의 desk를 한 세계로 묶고 focus_pane/focus_tab/focus_checkout/file_index/file_open에 답합니다. 새 left는 처음 pane을 떠난 순간 앞에 있던 프로젝트로, 첫 두 단계의 완료가 이것을 봅니다.
  • e2e 판단: 이탈 경로(Esc 뒤 ⏎, 더 멀리 순환한 뒤 ⏎)는 practice e2e에 넣지 않았습니다. docs/TESTING.md는 e2e를 사용자 흐름마다 대표 여정 하나로 두고, 단위로 말할 수 있는 규칙은 단위에 두라고 합니다. 순환 경로는 세계의 완료 조건이라 worlds/switch.test.ts가 맡고, Esc 경로는 코치와 팔레트가 맞물리는 화면 동작이라 브라우저에서 직접 확인했습니다.

Evidence

  • 확인한 것: web/e2e/practice.spec.ts가 격리 Herdr와 이 워크트리의 hided debug로 0·1·2편을 ⏎만으로 끝까지 진행하고 core가 셋 다 봄으로 기록함(통과).
  • 확인한 것: 개발 서버 /?practice=1&lang=ko&host=electron&platform=darwin에서 ⌃를 누른 채 ⇥ 두 번 → project 단계로 넘어감, ⏎ → practice-app으로 돌아가 file 단계, ⏎ → 팔레트, Esc → 팔레트 닫힘, ⏎ → 팔레트 다시 열림, pay 입력 뒤 ⏎ → 파일이 열리고 end 단계. 단계마다 DOM으로 단계 id와 팔레트 유무를 읽고 화면을 찍음.
  • 확인한 것: worlds/switch.test.ts가 한 칸(login)과 두 칸(docs) 순환 모두에서 첫 단계가 끝나고, 그 뒤 다른 프로젝트로 가야 둘째 단계가 끝남을 확인. 고치기 전 완료 조건이면 두 칸 경우가 실패합니다.
  • 확인한 것: web typecheck·lint·test(240 파일, 2052 통과)·build, desktop typecheck, node scripts/check-design-contract.mjs 통과.
  • 확인하지 못한 것: 실제 데스크톱 앱(hide.app) 연습 창에서 손으로 해 보는 것. 브라우저에서 데스크톱 주소로만 확인했습니다.
  • 확인하지 못한 것: 영어·중국어·일본어 화면에서 말풍선 줄바꿈. 한국어 화면만 찍었습니다. 일본어 첫 단계 카운터 줄바꿈은 공용 코치 스타일 쪽에서 고칩니다.
추가 증거

⌘P 단계
⌘P 단계: 팔레트가 제 밝기로 보이고, 말풍선은 팔레트를 가리지 않게 옆으로 비킵니다.

마지막 단계
마지막 단계: 고른 README.md가 레인의 뷰에 열리고 에이전트는 옆에서 계속 작업합니다.

Verification record

base: origin/practice-foundation be2ed01, head: 6c4beab
changed: docs/UI_BEHAVIOR.md, web/src/i18n/resources/practice/switch.ts, web/src/practice/chapters/switch.ts, web/src/practice/worlds/switch.test.ts, web/src/practice/worlds/switch.ts
web: typecheck, lint, test (240 files, 2052 passed, 1 skipped), build - pass at 976c7db; typecheck, test (2052 passed) again at 6c4beab after merging the base
desktop: typecheck - pass
design contract: pass
e2e: web/e2e/practice.spec.ts - 1 passed at 976c7db and at 6c4beab

…o of held chords

A world can send the frames the core sends beside the snapshot (the file index answer, editor tabs and documents), the coach releases the modifier of a held chord so the switcher commits, and while a palette is open the guide drops its ring and dim and moves its bubble beside the palette.
The practice screen draws the shell's own CycleOverlay, and the guide steps aside from it as it does from a palette.
…ce-ch2

# Conflicts:
#	docs/UI_BEHAVIOR.md
#	web/src/practice/PracticePlayer.tsx
#	web/src/practice/world.ts
Base automatically changed from practice-foundation to main October 23, 2026 22:18
@yansfil
yansfil merged commit f91c1b4 into main Oct 23, 2026
26 checks passed
@yansfil
yansfil deleted the practice-ch2 branch October 23, 2026 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant