Repository navigation
feat(board): archive or delete a thread from its kanban card - #12
Merged
Merged
Conversation
3 tasks done
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.
변경 요약
팀 맵 칸반보드의 카드에서 바로 스레드를 보관 / 보관 해제 / 삭제할 수 있게 했습니다. 카드에 마우스를 올리거나 키보드 포커스가 가면 오른쪽 위에 아이콘 두 개가 나타납니다.
src/lib/thread-board.ts: 카드에archived,locked(진행 중이거나 대기열이 있는 스레드) 추가. 멈춘(stalled) 스레드는 잠그지 않아 지울 수 있습니다.src/components/ThreadBoard.tsx: 카드를div로 감싸고 선택 버튼과 액션 버튼을 나란히 배치합니다(버튼 안에 버튼을 넣지 않기 위해). 사이드바와 같은threadRowActions와 기존 번역 키(task.archive,task.unarchive,task.deleteAria,task.deleteConfirm,task.deleteBody)를 재사용했습니다. 삭제는ConfirmDialog로 한 번 확인하고, 확인 시점에 스레드가 다시 작업 중이면 삭제하지 않습니다.yourAccess === "view") 봇의 카드에는 액션을 보여주지 않습니다.이유
카드를 클릭하면 채팅 화면으로 넘어가는 것 외에 보드에서 할 수 있는 정리 작업이 없었습니다. 이 PR은 사이드 패널에서 바로 대화하는 기능의 선행 작업입니다(후속 PR).
테스트 방법
pnpm exec vitest run src/lib/thread-board.test.ts src/components/ThreadBoard.dom.test.ts pnpm typecheckBefore / After
Before (새 테스트를 수정 전
ThreadBoard.tsx/thread-board.ts에 돌림): 5건 실패After:
Test Files 2 passed, Tests 19 passed (19),pnpm typecheck통과.전체
vitest run src에서는 이 변경과 무관한 9개 파일(PageTools, AppNotices, BotApiCard, BotLimitPopup, CloudAccountSettings, CloudRoomCard, PlacesRail, RoutineScheduleNote, touch-actions)이 실패합니다. 변경을 stash한main에서 같은 9개 파일을 돌려도 69건이 실패해서 기존 실패로 판단했습니다.스크린샷
이 작업 환경의 브라우저가 로컬 앱 접속을 막아서 실제 화면 스크린샷은 첨부하지 못했습니다. UI 동작은 DOM 테스트로 검증했습니다. 리뷰어가
pnpm dev후 팀 맵 → 보드에서 카드에 마우스를 올려 확인해 주세요.