feat(project): 카드 드래그 순서변경/전체멤버/탭 슬라이드/내업무 실시간반영
- 홈 프로젝트 카드 드래그 재정렬(관리자, projects.sort_order 공유) - 프로젝트 제목 색상 pill 스타일로 강조 - 보드 세션 우클릭에 "업무 추가" 메뉴 추가 - 좌측 "멤버"→"프로젝트 멤버" + "전체 멤버" 그리드(클릭 시 담당 업무 팝업) - 뷰 탭/스코프 토글에 슬라이드 하이라이트 애니메이션 - "내 업무" 패널이 8초 실시간 폴링에서 빠져 있던 문제 수정(홈/프로젝트 화면 모두 /api/my-tasks 로 patch) Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -801,6 +801,18 @@ class ProjectStore:
|
||||
raise KeyError(stage_id)
|
||||
return self._serialize(row)
|
||||
|
||||
def reorder_projects(self, *, ordered_ids: list[int]) -> None:
|
||||
"""홈 화면 프로젝트 카드 드래그 순서 변경. 최상위 프로젝트(parent_id
|
||||
IS NULL)만 대상 — 서브프로젝트 정렬(부모 안에서의 순서)은 건드리지 않는다."""
|
||||
with self._pool.connection() as conn:
|
||||
with conn.transaction():
|
||||
for i, pid in enumerate(ordered_ids):
|
||||
conn.execute(
|
||||
"UPDATE projects SET sort_order = %s "
|
||||
"WHERE id = %s AND parent_id IS NULL",
|
||||
(i, int(pid)),
|
||||
)
|
||||
|
||||
def reorder_stages(self, *, project_id: int, ordered_ids: list[int]) -> None:
|
||||
"""주어진 순서대로 sort_order 재배정. 해당 프로젝트 단계만 갱신."""
|
||||
with self._pool.connection() as conn:
|
||||
|
||||
Reference in New Issue
Block a user