Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/openstatus. ๐ซ Status page with uptime monitoring & API monitoring as code ๐ซ openstatus.dev
bun drizzle-orm monitoring monitoring-as-code nextjs observability on-call open-source shadcn-ui status-page statuspage synthetic-monitoring tinybird turso uptime uptime-checker uptime-monitor
Something went wrong. Try again.
TypeScript
at incident-api
1234567891011121314151617181920212223242526272829303132333435363738// Test double for src/routes/slack/page-urls.ts (which hits the db), swapped in// via --import-map so slack presenter tests get deterministic URLs.export const getPageUrl = (_pageId: number): Promise<string | null> => Promise.resolve("https://example.openstatus.dev");
export const getReportUrl = ( _pageId: number, reportId: number,): Promise<string | null> => Promise.resolve(`https://example.openstatus.dev/events/report/${reportId}`);
export const getPageDashboardLink = ( _workspaceId: number, pageId: number,): Promise<{ title: string; url: string } | null> => Promise.resolve({ title: `Page ${pageId}`, url: `https://app.openstatus.dev/status-pages/${pageId}`, });
export const getComponentNames = ( _workspaceId: number, ids: number[],): Promise<Map<number, string>> => Promise.resolve(new Map(ids.map((id) => [id, `Component ${id}`])));
export const getStatusReportLink = ( _workspaceId: number, statusReportId: number,): Promise<{ title: string; url: string | null } | null> => Promise.resolve({ title: `Report ${statusReportId}`, url: `https://example.openstatus.dev/events/report/${statusReportId}`, });
export const getIncidentDashboardUrl = (incidentId: number): string => `https://app.openstatus.dev/incidents/${incidentId}`;