refactor(web): extract range selection bootstrap

This commit is contained in:
2026-04-01 10:17:39 +02:00
parent c941b1e5cf
commit 84c5760392
5 changed files with 47 additions and 11 deletions
+5 -1
View File
@@ -153,6 +153,10 @@ export const rules = [
file: "apps/web/src/hooks/timelineRangeSelection.ts",
maxLines: 90,
required: [
{
pattern: /\bexport function createRangeSelectionState\b/,
message: "timeline range helpers must keep selection bootstrap centralized",
},
{
pattern: /\bexport function updateRangeSelectionDraft\b/,
message: "timeline range helpers must keep preview date derivation centralized",
@@ -304,7 +308,7 @@ export const rules = [
],
forbidden: [
{
pattern: /\bfunction (?:toPxValue|joinTransforms|captureLivePreviewTargets|renderLivePreview|scheduleLivePreview|clearLivePreview|datesMatch|preserveLivePreview)\b/,
pattern: /\bfunction (?:toPxValue|joinTransforms|captureLivePreviewTargets|renderLivePreview|scheduleLivePreview|clearLivePreview|datesMatch|preserveLivePreview|createRangeSelectionState)\b/,
message: "timeline drag must not re-inline live preview helper implementations",
},
{