Repository navigation
feat: 마지막으로 고른 Unified/Split 레이아웃을 기억한다 - #105
Merged
Merged
Conversation
툴바에서 고른 레이아웃을 localStorage(`diffdeck:diff-style`)에 저장하고, 다음 실행에서 URL → 저장값 → 기본값(unified) 순으로 정한다. `--split`은 그 실행에만 적용되고 저장값을 바꾸지 않는다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01A1spPGo8kYzkrEzDdJ7XuM
Contributor
|
PR이 닫혀 프리뷰를 지웠습니다. |
리뷰 반영: 저장값 "unified"를 먼저 두고 --split으로 띄워 값이 남는지 본다. resolveDiffStyle의 알 수 없는 값 폴백을 유닛 테스트에 더하고, --split 설명에 첫 실행은 unified라는 것을 되살린다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01A1spPGo8kYzkrEzDdJ7XuM
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.
요약
툴바에서 고른 Unified/Split 레이아웃을 기억합니다. 다음에 뷰어를 열면 마지막에 고른 레이아웃으로 시작합니다.
?style=) → localStorage(diffdeck:diff-style) → 기본값(unified)입니다. flatten·트리 위치와 같은 방식입니다.--split은 그 실행에만 적용되고 저장값을 바꾸지 않습니다. 기존 "뷰 플래그는 이번 실행에만" 계약을 따릅니다.--split설명을 "unified is the default"에서 "else the last layout you picked"로 바꿨습니다.cli.tsHELP,README.md와 번역 4종,apps/viewer/README.md,SKILL.md를 함께 고쳤습니다..claude/rules/viewer.md의 프리퍼런스 규칙에 Unified/Split을 저장 대상으로 옮겼습니다.화면 모양은 바뀌지 않아 스크린샷은 붙이지 않았습니다.
테스트 계획
bun run typecheck,bun run lint,bun run format:checkbun run test:coverage:resolveDiffStyle의 URL·저장값·기본값 순서 유닛 테스트diffstyle-persist.e2e.ts: Split을 고르고 새로고침하면 Split, 다시 Unified로 바꾸고 새로고침하면 Unified인지 확인diffstyle-persist.e2e.ts:--split으로 띄워도 저장값이 생기지 않는지 확인main.ts의 저장 줄을 지우면 새로고침 스펙이 실패하는 것을 확인diffstyle-scroll·tree-fold-sync-diffstyle·flags-synce2e 통과🤖 Generated with Claude Code
https://claude.ai/code/session_01A1spPGo8kYzkrEzDdJ7XuM