Repository navigation
feat: add the practice chapter on going back and forth fast - #1636
Merged
Merged
Conversation
…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
…pen a closed file palette with Enter
# Conflicts: # docs/UI_BEHAVIOR.md
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: #1632 (practice-foundation, this PR's base)
Summary
연습 모드에 2편 "빠르게 오가기"를 더합니다.
지어낸 프로젝트 두 개(practice-app, practice-docs)에서 세 가지를 익힙니다: ⌃⇥로 방금 쓴 에이전트로 돌아가기, ⌥⇥로 방금 쓴 프로젝트로 가기, ⌘P로 파일 이름을 쳐서 열기.
⏎만 눌러도 끝까지 가고, 직접 키를 눌러도 됩니다. 이 장은 새 파일과 문서 두 문장뿐이고, 필요한 공용 변경은 #1632에 먼저 올렸습니다.
리뷰에서 나온 두 막힘을 고쳤습니다.
⌃를 누른 채 ⇥ 두 번으로 docs 에이전트에 간 뒤: 첫 단계가 끝나고 프로젝트 단계로 넘어갑니다. 문구는 어느 에이전트로 왔든 맞는 말입니다.
파일 고르기 단계에서 Esc로 목록을 닫은 뒤: 말풍선이 ⏎로 다시 열라고 안내하고 해 보기 버튼이 돌아옵니다.
Review
recent_panel이 아니라recent_area_tab(⌃⇥)으로 가르칩니다.recent_panel은 데스크톱과 브라우저 모두 기본 키가 없고, ⌃⇥가 프로젝트를 넘나드는 최근 에이전트 순환이라 목업 장면과 같습니다.open_file명령을 줘서, 팔레트에 글자를 칠 때 ⌘P 키캡이 깜빡일 수 있었습니다. 공용 코치가 셸의 팔레트나 전환 목록이 열려 있는 동안 깜빡이지 않도록 #1632에 고쳤고(be2ed01), 이 브랜치에 병합했습니다.web/src/practice/worlds/switch.ts- 두 프로젝트의 desk를 한 세계로 묶고focus_pane/focus_tab/focus_checkout/file_index/file_open에 답합니다. 새left는 처음 pane을 떠난 순간 앞에 있던 프로젝트로, 첫 두 단계의 완료가 이것을 봅니다.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) 순환 모두에서 첫 단계가 끝나고, 그 뒤 다른 프로젝트로 가야 둘째 단계가 끝남을 확인. 고치기 전 완료 조건이면 두 칸 경우가 실패합니다.node scripts/check-design-contract.mjs통과.추가 증거
⌘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