File tree Expand file tree Collapse file tree
packages/ui/src/features/archive Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,10 +7,13 @@ import {
77import { Box } from "@radix-ui/themes" ;
88import type { Meta , StoryObj } from "@storybook/react-vite" ;
99
10+ const STORY_NOW = Date . parse ( "2026-07-01T10:30:00Z" ) ;
11+ const DAY_IN_MS = 86_400_000 ;
12+
1013function createArchivedTask ( id : string , daysAgo : number ) : ArchivedTask {
1114 return {
1215 taskId : id ,
13- archivedAt : new Date ( Date . now ( ) - daysAgo * 86400000 ) . toISOString ( ) ,
16+ archivedAt : new Date ( STORY_NOW - daysAgo * DAY_IN_MS ) . toISOString ( ) ,
1417 folderId : "folder-1" ,
1518 mode : "worktree" ,
1619 worktreeName : "feature-wt" ,
@@ -25,7 +28,7 @@ function createTask(
2528 daysAgo : number ,
2629 repo : string ,
2730) : Task {
28- const now = new Date ( Date . now ( ) - daysAgo * 86400000 ) . toISOString ( ) ;
31+ const now = new Date ( STORY_NOW - daysAgo * DAY_IN_MS ) . toISOString ( ) ;
2932 return {
3033 id,
3134 task_number : null ,
You can’t perform that action at this time.
0 commit comments