Skip to content

Open-source status page, incident response and uptime monitoring

🐛 public monitors (#883)

Thibault Le Ouay22d0861582fd
diff --git a/apps/docs/guides/introduction.mdx b/apps/docs/guides/introduction.mdx
index c99b65dad..b5ad6da02 100644
--- a/apps/docs/guides/introduction.mdx
+++ b/apps/docs/guides/introduction.mdx
@@ -4,5 +4,5 @@ title: Introduction
Here's some content for the getting started with OpenStatus.
-- How to use OpenStatus to test latency in GitHub Actions
+- [How to use OpenStatus to test latency in GitHub Actions](/guides/test-latency-cf-workers-in-github-actions)
diff --git a/apps/web/src/app/play/checker/_components/checker-play.tsx b/apps/web/src/app/play/checker/_components/checker-play.tsx
index b65b19d92..a2d9b7e4f 100644
--- a/apps/web/src/app/play/checker/_components/checker-play.tsx
+++ b/apps/web/src/app/play/checker/_components/checker-play.tsx
@@ -7,7 +7,7 @@ export default async function CheckerPlay() {
<Shell className="flex flex-col gap-8">
<HeaderPlay
title="Is your endpoint fast?"
- description="Check the performance of your website, API from the different continents."
+ description="Test the performance of your website, API from the different continents."
/>
<div className="mx-auto grid w-full max-w-xl gap-6">
<CheckerForm />
diff --git a/apps/web/src/app/play/checker/page.tsx b/apps/web/src/app/play/checker/page.tsx
index 036ce90f1..c7d89746b 100644
--- a/apps/web/src/app/play/checker/page.tsx
+++ b/apps/web/src/app/play/checker/page.tsx
@@ -6,7 +6,12 @@ import CheckerPlay from "./_components/checker-play";
export const metadata: Metadata = {
title: "Speed Checker",
description:
- "Get speed insights for your api, website from multiple regions.",
+ "Test the performance your api, website from multiple regions. Get speed insights for free.",
+ openGraph: {
+ title: "Speed Checker",
+ description:
+ "Test the performance your api, website from multiple regions. Get speed insights for free.",
+ },
};
export default async function PlayPage() {
diff --git a/apps/web/src/app/public/monitors/[id]/page.tsx b/apps/web/src/app/public/monitors/[id]/page.tsx
index 5f5b593ac..f19560de8 100644
--- a/apps/web/src/app/public/monitors/[id]/page.tsx
+++ b/apps/web/src/app/public/monitors/[id]/page.tsx
@@ -46,7 +46,7 @@ const searchParamsSchema = z.object({
value
?.trim()
?.split(",")
- .filter((i) => flyRegions.includes(i as Region)) ?? flyRegions,
+ .filter((i) => flyRegions.includes(i as Region)) ?? []
),
});
@@ -119,7 +119,7 @@ export default async function Page({
period={period}
quantile={quantile}
interval={interval}
- regions={regions as Region[]} // FIXME: not properly reseted after filtered
+ regions={regions.length ? (regions as Region[]) : monitor.regions} // FIXME: not properly reseted after filtered
monitor={monitor}
isQuantileDisabled={isQuantileDisabled}
metricsByRegion={metricsByRegion}
diff --git a/apps/web/src/app/status-page/[domain]/monitors/[id]/page.tsx b/apps/web/src/app/status-page/[domain]/monitors/[id]/page.tsx
index 51efe289a..8deaccaef 100644
--- a/apps/web/src/app/status-page/[domain]/monitors/[id]/page.tsx
+++ b/apps/web/src/app/status-page/[domain]/monitors/[id]/page.tsx
@@ -46,7 +46,7 @@ const searchParamsSchema = z.object({
value
?.trim()
?.split(",")
- .filter((i) => flyRegions.includes(i as Region)) ?? flyRegions,
+ .filter((i) => flyRegions.includes(i as Region)) ?? []
),
});
@@ -72,6 +72,7 @@ export default async function Page({
const { period, quantile, interval, regions } = search.data;
+ console.log(regions.length);
// TODO: work it out easier
const intervalMinutes = getMinutesByInterval(interval);
const periodicityMinutes = getMinutesByInterval(monitor.periodicity);
@@ -112,7 +113,7 @@ export default async function Page({
period={period}
quantile={quantile}
interval={interval}
- regions={regions as Region[]} // FIXME: not properly reseted after filtered
+ regions={regions.length ? (regions as Region[]) : monitor.regions} // FIXME: not properly reseted after filtered
monitor={monitor}
isQuantileDisabled={isQuantileDisabled}
metricsByRegion={metricsByRegion}