Q148: a task's goal, project, workspace, runs, approvals and subtasks open with one click, and lead back

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-09 00:58:34 -04:00
1 parent 983d37937d
commit 766d4ab8cd
13 files changed
+188 -36

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
import { describe, expect, test } from "vitest";
import { decidedWindow } from "../../src/renderer/src/pages/approvals/decided-window";
describe("the decided approvals list", () => {
const decided = Array.from({ length: 30 }, (_, index) => ({ id: `apr_${index}` }));
test("shows the newest 24", () => {
expect(decidedWindow(decided, null).map((item) => item.id)).toEqual(decided.slice(0, 24).map((item) => item.id));
});
test("adds an older focused approval so a link to it lands on it", () => {
expect(decidedWindow(decided, "apr_27").map((item) => item.id)).toEqual([...decided.slice(0, 24).map((item) => item.id), "apr_27"]);
expect(decidedWindow(decided, "apr_3")).toHaveLength(24);
});
});