From 4e096bef108b935382556d50398e9ef4318d399f Mon Sep 17 00:00:00 2001 From: Dotta Date: Tue, 26 May 2026 13:17:17 +0000 Subject: [PATCH] Fix annotation document lock fixtures --- ui/src/components/IssueDocumentAnnotations.test.tsx | 3 +++ ui/storybook/stories/document-annotations.stories.tsx | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/ui/src/components/IssueDocumentAnnotations.test.tsx b/ui/src/components/IssueDocumentAnnotations.test.tsx index 8206956547c..140913b1341 100644 --- a/ui/src/components/IssueDocumentAnnotations.test.tsx +++ b/ui/src/components/IssueDocumentAnnotations.test.tsx @@ -134,6 +134,9 @@ function makeDoc(overrides: Partial = {}): IssueDocument { createdByUserId: "user-1", updatedByAgentId: null, updatedByUserId: "user-1", + lockedAt: null, + lockedByAgentId: null, + lockedByUserId: null, createdAt: new Date("2026-04-01T00:00:00Z"), updatedAt: new Date("2026-04-01T00:01:00Z"), ...overrides, diff --git a/ui/storybook/stories/document-annotations.stories.tsx b/ui/storybook/stories/document-annotations.stories.tsx index 7daa3185c9c..8b70ded6be9 100644 --- a/ui/storybook/stories/document-annotations.stories.tsx +++ b/ui/storybook/stories/document-annotations.stories.tsx @@ -216,6 +216,9 @@ const integratedDoc: IssueDocument = { createdByUserId: "user-1", updatedByAgentId: null, updatedByUserId: "user-1", + lockedAt: null, + lockedByAgentId: null, + lockedByUserId: null, createdAt: new Date("2026-05-12T09:00:00Z"), updatedAt: new Date("2026-05-12T10:01:00Z"), }; @@ -267,6 +270,9 @@ function makeIntegratedIssue(): Issue { createdByUserId: "user-1", updatedByAgentId: null, updatedByUserId: "user-1", + lockedAt: integratedDoc.lockedAt, + lockedByAgentId: integratedDoc.lockedByAgentId, + lockedByUserId: integratedDoc.lockedByUserId, createdAt: integratedDoc.createdAt, updatedAt: integratedDoc.updatedAt, },