Skip to content

Commit 40123ba

Browse files
authored
feat(code): add sort and filter to archived tasks view (#1509)
## Problem quick vibe-PR to fix something that was bugging me -- archived tasks page has no sort/filter and the sorting is very not-obvious right now closes #1508 <!-- Who is this for and what problem does it solve? --> <!-- Closes #ISSUE_ID --> ## Changes - adds sort & filter to archived tasks, shows the column for default sorting - replaces the delete confirmation system dialog with a styled modal <!-- What did you change and why? --> <!-- If there are frontend changes, include screenshots. --> ## How did you test this? manually <!-- Describe what you tested -- manual steps, automated tests, or both. --> <!-- If you're an agent, only list tests you actually ran. -->
1 parent 2339d7c commit 40123ba

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)