mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-23 17:33:51 +02:00
Merge master and renumber GitHub App setup migration
This commit is contained in:
commit
cf48352c85
79 files changed
+5008
-227
No files matched your search
@@ -38,6 +38,7 @@ function createRun(overrides: Partial<HeartbeatRun> = {}): HeartbeatRun {
|
||||
id: "run-1",
|
||||
companyId: "company-1",
|
||||
agentId: "agent-1",
|
||||
issueId: null,
|
||||
responsibleUserId: null,
|
||||
invocationSource: "on_demand",
|
||||
triggerDetail: "manual",
|
||||
@@ -82,6 +83,7 @@ function createRun(overrides: Partial<HeartbeatRun> = {}): HeartbeatRun {
|
||||
createdAt: new Date("2026-04-20T11:58:00.000Z"),
|
||||
updatedAt: new Date("2026-04-20T11:59:00.000Z"),
|
||||
...overrides,
|
||||
scopeKind: overrides.scopeKind ?? "company",
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -508,7 +508,7 @@ describe("AI repair inside the card", () => {
|
||||
setupOptionsMock.mockResolvedValue({ interaction, existingConnections: [], aiConnection: binding, aiConnectionRequiresAdoption: true });
|
||||
if (fails) adoptMock.mockRejectedValue(new Error("Connection test failed"));
|
||||
else adoptMock.mockResolvedValue({ ...interaction, status: "accepted" });
|
||||
renderBody(interaction); await flush();
|
||||
renderBody(interaction);
|
||||
await waitForAssertion(() => expect(button("Connect OpenAI")).toBeDefined());
|
||||
await act(() => button("Connect OpenAI")!.click());
|
||||
await act(() => button("Reconnect selected account")!.click());
|
||||
|
||||
@@ -135,6 +135,8 @@ function makeRun(id: string, status: HeartbeatRun["status"], createdAt: string,
|
||||
id,
|
||||
companyId: "company-1",
|
||||
agentId,
|
||||
scopeKind: "company",
|
||||
issueId: null,
|
||||
responsibleUserId: "user-1",
|
||||
invocationSource: "assignment",
|
||||
triggerDetail: null,
|
||||
|
||||
@@ -287,6 +287,8 @@ function createApproval(overrides: Partial<Approval> = {}): Approval {
|
||||
function createFailedRun(overrides: Partial<HeartbeatRun> = {}): HeartbeatRun {
|
||||
return {
|
||||
id: "run-1",
|
||||
issueId: null,
|
||||
scopeKind: "company",
|
||||
companyId: "company-1",
|
||||
agentId: "agent-1",
|
||||
responsibleUserId: null,
|
||||
|
||||
Reference in new issue
Block a user