refactor(web): extract allocation release classification

This commit is contained in:
2026-04-01 10:48:47 +02:00
parent 0ab1374853
commit ca947befde
5 changed files with 220 additions and 34 deletions
+21 -2
View File
@@ -240,6 +240,21 @@ export const rules = [
],
forbidden: [],
},
{
file: "apps/web/src/hooks/timelineAllocationRelease.ts",
maxLines: 90,
required: [
{
pattern: /\bexport function resolveAllocationRelease\b/,
message: "timeline allocation release helpers must keep release classification centralized",
},
{
pattern: /from "\.\/timelineAllocationActions\.js"/,
message: "timeline allocation release helpers must keep click and mutation plan derivation delegated to allocation action helpers",
},
],
forbidden: [],
},
{
file: "apps/web/src/hooks/timelineDocumentDrag.ts",
maxLines: 50,
@@ -305,8 +320,8 @@ export const rules = [
message: "timeline drag must keep allocation drag completion rules delegated to the extracted helper module",
},
{
pattern: /from "\.\/timelineAllocationActions\.js"/,
message: "timeline drag must keep allocation click and mutation plan derivation delegated to the extracted helper module",
pattern: /from "\.\/timelineAllocationRelease\.js"/,
message: "timeline drag must keep allocation release classification delegated to the extracted helper module",
},
{
pattern: /from "\.\/timelineDocumentDrag\.js"/,
@@ -346,6 +361,10 @@ export const rules = [
pattern: /\bfunction (?:buildAllocationBlockClickInfo|buildAllocationMutationPlan)\b/,
message: "timeline drag must not re-inline extracted allocation action helper implementations",
},
{
pattern: /\bfunction resolveAllocationRelease\b/,
message: "timeline drag must not re-inline extracted allocation release helper implementations",
},
{
pattern: /\bfunction attachDocumentMouseDrag\b/,
message: "timeline drag must not re-inline extracted document listener helper implementations",