✨ 디렉토리 목록 빈 폴더 시각화 향상#251
Conversation
- 빈 디렉토리 렌더링 시 일반적인 닫힌 폴더 아이콘 대신 열린 폴더 아이콘(`📂`)을 표시하도록 개선 - `aria-label`을 '빈 디렉토리'로 변경하여 스크린 리더 사용자에게 컨텍스트 제공 - `.empty-dir` CSS를 Flexbox로 개선하여 아이콘 및 텍스트 정렬 최적화 - `Files.newDirectoryStream`을 사용하여 모든 파일을 로드하지 않고 성능 효율적으로 빈 폴더 여부 확인 - 100% JaCoCo 테스트 커버리지 유지
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
There was a problem hiding this comment.
Pull request overview
디렉토리 목록에서 비어있는 디렉토리를 사용자가 클릭하지 않고도 인지할 수 있도록, 아이콘/접근성 라벨을 개선하고 관련 테스트를 보강한 PR입니다. html4tree가 생성하는 index.html의 디렉토리 UX와 접근성(aria-label/title)을 강화하는 방향입니다.
Changes:
- 비어있는 디렉토리에 대해 열린 폴더 아이콘(📂) 및 “빈 디렉토리” 라벨을 렌더링하도록
process_dir로직 확장 - “이 디렉토리는 비어 있습니다.” 빈 상태 UI에 아이콘을 추가하고 레이아웃(CSS flex) 정리
- 위 변경을 검증하는 테스트 케이스 추가/확장
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/main/kotlin/html4tree/main.kt | 빈 디렉토리 시각화/접근성 라벨 및 빈 상태 UI의 아이콘/레이아웃 개선 |
| src/test/kotlin/html4tree/MainTest.kt | 빈 디렉토리/아이콘/라벨 렌더링을 검증하는 테스트 보강 |
| .jules/palette.md | “빈 폴더 시각화 향상”에 대한 학습/조치 로그 추가 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| var isEmptyDir = false | ||
| if (isLinkedDirectory) { | ||
| try { | ||
| val stream = Files.newDirectoryStream(it.toPath()) | ||
| try { | ||
| isEmptyDir = !stream.iterator().hasNext() | ||
| } finally { | ||
| stream.close() | ||
| } | ||
| } catch (e: Exception) { | ||
| } | ||
| } |
디렉토리 목록에서 비어있는 디렉토리에 일반 폴더와 같은 아이콘과 라벨이 제공되어 발생하는 UX 저하를 해결했습니다. 사용자는 이제 열린 폴더 아이콘과 "빈 디렉토리" 접근성 라벨을 통해 클릭 없이 해당 폴더가 비어있음을 즉시 인지할 수 있습니다. 성능 최적화를 위해
Files.newDirectoryStream을 사용하였으며 100% 테스트 커버리지를 보장합니다.PR created automatically by Jules for task 7333539211564007020 started by @seonghobae