Created-by-me: Done를 Archived 위에 (위젯 ORDER)

My Work Created by me 위젯이 ORDER BY (t.status = 0) ASC만 쓰면, Done(0)이 아닌 **모든 상태(Archived=-1 포함)**가 Done 위에 온다. 보드 ticketlabels.sortKey는 이 위젯을 구동하지 않는다.

수정 패턴

상태 그룹 순위(개념):

그룹rank예
open / flow0New, In Progress, Review, …
Done1status=0
Archived2status=-1

이차 정렬: closedAt/modified DESC. SQL/헬퍼명은 제품별(STATUS_GROUP_ORDER_SQL, statusGroupRank). CASE는 상수 순위(user-controlled ORDER BY 아님) — bind는 userId/doneWithinDays 등만, WHERE t.userId = ? + 세션 id.

검증

  • 보드 라벨 sortKey만 바꿔도 Created-by-me 순서는 안 바뀜 → 위젯 ORDER BY를 고친다.
  • 단위 테스트로 open < Done < Archived 순을 고정한다.
  • Playwright/Chromium CDN이 막히면 동일 Blade의 HTMX partial(예: GET /hx/…/createdByMe) + live 배포 아티팩트 grep STATUS_GROUP_ORDER_SQL으로 UI-equivalent 증거를 남긴다 — Playwright-Frontend-UI-Smoke-Pattern.md.
  • .factory/quality.yaml에 security.command/e2e가 없으면 mechanical skip + scoped manual — Tenant-Quality-Yaml-Gate-Skip-Pattern.md.

🔗 관련 문서