Repository navigation
feat(board): add 5-day stale detection/filter and multi-link metadata on threads - #51
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.
요약
별도
Bot Items엔티티를 신설해 스레드 칸반과 이중 관리(Split-Brain)를 만드는 대신, 기존TaskRecord+ThreadBoard위에 5일 방치(Stale) 감지·필터와 스레드 멀티 링크(links, 최대 10개) 메타데이터를 확장합니다.이유
DevilsAdvocate가TaskRecord/ThreadBoard와Bot Items의 80% 중복 및 상태 고착 위험을 지적했고, 기존 스레드 보드에 5일 Stale 감지와 멀티 링크만 얹는 것이 가장 안전하고 작은 경계로 정리되었습니다.변경 파일
shared/thread-link.ts:MAX_THREAD_LINKS(10),threadLinkUrls(배열 검증·중복 제거),threadLinksOf(link+links병합),threadLinkDisplayLabel(PR/MR 단축 표기 및 도메인 폴백) 추가packages/phone-protocol/src/wire.ts,server/store.ts,server/routes/tasks.ts,server/cloud-chat-merge.ts,src/state/store.tsx:TaskRecord/WireTask에links?: string[]추가 및PATCH검증(http(s), 최대 10개,null초기화)src/lib/thread-board.ts:BOARD_STALE_WINDOW_MS(5일) 기준stale파생 계산(보관·완료·실행/큐 잠금 스레드 제외) 및links전달src/components/ThreadBoard.tsx,src/components/ThreadBoardPanel.tsx: Stale 배지(data-board-stale), Stale 필터 토글(data-board-filter-stale), 카드 요약 링크(+N) 및 사이드 패널 전체 링크 칩(data-board-panel-links) 표시src/locales/en.json,src/locales/ko.json,src/locales/pt-br.json:board.stale,board.staleFilter추가Before / After 증적
link만 표시 가능.pnpm vitest run src/lib/thread-board.test.ts src/components/ThreadBoard.test.ts src/components/Select.guard.test.ts shared/thread-link.test.ts→ 3개 파일 18/18 통과node -e직접 실행으로threadLinkUrls(중복 제거·javascript:차단·11개 초과 거부),threadLinksOf,threadLinkDisplayLabel검증 →RUNTIME_VERIFY_OKpnpm run typecheck→ 통과 (exit 0)pnpm run build→ 통과 (exit 0, 18.88s)pre-push가드 (vocabulary.test.ts,file-size-ratchet.test.ts) → 통과