feat(project): 보드 카드를 같은 세션 안에서 드래그로 순서 변경

지금까지 같은 세션에 다시 놓으면 아무 일도 안 일어났다(다른 세션으로
옮길 때만 동작). 놓은 위치(마우스 Y좌표)를 카드들 사이 인덱스로 계산해
그 순서를 새 엔드포인트로 저장하고(tasks.sort_order, 세션 소속만 재배정 —
세션 재정렬의 reorder_stages 와 동일 패턴), 로컬 tasks 배열도 그 순서에
맞게 재배치(applyStageOrder)해 새로고침 없이 즉시 반영. 실제 3개 업무로
드래그→서버 저장→하드리로드까지 헤드리스 크롬으로 검증.
This commit is contained in:
2026-09-16 15:31:26 +09:00
parent 4dbb3e7856
commit cfa41f0f6f
7 changed files with 80 additions and 7 deletions
@@ -45,5 +45,5 @@
{% endif %}
</div>
<script src="/static/project.js?v=20260917k" defer></script>
<script src="/static/project.js?v=20260917l" defer></script>
{% endblock %}
@@ -393,5 +393,5 @@
<script>
window.PJ_COLORS = {{ ["#4573d2","#37a3a3","#62a420","#e8a33d","#e8384f","#aa62e3","#f06a6a","#5a6772"] | tojson }};
</script>
<script src="/static/project.js?v=20260917k" defer></script>
<script src="/static/project.js?v=20260917l" defer></script>
{% endblock %}
@@ -461,5 +461,5 @@
</script>
<script src="/static/vendor/vis-timeline/vis-timeline-graph2d.min.js"></script>
<script src="/static/project.js?v=20260917k" defer></script>
<script src="/static/project.js?v=20260917l" defer></script>
{% endblock %}