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:
1 parent
983d37937d
commit
766d4ab8cd
13 files changed
+188
-36
No files matched your search
@@ -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);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user