Add runtime issue clear action

This commit is contained in:
Nathan Flurry 2026-03-12 11:03:32 -07:00
parent ec8e816d0d
commit b224294b0e
11 changed files with 82 additions and 2 deletions

View file

@ -133,6 +133,7 @@ export interface MockFoundryAppClient {
selectOrganization(organizationId: string): Promise<void>;
updateOrganizationProfile(input: UpdateMockOrganizationProfileInput): Promise<void>;
triggerGithubSync(organizationId: string): Promise<void>;
clearOrganizationRuntimeIssues(organizationId: string, actorId?: string): Promise<void>;
completeHostedCheckout(organizationId: string, planId: MockBillingPlanId): Promise<void>;
openBillingPortal(organizationId: string): Promise<void>;
cancelScheduledRenewal(organizationId: string): Promise<void>;
@ -585,6 +586,21 @@ class MockFoundryAppStore implements MockFoundryAppClient {
this.importTimers.set(organizationId, timer);
}
async clearOrganizationRuntimeIssues(organizationId: string, actorId?: string): Promise<void> {
await this.injectAsyncLatency();
void actorId;
this.requireOrganization(organizationId);
this.updateOrganization(organizationId, (organization) => ({
...organization,
runtime: {
...organization.runtime,
status: "healthy",
errorCount: 0,
issues: [],
},
}));
}
async completeHostedCheckout(organizationId: string, planId: MockBillingPlanId): Promise<void> {
await this.injectAsyncLatency();
this.requireOrganization(organizationId);