refactor(web): extract project drag session

This commit is contained in:
2026-04-01 11:16:15 +02:00
parent 0181f2b304
commit 3fe3a5fb2a
5 changed files with 164 additions and 17 deletions
+15
View File
@@ -329,6 +329,17 @@ export const rules = [
],
forbidden: [],
},
{
file: "apps/web/src/hooks/timelineProjectDragSession.ts",
maxLines: 70,
required: [
{
pattern: /\bexport function beginProjectDragSession\b/,
message: "timeline project drag session helpers must keep document drag lifecycle centralized",
},
],
forbidden: [],
},
{
file: "apps/web/src/hooks/useTimelineDrag.ts",
required: [
@@ -388,6 +399,10 @@ export const rules = [
pattern: /from "\.\/timelineProjectDrag\.js"/,
message: "timeline drag must keep project drag bootstrap and mutation gating delegated to the extracted helper module",
},
{
pattern: /from "\.\/timelineProjectDragSession\.js"/,
message: "timeline drag must keep project drag document session wiring delegated to the extracted helper module",
},
],
forbidden: [
{