mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-20 17:02:18 +00:00
Complete Foundry refactor checklist
This commit is contained in:
parent
40bed3b0a1
commit
13fc9cb318
91 changed files with 5091 additions and 4108 deletions
|
|
@ -50,6 +50,20 @@ class FakeActorConn implements ActorConn {
|
|||
function organizationSnapshot(): OrganizationSummarySnapshot {
|
||||
return {
|
||||
organizationId: "org-1",
|
||||
github: {
|
||||
connectedAccount: "octocat",
|
||||
installationStatus: "connected",
|
||||
syncStatus: "synced",
|
||||
importedRepoCount: 1,
|
||||
lastSyncLabel: "Synced just now",
|
||||
lastSyncAt: 10,
|
||||
lastWebhookAt: null,
|
||||
lastWebhookEvent: "",
|
||||
syncGeneration: 1,
|
||||
syncPhase: null,
|
||||
processedRepositoryCount: 1,
|
||||
totalRepositoryCount: 1,
|
||||
},
|
||||
repos: [{ id: "repo-1", label: "repo-1", taskCount: 1, latestActivityMs: 10 }],
|
||||
taskSummaries: [
|
||||
{
|
||||
|
|
@ -61,10 +75,10 @@ function organizationSnapshot(): OrganizationSummarySnapshot {
|
|||
updatedAtMs: 10,
|
||||
branch: "main",
|
||||
pullRequest: null,
|
||||
activeSessionId: null,
|
||||
sessionsSummary: [],
|
||||
},
|
||||
],
|
||||
openPullRequests: [],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -118,6 +132,20 @@ describe("RemoteSubscriptionManager", () => {
|
|||
type: "organizationUpdated",
|
||||
snapshot: {
|
||||
organizationId: "org-1",
|
||||
github: {
|
||||
connectedAccount: "octocat",
|
||||
installationStatus: "connected",
|
||||
syncStatus: "syncing",
|
||||
importedRepoCount: 1,
|
||||
lastSyncLabel: "Syncing repositories...",
|
||||
lastSyncAt: 10,
|
||||
lastWebhookAt: null,
|
||||
lastWebhookEvent: "",
|
||||
syncGeneration: 2,
|
||||
syncPhase: "syncing_branches",
|
||||
processedRepositoryCount: 1,
|
||||
totalRepositoryCount: 3,
|
||||
},
|
||||
repos: [],
|
||||
taskSummaries: [
|
||||
{
|
||||
|
|
@ -129,10 +157,10 @@ describe("RemoteSubscriptionManager", () => {
|
|||
updatedAtMs: 20,
|
||||
branch: "feature/live",
|
||||
pullRequest: null,
|
||||
activeSessionId: null,
|
||||
sessionsSummary: [],
|
||||
},
|
||||
],
|
||||
openPullRequests: [],
|
||||
},
|
||||
} satisfies OrganizationEvent);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue