Skip to content

Commit d19f342

Browse files
committed
feat(code): add sort and filter to archived tasks view
1 parent 0bfd292 commit d19f342

File tree

3 files changed

+321
-37
lines changed

3 files changed

+321
-37
lines changed

apps/code/src/renderer/features/archive/components/ArchivedTasksView.stories.tsx

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const meta: Meta<typeof ArchivedTasksViewPresentation> = {
7474
isLoading: false,
7575
branchNotFound: null,
7676
onUnarchive: () => {},
77-
onDelete: (_taskId: string, _taskTitle: string) => {},
77+
onDelete: (_taskId: string) => {},
7878
onContextMenu: () => {},
7979
onBranchNotFoundClose: () => {},
8080
onRecreateBranch: () => {},
@@ -147,3 +147,22 @@ export const LongLabels: Story = {
147147
],
148148
},
149149
};
150+
151+
export const MixedModes: Story = {
152+
args: {
153+
items: [
154+
{
155+
archived: { ...createArchivedTask("t1", 1), mode: "cloud" },
156+
task: createTask("t1", "Cloud deploy pipeline", 10, "infra"),
157+
},
158+
{
159+
archived: { ...createArchivedTask("t2", 5), mode: "local" },
160+
task: createTask("t2", "Local debugging session", 3, "frontend"),
161+
},
162+
{
163+
archived: { ...createArchivedTask("t3", 0), mode: "worktree" },
164+
task: createTask("t3", "Worktree refactor", 20, "backend"),
165+
},
166+
],
167+
},
168+
};

0 commit comments

Comments
 (0)