Skip to content

feat(board): archive or delete a thread from its kanban card - #12

Merged
zereight merged 1 commit into
mainfrom
feat/board-card-actions
Nov 13, 2026
Merged

zereight merged 1 commit into
mainfrom
feat/board-card-actions

Conversation

@zereight

Copy link
Copy Markdown
Owner

변경 요약

팀 맵 칸반보드의 카드에서 바로 스레드를 보관 / 보관 해제 / 삭제할 수 있게 했습니다. 카드에 마우스를 올리거나 키보드 포커스가 가면 오른쪽 위에 아이콘 두 개가 나타납니다.

  • 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 typecheck

Before / After

Before (새 테스트를 수정 전 ThreadBoard.tsx/thread-board.ts에 돌림): 5건 실패

× ThreadBoard card actions > archives an idle thread and restores an archived one without opening it   TypeError: Cannot read properties of null (reading 'click')
× ... > asks before deleting and deletes only after confirming                                       TypeError: Cannot read properties of null (reading 'click')
× ... > does not delete a thread that started working while the dialog was open                      TypeError: Cannot read properties of null (reading 'click')
× ... > locks a working thread but still lets a stalled one be cleared, and hides the actions ...    TypeError: Cannot read properties of null (reading 'disabled')
× buildThreadBoard > marks archived cards, and locks a running or queued thread but not a stalled one AssertionError
Tests  5 failed | 14 passed (19)

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 후 팀 맵 → 보드에서 카드에 마우스를 올려 확인해 주세요.

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