Skip to content

feat(sidebar): badge bot-opened threads instead of a separate group - #5

Merged
zereight merged 1 commit into
mainfrom
feat/thread-bot-badge
Nov 12, 2026
Merged

zereight merged 1 commit into
mainfrom
feat/thread-bot-badge

Conversation

@zereight

Copy link
Copy Markdown
Owner

변경 요약

고급 모드 사이드바에서 "봇이 연 스레드"를 별도 접힘 섹션(HelperThreadGroup, "Opened by bots")으로 분리하던 것을 없애고, 일반 스레드 목록에 최신순으로 섞은 뒤 행에 Bot 뱃지만 달았습니다.

  • partitionHelperThreads / HelperThreadGroup 제거, 미사용 locale 키 task.helperGroup 제거(16개 언어)
  • 행에 Bot 아이콘 뱃지 추가 (role="img", aria-label/title = "opened by {이름}"). 패널 행에도 동일 적용
  • 행 아래의 "opened by …" 문구는 뱃지로 대체. 닫힘/보관/스누즈 문구는 그대로. TaskPicker의 byline은 변경 없음
  • 봇이 연 유휴 스레드는 사용자 스레드의 6개 한도와 별도로 3행까지 노출해서 사용자 스레드를 밀어내지 않음. 나머지는 기존 "Show all N threads"로 접근 가능(조용히 사라지지 않음). 주의가 필요한 스레드(승인 대기·작업 중·읽지 않음·대기·고정·현재 스레드)는 한도와 무관하게 계속 노출
  • 검색 시에는 기존대로 제목으로 모두 검색됨

이유

섹션 분리는 사이드바 공간을 차지하고 시간순 맥락을 끊습니다. 뱃지만으로도 구별이 충분하고 목록이 단순해집니다.

테스트 방법

pnpm typecheck
pnpm vitest run src/components/SidebarThreadRow.test.ts src/components/BotThreads.test.ts
pnpm i18n:check

Before / After 증적

Before (새 테스트를 변경 전 코드에 돌림): 5개 실패

× marks the row with a labelled bot badge instead of an opened-by line
× still names who closed, archived or snoozed it under the title, with the badge beside it
× keeps bot-opened threads in the list by recency, on rows of their own so the person's six stay put
× lists threads another bot opened in the same list, badged, without spending the six visible rows, and keeps one at work in view
× shows a bot-opened thread past the three-row limit only through Show all
Tests  5 failed | 63 passed (68)

After:

Test Files  2 passed (2)
Tests  68 passed (68)
pnpm typecheck      → 오류 없음
pnpm i18n:check     → locale catalogs valid (16 languages, 10203 English strings)
  • 렌더링 결과(After): 봇이 연 스레드 3개 모두 aria-label="opened by Pepper" 뱃지 포함, data-sidebar-helper-threads 섹션 없음

알려진 사항

  • pnpm vitest run src/components 전체에서 8개 파일 69개 테스트가 실패하지만(AppNotices, PlacesRail, CloudAccountSettings 등), main에서도 동일하게 실패합니다(실패 파일 7개 67개 + RoutineScheduleNote 2개를 main과 비교해 확인). 이 PR과 무관합니다.
  • UI 스크린샷은 첨부하지 못했습니다. 봇 간 스레드가 있는 격리 fixture를 만들지 않아 렌더링 마크업 테스트로 대신했습니다. 리뷰 시 시각 확인이 필요하면 알려주세요.

🤖 Generated with Claude Code

Bot-opened threads now sit in the normal list by recency with a labelled
Bot badge, and the "Opened by bots" collapsible section is gone. They get
their own three visible rows so they cannot push the person's six threads
out; the rest stays reachable through "Show all".

Co-Authored-By: Claude Code <noreply@anthropic.com>
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