Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
feat: landing (#1579)
Maximilian Kaskebfb38b88ddc7
diff --git a/apps/web/content-collections.ts b/apps/web/content-collections.tsdeleted file mode 100644index 8a8d67a4e..000000000--- a/apps/web/content-collections.ts+++ /dev/null@@ -1,162 +0,0 @@-import { defineCollection, defineConfig } from "@content-collections/core";-import { compileMDX } from "@content-collections/mdx";-import readingTime from "reading-time";-import rehypeAutolinkHeadings from "rehype-autolink-headings";-import rehypePrettyCode from "rehype-pretty-code";-import rehypeSlug from "rehype-slug";-import remarkGfm from "remark-gfm";--const autolinkHeadings = [- rehypeAutolinkHeadings,- {- behavior: "append",- headingProperties: {- className: "group",- },- properties: {- className: [- "no-underline group-hover:after:content-['#'] after:text-muted-foreground/30 hover:after:text-muted-foreground ml-1 after:p-1",- ],- "aria-hidden": "true",- },- },-];--const prettyCode = [- rehypePrettyCode,- {- theme: {- dark: "github-dark-dimmed",- light: "github-light",- },- grid: true,- keepBackground: false,- // biome-ignore lint/suspicious/noExplicitAny: <explanation>- onVisitLine(node: any) {- // Prevent lines from collapsing in `display: grid` mode, and- // allow empty lines to be copy/pasted- if (node.children.length === 0) {- node.children = [{ type: "text", value: " " }];- }- },- },-];--const posts = defineCollection({- name: "Posts",- directory: "src/content/posts",- include: "**/*.mdx",- schema: (z) => ({- title: z.string(),- description: z.string(),- image: z.string(),- publishedAt: z.coerce.date(),- author: z.object({- name: z.string(),- url: z.string().optional(),- avatar: z.string().optional(),- }),- tag: z.enum(["company", "engineering", "education", "guide"]),- }),- transform: async (document, context) => {- const mdx = await compileMDX(context, document, {- // @ts-expect-error- rehypePlugins: [rehypeSlug, prettyCode, autolinkHeadings],- remarkPlugins: [remarkGfm],- });- return {- ...document,- mdx,- slug: document._meta.fileName.replace(/\.mdx$/, ""),- readingTime: readingTime(document.content).text,- };- },-});--const legals = defineCollection({- name: "Legals",- directory: "src/content/legal",- include: "**/*.mdx",- schema: (z) => ({- title: z.string(),- updatedAt: z.string(),- }),- transform: async (document, context) => {- const mdx = await compileMDX(context, document, {- // @ts-expect-error- rehypePlugins: [rehypeSlug, prettyCode, autolinkHeadings],- });- return {- ...document,- mdx,- slug: document._meta.fileName.replace(/\.mdx$/, ""),- };- },-});--const faqs = defineCollection({- name: "FAQs",- directory: "src/content/faq",- include: "**/*.mdx",- schema: (z) => ({- title: z.string(),- order: z.number(),- }),- transform: async (document, context) => {- const mdx = await compileMDX(context, document, {- // @ts-expect-error- rehypePlugins: [rehypeSlug, prettyCode, autolinkHeadings],- });- return {- ...document,- mdx,- slug: document._meta.fileName.replace(/\.mdx$/, ""),- };- },-});--const changelogs = defineCollection({- name: "Changelogs",- directory: "src/content/changelog",- include: "**/*.mdx",- schema: (z) => ({- title: z.string(),- description: z.string(),- image: z.string(),- publishedAt: z.coerce.date(),- }),- transform: async (document, context) => {- const mdx = await compileMDX(context, document, {- // @ts-expect-error- rehypePlugins: [rehypeSlug, prettyCode, autolinkHeadings],- });- return {- ...document,- mdx,- slug: document._meta.fileName.replace(/\.mdx$/, ""),- readingTime: readingTime(document.content).text,- };- },-});--const unrelateds = defineCollection({- name: "Unrelateds",- directory: "src/content/unrelated",- include: "**/*.mdx",- schema: () => ({}),- transform: async (document, context) => {- const mdx = await compileMDX(context, document, {- // @ts-expect-error- rehypePlugins: [rehypeSlug, prettyCode, autolinkHeadings],- });- return {- ...document,- mdx,- slug: document._meta.fileName.replace(/\.mdx$/, ""),- };- },-});--export default defineConfig({- collections: [posts, legals, faqs, changelogs, unrelateds],-});diff --git a/apps/web/next.config.ts b/apps/web/next.config.tsindex 24e50d763..e8c20480f 100644--- a/apps/web/next.config.ts+++ b/apps/web/next.config.ts@@ -1,4 +1,3 @@-const { withContentCollections } = require("@content-collections/next");const { withSentryConfig } = require("@sentry/nextjs");import type { NextConfig } from "next";@@ -52,6 +51,16 @@ const nextConfig: NextConfig = {},async redirects() {return [+ {+ source: "/legal/terms",+ destination: "/terms",+ permanent: true,+ },+ {+ source: "/legal/privacy",+ destination: "/privacy",+ permanent: true,+ },{source: "/features/monitoring",destination: "/uptime-monitoring",@@ -213,7 +222,7 @@ const nextConfig: NextConfig = {};module.exports = withSentryConfig(- async () => await withContentCollections(nextConfig),+ nextConfig,{// For all available options, see:// https://github.com/getsentry/sentry-webpack-plugin#optionsdiff --git a/apps/web/package.json b/apps/web/package.jsonindex e9151d180..634bcea7d 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -68,6 +68,7 @@"nanoid": "5.0.7","next": "16.0.4","next-auth": "5.0.0-beta.29",+ "next-mdx-remote": "5.0.0","next-plausible": "3.12.4","next-themes": "0.4.6","nuqs": "2.4.3",@@ -76,28 +77,22 @@"react-day-picker": "8.10.1","react-dom": "19.2.0","react-hook-form": "7.66.1",+ "react-medium-image-zoom": "5.4.0","react-tweet": "3.2.1","reading-time": "1.5.0","recharts": "2.15.0",- "rehype-pretty-code": "0.10.0",- "rehype-react": "8.0.0",- "remark-gfm": "4.0.1",- "remark-parse": "11.0.0",- "remark-rehype": "11.1.2","resend": "4.0.1","schema-dts": "1.1.5","shiki": "0.14.4","sonner": "2.0.5","stripe": "13.8.0",+ "sugar-high": "0.9.5","superjson": "2.2.2","tailwind-merge": "3.3.1","tailwindcss-animate": "1.0.7","zod": "3.25.76"},"devDependencies": {- "@content-collections/core": "0.7.3",- "@content-collections/mdx": "0.2.0",- "@content-collections/next": "0.2.4","@openstatus/tsconfig": "workspace:*","@tailwindcss/postcss": "4.1.11","@types/node": "24.0.8",diff --git a/apps/web/public/assets/landing/dashboard-logs.dark.png b/apps/web/public/assets/landing/dashboard-logs.dark.pngnew file mode 100644index 000000000..13c837946Binary files /dev/null and b/apps/web/public/assets/landing/dashboard-logs.dark.png differdiff --git a/apps/web/public/assets/landing/dashboard-logs.png b/apps/web/public/assets/landing/dashboard-logs.pngnew file mode 100644index 000000000..12f2e66f6Binary files /dev/null and b/apps/web/public/assets/landing/dashboard-logs.png differdiff --git a/apps/web/public/assets/landing/dashboard.dark.png b/apps/web/public/assets/landing/dashboard.dark.pngnew file mode 100644index 000000000..3baad3407Binary files /dev/null and b/apps/web/public/assets/landing/dashboard.dark.png differdiff --git a/apps/web/public/assets/landing/dashboard.png b/apps/web/public/assets/landing/dashboard.pngnew file mode 100644index 000000000..2968fde01Binary files /dev/null and b/apps/web/public/assets/landing/dashboard.png differdiff --git a/apps/web/public/assets/landing/openstatus-logo.svg b/apps/web/public/assets/landing/openstatus-logo.svgnew file mode 100644index 000000000..ce96e0155--- /dev/null+++ b/apps/web/public/assets/landing/openstatus-logo.svg@@ -0,0 +1,17 @@+<svg width="330" height="330" viewBox="0 0 330 330" fill="none" xmlns="http://www.w3.org/2000/svg">+<g clip-path="url(#clip0_1543_179)">+<mask id="mask0_1543_179" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="330" height="330">+<circle cx="165" cy="165" r="165" fill="#D9D9D9"/>+</mask>+<g mask="url(#mask0_1543_179)">+<path d="M165 330C256.127 330 330 256.127 330 165C330 73.873 256.127 0 165 0C73.873 0 0 73.873 0 165C0 256.127 73.873 330 165 330Z" fill="black"/>+<path d="M330 96H122V111H330V96Z" fill="white"/>+<path d="M208 219H0V234H208V219Z" fill="white"/>+</g>+</g>+<defs>+<clipPath id="clip0_1543_179">+<rect width="330" height="330" fill="white"/>+</clipPath>+</defs>+</svg>diff --git a/apps/web/public/assets/landing/statuspage-events.dark.png b/apps/web/public/assets/landing/statuspage-events.dark.pngnew file mode 100644index 000000000..fbaf0edf2Binary files /dev/null and b/apps/web/public/assets/landing/statuspage-events.dark.png differdiff --git a/apps/web/public/assets/landing/statuspage-events.png b/apps/web/public/assets/landing/statuspage-events.pngnew file mode 100644index 000000000..cd06e3a4cBinary files /dev/null and b/apps/web/public/assets/landing/statuspage-events.png differdiff --git a/apps/web/public/assets/landing/statuspage-monitor.dark.png b/apps/web/public/assets/landing/statuspage-monitor.dark.pngnew file mode 100644index 000000000..70611f42eBinary files /dev/null and b/apps/web/public/assets/landing/statuspage-monitor.dark.png differdiff --git a/apps/web/public/assets/landing/statuspage-monitor.png b/apps/web/public/assets/landing/statuspage-monitor.pngnew file mode 100644index 000000000..ce68c5774Binary files /dev/null and b/apps/web/public/assets/landing/statuspage-monitor.png differdiff --git a/apps/web/public/assets/landing/statuspage.dark.png b/apps/web/public/assets/landing/statuspage.dark.pngnew file mode 100644index 000000000..e3d3ae501Binary files /dev/null and b/apps/web/public/assets/landing/statuspage.dark.png differdiff --git a/apps/web/public/assets/landing/statuspage.png b/apps/web/public/assets/landing/statuspage.pngnew file mode 100644index 000000000..ebdf75cacBinary files /dev/null and b/apps/web/public/assets/landing/statuspage.png differdiff --git a/apps/web/src/app/(landing)/(redirect)/bsky/page.tsx b/apps/web/src/app/(landing)/(redirect)/bsky/page.tsxnew file mode 100644index 000000000..5ae48643d--- /dev/null+++ b/apps/web/src/app/(landing)/(redirect)/bsky/page.tsx@@ -0,0 +1,5 @@+import { redirect } from "next/navigation";++export default function BlueskyRedirect() {+ return redirect("https://bsky.app/profile/openstatus.dev");+}diff --git a/apps/web/src/app/(pages)/(redirect)/cal/page.tsx b/apps/web/src/app/(landing)/(redirect)/cal/page.tsxsimilarity index 100%rename from apps/web/src/app/(pages)/(redirect)/cal/page.tsxrename to apps/web/src/app/(landing)/(redirect)/cal/page.tsxdiff --git a/apps/web/src/app/(pages)/(redirect)/discord/page.tsx b/apps/web/src/app/(landing)/(redirect)/discord/page.tsxsimilarity index 100%rename from apps/web/src/app/(pages)/(redirect)/discord/page.tsxrename to apps/web/src/app/(landing)/(redirect)/discord/page.tsxdiff --git a/apps/web/src/app/(pages)/(redirect)/docs/page.tsx b/apps/web/src/app/(landing)/(redirect)/docs/page.tsxsimilarity index 100%rename from apps/web/src/app/(pages)/(redirect)/docs/page.tsxrename to apps/web/src/app/(landing)/(redirect)/docs/page.tsxdiff --git a/apps/web/src/app/(pages)/(redirect)/github/page.tsx b/apps/web/src/app/(landing)/(redirect)/github/page.tsxsimilarity index 100%rename from apps/web/src/app/(pages)/(redirect)/github/page.tsxrename to apps/web/src/app/(landing)/(redirect)/github/page.tsxdiff --git a/apps/web/src/app/(pages)/(redirect)/linkedin/page.tsx b/apps/web/src/app/(landing)/(redirect)/linkedin/page.tsxsimilarity index 100%rename from apps/web/src/app/(pages)/(redirect)/linkedin/page.tsxrename to apps/web/src/app/(landing)/(redirect)/linkedin/page.tsxdiff --git a/apps/web/src/app/(pages)/(redirect)/schema.json/page.tsx b/apps/web/src/app/(landing)/(redirect)/schema.json/page.tsxsimilarity index 100%rename from apps/web/src/app/(pages)/(redirect)/schema.json/page.tsxrename to apps/web/src/app/(landing)/(redirect)/schema.json/page.tsxdiff --git a/apps/web/src/app/(pages)/(redirect)/twitter/page.tsx b/apps/web/src/app/(landing)/(redirect)/twitter/page.tsxsimilarity index 100%rename from apps/web/src/app/(pages)/(redirect)/twitter/page.tsxrename to apps/web/src/app/(landing)/(redirect)/twitter/page.tsxdiff --git a/apps/web/src/app/(pages)/(redirect)/youtube/page.tsx b/apps/web/src/app/(landing)/(redirect)/youtube/page.tsxsimilarity index 100%rename from apps/web/src/app/(pages)/(redirect)/youtube/page.tsxrename to apps/web/src/app/(landing)/(redirect)/youtube/page.tsxdiff --git a/apps/web/src/app/(landing)/[slug]/page.tsx b/apps/web/src/app/(landing)/[slug]/page.tsxnew file mode 100644index 000000000..1aaa6ba02--- /dev/null+++ b/apps/web/src/app/(landing)/[slug]/page.tsx@@ -0,0 +1,60 @@+import { getJsonLDWebPage, getPageMetadata } from "@/app/shared-metadata";+import { CustomMDX } from "@/content/mdx";+import { getMainPages } from "@/content/utils";+import type { Metadata } from "next";+import { notFound } from "next/navigation";+import type { WebPage, WithContext } from "schema-dts";++export async function generateMetadata({+ params,+}: {+ params: Promise<{ slug: string }>;+}): Promise<Metadata | undefined> {+ const { slug } = await params;+ const page = getMainPages().find((page) => page.slug === slug);+ if (!page) {+ return;+ }++ const metadata = getPageMetadata(page);++ return metadata;+}++export async function generateStaticParams() {+ const pages = getMainPages();++ return pages.map((page) => ({+ slug: page.slug,+ }));+}++export default async function Page({+ params,+}: {+ params: Promise<{ slug: string }>;+}) {+ const { slug } = await params;+ const page = getMainPages().find((page) => page.slug === slug);++ if (!page) {+ notFound();+ }++ const jsonLDWebPage: WithContext<WebPage> = getJsonLDWebPage(page);++ return (+ <section className="prose dark:prose-invert max-w-none">+ <script+ type="application/ld+json"+ // biome-ignore lint/security/noDangerouslySetInnerHtml: jsonLd+ dangerouslySetInnerHTML={{+ __html: JSON.stringify(jsonLDWebPage).replace(/</g, "\\u003c"),+ }}+ />+ <h1>{page.metadata.title}</h1>+ <p className="text-lg">{page.metadata.description}</p>+ <CustomMDX source={page.content} />+ </section>+ );+}diff --git a/apps/web/src/app/(landing)/blog/[slug]/page.tsx b/apps/web/src/app/(landing)/blog/[slug]/page.tsxnew file mode 100644index 000000000..059b5fde3--- /dev/null+++ b/apps/web/src/app/(landing)/blog/[slug]/page.tsx@@ -0,0 +1,107 @@+import { getJsonLDBlogPosting, getPageMetadata } from "@/app/shared-metadata";+import { CustomMDX } from "@/content/mdx";+import { formatDate, getBlogPosts } from "@/content/utils";+import { getAuthor } from "@/data/author";+import type { Metadata } from "next";+import Image from "next/image";+import { notFound } from "next/navigation";+import type { BlogPosting, WithContext } from "schema-dts";+import { ContentPagination } from "../../content-pagination";++export async function generateStaticParams() {+ const posts = getBlogPosts();++ return posts.map((post) => ({+ slug: post.slug,+ }));+}++export async function generateMetadata({+ params,+}: {+ params: Promise<{ slug: string }>;+}): Promise<Metadata | undefined> {+ const { slug } = await params;+ const post = getBlogPosts().find((post) => post.slug === slug);+ if (!post) {+ return;+ }++ const metadata = getPageMetadata(post);++ return metadata;+}++export default async function Blog({+ params,+}: {+ params: Promise<{ slug: string }>;+}) {+ const { slug } = await params;+ const posts = getBlogPosts().sort(+ (a, b) =>+ b.metadata.publishedAt.getTime() - a.metadata.publishedAt.getTime(),+ );+ const postIndex = posts.findIndex((post) => post.slug === slug);+ const post = posts[postIndex];+ const previousPost = posts[postIndex - 1];+ const nextPost = posts[postIndex + 1];++ if (!post) {+ notFound();+ }++ const jsonLDBlog: WithContext<BlogPosting> = getJsonLDBlogPosting(post);++ return (+ <section className="prose dark:prose-invert max-w-none">+ <script+ type="application/ld+json"+ suppressHydrationWarning+ // biome-ignore lint/security/noDangerouslySetInnerHtml: <explanation>+ dangerouslySetInnerHTML={{+ __html: JSON.stringify(jsonLDBlog).replace(/</g, "\\u003c"),+ }}+ />+ <h1>{post.metadata.title}</h1>+ <p className="flex items-center gap-2.5 divide-x divide-border text-muted-foreground">+ {formatDate(post.metadata.publishedAt)} | by{" "}+ <Author author={post.metadata.author} /> | [{post.metadata.category}]+ </p>+ {post.metadata.image ? (+ <div className="relative aspect-video w-full overflow-hidden border border-border">+ <Image+ src={post.metadata.image}+ alt={post.metadata.title}+ fill+ className="object-contain"+ />+ </div>+ ) : null}+ <CustomMDX source={post.content} />+ <ContentPagination+ previousPost={previousPost}+ nextPost={nextPost}+ prefix="/blog"+ />+ </section>+ );+}++function Author({ author }: { author: string }) {+ const authorData = getAuthor(author);+ if (typeof authorData === "string") {+ return author;+ }++ return (+ <a+ href={authorData.url}+ target="_blank"+ rel="noopener noreferrer"+ className="no-underline!"+ >+ {authorData.name}+ </a>+ );+}diff --git a/apps/web/src/app/(landing)/blog/category/[slug]/page.tsx b/apps/web/src/app/(landing)/blog/category/[slug]/page.tsxnew file mode 100644index 000000000..2a37a7855--- /dev/null+++ b/apps/web/src/app/(landing)/blog/category/[slug]/page.tsx@@ -0,0 +1,60 @@+import { ContentCategory } from "@/app/(landing)/content-category";+import { ContentList } from "@/app/(landing)/content-list";+import {+ defaultMetadata,+ ogMetadata,+ twitterMetadata,+} from "@/app/shared-metadata";+import { getBlogPosts } from "@/content/utils";+import type { Metadata } from "next";++const TITLE = "Blog Category";+const DESCRIPTION = "All the latest articles and news from OpenStatus.";++export const metadata: Metadata = {+ ...defaultMetadata,+ title: TITLE,+ description: DESCRIPTION,+ openGraph: {+ ...ogMetadata,+ title: TITLE,+ description: DESCRIPTION,+ },+ twitter: {+ ...twitterMetadata,+ title: TITLE,+ description: DESCRIPTION,+ images: [`/api/og?title=${TITLE}&description=${DESCRIPTION}`],+ },+};++export async function generateStaticParams() {+ const posts = getBlogPosts();+ const categories = [...new Set(posts.map((post) => post.metadata.category))];++ console.log(categories);++ return categories.map((category) => ({+ slug: category.toLowerCase(),+ }));+}++export default async function BlogCategoryPage({+ params,+}: {+ params: Promise<{ slug: string }>;+}) {+ const { slug } = await params;+ const allBlogs = getBlogPosts();+ const filteredBlogs = allBlogs.filter(+ (post) => post.metadata.category.toLowerCase() === slug.toLowerCase(),+ );++ return (+ <div className="prose dark:prose-invert max-w-none">+ <h1 className="capitalize">Blog | {slug}</h1>+ <ContentCategory data={allBlogs} prefix="/blog" />+ <ContentList data={filteredBlogs} prefix="/blog" />+ </div>+ );+}diff --git a/apps/web/src/app/(pages)/(content)/blog/feed.xml/route.ts b/apps/web/src/app/(landing)/blog/feed.xml/route.tssimilarity index 61%rename from apps/web/src/app/(pages)/(content)/blog/feed.xml/route.tsrename to apps/web/src/app/(landing)/blog/feed.xml/route.tsindex 096075657..4c654b14a 100644--- a/apps/web/src/app/(pages)/(content)/blog/feed.xml/route.ts+++ b/apps/web/src/app/(landing)/blog/feed.xml/route.ts@@ -1,5 +1,6 @@-import { allPosts } from "content-collections";+import { getBlogPosts } from "@/content/utils";import { Feed } from "feed";+import { getAuthor } from "src/data/author";export async function GET() {const feed = new Feed({@@ -22,24 +23,30 @@ export async function GET() {ttl: 60,});+ const allPosts = getBlogPosts();+allPosts.sort((a, b) =>- new Date(b.publishedAt).getTime() - new Date(a.publishedAt).getTime(),+ new Date(b.metadata.publishedAt).getTime() -+ new Date(a.metadata.publishedAt).getTime(),).map((post) => {- feed.addItem({+ const author = getAuthor(post.metadata.author);+ return feed.addItem({id: `https://www.openstatus.dev/blog/${post.slug}`,- title: post.title,- description: post.description,+ title: post.metadata.title,+ description: post.metadata.description,link: `https://www.openstatus.dev/blog/${post.slug}`,author: [- {- name: post.author.name,- link: post.author.url,- },+ typeof author === "string"+ ? { name: author }+ : {+ name: author.name,+ link: author.url,+ },],- date: post.publishedAt,+ date: post.metadata.publishedAt,});});return new Response(feed.rss2(), {diff --git a/apps/web/src/app/(landing)/blog/page.tsx b/apps/web/src/app/(landing)/blog/page.tsxnew file mode 100644index 000000000..8050e1268--- /dev/null+++ b/apps/web/src/app/(landing)/blog/page.tsx@@ -0,0 +1,44 @@+import { defaultMetadata, ogMetadata } from "@/app/shared-metadata";+import { twitterMetadata } from "@/app/shared-metadata";+import { getBlogPosts } from "@/content/utils";+import type { Metadata } from "next";+import Link from "next/link";+import { ContentCategory } from "../content-category";+import { ContentList } from "../content-list";++const TITLE = "Blog";+const DESCRIPTION = "All the latest articles and news from OpenStatus.";++export const metadata: Metadata = {+ ...defaultMetadata,+ title: TITLE,+ description: DESCRIPTION,+ openGraph: {+ ...ogMetadata,+ title: TITLE,+ description: DESCRIPTION,+ },+ twitter: {+ ...twitterMetadata,+ title: TITLE,+ description: DESCRIPTION,+ images: [`/api/og?title=${TITLE}&description=${DESCRIPTION}`],+ },+};++export default function BlogListPage() {+ const allBlogs = getBlogPosts();+ return (+ <div className="prose dark:prose-invert max-w-none">+ <h1>Blog</h1>+ <ContentCategory data={allBlogs} prefix="/blog" />+ <p>+ Get the{" "}+ <Link href="https://www.openstatus.dev/blog/feed.xml" target="_blank">+ RSS feed+ </Link>+ </p>+ <ContentList data={allBlogs} prefix="/blog" withCategory />+ </div>+ );+}diff --git a/apps/web/src/app/(landing)/changelog/[slug]/page.tsx b/apps/web/src/app/(landing)/changelog/[slug]/page.tsxnew file mode 100644index 000000000..ad1cebbbf--- /dev/null+++ b/apps/web/src/app/(landing)/changelog/[slug]/page.tsx@@ -0,0 +1,106 @@+import { getPageMetadata } from "@/app/shared-metadata";+import { CustomMDX } from "@/content/mdx";+import { formatDate, getChangelogPosts } from "@/content/utils";+import type { Metadata } from "next";+import Image from "next/image";+import { notFound } from "next/navigation";+import { ContentPagination } from "../../content-pagination";++const baseUrl = "http://localhost:3000";++export async function generateStaticParams() {+ const posts = getChangelogPosts();++ return posts.map((post) => ({+ slug: post.slug,+ }));+}++export async function generateMetadata({+ params,+}: {+ params: Promise<{ slug: string }>;+}): Promise<Metadata | undefined> {+ const { slug } = await params;+ const post = getChangelogPosts().find((post) => post.slug === slug);+ if (!post) {+ return;+ }++ const metadata = getPageMetadata(post);++ return metadata;+}++export default async function Changelog({+ params,+}: {+ params: Promise<{ slug: string }>;+}) {+ const { slug } = await params;+ const posts = getChangelogPosts().sort(+ (a, b) =>+ b.metadata.publishedAt.getTime() - a.metadata.publishedAt.getTime(),+ );+ const postIndex = posts.findIndex((post) => post.slug === slug);+ const post = posts[postIndex];+ const previousPost = posts[postIndex - 1];+ const nextPost = posts[postIndex + 1];++ if (!post) {+ notFound();+ }++ return (+ <section className="prose dark:prose-invert max-w-none">+ <script+ type="application/ld+json"+ suppressHydrationWarning+ // biome-ignore lint/security/noDangerouslySetInnerHtml: <explanation>+ dangerouslySetInnerHTML={{+ __html: JSON.stringify({+ "@context": "https://schema.org",+ "@type": "BlogPosting",+ headline: post.metadata.title,+ datePublished: post.metadata.publishedAt,+ dateModified: post.metadata.publishedAt,+ description: post.metadata.description,+ image: post.metadata.image+ ? `${baseUrl}${post.metadata.image}`+ : `/api/og?title=${encodeURIComponent(+ post.metadata.title,+ )}&description=${encodeURIComponent(+ post.metadata.description,+ )}&category=${encodeURIComponent(post.metadata.category)}`,+ url: `${baseUrl}/changelog/${post.slug}`,+ author: {+ "@type": "Person",+ name: post.metadata.author,+ },+ }),+ }}+ />+ <h1>{post.metadata.title}</h1>+ <p className="flex items-center gap-2.5 divide-x divide-border text-muted-foreground">+ {formatDate(post.metadata.publishedAt)} | by {post.metadata.author} | [+ {post.metadata.category}]+ </p>+ {post.metadata.image ? (+ <div className="relative aspect-video w-full overflow-hidden border border-border">+ <Image+ src={post.metadata.image}+ alt={post.metadata.title}+ fill+ className="object-contain"+ />+ </div>+ ) : null}+ <CustomMDX source={post.content} />+ <ContentPagination+ previousPost={previousPost}+ nextPost={nextPost}+ prefix="/changelog"+ />+ </section>+ );+}diff --git a/apps/web/src/app/(landing)/changelog/category/[slug]/page.tsx b/apps/web/src/app/(landing)/changelog/category/[slug]/page.tsxnew file mode 100644index 000000000..f684a4d9b--- /dev/null+++ b/apps/web/src/app/(landing)/changelog/category/[slug]/page.tsx@@ -0,0 +1,61 @@+import { ContentCategory } from "@/app/(landing)/content-category";+import { ContentList } from "@/app/(landing)/content-list";+import {+ defaultMetadata,+ ogMetadata,+ twitterMetadata,+} from "@/app/shared-metadata";+import { getBlogPosts, getChangelogPosts } from "@/content/utils";+import type { Metadata } from "next";++const TITLE = "Changelog Category";+const DESCRIPTION = "All the latest changes and updates to OpenStatus.";++export const metadata: Metadata = {+ ...defaultMetadata,+ title: TITLE,+ description: DESCRIPTION,+ openGraph: {+ ...ogMetadata,+ title: TITLE,+ description: DESCRIPTION,+ },+ twitter: {+ ...twitterMetadata,+ title: TITLE,+ description: DESCRIPTION,+ images: [`/api/og?title=${TITLE}&description=${DESCRIPTION}`],+ },+};++export async function generateStaticParams() {+ const posts = getBlogPosts();+ const categories = [...new Set(posts.map((post) => post.metadata.category))];++ console.log(categories);++ return categories.map((category) => ({+ slug: category.toLowerCase(),+ }));+}++export default async function ChangelogCategoryPage({+ params,+}: {+ params: Promise<{ slug: string }>;+}) {+ const { slug } = await params;+ const allChangelogs = getChangelogPosts();+ const filteredChangelogs = allChangelogs.filter(+ (changelog) =>+ changelog.metadata.category.toLowerCase() === slug.toLowerCase(),+ );++ return (+ <div className="prose dark:prose-invert max-w-none">+ <h1 className="capitalize">Changelog | {slug}</h1>+ <ContentCategory data={allChangelogs} prefix="/changelog" />+ <ContentList data={filteredChangelogs} prefix="/changelog" />+ </div>+ );+}diff --git a/apps/web/src/app/(pages)/(content)/changelog/feed.xml/route.ts b/apps/web/src/app/(landing)/changelog/feed.xml/route.tssimilarity index 54%rename from apps/web/src/app/(pages)/(content)/changelog/feed.xml/route.tsrename to apps/web/src/app/(landing)/changelog/feed.xml/route.tsindex 32e32861d..4006b68a8 100644--- a/apps/web/src/app/(pages)/(content)/changelog/feed.xml/route.ts+++ b/apps/web/src/app/(landing)/changelog/feed.xml/route.ts@@ -1,5 +1,6 @@-import { allChangelogs } from "content-collections";+import { getChangelogPosts } from "@/content/utils";import { Feed } from "feed";+import { getAuthor } from "src/data/author";export async function GET() {const feed = new Feed({@@ -22,25 +23,30 @@ export async function GET() {ttl: 60,});+ const allChangelogs = getChangelogPosts();+allChangelogs.sort((a, b) =>- new Date(b.publishedAt).getTime() - new Date(a.publishedAt).getTime(),+ new Date(b.metadata.publishedAt).getTime() -+ new Date(a.metadata.publishedAt).getTime(),).map((post) => {- feed.addItem({- id: `https://www.openstatus.dev/changelog/${post.slug}`,- title: post.title,- description: post.description,- link: `https://www.openstatus.dev/changelog/${post.slug}`,+ const author = getAuthor(post.metadata.author);+ return feed.addItem({+ id: `https://www.openstatus.dev/blog/${post.slug}`,+ title: post.metadata.title,+ description: post.metadata.description,+ link: `https://www.openstatus.dev/blog/${post.slug}`,author: [- {- name: "OpenStatus Team",- email: "[email protected]",- link: "https://openstatus.dev",- },+ typeof author === "string"+ ? { name: author }+ : {+ name: author.name,+ link: author.url,+ },],- date: post.publishedAt,+ date: post.metadata.publishedAt,});});return new Response(feed.rss2(), {diff --git a/apps/web/src/app/(landing)/changelog/page.tsx b/apps/web/src/app/(landing)/changelog/page.tsxnew file mode 100644index 000000000..730197f32--- /dev/null+++ b/apps/web/src/app/(landing)/changelog/page.tsx@@ -0,0 +1,47 @@+import { defaultMetadata, ogMetadata } from "@/app/shared-metadata";+import { twitterMetadata } from "@/app/shared-metadata";+import { getChangelogPosts } from "@/content/utils";+import type { Metadata } from "next";+import Link from "next/link";+import { ContentCategory } from "../content-category";+import { ContentList } from "../content-list";++const TITLE = "Changelog";+const DESCRIPTION = "All the latest changes and updates to OpenStatus.";++export const metadata: Metadata = {+ ...defaultMetadata,+ title: TITLE,+ description: DESCRIPTION,+ openGraph: {+ ...ogMetadata,+ title: TITLE,+ description: DESCRIPTION,+ },+ twitter: {+ ...twitterMetadata,+ title: TITLE,+ description: DESCRIPTION,+ images: [`/api/og?title=${TITLE}&description=${DESCRIPTION}`],+ },+};++export default function ChangelogListPage() {+ const allChangelogs = getChangelogPosts();+ return (+ <div className="prose dark:prose-invert max-w-none">+ <h1>Changelog</h1>+ <ContentCategory data={allChangelogs} prefix="/changelog" />+ <p>+ Get the{" "}+ <Link+ href="https://www.openstatus.dev/changelog/feed.xml"+ target="_blank"+ >+ RSS feed+ </Link>+ </p>+ <ContentList data={allChangelogs} prefix="/changelog" withCategory />+ </div>+ );+}diff --git a/apps/web/src/app/(landing)/compare/[slug]/page.tsx b/apps/web/src/app/(landing)/compare/[slug]/page.tsxnew file mode 100644index 000000000..89decf88c--- /dev/null+++ b/apps/web/src/app/(landing)/compare/[slug]/page.tsx@@ -0,0 +1,51 @@+import { getPageMetadata } from "@/app/shared-metadata";+import { CustomMDX } from "@/content/mdx";+import { getComparePages } from "@/content/utils";+import type { Metadata } from "next";+import { notFound } from "next/navigation";++export async function generateMetadata({+ params,+}: {+ params: Promise<{ slug: string }>;+}): Promise<Metadata | undefined> {+ const { slug } = await params;+ const post = getComparePages().find((post) => post.slug === slug);++ if (!post) {+ return;+ }++ const metadata = getPageMetadata(post);++ return metadata;+}++export async function generateStaticParams() {+ const posts = getComparePages();++ return posts.map((post) => ({+ slug: post.slug,+ }));+}++export default async function Blog({+ params,+}: {+ params: Promise<{ slug: string }>;+}) {+ const { slug } = await params;+ const post = getComparePages().find((post) => post.slug === slug);++ if (!post) {+ notFound();+ }++ return (+ <section className="prose dark:prose-invert max-w-none">+ <h1>{post.metadata.title}</h1>+ <p className="text-lg">{post.metadata.description}</p>+ <CustomMDX source={post.content} />+ </section>+ );+}diff --git a/apps/web/src/app/(landing)/compare/page.tsx b/apps/web/src/app/(landing)/compare/page.tsxnew file mode 100644index 000000000..0719e8cb4--- /dev/null+++ b/apps/web/src/app/(landing)/compare/page.tsx@@ -0,0 +1,53 @@+import {+ defaultMetadata,+ ogMetadata,+ twitterMetadata,+} from "@/app/shared-metadata";+import { components } from "@/content/mdx";+import { getComparePages } from "@/content/utils";+import type { Metadata } from "next";+import {+ ContentBoxDescription,+ ContentBoxLink,+ ContentBoxTitle,+ ContentBoxUrl,+} from "../content-box";++const TITLE = "Compare Alternatives";+const DESCRIPTION = "Compare OpenStatus with other tools.";++export const metadata: Metadata = {+ ...defaultMetadata,+ title: TITLE,+ description: DESCRIPTION,+ openGraph: {+ ...ogMetadata,+ title: TITLE,+ description: DESCRIPTION,+ },+ twitter: {+ ...twitterMetadata,+ title: TITLE,+ description: DESCRIPTION,+ images: [`/api/og?title=${TITLE}&description=${DESCRIPTION}`],+ },+};++export default function Page() {+ return (+ <section className="prose dark:prose-invert max-w-none">+ <h1>Compare openstatus with uptime and status page solutions</h1>+ <components.Grid cols={2}>+ {getComparePages().map((page) => (+ <ContentBoxLink key={page.slug} href={`/compare/${page.slug}`}>+ <ContentBoxTitle>{page.metadata.title}</ContentBoxTitle>+ <ContentBoxDescription>+ {page.metadata.description}+ </ContentBoxDescription>+ <ContentBoxUrl url="Read more" />+ </ContentBoxLink>+ ))}+ </components.Grid>+ </section>+ );+}diff --git a/apps/web/src/app/(landing)/content-box.tsx b/apps/web/src/app/(landing)/content-box.tsxnew file mode 100644index 000000000..f590d713c--- /dev/null+++ b/apps/web/src/app/(landing)/content-box.tsx@@ -0,0 +1,74 @@+import { cn } from "@/lib/utils";+import Link from "next/link";+import type React from "react";++export function ContentBoxLink({+ href,+ children,+ className,+ target,+ rel,+ ...props+}: React.ComponentProps<typeof Link>) {+ const hrefString = typeof href === "string" ? href : href.toString();+ const isExternal = hrefString.startsWith("http");++ return (+ <Link+ href={href}+ target={target ?? (isExternal ? "_blank" : undefined)}+ rel={rel ?? (isExternal ? "noopener noreferrer" : undefined)}+ className={cn("group no-underline! hover:bg-muted", className)}+ {...props}+ >+ {children}+ </Link>+ );+}++export function ContentBoxTitle({+ children,+ className,+ ...props+}: React.ComponentProps<"p">) {+ return (+ <p className={cn(className)} {...props}>+ <strong>{children}</strong>+ </p>+ );+}++export function ContentBoxDescription({+ children,+ className,+ ...props+}: React.ComponentProps<"p">) {+ return (+ <p className={cn("text-muted-foreground", className)} {...props}>+ {children}+ </p>+ );+}++export function ContentBoxUrl({+ url,+ className,+ ...props+}: {+ url: string;+ className?: string;+} & Omit<React.ComponentProps<"div">, "children">) {+ const displayUrl = url.replace(/^https:\/\/(www\.)?/, "");++ return (+ <div+ className={cn(+ "underline decoration-2 decoration-muted-foreground/50 underline-offset-2 transition-all group-hover:decoration-muted-foreground",+ className,+ )}+ {...props}+ >+ {displayUrl}+ </div>+ );+}diff --git a/apps/web/src/app/(landing)/content-category.tsx b/apps/web/src/app/(landing)/content-category.tsxnew file mode 100644index 000000000..e3c290682--- /dev/null+++ b/apps/web/src/app/(landing)/content-category.tsx@@ -0,0 +1,30 @@+import type { MDXData } from "@/content/utils";+import Link from "next/link";+import { Fragment } from "react";++export function ContentCategory({+ data,+ prefix,+}: {+ data: MDXData[];+ prefix: string;+}) {+ const categories = [...new Set(data.map((page) => page.metadata.category))];+ return (+ <p>+ <Link href={prefix}>All</Link>+ <span className="text-muted-foreground">{" | "}</span>+ {categories.map((category, index) => (+ <Fragment key={category}>+ <Link+ href={`${prefix}/category/${category.toLowerCase()}`}+ className="capitalize"+ >+ {category}+ </Link>+ {index < categories.length - 1 ? <span>{" | "}</span> : null}+ </Fragment>+ ))}+ </p>+ );+}diff --git a/apps/web/src/app/(landing)/content-list.tsx b/apps/web/src/app/(landing)/content-list.tsxnew file mode 100644index 000000000..33ae5656b--- /dev/null+++ b/apps/web/src/app/(landing)/content-list.tsx@@ -0,0 +1,137 @@+import { type MDXData, formatDate } from "@/content/utils";+import { cn } from "@/lib/utils";+import Link from "next/link";++export function ContentList({+ data,+ prefix,+ withCategory = false,+}: {+ data: MDXData[];+ prefix: string;+ withCategory?: boolean;+}) {+ return (+ <ContentListContainer>+ {data+ .sort((a, b) => {+ if (+ new Date(a.metadata.publishedAt) > new Date(b.metadata.publishedAt)+ ) {+ return -1;+ }+ return 1;+ })+ .map((post) => (+ <ContentListLink key={post.slug} href={`${prefix}/${post.slug}`}>+ <ContentListItem>+ <ContentListItemDate>+ {formatDate(post.metadata.publishedAt, false)}+ </ContentListItemDate>+ <ContentListItemTitle>{post.metadata.title}</ContentListItemTitle>+ {withCategory ? (+ <span className="text-muted-foreground">+ [{post.metadata.category}]+ </span>+ ) : null}+ </ContentListItem>+ </ContentListLink>+ ))}+ </ContentListContainer>+ );+}++export function ContentListContainer({+ children,+ className,+ ...props+}: React.ComponentProps<"section">) {+ return (+ <section+ className={cn("prose dark:prose-invert max-w-none", className)}+ {...props}+ >+ <div>{children}</div>+ </section>+ );+}++export function ContentListItem({+ children,+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <div+ className={cn(+ "flex w-full flex-col space-x-0 md:flex-row md:space-x-2",+ className,+ )}+ {...props}+ >+ {children}+ </div>+ );+}++export function ContentListLink({+ href,+ children,+ className,+ ...props+}: React.ComponentProps<typeof Link>) {+ return (+ <Link+ href={href}+ className={cn("no-underline! flex flex-col hover:bg-muted", className)}+ {...props}+ >+ {children}+ </Link>+ );+}++export function ContentListItemTitle({+ children,+ className,+ ...props+}: React.ComponentProps<"span">) {+ return (+ <span+ className={cn("truncate text-foreground tracking-tight", className)}+ {...props}+ >+ {children}+ </span>+ );+}++export function ContentListItemDescription({+ children,+ className,+ ...props+}: React.ComponentProps<"span">) {+ return (+ <span className={cn("text-muted-foreground", className)} {...props}>+ {children}+ </span>+ );+}++export function ContentListItemDate({+ children,+ className,+ ...props+}: React.ComponentProps<"span">) {+ return (+ <span+ className={cn(+ "text-nowrap text-muted-foreground tabular-nums",+ className,+ )}+ {...props}+ >+ {children}+ </span>+ );+}diff --git a/apps/web/src/app/(landing)/content-pagination.tsx b/apps/web/src/app/(landing)/content-pagination.tsxnew file mode 100644index 000000000..20896ac12--- /dev/null+++ b/apps/web/src/app/(landing)/content-pagination.tsx@@ -0,0 +1,37 @@+import { Link } from "@/content/link";+import type { MDXData } from "@/content/utils";++export function ContentPagination({+ previousPost,+ nextPost,+ prefix,+}: {+ previousPost?: MDXData;+ nextPost?: MDXData;+ prefix: string;+}) {+ return (+ <div className="flex items-center justify-between gap-8">+ <p className="flex-1 truncate">+ {previousPost ? (+ <Link+ href={`${prefix}/${previousPost.slug}`}+ className="max-w-40 truncate"+ >+ {previousPost.metadata.title}+ </Link>+ ) : null}+ </p>+ <p className="flex-1 truncate text-right">+ {nextPost ? (+ <Link+ href={`${prefix}/${nextPost.slug}`}+ className="max-w-40 truncate"+ >+ {nextPost.metadata.title}+ </Link>+ ) : null}+ </p>+ </div>+ );+}diff --git a/apps/web/src/app/(landing)/layout.tsx b/apps/web/src/app/(landing)/layout.tsxnew file mode 100644index 000000000..92e38a436--- /dev/null+++ b/apps/web/src/app/(landing)/layout.tsx@@ -0,0 +1,39 @@+import { ThemeProvider } from "@/components/theme-provider";+import { Toaster } from "@/components/ui/sonner";+import { Footer } from "@/content/footer";+import { Header } from "@/content/header";+import { SubNav } from "@/content/sub-nav";++export default function Layout({ children }: { children: React.ReactNode }) {+ return (+ <ThemeProvider attribute="class" defaultTheme="light" enableSystem>+ <div className="mx-auto flex min-h-screen max-w-5xl flex-col gap-4 font-mono">+ <Header />+ <SubNav />+ <main className="flex-1 px-4 py-4">{children}</main>+ <Footer />+ </div>+ <Toaster+ toastOptions={{+ classNames: {+ toast:+ "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg rounded-none!",+ description: "group-[.toast]:text-muted-foreground",+ actionButton:+ "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground rounded-none!",+ cancelButton:+ "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground",+ closeButton: "group-[.toast]:text-muted-foreground",+ },+ }}+ icons={{+ success: null,+ error: null,+ warning: null,+ info: null,+ loading: null,+ }}+ />+ </ThemeProvider>+ );+}diff --git a/apps/web/src/app/(landing)/oss-friends/page.tsx b/apps/web/src/app/(landing)/oss-friends/page.tsxnew file mode 100644index 000000000..6ad5b2aa4--- /dev/null+++ b/apps/web/src/app/(landing)/oss-friends/page.tsx@@ -0,0 +1,60 @@+import {+ defaultMetadata,+ ogMetadata,+ twitterMetadata,+} from "@/app/shared-metadata";+import { components } from "@/content/mdx";+import type { Metadata } from "next";+import { z } from "zod";+import {+ ContentBoxDescription,+ ContentBoxLink,+ ContentBoxTitle,+ ContentBoxUrl,+} from "../content-box";++const TITLE = "OSS Friends";+const DESCRIPTION = "List of all our awesome open source friends.";++export const metadata: Metadata = {+ ...defaultMetadata,+ title: TITLE,+ description: DESCRIPTION,+ openGraph: {+ ...ogMetadata,+ title: TITLE,+ description: DESCRIPTION,+ },+ twitter: {+ ...twitterMetadata,+ title: TITLE,+ description: DESCRIPTION,+ images: [`/api/og?title=${TITLE}&description=${DESCRIPTION}`],+ },+};++const OSSFriendSchema = z.object({+ href: z.string(),+ name: z.string(),+ description: z.string(),+});++export default async function Page() {+ const res = await fetch("https://formbricks.com/api/oss-friends");+ const data = await res.json();+ const openSourceFriends = z.array(OSSFriendSchema).parse(data.data);+ return (+ <section className="prose dark:prose-invert max-w-none">+ <h1>OSS Friends</h1>+ <components.Grid cols={2}>+ {openSourceFriends.map((friend) => (+ <ContentBoxLink key={friend.href} href={friend.href}>+ <ContentBoxTitle>{friend.name}</ContentBoxTitle>+ <ContentBoxDescription>{friend.description}</ContentBoxDescription>+ <ContentBoxUrl url={friend.href} />+ </ContentBoxLink>+ ))}+ </components.Grid>+ </section>+ );+}diff --git a/apps/web/src/app/(landing)/page.tsx b/apps/web/src/app/(landing)/page.tsxnew file mode 100644index 000000000..6afb2032b--- /dev/null+++ b/apps/web/src/app/(landing)/page.tsx@@ -0,0 +1,54 @@+import { CustomMDX } from "@/content/mdx";+import { getHomePage } from "@/content/utils";+import type { Metadata } from "next";+import type { Organization, Product, WebPage, WithContext } from "schema-dts";+import { defaultMetadata } from "../shared-metadata";+import { getJsonLDOrganization, getJsonLDProduct } from "../shared-metadata";++const jsonLdProduct: WithContext<Product> = getJsonLDProduct();++const jsonLdOrganization: WithContext<Organization> = getJsonLDOrganization();++const jsonLDWebpage: WithContext<WebPage> = {+ "@context": "https://schema.org",+ "@type": "WebPage",+ name: "openstatus",+ description: "Open-source uptime and synthetic monitoring with status pages.",+ url: "https://openstatus.dev",+ image: "https://openstatus.dev/assets/logos/OpenStatus-Logo.svg",+ headline: "Showcase your uptime with a status page",+};++export const metadata: Metadata = defaultMetadata;++export default function Page() {+ const homePage = getHomePage();+ return (+ <div className="prose dark:prose-invert max-w-none">+ <script+ type="application/ld+json"+ // biome-ignore lint/security/noDangerouslySetInnerHtml: jsonLd+ dangerouslySetInnerHTML={{+ __html: JSON.stringify(jsonLdProduct).replace(/</g, "\\u003c"),+ }}+ />+ <script+ type="application/ld+json"+ // biome-ignore lint/security/noDangerouslySetInnerHtml: jsonLd+ dangerouslySetInnerHTML={{+ __html: JSON.stringify(jsonLdOrganization).replace(/</g, "\\u003c"),+ }}+ />+ <script+ type="application/ld+json"+ // biome-ignore lint/security/noDangerouslySetInnerHtml: jsonLd+ dangerouslySetInnerHTML={{+ __html: JSON.stringify(jsonLDWebpage).replace(/</g, "\\u003c"),+ }}+ />+ <h1>{homePage.metadata.title}</h1>+ <p className="text-lg">{homePage.metadata.description}</p>+ <CustomMDX source={homePage.content} />+ </div>+ );+}diff --git a/apps/web/src/app/(landing)/play/checker/[slug]/client.tsx b/apps/web/src/app/(landing)/play/checker/[slug]/client.tsxnew file mode 100644index 000000000..31224df2d--- /dev/null+++ b/apps/web/src/app/(landing)/play/checker/[slug]/client.tsx@@ -0,0 +1,356 @@+"use client";++import { IconCloudProvider } from "@/components/icon-cloud-provider";+import {+ type CachedRegionChecker,+ getTimingPhases,+ regionFormatter,+ timestampFormatter,+} from "@/components/ping-response-analysis/utils";+import { cn } from "@/lib/utils";+import { type Region, regionDict } from "@openstatus/regions";+import { Button } from "@openstatus/ui";+import {+ Dialog,+ DialogContent,+ DialogDescription,+ DialogHeader,+ DialogTitle,+ DialogTrigger,+} from "@openstatus/ui";+import { Input } from "@openstatus/ui";+import { Tabs, TabsContent, TabsList, TabsTrigger } from "@openstatus/ui";+import { useState } from "react";++const STATUS_CODES = {+ "1": "text-muted-foreground",+ "2": "text-success",+ "3": "text-info",+ "4": "text-warning",+ "5": "text-destructive",+};++interface TableProps {+ data: CachedRegionChecker;+}++export function Table({ data }: TableProps) {+ const [input, setInput] = useState("");+ const [sort, setSort] = useState<{+ value: "latency" | "status" | "region";+ desc: boolean;+ }>({ value: "latency", desc: false });++ // Filter successful checks and calculate timing phases+ const checks = data.checks+ .filter((check) => check.state === "success" && check.timing)+ .map((check) => {+ const timing = getTimingPhases(check.timing);+ return {+ ...check,+ timingPhases: timing,+ };+ });++ const filteredAndSorted = checks+ .filter((check) => {+ const regionInfo = regionDict[check.region as Region];+ if (!regionInfo) return false;+ return [+ regionInfo.code,+ regionInfo.location,+ regionInfo.flag,+ regionInfo.continent,+ regionInfo.provider,+ ].some((value) => value?.toLowerCase().includes(input.toLowerCase()));+ })+ .sort((a, b) => {+ if (sort.value === "status") {+ return sort.desc ? b.status - a.status : a.status - b.status;+ }+ if (sort.value === "latency") {+ return sort.desc ? b.latency - a.latency : a.latency - b.latency;+ }+ return sort.desc+ ? b.region.localeCompare(a.region)+ : a.region.localeCompare(b.region);+ });++ return (+ <div>+ <Input+ value={input}+ onChange={(e) => setInput(e.target.value)}+ placeholder="Search by region, flag, location code, cloud provider or continent"+ className="h-auto! rounded-none p-4 text-base md:text-base"+ />+ <div className="table-wrapper">+ <table>+ <thead>+ <tr>+ <th className="w-12" />+ <th>Region</th>+ <th>Status</th>+ <th>DNS</th>+ <th>Connect</th>+ <th>TLS</th>+ <th>TTFB</th>+ <th className="p-0! text-right!">+ <TableSort+ onClick={() =>+ setSort({ value: "latency", desc: !sort.desc })+ }+ direction={+ sort.value === "latency"+ ? sort.desc+ ? "desc"+ : "asc"+ : undefined+ }+ >+ Latency+ </TableSort>+ </th>+ </tr>+ </thead>+ <tbody>+ {filteredAndSorted.length === 0 ? (+ <tr>+ <td+ colSpan={8}+ className="border border-border border-dashed text-center"+ >+ No data available+ </td>+ </tr>+ ) : (+ filteredAndSorted.map((check) => {+ const regionInfo = regionDict[check.region as Region];+ if (!regionInfo) return null;++ const { dns, connection, tls, ttfb } = check.timingPhases;++ return (+ <InfoDialog key={check.region} check={check}>+ <tr className="hover:bg-muted/50">+ <td>+ <IconCloudProvider+ provider={regionInfo.provider}+ className="size-4"+ />+ </td>+ <td>+ {regionInfo.flag} {regionInfo.code}{" "}+ <span className="text-muted-foreground">+ {regionInfo.location}+ </span>+ </td>+ <td+ className={cn(+ STATUS_CODES[+ check.status.toString()[0] as keyof typeof STATUS_CODES+ ],+ )}+ >+ {check.status}+ </td>+ <td>+ {Intl.NumberFormat("en-US", {+ maximumFractionDigits: 0,+ }).format(dns)}+ ms+ </td>+ <td>+ {Intl.NumberFormat("en-US", {+ maximumFractionDigits: 0,+ }).format(connection)}+ ms+ </td>+ <td>+ {Intl.NumberFormat("en-US", {+ maximumFractionDigits: 0,+ }).format(tls)}+ ms+ </td>+ <td>+ {Intl.NumberFormat("en-US", {+ maximumFractionDigits: 0,+ }).format(ttfb)}+ ms+ </td>+ <td className="text-right!">+ {Intl.NumberFormat("en-US", {+ maximumFractionDigits: 0,+ }).format(check.latency)}+ ms+ </td>+ </tr>+ </InfoDialog>+ );+ })+ )}+ </tbody>+ <caption>+ Results of your check ({filteredAndSorted.length} / {checks.length}{" "}+ regions)+ </caption>+ </table>+ </div>+ </div>+ );+}++function TableSort({+ children,+ className,+ direction,+ ...props+}: React.ComponentProps<typeof Button> & { direction?: "asc" | "desc" }) {+ return (+ <Button+ variant="ghost"+ className={cn(+ "h-auto! w-full rounded-none p-4 text-base md:text-base",+ className,+ )}+ {...props}+ >+ {children}+ <span className="ml-2 flex flex-col">+ <span+ aria-hidden="true"+ className={cn(+ "shrink-0 text-[9px]",+ direction === "asc"+ ? "text-accent-foreground"+ : "text-muted-foreground",+ )}+ >+ ▲+ </span>+ <span+ aria-hidden="true"+ className={cn(+ "shrink-0 text-[9px]",+ direction === "desc"+ ? "text-accent-foreground"+ : "text-muted-foreground",+ )}+ >+ ▼+ </span>+ </span>+ </Button>+ );+}++function InfoDialog({+ check,+ children,+}: {+ check: CachedRegionChecker["checks"][number];+ children: React.ReactNode;+}) {+ const headers = check.headers || {};+ const regionInfo = regionDict[check.region];+ return (+ <Dialog>+ <DialogTrigger asChild>{children}</DialogTrigger>+ <DialogContent className="max-h-[90vh] overflow-y-auto overflow-x-hidden rounded-none! font-mono sm:max-w-5xl">+ <DialogHeader>+ <DialogTitle>Response Details</DialogTitle>+ <DialogDescription>+ Basic informations like header and latency about the response.+ </DialogDescription>+ </DialogHeader>+ <div className="prose dark:prose-invert min-w-0 max-w-none">+ <table>+ <tbody>+ <tr>+ <td>Region</td>+ <td>+ {regionFormatter(check.region, "long")}, {regionInfo.provider}{" "}+ <IconCloudProvider+ provider={regionInfo.provider}+ className="inline size-4"+ />+ </td>+ </tr>+ <tr>+ <td>Timestamp</td>+ <td>{timestampFormatter(check.timestamp)}</td>+ </tr>+ <tr>+ <td>Status</td>+ <td+ className={cn(+ STATUS_CODES[+ check.status.toString()[0] as keyof typeof STATUS_CODES+ ],+ )}+ >+ {check.status}+ </td>+ </tr>+ <tr>+ <td>Latency</td>+ <td>+ {Intl.NumberFormat("en-US", {+ maximumFractionDigits: 0,+ }).format(check.latency)}+ ms+ </td>+ </tr>+ </tbody>+ </table>+ <Tabs defaultValue="raw">+ <TabsList className="h-auto w-full rounded-none">+ <TabsTrigger+ value="raw"+ className="h-auto w-full truncate rounded-none p-4"+ >+ Raw+ </TabsTrigger>+ <TabsTrigger+ value="table"+ className="h-auto w-full truncate rounded-none p-4"+ >+ Table+ </TabsTrigger>+ </TabsList>+ <TabsContent value="table" className="min-w-0 overflow-x-auto">+ <div className="min-w-0">+ <table className="my-0!">+ <thead>+ <tr>+ <th className="whitespace-nowrap">Header</th>+ <th className="break-words">Value</th>+ </tr>+ </thead>+ <tbody>+ {Object.entries(headers).map(([key, value]) => (+ <tr key={key}>+ <td className="whitespace-nowrap font-medium">{key}</td>+ <td className="max-w-md break-words">{value}</td>+ </tr>+ ))}+ </tbody>+ </table>+ </div>+ </TabsContent>+ <TabsContent value="raw" className="min-w-0 overflow-x-auto">+ {/* NOTE: we can make it a readOnly textarea*/}+ <pre className="my-0! whitespace-pre-wrap break-words">+ {Object.entries(headers).map(([key, value]) => (+ <code key={key} className="block break-words">+ {key}: {value}+ </code>+ ))}+ </pre>+ </TabsContent>+ </Tabs>+ </div>+ </DialogContent>+ </Dialog>+ );+}diff --git a/apps/web/src/app/(landing)/play/checker/[slug]/page.tsx b/apps/web/src/app/(landing)/play/checker/[slug]/page.tsxnew file mode 100644index 000000000..94f612386--- /dev/null+++ b/apps/web/src/app/(landing)/play/checker/[slug]/page.tsx@@ -0,0 +1,99 @@+import { getPageMetadata } from "@/app/shared-metadata";+import {+ getCheckerDataById,+ latencyFormatter,+ regionFormatter,+} from "@/components/ping-response-analysis/utils";+import { CustomMDX } from "@/content/mdx";+import { getToolsPage } from "@/content/utils";+import type { Metadata } from "next";+import { redirect } from "next/navigation";+import { mockCheckAllRegions } from "../api/mock";+import { Table } from "./client";++function formatDate(date: Date) {+ return date.toLocaleDateString("en-US", {+ year: "numeric",+ month: "long",+ day: "numeric",+ hour: "numeric",+ minute: "numeric",+ second: "numeric",+ });+}++export async function generateMetadata({+ params,+}: {+ params: Promise<{ slug: string }>;+}): Promise<Metadata | undefined> {+ const { slug } = await params;+ const page = getToolsPage("checker-slug");++ const metadata = getPageMetadata(page);++ const data =+ process.env.NODE_ENV === "development"+ ? await mockCheckAllRegions()+ : await getCheckerDataById(slug);++ if (!data) return metadata;++ const regions = data.checks.sort((a, b) => a.latency - b.latency);+ const fastestRegion = regions[0];+ const slowestRegion = regions[regions.length - 1];++ const TITLE = data.url;+ const DESCRIPTION = `${formatDate(+ new Date(data.timestamp),+ )} | Fastest: ${regionFormatter(fastestRegion.region)} (${latencyFormatter(+ fastestRegion.latency,+ )}) | Slowest: ${regionFormatter(slowestRegion.region)} (${latencyFormatter(+ slowestRegion.latency,+ )})`;++ return {+ ...metadata,+ twitter: {+ ...metadata.twitter,+ images: [+ `/api/og?title=${encodeURIComponent(+ TITLE,+ )}&description=${encodeURIComponent(DESCRIPTION)}&category=checker`,+ ],+ },+ openGraph: {+ ...metadata.openGraph,+ images: [+ `/api/og?title=${encodeURIComponent(+ TITLE,+ )}&description=${encodeURIComponent(DESCRIPTION)}&category=checker`,+ ],+ },+ };+}++export default async function Page({+ params,+}: {+ params: Promise<{ slug: string }>;+}) {+ const { slug } = await params;+ const page = getToolsPage("checker-slug");++ const data =+ process.env.NODE_ENV === "development"+ ? await mockCheckAllRegions()+ : await getCheckerDataById(slug);++ if (!data) redirect("/play/checker");++ return (+ <section className="prose dark:prose-invert max-w-none">+ <h1>{data.url}</h1>+ <p className="text-lg">{formatDate(new Date(data.timestamp))}</p>+ <Table data={data} />+ <CustomMDX source={page.content} />+ </section>+ );+}diff --git a/apps/web/src/app/(pages)/(content)/play/checker/api/mock.ts b/apps/web/src/app/(landing)/play/checker/api/mock.tssimilarity index 100%rename from apps/web/src/app/(pages)/(content)/play/checker/api/mock.tsrename to apps/web/src/app/(landing)/play/checker/api/mock.tsdiff --git a/apps/web/src/app/(pages)/(content)/play/checker/api/route.ts b/apps/web/src/app/(landing)/play/checker/api/route.tssimilarity index 100%rename from apps/web/src/app/(pages)/(content)/play/checker/api/route.tsrename to apps/web/src/app/(landing)/play/checker/api/route.tsdiff --git a/apps/web/src/app/(landing)/play/checker/client.tsx b/apps/web/src/app/(landing)/play/checker/client.tsxnew file mode 100644index 000000000..1c8a78349--- /dev/null+++ b/apps/web/src/app/(landing)/play/checker/client.tsx@@ -0,0 +1,383 @@+"use client";++import { IconCloudProvider } from "@/components/icon-cloud-provider";+import {+ is32CharHex,+ latencyFormatter,+ regionCheckerSchema,+ regionFormatter,+} from "@/components/ping-response-analysis/utils";+import { toast } from "@/lib/toast";+import { cn, notEmpty } from "@/lib/utils";+import {+ AVAILABLE_REGIONS,+ type Region,+ regionDict,+} from "@openstatus/regions";+import { Button } from "@openstatus/ui";+import { Input } from "@openstatus/ui";+import {+ Select,+ SelectContent,+ SelectItem,+ SelectTrigger,+ SelectValue,+} from "@openstatus/ui";+import Link from "next/link";+import { useRouter } from "next/navigation";+import { useQueryStates } from "nuqs";+import {+ createContext,+ useContext,+ useEffect,+ useState,+ useTransition,+} from "react";+import { searchParamsParsers } from "./search-params";++type Values = { region: string; latency: number; status: number };++type CheckerContextType = {+ values: Values[];+ setValues: React.Dispatch<React.SetStateAction<Values[]>>;+ id: string | null;+ setId: React.Dispatch<React.SetStateAction<string | null>>;+};++const CheckerContext = createContext<CheckerContextType>({+ values: [],+ setValues: () => {},+ id: null,+ setId: () => {},+});++export function CheckerProvider({+ children,+ defaultValues = [],+}: {+ children: React.ReactNode;+ defaultValues?: Values[];+}) {+ const [values, setValues] = useState<Values[]>(defaultValues);+ const [{ id: urlId }, setSearchParams] = useQueryStates(searchParamsParsers);+ const [id, setId] = useState<string | null>(urlId);++ // Sync local ID state with URL search params+ useEffect(() => {+ setId(urlId);+ }, [urlId]);++ // Helper function to update both local state and URL+ const updateId: React.Dispatch<React.SetStateAction<string | null>> = (+ newId,+ ) => {+ const value = typeof newId === "function" ? newId(id) : newId;+ setId(value);+ setSearchParams({ id: value });+ };++ return (+ <CheckerContext.Provider value={{ values, setValues, id, setId: updateId }}>+ {children}+ </CheckerContext.Provider>+ );+}++export function useCheckerContext() {+ const context = useContext(CheckerContext);+ if (!context) {+ throw new Error("useCheckerContext must be used within a CheckerProvider");+ }+ return context;+}++export function Form({+ defaultMethod = "GET",+ defaultUrl = "",+}: {+ defaultMethod?: string;+ defaultUrl?: string;+}) {+ const { setValues, setId } = useCheckerContext();+ const [isPending, startTransition] = useTransition();+ const router = useRouter();++ function handleSubmit(event: React.FormEvent<HTMLFormElement>) {+ event.preventDefault();+ const formData = new FormData(event.target as HTMLFormElement);+ const url = formData.get("url") as string;+ const method = formData.get("method") as string;++ // Validate URL+ try {+ new URL(url);+ } catch {+ // Invalid URL, could add error handling here+ toast.error("Invalid URL");+ return;+ }++ // Reset values and ID+ setValues([]);+ setId(null); // This will also clear the URL param++ startTransition(async () => {+ async function fetchAndReadStream() {+ try {+ const toastId = toast.loading("Loading data from regions...", {+ duration: Number.POSITIVE_INFINITY,+ closeButton: false,+ });++ const response = await fetch("/play/checker/api", {+ method: "POST",+ headers: {+ "Content-Type": "application/json",+ },+ body: JSON.stringify({ url, method }),+ });++ const reader = response?.body?.getReader();+ if (!reader) return;++ const decoder = new TextDecoder();+ let done = false;++ while (!done) {+ const { value, done: streamDone } = await reader.read();+ done = streamDone;+ if (value) {+ const decoded = decoder.decode(value, { stream: true });+ if (!decoded) continue;++ const array = decoded.split("\n").filter(Boolean);++ const results = array+ .map((item) => {+ try {+ // Store the ID if it's a 32-char hex string+ if (is32CharHex(item)) {+ setId(item);+ toast.success("Data is available!", {+ id: toastId,+ description: "Learn about the response details.",+ action: {+ label: "Details",+ onClick: () => router.push(`/play/checker/${item}`),+ },+ duration: 4000,+ });+ return null;+ }++ const parsed = JSON.parse(item);+ const validation = regionCheckerSchema.safeParse(parsed);+ if (!validation.success) return null;++ const check = validation.data;+ // Only process successful checks+ if (check.state === "success") {+ return {+ region: check.region,+ latency: check.latency,+ status: check.status,+ };+ }+ return null;+ } catch {+ return null;+ }+ })+ .filter(notEmpty);++ if (results.length > 0) {+ setValues((prev) => [...prev, ...results]);+ toast.loading(+ `Checking ${regionFormatter(+ results[0].region,+ "long",+ )} (${latencyFormatter(results[0].latency)})`,+ {+ id: toastId,+ },+ );+ }+ }+ }+ } catch (error) {+ console.error("Error fetching data:", error);+ // Could add error handling/toast here+ }+ }++ await fetchAndReadStream();+ });+ }++ return (+ <form onSubmit={handleSubmit}>+ <div className="grid grid-cols-3 gap-2 sm:grid-cols-4 md:grid-cols-5">+ <div className="col-span-1">+ <Select name="method" defaultValue={defaultMethod}>+ <SelectTrigger className="h-auto! w-full rounded-none p-4 text-base">+ <SelectValue />+ </SelectTrigger>+ <SelectContent className="rounded-none">+ {["GET", "POST", "PUT", "DELETE", "PATCH"].map((method) => (+ <SelectItem+ key={method}+ value={method}+ className="rounded-none px-2 py-3"+ >+ {method}+ </SelectItem>+ ))}+ </SelectContent>+ </Select>+ </div>+ <div className="col-span-2 md:col-span-3">+ <Input+ name="url"+ placeholder="https://openstatus.dev"+ className="h-auto! rounded-none p-4 text-base md:text-base"+ defaultValue={defaultUrl}+ required+ />+ </div>+ <div className="col-span-3 sm:col-span-1">+ <Button+ type="submit"+ variant="default"+ className="h-full w-full rounded-none p-4 text-base"+ disabled={isPending}+ >+ {isPending ? "Submitting..." : "Submit"}+ </Button>+ </div>+ {/* TOOD: add button to details */}+ </div>+ </form>+ );+}++export function ResultTable() {+ const { values } = useCheckerContext();+ return (+ <div className="table-wrapper">+ <table>+ <thead>+ <tr>+ <th className="w-12" />+ <th className="w-12" />+ <th>Region</th>+ <th className="text-right!">Latency</th>+ </tr>+ </thead>+ <tbody>+ {values.length === 0 ? (+ <tr>+ <td>+ <IconCloudProvider+ provider="globe"+ className="size-4 text-muted-foreground"+ />+ </td>+ <td>+ <div className="size-4 bg-muted-foreground" />+ </td>+ <td>+ <br />+ </td>+ <td>+ <br />+ </td>+ </tr>+ ) : (+ values.map((value) => {+ const regionConfig = regionDict[value.region as Region];+ return (+ <tr key={value.region}>+ <td>+ <IconCloudProvider+ provider={regionConfig.provider}+ className="size-4"+ />+ </td>+ <td>+ <div+ className={cn(+ "size-4",+ STATUS_CODES[+ value.status.toString()[0] as keyof typeof STATUS_CODES+ ],+ )}+ />+ </td>+ <td>+ {regionConfig.flag} {regionConfig.code}{" "}+ <span className="text-muted-foreground">+ {regionConfig.location}+ </span>+ </td>+ <td className="text-right!">+ {Intl.NumberFormat("en-US", {+ maximumFractionDigits: 0,+ }).format(value.latency)}+ ms+ </td>+ </tr>+ );+ })+ )}+ </tbody>+ <caption>+ Results of your check ({values.length} / {AVAILABLE_REGIONS.length}{" "}+ regions)+ </caption>+ </table>+ </div>+ );+}++const STATUS_CODES = {+ "1": "bg-muted-foreground",+ "2": "bg-success",+ "3": "bg-info",+ "4": "bg-warning",+ "5": "bg-destructive",+};++export function ResponseStatus() {+ return (+ <div className="flex gap-2">+ {Object.entries(STATUS_CODES).map(([code, className]) => (+ <div key={code} className={cn("text-background text-base", className)}>+ {code}xx+ </div>+ ))}+ </div>+ );+}++export function DetailsButtonLink() {+ const { values, id } = useCheckerContext();++ // Only show button if we have all regions and an ID+ if (!id || values.length === 0) {+ return null;+ }+ return (+ <Button+ variant="default"+ className="h-full w-full rounded-none p-4 text-base"+ asChild+ >+ <Link+ href={`/play/checker/${id}`}+ className="no-underline! text-background!"+ >+ Response details+ </Link>+ </Button>+ );+}diff --git a/apps/web/src/app/(landing)/play/checker/page.tsx b/apps/web/src/app/(landing)/play/checker/page.tsxnew file mode 100644index 000000000..52941e2bc--- /dev/null+++ b/apps/web/src/app/(landing)/play/checker/page.tsx@@ -0,0 +1,50 @@+import { getPageMetadata } from "@/app/shared-metadata";+import { getCheckerDataById } from "@/components/ping-response-analysis/utils";+import { CustomMDX } from "@/content/mdx";+import { getToolsPage } from "@/content/utils";+import type { Metadata } from "next";+import { mockCheckAllRegions } from "./api/mock";+import {+ CheckerProvider,+ DetailsButtonLink,+ Form,+ ResponseStatus,+ ResultTable,+} from "./client";+import { searchParamsCache } from "./search-params";++export function generateMetadata(): Metadata {+ const page = getToolsPage("checker");+ return getPageMetadata(page);+}++export default async function Page(props: {+ searchParams: Promise<{ id: string }>;+}) {+ const page = getToolsPage("checker");++ const searchParams = await props.searchParams;+ const { id } = searchParamsCache.parse(searchParams);++ const data = id+ ? process.env.NODE_ENV === "development"+ ? await mockCheckAllRegions()+ : await getCheckerDataById(id)+ : null;++ return (+ <section className="prose dark:prose-invert max-w-none">+ <h1>{page.metadata.title}</h1>+ <p className="text-lg">{page.metadata.description}</p>+ <CheckerProvider+ defaultValues={data?.checks.sort((a, b) => a.latency - b.latency)}+ >+ <Form defaultMethod={data?.method} defaultUrl={data?.url} />+ <ResponseStatus />+ <ResultTable />+ <DetailsButtonLink />+ </CheckerProvider>+ <CustomMDX source={page.content} />+ </section>+ );+}diff --git a/apps/web/src/app/(pages)/(content)/play/checker/search-params.ts b/apps/web/src/app/(landing)/play/checker/search-params.tssimilarity index 100%rename from apps/web/src/app/(pages)/(content)/play/checker/search-params.tsrename to apps/web/src/app/(landing)/play/checker/search-params.tsdiff --git a/apps/web/src/app/(landing)/play/curl/client.tsx b/apps/web/src/app/(landing)/play/curl/client.tsxnew file mode 100644index 000000000..22487078b--- /dev/null+++ b/apps/web/src/app/(landing)/play/curl/client.tsx@@ -0,0 +1,290 @@+"use client";++import { useCopyToClipboard } from "@/hooks/use-copy-to-clipboard";+import { Button } from "@openstatus/ui";+import { Checkbox } from "@openstatus/ui";+import { Input } from "@openstatus/ui";+import { Label } from "@openstatus/ui";+import {+ Select,+ SelectContent,+ SelectItem,+ SelectTrigger,+ SelectValue,+} from "@openstatus/ui";+import { Textarea } from "@openstatus/ui";+import { Fragment, useState } from "react";++type Values = {+ url: string;+ method: string;+ body: string;+ headers: { key: string; value: string }[];+ verbose: boolean;+ insecure: boolean;+ json: boolean;+};++export function Form() {+ const [value, setValue] = useState<Values>({+ url: "",+ method: "GET",+ body: "",+ headers: [],+ verbose: false,+ insecure: false,+ json: false,+ });+ const { copy, isCopied } = useCopyToClipboard();++ return (+ <form>+ <div className="grid grid-cols-5 gap-4">+ <div className="col-span-1 space-y-1">+ <Label htmlFor="method" className="text-base">+ Method+ </Label>+ <Select+ name="method"+ defaultValue="GET"+ value={value.method}+ onValueChange={(value) =>+ setValue((v) => ({ ...v, method: value }))+ }+ >+ <SelectTrigger+ id="method"+ className="h-auto! w-full rounded-none p-4 text-base"+ >+ <SelectValue />+ </SelectTrigger>+ <SelectContent className="rounded-none">+ {["GET", "POST", "PUT", "DELETE", "PATCH"].map((method) => (+ <SelectItem+ key={method}+ value={method}+ className="rounded-none px-2 py-3"+ >+ {method}+ </SelectItem>+ ))}+ </SelectContent>+ </Select>+ </div>+ <div className="col-span-4 space-y-1">+ <Label htmlFor="url" className="text-base">+ URL+ </Label>+ <Input+ name="url"+ id="url"+ placeholder="https://openstatus.dev"+ className="h-auto! rounded-none p-4 text-base md:text-base"+ value={value.url}+ onChange={(e) => setValue((v) => ({ ...v, url: e.target.value }))}+ />+ </div>+ <div className="col-span-5 space-y-1">+ <Label className="text-base">Headers</Label>+ <div className="grid grid-cols-5 gap-2">+ <Button+ type="button"+ variant="outline"+ className="col-span-2 h-auto! rounded-none p-4 text-base"+ onClick={() =>+ setValue((v) => ({+ ...v,+ headers: [...v.headers, { key: "", value: "" }],+ }))+ }+ >+ Add Header+ </Button>+ <div className="col-span-3" />+ {value.headers.map((header, index) => (+ <Fragment key={index}>+ <Input+ placeholder="Key"+ className="col-span-2 h-auto! rounded-none p-4 text-base md:text-base"+ value={header.key}+ onChange={(e) =>+ setValue((v) => ({+ ...v,+ headers: v.headers.map((h, i) =>+ i === index ? { ...h, key: e.target.value } : h,+ ),+ }))+ }+ />+ <Input+ placeholder="Value"+ className="col-span-2 h-auto! rounded-none p-4 text-base md:text-base"+ value={header.value}+ onChange={(e) =>+ setValue((v) => ({+ ...v,+ headers: v.headers.map((h, i) =>+ i === index ? { ...h, value: e.target.value } : h,+ ),+ }))+ }+ />+ <Button+ type="button"+ variant="ghost"+ className="h-full w-full rounded-none p-4 text-base"+ onClick={() =>+ setValue((v) => ({+ ...v,+ headers: v.headers.filter((_, i) => i !== index),+ }))+ }+ >+ Remove+ </Button>+ </Fragment>+ ))}+ </div>+ </div>+ <div className="col-span-5 space-y-1">+ <Label htmlFor="body" className="text-base">+ Body+ </Label>+ <Textarea+ id="body"+ name="body"+ placeholder=""+ rows={6}+ className="resize-none rounded-none p-4 text-base md:text-base"+ value={value.body}+ onChange={(e) => setValue((v) => ({ ...v, body: e.target.value }))}+ />+ </div>+ <div className="col-span-5 space-y-4">+ <div className="flex items-start space-x-2">+ <Checkbox+ id="json-body"+ className="size-5 rounded-none"+ checked={value.json}+ onCheckedChange={(checked) =>+ setValue((v) => ({ ...v, json: Boolean(checked) }))+ }+ />+ <Label+ htmlFor="json-body"+ className="flex flex-col items-start gap-0 text-base"+ >+ <span>JSON Content-Type</span>+ <span className="text-muted-foreground">+ Set the Content-Type header to application/json.+ </span>+ </Label>+ </div>+ <div className="flex items-start space-x-2">+ <Checkbox+ id="verbose"+ className="size-5 rounded-none"+ checked={value.verbose}+ onCheckedChange={(checked) =>+ setValue((v) => ({ ...v, verbose: Boolean(checked) }))+ }+ />+ <Label+ htmlFor="verbose"+ className="flex flex-col items-start gap-0 text-base"+ >+ <span>Verbose</span>+ <span className="text-muted-foreground">+ Make the operation more talkative.+ </span>+ </Label>+ </div>+ <div className="flex items-start space-x-2">+ <Checkbox+ id="insecure"+ className="size-5 rounded-none"+ checked={value.insecure}+ onCheckedChange={(checked) =>+ setValue((v) => ({ ...v, insecure: Boolean(checked) }))+ }+ />+ <Label+ htmlFor="insecure"+ className="flex flex-col items-start gap-0 text-base"+ >+ <span>Accept self-signed certificats</span>+ <span className="text-muted-foreground">+ Allow insecure server connections.+ </span>+ </Label>+ </div>+ </div>+ <div className="col-span-5">+ <Textarea+ id="headers"+ name="headers"+ placeholder=""+ rows={3}+ className="resize-none rounded-none p-4 text-base md:text-base"+ value={generateCurlCommand(value)}+ readOnly+ />+ </div>+ <div className="col-span-5">+ <Button+ type="button"+ onClick={() => copy(generateCurlCommand(value), {})}+ className="h-full w-full rounded-none p-4 text-base"+ >+ {isCopied ? "Copied" : "Copy to Clipboard"}+ </Button>+ </div>+ </div>+ </form>+ );+}++function generateCurlCommand(values?: Values) {+ if (!values) return "";++ const { method, url, body, verbose, insecure, json, headers } = values;++ let curlCommand = "curl";++ if (method) {+ curlCommand += ` -X ${method}`;+ }++ if (url) {+ curlCommand += ` "${url}" \\\n`;+ } else {+ // force a new line if there is no URL+ curlCommand += " \\\n";+ }++ for (const header of headers) {+ const { key, value } = header;+ if (key && value) {+ curlCommand += ` -H "${key}: ${value}" \\\n`;+ }+ }++ if (json) {+ curlCommand += ' -H "Content-Type: application/json" \\\n';+ }++ if (body?.trim()) {+ curlCommand += ` -d '${body.trim()}' \\\n`;+ }++ if (verbose) {+ curlCommand += " -v \\\n";+ }++ if (insecure) {+ curlCommand += " -k \\\n";+ }++ // Remove the trailing ` \` at the end+ return curlCommand.trim().slice(0, -2);+}diff --git a/apps/web/src/app/(landing)/play/curl/page.tsx b/apps/web/src/app/(landing)/play/curl/page.tsxnew file mode 100644index 000000000..d710b90e0--- /dev/null+++ b/apps/web/src/app/(landing)/play/curl/page.tsx@@ -0,0 +1,22 @@+import { getPageMetadata } from "@/app/shared-metadata";+import { CustomMDX } from "@/content/mdx";+import { getToolsPage } from "@/content/utils";+import type { Metadata } from "next";+import { Form } from "./client";++export function generateMetadata(): Metadata {+ const page = getToolsPage("curl");+ return getPageMetadata(page);+}++export default function Page() {+ const page = getToolsPage("curl");+ return (+ <section className="prose dark:prose-invert max-w-none">+ <h1>{page.metadata.title}</h1>+ <p className="text-lg">{page.metadata.description}</p>+ <Form />+ <CustomMDX source={page.content} />+ </section>+ );+}diff --git a/apps/web/src/app/(landing)/play/page.tsx b/apps/web/src/app/(landing)/play/page.tsxnew file mode 100644index 000000000..eaab7486a--- /dev/null+++ b/apps/web/src/app/(landing)/play/page.tsx@@ -0,0 +1,103 @@+import {+ defaultMetadata,+ ogMetadata,+ twitterMetadata,+} from "@/app/shared-metadata";+import { components } from "@/content/mdx";+import type { Metadata } from "next";+import {+ ContentBoxDescription,+ ContentBoxLink,+ ContentBoxTitle,+ ContentBoxUrl,+} from "../content-box";++const TITLE = "Playground (Tools)";+const DESCRIPTION = "Playground for tools and services related to OpenStatus.";++export const metadata: Metadata = {+ ...defaultMetadata,+ title: TITLE,+ description: DESCRIPTION,+ openGraph: {+ ...ogMetadata,+ title: TITLE,+ description: DESCRIPTION,+ },+ twitter: {+ ...twitterMetadata,+ title: TITLE,+ description: DESCRIPTION,+ images: [`/api/og?title=${TITLE}&description=${DESCRIPTION}`],+ },+};++export default function Page() {+ return (+ <section className="prose dark:prose-invert max-w-none">+ <h1>Playground (Tools)</h1>+ <components.Grid cols={2}>+ {PLAY.map((tool) => (+ <ContentBoxLink key={tool.href} href={tool.href}>+ <ContentBoxTitle>{tool.label}</ContentBoxTitle>+ <ContentBoxDescription>{tool.description}</ContentBoxDescription>+ <ContentBoxUrl url={tool.href} />+ </ContentBoxLink>+ ))}+ </components.Grid>+ </section>+ );+}++const PLAY = [+ {+ label: "Global Speed Checker",+ description: "Test the latency of your website worldwide",+ href: "/play/checker",+ },+ {+ label: "cURL Builder",+ description: "Curl your website",+ href: "/play/curl",+ },+ {+ label: "Uptime SLA Calculator",+ description: "Calculate downtime duration or uptime percentage",+ href: "/play/uptime-sla",+ },+ {+ label: "Theme Explorer",+ description: "Explore themes for your status page",+ href: "https://themes.openstatus.dev",+ },+ {+ label: "All Status Codes",+ description: "Explore all HTTP status codes",+ href: "https://openstat.us",+ },+ {+ label: "Vercel Edge Ping",+ description: "Use edge functions to ping your website",+ href: "https://light.openstatus.dev",+ },+ {+ label: "React Data Table",+ description: "Shadcn tanstack table with nuqs integration",+ href: "https://logs.run",+ },+ {+ label: "Shadcn Time Picker",+ description: "Shadcn time picker with date-fns integration",+ href: "https://time.openstatus.dev",+ },+ {+ label: "Astro Status Page",+ description: "Astro status page with openstatus integration",+ href: "https://astro.openstat.us",+ },+ {+ label: "Open-source templates",+ description: "Template for dashboard, statuspage and marketing",+ href: "https://template.openstatus.dev",+ },+];diff --git a/apps/web/src/app/(landing)/play/uptime-sla/client.tsx b/apps/web/src/app/(landing)/play/uptime-sla/client.tsxnew file mode 100644index 000000000..6c45dff15--- /dev/null+++ b/apps/web/src/app/(landing)/play/uptime-sla/client.tsx@@ -0,0 +1,216 @@+"use client";++import { Button } from "@openstatus/ui";+import { Input } from "@openstatus/ui";+import {+ TabsContent,+ TabsList,+ Tabs as TabsPrimitive,+ TabsTrigger,+} from "@openstatus/ui";+import { useState } from "react";++const periods = ["days", "weeks", "months", "years"] as const;++const periodsInSeconds = {+ days: 24 * 60 * 60,+ weeks: 24 * 60 * 60 * 7,+ months: 24 * 60 * 60 * 30,+ years: 24 * 60 * 60 * 365,+} satisfies Record<(typeof periods)[number], number>;++// Parse downtime string like "11h 30m 10s" or "1d 2h 30m" to seconds+function parseDowntimeToSeconds(downtime: string): number {+ if (!downtime.trim()) return 0;++ const regex = /(\d+)\s*(d|h|m|s)/g;+ let totalSeconds = 0;+ let match: RegExpExecArray | null = null;++ // biome-ignore lint/suspicious/noAssignInExpressions: <explanation>+ while ((match = regex.exec(downtime)) !== null) {+ const value = Number.parseInt(match[1], 10);+ const unit = match[2];++ switch (unit) {+ case "w":+ totalSeconds += value * 24 * 60 * 60 * 7; // weeks+ break;+ case "d":+ totalSeconds += value * 24 * 60 * 60; // days+ break;+ case "h":+ totalSeconds += value * 60 * 60; // hours+ break;+ case "m":+ totalSeconds += value * 60; // minutes+ break;+ case "s":+ totalSeconds += value; // seconds+ break;+ }+ }++ return totalSeconds;+}++// Calculate uptime percentage from downtime seconds and period+function calculateUptimePercentage(+ downtimeSeconds: number,+ periodSeconds: number,+): number {+ if (downtimeSeconds >= periodSeconds) return 0;+ const uptimeSeconds = periodSeconds - downtimeSeconds;+ return (uptimeSeconds / periodSeconds) * 100;+}++// Format seconds into human-readable format (days, hours, minutes, seconds)+function formatDuration(seconds: number): string {+ if (seconds === 0) return "0s";++ const days = Math.floor(seconds / (24 * 60 * 60));+ const hours = Math.floor((seconds % (24 * 60 * 60)) / (60 * 60));+ const minutes = Math.floor((seconds % (60 * 60)) / 60);+ const remainingSeconds = Math.floor(seconds % 60);++ const parts: string[] = [];++ if (days > 0) parts.push(`${days}d`);+ if (hours > 0) parts.push(`${hours}h`);+ if (minutes > 0) parts.push(`${minutes}m`);+ if (remainingSeconds > 0) parts.push(`${remainingSeconds}s`);++ return parts.join(" ");+}++const ninesBadges = [+ {+ label: "three nines",+ value: 99.9,+ },+ {+ label: "four nines",+ value: 99.99,+ },+ {+ label: "five nines",+ value: 99.999,+ },+ {+ label: "six nines",+ value: 99.9999,+ },+];++const durationBadges = ["1m", "5m", "1h", "1h 30m", "1d"];++export function Calculation() {+ const [uptimePercentage, setUptimePercentage] = useState(99.99);+ const [downtimeDuration, setDowntimeDuration] = useState("1h 30m");+ return (+ <TabsPrimitive defaultValue="percentage">+ <TabsList className="h-auto w-full rounded-none">+ <TabsTrigger+ value="percentage"+ className="h-auto w-full truncate rounded-none p-4"+ >+ Uptime Percentage+ </TabsTrigger>+ <TabsTrigger+ value="duration"+ className="h-auto w-full truncate rounded-none p-4"+ >+ Downtime Duration+ </TabsTrigger>+ </TabsList>+ <TabsContent value="percentage" className="space-y-4 rounded-none">+ <div className="grid gap-4 sm:grid-cols-2">+ <Input+ id="uptime-percentage"+ value={uptimePercentage}+ onChange={(e) => setUptimePercentage(Number(e.target.value))}+ type="number"+ placeholder="99.99"+ className="h-auto! rounded-none p-4 text-base md:text-base"+ />+ <div className="flex flex-wrap gap-2">+ {ninesBadges.map((badge) => (+ <Button+ key={badge.value}+ size="sm"+ variant={+ uptimePercentage === badge.value ? "default" : "outline"+ }+ onClick={() => setUptimePercentage(badge.value)}+ className="rounded-none"+ >+ {badge.label}+ </Button>+ ))}+ </div>+ </div>+ <ul>+ {periods.map((period) => {+ const totalSeconds =+ (uptimePercentage * periodsInSeconds[period]) / 100;+ const allowedDowntimeSeconds =+ periodsInSeconds[period] - totalSeconds;+ return (+ <li key={period}>+ <span className="capitalize">{period} reporting:</span>{" "}+ <span className="font-medium text-foreground">+ {formatDuration(Math.round(allowedDowntimeSeconds))}+ </span>{" "}+ <span>downtime</span>+ </li>+ );+ })}+ </ul>+ </TabsContent>+ <TabsContent value="duration" className="space-y-4 rounded-none">+ <div className="grid gap-4 sm:grid-cols-2">+ <Input+ id="duration-downtime"+ value={downtimeDuration}+ placeholder="11h 30m 10s"+ onChange={(e) => setDowntimeDuration(e.target.value)}+ className="h-auto! rounded-none p-4 text-base md:text-base"+ />+ <div className="flex flex-wrap gap-2">+ {durationBadges.map((badge) => (+ <Button+ key={badge}+ size="sm"+ variant={downtimeDuration === badge ? "default" : "outline"}+ onClick={() => setDowntimeDuration(badge)}+ className="rounded-none"+ >+ {badge}+ </Button>+ ))}+ </div>+ </div>+ <ul>+ {periods.map((period) => {+ const downtimeSeconds = parseDowntimeToSeconds(downtimeDuration);+ const periodSeconds = periodsInSeconds[period];+ const uptimePercentage = calculateUptimePercentage(+ downtimeSeconds,+ periodSeconds,+ );++ return (+ <li key={period}>+ <span className="capitalize">{period} reporting:</span>{" "}+ <span className="font-medium text-foreground">+ {uptimePercentage.toFixed(5)}%+ </span>{" "}+ <span>uptime</span>+ </li>+ );+ })}+ </ul>+ </TabsContent>+ </TabsPrimitive>+ );+}diff --git a/apps/web/src/app/(landing)/play/uptime-sla/page.tsx b/apps/web/src/app/(landing)/play/uptime-sla/page.tsxnew file mode 100644index 000000000..be11a387b--- /dev/null+++ b/apps/web/src/app/(landing)/play/uptime-sla/page.tsx@@ -0,0 +1,22 @@+import { getPageMetadata } from "@/app/shared-metadata";+import { CustomMDX } from "@/content/mdx";+import { getToolsPage } from "@/content/utils";+import type { Metadata } from "next";+import { Calculation } from "./client";++export function generateMetadata(): Metadata {+ const page = getToolsPage("uptime-sla");+ return getPageMetadata(page);+}++export default function Page() {+ const page = getToolsPage("uptime-sla");+ return (+ <section className="prose dark:prose-invert max-w-none space-y-4">+ <h1>{page.metadata.title}</h1>+ <p className="text-lg">{page.metadata.description}</p>+ <Calculation />+ <CustomMDX source={page.content} />+ </section>+ );+}diff --git a/apps/web/src/app/(landing)/status/page.tsx b/apps/web/src/app/(landing)/status/page.tsxnew file mode 100644index 000000000..bdf3c5aff--- /dev/null+++ b/apps/web/src/app/(landing)/status/page.tsx@@ -0,0 +1,75 @@+import {+ defaultMetadata,+ ogMetadata,+ twitterMetadata,+} from "@/app/shared-metadata";+import { components } from "@/content/mdx";+import { env } from "@/env";+import type { Metadata } from "next";+import {+ ContentBoxDescription,+ ContentBoxLink,+ ContentBoxTitle,+ ContentBoxUrl,+} from "../content-box";+import { type AtlassianDescriptionEnum, externalStatusArray } from "./utils";++const TITLE = "External Status";+const DESCRIPTION =+ "Easily check if your external providers is working properly";++export const metadata: Metadata = {+ ...defaultMetadata,+ title: TITLE,+ description: DESCRIPTION,+ openGraph: {+ ...ogMetadata,+ title: TITLE,+ description: DESCRIPTION,+ },+ twitter: {+ ...twitterMetadata,+ title: TITLE,+ description: DESCRIPTION,+ images: [`/api/og?title=${TITLE}&description=${DESCRIPTION}`],+ },+};++export default async function Page() {+ const res = await fetch(env.EXTERNAL_API_URL);+ const data = await res.json();+ const externalStatus = externalStatusArray.parse(data);+ return (+ <section className="prose dark:prose-invert max-w-none">+ <h1>External Status</h1>+ <components.Grid cols={2}>+ {externalStatus.map((status) => (+ <ContentBoxLink+ key={status.name}+ href={status.url}+ target="_blank"+ rel="noopener noreferrer"+ >+ <ContentBoxTitle>{status.name}</ContentBoxTitle>+ <ContentBoxDescription+ className={STATUS[status.status_description]}+ >+ {status.status_description}+ </ContentBoxDescription>+ <ContentBoxUrl url={status.url} />+ </ContentBoxLink>+ ))}+ </components.Grid>+ </section>+ );+}++const STATUS = {+ "All Systems Operational": "text-success",+ "Major System Outage": "text-destructive",+ "Partial System Outage": "text-warning",+ "Minor Service Outage": "text-warning",+ "Degraded System Service": "text-warning",+ "Partially Degraded Service": "text-warning",+ "Service Under Maintenance": "text-info",+} satisfies Record<AtlassianDescriptionEnum, string>;diff --git a/apps/web/src/app/(pages)/status/utils.ts b/apps/web/src/app/(landing)/status/utils.tssimilarity index 100%rename from apps/web/src/app/(pages)/status/utils.tsrename to apps/web/src/app/(landing)/status/utils.tsdiff --git a/apps/web/src/app/(pages)/(content)/(landing)/[slug]/page.tsx b/apps/web/src/app/(pages)/(content)/(landing)/[slug]/page.tsxdeleted file mode 100644index 6b281068a..000000000--- a/apps/web/src/app/(pages)/(content)/(landing)/[slug]/page.tsx+++ /dev/null@@ -1,114 +0,0 @@-import {- defaultMetadata,- ogMetadata,- twitterMetadata,-} from "@/app/shared-metadata";-import { landingsConfig } from "@/config/landings";-import { Button } from "@openstatus/ui";-import type { Metadata } from "next";-import { notFound } from "next/navigation";-import type { WebPage, WithContext } from "schema-dts";--export async function generateStaticParams() {- return Object.keys(landingsConfig).map((slug) => ({ slug }));-}-export async function generateMetadata(props: {- params: Promise<{ slug: string }>;-}): Promise<Metadata | undefined> {- const { slug } = await props.params;- const landing = landingsConfig[slug as keyof typeof landingsConfig];-- if (!landing) return;-- const { title, description } = landing;-- const encodedTitle = encodeURIComponent(title);- const encodedDescription = encodeURIComponent(description);-- return {- ...defaultMetadata,- title,- description,- openGraph: {- ...ogMetadata,- title,- description,- images: [- `/api/og?title=${encodedTitle}&description=${encodedDescription}`,- ],- },- twitter: {- ...twitterMetadata,- title,- description,- images: [- `/api/og?title=${encodedTitle}&description=${encodedDescription}`,- ],- },- };-}--export default async function Page({- params,-}: {- params: Promise<{ slug: string }>;-}) {- const { slug } = await params;- const landing = landingsConfig[slug as keyof typeof landingsConfig];-- if (!landing) {- notFound();- }-- const jsonLDWebPage: WithContext<WebPage> = {- "@context": "https://schema.org",- "@type": "WebPage",- name: `${landing.title} | openstatus`,- headline: landing.description,- mainEntityOfPage: {- "@type": "WebPage",- "@id": "https://www.openstatus.dev",- },- };-- return (- <>- <script- type="application/ld+json"- // biome-ignore lint/security/noDangerouslySetInnerHtml: jsonLd- dangerouslySetInnerHTML={{- __html: JSON.stringify(jsonLDWebPage).replace(/</g, "\\u003c"),- }}- />- <div className="grid gap-12">- <Hero hero={landing.hero} description={landing.description} />- {landing.blocks.map((block) => block)}- </div>- </>- );-}--function Hero({ hero, description }: { hero: string; description: string }) {- return (- <div className="mx-auto my-12 flex flex-col items-center gap-4 md:my-16 md:gap-6">- <div className="flex flex-col gap-2 text-center md:gap-4">- <h1 className="max-w-md font-cal text-3xl leading-tight md:max-w-3xl md:text-5xl">- {hero}- </h1>- <h2 className="mx-auto max-w-md text-muted-foreground text-xl md:max-w-xl md:text-2xl">- {description}- </h2>- </div>- <div className="flex gap-2">- <Button className="rounded-full" asChild>- <a href="https://app.openstatus.dev">Get Started</a>- </Button>- <Button variant="outline" className="rounded-full" asChild>- <a href="/cal" rel="noreferrer" target="_blank">- Book a demo- </a>- </Button>- </div>- </div>- );-}diff --git a/apps/web/src/app/(pages)/(content)/_components/pagination.tsx b/apps/web/src/app/(pages)/(content)/_components/pagination.tsxdeleted file mode 100644index 746dd6b73..000000000--- a/apps/web/src/app/(pages)/(content)/_components/pagination.tsx+++ /dev/null@@ -1,43 +0,0 @@-import type { Changelog } from "content-collections";-import { ChevronLeft, ChevronRight } from "lucide-react";-import Link from "next/link";--import { Button } from "@openstatus/ui/src/components/button";--export function Pagination({- prev,- next,-}: {- prev?: Changelog;- next?: Changelog;-}) {- return (- <div className="mx-auto flex w-full max-w-prose items-center justify-between">- <div />- {prev ? (- <div className="w-1/2 flex-1 text-left">- <Button asChild variant="link">- <Link href={`/changelog/${prev.slug}`} className="group">- <ChevronLeft className="mr-2 h-4 w-4 text-muted-foreground group-hover:text-foreground" />- <span className="truncate">{prev.title}</span>- </Link>- </Button>- </div>- ) : (- <div />- )}- {next ? (- <div className="w-1/2 flex-1 text-right">- <Button asChild variant="link">- <Link href={`/changelog/${next.slug}`} className="group">- <span className="truncate">{next.title}</span>- <ChevronRight className="ml-2 h-4 w-4 text-muted-foreground group-hover:text-foreground" />- </Link>- </Button>- </div>- ) : (- <div />- )}- </div>- );-}diff --git a/apps/web/src/app/(pages)/(content)/blog/[slug]/page.tsx b/apps/web/src/app/(pages)/(content)/blog/[slug]/page.tsxdeleted file mode 100644index 6209fff56..000000000--- a/apps/web/src/app/(pages)/(content)/blog/[slug]/page.tsx+++ /dev/null@@ -1,125 +0,0 @@-import { allPosts } from "content-collections";-import type { Metadata } from "next";-import { notFound } from "next/navigation";--import {- defaultMetadata,- ogMetadata,- twitterMetadata,-} from "@/app/shared-metadata";-import { Article } from "@/components/content/article";-import { Shell } from "@/components/dashboard/shell";-import {- Breadcrumb,- BreadcrumbItem,- BreadcrumbLink,- BreadcrumbList,- BreadcrumbPage,- BreadcrumbSeparator,-} from "@openstatus/ui";-import Link from "next/link";-import type { BlogPosting, WithContext } from "schema-dts";--// export const dynamic = "force-static";--export async function generateStaticParams() {- return allPosts.map((post) => ({- slug: post.slug,- }));-}--export async function generateMetadata(props: {- params: Promise<{ slug: string }>;-}): Promise<Metadata | undefined> {- const params = await props.params;- const post = allPosts.find((post) => post.slug === params.slug);- if (!post) {- return;- }- const { title, publishedAt, description, slug, image } = post;-- const encodedTitle = encodeURIComponent(title);- const encodedDescription = encodeURIComponent(description);- const encodedImage = encodeURIComponent(image);-- return {- ...defaultMetadata,- title,- description,- openGraph: {- ...ogMetadata,- title,- description,- type: "article",- publishedTime: publishedAt.toISOString(),- url: `https://www.openstatus.dev/blog/${slug}`,- images: [- {- url: `https://openstatus.dev/api/og/post?title=${encodedTitle}&image=${encodedImage}&description=${encodedDescription}`,- },- ],- },- twitter: {- ...twitterMetadata,- title,- description,- images: [- `https://openstatus.dev/api/og/post?title=${encodedTitle}&image=${encodedImage}&description=${encodedDescription}`,- ],- },- };-}--export default async function PostPage(props: {- params: Promise<{ slug: string }>;-}) {- const params = await props.params;- const post = allPosts.find((post) => post.slug === params.slug);-- if (!post) notFound();-- const jsonLDBlog: WithContext<BlogPosting> = {- "@context": "https://schema.org",- "@type": "BlogPosting",- name: `${post.title} | openstatus`,- headline: post.title,- datePublished: post.publishedAt.toISOString(),- author: {- "@type": "Person",- name: post.author.name,- url: post.author.url,- },- mainEntityOfPage: {- "@type": "WebPage",- "@id": "https://www.openstatus.dev",- },- };-- return (- <>- <script- type="application/ld+json"- // biome-ignore lint/security/noDangerouslySetInnerHtml: jsonLd- dangerouslySetInnerHTML={{- __html: JSON.stringify(jsonLDBlog).replace(/</g, "\\u003c"),- }}- />- <Breadcrumb className="mb-4 px-3 md:px-6">- <BreadcrumbList>- <BreadcrumbItem>- <BreadcrumbLink asChild>- <Link href="/blog">Blog</Link>- </BreadcrumbLink>- </BreadcrumbItem>- <BreadcrumbSeparator />- <BreadcrumbItem>- <BreadcrumbPage>{post.title}</BreadcrumbPage>- </BreadcrumbItem>- </BreadcrumbList>- </Breadcrumb>- <Shell className="sm:py-8 md:py-12">- <Article post={post} />- </Shell>- </>- );-}diff --git a/apps/web/src/app/(pages)/(content)/blog/_components/category-select.tsx b/apps/web/src/app/(pages)/(content)/blog/_components/category-select.tsxdeleted file mode 100644index 681532e0e..000000000--- a/apps/web/src/app/(pages)/(content)/blog/_components/category-select.tsx+++ /dev/null@@ -1,44 +0,0 @@-"use client";--import {- Select,- SelectContent,- SelectItem,- SelectTrigger,- SelectValue,-} from "@openstatus/ui/src/components/select";-import { allPosts } from "content-collections";-import { useQueryStates } from "nuqs";-import { searchParamsParsers } from "../search-params";--const categories = new Set(allPosts.map((post) => post.tag));--export function CategorySelect() {- const [{ category }, setSearchParams] = useQueryStates(searchParamsParsers, {- shallow: false,- });-- return (- <Select- value={category || "all"}- onValueChange={async (e) => {- await setSearchParams({- category: e === "all" ? null : (e as typeof category),- pageIndex: 0, // Reset to first page when category changes- });- }}- >- <SelectTrigger className="h-9 capitalize">- <SelectValue placeholder="Select a category" />- </SelectTrigger>- <SelectContent>- <SelectItem value="all">All Categories</SelectItem>- {Array.from(categories).map((category) => (- <SelectItem key={category} value={category} className="capitalize">- {category}- </SelectItem>- ))}- </SelectContent>- </Select>- );-}diff --git a/apps/web/src/app/(pages)/(content)/blog/page.tsx b/apps/web/src/app/(pages)/(content)/blog/page.tsxdeleted file mode 100644index e93321735..000000000--- a/apps/web/src/app/(pages)/(content)/blog/page.tsx+++ /dev/null@@ -1,125 +0,0 @@-import {- defaultMetadata,- ogMetadata,- twitterMetadata,-} from "@/app/shared-metadata";-import { Timeline } from "@/components/content/timeline";-import { Shell } from "@/components/dashboard/shell";-import {- Button,- Pagination,- PaginationContent,- PaginationLink,-} from "@openstatus/ui";-import { allPosts } from "content-collections";-import { Rss } from "lucide-react";-import type { Metadata } from "next";-import Link from "next/link";-import { CategorySelect } from "./_components/category-select";-import {- ITEMS_PER_PAGE,- getMaxPageIndex,- searchParamsCache,-} from "./search-params";--export const metadata: Metadata = {- ...defaultMetadata,- title: "Blog",- openGraph: {- ...ogMetadata,- title: "Blog | OpenStatus",- },- twitter: {- ...twitterMetadata,- title: "Blog | OpenStatus",- },-};--export default async function Post(props: {- searchParams: Promise<{ [key: string]: string | string[] | undefined }>;-}) {- const searchParams = await props.searchParams;- const { pageIndex, category } = searchParamsCache.parse(searchParams);-- const maxPageIndex = getMaxPageIndex(category);- const currentPageIndex = Math.min(pageIndex, maxPageIndex);-- const posts = allPosts- .sort(- (a, b) =>- new Date(b.publishedAt).getTime() - new Date(a.publishedAt).getTime(),- )- .filter((post) => {- if (!category) return true;- return post.tag === category;- })- .slice(- currentPageIndex * ITEMS_PER_PAGE,- (currentPageIndex + 1) * ITEMS_PER_PAGE,- );-- return (- <Shell>- <Timeline- title="Blog"- description="All the latest articles and news from OpenStatus."- actions={[- <CategorySelect key="category-select" />,- <Button- key="rss-feed"- variant="outline"- size="icon"- className="shrink-0"- asChild- >- <a href="/blog/feed.xml" target="_blank" rel="noreferrer">- <Rss className="h-4 w-4" />- <span className="sr-only">RSS feed</span>- </a>- </Button>,- ]}- >- {posts.map((post) => (- <Timeline.Article- key={post.slug}- publishedAt={post.publishedAt}- imageSrc={post.image}- title={post.title}- href={`./blog/${post.slug}`}- >- <div className="prose dark:prose-invert">- <p>{post.description}</p>- </div>- <div>- <Button variant="outline" className="rounded-full" asChild>- <Link href={`./blog/${post.slug}`}>Read more</Link>- </Button>- </div>- </Timeline.Article>- ))}- <div className="grid grid-cols-1 gap-4 md:grid-cols-5 md:gap-6">- <div className="row-span-2" />- <div className="w-full md:order-2 md:col-span-4">- <Pagination>- <PaginationContent>- {Array.from({ length: maxPageIndex + 1 }).map((_, index) => {- return (- <PaginationLink- key={index}- href={`?pageIndex=${index}${- category ? `&category=${category}` : ""- }`}- isActive={currentPageIndex === index}- >- {index + 1}- </PaginationLink>- );- })}- </PaginationContent>- </Pagination>- </div>- </div>- </Timeline>- </Shell>- );-}diff --git a/apps/web/src/app/(pages)/(content)/blog/search-params.ts b/apps/web/src/app/(pages)/(content)/blog/search-params.tsdeleted file mode 100644index 02abc3b33..000000000--- a/apps/web/src/app/(pages)/(content)/blog/search-params.ts+++ /dev/null@@ -1,36 +0,0 @@-import { allPosts } from "content-collections";-import {- createParser,- createSearchParamsCache,- parseAsInteger,- parseAsStringEnum,-} from "nuqs/server";--export const ITEMS_PER_PAGE = 10;--// Helper function to calculate max page index based on filtered posts-export function getMaxPageIndex(category?: string | null) {- let filteredPosts = allPosts;- if (category) {- filteredPosts = allPosts.filter((post) => post.tag === category);- }- return Math.max(0, Math.ceil(filteredPosts.length / ITEMS_PER_PAGE) - 1);-}--const parseAsPageIndex = createParser({- parse(queryValue) {- const parsed = parseAsInteger.parse(queryValue);- if (!parsed || parsed < 0) return 0;- return parsed; // We'll validate against max page index in the component- },- serialize(value) {- return value.toString();- },-});--export const searchParamsParsers = {- pageIndex: parseAsPageIndex.withDefault(0),- category: parseAsStringEnum(allPosts.map((post) => post.tag)),-};--export const searchParamsCache = createSearchParamsCache(searchParamsParsers);diff --git a/apps/web/src/app/(pages)/(content)/changelog/[slug]/page.tsx b/apps/web/src/app/(pages)/(content)/changelog/[slug]/page.tsxdeleted file mode 100644index f412a2fbe..000000000--- a/apps/web/src/app/(pages)/(content)/changelog/[slug]/page.tsx+++ /dev/null@@ -1,124 +0,0 @@-import { allChangelogs } from "content-collections";-import type { Metadata } from "next";-import { notFound } from "next/navigation";--import {- Breadcrumb,- BreadcrumbItem,- BreadcrumbLink,- BreadcrumbList,- BreadcrumbPage,- BreadcrumbSeparator,- Separator,-} from "@openstatus/ui";--import {- defaultMetadata,- ogMetadata,- twitterMetadata,-} from "@/app/shared-metadata";-import { ChangelogCard } from "@/components/content/changelog";-import { Shell } from "@/components/dashboard/shell";-import Link from "next/link";-import { Pagination } from "../../_components/pagination";--// export const dynamic = "force-static";--export async function generateStaticParams() {- return allChangelogs.map((post) => ({- slug: post.slug,- }));-}--export async function generateMetadata(props: {- params: Promise<{ slug: string }>;-}): Promise<Metadata | undefined> {- const params = await props.params;- const post = allChangelogs.find((post) => post.slug === params.slug);- if (!post) {- return;- }-- const { title, publishedAt, description, slug, image } = post;-- const encodedTitle = encodeURIComponent(title);- const encodedDescription = encodeURIComponent(description);- const encodedImage = encodeURIComponent(image);-- return {- ...defaultMetadata,- title,- description,- openGraph: {- ...ogMetadata,- title,- description,- type: "article",- publishedTime: publishedAt.toISOString(),- url: `https://www.openstatus.dev/changelog/${slug}`,- images: [- {- url: `https://openstatus.dev/api/og/post?title=${encodedTitle}&description=${encodedDescription}&image=${encodedImage}`,- },- ],- },- twitter: {- ...twitterMetadata,- title,- description,- images: [- `https://openstatus.dev/api/og/post?title=${encodedTitle}&description=${encodedDescription}&image=${encodedImage}`,- ],- },- };-}--function getChangelogPagination(slug: string) {- const changelogs = allChangelogs.sort(- (a, b) =>- new Date(b.publishedAt).getTime() - new Date(a.publishedAt).getTime(),- );- const findIndex = changelogs.findIndex(- (changelog) => changelog.slug === slug,- );- return {- prev: changelogs?.[findIndex - 1],- next: changelogs?.[findIndex + 1],- };-}--export default async function ChangelogPage(props: {- params: Promise<{ slug: string }>;-}) {- const params = await props.params;- const post = allChangelogs.find((post) => post.slug === params.slug);-- if (!post) {- notFound();- }-- const { next, prev } = getChangelogPagination(params.slug);-- return (- <>- <Breadcrumb className="mb-4 px-3 md:px-6">- <BreadcrumbList>- <BreadcrumbItem>- <BreadcrumbLink asChild>- <Link href="/changelog">Changelog</Link>- </BreadcrumbLink>- </BreadcrumbItem>- <BreadcrumbSeparator />- <BreadcrumbItem>- <BreadcrumbPage>{post.title}</BreadcrumbPage>- </BreadcrumbItem>- </BreadcrumbList>- </Breadcrumb>- <Shell className="flex flex-col gap-8 sm:py-8 md:gap-12 md:py-12">- <ChangelogCard post={post} />- <Separator className="mx-auto max-w-prose" />- <Pagination {...{ prev, next }} />- </Shell>- </>- );-}diff --git a/apps/web/src/app/(pages)/(content)/changelog/page.tsx b/apps/web/src/app/(pages)/(content)/changelog/page.tsxdeleted file mode 100644index f3c604621..000000000--- a/apps/web/src/app/(pages)/(content)/changelog/page.tsx+++ /dev/null@@ -1,99 +0,0 @@-import {- defaultMetadata,- ogMetadata,- twitterMetadata,-} from "@/app/shared-metadata";-import { Mdx } from "@/components/content/mdx";-import { Timeline } from "@/components/content/timeline";-import { Shell } from "@/components/dashboard/shell";-import {- Button,- Pagination,- PaginationContent,- PaginationLink,-} from "@openstatus/ui";-import { allChangelogs } from "content-collections";-import { Rss } from "lucide-react";-import type { Metadata } from "next";-import {- ITEMS_PER_PAGE,- MAX_PAGE_INDEX,- searchParamsCache,-} from "./search-params";--export const metadata: Metadata = {- ...defaultMetadata,- title: "Changelog",- openGraph: {- ...ogMetadata,- title: "Changelog | OpenStatus",- },- twitter: {- ...twitterMetadata,- title: "Changelog | OpenStatus",- },-};--export default async function ChangelogClient(props: {- searchParams: Promise<{ [key: string]: string | string[] | undefined }>;-}) {- const searchParams = await props.searchParams;- const { pageIndex } = searchParamsCache.parse(searchParams);-- const changelogs = allChangelogs- .sort(- (a, b) =>- new Date(b.publishedAt).getTime() - new Date(a.publishedAt).getTime(),- )- .slice(pageIndex * ITEMS_PER_PAGE, (pageIndex + 1) * ITEMS_PER_PAGE);-- return (- <Shell>- <Timeline- title="Changelog"- description="All the latest features, fixes and work to OpenStatus."- actions={- <Button variant="outline" size="icon" asChild>- <a href="/changelog/feed.xml" target="_blank" rel="noreferrer">- <Rss className="h-4 w-4" />- <span className="sr-only">RSS feed</span>- </a>- </Button>- }- >- {changelogs.map((changelog) => (- <Timeline.Article- key={changelog.slug}- publishedAt={changelog.publishedAt}- imageSrc={changelog.image}- title={changelog.title}- href={`./changelog/${changelog.slug}`}- >- <Mdx code={changelog.mdx} />- </Timeline.Article>- ))}- <div className="grid grid-cols-1 gap-4 md:grid-cols-5 md:gap-6">- <div className="row-span-2" />- <div className="w-full md:order-2 md:col-span-4">- <Pagination>- <PaginationContent>- {Array.from({ length: MAX_PAGE_INDEX + 1 }).map((_, index) => {- return (- <PaginationLink- // biome-ignore lint/suspicious/noArrayIndexKey: <explanation>- key={index}- href={`?pageIndex=${index}`}- isActive={pageIndex === index}- >- {index + 1}- </PaginationLink>- );- })}- </PaginationContent>- </Pagination>- </div>- </div>- </Timeline>- </Shell>- );-}diff --git a/apps/web/src/app/(pages)/(content)/changelog/search-params.ts b/apps/web/src/app/(pages)/(content)/changelog/search-params.tsdeleted file mode 100644index 9dea880b4..000000000--- a/apps/web/src/app/(pages)/(content)/changelog/search-params.ts+++ /dev/null@@ -1,27 +0,0 @@-import { allChangelogs } from "content-collections";-import {- createParser,- createSearchParamsCache,- parseAsInteger,-} from "nuqs/server";--const parseAsPageIndex = createParser({- parse(queryValue) {- const parsed = parseAsInteger.parse(queryValue);- if (!parsed || parsed < 0) return 0;- return Math.min(parsed, MAX_PAGE_INDEX);- },- serialize(value) {- return value.toString();- },-});--export const ITEMS_PER_PAGE = 10;-export const MAX_PAGE_INDEX =- Math.ceil(allChangelogs.length / ITEMS_PER_PAGE) - 1;--export const searchParamsParsers = {- pageIndex: parseAsPageIndex.withDefault(0),-};--export const searchParamsCache = createSearchParamsCache(searchParamsParsers);diff --git a/apps/web/src/app/(pages)/(content)/compare/[slug]/page.tsx b/apps/web/src/app/(pages)/(content)/compare/[slug]/page.tsxdeleted file mode 100644index efba80677..000000000--- a/apps/web/src/app/(pages)/(content)/compare/[slug]/page.tsx+++ /dev/null@@ -1,130 +0,0 @@-import {- defaultMetadata,- ogMetadata,- twitterMetadata,-} from "@/app/shared-metadata";-import { Shell } from "@/components/dashboard/shell";-import { BookingBanner } from "@/components/marketing/banner/booking-banner";-import { FAQs } from "@/components/marketing/faqs";-import { PricingSlider } from "@/components/marketing/pricing/pricing-slider";-import { alternativesConfig as config } from "@/config/alternatives";-import {- Breadcrumb,- BreadcrumbItem,- BreadcrumbLink,- BreadcrumbList,- BreadcrumbPage,- BreadcrumbSeparator,-} from "@openstatus/ui/src/components/breadcrumb";-import type { Metadata } from "next";-import Image from "next/image";-import Link from "next/link";-import { notFound } from "next/navigation";-import { ComparisonTable } from "../_components/comparison-table";--export async function generateStaticParams() {- return Object.keys(config).map((slug) => ({ slug }));-}-export async function generateMetadata(props: {- params: Promise<{ slug: string }>;-}): Promise<Metadata | undefined> {- const { slug } = await props.params;- const alternative = config[slug as keyof typeof config];-- if (!alternative) return;-- const { name } = alternative;- const title = `${name} vs. OpenStatus`;- const description = `Looking for a ${name} alternative? OpenStatus is an open-source alternative to ${name}. Try it out for free.`;-- const encodedTitle = encodeURIComponent(title);-- const encodedDescription = encodeURIComponent(- "Compare both and pick what fits best to you.",- );-- return {- ...defaultMetadata,- title,- description,- openGraph: {- ...ogMetadata,- title,- description,- url: `https://www.openstatus.dev/compare/${slug}`,- images: [- {- url: `https://openstatus.dev/api/og?title=${encodedTitle}&description=${encodedDescription}`,- },- ],- },- twitter: {- ...twitterMetadata,- title,- description,- images: [- {- url: `https://openstatus.dev/api/og?title=${encodedTitle}&description=${encodedDescription}`,- },- ],- },- };-}--export default async function Page({- params,-}: {- params: Promise<{ slug: string }>;-}) {- const { slug } = await params;-- const alternative = config[slug as keyof typeof config];-- if (!alternative) {- notFound();- }-- return (- <div className="flex w-full flex-col gap-4">- {/* TODO: use the breadcrump component for the changelog and blog and play pages */}- <Breadcrumb className="px-3 md:px-6">- <BreadcrumbList>- <BreadcrumbItem>- <BreadcrumbLink asChild>- <Link href="/compare">Compare</Link>- </BreadcrumbLink>- </BreadcrumbItem>- <BreadcrumbSeparator />- <BreadcrumbItem>- <BreadcrumbPage>{alternative.name}</BreadcrumbPage>- </BreadcrumbItem>- </BreadcrumbList>- </Breadcrumb>- <div className="grid gap-12">- <Shell className="space-y-12">- <div className="flex flex-col items-center gap-4">- <Image- src={alternative.logo}- alt={alternative.name}- width={60}- height={60}- className="overflow-hidden rounded-full border border-border bg-muted"- />- <h1 className="text-center font-cal text-4xl">- {alternative.name} Alternative- </h1>- <div className="mx-auto max-w-lg text-center text-lg text-muted-foreground">- <p>{alternative.description}</p>- </div>- </div>- <ComparisonTable slug={slug} />- </Shell>- <BookingBanner />- <Shell className="w-full max-w-4xl">- <PricingSlider />- </Shell>- <FAQs />- </div>- </div>- );-}diff --git a/apps/web/src/app/(pages)/(content)/compare/_components/comparison-table.tsx b/apps/web/src/app/(pages)/(content)/compare/_components/comparison-table.tsxdeleted file mode 100644index 6c60ddbeb..000000000--- a/apps/web/src/app/(pages)/(content)/compare/_components/comparison-table.tsx+++ /dev/null@@ -1,105 +0,0 @@-"use client";--import { alternativesConfig as config } from "@/config/alternatives";-import {- Table,- TableBody,- TableCaption,- TableCell,- TableHead,- TableHeader,- TableRow,-} from "@openstatus/ui/src/components/table";-import { ArrowUpRight, CircleCheck, CircleHelp, Minus } from "lucide-react";-import type React from "react";--export function ComparisonTable({ slug }: { slug: string }) {- const alternative = config[slug as keyof typeof config];- return (- <Table className="relative">- <TableCaption>- Plan comparison between OpenStatus and {alternative.name}.- </TableCaption>- <TableHeader>- <TableRow className="bg-muted/50">- <TableHead className="px-3 py-3 align-bottom">Feature</TableHead>- <TableHead className="h-auto px-3 py-3 text-center align-middle text-foreground">- OpenStatus- </TableHead>- <TableHead className="h-auto px-3 py-3 text-center align-middle text-foreground">- {alternative.name}- </TableHead>- </TableRow>- </TableHeader>- <TableBody>- {alternative.features.map(- ({ label, description, openstatus, alternative, url }, _i) => {- return (- <TableRow key={label} className="group/row">- <TableCell className="p-3">- <div className="flex flex-col gap-0.5">- <span className="font-medium">{label}</span>- {url ? (- <a- href={url}- target="_blank"- rel="noreferrer"- className="group hidden items-center gap-1 font-normal text-muted-foreground text-sm sm:flex"- >- {description}- {/* FIXME: arrow is not `text-foreground` when hovered */}- <ArrowUpRight className="h-4 w-4 shrink-0 text-transparent group-hover/row:text-muted-foreground group-hover:text-foreground" />- </a>- ) : (- <span className="hidden font-normal text-muted-foreground text-sm sm:block">- {description}- </span>- )}- </div>- </TableCell>- <TableCell className="text-center">- <Cell value={openstatus} />- </TableCell>- <TableCell className="text-center">- <Cell value={alternative} />- </TableCell>- </TableRow>- );- },- )}- </TableBody>- </Table>- );-}--function Cell({- value,-}: {- value: boolean | string | number | React.ReactNode;-}) {- if (typeof value === "boolean") {- return value ? (- <CircleCheck className="mx-auto size-5 text-green-500" />- ) : (- <Minus className="mx-auto size-5 text-muted-foreground" />- );- }-- if (- typeof value === "number" ||- (typeof value === "string" && value === "Unlimited")- ) {- return <span className="font-medium font-mono">{value}</span>;- }-- if (typeof value === "string") {- return <span className="font-medium">{value}</span>;- }-- if (typeof value === "undefined") {- // TODO check for rounded question- return <CircleHelp className="mx-auto size-5 text-muted-foreground" />;- }-- return value;-}diff --git a/apps/web/src/app/(pages)/(content)/compare/page.tsx b/apps/web/src/app/(pages)/(content)/compare/page.tsxdeleted file mode 100644index c1917f08e..000000000--- a/apps/web/src/app/(pages)/(content)/compare/page.tsx+++ /dev/null@@ -1,71 +0,0 @@-import {- defaultMetadata,- ogMetadata,- twitterMetadata,-} from "@/app/shared-metadata";-import { alternativesConfig as config } from "@/config/alternatives";-import {- Card,- CardDescription,- CardHeader,- CardTitle,-} from "@openstatus/ui/src/components/card";-import { ChevronRight } from "lucide-react";-import type { Metadata } from "next";-import Link from "next/link";--export const metadata: Metadata = {- ...defaultMetadata,- title: "Compare Alternatives",- description:- "Discover how OpenStatus compares to other services and start monitoring your website or api for free.",- openGraph: {- ...ogMetadata,- title: "Compare Alternatives",- description:- "Discover how OpenStatus compares to other services and start monitoring your website or api for free.",- },- twitter: {- ...twitterMetadata,- title: "Compare Alternatives",- description:- "Discover how OpenStatus compares to other services and start monitoring your website or api for free.",- },-};--export default function Page() {- return (- <>- <div className="mb-5 space-y-3">- <h1 className="font-cal text-4xl text-foreground">- Compare OpenStatus- </h1>- <p className="max-w-lg text-lg text-muted-foreground">- Discover how OpenStatus compares to other Uptime and Synthetic- Monitoring solutions.- </p>- </div>- <div className="grid w-full grid-cols-1 gap-4 md:grid-cols-2">- {Object.entries(config).map(([slug, alternative]) => (- <Link- key={slug}- href={`/compare/${slug}`}- className="group flex w-full flex-1"- >- <Card className="flex w-full flex-col">- <CardHeader className="flex-1">- <CardTitle>{alternative.name} Alternative</CardTitle>- <div className="flex flex-1 justify-between gap-3">- <CardDescription className="mr-3 truncate">- {alternative.description}- </CardDescription>- <ChevronRight className="h-5 w-5 shrink-0 self-end text-muted-foreground group-hover:text-foreground" />- </div>- </CardHeader>- </Card>- </Link>- ))}- </div>- </>- );-}diff --git a/apps/web/src/app/(pages)/(content)/layout.tsx b/apps/web/src/app/(pages)/(content)/layout.tsxdeleted file mode 100644index 0091be68b..000000000--- a/apps/web/src/app/(pages)/(content)/layout.tsx+++ /dev/null@@ -1,34 +0,0 @@-import { MarketingLayout } from "@/components/layout/marketing-layout";-import { ArrowRight, ChevronRight } from "lucide-react";-import Link from "next/link";-import type { ReactNode } from "react";--const DASHBOARD_V2 = true;--export default function ContentLayout({ children }: { children: ReactNode }) {- return (- <>- {DASHBOARD_V2 ? <Banner /> : null}- <MarketingLayout>{children}</MarketingLayout>- </>- );-}--function Banner() {- return (- <div className="border-b bg-muted/50 px-2 py-3 backdrop-blur-3xl">- <Link href="/blog/deploy-private-locations-raspberry-pi">- <div className="group mx-auto flex w-full max-w-4xl flex-row items-center justify-between">- <p className="font-medium">- Monitor from anywhere. Literally anywhere.- </p>- <div className="text-nowrap">- <span className="mr-1">Read more</span>- <ArrowRight className="relative mb-px inline h-4 w-0 transition-all group-hover:w-4" />- <ChevronRight className="relative mb-px inline h-4 w-4 transition-all group-hover:w-0" />- </div>- </div>- </Link>- </div>- );-}diff --git a/apps/web/src/app/(pages)/(content)/oss-friends/page.tsx b/apps/web/src/app/(pages)/(content)/oss-friends/page.tsxdeleted file mode 100644index 1b978d29a..000000000--- a/apps/web/src/app/(pages)/(content)/oss-friends/page.tsx+++ /dev/null@@ -1,46 +0,0 @@-import { ArrowUpRight } from "lucide-react";-import Link from "next/link";-import { z } from "zod";--import { Card, CardDescription, CardHeader, CardTitle } from "@openstatus/ui";--const OSSFriendSchema = z.object({- href: z.string(),- name: z.string(),- description: z.string(),-});--const OpenSourceFriends = async () => {- const res = await fetch("https://formbricks.com/api/oss-friends");- const data = await res.json();- const openSourceFriends = z.array(OSSFriendSchema).parse(data.data);- return (- <>- <h1 className="mb-5 font-cal text-4xl text-foreground">- Our OpenSource Friends- </h1>- <div className="grid grid-cols-1 gap-6 md:grid-cols-2">- {openSourceFriends.map((friend) => (- <Link- key={friend.name}- href={friend.href}- target="_blank"- className="group flex w-full flex-1"- >- <Card className="flex w-full flex-col">- <CardHeader className="flex-1">- <CardTitle>{friend.name}</CardTitle>- <div className="flex flex-1 justify-between gap-3">- <CardDescription>{friend.description}</CardDescription>- <ArrowUpRight className="h-5 w-5 shrink-0 self-end text-muted-foreground group-hover:text-foreground" />- </div>- </CardHeader>- </Card>- </Link>- ))}- </div>- </>- );-};--export default OpenSourceFriends;diff --git a/apps/web/src/app/(pages)/(content)/page.tsx b/apps/web/src/app/(pages)/(content)/page.tsxdeleted file mode 100644index 1f147a70c..000000000--- a/apps/web/src/app/(pages)/(content)/page.tsx+++ /dev/null@@ -1,104 +0,0 @@-import { AlertCard } from "@/components/marketing/alert/card";-import { CLICard } from "@/components/marketing/cli/card";-import { Hero } from "@/components/marketing/hero";-import { BottomCTA, MiddleCTA } from "@/components/marketing/in-between-cta";-import { LatestChangelogs } from "@/components/marketing/lastest-changelogs";-import { MonitoringCard } from "@/components/marketing/monitor/card";-import { Partners } from "@/components/marketing/partners";-import { Stats } from "@/components/marketing/stats";-import { StatusPageCard } from "@/components/marketing/status-page/card";-import { allPlans } from "@openstatus/db/src/schema/plan/config";-import type { Organization, Product, WebPage, WithContext } from "schema-dts";--export const revalidate = 600;--const jsonLdProduct: WithContext<Product> = {- "@context": "https://schema.org",- "@type": "Product",- name: "openstatus",- description: "Open-source uptime and synthetic monitoring with status pages.",- brand: {- "@type": "Brand",- name: "openstatus",- logo: "https://openstatus.dev/assets/logos/OpenStatus-Logo.svg",- },- offers: Object.entries(allPlans).map(([_, value]) => ({- "@type": "Offer",- price: value.price.USD,- name: value.title,- priceCurrency: "USD",- availability: "https://schema.org/InStock",- })),-};--const jsonLdOrganization: WithContext<Organization> = {- "@context": "https://schema.org",- "@type": "Organization",- name: "openstatus",- url: "https://openstatus.dev",- logo: "https://openstatus.dev/assets/logos/OpenStatus-Logo.svg",- sameAs: [- "https://github.com/openstatushq",- "https://linkedin.com/company/openstatus",- "https://bsky.app/profile/openstatus.dev",- "https://x.com/openstatushq",- ],- contactPoint: [- {- "@type": "ContactPoint",- contactType: "Support",- email: "[email protected]",- },- ],-};--const jsonLDWebpage: WithContext<WebPage> = {- "@context": "https://schema.org",- "@type": "WebPage",- name: "openstatus",- description: "Open-source uptime and synthetic monitoring with status pages.",- url: "https://openstatus.dev",- image: "https://openstatus.dev/assets/logos/OpenStatus-Logo.svg",- headline: "Showcase your uptime with a status page",-};--export default async function LandingPage() {- return (- <>- <div className="grid gap-12">- <Hero />- <Partners />- <MonitoringCard />- <Stats />- <MiddleCTA />- <StatusPageCard />- <CLICard />- <AlertCard />- <BottomCTA />- <LatestChangelogs />- </div>-- <script- type="application/ld+json"- // biome-ignore lint/security/noDangerouslySetInnerHtml: jsonLd- dangerouslySetInnerHTML={{- __html: JSON.stringify(jsonLdProduct).replace(/</g, "\\u003c"),- }}- />- <script- type="application/ld+json"- // biome-ignore lint/security/noDangerouslySetInnerHtml: jsonLd- dangerouslySetInnerHTML={{- __html: JSON.stringify(jsonLdOrganization).replace(/</g, "\\u003c"),- }}- />- <script- type="application/ld+json"- // biome-ignore lint/security/noDangerouslySetInnerHtml: jsonLd- dangerouslySetInnerHTML={{- __html: JSON.stringify(jsonLDWebpage).replace(/</g, "\\u003c"),- }}- />- </>- );-}diff --git a/apps/web/src/app/(pages)/(content)/play/checker/[id]/page.tsx b/apps/web/src/app/(pages)/(content)/play/checker/[id]/page.tsxdeleted file mode 100644index faeac1b86..000000000--- a/apps/web/src/app/(pages)/(content)/play/checker/[id]/page.tsx+++ /dev/null@@ -1,98 +0,0 @@-import type { Metadata } from "next";-import { redirect } from "next/navigation";--import { monitorRegions } from "@openstatus/db/src/schema/constants";-import { Separator } from "@openstatus/ui";--import {- defaultMetadata,- ogMetadata,- twitterMetadata,-} from "@/app/shared-metadata";-import { Shell } from "@/components/dashboard/shell";-import { CopyLinkButton } from "@/components/ping-response-analysis/copy-link-button";-import { MultiRegionTabs } from "@/components/ping-response-analysis/multi-region-tabs";-import {- getCheckerDataById,- timestampFormatter,-} from "@/components/ping-response-analysis/utils";-import { mockCheckAllRegions } from "../api/mock";-import { searchParamsCache } from "./search-params";--interface Props {- params: Promise<{ id: string }>;- searchParams: Promise<{ [key: string]: string | string[] | undefined }>;-}--export default async function CheckPage(props: Props) {- const searchParams = await props.searchParams;- const params = await props.params;- const { regions } = searchParamsCache.parse(searchParams);- const selectedRegions = regions || [...monitorRegions];-- const data =- process.env.NODE_ENV === "development"- ? await mockCheckAllRegions()- : await getCheckerDataById(params.id);-- if (!data) redirect("/play/checker");-- return (- <Shell className="flex flex-col gap-8">- <div className="flex justify-between gap-4">- <div className="flex max-w-[calc(100%-50px)] flex-col gap-1">- <h1 className="truncate text-wrap font-semibold text-lg sm:text-xl md:text-3xl">- {data.url}- </h1>- <p className="text-muted-foreground text-sm sm:text-base">- {timestampFormatter(data.timestamp)}- </p>- </div>- <div>- <CopyLinkButton />- </div>- </div>- <MultiRegionTabs- regions={data.checks}- selectedRegions={selectedRegions}- />- <Separator />- <p className="text-muted-foreground text-sm">- The data will be stored for{" "}- <span className="text-foreground">7 days</span>. If you want to persist- the data,{" "}- <a- href="https://app.openstatus.dev"- className="text-foreground underline underline-offset-4 hover:no-underline"- >- login- </a>{" "}- to your account.- </p>- </Shell>- );-}--export async function generateMetadata(props: Props): Promise<Metadata> {- const params = await props.params;- const title = "Global Speed Checker";- const description =- "API speed test and website speed checker: global latency speed test from different locations.";- return {- ...defaultMetadata,- title,- description,- twitter: {- ...twitterMetadata,- title,- description,- images: [`/api/og/checker?id=${params?.id}`],- },- openGraph: {- ...ogMetadata,- title,- description,- images: [`/api/og/checker?id=${params?.id}`],- },- };-}diff --git a/apps/web/src/app/(pages)/(content)/play/checker/[id]/search-params.ts b/apps/web/src/app/(pages)/(content)/play/checker/[id]/search-params.tsdeleted file mode 100644index a1bc7af4c..000000000--- a/apps/web/src/app/(pages)/(content)/play/checker/[id]/search-params.ts+++ /dev/null@@ -1,12 +0,0 @@-import { monitorRegions } from "@openstatus/db/src/schema/constants";-import {- createSearchParamsCache,- parseAsArrayOf,- parseAsStringLiteral,-} from "nuqs/server";--export const searchParamsParsers = {- regions: parseAsArrayOf(parseAsStringLiteral(monitorRegions)),-};--export const searchParamsCache = createSearchParamsCache(searchParamsParsers);diff --git a/apps/web/src/app/(pages)/(content)/play/checker/_components/checker-form.tsx b/apps/web/src/app/(pages)/(content)/play/checker/_components/checker-form.tsxdeleted file mode 100644index 25593371a..000000000--- a/apps/web/src/app/(pages)/(content)/play/checker/_components/checker-form.tsx+++ /dev/null@@ -1,420 +0,0 @@-"use client";--import { zodResolver } from "@hookform/resolvers/zod";-import { useRouter } from "next/navigation";-import { useState, useTransition } from "react";-import { useForm } from "react-hook-form";-import * as z from "zod";--import {- Button,- Form,- FormControl,- FormDescription,- FormField,- FormItem,- FormLabel,- FormMessage,- Input,- Select,- SelectContent,- SelectItem,- SelectTrigger,- SelectValue,- Table,- TableBody,- TableCell,- TableHead,- TableHeader,- TableRow,- Tooltip,- TooltipContent,- TooltipProvider,- TooltipTrigger,-} from "@openstatus/ui";--import { IconCloudProviderTooltip } from "@/components/icon-cloud-provider";-import { Icons } from "@/components/icons";-import { LoadingAnimation } from "@/components/loading-animation";-import {- type RegionChecker,- is32CharHex,- latencyFormatter,- regionCheckerSchema,- regionFormatter,-} from "@/components/ping-response-analysis/utils";-import { toast } from "@/lib/toast";-import { notEmpty } from "@/lib/utils";-import { AVAILABLE_REGIONS } from "@openstatus/regions";-import { regionDict } from "@openstatus/regions";-import { ArrowRight, ChevronRight, Gauge, Info, Loader } from "lucide-react";-import dynamic from "next/dynamic";-import Link from "next/link";-import { useQueryStates } from "nuqs";-import { searchParamsParsers } from "../search-params";--const FloatingActionNoSSR = dynamic(- () => import("./floating-action").then((mod) => mod.FloatingAction),- {- ssr: false,- loading: () => <></>,- },-);--/**- * IDEA we can create a list of last requests and show them in a list, but- * we will have to sync both expiration dates, for redis and localStorage- */--const METHODS = ["GET", "POST", "PUT", "DELETE"] as const;--const formSchema = z.object({- url: z.string().url(),- method: z.enum(METHODS).default("GET"),- redirect: z.boolean().default(false),-});--type FormSchema = z.infer<typeof formSchema>;--interface CheckerFormProps {- defaultValues?: FormSchema;- defaultData?: RegionChecker[];-}--export function CheckerForm({ defaultValues, defaultData }: CheckerFormProps) {- const router = useRouter();- const [isPending, startTransition] = useTransition();- const form = useForm<FormSchema>({- resolver: zodResolver(formSchema),- defaultValues,- });- const [result, setResult] = useState<RegionChecker[]>(defaultData || []);- const [{ id }, setSearchParams] = useQueryStates(searchParamsParsers);-- function onSubmit(data: FormSchema) {- startTransition(async () => {- const { url, method, redirect } = data;- try {- async function fetchAndReadStream() {- // reset the array- setResult([]);-- const toastId = toast.loading("Loading data from regions...", {- duration: Number.POSITIVE_INFINITY,- closeButton: false,- });-- try {- const response = await fetch("/play/checker/api", {- method: "POST",- body: JSON.stringify({ url, method }),- });- const reader = response?.body?.getReader();- if (!reader) return;-- const decoder = new TextDecoder();-- let done = false;- let currentResult: RegionChecker[] = [];-- while (!done) {- const { value, done: streamDone } = await reader.read();- done = streamDone;- if (value) {- const decoded = decoder.decode(value, { stream: true });- // REMINDER: validation-- if (!decoded) continue;-- const array = decoded.split("\n").filter(Boolean);-- const _result = array- .map((item) => {- try {- if (is32CharHex(item)) {- if (redirect) {- router.push(`/play/checker/${item}`);- toast.success("Data is available! Redirecting...", {- id: toastId,- duration: 2000,- });- } else {- setSearchParams({ id: item });- toast.success("Data is available!", {- id: toastId,- description: "Learn about the response details.",- action: {- label: "Details",- onClick: () =>- router.push(`/play/checker/${item}`),- },- });- }- } else {- const parsed = JSON.parse(item);- const validation =- regionCheckerSchema.safeParse(parsed);- if (!validation.success) return null;- return validation.data;- }- return null;- } catch (_e) {- return null;- }- })- .filter(notEmpty);-- if (!_result.length) continue;-- currentResult = [...currentResult, ..._result];- // setResult((prev) => [...prev, ..._result]);- setResult(currentResult);-- if (_result) {- if (_result[0].state === "success") {- toast.loading(- `Checking ${regionFormatter(- _result[0].region,- "long",- )} (${latencyFormatter(_result[0].latency)})`,- {- id: toastId,- },- );- }- }- }- }- } catch (_e) {- setSearchParams({ id: null });- toast.error("Something went wrong", {- description: "Please try again",- id: toastId,- });- } finally {- if (toastId) {- setTimeout(() => toast.dismiss(toastId), 3000);- }- }- }-- await fetchAndReadStream();- } catch (_e) {- // TODO: better error handling, including e.g. toast- form.setError("url", { message: "Something went wrong" });- }- });- }-- return (- <>- <Form {...form}>- <form onSubmit={form.handleSubmit(onSubmit)} className="grid gap-3">- <div className="grid grid-cols-4 gap-2 sm:grid-cols-5">- <FormField- control={form.control}- name="method"- render={({ field }) => (- <FormItem className="col-span-1">- <FormLabel className="sr-only">Method</FormLabel>- <Select- onValueChange={field.onChange}- defaultValue={field.value}- >- <FormControl>- <SelectTrigger>- <SelectValue />- </SelectTrigger>- </FormControl>- <SelectContent>- {METHODS.map((method) => (- <SelectItem key={method} value={method}>- {method}- </SelectItem>- ))}- </SelectContent>- </Select>- <FormMessage />- </FormItem>- )}- />- <FormField- control={form.control}- name="url"- render={({ field }) => (- <FormItem className="col-span-3">- <FormLabel className="sr-only">URL</FormLabel>- <FormControl>- <Input- placeholder="https://documenso.com"- className="bg-muted"- {...field}- />- </FormControl>- <FormMessage />- </FormItem>- )}- />- <div className="col-span-full sm:col-span-1">- <Button disabled={isPending} className="group h-10 w-full">- {isPending ? (- <LoadingAnimation />- ) : (- <>- Check{" "}- <Gauge className="[&>*:first-child]:-rotate-90 ml-1 h-4 w-4 [&>*:first-child]:origin-[12px_14px] [&>*:first-child]:transition-transform [&>*:first-child]:duration-500 [&>*:first-child]:ease-out group-hover:[&>*:first-child]:rotate-0" />- </>- )}- </Button>- </div>- <div className="-mt-1 col-span-full">- <FormDescription className="text-xs">- Access the response header, timing phases and latency.- </FormDescription>- </div>- </div>- </form>- </Form>- <div className="grid gap-4">- <TableResult result={result} loading={isPending} id={id} />- <DotLegend />- {id ? (- <Button variant="secondary" className="group" asChild>- <Link href={`/play/checker/${id}`}>- <span className="mr-1">Response Details</span>- <ArrowRight className="relative mb-px inline h-4 w-0 transition-all group-hover:w-4" />- <ChevronRight className="relative mb-px inline h-4 w-4 transition-all group-hover:w-0" />- </Link>- </Button>- ) : null}- </div>-- <FloatingActionNoSSR id={id} />- </>- );-}--function TableResult({- result,- loading,- id,-}: {- loading: boolean;- result: RegionChecker[];- id: string | null;-}) {- return (- <Table>- <TableHeader>- <TableRow>- <TableHead className="flex items-center gap-1">- <p className="w-[95px]">- Region{" "}- <span className="font-normal text-xs tabular-nums">- ({result.length}/{AVAILABLE_REGIONS.length})- </span>- </p>- {loading ? (- <Loader className="inline h-4 w-4 animate-spin" />- ) : result.length ? (- <Icons.check className="inline h-4 w-4 text-green-500" />- ) : null}- {id &&- !loading &&- result.length > 0 &&- result.length !== AVAILABLE_REGIONS.length ? (- <TooltipProvider>- <Tooltip>- <TooltipTrigger>- <Info className="h-4 w-4 text-muted-foreground" />- </TooltipTrigger>- <TooltipContent className="text-muted-foreground">- <p>Not all regions were hit.</p>- <p>- Still{" "}- <Link- href={`/play/checker/${id}`}- className="text-foreground underline underline-offset-4 hover:no-underline"- >- check the results- </Link>- ?- </p>- </TooltipContent>- </Tooltip>- </TooltipProvider>- ) : null}- </TableHead>- <TableHead className="w-[100px] text-right">Latency</TableHead>- </TableRow>- </TableHeader>- <TableBody>- {result.length > 0 ? (- result- .filter((item) => item.state === "success")- .map((item) => {- const region = regionFormatter(item.region, "long");- const latency = latencyFormatter(item.latency);- const r = regionDict[item.region];- return (- <TableRow key={item.region}>- <TableCell className="flex items-center gap-2 font-medium">- <IconCloudProviderTooltip provider={r.provider} />- {region}- <StatusDot value={item.status} />- </TableCell>- <TableCell className="text-right font-mono">- {latency}- </TableCell>- </TableRow>- );- })- ) : (- <TableRow>- <TableCell- colSpan={2}- className="border border-border border-dashed text-center"- >- No data available- </TableCell>- </TableRow>- )}- </TableBody>- </Table>- );-}--function DotLegend() {- return (- <div className="flex items-center justify-center gap-3 text-center">- {[1, 2, 3, 4, 5].map((i) => (- <div- key={i}- className="flex items-center justify-between gap-2 font-mono text-muted-foreground text-xs"- >- <StatusDot value={i * 100} />- <span>{i}xx</span>- </div>- ))}- </div>- );-}--function StatusDot({ value }: { value: number }) {- switch (String(value).charAt(0)) {- case "1":- return <div className="h-1.5 w-1.5 shrink-0 rounded-full bg-gray-500" />;- case "2":- return <div className="h-1.5 w-1.5 shrink-0 rounded-full bg-green-500" />;- case "3":- return <div className="h-1.5 w-1.5 shrink-0 rounded-full bg-blue-500" />;- case "4":- return (- <div className="h-1.5 w-1.5 shrink-0 rounded-full bg-yellow-500" />- );- case "5":- return <div className="h-1.5 w-1.5 shrink-0 rounded-full bg-red-500" />;- default:- return <div className="h-1.5 w-1.5 shrink-0 rounded-full bg-gray-500" />;- }-}diff --git a/apps/web/src/app/(pages)/(content)/play/checker/_components/checker-play.tsx b/apps/web/src/app/(pages)/(content)/play/checker/_components/checker-play.tsxdeleted file mode 100644index 6ec658b62..000000000--- a/apps/web/src/app/(pages)/(content)/play/checker/_components/checker-play.tsx+++ /dev/null@@ -1,43 +0,0 @@-import {- CardContainer,- CardDescription,- CardHeader,- CardIcon,- CardTitle,-} from "@/components/marketing/card";-import type { CachedRegionChecker } from "@/components/ping-response-analysis/utils";-import { Suspense } from "react";-import { CheckerForm } from "./checker-form";--export default async function CheckerPlay({- data,-}: {- data: CachedRegionChecker | null;-}) {- return (- <CardContainer>- <CardHeader>- <CardIcon icon="gauge" />- <CardTitle>Global Speed Checker</CardTitle>- <CardDescription className="max-w-md">- Is your{" "}- <span className="text-foreground">endpoint globally fast</span>? Test- your website and API speed from different locations.- </CardDescription>- </CardHeader>-- <div className="mx-auto grid w-full max-w-xl gap-6">- <Suspense fallback={null}>- <CheckerForm- defaultValues={- data- ? { redirect: false, ...data }- : { redirect: false, url: "", method: "GET" }- }- defaultData={data?.checks.sort((a, b) => a.latency - b.latency)}- />- </Suspense>- </div>- </CardContainer>- );-}diff --git a/apps/web/src/app/(pages)/(content)/play/checker/_components/floating-action.tsx b/apps/web/src/app/(pages)/(content)/play/checker/_components/floating-action.tsxdeleted file mode 100644index 6d0a9019c..000000000--- a/apps/web/src/app/(pages)/(content)/play/checker/_components/floating-action.tsx+++ /dev/null@@ -1,24 +0,0 @@-"use client";--import { Button } from "@openstatus/ui";-import * as Portal from "@radix-ui/react-portal";-import { ArrowRight, ChevronRight } from "lucide-react";-import Link from "next/link";--export function FloatingAction({ id }: { id: string | null }) {- if (!id) return null;-- return (- <Portal.Root>- <div className="group fixed right-4 bottom-4 z-50 mx-auto w-fit">- <Button asChild>- <Link href={`/play/checker/${id}`}>- <span className="mr-1">Response Details</span>- <ArrowRight className="relative mb-px inline h-4 w-0 transition-all group-hover:w-4" />- <ChevronRight className="relative mb-px inline h-4 w-4 transition-all group-hover:w-0" />- </Link>- </Button>- </div>- </Portal.Root>- );-}diff --git a/apps/web/src/app/(pages)/(content)/play/checker/_components/global-monitoring.tsx b/apps/web/src/app/(pages)/(content)/play/checker/_components/global-monitoring.tsxdeleted file mode 100644index b20337139..000000000--- a/apps/web/src/app/(pages)/(content)/play/checker/_components/global-monitoring.tsx+++ /dev/null@@ -1,62 +0,0 @@-import Link from "next/link";--import { Button } from "@openstatus/ui/src/components/button";--import type { ValidIcon } from "@/components/icons";-import {- CardContainer,- CardFeature,- CardHeader,- CardIcon,- CardTitle,-} from "@/components/marketing/card";-import { AVAILABLE_REGIONS } from "@openstatus/regions";--const TOTAL_REGIONS = AVAILABLE_REGIONS.length;--const features: {- icon: ValidIcon;- catchline: string;- description: string;-}[] = [- {- icon: "gauge",- catchline: "API & Website Speed Test",- description:- "Enter your URL and get a website speed check. Get insights on page load, header details and timing phases (DNS, Connect, TLS, TTFB, Transfer) of the response.",- },- {- icon: "globe",- catchline: "Global Speed Test",- description: `Monitor latency performance in different regions to ensure quick load times for users across ${TOTAL_REGIONS} regions worldwide.`,- },- {- icon: "link",- catchline: "Share the Results",- description:- "Quickly share the results of your website speed test with your team or clients. The results expire after 7 days, so you can easily collaborate on performance.",- },-];-export const GlobalMonitoring = () => {- return (- <CardContainer>- <CardHeader>- <CardIcon icon="activity" />- <CardTitle>Start monitoring your services</CardTitle>- </CardHeader>- <ul className="grid grid-cols-1 gap-4 sm:grid-cols-3 sm:gap-6">- {features?.map((feature, i) => (- <CardFeature key={i} {...feature} />- ))}- </ul>- <div className="order-first flex items-center justify-center gap-2 text-center md:order-0">- <Button variant="outline" className="rounded-full" asChild>- <Link href="/features/status-page">Status Page</Link>- </Button>- <Button className="rounded-full" asChild>- <Link href="/features/monitoring">Monitoring</Link>- </Button>- </div>- </CardContainer>- );-};diff --git a/apps/web/src/app/(pages)/(content)/play/checker/_components/informations.tsx b/apps/web/src/app/(pages)/(content)/play/checker/_components/informations.tsxdeleted file mode 100644index 154052e8a..000000000--- a/apps/web/src/app/(pages)/(content)/play/checker/_components/informations.tsx+++ /dev/null@@ -1,92 +0,0 @@-import { Shell } from "@/components/dashboard/shell";-import {- AVAILABLE_REGIONS,- type Region,- regionDict,-} from "@openstatus/regions";-import { Separator } from "@openstatus/ui";--const TOTAL_REGIONS = AVAILABLE_REGIONS.length;-const TOTAL_PROVIDERS = Object.keys(regionDict).reduce((acc, region) => {- if (AVAILABLE_REGIONS.includes(region as Region)) {- return acc.add(regionDict[region as keyof typeof regionDict].provider);- }- return acc;-}, new Set<"fly" | "koyeb" | "railway" | "private">());--export function Informations() {- return (- <Shell>- <div className="grid gap-4">- <div className="grid gap-1">- <h3 className="font-semibold">What Is a Website Speed Checker?</h3>- <p className="text-muted-foreground">- A Website Speed Checker is an online tool that measures how fast- your website or API responds when someone visits it. It analyzes- various website performance metrics to help you understand which- elements slow down your page load time.- </p>- <p className="text-muted-foreground">- Speed checkers can focus on two aspects of performance:- </p>- <ul className="ml-4 list-outside list-disc space-y-1 text-muted-foreground">- <li>- <strong className="font-semibold text-foreground">- Client-side performance- </strong>- , which includes metrics like First Contentful Paint (FCP),- Largest Contentful Paint (LCP), and Cumulative Layout Shift (CLS)- — all indicators of how quickly your site becomes visible and- usable to visitors.- </li>- <li>- <strong className="font-semibold text-foreground">- Server-side performance (or network performance)- </strong>- , which looks at the technical steps of a request such as DNS- lookup, TCP connection, TLS handshake, and server response time.- </li>- </ul>- <p className="text-muted-foreground">- Understanding both sides helps you identify whether slowdowns are- caused by your frontend assets or your backend infrastructure.- </p>- </div>- <div className="grid gap-1">- <h3 className="font-semibold">What Is a Global Speed Checker?</h3>- <p className="text-muted-foreground">- A Global Speed Checker measures your website or API's latency and- response time from multiple locations around the world. Instead of- testing from just one data center, it runs checks from{" "}- {TOTAL_REGIONS} global regions across {TOTAL_PROVIDERS.size} cloud- providers, giving you a complete picture of your site's real-world- performance.- </p>- </div>- <Separator />- <div className="grid gap-1">- <p className="text-muted-foreground">With OpenStatus, you can:</p>- <ul className="ml-4 list-outside list-disc space-y-1 text-muted-foreground">- <li>Test how fast your API or website responds worldwide.</li>- <li>Compare latency across different regions.</li>- <li>Identify network bottlenecks.</li>- <li>Monitor uptime and availability in real time.</li>- </ul>- <p className="text-muted-foreground">- Whether you want to test your website speed from Europe, Asia, North- America, or beyond, our Global Speed Checker gives accurate,- consistent data from distributed locations.- </p>- <p className="text-muted-foreground">- If you'd like to request additional test regions or providers, feel- free to contact us at{" "}- <a href="mailto:[email protected]" className="text-foreground">- </a>- .- </p>- </div>- </div>- </Shell>- );-}diff --git a/apps/web/src/app/(pages)/(content)/play/checker/_components/testimonial.tsx b/apps/web/src/app/(pages)/(content)/play/checker/_components/testimonial.tsxdeleted file mode 100644index 234b9b454..000000000--- a/apps/web/src/app/(pages)/(content)/play/checker/_components/testimonial.tsx+++ /dev/null@@ -1,26 +0,0 @@-import Image from "next/image";--export const Testimonial = () => {- return (- <div className="mx-auto max-w-2xl lg:max-w-4xl">- <figure className="grid gap-4">- <blockquote className="text-center font-semibold text-xl leading-8 before:text-muted-foreground before:content-['“'] after:text-muted-foreground after:content-['”'] sm:text-2xl sm:leading-9">- Just don't give up on your users- </blockquote>- <figcaption className="flex items-center justify-center space-x-3 text-base">- <div className="text-sm">- <div className="font-medium">Glauber Costa</div>- <div className="text-muted-foreground">CEO of Turso</div>- </div>- <div className="relative h-10 w-10 overflow-hidden rounded-full border">- <Image- fill={true}- src="/assets/checker/glauber.png"- alt="Glauber Costa"- />- </div>- </figcaption>- </figure>- </div>- );-};diff --git a/apps/web/src/app/(pages)/(content)/play/checker/layout.tsx b/apps/web/src/app/(pages)/(content)/play/checker/layout.tsxdeleted file mode 100644index 9527dab5e..000000000--- a/apps/web/src/app/(pages)/(content)/play/checker/layout.tsx+++ /dev/null@@ -1,33 +0,0 @@-import {- Breadcrumb,- BreadcrumbItem,- BreadcrumbLink,- BreadcrumbList,- BreadcrumbPage,- BreadcrumbSeparator,-} from "@openstatus/ui";-import Link from "next/link";-import type React from "react";--export default function Layout({ children }: { children: React.ReactNode }) {- return (- <>- <Breadcrumb className="mb-4 px-3 md:px-6">- <BreadcrumbList>- <BreadcrumbItem>- <BreadcrumbLink asChild>- <Link href="/play">Play</Link>- </BreadcrumbLink>- </BreadcrumbItem>- <BreadcrumbSeparator />- <BreadcrumbItem>- <BreadcrumbPage>- <Link href="/play/checker">Checker</Link>- </BreadcrumbPage>- </BreadcrumbItem>- </BreadcrumbList>- </Breadcrumb>- {children}- </>- );-}diff --git a/apps/web/src/app/(pages)/(content)/play/checker/page.tsx b/apps/web/src/app/(pages)/(content)/play/checker/page.tsxdeleted file mode 100644index e36e51cd5..000000000--- a/apps/web/src/app/(pages)/(content)/play/checker/page.tsx+++ /dev/null@@ -1,66 +0,0 @@-import type { Metadata } from "next";--import {- defaultMetadata,- ogMetadata,- twitterMetadata,-} from "@/app/shared-metadata";-import { BottomCTA } from "@/components/marketing/in-between-cta";-import { getCheckerDataById } from "@/components/ping-response-analysis/utils";-import { redirect } from "next/navigation";-import CheckerPlay from "./_components/checker-play";-import { GlobalMonitoring } from "./_components/global-monitoring";-import { Informations } from "./_components/informations";-import { Testimonial } from "./_components/testimonial";-import { mockCheckAllRegions } from "./api/mock";-import { searchParamsCache } from "./search-params";--const TITLE = "Global Speed Checker";-const DESCRIPTION =- "API speed test and website speed checker: global latency speed test from different locations.";--const OG_DESCRIPTION =- "Test the performance of your api and website from different locations.";--export const metadata: Metadata = {- ...defaultMetadata,- title: TITLE,- description: DESCRIPTION,- twitter: {- ...twitterMetadata,- title: TITLE,- description: DESCRIPTION,- images: [`/api/og?title=${TITLE}&description=${OG_DESCRIPTION}`],- },- openGraph: {- ...ogMetadata,- title: TITLE,- description: DESCRIPTION,- images: [`/api/og?title=${TITLE}&description=${OG_DESCRIPTION}`],- },-};--export default async function PlayPage(props: {- searchParams: Promise<{ [key: string]: string | string[] | undefined }>;-}) {- const searchParams = await props.searchParams;- const { id } = searchParamsCache.parse(searchParams);-- const data = id- ? process.env.NODE_ENV === "development"- ? await mockCheckAllRegions()- : await getCheckerDataById(id)- : null;-- if (id && !data) return redirect("/play/checker");-- return (- <div className="grid w-full gap-12">- <CheckerPlay data={data} />- <Testimonial />- <GlobalMonitoring />- <Informations />- <BottomCTA className="mx-auto max-w-2xl lg:max-w-4xl" />- </div>- );-}diff --git a/apps/web/src/app/(pages)/(content)/play/curl/_components/curl-form.tsx b/apps/web/src/app/(pages)/(content)/play/curl/_components/curl-form.tsxdeleted file mode 100644index 3acaf2eb6..000000000--- a/apps/web/src/app/(pages)/(content)/play/curl/_components/curl-form.tsx+++ /dev/null@@ -1,297 +0,0 @@-"use client";--import { useDebounce } from "@/hooks/use-debounce";-import { toast } from "@/lib/toast";-import { copyToClipboard } from "@/lib/utils";-import { zodResolver } from "@hookform/resolvers/zod";-import {- Button,- Checkbox,- Form,- FormControl,- FormDescription,- FormField,- FormItem,- FormLabel,- FormMessage,- Input,- Select,- SelectContent,- SelectItem,- SelectTrigger,- SelectValue,- Separator,- Textarea,-} from "@openstatus/ui";-import { X } from "lucide-react";-import { useCallback } from "react";-import { useFieldArray, useForm } from "react-hook-form";-import { z } from "zod";--const methods = ["GET", "POST", "PUT", "PATCH", "DELETE"] as const;--const formSchema = z.object({- method: z.enum(methods).default("GET"),- url: z.string().url().default(""),- body: z.string().default(""),- verbose: z.boolean().default(false),- insecure: z.boolean().default(false),- json: z.boolean().default(false),- headers: z- .array(z.object({ key: z.string(), value: z.string() }))- .default([]),-});--export function CurlForm({- defaultValues,-}: {- defaultValues?: z.infer<typeof formSchema>;-}) {- const form = useForm<z.infer<typeof formSchema>>({- resolver: zodResolver(formSchema),- defaultValues,- });- const { fields, append, remove } = useFieldArray({- name: "headers",- control: form.control,- });-- const formValues = form.watch();- const debouncedformValues = useDebounce(formValues, 300);-- const onSubmit = useCallback((values: z.infer<typeof formSchema>) => {- copyToClipboard(generateCurlCommand(values));- toast("CURL copied to clipboard");- }, []);-- return (- <Form {...form}>- <form onSubmit={form.handleSubmit(onSubmit)} className="space-y-3">- <FormField- control={form.control}- name="method"- render={({ field }) => (- <FormItem>- <FormLabel>Method</FormLabel>- <Select onValueChange={field.onChange} defaultValue={field.value}>- <FormControl>- <SelectTrigger>- <SelectValue placeholder="Select an HTTP method" />- </SelectTrigger>- </FormControl>- <SelectContent>- {methods.map((method) => (- <SelectItem key={method} value={method}>- {method}- </SelectItem>- ))}- </SelectContent>- </Select>- <FormDescription>- Specify the request method to use.- </FormDescription>- <FormMessage />- </FormItem>- )}- />- <FormField- control={form.control}- name="url"- render={({ field }) => (- <FormItem>- <FormLabel>URL</FormLabel>- <FormControl>- <Input placeholder="https://openstat.us" {...field} />- </FormControl>- <FormDescription>The URL to send the request to.</FormDescription>- <FormMessage />- </FormItem>- )}- />- <div className="space-y-2 sm:col-span-full">- <FormLabel>Request Header</FormLabel>- {fields.map((field, index) => (- <div key={field.id} className="grid grid-cols-6 gap-4">- <FormField- control={form.control}- name={`headers.${index}.key`}- render={({ field }) => (- <FormItem className="col-span-2">- <FormControl>- <Input placeholder="Authorization" {...field} />- </FormControl>- </FormItem>- )}- />- <div className="col-span-4 flex items-center space-x-2">- <FormField- control={form.control}- name={`headers.${index}.value`}- render={({ field }) => (- <FormItem className="w-full">- <FormControl>- <Input placeholder="Bearer <your-token>" {...field} />- </FormControl>- </FormItem>- )}- />- <Button- size="icon"- variant="ghost"- type="button"- onClick={() => remove(index)}- >- <X className="h-4 w-4" />- </Button>- </div>- </div>- ))}- <div>- <Button- type="button"- variant="secondary"- size="sm"- onClick={() => append({ key: "", value: "" })}- >- Add a custom header- </Button>- </div>- </div>- <FormField- control={form.control}- name="body"- render={({ field }) => (- <FormItem>- <FormLabel>Body</FormLabel>- <FormControl>- <Textarea- placeholder={`{ "status": "operational" }`}- {...field}- />- </FormControl>- <FormDescription>- The data payload to send with the request.- </FormDescription>- <FormMessage />- </FormItem>- )}- />- <Separator />- <FormField- control={form.control}- name="json"- render={({ field }) => (- <FormItem className="flex flex-row items-start space-x-3 space-y-0">- <FormControl>- <Checkbox- checked={field.value}- onCheckedChange={field.onChange}- />- </FormControl>- <div className="space-y-1 leading-none">- <FormLabel>JSON Content-Type</FormLabel>- <FormDescription>- Set the <code>Content-Type</code> header to{" "}- <code>application/json</code>.- </FormDescription>- </div>- </FormItem>- )}- />- <FormField- control={form.control}- name="verbose"- render={({ field }) => (- <FormItem className="flex flex-row items-start space-x-3 space-y-0">- <FormControl>- <Checkbox- checked={field.value}- onCheckedChange={field.onChange}- />- </FormControl>- <div className="space-y-1 leading-none">- <FormLabel>Verbose</FormLabel>- <FormDescription>- Make the operation more talkative.- </FormDescription>- </div>- </FormItem>- )}- />- <FormField- control={form.control}- name="insecure"- render={({ field }) => (- <FormItem className="flex flex-row items-start space-x-3 space-y-0">- <FormControl>- <Checkbox- checked={field.value}- onCheckedChange={field.onChange}- />- </FormControl>- <div className="space-y-1 leading-none">- <FormLabel>Accept self-signed certificats</FormLabel>- <FormDescription>- Allow insecure server connections.- </FormDescription>- </div>- </FormItem>- )}- />- <Separator />- <Textarea- value={generateCurlCommand(debouncedformValues)}- className="font-mono"- aria-readonly- readOnly- />- <Button type="submit" className="w-full">- Copy to Clipboard- </Button>- </form>- </Form>- );-}--function generateCurlCommand(form: z.infer<typeof formSchema>) {- const { method, url, body, verbose, insecure, json, headers } = form;-- let curlCommand = "curl";-- if (method) {- curlCommand += ` -X ${method}`;- }-- if (url) {- curlCommand += ` "${url}" \\\n`;- } else {- // force a new line if there is no URL- curlCommand += " \\\n";- }-- for (const header of headers) {- const { key, value } = header;- if (key && value) {- curlCommand += ` -H "${key}: ${value}" \\\n`;- }- }-- if (json) {- curlCommand += ' -H "Content-Type: application/json" \\\n';- }-- if (body?.trim()) {- curlCommand += ` -d '${body.trim()}' \\\n`;- }-- if (verbose) {- curlCommand += " -v \\\n";- }-- if (insecure) {- curlCommand += " -k \\\n";- }-- // Remove the trailing ` \` at the end- return curlCommand.trim().slice(0, -2);-}diff --git a/apps/web/src/app/(pages)/(content)/play/curl/layout.tsx b/apps/web/src/app/(pages)/(content)/play/curl/layout.tsxdeleted file mode 100644index eec6ed0a5..000000000--- a/apps/web/src/app/(pages)/(content)/play/curl/layout.tsx+++ /dev/null@@ -1,31 +0,0 @@-import {- Breadcrumb,- BreadcrumbItem,- BreadcrumbLink,- BreadcrumbList,- BreadcrumbPage,- BreadcrumbSeparator,-} from "@openstatus/ui";-import Link from "next/link";-import type React from "react";--export default function Layout({ children }: { children: React.ReactNode }) {- return (- <>- <Breadcrumb className="mb-4 px-3 md:px-6">- <BreadcrumbList>- <BreadcrumbItem>- <BreadcrumbLink asChild>- <Link href="/play">Play</Link>- </BreadcrumbLink>- </BreadcrumbItem>- <BreadcrumbSeparator />- <BreadcrumbItem>- <BreadcrumbPage>cURL</BreadcrumbPage>- </BreadcrumbItem>- </BreadcrumbList>- </Breadcrumb>- {children}- </>- );-}diff --git a/apps/web/src/app/(pages)/(content)/play/curl/page.tsx b/apps/web/src/app/(pages)/(content)/play/curl/page.tsxdeleted file mode 100644index d2b562261..000000000--- a/apps/web/src/app/(pages)/(content)/play/curl/page.tsx+++ /dev/null@@ -1,92 +0,0 @@-import {- defaultMetadata,- ogMetadata,- twitterMetadata,-} from "@/app/shared-metadata";-import { Shell } from "@/components/dashboard/shell";-import {- CardContainer,- CardDescription,- CardHeader,- CardIcon,- CardTitle,-} from "@/components/marketing/card";-import { BottomCTA } from "@/components/marketing/in-between-cta";-import type { Metadata } from "next";-import { CurlForm } from "./_components/curl-form";--const title = "cURL Builder";-const description =- "An online curl command line builder. Generate curl commands to test your API endpoints.";--export const metadata: Metadata = {- ...defaultMetadata,- title,- description,- twitter: {- ...twitterMetadata,- title,- description,- images: [`/api/og?title=${title}&description=${description}`],- },- openGraph: {- ...ogMetadata,- title,- description,- images: [`/api/og?title=${title}&description=${description}`],- },-};--export default function CurlBuilder() {- return (- <div className="grid h-full w-full gap-12">- <CardContainer>- <CardHeader>- <CardIcon icon="terminal" />- <CardTitle>cURL Builder</CardTitle>- <CardDescription className="max-w-md">- An online curl command line builder. Generate curl commands to test- your API endpoints.- </CardDescription>- </CardHeader>- <div className="mx-auto grid w-full max-w-xl gap-8">- <CurlForm- defaultValues={{- method: "GET",- url: "",- body: "",- verbose: false,- insecure: false,- json: false,- headers: [],- }}- />- </div>- </CardContainer>- <Informations />- <BottomCTA />- </div>- );-}--function Informations() {- return (- <Shell>- <div className="grid gap-1">- <h3 className="font-semibold">What is cURL?</h3>- <p className="text-muted-foreground">- cURL (Client URL) is a command-line tool and library for transferring- data with URLs. It supports various protocols like HTTP, HTTPS, FTP,- and more, making it a versatile choice for testing APIs, downloading- files, or performing network tasks. Its simplicity and power come from- the ability to execute complex operations through straightforward- commands.- </p>- <p className="text-muted-foreground">- cURL is available on most operating systems, including Linux, macOS,- and Windows.- </p>- </div>- </Shell>- );-}diff --git a/apps/web/src/app/(pages)/(content)/play/curl/search-params.ts b/apps/web/src/app/(pages)/(content)/play/curl/search-params.tsdeleted file mode 100644index 0c20ad993..000000000--- a/apps/web/src/app/(pages)/(content)/play/curl/search-params.ts+++ /dev/null@@ -1,29 +0,0 @@-import {- createSearchParamsCache,- parseAsArrayOf,- parseAsBoolean,- parseAsJson,- parseAsString,- parseAsStringLiteral,-} from "nuqs/server";-import { z } from "zod";--// REMINDER: not used, but could be useful for future reference-export const searchParamsParsers = {- method: parseAsStringLiteral(["GET", "POST", "PUT", "PATCH", "DELETE"]),- url: parseAsString,- body: parseAsString,- verbose: parseAsBoolean,- insecure: parseAsBoolean,- json: parseAsBoolean,- headers: parseAsArrayOf(- parseAsJson(- z.object({- key: z.string(),- value: z.string(),- }).parse,- ),- ),-};--export const searchParamsCache = createSearchParamsCache(searchParamsParsers);diff --git a/apps/web/src/app/(pages)/(content)/play/default.tsx b/apps/web/src/app/(pages)/(content)/play/default.tsxdeleted file mode 100644index 6ddf1b76f..000000000--- a/apps/web/src/app/(pages)/(content)/play/default.tsx+++ /dev/null@@ -1,3 +0,0 @@-export default function Default() {- return null;-}diff --git a/apps/web/src/app/(pages)/(content)/play/page.tsx b/apps/web/src/app/(pages)/(content)/play/page.tsxdeleted file mode 100644index c611df99b..000000000--- a/apps/web/src/app/(pages)/(content)/play/page.tsx+++ /dev/null@@ -1,131 +0,0 @@-import {- Activity,- Clock,- FileCode,- Gauge,- Package,- Palette,- PanelTop,- ShieldCheck,- Table,- Terminal,-} from "lucide-react";-import type { Metadata } from "next";--import type { CardProps } from "@/components/play/card";-import { Card } from "@/components/play/card";-import {- defaultMetadata,- ogMetadata,- twitterMetadata,-} from "../../../shared-metadata";--export const metadata: Metadata = {- ...defaultMetadata,- title: "Free Tools ",- openGraph: {- ...ogMetadata,- title: "Free Tools",- url: "https://www.openstatus.dev/play",- },- twitter: {- ...twitterMetadata,- title: "Free Tools",- },-};--export default async function PlayPage() {- return (- <>- <div className="grid w-full grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-3">- {playgrounds.map((play, i) => {- const isFirst = i === 0;- return (- <Card- key={play.href}- className={isFirst ? "sm:col-span-2" : undefined}- {...play}- />- );- })}- </div>- </>- );-}--const playgrounds: CardProps[] = [- {- href: "/play/checker",- title: "Global Speed Checker",- description:- "Get speed insights for your api, website from multiple regions. No account needed.",- icon: Gauge,- variant: "primary",- },- {- href: "/play/curl",- title: "cURL Builder",- description: "Easily generate curl commands to test your API endpoints.",- icon: Terminal,- },- {- href: "/play/uptime-sla",- title: "Uptime SLA Calculator",- description:- "Calculate uptime SLA percentages, allowed downtime, and service availability metrics.",- icon: ShieldCheck,- },- {- href: "https://themes.openstatus.dev",- title: "Theme Explorer",- description: "Explore our collection of themes for your status page.",- icon: Palette,- },- {- href: "https://light.openstatus.dev",- title: "Vercel Edge Ping",- description:- "Lightweight one-click self-hostable checker for vercel's edge network.",- icon: Package,- },- {- href: "/public/monitors/1",- title: "Public Dashboard",- description: "Get a demo of what data we collect for your monitor.",- icon: Activity,- },- {- href: "/play/status",- title: "Status Page",- description: "Get a status page for your website or api.",- icon: PanelTop,- },- {- href: "https://astro.openstat.us",- title: "Custom Astro Status Page",- description:- "Grab your API key and create a custom status page with our Astro starter.",- icon: Palette,- },- {- href: "https://time.openstatus.dev",- title: "Shadcn UI Time Picker",- description:- "The missing time picker for your next project. Supports 12 hour and 24 hour formats. Fully accessible.",- icon: Clock,- },- {- href: "https://openstat.us",- title: "All Status Codes",- description:- "Use the endpoint to return the desired error code for testing purposes.",- icon: FileCode,- },- {- href: "https://logs.run",- title: "Data Table Demo",- description:- "Tanstack table with sorting, filtering, and infinite scroll. Combined with cmdk.",- icon: Table,- },-];diff --git a/apps/web/src/app/(pages)/(content)/play/status/_components/status-play.tsx b/apps/web/src/app/(pages)/(content)/play/status/_components/status-play.tsxdeleted file mode 100644index c2baad259..000000000--- a/apps/web/src/app/(pages)/(content)/play/status/_components/status-play.tsx+++ /dev/null@@ -1,39 +0,0 @@-import {- CardContainer,- CardDescription,- CardHeader,- CardIcon,- CardTitle,-} from "@/components/marketing/card";-import { Tracker } from "@/components/tracker/tracker";-import { prepareStatusByPeriod } from "@/lib/tb";-import { getServerTimezoneFormat } from "@/lib/timezone";--export default async function StatusPlay() {- const res = await prepareStatusByPeriod("45d").getData({ monitorId: "1" });- const formattedServerDate = getServerTimezoneFormat();-- return (- <CardContainer>- <CardHeader>- <CardIcon icon="panel-top" />- <CardTitle>Status Page</CardTitle>- <CardDescription className="max-w-md">- Gain the trust of your users by showing them the uptime of your API or- website.- </CardDescription>- </CardHeader>- <div className="relative grid gap-4">- <div className="mx-auto w-full max-w-md">- {res.data && (- <Tracker data={res.data} name="Ping" description="Pong" />- )}- </div>- <p className="text-center text-muted-foreground text-sm">- {formattedServerDate}- </p>- {/* REMINDER: more playground component */}- </div>- </CardContainer>- );-}diff --git a/apps/web/src/app/(pages)/(content)/play/status/layout.tsx b/apps/web/src/app/(pages)/(content)/play/status/layout.tsxdeleted file mode 100644index 2517a0c24..000000000--- a/apps/web/src/app/(pages)/(content)/play/status/layout.tsx+++ /dev/null@@ -1,31 +0,0 @@-import {- Breadcrumb,- BreadcrumbItem,- BreadcrumbLink,- BreadcrumbList,- BreadcrumbPage,- BreadcrumbSeparator,-} from "@openstatus/ui";-import Link from "next/link";-import type React from "react";--export default function Layout({ children }: { children: React.ReactNode }) {- return (- <>- <Breadcrumb className="mb-4 px-3 md:px-6">- <BreadcrumbList>- <BreadcrumbItem>- <BreadcrumbLink asChild>- <Link href="/play">Play</Link>- </BreadcrumbLink>- </BreadcrumbItem>- <BreadcrumbSeparator />- <BreadcrumbItem>- <BreadcrumbPage>Status Page</BreadcrumbPage>- </BreadcrumbItem>- </BreadcrumbList>- </Breadcrumb>- {children}- </>- );-}diff --git a/apps/web/src/app/(pages)/(content)/play/status/page.tsx b/apps/web/src/app/(pages)/(content)/play/status/page.tsxdeleted file mode 100644index 057408373..000000000--- a/apps/web/src/app/(pages)/(content)/play/status/page.tsx+++ /dev/null@@ -1,30 +0,0 @@-import { env } from "@/env";-import type { Metadata } from "next";-import StatusPlay from "./_components/status-play";--export const metadata: Metadata = {- title: "Status Page Preview",- description: "Display your status page with real time data.",- openGraph: {- title: "Status Page Preview",- description: "Display your status page with real time data.",- url: "https://www.openstatus.dev/play/status",- },-};--export const revalidate = 600;--export default async function PlayPage() {- const hasValidApiKey =- env.TINY_BIRD_API_KEY && env.TINY_BIRD_API_KEY !== "tiny-bird-api-key";-- if (!hasValidApiKey) {- return <div>Preview requires valid API configuration</div>;- }-- return (- <div className="w-full">- <StatusPlay />- </div>- );-}diff --git a/apps/web/src/app/(pages)/(content)/play/uptime-sla/_components/uptime-sla-form.tsx b/apps/web/src/app/(pages)/(content)/play/uptime-sla/_components/uptime-sla-form.tsxdeleted file mode 100644index f9d69685b..000000000--- a/apps/web/src/app/(pages)/(content)/play/uptime-sla/_components/uptime-sla-form.tsx+++ /dev/null@@ -1,333 +0,0 @@-"use client";--import { zodResolver } from "@hookform/resolvers/zod";-import {- Badge,- Button,- Form,- FormDescription,- FormField,- FormItem,- FormLabel,- FormMessage,- InputWithAddons,- Tabs,- TabsContent,- TabsList,- TabsTrigger,-} from "@openstatus/ui";-import { Clock, Percent } from "lucide-react";-import { useForm } from "react-hook-form";-import { z } from "zod";--const periods = ["days", "weeks", "months", "years"] as const;--const periodsInSeconds = {- days: 24 * 60 * 60,- weeks: 24 * 60 * 60 * 7,- months: 24 * 60 * 60 * 30,- years: 24 * 60 * 60 * 365,-} satisfies Record<(typeof periods)[number], number>;--// Parse downtime string like "11h 30m 10s" or "1d 2h 30m" to seconds-function parseDowntimeToSeconds(downtime: string): number {- if (!downtime.trim()) return 0;-- const regex = /(\d+)\s*(d|h|m|s)/g;- let totalSeconds = 0;- let match: RegExpExecArray | null = null;-- // biome-ignore lint/suspicious/noAssignInExpressions: <explanation>- while ((match = regex.exec(downtime)) !== null) {- const value = Number.parseInt(match[1], 10);- const unit = match[2];-- switch (unit) {- case "w":- totalSeconds += value * 24 * 60 * 60 * 7; // weeks- break;- case "d":- totalSeconds += value * 24 * 60 * 60; // days- break;- case "h":- totalSeconds += value * 60 * 60; // hours- break;- case "m":- totalSeconds += value * 60; // minutes- break;- case "s":- totalSeconds += value; // seconds- break;- }- }-- return totalSeconds;-}--// Calculate uptime percentage from downtime seconds and period-function calculateUptimePercentage(- downtimeSeconds: number,- periodSeconds: number,-): number {- if (downtimeSeconds >= periodSeconds) return 0;- const uptimeSeconds = periodSeconds - downtimeSeconds;- return (uptimeSeconds / periodSeconds) * 100;-}--// Format seconds into human-readable format (days, hours, minutes, seconds)-function formatDuration(seconds: number): string {- if (seconds === 0) return "0s";-- const days = Math.floor(seconds / (24 * 60 * 60));- const hours = Math.floor((seconds % (24 * 60 * 60)) / (60 * 60));- const minutes = Math.floor((seconds % (60 * 60)) / 60);- const remainingSeconds = Math.floor(seconds % 60);-- const parts: string[] = [];-- if (days > 0) parts.push(`${days}d`);- if (hours > 0) parts.push(`${hours}h`);- if (minutes > 0) parts.push(`${minutes}m`);- if (remainingSeconds > 0) parts.push(`${remainingSeconds}s`);-- return parts.join(" ");-}--const formSchema = z.object({- uptime: z.number().min(0).max(100).default(99.99),- downtime: z.string(), // 1h 10m 30s-});--export function UptimeSLAForm({- defaultValues,-}: {- defaultValues?: z.infer<typeof formSchema>;-}) {- const form = useForm<z.infer<typeof formSchema>>({- resolver: zodResolver(formSchema),- defaultValues,- });-- const watchUptime = form.watch("uptime");- const watchDowntime = form.watch("downtime");-- return (- <Form {...form}>- <form- onSubmit={form.handleSubmit((data) => {- console.log(data);- })}- className="w-full"- >- <Tabs defaultValue="uptime" className="w-full">- <TabsList className="w-full">- <TabsTrigger value="uptime" className="w-full">- <span className="block sm:hidden">Uptime</span>- <span className="hidden sm:block">Uptime Percentage</span>- </TabsTrigger>- <TabsTrigger value="downtime" className="w-full">- <span className="block sm:hidden">Downtime</span>- <span className="hidden sm:block">Downtime Duration</span>- </TabsTrigger>- </TabsList>- <TabsContent value="uptime" className="grid gap-4">- <div className="grid gap-3 sm:grid-cols-2">- <FormField- control={form.control}- name="uptime"- render={({ field }) => (- <FormItem>- <FormLabel className="sr-only">Uptime</FormLabel>- <InputWithAddons- type="number"- placeholder="99.99"- leading={<Percent className="mt-1 size-4" />}- step={0.01}- min={0}- max={100}- {...field}- onChange={(e) => {- // Convert comma to dot for parsing, but keep comma in display- const normalizedValue = e.target.value.replace(- ",",- ".",- );- const value = Number.parseFloat(normalizedValue);- if (Number.isNaN(value)) {- field.onChange("");- } else {- field.onChange(value);- }- }}- />- <FormDescription>uptime percentage</FormDescription>- <FormMessage />- </FormItem>- )}- />- <div>- <div className="flex flex-wrap gap-0.5">- <Button- size="sm"- variant={watchUptime === 99.9 ? "default" : "outline"}- onClick={() => form.setValue("uptime", 99.9)}- asChild- >- <Badge variant="outline" className="h-6 rounded-full px-2">- three nines- </Badge>- </Button>- <Button- size="sm"- variant={watchUptime === 99.99 ? "default" : "outline"}- onClick={() => form.setValue("uptime", 99.99)}- asChild- >- <Badge variant="outline" className="h-6 rounded-full px-2">- four nines- </Badge>- </Button>- <Button- size="sm"- variant={watchUptime === 99.999 ? "default" : "outline"}- onClick={() => form.setValue("uptime", 99.999)}- asChild- >- <Badge variant="outline" className="h-6 rounded-full px-2">- five nines- </Badge>- </Button>- <Button- size="sm"- variant={watchUptime === 99.9999 ? "default" : "outline"}- onClick={() => form.setValue("uptime", 99.9999)}- asChild- >- <Badge variant="outline" className="h-6 rounded-full px-2">- six nines- </Badge>- </Button>- </div>- </div>- </div>- <div>- <ul className="list-inside list-disc marker:text-muted-foreground/50">- {periods.map((period) => {- const totalSeconds =- (watchUptime * periodsInSeconds[period]) / 100;- const allowedDowntimeSeconds =- periodsInSeconds[period] - totalSeconds;- return (- <li key={period}>- <span className="text-muted-foreground capitalize">- {period} reporting:- </span>{" "}- <span className="font-medium">- {formatDuration(Math.round(allowedDowntimeSeconds))}- </span>{" "}- <span className="text-muted-foreground">downtime</span>- </li>- );- })}- </ul>- </div>- </TabsContent>- <TabsContent value="downtime" className="grid gap-4">- <div className="grid gap-3 sm:grid-cols-2">- <FormField- control={form.control}- name="downtime"- render={({ field }) => (- <FormItem>- <FormLabel className="sr-only">Downtime</FormLabel>- <InputWithAddons- leading={<Clock className="mt-1 size-4" />}- type="text"- placeholder="11h 30m 10s"- {...field}- />- <FormDescription>- downtime duration, e.g.{" "}- <code className="font-mono text-foreground">- 1d 11h 30m 10s- </code>- </FormDescription>- <FormMessage />- </FormItem>- )}- />- <div>- <div className="flex gap-0.5">- <Button- size="sm"- variant={watchDowntime === "1m" ? "default" : "outline"}- onClick={() => form.setValue("downtime", "1m")}- asChild- >- <Badge variant="outline" className="h-6 rounded-full px-2">- 1m- </Badge>- </Button>- <Button- size="sm"- variant={watchDowntime === "1h" ? "default" : "outline"}- onClick={() => form.setValue("downtime", "1h")}- asChild- >- <Badge variant="outline" className="h-6 rounded-full px-2">- 1h- </Badge>- </Button>- <Button- size="sm"- variant={watchDowntime === "1h 30m" ? "default" : "outline"}- onClick={() => form.setValue("downtime", "1h 30m")}- asChild- >- <Badge variant="outline" className="h-6 rounded-full px-2">- 1h 30m- </Badge>- </Button>- <Button- size="sm"- variant={watchDowntime === "1d" ? "default" : "outline"}- onClick={() => form.setValue("downtime", "1d")}- asChild- >- <Badge variant="outline" className="h-6 rounded-full px-2">- 1d- </Badge>- </Button>- </div>- </div>- </div>- <div>- <ul className="list-inside list-disc marker:text-muted-foreground/50">- {periods.map((period) => {- const downtimeSeconds = parseDowntimeToSeconds(watchDowntime);- const periodSeconds = periodsInSeconds[period];- const uptimePercentage = calculateUptimePercentage(- downtimeSeconds,- periodSeconds,- );-- return (- <li key={period}>- <span className="text-muted-foreground capitalize">- {period} reporting:- </span>{" "}- <span className="font-medium">- {uptimePercentage.toFixed(5)}%{" "}- <span className="text-muted-foreground">uptime</span>- </span>- </li>- );- })}- </ul>- </div>- </TabsContent>- </Tabs>- </form>- </Form>- );-}diff --git a/apps/web/src/app/(pages)/(content)/play/uptime-sla/layout.tsx b/apps/web/src/app/(pages)/(content)/play/uptime-sla/layout.tsxdeleted file mode 100644index 493466360..000000000--- a/apps/web/src/app/(pages)/(content)/play/uptime-sla/layout.tsx+++ /dev/null@@ -1,31 +0,0 @@-import {- Breadcrumb,- BreadcrumbItem,- BreadcrumbLink,- BreadcrumbList,- BreadcrumbPage,- BreadcrumbSeparator,-} from "@openstatus/ui";-import Link from "next/link";-import type React from "react";--export default function Layout({ children }: { children: React.ReactNode }) {- return (- <>- <Breadcrumb className="mb-4 px-3 md:px-6">- <BreadcrumbList>- <BreadcrumbItem>- <BreadcrumbLink asChild>- <Link href="/play">Play</Link>- </BreadcrumbLink>- </BreadcrumbItem>- <BreadcrumbSeparator />- <BreadcrumbItem>- <BreadcrumbPage>Uptime SLA Calculator</BreadcrumbPage>- </BreadcrumbItem>- </BreadcrumbList>- </Breadcrumb>- {children}- </>- );-}diff --git a/apps/web/src/app/(pages)/(content)/play/uptime-sla/page.tsx b/apps/web/src/app/(pages)/(content)/play/uptime-sla/page.tsxdeleted file mode 100644index 1989349bf..000000000--- a/apps/web/src/app/(pages)/(content)/play/uptime-sla/page.tsx+++ /dev/null@@ -1,97 +0,0 @@-import {- defaultMetadata,- ogMetadata,- twitterMetadata,-} from "@/app/shared-metadata";-import { Shell } from "@/components/dashboard/shell";-import {- CardContainer,- CardDescription,- CardHeader,- CardIcon,- CardTitle,-} from "@/components/marketing/card";-import { BottomCTA } from "@/components/marketing/in-between-cta";-import type { Metadata } from "next";-import { UptimeSLAForm } from "./_components/uptime-sla-form";--const title = "Uptime SLA Calculator";-const description =- "Calculate uptime SLA percentages, allowed downtime, and service availability metrics. Free tool for monitoring uptime across days, weeks, months, and years. Perfect for SLA planning and compliance.";--export const metadata: Metadata = {- ...defaultMetadata,- title,- description,- twitter: {- ...twitterMetadata,- title,- description,- images: [`/api/og?title=${title}&description=${description}`],- },- openGraph: {- ...ogMetadata,- title,- description,- images: [`/api/og?title=${title}&description=${description}`],- },-};--export default function CurlBuilder() {- return (- <div className="grid h-full w-full gap-12">- <CardContainer>- <CardHeader>- <CardIcon icon="shield-check" />- <CardTitle>Uptime SLA Calculator</CardTitle>- <CardDescription className="max-w-md">- Calculate allowed downtime from uptime percentages or determine- uptime percentages from actual downtime. Supports multiple reporting- periods and SLA tiers.- </CardDescription>- </CardHeader>- <div className="mx-auto grid w-full max-w-xl gap-8">- <UptimeSLAForm- defaultValues={{- uptime: 99.99,- downtime: "1m",- }}- />- <p className="text-center text-muted-foreground text-sm">- All calculations assume continuous 24/7 availability requirements.- </p>- </div>- </CardContainer>- <Informations />- <BottomCTA />- </div>- );-}--//-function Informations() {- return (- <Shell>- <div className="grid gap-1">- <h3 className="font-semibold">Understanding Uptime SLA</h3>- <p className="text-muted-foreground">- Service Level Agreements (SLAs) define the expected performance and- availability of your services. Understanding uptime percentages and- their corresponding downtime allowances is crucial for maintaining- customer trust and meeting compliance requirements.- </p>- <p className="text-muted-foreground">- Common SLA tiers include 99.9% (three nines), 99.99% (four nines), and- 99.999% (five nines), each representing different levels of- reliability. For example, 99.9% uptime allows for 8.77 hours of- downtime per year, while 99.99% allows only 52.6 minutes annually.- </p>- <p className="text-muted-foreground">- This calculator helps you understand the real-world impact of your SLA- commitments and plan for capacity, incident response, and stakeholder- expectations.- </p>- </div>- </Shell>- );-}diff --git a/apps/web/src/app/(pages)/(content)/pricing/page.tsx b/apps/web/src/app/(pages)/(content)/pricing/page.tsxdeleted file mode 100644index 263d8c98a..000000000--- a/apps/web/src/app/(pages)/(content)/pricing/page.tsx+++ /dev/null@@ -1,49 +0,0 @@-import type { Metadata } from "next";--import {- defaultMetadata,- ogMetadata,- twitterMetadata,-} from "@/app/shared-metadata";-import { Shell } from "@/components/dashboard/shell";-import { FAQs } from "@/components/marketing/faqs";-import { EnterpricePlan } from "@/components/marketing/pricing/enterprice-plan";-import { PricingSlider } from "@/components/marketing/pricing/pricing-slider";-import { PricingWrapperSuspense } from "@/components/marketing/pricing/pricing-wrapper";-import { Separator } from "@openstatus/ui";--export const metadata: Metadata = {- ...defaultMetadata,- title: "Pricing",- openGraph: {- ...ogMetadata,- title: "Pricing",- url: "https://www.openstatus.dev/pricing",- },- twitter: {- ...twitterMetadata,- title: "Pricing",- },-};--export default function PricingPage() {- return (- <div className="grid w-full gap-6">- <Shell className="grid w-full gap-12">- <div className="grid gap-3 text-center">- <h1 className="font-cal text-4xl text-foreground">Pricing</h1>- <p className="text-muted-foreground">- All plans. Start free today, upgrade later.- </p>- </div>- <PricingWrapperSuspense />- <Separator />- <PricingSlider />- </Shell>- <Shell>- <EnterpricePlan />- </Shell>- <FAQs />- </div>- );-}diff --git a/apps/web/src/app/(pages)/about/_components/member.tsx b/apps/web/src/app/(pages)/about/_components/member.tsxdeleted file mode 100644index 624134e6e..000000000--- a/apps/web/src/app/(pages)/about/_components/member.tsx+++ /dev/null@@ -1,43 +0,0 @@-import Image from "next/image";-import Link from "next/link";--import { Button } from "@openstatus/ui/src/components/button";-import { cn } from "@openstatus/ui/src/lib/utils";--import { Icons } from "@/components/icons";-import type { ValidIcon } from "@/components/icons";--export interface MemberProps {- name: string;- role: string;- image: { src: string };- socials?: { label: string; href: string; icon: ValidIcon }[];-}--export function Member({ name, role, image, socials }: MemberProps) {- return (- <div className="grid w-full gap-3">- <div className="relative aspect-square max-w-full overflow-hidden rounded-lg border border-border">- <Image src={image.src} alt={name} fill className="object-contain" />- </div>- <div className="flex items-start justify-between gap-2">- <div className="grid gap-1">- <h3 className="font-medium">{name}</h3>- <p className="text-muted-foreground">{role}</p>- </div>- <div className="grid gap-1">- {socials?.map((item) => {- const Icon = Icons[item.icon];- return (- <Button key={item.href} variant="ghost" size="icon" asChild>- <Link href={item.href} target="_blank">- {item.icon ? <Icon className={cn("h-4 w-4")} /> : null}- </Link>- </Button>- );- })}- </div>- </div>- </div>- );-}diff --git a/apps/web/src/app/(pages)/about/page.tsx b/apps/web/src/app/(pages)/about/page.tsxdeleted file mode 100644index 30ca39044..000000000--- a/apps/web/src/app/(pages)/about/page.tsx+++ /dev/null@@ -1,75 +0,0 @@-import { allUnrelateds } from "content-collections";--import { Separator } from "@openstatus/ui/src/components/separator";--import { Mdx } from "@/components/content/mdx";-import { Shell } from "@/components/dashboard/shell";-import { MarketingLayout } from "@/components/layout/marketing-layout";-import { Member } from "./_components/member";-import type { MemberProps } from "./_components/member";--const story = allUnrelateds.find((unrelated) => unrelated.slug === "our-story");--export default function AboutPage() {- return (- <MarketingLayout>- <div className="my-8 grid w-full gap-8">- <h1 className="font-cal text-4xl text-foreground">About OpenStatus</h1>- <div className="grid max-w-2xl gap-2 text-lg text-muted-foreground">- <p>- OpenStatus is on a mission to provide a{" "}- <span className="font-medium text-foreground">reliable</span>,{" "}- <span className="font-medium text-foreground">easy</span> and{" "}- <span className="font-medium text-foreground">fast</span> way to- synthetically monitor your APIs and websites.- </p>- <p className="italic">Made by developers for developers.</p>- </div>- <ul className="grid grid-cols-2 gap-4 sm:grid-cols-3 sm:gap-6 md:gap-8">- {members.map((member) => (- <li key={member.name}>- <Member {...member} />- </li>- ))}- <li />- </ul>- <Separator className="my-2" />- <Shell className="mx-auto w-auto shadow-sm sm:px-8 sm:py-8 md:px-12 md:py-12 dark:border-card-foreground/30">- {story ? (- <Mdx- code={story.mdx}- className="sm:prose-lg mx-auto prose-li:my-0"- />- ) : null}- </Shell>- </div>- </MarketingLayout>- );-}--const members: MemberProps[] = [- {- name: "Maximilian Kaske",- role: "Pilsner Advocate",- image: { src: "/assets/authors/max.png" },- socials: [- {- label: "Twitter",- href: "https://twitter.com/mxkaske",- icon: "twitter",- },- ],- },- {- name: "Thibault Le Ouay Ducasse",- role: "Gose Lover",- image: { src: "/assets/authors/thibault.jpeg" },- socials: [- {- label: "Bluesky",- href: "https://bsky.app/profile/thibaultleouay.dev",- icon: "bluesky",- },- ],- },-];diff --git a/apps/web/src/app/(pages)/layout.tsx b/apps/web/src/app/(pages)/layout.tsxdeleted file mode 100644index 0aa40d645..000000000--- a/apps/web/src/app/(pages)/layout.tsx+++ /dev/null@@ -1,18 +0,0 @@-import { TailwindIndicator } from "@/components/tailwind-indicator";-import { ThemeProvider } from "@/components/theme-provider";-import { Toaster } from "@/components/ui/sonner";-import Background from "../_components/background";--export default function PagesLayout({- children,-}: {- children: React.ReactNode;-}) {- return (- <ThemeProvider attribute="class" defaultTheme="light" enableSystem>- <Background>{children}</Background>- <Toaster richColors closeButton />- <TailwindIndicator />- </ThemeProvider>- );-}diff --git a/apps/web/src/app/(pages)/legal/[slug]/layout.tsx b/apps/web/src/app/(pages)/legal/[slug]/layout.tsxdeleted file mode 100644index f388f0997..000000000--- a/apps/web/src/app/(pages)/legal/[slug]/layout.tsx+++ /dev/null@@ -1,6 +0,0 @@-import { MarketingLayout } from "@/components/layout/marketing-layout";-import type { ReactNode } from "react";--export default function BlogLayout({ children }: { children: ReactNode }) {- return <MarketingLayout>{children}</MarketingLayout>;-}diff --git a/apps/web/src/app/(pages)/legal/[slug]/page.tsx b/apps/web/src/app/(pages)/legal/[slug]/page.tsxdeleted file mode 100644index 180e45f7a..000000000--- a/apps/web/src/app/(pages)/legal/[slug]/page.tsx+++ /dev/null@@ -1,42 +0,0 @@-import { allLegals } from "content-collections";-import { notFound } from "next/navigation";--import { Mdx } from "@/components/content/mdx";-import { Shell } from "@/components/dashboard/shell";-import { BackButton } from "@/components/layout/back-button";--// export const dynamic = "force-static";--export async function generateStaticParams() {- return allLegals.map((post) => ({- slug: post.slug,- }));-}--export default async function PostPage(props: {- params: Promise<{ slug: string }>;-}) {- const params = await props.params;- const post = allLegals.find((post) => post.slug === params.slug);-- if (!post) {- notFound();- }-- // TODO: add author.avatar and author.url- return (- <>- <BackButton href="/" />- <Shell className="sm:py-8 md:py-12">- <article className="grid gap-8">- <div className="mx-auto grid w-full max-w-prose gap-3">- <h1 className="mb-5 font-cal text-3xl">{post.title}</h1>- </div>- <div className="mx-auto max-w-prose">- <Mdx code={post.mdx} />- </div>- </article>- </Shell>- </>- );-}diff --git a/apps/web/src/app/(pages)/public/layout.tsx b/apps/web/src/app/(pages)/public/layout.tsxdeleted file mode 100644index 11d2f50e3..000000000--- a/apps/web/src/app/(pages)/public/layout.tsx+++ /dev/null@@ -1,28 +0,0 @@-import type { Metadata } from "next";--import {- defaultMetadata,- ogMetadata,- twitterMetadata,-} from "@/app/shared-metadata";-import { PublicLayout } from "@/components/layout/public-layout";--export const metadata: Metadata = {- ...defaultMetadata,- twitter: {- ...twitterMetadata,- },- openGraph: {- ...ogMetadata,- },-};--export default function DemoLayout({- children,-}: {- children: React.ReactNode;-}) {- // TODO: move first sticky Shell into here- // that will allow to use a loading state and have it already- return <PublicLayout>{children}</PublicLayout>;-}diff --git a/apps/web/src/app/(pages)/public/monitors/[id]/loading.tsx b/apps/web/src/app/(pages)/public/monitors/[id]/loading.tsxdeleted file mode 100644index 5b9b2c3d5..000000000--- a/apps/web/src/app/(pages)/public/monitors/[id]/loading.tsx+++ /dev/null@@ -1,54 +0,0 @@-import { Separator, Skeleton } from "@openstatus/ui";--import { Shell } from "@/components/dashboard/shell";--export default function Loading() {- return (- <div className="relative flex w-full flex-col gap-6">- <Shell className="flex items-center justify-between gap-2">- <div className="grid gap-2">- <Skeleton className="h-6 w-24 md:w-40" />- <Skeleton className="h-4 w-32 md:w-60" />- </div>- <div>- <Skeleton className="h-10 w-[150px]" />- </div>- </Shell>- <Shell className="grid gap-4">- <div className="grid gap-6">- <div className="grid grid-cols-2 gap-4 sm:grid-cols-4 md:grid-cols-5 md:gap-6">- {new Array(4).fill(0).map((_, i) => (- <Skeleton key={i} className="h-16 w-full" />- ))}- </div>- <div className="grid gap-4">- <div className="grid grid-cols-2 gap-4 sm:grid-cols-4 md:grid-cols-5 md:gap-6">- {new Array(5).fill(0).map((_, i) => (- <Skeleton key={i} className="h-16 w-full" />- ))}- </div>- <Skeleton className="h-3 w-40" />- </div>- </div>- <Separator className="my-8" />- <div className="flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between">- <div className="flex w-full gap-2 sm:flex-row sm:justify-between">- <Skeleton className="h-10 w-[150px]" />- <Skeleton className="h-10 w-[150px]" />- </div>- <div className="flex gap-2">- <div className="grid gap-1">- <Skeleton className="h-4 w-12" />- <Skeleton className="h-10 w-[150px]" />- </div>- <div className="grid gap-1">- <Skeleton className="h-4 w-12" />- <Skeleton className="h-10 w-[150px]" />- </div>- </div>- </div>- <Skeleton className="h-[396px] w-full" />- </Shell>- </div>- );-}diff --git a/apps/web/src/app/(pages)/public/monitors/[id]/page.tsx b/apps/web/src/app/(pages)/public/monitors/[id]/page.tsxdeleted file mode 100644index 4c72b64b3..000000000--- a/apps/web/src/app/(pages)/public/monitors/[id]/page.tsx+++ /dev/null@@ -1,124 +0,0 @@-import { notFound } from "next/navigation";--import {- type Region,- monitorRegions,-} from "@openstatus/db/src/schema/constants";-import { Separator } from "@openstatus/ui";--import { Shell } from "@/components/dashboard/shell";-import { CombinedChartWrapper } from "@/components/monitor-charts/combined-chart-wrapper";-import { ButtonReset } from "@/components/monitor-dashboard/button-reset";-import { DatePickerPreset } from "@/components/monitor-dashboard/date-picker-preset";-import { Metrics } from "@/components/monitor-dashboard/metrics";-import { getMinutesByInterval } from "@/lib/monitor/utils";-import { getPreferredSettings } from "@/lib/preferred-settings/server";-import {- prepareMetricByIntervalByPeriod,- prepareMetricByRegionByPeriod,- prepareMetricsByPeriod,-} from "@/lib/tb";-import { api } from "@/trpc/server";-import {- DEFAULT_INTERVAL,- DEFAULT_PERIOD,- DEFAULT_QUANTILE,- periods,- searchParamsCache,-} from "./search-params";--/**- * Workspace slugs that should have the URL hidden- */-const WORKSPACES_HIDE_URL =- process.env.WORKSPACES_HIDE_URL?.split(",").map(Number) || [];--export default async function Page(props: {- params: Promise<{ workspaceSlug: string; id: string }>;- searchParams: Promise<{ [key: string]: string | string[] | undefined }>;-}) {- const searchParams = await props.searchParams;- const params = await props.params;- const id = params.id;- const search = searchParamsCache.parse(searchParams);- const preferredSettings = await getPreferredSettings();-- const monitor = await api.monitor.getPublicMonitorById.query({- id: Number(id),- });-- if (!monitor) return notFound();-- const { period, quantile, interval, regions } = search;- const type = monitor.jobType as "http" | "tcp";-- // TODO: work it out easier- const intervalMinutes = getMinutesByInterval(interval);- const periodicityMinutes = getMinutesByInterval(monitor.periodicity);-- const isQuantileDisabled = intervalMinutes <= periodicityMinutes;- const minutes = isQuantileDisabled ? periodicityMinutes : intervalMinutes;-- const hideURL =- monitor.workspaceId && WORKSPACES_HIDE_URL.includes(monitor.workspaceId);-- const [metrics, data, metricsByRegion] = await Promise.all([- prepareMetricsByPeriod(period, type).getData({- monitorId: id,- }),- prepareMetricByIntervalByPeriod(period, type).getData({- monitorId: id,- interval: minutes,- }),- prepareMetricByRegionByPeriod(period, type).getData({- monitorId: id,- }),- ]);-- if (!data || !metrics || !metricsByRegion) return null;-- const isDirty =- period !== DEFAULT_PERIOD ||- quantile !== DEFAULT_QUANTILE ||- interval !== DEFAULT_INTERVAL ||- monitorRegions.length !== regions.length;-- return (- <div className="relative flex w-full flex-col gap-6">- <Shell className="sticky top-2 z-10 flex items-center justify-between gap-2 bg-background/80 backdrop-blur-xs">- <div className="min-w-0">- <p className="font-semibold text-sm">{monitor.name}</p>- {hideURL ? null : (- <a- href={monitor.url}- target="_blank"- rel="noreferrer"- className="truncate text-base text-muted-foreground"- >- {monitor.url}- </a>- )}- </div>- <div className="flex items-center gap-2">- {isDirty ? <ButtonReset /> : null}- <DatePickerPreset defaultValue={period} values={periods} />- </div>- </Shell>- <Shell className="flex flex-col gap-4">- <Metrics metrics={metrics.data} period={period} />- <Separator className="my-8" />- <CombinedChartWrapper- data={data.data}- period={period}- quantile={quantile}- interval={interval}- regions={regions.length ? (regions as Region[]) : monitor.regions} // FIXME: not properly reseted after filtered- monitor={{ ...monitor, url: hideURL ? "" : monitor.url }}- isQuantileDisabled={isQuantileDisabled}- metricsByRegion={metricsByRegion.data}- preferredSettings={preferredSettings}- />- </Shell>- </div>- );-}diff --git a/apps/web/src/app/(pages)/public/monitors/[id]/search-params.ts b/apps/web/src/app/(pages)/public/monitors/[id]/search-params.tsdeleted file mode 100644index bc0917253..000000000--- a/apps/web/src/app/(pages)/public/monitors/[id]/search-params.ts+++ /dev/null@@ -1,26 +0,0 @@-import { intervals, quantiles } from "@/lib/monitor/utils";-import { monitorRegions } from "@openstatus/db/src/schema/constants";-import {- createSearchParamsCache,- parseAsArrayOf,- parseAsInteger,- parseAsStringLiteral,-} from "nuqs/server";--export const DEFAULT_QUANTILE = "p95";-export const DEFAULT_INTERVAL = "30m";-export const DEFAULT_PERIOD = "1d";--export const periods = ["1d", "7d"] as const;--export const searchParamsParsers = {- statusCode: parseAsInteger,- cronTimestamp: parseAsInteger,- quantile: parseAsStringLiteral(quantiles).withDefault(DEFAULT_QUANTILE),- interval: parseAsStringLiteral(intervals).withDefault(DEFAULT_INTERVAL),- period: parseAsStringLiteral(periods).withDefault(DEFAULT_PERIOD),- regions: parseAsArrayOf(parseAsStringLiteral(monitorRegions)).withDefault([- ...monitorRegions,- ]),-};-export const searchParamsCache = createSearchParamsCache(searchParamsParsers);diff --git a/apps/web/src/app/(pages)/status/page.tsx b/apps/web/src/app/(pages)/status/page.tsxdeleted file mode 100644index 34e587531..000000000--- a/apps/web/src/app/(pages)/status/page.tsx+++ /dev/null@@ -1,72 +0,0 @@-export const dynamic = "force-dynamic";--import { ArrowUpRight } from "lucide-react";-import type { Metadata } from "next";-import Link from "next/link";--import { Card, CardDescription, CardHeader, CardTitle } from "@openstatus/ui";--import { MarketingLayout } from "@/components/layout/marketing-layout";-import { env } from "@/env";-import {- defaultMetadata,- ogMetadata,- twitterMetadata,-} from "../../shared-metadata";-import { externalStatusArray, getClassname } from "./utils";--export const revalidate = 600; // revalidate every 10 min--export const metadata: Metadata = {- ...defaultMetadata,- description: "Easily monitor if your external providers is working properly",- title: "Is my external service down?",- openGraph: {- ...ogMetadata,- title: "Is my external service down? | OpenStatus",- },- twitter: {- ...twitterMetadata,- title: "Is my external service down? | OpenStatus",- },-};--const ExternalStatusPage = async () => {- const res = await fetch(env.EXTERNAL_API_URL);- const data = await res.json();- const externalStatus = externalStatusArray.parse(data);- return (- <MarketingLayout>- <h1 className="mb-4 font-cal text-4xl text-foreground">- Is my external service down?- </h1>- <div className="mb-6 text-muted-foreground">- Easily check if your external providers is working properly- </div>- <div className="grid w-full grid-cols-1 gap-6 md:grid-cols-2">- {externalStatus.map((status) => (- <Link- key={status.name}- href={status.url}- target="_blank"- className="group flex w-full flex-1"- >- <Card className="flex w-full flex-col">- <CardHeader className="flex-1">- <CardTitle>{status.name}</CardTitle>- <div className="flex flex-1 justify-between gap-3">- <CardDescription className={getClassname(status)}>- {status.status_description}- </CardDescription>- <ArrowUpRight className="h-5 w-5 shrink-0 self-end text-muted-foreground group-hover:text-foreground" />- </div>- </CardHeader>- </Card>- </Link>- ))}- </div>- </MarketingLayout>- );-};--export default ExternalStatusPage;diff --git a/apps/web/src/app/api/og/post/route.tsx b/apps/web/src/app/api/og/post/route.tsxindex 4ed0266d0..2f0bfe0d8 100644--- a/apps/web/src/app/api/og/post/route.tsx+++ b/apps/web/src/app/api/og/post/route.tsx@@ -7,6 +7,8 @@ import {DEFAULT_URL,SIZE,calSemiBold,+ commitMonoBold,+ commitMonoRegular,interLight,interRegular,} from "../utils";@@ -14,9 +16,19 @@ import {export const runtime = "edge";export async function GET(req: Request) {- const [interRegularData, interLightData, calSemiBoldData] = await Promise.all(- [interRegular, interLight, calSemiBold],- );+ const [+ interRegularData,+ interLightData,+ calSemiBoldData,+ commitMonoRegularData,+ commitMonoBoldData,+ ] = await Promise.all([+ interRegular,+ interLight,+ calSemiBold,+ commitMonoRegular,+ commitMonoBold,+ ]);const { searchParams } = new URL(req.url);@@ -61,6 +73,18 @@ export async function GET(req: Request) {style: "normal",weight: 600,},+ {+ name: "Commit Mono",+ data: commitMonoRegularData,+ style: "normal",+ weight: 400,+ },+ {+ name: "Commit Mono",+ data: commitMonoBoldData,+ style: "normal",+ weight: 700,+ },],},);diff --git a/apps/web/src/app/api/og/route.tsx b/apps/web/src/app/api/og/route.tsxindex 79d6a9b3e..49138e1a5 100644--- a/apps/web/src/app/api/og/route.tsx+++ b/apps/web/src/app/api/og/route.tsx@@ -2,11 +2,11 @@import { ImageResponse } from "next/og";import { OG_DESCRIPTION, TITLE } from "@/app/shared-metadata";-import { Background } from "./_components/background";import {- DEFAULT_URL,SIZE,calSemiBold,+ commitMonoBold,+ commitMonoRegular,interLight,interMedium,interRegular,@@ -14,14 +14,25 @@ import {export const runtime = "edge";-// const TITLE = "A better way to monitor your services.";-// const DESCRIPTION = "Reduce alert fatigue by triggering only relevant alerts when your services experience downtime.";-const IMAGE = "assets/og/dashboard.png";const FOOTER = "openstatus.dev";+const CATEGORY = "product";export async function GET(req: Request) {- const [interRegularData, interLightData, calSemiBoldData, interMediumData] =- await Promise.all([interRegular, interLight, calSemiBold, interMedium]);+ const [+ interRegularData,+ interLightData,+ calSemiBoldData,+ interMediumData,+ commitMonoRegularData,+ commitMonoBoldData,+ ] = await Promise.all([+ interRegular,+ interLight,+ calSemiBold,+ interMedium,+ commitMonoRegular,+ commitMonoBold,+ ]);const { searchParams } = new URL(req.url);@@ -32,53 +43,36 @@ export async function GET(req: Request) {(searchParams.has("description") && searchParams.get("description")) ||OG_DESCRIPTION;- const image =- (searchParams.has("image") && searchParams.get("image")) || IMAGE;-const footer =(searchParams.has("footer") && searchParams.get("footer")) || FOOTER;+ const category =+ (searchParams.has("category") && searchParams.get("category")) || CATEGORY;+return new ImageResponse(- <Background tw="justify-start items-start">+ <div tw="relative flex flex-col items-start justify-start w-full h-full bg-gray-100"><div- style={{ clipPath: "polygon(90% 0%, 200% 0%, 200% 200%, -30% 200%)" }}- tw="flex absolute h-full w-full bg-slate-200"+ tw="flex flex-col h-full p-8 w-full"+ style={{ fontFamily: "Commit Mono" }}>- <img- alt=""- style={{ objectFit: "cover" }}- tw="flex w-full h-full"- src={new URL(image, DEFAULT_URL).toString()}- />- </div>- {/* adds a border to the mask element */}- <div- style={{- clipPath: "polygon(90% 0%, 170% 0%, -30% 200%, -29% 200%)",- // from-slate-100 to-slate-300- backgroundImage: "linear-gradient(to bottom left, #f1f5f9, #cbd5e1)",- }}- tw="flex absolute h-full w-full" // bg-slate-200- />- <div tw="flex flex-col justify-between h-full flex-1 py-24 px-24">- <div tw="flex flex-col h-full flex-1 justify-center">+ <div tw="flex flex-col justify-end flex-1 mb-8">+ <p tw="text-xl text-left">[{category.toLowerCase()}]</p><h1- style={{ fontFamily: "Cal", width: 700 }}- tw="text-6xl text-black"+ tw="text-6xl text-black text-left"+ style={{ lineClamp: 2, display: "block" }}>{title}</h1>- <p style={{ width: 580 }} tw="text-4xl text-slate-700">+ <p+ tw="text-4xl text-slate-700 text-left"+ style={{ lineClamp: 2, display: "block" }}+ >{description}</p></div>- <div tw="flex w-full">- <p style={{ width: 450 }} tw="font-medium text-xl">- {footer}- </p>- </div>+ <p tw="font-medium text-xl text-slate-500 text-left">{footer}</p></div>- </Background>,+ </div>,{...SIZE,fonts: [@@ -106,6 +100,18 @@ export async function GET(req: Request) {style: "normal",weight: 600,},+ {+ name: "Commit Mono",+ data: commitMonoRegularData,+ style: "normal",+ weight: 400,+ },+ {+ name: "Commit Mono",+ data: commitMonoBoldData,+ style: "normal",+ weight: 700,+ },],},);diff --git a/apps/web/src/app/api/og/utils.ts b/apps/web/src/app/api/og/utils.tsindex 74914ad72..c002e3dbe 100644--- a/apps/web/src/app/api/og/utils.ts+++ b/apps/web/src/app/api/og/utils.ts@@ -22,3 +22,11 @@ export const interLight = fetch(export const calSemiBold = fetch(new URL("../../../public/fonts/CalSans-SemiBold.ttf", import.meta.url),).then((res) => res.arrayBuffer());++export const commitMonoRegular = fetch(+ new URL("../../../public/fonts/CommitMono-400-Regular.otf", import.meta.url),+).then((res) => res.arrayBuffer());++export const commitMonoBold = fetch(+ new URL("../../../public/fonts/CommitMono-700-Regular.otf", import.meta.url),+).then((res) => res.arrayBuffer());diff --git a/apps/web/src/app/not-found.tsx b/apps/web/src/app/not-found.tsxindex 0908c53cd..23718752b 100644--- a/apps/web/src/app/not-found.tsx+++ b/apps/web/src/app/not-found.tsx@@ -1,49 +1,13 @@-"use client";--import Link from "next/link";-import { useRouter } from "next/navigation";--import { Button } from "@openstatus/ui/src/components/button";--import { Shell } from "@/components/dashboard/shell";+import { CustomMDX } from "@/content/mdx";+import { getUnrelatedPage } from "@/content/utils";export default function NotFound() {- const router = useRouter();- // user should go back to dashboard-+ const page = getUnrelatedPage("not-found");return (- <main className="flex min-h-screen w-full flex-col space-y-6 p-4 md:p-8">- <div className="flex flex-1 flex-col items-center justify-center gap-8">- <div className="mx-auto max-w-xl text-center">- <Shell>- <div className="flex flex-col gap-4 p-6 sm:p-12">- <div className="flex flex-col gap-2">- <p className="font-medium text-muted-foreground sm:text-lg">- 404 Page not found- </p>- <h2 className="font-cal text-2xl sm:text-3xl">- Oops, something went wrong.- </h2>- <p className="text-muted-foreground text-sm sm:text-base">- The page you are looking for doesn't exist.- </p>- </div>- <div className="flex flex-col items-center justify-center gap-4 sm:flex-row">- <Button- variant="link"- size="lg"- onClick={() => void router.back()}- >- Go Back- </Button>- <Button size="lg" asChild>- <Link href="/">Home</Link>- </Button>- </div>- </div>- </Shell>- </div>- </div>- </main>+ <section className="prose dark:prose-invert max-w-none">+ <h1>{page.metadata.title}</h1>+ <p className="text-lg">{page.metadata.description}</p>+ <CustomMDX source={page.content} />+ </section>);}diff --git a/apps/web/src/app/shared-metadata.ts b/apps/web/src/app/shared-metadata.tsindex eb5c85fb5..efbf697f7 100644--- a/apps/web/src/app/shared-metadata.ts+++ b/apps/web/src/app/shared-metadata.ts@@ -1,20 +1,26 @@+import type { MDXData } from "@/content/utils";+import { allPlans } from "@openstatus/db/src/schema/plan/config";import type { Metadata } from "next";+import type {+ BlogPosting,+ Organization,+ Product,+ WebPage,+ WithContext,+} from "schema-dts";export const TITLE = "openstatus";export const DESCRIPTION =- "Monitor your API and website globally. Showcase your reliability with a public status page. Get started for free with our open-source uptime and synthetic monitoring platform!";+ "Monitor your services globally and showcase your uptime with a status page. Get started for free with our open-source status page with uptime monitoring solution.";export const OG_DESCRIPTION ="Open-source status page and uptime monitoring system";-export const defaultMetadata: Metadata = {- title: {- template: `%s | ${TITLE}`,- default: TITLE,- },- description: DESCRIPTION,- metadataBase: new URL("https://www.openstatus.dev"),-};+export const BASE_URL =+ process.env.VERCEL_ENV === "production"+ ? "https://www.openstatus.dev"+ : `https://${process.env.NEXT_PUBLIC_VERCEL_URL}` ||+ "http://localhost:3000";export const twitterMetadata: Metadata["twitter"] = {title: TITLE,@@ -29,3 +35,132 @@ export const ogMetadata: Metadata["openGraph"] = {type: "website",images: ["/api/og"],};++export const defaultMetadata: Metadata = {+ title: {+ template: `%s | ${TITLE}`,+ default: TITLE,+ },+ description: DESCRIPTION,+ metadataBase: new URL(BASE_URL),+ twitter: twitterMetadata,+ openGraph: ogMetadata,+};++export const getPageMetadata = (page: MDXData): Metadata => {+ const { slug, metadata } = page;+ const { title, description, category, publishedAt } = metadata;++ const baseUrl = process.env.NEXT_PUBLIC_BASE_URL || "http://localhost:3000";+ const ogImage = `${baseUrl}/api/og?title=${encodeURIComponent(+ title,+ )}&description=${encodeURIComponent(+ description,+ )}&category=${encodeURIComponent(category)}`;++ return {+ title,+ description,+ openGraph: {+ title,+ description,+ type: "article",+ publishedTime: publishedAt.toISOString(),+ url: `${baseUrl}/changelog/${slug}`,+ images: [+ {+ url: ogImage,+ },+ ],+ },+ twitter: {+ card: "summary_large_image",+ title,+ description,+ images: [ogImage],+ },+ };+};++export const getJsonLDWebPage = (page: MDXData): WithContext<WebPage> => {+ return {+ "@context": "https://schema.org",+ "@type": "WebPage",+ name: `${page.metadata.title} | openstatus`,+ headline: page.metadata.description,+ mainEntityOfPage: {+ "@type": "WebPage",+ "@id": "https://www.openstatus.dev",+ },+ };+};++export const getJsonLDBlogPosting = (+ post: MDXData,+): WithContext<BlogPosting> => {+ return {+ "@context": "https://schema.org",+ "@type": "BlogPosting",+ headline: post.metadata.title,+ datePublished: post.metadata.publishedAt.toISOString(),+ dateModified: post.metadata.publishedAt.toISOString(),+ description: post.metadata.description,+ image: post.metadata.image+ ? `${BASE_URL}${post.metadata.image}`+ : `/api/og?title=${encodeURIComponent(+ post.metadata.title,+ )}&description=${encodeURIComponent(+ post.metadata.description,+ )}&category=${encodeURIComponent(post.metadata.category)}`,+ url: `${BASE_URL}/blog/${post.slug}`,+ author: {+ "@type": "Person",+ name: post.metadata.author,+ },+ };+};++export const getJsonLDOrganization = (): WithContext<Organization> => {+ return {+ "@context": "https://schema.org",+ "@type": "Organization",+ name: "openstatus",+ url: "https://openstatus.dev",+ logo: "https://openstatus.dev/assets/logos/OpenStatus-Logo.svg",+ sameAs: [+ "https://github.com/openstatushq",+ "https://linkedin.com/company/openstatus",+ "https://bsky.app/profile/openstatus.dev",+ "https://x.com/openstatushq",+ ],+ contactPoint: [+ {+ "@type": "ContactPoint",+ contactType: "Support",+ email: "[email protected]",+ },+ ],+ };+};++export const getJsonLDProduct = (): WithContext<Product> => {+ return {+ "@context": "https://schema.org",+ "@type": "Product",+ name: "openstatus",+ description:+ "Open-source uptime and synthetic monitoring with status pages.",+ brand: {+ "@type": "Brand",+ name: "openstatus",+ logo: "https://openstatus.dev/assets/logos/OpenStatus-Logo.svg",+ },+ offers: Object.entries(allPlans).map(([_, value]) => ({+ "@type": "Offer",+ price: value.price.USD,+ name: value.title,+ priceCurrency: "USD",+ availability: "https://schema.org/InStock",+ })),+ };+};diff --git a/apps/web/src/app/sitemap.ts b/apps/web/src/app/sitemap.tsindex f03a93df1..d791006c8 100644--- a/apps/web/src/app/sitemap.ts+++ b/apps/web/src/app/sitemap.ts@@ -1,46 +1,61 @@-import { alternativesConfig } from "@/config/alternatives";-import { landingsConfig } from "@/config/landings";-import { allChangelogs, allPosts } from "content-collections";+import {+ getBlogPosts,+ getChangelogPosts,+ getComparePages,+ getProductPages,+ getToolsPages,+ getUnrelatedPages,+} from "@/content/utils";import type { MetadataRoute } from "next";-const addPathToBaseURL = (path: string) => `https://www.openstatus.dev${path}`;+const allPosts = getBlogPosts();+const allChangelogs = getChangelogPosts();+const allComparisons = getComparePages();+const allUnrelated = getUnrelatedPages().filter(+ (page) => page.slug !== "not-found",+);+const allProducts = getProductPages();+const allPlaygrounds = getToolsPages().filter(+ (tool) => tool.slug !== "checker-slug",+);export default function sitemap(): MetadataRoute.Sitemap {const blogs = allPosts.map((post) => ({url: `https://www.openstatus.dev/blog/${post.slug}`,- lastModified: post.publishedAt, // date format should be YYYY-MM-DD+ lastModified: post.metadata.publishedAt, // date format should be YYYY-MM-DD}));const changelogs = allChangelogs.map((post) => ({url: `https://www.openstatus.dev/changelog/${post.slug}`,- lastModified: post.publishedAt, // date format should be YYYY-MM+ lastModified: post.metadata.publishedAt, // date format should be YYYY-MM-DD}));- const comparisons = Object.keys(alternativesConfig).map((slug) => ({- url: `https://www.openstatus.dev/compare/${slug}`,- lastModified: new Date(),+ const comparisons = allComparisons.map((comparison) => ({+ url: `https://www.openstatus.dev/compare/${comparison.slug}`,+ lastModified: comparison.metadata.publishedAt,}));- const landings = Object.keys(landingsConfig).map((slug) => ({- url: `https://www.openstatus.dev/${slug}`,- lastModified: new Date(),+ const landings = allUnrelated.map((page) => ({+ url: `https://www.openstatus.dev/${page.slug}`,+ lastModified: page.metadata.publishedAt,}));- const routes = [- "/",- "/about",- "/blog",- "/changelog",- "/play",- "/play/checker",- "/play/curl",- "/play/uptime-sla",- "/pricing",- "/oss-friends",- ].map((route) => ({- url: addPathToBaseURL(route),- lastModified: new Date(),+ const products = allProducts.map((product) => ({+ url: `https://www.openstatus.dev/${product.slug}`,+ lastModified: product.metadata.publishedAt,}));- return [...routes, ...blogs, ...changelogs, ...comparisons, ...landings];+ const playgrounds = allPlaygrounds.map((playground) => ({+ url: `https://www.openstatus.dev/play/${playground.slug}`,+ lastModified: playground.metadata.publishedAt,+ }));++ return [+ ...blogs,+ ...changelogs,+ ...comparisons,+ ...landings,+ ...products,+ ...playgrounds,+ ];}diff --git a/apps/web/src/app/status-page/[domain]/_components/actions.ts b/apps/web/src/app/status-page/[domain]/_components/actions.tsdeleted file mode 100644index 9f629ca22..000000000--- a/apps/web/src/app/status-page/[domain]/_components/actions.ts+++ /dev/null@@ -1,137 +0,0 @@-"use server";--import { z } from "zod";--import { env } from "@/env";-import { Events, setupAnalytics } from "@openstatus/analytics";-import { and, eq, isNotNull, sql } from "@openstatus/db";-import { db } from "@openstatus/db/src/db";-import { page, pageSubscriber } from "@openstatus/db/src/schema";-import { EmailClient } from "@openstatus/emails";--const emailClient = new EmailClient({ apiKey: env.RESEND_API_KEY });--const subscribeSchema = z.object({- email: z- .string({- invalid_type_error: "Invalid Email",- })- .email(),- slug: z.string(),-});--export async function handleSubscribe(formData: FormData) {- const validatedFields = subscribeSchema.safeParse({- email: formData.get("email"),- slug: formData.get("slug"),- });-- if (!validatedFields.success) {- const fieldErrors = validatedFields.error.flatten().fieldErrors;- return {- error: fieldErrors?.email?.[0] || "Invalid form data",- };- }-- const { slug } = validatedFields.data;-- const pageData = await db- .select()- .from(page)- .where(- // REMINDER: customDomain for pro users- sql`lower(${page.slug}) = ${slug} OR lower(${page.customDomain}) = ${slug}`,- )- .get();-- if (!pageData) {- return {- error: "Page not found",- };- }-- const alreadySubscribed = await db- .select()- .from(pageSubscriber)- .where(- and(- eq(pageSubscriber.email, validatedFields.data.email),- eq(pageSubscriber.pageId, pageData.id),- isNotNull(pageSubscriber.acceptedAt),- ),- )- .get();-- if (alreadySubscribed) {- return {- error: "Already subscribed",- };- }-- const token = crypto.randomUUID();-- await db- .insert(pageSubscriber)- .values({- email: validatedFields.data.email,- token,- pageId: pageData.id,- expiresAt: new Date(Date.now() + 1000 * 60 * 60 * 24 * 7),- })- .execute();-- const link = `https://${pageData.slug}.openstatus.dev/verify/${token}`;-- await emailClient.sendPageSubscription({- link,- page: pageData.title,- to: validatedFields.data.email,- });-- const analytics = await setupAnalytics({});- analytics.track({ ...Events.SubscribePage, slug: pageData.slug });-}--const passwordSchema = z.object({- password: z.string(),- slug: z.string(),-});--export async function handleValidatePassword(formData: FormData) {- const validatedFields = passwordSchema.safeParse({- password: formData.get("password"),- slug: formData.get("slug"),- });-- if (!validatedFields.success) {- const fieldErrors = validatedFields.error.flatten().fieldErrors;- return {- error: fieldErrors?.password?.[0] || "Invalid form data",- };- }-- const { slug, password } = validatedFields.data;-- const _page = await db- .select()- .from(page)- .where(- // REMINDER: customDomain for pro users- sql`lower(${page.slug}) = ${slug} OR lower(${page.customDomain}) = ${slug}`,- )- .get();-- if (!_page) {- return {- error: "Page not found",- };- }-- if (_page.password !== password) {- return {- error: "Invalid password",- };- }-- return { data: _page.password };-}diff --git a/apps/web/src/app/status-page/[domain]/_components/footer.tsx b/apps/web/src/app/status-page/[domain]/_components/footer.tsxdeleted file mode 100644index 8937183c8..000000000--- a/apps/web/src/app/status-page/[domain]/_components/footer.tsx+++ /dev/null@@ -1,38 +0,0 @@-import { allPlans } from "@openstatus/db/src/schema/plan/config";-import type { WorkspacePlan } from "@openstatus/db/src/schema/workspaces/validation";--import { ThemeToggle } from "@/components/theme/theme-toggle";--interface Props {- plan: WorkspacePlan;- timeZone?: string | null;-}--export function Footer({ plan, timeZone }: Props) {- const isWhiteLabel = allPlans[plan].limits["white-label"]; // FIXME: use the workspace.limits- return (- <footer className="z-10 mx-auto grid w-full grid-cols-5 items-center justify-between gap-4">- <p className="truncate font-light text-muted-foreground text-xs">- {timeZone}- </p>- <div className="col-span-3 w-full">- {!isWhiteLabel ? (- <p className="text-center text-muted-foreground text-sm">- powered by{" "}- <a- href="https://www.openstatus.dev"- target="_blank"- rel="noreferrer"- className="text-foreground underline underline-offset-4 hover:no-underline"- >- openstatus.dev- </a>- </p>- ) : null}- </div>- <div className="text-right">- <ThemeToggle />- </div>- </footer>- );-}diff --git a/apps/web/src/app/status-page/[domain]/_components/header.tsx b/apps/web/src/app/status-page/[domain]/_components/header.tsxdeleted file mode 100644index dd59dfbaa..000000000--- a/apps/web/src/app/status-page/[domain]/_components/header.tsx+++ /dev/null@@ -1,78 +0,0 @@-"use client";--import Image from "next/image";-import { useSelectedLayoutSegment } from "next/navigation";--import type { PublicPage } from "@openstatus/db/src/schema";-import type { WorkspacePlan } from "@openstatus/db/src/schema/workspaces/validation";--import { cn } from "@/lib/utils";-import Link from "next/link";-import { Menu } from "./menu";-import { SubscribeButton } from "./subscribe-button";--type Props = {- navigation: {- label: string;- href: string;- segment: string | null;- disabled?: boolean;- }[];- plan: WorkspacePlan;- page: PublicPage;-};--export function Header({ navigation, plan, page }: Props) {- const selectedSegment = useSelectedLayoutSegment();-- return (- <header className="sticky top-3 z-10 w-full">- <div className="flex w-full items-center justify-between gap-8 rounded-full border border-border px-2.5 py-1.5 backdrop-blur-lg md:top-6">- <div className="relative sm:w-[120px]">- {page?.icon ? (- <div className="flex h-9 w-9 items-center justify-center overflow-hidden rounded-full border border-border bg-muted">- <Image- height={36}- width={36}- src={page.icon}- alt={page.title}- className="object-cover"- />- </div>- ) : null}- </div>- <ul className="hidden items-center space-x-1 sm:flex">- {navigation.map(({ label, href, disabled, segment }) => {- const active = segment === selectedSegment;- return (- <li key={segment}>- <Link- className={cn(- "h-9 rounded-full bg-transparent px-4 py-2 font-medium text-muted-foreground hover:bg-accent/50",- { "text-foreground": active },- )}- {...{ href, disabled }}- >- {label}- </Link>- </li>- );- })}- </ul>- <div className="flex items-center gap-3">- <div className="block sm:hidden">- <Menu navigation={navigation} />- </div>- <div className="text-end sm:w-32">- <SubscribeButton- plan={plan}- slug={page.slug}- customDomain={page.customDomain}- passwordProtected={page.passwordProtected}- />- </div>- </div>- </div>- </header>- );-}diff --git a/apps/web/src/app/status-page/[domain]/_components/menu.tsx b/apps/web/src/app/status-page/[domain]/_components/menu.tsxdeleted file mode 100644index 35d00999e..000000000--- a/apps/web/src/app/status-page/[domain]/_components/menu.tsx+++ /dev/null@@ -1,66 +0,0 @@-"use client";--import { MenuIcon } from "lucide-react";-import { usePathname, useSelectedLayoutSegment } from "next/navigation";-import * as React from "react";--import { Button } from "@openstatus/ui/src/components/button";-import {- Sheet,- SheetContent,- SheetHeader,- SheetTitle,- SheetTrigger,-} from "@openstatus/ui/src/components/sheet";--import { AppLink } from "@/components/layout/app-link";--interface Props {- navigation: {- label: string;- href: string;- segment: string | null;- disabled?: boolean;- }[];-}--export function Menu({ navigation }: Props) {- const selectedSegment = useSelectedLayoutSegment();- const [open, setOpen] = React.useState(false);- const pathname = usePathname();-- // biome-ignore lint/correctness/useExhaustiveDependencies: <explanation>- React.useEffect(() => {- setOpen(false);- }, [pathname]);-- return (- <Sheet open={open} onOpenChange={(value) => setOpen(value)}>- <SheetTrigger asChild>- <Button- size="icon"- variant="outline"- className="rounded-full"- aria-label="menu"- >- <MenuIcon className="h-6 w-6" />- </Button>- </SheetTrigger>- <SheetContent side="top" className="flex flex-col">- <SheetHeader>- <SheetTitle className="ml-2 text-left">Menu</SheetTitle>- </SheetHeader>- <ul className="grid gap-1">- {navigation.map(({ href, label, segment, disabled }) => {- const active = segment === selectedSegment;- return (- <li key={href} className="w-full">- <AppLink {...{ href, label, active, disabled }} />- </li>- );- })}- </ul>- </SheetContent>- </Sheet>- );-}diff --git a/apps/web/src/app/status-page/[domain]/_components/password-form.tsx b/apps/web/src/app/status-page/[domain]/_components/password-form.tsxdeleted file mode 100644index da9a479c8..000000000--- a/apps/web/src/app/status-page/[domain]/_components/password-form.tsx+++ /dev/null@@ -1,158 +0,0 @@-"use client";--import { zodResolver } from "@hookform/resolvers/zod";-import { Eye, EyeOff } from "lucide-react";-import { usePathname, useRouter, useSearchParams } from "next/navigation";-import { Suspense, useEffect, useState, useTransition } from "react";-import { useForm } from "react-hook-form";-import { z } from "zod";--import { LoadingAnimation } from "@/components/loading-animation";-import { useCookieState } from "@/hooks/use-cookie-state";-import { toast, toastAction } from "@/lib/toast";-import { wait } from "@/lib/utils";-import { Button } from "@openstatus/ui/src/components/button";-import {- Form,- FormControl,- FormField,- FormItem,- FormLabel,- FormMessage,-} from "@openstatus/ui/src/components/form";-import { InputWithAddons } from "@openstatus/ui/src/components/input-with-addons";-import { Skeleton } from "@openstatus/ui/src/components/skeleton";-import { createProtectedCookieKey } from "../utils";-import { handleValidatePassword } from "./actions";--// TODO: add 'hide/show' button to show the password-// FIXME: we could do the `?authorize` thing in the server side (e.g. middleware) - but not-// in the `layout.tsx` because we cannot access the search params there--const schema = z.object({- password: z.string().min(1),-});--type Schema = z.infer<typeof schema>;--interface PasswordFormProps {- slug: string;-}--export function PasswordForm({ slug }: PasswordFormProps) {- const form = useForm<Schema>({- resolver: zodResolver(schema),- defaultValues: { password: "" },- });- const [loading, setLoading] = useState(true);- const [inputType, setInputType] = useState<"password" | "text">("password");- const router = useRouter();- const pathname = usePathname();- const searchParams = useSearchParams();- const [isPending, startTransition] = useTransition();- const [_, handleChange] = useCookieState(createProtectedCookieKey(slug)); // what if we do not define the expires date?-- // biome-ignore lint/correctness/useExhaustiveDependencies: <explanation>- useEffect(() => {- if (searchParams.has("authorize")) {- const authorize = searchParams.get("authorize");- if (!authorize) return;- form.setValue("password", authorize);- }- setLoading(false);- }, []);-- async function onSubmit(data: Schema) {- startTransition(async () => {- try {- const formData = new FormData();- formData.append("password", data.password);- formData.append("slug", slug);-- // REMINDER: used for the demo on features/status-page- if (slug === "") {- await wait(500);- return;- }-- const res = await handleValidatePassword(formData);-- if (res?.error || res.data === undefined) {- toast.error(res.error || "An error occurred. Please retry.");- return;- }-- handleChange(res.data);- toastAction("saved");-- router.replace(pathname);- router.refresh();- } catch {- toastAction("error");- }- });- }-- return (- <Form {...form}>- <form- onSubmit={form.handleSubmit(onSubmit)}- className="grid w-full gap-4"- >- <FormField- control={form.control}- name="password"- render={({ field }) => (- <FormItem>- <FormLabel>Password</FormLabel>- <FormControl>- <InputWithAddons- placeholder="open-source"- type={inputType}- disabled={loading}- trailing={- // biome-ignore lint/a11y/useButtonType: <explanation>- <button- onClick={() =>- setInputType((type) =>- type === "password" ? "text" : "password",- )- }- >- {inputType === "password" ? (- <Eye className="h-5 w-5" />- ) : (- <EyeOff className="h-5 w-5" />- )}- </button>- }- {...field}- />- </FormControl>- <FormMessage />- </FormItem>- )}- />- <Button size="lg" disabled={isPending || loading}>- {isPending || loading ? <LoadingAnimation /> : "Confirm"}- </Button>- </form>- </Form>- );-}--export function PasswordFormSuspense(props: PasswordFormProps) {- return (- <Suspense- fallback={- <div className="grid w-full gap-4">- <Skeleton className="h-4 w-8" />- <Skeleton className="h-10 w-full" />- <Skeleton className="h-8 w-full" />- </div>- }- >- <PasswordForm {...props} />- </Suspense>- );-}diff --git a/apps/web/src/app/status-page/[domain]/_components/password-protected.tsx b/apps/web/src/app/status-page/[domain]/_components/password-protected.tsxdeleted file mode 100644index 5b4e1e293..000000000--- a/apps/web/src/app/status-page/[domain]/_components/password-protected.tsx+++ /dev/null@@ -1,32 +0,0 @@-import type { WorkspacePlan } from "@openstatus/db/src/schema/workspaces/validation";--import { Shell } from "@/components/dashboard/shell";-import { Footer } from "../_components/footer";-import { PasswordFormSuspense } from "../_components/password-form";--export default function PasswordProtected({- slug,- plan,-}: {- slug: string;- plan: WorkspacePlan;-}) {- return (- <div className="mx-auto flex min-h-screen w-full max-w-3xl flex-col space-y-6 p-4 md:p-8">- <main className="flex h-full w-full flex-1 flex-col justify-center">- <Shell className="mx-auto grid max-w-xl gap-6">- <div className="flex flex-col gap-2">- <h1 className="text-center font-semibold text-3xl tracking-tight">- Protected Page- </h1>- <p className="text-center text-muted-foreground text-sm">- Enter the password to access the status page.- </p>- <PasswordFormSuspense slug={slug} />- </div>- </Shell>- </main>- <Footer plan={plan} />- </div>- );-}diff --git a/apps/web/src/app/status-page/[domain]/_components/subscribe-button.tsx b/apps/web/src/app/status-page/[domain]/_components/subscribe-button.tsxdeleted file mode 100644index 3b4066291..000000000--- a/apps/web/src/app/status-page/[domain]/_components/subscribe-button.tsx+++ /dev/null@@ -1,94 +0,0 @@-"use client";--import { Bell, Mail, Rss } from "lucide-react";-import { useState } from "react";--import { allPlans } from "@openstatus/db/src/schema/plan/config";-import type { WorkspacePlan } from "@openstatus/db/src/schema/workspaces/validation";-import {- DropdownMenu,- DropdownMenuContent,- DropdownMenuItem,- DropdownMenuTrigger,-} from "@openstatus/ui/src/components/dropdown-menu";--import { Button } from "@openstatus/ui/src/components/button";-import { getBaseUrl } from "../utils";-import { SubscribeModal } from "./subscribe-modal";--interface Props {- plan: WorkspacePlan;- slug: string;- customDomain?: string;- passwordProtected?: boolean | null;- isDemo?: boolean;-}--export function SubscribeButton({- plan,- slug,- customDomain,- passwordProtected = false,- isDemo = false,-}: Props) {- const [showModal, setShowModal] = useState(false);- const isSubscribers = allPlans[plan].limits["status-subscribers"]; // FIXME: use the workspace.limits- const baseUrl = getBaseUrl({- slug: slug,- customDomain: customDomain,- });-- return (- <>- <DropdownMenu>- <DropdownMenuTrigger asChild>- <Button variant="outline" className="gap-2 rounded-full">- <Bell className="h-4 w-4" />- Subscribe- </Button>- </DropdownMenuTrigger>- <DropdownMenuContent align="end">- {!passwordProtected ? (- <>- <DropdownMenuItem asChild>- <a- href={`${baseUrl}/feed/rss`}- target="_blank"- rel="noreferrer"- className="flex items-center gap-2"- >- <Rss className="h-4 w-4" />- RSS- </a>- </DropdownMenuItem>- <DropdownMenuItem asChild>- <a- href={`${baseUrl}/feed/atom`}- target="_blank"- rel="noreferrer"- className="flex items-center gap-2"- >- <Rss className="h-4 w-4" />- Atom- </a>- </DropdownMenuItem>- </>- ) : null}- {isSubscribers ? (- <DropdownMenuItem onClick={() => setShowModal(true)}>- <Mail className="mr-2 h-4 w-4" />- </DropdownMenuItem>- ) : null}- </DropdownMenuContent>- </DropdownMenu>-- <SubscribeModal- open={showModal}- onOpenChange={setShowModal}- slug={slug}- isDemo={isDemo}- />- </>- );-}diff --git a/apps/web/src/app/status-page/[domain]/_components/subscribe-modal.tsx b/apps/web/src/app/status-page/[domain]/_components/subscribe-modal.tsxdeleted file mode 100644index d9dc7bace..000000000--- a/apps/web/src/app/status-page/[domain]/_components/subscribe-modal.tsx+++ /dev/null@@ -1,97 +0,0 @@-"use client";--import { Mail } from "lucide-react";-import { useFormStatus } from "react-dom";--import {- Dialog,- DialogContent,- DialogHeader,- DialogTitle,-} from "@openstatus/ui/src/components/dialog";--import { LoadingAnimation } from "@/components/loading-animation";-import { toast } from "@/lib/toast";-import { wait } from "@/lib/utils";-import { Button } from "@openstatus/ui/src/components/button";-import { Input } from "@openstatus/ui/src/components/input";-import { Label } from "@openstatus/ui/src/components/label";-import { handleSubscribe } from "./actions";--interface Props {- open: boolean;- onOpenChange: (open: boolean) => void;- slug: string;- isDemo?: boolean;-}--export function SubscribeModal({- open,- onOpenChange,- slug,- isDemo = false,-}: Props) {- return (- <Dialog open={open} onOpenChange={onOpenChange}>- <DialogContent className="sm:max-w-md">- <DialogHeader>- <DialogTitle className="flex items-center gap-2">- <Mail className="h-5 w-5" />- Subscribe to updates- </DialogTitle>- </DialogHeader>-- <div className="grid gap-4">- <p className="text-muted-foreground text-sm">- Get email notifications whenever a report has been created or- resolved.- </p>-- <form- className="grid gap-2"- action={async (formData) => {- if (!isDemo) {- const res = await handleSubscribe(formData);- if (res?.error) {- toast.error("Something went wrong", {- description: res.error,- });- onOpenChange(false);- return;- }- toast.message("Success", {- description: "Please confirm your email.",- });- } else {- await wait(1000);- toast.message("Success (Demo)", {- description: "Please confirm your email (not).",- });- }- onOpenChange(false);- }}- >- <Label htmlFor="email">Email</Label>- <Input- id="email"- name="email"- type="email"- placeholder="[email protected]"- />- <input type="hidden" name="slug" value={slug} />- <SubmitButton />- </form>- </div>- </DialogContent>- </Dialog>- );-}--function SubmitButton() {- const { pending } = useFormStatus();- return (- <Button type="submit" disabled={pending}>- {pending ? <LoadingAnimation /> : "Subscribe"}- </Button>- );-}diff --git a/apps/web/src/app/status-page/[domain]/badge/route.tsx b/apps/web/src/app/status-page/[domain]/badge/route.tsxdeleted file mode 100644index 78254e92c..000000000--- a/apps/web/src/app/status-page/[domain]/badge/route.tsx+++ /dev/null@@ -1,74 +0,0 @@-import { ImageResponse } from "next/og";-import type { NextRequest } from "next/server";--import type { Status } from "@openstatus/react";-import { getStatus } from "@openstatus/react";--// Keep the `label` size within a maximum of 'Operational' to stay within the `SIZE` restriction-const statusDictionary: Record<Status, { label: string; color: string }> = {- operational: {- label: "Operational",- color: "bg-green-500",- },- degraded_performance: {- label: "Degraded",- color: "bg-yellow-500",- },- partial_outage: {- label: "Outage",- color: "bg-yellow-500",- },- major_outage: {- label: "Outage",- color: "bg-red-500",- },- unknown: {- label: "Unknown",- color: "bg-gray-500",- },- incident: {- label: "Incident",- color: "bg-yellow-500",- },- under_maintenance: {- label: "Maintenance",- color: "bg-blue-500",- },-} as const;--// const SIZE = { width: 120, height: 34 };-const SIZE: Record<string, { width: number; height: number }> = {- sm: { width: 120, height: 34 },- md: { width: 160, height: 46 },- lg: { width: 200, height: 56 },- xl: { width: 240, height: 68 },-};-export async function GET(- req: NextRequest,- props: { params: Promise<{ domain: string }> },-) {- const params = await props.params;- const { status } = await getStatus(params.domain);- const theme = req.nextUrl.searchParams.get("theme");- const size = req.nextUrl.searchParams.get("size");- const s = SIZE[size ?? "sm"] ?? SIZE.sm;- const { label, color } = statusDictionary[status];- const light = "border-gray-200 text-gray-700 bg-white";- const dark = "border-gray-800 text-gray-300 bg-gray-900";-- return new ImageResponse(- <div- tw={`flex items-center justify-center rounded-md border px-3 py-1- ${size === "sm" && "text-sm"}${size === "md" && "text-md"} ${- size === "lg" && "text-lg"- } ${size === "xl" && "text-xl"} ${!size && "text-sm"} ${- theme === "dark" ? dark : light- }`}- style={{ ...s }}- >- {label}- <div tw={`flex h-2 w-2 rounded-full ml-2 ${color}`} />- </div>,- { ...s },- );-}diff --git a/apps/web/src/app/status-page/[domain]/badge/v2/route.ts b/apps/web/src/app/status-page/[domain]/badge/v2/route.tsdeleted file mode 100644index 7bd80e6ae..000000000--- a/apps/web/src/app/status-page/[domain]/badge/v2/route.ts+++ /dev/null@@ -1,95 +0,0 @@-import type { NextRequest } from "next/server";--import type { Status } from "@openstatus/react";-import { getStatus } from "@openstatus/react";--const statusDictionary: Record<Status, { label: string; hexColor: string }> = {- operational: {- label: "All Systems Operational",- hexColor: "#10b981",- },- degraded_performance: {- label: "Degraded Performance",- hexColor: "#f59e0b",- },- partial_outage: {- label: "Partial Outage",- hexColor: "#f59e0b",- },- major_outage: {- label: "Major Outage",- hexColor: "#ef4444",- },- unknown: {- label: "Unknown",- hexColor: "#6b7280",- },- incident: {- label: "Ongoing Incident",- hexColor: "#f59e0b",- },- under_maintenance: {- label: "Under Maintenance",- hexColor: "#3b82f6",- },-} as const;--const SIZE: Record<- string,- {- height: number;- padding: number;- gap: number;- radius: number;- fontSize: number;- }-> = {- sm: { height: 34, padding: 8, gap: 12, radius: 4, fontSize: 12 },- md: { height: 46, padding: 8, gap: 12, radius: 4, fontSize: 14 },- lg: { height: 56, padding: 12, gap: 16, radius: 6, fontSize: 16 },- xl: { height: 68, padding: 12, gap: 16, radius: 6, fontSize: 18 },-};--function getTextWidth(text: string, fontSize: number): number {- const monoCharWidthRatio = 0.6;- return text.length * monoCharWidthRatio * fontSize;-}--export async function GET(- req: NextRequest,- props: { params: Promise<{ domain: string }> },-) {- const params = await props.params;- const { status } = await getStatus(params.domain);- const theme = req.nextUrl.searchParams.get("theme") ?? "light";- const variant = req.nextUrl.searchParams.get("variant") ?? "default";- const size = req.nextUrl.searchParams.get("size") ?? "sm";-- const { height, padding, gap, radius, fontSize } = SIZE[size] ?? SIZE.sm;- const { label, hexColor } = statusDictionary[status];- const textWidth = getTextWidth(label, fontSize);- const width = Math.ceil(padding + textWidth + gap + radius * 2 + padding);-- const textColor = theme === "dark" ? "#d1d5db" : "#374151";- const bgColor = theme === "dark" ? "#111827" : "#ffffff";- const borderColor = variant === "outline" ? "#d1d5db" : "transparent";-- const svg = `- <svg xmlns="http://www.w3.org/2000/svg" width="${width}" height="${height}">- <rect x="0.5" y="0.5" width="${width - 1}" height="${- height - 1- }" fill="${bgColor}" stroke="${borderColor}" stroke-width="1" rx="${radius}" ry="${radius}" />- <text x="${padding}" y="50%" dominant-baseline="middle"- font-family="ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace" font-size="${fontSize}" font-weight="600" fill="${textColor}">- ${label}- </text>- <circle cx="${width - padding - radius}" cy="${- height / 2- }" r="${radius}" fill="${hexColor}"/>- </svg>- `;-- return new Response(svg, {- headers: { "Content-Type": "image/svg+xml" },- });-}diff --git a/apps/web/src/app/status-page/[domain]/events/page.tsx b/apps/web/src/app/status-page/[domain]/events/page.tsxdeleted file mode 100644index f6db05a29..000000000--- a/apps/web/src/app/status-page/[domain]/events/page.tsx+++ /dev/null@@ -1,56 +0,0 @@-import { Header } from "@/components/dashboard/header";-import { SearchParamsPreset } from "@/components/monitor-dashboard/search-params-preset"; // TOO: move to shared components-import { Feed } from "@/components/status-page/feed";-import { api } from "@/trpc/server";-import type { Metadata } from "next";-import { notFound } from "next/navigation";-import { searchParamsCache } from "./search-params";-import { formatter } from "./utils";--export const metadata: Metadata = {- title: "Events",-};--type Props = {- params: Promise<{ domain: string }>;- searchParams: Promise<{ [key: string]: string | string[] | undefined }>;-};--export const revalidate = 120;--export default async function Page(props: Props) {- const searchParams = await props.searchParams;- const params = await props.params;- const { filter } = searchParamsCache.parse(searchParams);- const page = await api.page.getPageBySlug.query({ slug: params.domain });-- if (!page) return notFound();-- return (- <div className="grid gap-8">- <Header- title={page.title}- description={page.description}- actions={- <SearchParamsPreset- searchParam="filter"- defaultValue={filter}- values={["all", "maintenances", "reports"]}- className="w-auto sm:w-[150px]"- formatter={formatter}- />- }- className="text-left"- />- <Feed- monitors={page.monitors}- maintenances={- ["all", "maintenances"].includes(filter) ? page.maintenances : []- }- statusReports={- ["all", "reports"].includes(filter) ? page.statusReports : []- }- />- </div>- );-}diff --git a/apps/web/src/app/status-page/[domain]/events/report/[id]/_components/copy-link-button.tsx b/apps/web/src/app/status-page/[domain]/events/report/[id]/_components/copy-link-button.tsxdeleted file mode 100644index f93464ca6..000000000--- a/apps/web/src/app/status-page/[domain]/events/report/[id]/_components/copy-link-button.tsx+++ /dev/null@@ -1,54 +0,0 @@-"use client";--import * as React from "react";--import { Button } from "@openstatus/ui/src/components/button";-import {- Tooltip,- TooltipContent,- TooltipProvider,- TooltipTrigger,-} from "@openstatus/ui/src/components/tooltip";--import { Icons } from "@/components/icons";-import { copyToClipboard } from "@/lib/utils";--export function CopyLinkButton() {- const [hasCopied, setHasCopied] = React.useState(false);-- React.useEffect(() => {- if (hasCopied) {- setTimeout(() => {- setHasCopied(false);- }, 2000);- }- }, [hasCopied]);-- return (- <TooltipProvider>- <Tooltip>- <TooltipTrigger asChild>- <Button- variant="ghost"- size="icon"- onClick={() => {- const text =- typeof window !== "undefined" ? window.location.href : "";- copyToClipboard(text);- setHasCopied(true);- }}- >- {!hasCopied ? (- <Icons.link className="h-4 w-4" />- ) : (- <Icons.check className="h-4 w-4" />- )}- </Button>- </TooltipTrigger>- <TooltipContent>- <p>Copy link</p>- </TooltipContent>- </Tooltip>- </TooltipProvider>- );-}diff --git a/apps/web/src/app/status-page/[domain]/events/report/[id]/page.tsx b/apps/web/src/app/status-page/[domain]/events/report/[id]/page.tsxdeleted file mode 100644index 5d2e9f620..000000000--- a/apps/web/src/app/status-page/[domain]/events/report/[id]/page.tsx+++ /dev/null@@ -1,72 +0,0 @@-import { notFound } from "next/navigation";--import { Header } from "@/components/dashboard/header";-import { DateTimeTooltip } from "@/components/status-page/datetime-tooltip";-import { StatusReportUpdates } from "@/components/status-page/status-report";-import { api } from "@/trpc/server";-import { Badge } from "@openstatus/ui/src/components/badge";-import type { Metadata } from "next";-import { CopyLinkButton } from "./_components/copy-link-button";--export async function generateMetadata(props: {- params: Promise<{ domain: string; id: string }>;-}): Promise<Metadata> {- const { domain, id } = await props.params;- const report = await api.statusReport.getPublicStatusReportById.query({- slug: domain,- id: Number(id),- });-- if (!report) return notFound();-- return { title: report.title };-}--export default async function IncidentPage(props: {- params: Promise<{ domain: string; id: string }>;-}) {- const params = await props.params;- const report = await api.statusReport.getPublicStatusReportById.query({- slug: params.domain,- id: Number(params.id),- });-- if (!report) return notFound();-- const affectedMonitors = report.monitorsToStatusReports.map(- ({ monitor }) => monitor,- );-- const firstUpdate =- report.statusReportUpdates[report.statusReportUpdates.length - 1] ||- undefined;-- return (- <div className="grid gap-8 text-left">- <Header- title={report.title}- description={- <div className="mt-2 flex flex-wrap items-center gap-2">- <p className="text-muted-foreground text-sm tracking-wide">- Started at <DateTimeTooltip date={firstUpdate?.date} />- </p>- {affectedMonitors.length > 0 ? (- <>- <span className="text-muted-foreground/50 text-xs">•</span>- <div className="flex flex-wrap gap-2">- {affectedMonitors.map((monitor) => (- <Badge key={monitor.id} variant="secondary">- {monitor.name}- </Badge>- ))}- </div>- </>- ) : null}- </div>- }- actions={<CopyLinkButton />}- />- <StatusReportUpdates updates={report.statusReportUpdates} />- </div>- );-}diff --git a/apps/web/src/app/status-page/[domain]/events/search-params.ts b/apps/web/src/app/status-page/[domain]/events/search-params.tsdeleted file mode 100644index f8f52b7ac..000000000--- a/apps/web/src/app/status-page/[domain]/events/search-params.ts+++ /dev/null@@ -1,8 +0,0 @@-import { createSearchParamsCache, parseAsStringLiteral } from "nuqs/server";--export const searchParamsParsers = {- filter: parseAsStringLiteral(["all", "maintenances", "reports"]).withDefault(- "all",- ),-};-export const searchParamsCache = createSearchParamsCache(searchParamsParsers);diff --git a/apps/web/src/app/status-page/[domain]/events/utils.tsx b/apps/web/src/app/status-page/[domain]/events/utils.tsxdeleted file mode 100644index 5355a84ba..000000000--- a/apps/web/src/app/status-page/[domain]/events/utils.tsx+++ /dev/null@@ -1,5 +0,0 @@-"use client";--export function formatter(value: string) {- return <span className="capitalize">{value}</span>;-}diff --git a/apps/web/src/app/status-page/[domain]/feed/[type]/route.ts b/apps/web/src/app/status-page/[domain]/feed/[type]/route.tsdeleted file mode 100644index 68e6552a8..000000000--- a/apps/web/src/app/status-page/[domain]/feed/[type]/route.ts+++ /dev/null@@ -1,87 +0,0 @@-import { statusDict } from "@/data/incidents-dictionary";-import { api } from "@/trpc/server";-import { Feed } from "feed";-import { notFound, unauthorized } from "next/navigation";-import { getBaseUrl } from "../../utils";--export const revalidate = 60;--export async function GET(- _request: Request,- props: { params: Promise<{ domain: string; type: string }> },-) {- const { domain, type } = await props.params;- if (!["rss", "atom"].includes(type)) return notFound();-- const page = await api.page.getPageBySlug.query({ slug: domain });- if (!page) return notFound();- if (page.passwordProtected) return unauthorized();-- const baseUrl = getBaseUrl({- slug: page.slug,- customDomain: page.customDomain,- });-- const feed = new Feed({- id: `${baseUrl}/feed/${type}`,- title: page.title,- description: page.description,- generator: "OpenStatus - Status Page updates",- feedLinks: {- rss: `${baseUrl}/feed/rss`,- atom: `${baseUrl}/feed/atom`,- },- link: baseUrl,- author: {- name: "OpenStatus Team",- email: "[email protected]",- link: "https://openstatus.dev",- },- copyright: `Copyright ${new Date().getFullYear().toString()}, OpenStatus`,- language: "en-US",- updated: new Date(),- ttl: 60,- });-- for (const maintenance of page.maintenances) {- const maintenanceUrl = `${baseUrl}/events?filter=maintenances`;- feed.addItem({- id: maintenanceUrl,- title: `Maintenance - ${maintenance.title}`,- link: maintenanceUrl,- description: maintenance.message,- date: maintenance.updatedAt ?? maintenance.createdAt ?? new Date(),- });- }-- for (const statusReport of page.statusReports) {- const statusReportUrl = `${baseUrl}/events/report/${statusReport.id}`;- const status = statusDict[statusReport.status].label;- const statusReportUpdates = statusReport.statusReportUpdates- .map((update) => {- const updateStatus = statusDict[update.status].label;- return `${updateStatus}: ${update.message}.`;- })- .join("\n\n");-- feed.addItem({- id: statusReportUrl,- title: `${status} - ${statusReport.title}`,- link: statusReportUrl,- description: statusReportUpdates,- date: statusReport.updatedAt ?? statusReport.createdAt ?? new Date(),- });- }-- feed.items.sort(- (a, b) => (a.date as Date).getTime() - (b.date as Date).getTime(),- );-- const res = type === "atom" ? feed.atom1() : feed.rss2();-- return new Response(res, {- headers: {- "Content-Type": "application/xml; charset=utf-8",- },- });-}diff --git a/apps/web/src/app/status-page/[domain]/incidents/[id]/page.tsx b/apps/web/src/app/status-page/[domain]/incidents/[id]/page.tsxdeleted file mode 100644index 4f4455aff..000000000--- a/apps/web/src/app/status-page/[domain]/incidents/[id]/page.tsx+++ /dev/null@@ -1,8 +0,0 @@-import { redirect } from "next/navigation";--export default async function IncidentPage(props: {- params: Promise<{ domain: string; id: string }>;-}) {- const params = await props.params;- redirect(`../events/report/${params.id}`);-}diff --git a/apps/web/src/app/status-page/[domain]/incidents/page.tsx b/apps/web/src/app/status-page/[domain]/incidents/page.tsxdeleted file mode 100644index c1f98cf1c..000000000--- a/apps/web/src/app/status-page/[domain]/incidents/page.tsx+++ /dev/null@@ -1,5 +0,0 @@-import { redirect } from "next/navigation";--export default async function Page() {- redirect("./events?filter=reports");-}diff --git a/apps/web/src/app/status-page/[domain]/layout.tsx b/apps/web/src/app/status-page/[domain]/layout.tsxdeleted file mode 100644index 9df7cf821..000000000--- a/apps/web/src/app/status-page/[domain]/layout.tsx+++ /dev/null@@ -1,127 +0,0 @@-import type { Metadata } from "next";-import { cookies } from "next/headers";-import { notFound } from "next/navigation";--import Background from "@/app/_components/background";-import {- defaultMetadata,- ogMetadata,- twitterMetadata,-} from "@/app/shared-metadata";-import { Shell } from "@/components/dashboard/shell";-import { TailwindIndicator } from "@/components/tailwind-indicator";-import { ThemeProvider } from "@/components/theme-provider";-import { Toaster } from "@/components/ui/sonner";-import { getRequestHeaderTimezone } from "@/lib/timezone";-import { api } from "@/trpc/server";-import { Footer } from "./_components/footer";-import { Header } from "./_components/header";-import PasswordProtected from "./_components/password-protected";-import { createProtectedCookieKey, setPrefixUrl } from "./utils";--type Props = {- params: Promise<{ domain: string }>;- children: React.ReactNode;-};--export default async function StatusPageLayout(props: Props) {- const params = await props.params;-- const { children } = props;-- const page = await api.page.getPageBySlug.query({ slug: params.domain });- const timeZone = await getRequestHeaderTimezone();-- if (!page) return notFound();-- const plan = page.workspacePlan;-- const navigation = [- {- label: "Status",- segment: null,- href: setPrefixUrl("/", params),- },- {- label: "Events",- segment: "events",- href: setPrefixUrl("/events", params),- },- {- label: "Monitors",- segment: "monitors",- href: setPrefixUrl("/monitors", params),- },- ];-- // TODO: move to middleware using NextResponse.rewrite keeping the path without using redirect- // and move the PasswordProtected into a page.tsx- if (page.passwordProtected) {- const cookie = await cookies();- const protectedCookie = cookie.get(createProtectedCookieKey(params.domain));- const password = protectedCookie ? protectedCookie.value : undefined;- if (password !== page.password) {- return <PasswordProtected plan={plan} slug={params.domain} />;- }- }-- return (- <ThemeProvider- attribute="class"- defaultTheme={page.forceTheme ?? "light"}- enableSystem- >- <Background>- <div className="relative mx-auto flex min-h-screen w-full max-w-4xl flex-col space-y-6 p-4 md:p-8">- <Header navigation={navigation} plan={plan} page={page} />- <main className="flex h-full w-full flex-1 flex-col">- <Shell className="mx-auto h-full flex-1 rounded-2xl px-4 py-4 md:p-8">- {children}- </Shell>- </main>- <Footer plan={plan} timeZone={timeZone} />- </div>- </Background>- <Toaster richColors closeButton />- <TailwindIndicator />- </ThemeProvider>- );-}--export async function generateMetadata(props: Props): Promise<Metadata> {- const params = await props.params;- const page = await api.page.getPageBySlug.query({ slug: params.domain });-- if (!page) return notFound();-- return {- ...defaultMetadata,- title: {- template: `%s | ${page.title}`,- default: page?.title,- },- description: page?.description,- icons: page?.icon,- alternates: {- canonical: page?.customDomain- ? `https://${page.customDomain}`- : `https://${page.slug}.openstatus.dev`,- },- twitter: {- ...twitterMetadata,- images: [- `/api/og/page?slug=${page?.slug}&passwordProtected=${page?.passwordProtected}`,- ],- title: page?.title,- description: page?.description,- },- openGraph: {- ...ogMetadata,- images: [- `/api/og/page?slug=${page?.slug}&passwordProtected=${page?.passwordProtected}`,- ],- title: page?.title,- description: page?.description,- },- };-}diff --git a/apps/web/src/app/status-page/[domain]/loading.tsx b/apps/web/src/app/status-page/[domain]/loading.tsxdeleted file mode 100644index 6f53e3232..000000000--- a/apps/web/src/app/status-page/[domain]/loading.tsx+++ /dev/null@@ -1,26 +0,0 @@-import { Skeleton } from "@openstatus/ui/src/components/skeleton";--import { Container } from "@/components/dashboard/container";-import { Header } from "@/components/dashboard/header";--export default function Loading() {- return (- <div className="grid gap-6">- <Header.Skeleton />- <div className="flex flex-col items-center gap-2">- <div className="flex items-center gap-3">- <Skeleton className="h-7 w-24" />- <Skeleton className="h-10 w-10 rounded-full" />- </div>- <Skeleton className="h-4 w-28" />- </div>- <div className="grid gap-4">- <Container.Skeleton />- <Container.Skeleton />- </div>- <div className="grid gap-4">- <Container.Skeleton />- </div>- </div>- );-}diff --git a/apps/web/src/app/status-page/[domain]/maintenances/page.tsx b/apps/web/src/app/status-page/[domain]/maintenances/page.tsxdeleted file mode 100644index 83c50ade6..000000000--- a/apps/web/src/app/status-page/[domain]/maintenances/page.tsx+++ /dev/null@@ -1,5 +0,0 @@-import { redirect } from "next/navigation";--export default async function Page() {- redirect("./events?filter=maintenances");-}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.tsxdeleted file mode 100644index 90cbc95f6..000000000--- a/apps/web/src/app/status-page/[domain]/monitors/[id]/page.tsx+++ /dev/null@@ -1,132 +0,0 @@-import { notFound } from "next/navigation";--import {- type Region,- monitorRegions,-} from "@openstatus/db/src/schema/constants";-import { Separator } from "@openstatus/ui/src/components/separator";--import { Header } from "@/components/dashboard/header";-import { CombinedChartWrapper } from "@/components/monitor-charts/combined-chart-wrapper";-import { ButtonReset } from "@/components/monitor-dashboard/button-reset";-import { DatePickerPreset } from "@/components/monitor-dashboard/date-picker-preset";-import { Metrics } from "@/components/monitor-dashboard/metrics";-import { getMinutesByInterval } from "@/lib/monitor/utils";-import { getPreferredSettings } from "@/lib/preferred-settings/server";-import {- prepareMetricByIntervalByPeriod,- prepareMetricByRegionByPeriod,- prepareMetricsByPeriod,-} from "@/lib/tb";-import { api } from "@/trpc/server";-import type { Metadata } from "next";-import {- DEFAULT_INTERVAL,- DEFAULT_PERIOD,- DEFAULT_QUANTILE,- periods,- searchParamsCache,-} from "./search-params";--export const revalidate = 120;--/**- * Workspace slugs that should have the URL hidden- */-const WORKSPACES_HIDE_URL =- process.env.WORKSPACES_HIDE_URL?.split(",").map(Number) || [];--export async function generateMetadata(props: {- params: Promise<{ domain: string; id: string }>;-}): Promise<Metadata> {- const { domain, id } = await props.params;- const monitor = await api.monitor.getPublicMonitorById.query({- id: Number(id),- slug: domain,- });-- if (!monitor) return notFound();-- return { title: monitor.name };-}--export default async function Page(props: {- params: Promise<{ domain: string; id: string }>;- searchParams: Promise<{ [key: string]: string | string[] | undefined }>;-}) {- const searchParams = await props.searchParams;- const params = await props.params;- const id = params.id;- const search = searchParamsCache.parse(searchParams);- const preferredSettings = await getPreferredSettings();-- const monitor = await api.monitor.getPublicMonitorById.query({- id: Number(id),- slug: params.domain,- });-- if (!monitor) return notFound();-- const { period, quantile, interval, regions } = search;- const type = monitor.jobType as "http" | "tcp";-- // TODO: work it out easier- const intervalMinutes = getMinutesByInterval(interval);- const periodicityMinutes = getMinutesByInterval(monitor.periodicity);-- const isQuantileDisabled = intervalMinutes <= periodicityMinutes;- const minutes = isQuantileDisabled ? periodicityMinutes : intervalMinutes;-- const hideURL =- monitor.workspaceId && WORKSPACES_HIDE_URL.includes(monitor.workspaceId);-- const [metrics, data, metricsByRegion] = await Promise.all([- prepareMetricsByPeriod(period, type).getData({- monitorId: id,- regions: monitor.regions,- }),- prepareMetricByIntervalByPeriod(period, type).getData({- monitorId: id,- interval: minutes,- regions: monitor.regions,- }),- prepareMetricByRegionByPeriod(period, type).getData({- monitorId: id,- regions: monitor.regions,- }),- ]);-- if (!data || !metrics || !metricsByRegion) return null;-- const isDirty =- period !== DEFAULT_PERIOD ||- quantile !== DEFAULT_QUANTILE ||- interval !== DEFAULT_INTERVAL ||- monitorRegions.length !== regions.length;-- return (- <div className="relative flex w-full flex-col gap-6">- <Header- title={monitor.name}- description={hideURL ? undefined : monitor.url}- />- <div className="flex items-center justify-between gap-2">- <DatePickerPreset defaultValue={period} values={periods} />- {isDirty ? <ButtonReset /> : null}- </div>- <Metrics metrics={metrics.data} period={period} />- <Separator className="my-8" />- <CombinedChartWrapper- data={data.data}- period={period}- quantile={quantile}- interval={interval}- regions={regions.length ? (regions as Region[]) : monitor.regions} // FIXME: not properly reseted after filtered- monitor={{ ...monitor, url: hideURL ? "" : monitor.url }}- isQuantileDisabled={isQuantileDisabled}- metricsByRegion={metricsByRegion.data}- preferredSettings={preferredSettings}- />- </div>- );-}diff --git a/apps/web/src/app/status-page/[domain]/monitors/[id]/search-params.ts b/apps/web/src/app/status-page/[domain]/monitors/[id]/search-params.tsdeleted file mode 100644index 94a744671..000000000--- a/apps/web/src/app/status-page/[domain]/monitors/[id]/search-params.ts+++ /dev/null@@ -1,26 +0,0 @@-import { intervals, quantiles } from "@/lib/monitor/utils";-import { monitorRegions } from "@openstatus/db/src/schema/constants";-import {- createSearchParamsCache,- parseAsArrayOf,- parseAsInteger,- parseAsStringLiteral,-} from "nuqs/server";--export const DEFAULT_QUANTILE = "p95";-export const DEFAULT_INTERVAL = "30m";-export const DEFAULT_PERIOD = "1d";--export const periods = ["1d", "7d", "14d"] as const;--export const searchParamsParsers = {- statusCode: parseAsInteger,- cronTimestamp: parseAsInteger,- quantile: parseAsStringLiteral(quantiles).withDefault(DEFAULT_QUANTILE),- interval: parseAsStringLiteral(intervals).withDefault(DEFAULT_INTERVAL),- period: parseAsStringLiteral(periods).withDefault(DEFAULT_PERIOD),- regions: parseAsArrayOf(parseAsStringLiteral(monitorRegions)).withDefault([- ...monitorRegions,- ]),-};-export const searchParamsCache = createSearchParamsCache(searchParamsParsers);diff --git a/apps/web/src/app/status-page/[domain]/monitors/page.tsx b/apps/web/src/app/status-page/[domain]/monitors/page.tsxdeleted file mode 100644index d46bc8cea..000000000--- a/apps/web/src/app/status-page/[domain]/monitors/page.tsx+++ /dev/null@@ -1,131 +0,0 @@-import { ChevronRight } from "lucide-react";-import Link from "next/link";-import { notFound } from "next/navigation";--import { Button } from "@openstatus/ui/src/components/button";--import { EmptyState } from "@/components/dashboard/empty-state";-import { Header } from "@/components/dashboard/header";-import { SimpleChart } from "@/components/monitor-charts/simple-chart";-import { groupDataByTimestamp } from "@/components/monitor-charts/utils";-import { prepareMetricByIntervalByPeriod } from "@/lib/tb";-import { api } from "@/trpc/server";-import type { Metadata } from "next";-import { searchParamsCache } from "./search-params";--// Add loading page--/**- * Workspace slugs that should have the URL hidden- */-const WORKSPACES_HIDE_URL =- process.env.WORKSPACES_HIDE_URL?.split(",").map(Number) || [];--export const metadata: Metadata = {- title: "Monitors",-};--export const revalidate = 120;--export default async function Page(props: {- params: Promise<{ domain: string }>;- searchParams: Promise<{ [key: string]: string | string[] | undefined }>;-}) {- const searchParams = await props.searchParams;- const params = await props.params;- const page = await api.page.getPageBySlug.query({ slug: params.domain });- const { quantile, period } = searchParamsCache.parse(searchParams);-- if (!page) notFound();-- // filter monitor by public or not-- const publicMonitors = page.monitors.filter((monitor) => monitor.public);- const hideURL =- page.workspaceId && WORKSPACES_HIDE_URL.includes(page.workspaceId);-- const monitorsWithData =- publicMonitors.length > 0- ? await Promise.all(- publicMonitors?.map(async (monitor) => {- const type = monitor.jobType as "http" | "tcp";- const data = await prepareMetricByIntervalByPeriod(- period,- type,- ).getData({- monitorId: String(monitor.id),- interval: 60,- });-- return { monitor, data };- }),- )- : undefined;-- return (- <div className="grid gap-8">- <Header- title={page.title}- description={page.description}- className="text-left"- />- {monitorsWithData ? (- <div className="grid gap-6">- <p className="text-muted-foreground">- Response time over the{" "}- <span className="font-medium text-foreground">last {period}</span>{" "}- across{" "}- <span className="font-medium text-foreground">- all selected regions- </span>{" "}- within a{" "}- <span className="font-medium text-foreground">p95 quantile</span>.- </p>- <ul className="grid gap-6">- {monitorsWithData?.map(({ monitor, data }) => {- const group =- data.data && groupDataByTimestamp(data.data, period, quantile);- return (- <li key={monitor.id} className="grid gap-2">- <div className="flex w-full min-w-0 items-center justify-between gap-3">- <div className="w-full min-w-0">- <p className="font-semibold text-sm">{monitor.name}</p>- {hideURL ? null : (- <p className="truncate text-muted-foreground text-sm">- {monitor.url}- </p>- )}- </div>- <Button variant="link" size="sm" asChild>- <Link href={`./monitors/${monitor.id}`}>- Details <ChevronRight className="h-4 w-4" />- </Link>- </Button>- </div>- {group ? (- <SimpleChart- data={group.data.map((d) => ({- timestamp: d.timestamp,- // REMINDER: select first region as default- // TODO: we could create an average of all regions instead- latency: d[monitor.regions?.[0]],- }))}- />- ) : (- <p>missing data</p>- )}- </li>- );- })}- </ul>- </div>- ) : (- <EmptyState- icon="activity"- title="No public monitors"- description="No public monitors have been added to this page."- />- )}- </div>- );-}diff --git a/apps/web/src/app/status-page/[domain]/monitors/search-params.ts b/apps/web/src/app/status-page/[domain]/monitors/search-params.tsdeleted file mode 100644index 454af43aa..000000000--- a/apps/web/src/app/status-page/[domain]/monitors/search-params.ts+++ /dev/null@@ -1,8 +0,0 @@-import { quantiles } from "@/lib/monitor/utils";-import { createSearchParamsCache, parseAsStringLiteral } from "nuqs/server";--export const searchParamsParsers = {- quantile: parseAsStringLiteral(quantiles).withDefault("p95"),- period: parseAsStringLiteral(["7d"]).withDefault("7d"),-};-export const searchParamsCache = createSearchParamsCache(searchParamsParsers);diff --git a/apps/web/src/app/status-page/[domain]/page.tsx b/apps/web/src/app/status-page/[domain]/page.tsxdeleted file mode 100644index fcb8de83e..000000000--- a/apps/web/src/app/status-page/[domain]/page.tsx+++ /dev/null@@ -1,94 +0,0 @@-import { subDays } from "date-fns";-import { notFound } from "next/navigation";--import { EmptyState } from "@/components/dashboard/empty-state";-import { Header } from "@/components/dashboard/header";-import { Feed } from "@/components/status-page/feed";-import { MonitorList } from "@/components/status-page/monitor-list";-import { StatusCheck } from "@/components/status-page/status-check";-import { api } from "@/trpc/server";-import { Separator } from "@openstatus/ui";--/**- * Right now, we do not allow workspaces to have a custom lookback period.- * If we decide to allow this in the future, we should move this to the database.- */-const WORKSPACES =- process.env.WORKSPACES_LOOKBACK_30?.split(",").map(Number) || [];--type Props = {- params: Promise<{ domain: string }>;- searchParams: Promise<{ [key: string]: string | string[] | undefined }>;-};--export const revalidate = 0;--export default async function Page(props: Props) {- const params = await props.params;- const page = await api.page.getPageBySlug.query({ slug: params.domain });- if (!page) return notFound();-- const lastMaintenances = page.maintenances.filter((maintenance) => {- return maintenance.from.getTime() > subDays(new Date(), 7).getTime();- });-- const lastStatusReports = page.statusReports.filter((report) => {- return report.statusReportUpdates.some(- (update) => update.date.getTime() > subDays(new Date(), 7).getTime(),- );- });-- return (- <div className="mx-auto flex w-full flex-col gap-12">- <Header- title={page.title}- description={page.description}- className="text-left"- />- <StatusCheck- statusReports={page.statusReports}- incidents={page.incidents}- maintenances={page.maintenances}- />- {page.monitors.length ? (- <MonitorList- monitors={page.monitors}- statusReports={page.statusReports}- incidents={page.incidents}- maintenances={page.maintenances}- showMonitorValues={!!page.showMonitorValues}- totalDays={WORKSPACES.includes(page.workspaceId) ? 30 : 45}- />- ) : (- <EmptyState- icon="activity"- title="No monitors"- description="The status page has no connected monitors."- />- )}- <Separator />- {lastStatusReports.length || lastMaintenances.length ? (- <Feed- monitors={page.monitors}- maintenances={lastMaintenances.filter((maintenance) => {- return (- maintenance.from.getTime() > subDays(new Date(), 7).getTime()- );- })}- statusReports={lastStatusReports.filter((report) => {- return report.statusReportUpdates.some(- (update) =>- update.date.getTime() > subDays(new Date(), 7).getTime(),- );- })}- />- ) : (- <EmptyState- icon="newspaper"- title="No recent notices"- description="There have been no reports within the last 7 days."- />- )}- </div>- );-}diff --git a/apps/web/src/app/status-page/[domain]/subscribe/route.ts b/apps/web/src/app/status-page/[domain]/subscribe/route.tsdeleted file mode 100644index f23823299..000000000--- a/apps/web/src/app/status-page/[domain]/subscribe/route.ts+++ /dev/null@@ -1,68 +0,0 @@-import { z } from "zod";--import { and, eq, isNotNull } from "@openstatus/db";-import { db } from "@openstatus/db/src/db";-import { page, pageSubscriber } from "@openstatus/db/src/schema";-import { SubscribeEmail, sendEmail } from "@openstatus/emails";--// TODO: use trpc route--export async function POST(- req: Request,- props: { params: Promise<{ domain: string }> },-) {- const params = await props.params;- const data = await req.json();- const result = z.object({ email: z.string().email() }).parse(data);-- const pageData = await db- .select()- .from(page)- .where(eq(page.slug, params.domain))- .get();- if (!pageData) {- return new Response("Not found", { status: 401 });- }-- const alreadySubscribed = await db- .select()- .from(pageSubscriber)- .where(- and(- eq(pageSubscriber.email, data.email),- eq(pageSubscriber.pageId, pageData?.id),- isNotNull(pageSubscriber.acceptedAt),- ),- )- .get();-- if (alreadySubscribed) {- return new Response("Not found", { status: 401 });- }-- const token = crypto.randomUUID();-- await db- .insert(pageSubscriber)- .values({- pageId: pageData.id,- email: result.email,- token,- expiresAt: new Date(Date.now() + 1000 * 60 * 60 * 24 * 7),- })- .execute();-- const link = `https://${pageData.slug}.openstatus.dev/verify/${token}`;-- await sendEmail({- react: SubscribeEmail({- link,- page: pageData.title,- }),- from: "OpenStatus <[email protected]>",- to: [result.email],- subject: `Verify your subscription to ${pageData.title}`,- });-- return Response.json({ message: "Hello world" });-}diff --git a/apps/web/src/app/status-page/[domain]/utils.tsx b/apps/web/src/app/status-page/[domain]/utils.tsxdeleted file mode 100644index 92dc8a8b3..000000000--- a/apps/web/src/app/status-page/[domain]/utils.tsx+++ /dev/null@@ -1,30 +0,0 @@-/**- * While developing, we can also access the status page via /status-page/:domain- */-export function setPrefixUrl(value: string, params: { domain: string }) {- const suffix = value.startsWith("/") ? value : `/${value}`;- if (process.env.NODE_ENV === "development") {- return `/status-page/${params.domain}${suffix}`;- }- return suffix;-}--export function createProtectedCookieKey(value: string) {- return `secured-${value}`;-}--export function getBaseUrl({- slug,- customDomain,-}: {- slug: string;- customDomain?: string;-}) {- if (process.env.NODE_ENV === "development") {- return `http://localhost:3000/status-page/${slug}`;- }- if (customDomain) {- return `https://${customDomain}`;- }- return `https://${slug}.openstatus.dev`;-}diff --git a/apps/web/src/app/status-page/[domain]/verify/[token]/route.ts b/apps/web/src/app/status-page/[domain]/verify/[token]/route.tsdeleted file mode 100644index 51c751adc..000000000--- a/apps/web/src/app/status-page/[domain]/verify/[token]/route.ts+++ /dev/null@@ -1,44 +0,0 @@-import { and, db, eq } from "@openstatus/db";-import { page, pageSubscriber } from "@openstatus/db/src/schema";--export async function GET(- _request: Request,- props: { params: Promise<{ domain: string; token: string }> },-) {- const params = await props.params;- const _page = await db- .select()- .from(page)- .where(eq(page.slug, params.domain))- .get();- if (!_page) {- return new Response("Not found", { status: 401 });- }-- const subscriber = await db- .select()- .from(pageSubscriber)- .where(- and(- eq(pageSubscriber.token, params.token),- eq(pageSubscriber.pageId, _page?.id),- ),- )- .get();-- if (!subscriber) {- return new Response("Not found", { status: 401 });- }-- await db- .update(pageSubscriber)- .set({ acceptedAt: new Date() })- .where(eq(pageSubscriber.id, subscriber.id))- .execute();-- if (_page.customDomain) {- return Response.redirect(`https://${_page.customDomain}`);- }-- return Response.redirect(`https://${params.domain}.openstatus.dev`);-}diff --git a/apps/web/src/components/banner/coming-soon-banner.tsx b/apps/web/src/components/banner/coming-soon-banner.tsxdeleted file mode 100644index 713a37989..000000000--- a/apps/web/src/components/banner/coming-soon-banner.tsx+++ /dev/null@@ -1,19 +0,0 @@-import { Alert, AlertDescription, AlertTitle } from "@openstatus/ui";-import { Hourglass } from "lucide-react";--interface Props {- description?: string;-}--export function ComingSoonBanner({ description }: Props) {- return (- <Alert>- <Hourglass className="h-4 w-4" />- <AlertTitle>Coming Soon</AlertTitle>- <AlertDescription>- {description ??- "This feature is coming soon. Keep an eye on our changelog."}- </AlertDescription>- </Alert>- );-}diff --git a/apps/web/src/components/content/article.tsx b/apps/web/src/components/content/article.tsxdeleted file mode 100644index b7ac3b914..000000000--- a/apps/web/src/components/content/article.tsx+++ /dev/null@@ -1,58 +0,0 @@-import type { Post } from "content-collections";-import Image from "next/image";-import Link from "next/link";--import { Avatar, AvatarFallback, AvatarImage, Badge } from "@openstatus/ui";--import { Mdx } from "@/components/content/mdx";-import { formatDate } from "@/lib/utils";--export function Article({ post }: { post: Post }) {- const getNameInitials = (name: string) => {- const individualNames = name.split(" ");- return (- individualNames[0][0] + individualNames[individualNames.length - 1][0]- );- };-- return (- <article className="relative mx-auto flex max-w-prose flex-col gap-8">- <div className="grid w-full gap-3">- <h1 className="mb-5 font-cal text-3xl">{post.title}</h1>- <div className="relative aspect-video w-full overflow-hidden rounded-lg border border-border">- <Image- src={post.image}- fill={true}- alt={post.title}- className="object-cover"- />- </div>- <div className="flex items-center gap-3">- <Avatar>- <AvatarImage src={post.author.avatar} />- <AvatarFallback>{getNameInitials(post.author.name)}</AvatarFallback>- </Avatar>- <div className="font-light text-muted-foreground text-sm">- <Link- href={post.author.url ?? "#"}- target="_blank"- className="cursor-pointer font-medium text-foreground hover:underline"- >- {post.author.name}- </Link>- <div className="flex flex-wrap items-center gap-1.5">- <time className="font-mono">{formatDate(post.publishedAt)}</time>- <span className="text-muted-foreground/70">•</span>- <span className="font-mono">{post.readingTime}</span>- <span className="text-muted-foreground/70">•</span>- <Badge variant="outline" className="font-normal capitalize">- {post.tag}- </Badge>- </div>- </div>- </div>- </div>- <Mdx code={post.mdx} />- </article>- );-}diff --git a/apps/web/src/components/content/callout.tsx b/apps/web/src/components/content/callout.tsxdeleted file mode 100644index 3066d7048..000000000--- a/apps/web/src/components/content/callout.tsx+++ /dev/null@@ -1,52 +0,0 @@-import { cn } from "@/lib/utils";-import { type VariantProps, cva } from "class-variance-authority";-import { Icons, type ValidIcon } from "../icons";--function getIconName(variant: CalloutProps["variant"]): ValidIcon {- switch (variant) {- case "warning":- return "alert-triangle";- case "success":- return "check";- case "error":- return "siren";- default:- return "info";- }-}--const calloutVariants = cva("border py-2 px-3 flex rounded-md", {- variants: {- variant: {- info: "bg-blue-100/50 border-blue-200 text-blue-800 dark:bg-blue-900/50 dark:border-blue-800 dark:text-blue-200",- warning:- "bg-yellow-100/50 border-yellow-200 text-yellow-800 dark:bg-yellow-900/50 dark:border-yellow-800 dark:text-yellow-200",- success:- "bg-green-100/50 border-green-200 text-green-800 dark:bg-green-900/50 dark:border-green-800 dark:text-green-200",- error:- "bg-red-100/50 border-red-200 text-red-800 dark:bg-red-900/50 dark:border-red-800 dark:text-red-200",- },- },- defaultVariants: {- variant: "info",- },-});--export interface CalloutProps- extends React.HTMLAttributes<HTMLDivElement>,- VariantProps<typeof calloutVariants> {}--export function Callout({- variant,- children,- className,- ...props-}: CalloutProps) {- const Icon = Icons[getIconName(variant)];- return (- <div className={cn(calloutVariants({ variant, className }))} {...props}>- <Icon className="my-1.5 mr-2 h-4 w-4 shrink-0" />- <p>{children}</p>- </div>- );-}diff --git a/apps/web/src/components/content/changelog.tsx b/apps/web/src/components/content/changelog.tsxdeleted file mode 100644index 0273043c0..000000000--- a/apps/web/src/components/content/changelog.tsx+++ /dev/null@@ -1,27 +0,0 @@-import type { Changelog } from "content-collections";-import Image from "next/image";--import { Mdx } from "@/components/content/mdx";-import { formatDate } from "@/lib/utils";--export function ChangelogCard({ post }: { post: Changelog }) {- return (- <article className="relative mx-auto flex w-full max-w-prose flex-col gap-8">- <div className="grid w-full gap-3">- <p className="font-mono text-muted-foreground text-sm">- {formatDate(new Date(post.publishedAt))}- </p>- <h1 className="mb-5 font-cal text-3xl">{post.title}</h1>- <div className="relative aspect-video w-full overflow-hidden rounded-lg border border-border">- <Image- src={post.image}- fill={true}- alt={post.title}- className="object-cover"- />- </div>- </div>- <Mdx code={post.mdx} />- </article>- );-}diff --git a/apps/web/src/components/content/image-with-caption.tsx b/apps/web/src/components/content/image-with-caption.tsxdeleted file mode 100644index 1f9b3c340..000000000--- a/apps/web/src/components/content/image-with-caption.tsx+++ /dev/null@@ -1,17 +0,0 @@-// TODO: use following instead https://github.com/rehypejs/rehype-unwrap-images-// as figcaption is supported in prose plugin https://github.com/tailwindlabs/tailwindcss-typography?tab=readme-ov-file#element-modifiers--export interface ImageWithCaptionProps {- src: string;- alt?: string;- caption: string;-}--export function ImageWithCaption({ src, alt, caption }: ImageWithCaptionProps) {- return (- <figure>- <figcaption>{caption}</figcaption>- <img src={src} alt={alt ?? caption} />- </figure>- );-}diff --git a/apps/web/src/components/content/mdx-components.tsx b/apps/web/src/components/content/mdx-components.tsxdeleted file mode 100644index a75c0fa14..000000000--- a/apps/web/src/components/content/mdx-components.tsx+++ /dev/null@@ -1,113 +0,0 @@-import type { ImageProps } from "next/image";-import Image from "next/image";-import Link from "next/link";--import type {- AnchorHTMLAttributes,- HTMLAttributes,- TdHTMLAttributes,- ThHTMLAttributes,-} from "react";-import type { TweetProps } from "react-tweet";-import { Tweet } from "react-tweet";--import {- Table,- TableBody,- TableCell,- TableFooter,- TableHead,- TableHeader,- TableRow,-} from "@openstatus/ui";--import { PricingSlider } from "../marketing/pricing/pricing-slider";-import type { MetricsCardProps } from "../monitor-dashboard/metrics-card";-import { MetricsCard } from "../monitor-dashboard/metrics-card";-import { Callout, type CalloutProps } from "./callout";-import {- ImageWithCaption,- type ImageWithCaptionProps,-} from "./image-with-caption";-import Pre from "./pre";-import type { SimpleChartProps } from "./simple-chart";-import { SimpleChart } from "./simple-chart";--export const components = {- a: ({ href = "", ...props }: AnchorHTMLAttributes<HTMLAnchorElement>) => {- if (href.startsWith("http")) {- return (- <a- className="text-foreground underline underline-offset-4 hover:no-underline"- href={href}- target="_blank"- rel="noopener noreferrer"- {...props}- />- );- }-- return (- <Link- href={href}- className="text-foreground underline underline-offset-4 hover:no-underline"- {...props}- />- );- },- Tweet: (props: TweetProps) => {- return (- <div data-theme="light" className="not-prose [&>div]:mx-auto">- <Tweet {...props} />- </div>- );- },- Image: (props: ImageProps) => <Image {...props} />,- MetricsCard: (props: MetricsCardProps) => {- return (- // remove prose class from cards- <div className="not-prose">- <MetricsCard {...props} />- </div>- );- },- PricingSlider: () => {- return <PricingSlider />;- },- SimpleChart: (props: SimpleChartProps) => {- return (- <div className="not-prose">- <SimpleChart {...props} />- </div>- );- },- Callout: (props: CalloutProps) => {- return (- <div className="not-prose my-5">- <Callout {...props} />- </div>- );- },- ImageWithCaption: (props: ImageWithCaptionProps) => (- <ImageWithCaption {...props} />- ),- table: (props: HTMLAttributes<HTMLTableElement>) => <Table {...props} />,- thead: (props: HTMLAttributes<HTMLTableSectionElement>) => (- <TableHeader {...props} />- ),- tbody: (props: HTMLAttributes<HTMLTableSectionElement>) => (- <TableBody {...props} />- ),- tfoot: (props: HTMLAttributes<HTMLTableSectionElement>) => (- <TableFooter {...props} />- ),- tr: (props: HTMLAttributes<HTMLTableRowElement>) => <TableRow {...props} />,- th: (props: ThHTMLAttributes<HTMLTableCellElement>) => (- <TableHead {...props} />- ),- td: (props: TdHTMLAttributes<HTMLTableCellElement>) => (- <TableCell {...props} />- ),- // FIXME: file duplication (not related to content-collections)- pre: (props: HTMLAttributes<HTMLPreElement>) => <Pre {...props} />,-};diff --git a/apps/web/src/components/content/mdx.tsx b/apps/web/src/components/content/mdx.tsxdeleted file mode 100644index 6256ba987..000000000--- a/apps/web/src/components/content/mdx.tsx+++ /dev/null@@ -1,23 +0,0 @@-import { MDXContent } from "@content-collections/mdx/react";--import { cn } from "@/lib/utils";-import { components } from "./mdx-components";--interface MdxProps {- code: string;- className?: string;-}--export function Mdx({ code, className }: MdxProps) {- return (- // FIXME: weird behaviour when `prose-headings:font-cal` and on mouse movement font gets bigger- <div- className={cn(- "prose prose-slate dark:prose-invert prose-pre:my-0 prose-img:rounded-lg prose-pre:rounded-lg prose-img:border prose-pre:border prose-img:border-border prose-pre:border-border prose-blockquote:border-l-2 prose-pre:bg-background prose-blockquote:font-light prose-headings:font-cal prose-headings:font-normal",- className,- )}- >- <MDXContent code={code} components={components} />- </div>- );-}diff --git a/apps/web/src/components/content/pre.tsx b/apps/web/src/components/content/pre.tsxdeleted file mode 100644index e2021627f..000000000--- a/apps/web/src/components/content/pre.tsx+++ /dev/null@@ -1,52 +0,0 @@-"use client";--import { cn } from "@/lib/utils";-import { Button } from "@openstatus/ui/src/components/button";-import { Clipboard, ClipboardCopy } from "lucide-react";-import React from "react";-export interface PreProps extends React.HTMLAttributes<HTMLPreElement> {}--export default function Pre({ children, className, ...props }: PreProps) {- const [copied, setCopied] = React.useState(false);- const ref = React.useRef<HTMLPreElement>(null);-- React.useEffect(() => {- let timer: ReturnType<typeof setTimeout>;- if (copied) {- timer = setTimeout(() => {- setCopied(false);- }, 2000);- }- return () => {- clearTimeout(timer);- };- }, [copied]);-- const onClick = () => {- setCopied(true);- const content = ref.current?.textContent;- if (content) {- navigator.clipboard.writeText(content);- }- };-- return (- <div className="relative hidden overflow-hidden dark:[&:has([data-theme='dark'])]:block [&:has([data-theme='light'])]:block dark:[&:has([data-theme='light'])]:hidden">- <Button- variant="outline"- size="icon"- className="absolute top-2 right-2"- onClick={onClick}- >- {!copied ? (- <Clipboard className="h-5 w-5" />- ) : (- <ClipboardCopy className="h-5 w-5" />- )}- </Button>- <pre ref={ref} className={cn("[&_code]:grid", className)} {...props}>- {children}- </pre>- </div>- );-}diff --git a/apps/web/src/components/content/preview.tsx b/apps/web/src/components/content/preview.tsxdeleted file mode 100644index 7b4ac7e4d..000000000--- a/apps/web/src/components/content/preview.tsx+++ /dev/null@@ -1,16 +0,0 @@-"use client";--import { useProcessor } from "@/hooks/use-preprocessor";--interface Props {- md?: string;-}--export function Preview({ md }: Props) {- const Component = useProcessor(md || "");- return (- <div className="prose dark:prose-invert prose-sm h-[158px] w-full overflow-auto rounded-md border border-input px-3 py-2 prose-headings:font-cal">- {Component}- </div>- );-}diff --git a/apps/web/src/components/content/simple-chart.tsx b/apps/web/src/components/content/simple-chart.tsxdeleted file mode 100644index 03ab3c70d..000000000--- a/apps/web/src/components/content/simple-chart.tsx+++ /dev/null@@ -1,33 +0,0 @@-"use client";--import { useEffect, useState } from "react";--import type { RegionTableProps } from "@/components/monitor-charts/region-table";-import { RegionTable } from "@/components/monitor-charts/region-table";--export interface SimpleChartProps {- staticFile: string;- caption?: string;-}--export function SimpleChart({ staticFile, caption }: SimpleChartProps) {- const [data, setData] = useState<RegionTableProps | undefined>(undefined);-- useEffect(() => {- const fetchData = async () => {- try {- const response = await fetch(staticFile);- const jsonData = await response.json();- setData(jsonData);- } catch (error) {- console.error("Error fetching data:", error);- }- };-- fetchData();- }, [staticFile]);-- if (!data) return null;-- return <RegionTable {...data} caption={caption} />;-}diff --git a/apps/web/src/components/content/timeline.tsx b/apps/web/src/components/content/timeline.tsxdeleted file mode 100644index b9423e240..000000000--- a/apps/web/src/components/content/timeline.tsx+++ /dev/null@@ -1,78 +0,0 @@-import Image from "next/image";-import Link from "next/link";--import { formatDate } from "@/lib/utils";--interface TimelineProps {- title: string;- description: string;- children?: React.ReactNode;- actions?: React.ReactNode;-}--export function Timeline({- title,- description,- children,- actions,-}: TimelineProps) {- return (- <div className="grid gap-8">- <div className="grid gap-4 md:grid-cols-5 md:gap-8">- <div className="md:col-span-1" />- <div className="flex flex-col gap-3 sm:flex-row sm:items-end sm:justify-between md:col-span-4">- <div className="grid gap-4">- <h1 className="font-cal text-4xl text-foreground">{title}</h1>- <p className="text-muted-foreground">{description}</p>- </div>- <div className="flex items-center gap-2 self-end">{actions}</div>- </div>- </div>- {children}- </div>- );-}--interface ArticleProps {- href: string;- publishedAt: Date;- imageSrc: string;- title: string;- children?: React.ReactNode;-}--function Article({- publishedAt,- imageSrc,- title,- children,- href,-}: ArticleProps) {- return (- <article className="grid grid-cols-1 gap-4 md:grid-cols-5 md:gap-6">- <div className="relative row-span-2">- <div className="sticky top-20">- <time className="order-2 font-mono text-muted-foreground text-sm md:order-1 md:col-span-1">- {formatDate(publishedAt)}- </time>- </div>- </div>- <div className="relative order-1 aspect-video w-full overflow-hidden rounded-md border border-border md:order-2 md:col-span-4">- <Link href={href}>- <Image- src={imageSrc}- fill={true}- alt={title}- className="object-cover"- />- </Link>- </div>- <div className="order-3 grid grid-cols-1 gap-4 md:col-span-4 md:col-start-2">- <h2 className="font-cal text-2xl text-foreground">{title}</h2>- {children}- </div>- </article>- );-}--Timeline.Article = Article;diff --git a/apps/web/src/components/dashboard/container.tsx b/apps/web/src/components/dashboard/container.tsxdeleted file mode 100644index 9649f569b..000000000--- a/apps/web/src/components/dashboard/container.tsx+++ /dev/null@@ -1,55 +0,0 @@-import {- Card,- CardContent,- CardDescription,- CardHeader,- CardTitle,- Skeleton,-} from "@openstatus/ui";--import { cn } from "@/lib/utils";--interface CardProps- extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {- title: React.ReactNode;- description?: string;- actions?: React.ReactNode | React.ReactNode[];-}--function Container({- title,- description,- actions,- className,- children,-}: CardProps) {- return (- <Card- className={cn("relative w-full border-border/50 shadow-none", className)}- >- <CardHeader className="flex flex-row items-start justify-between gap-4 space-y-0">- <div className="space-y-1.5">- <CardTitle className="font-medium text-lg tracking-normal">- {title}- </CardTitle>- {description ? (- <CardDescription>{description}</CardDescription>- ) : null}- </div>- {actions ? (- <div className="flex items-center gap-2">{actions}</div>- ) : null}- </CardHeader>- {/* potentially `asChild` */}- <CardContent>{children}</CardContent>- </Card>- );-}--function ContainerSkeleton() {- return <Skeleton className="h-24 w-full" />;-}--Container.Skeleton = ContainerSkeleton;--export { Container };diff --git a/apps/web/src/components/dashboard/copy-to-clipboard-button.tsx b/apps/web/src/components/dashboard/copy-to-clipboard-button.tsxdeleted file mode 100644index 07f7e16b6..000000000--- a/apps/web/src/components/dashboard/copy-to-clipboard-button.tsx+++ /dev/null@@ -1,62 +0,0 @@-"use client";--import * as React from "react";--import {- Button,- Tooltip,- TooltipContent,- TooltipProvider,- TooltipTrigger,-} from "@openstatus/ui";--import { Icons } from "@/components/icons";-import { cn, copyToClipboard } from "@/lib/utils";--export function CopyToClipboardButton({- text,- tooltipText,- className,-}: {- text: string;- tooltipText: string;- className?: string;-}) {- const [hasCopied, setHasCopied] = React.useState(false);-- React.useEffect(() => {- if (hasCopied) {- setTimeout(() => {- setHasCopied(false);- }, 2000);- }- }, [hasCopied]);-- return (- <TooltipProvider>- <Tooltip>- <TooltipTrigger asChild>- <Button- type="button"- variant="ghost"- size="icon"- className={cn("h-7 w-7", className)}- onClick={() => {- copyToClipboard(text);- setHasCopied(true);- }}- >- {!hasCopied ? (- <Icons.link className="h-4 w-4" />- ) : (- <Icons.check className="h-4 w-4" />- )}- </Button>- </TooltipTrigger>- <TooltipContent>- <p>{tooltipText}</p>- </TooltipContent>- </Tooltip>- </TooltipProvider>- );-}diff --git a/apps/web/src/components/dashboard/empty-state.tsx b/apps/web/src/components/dashboard/empty-state.tsxdeleted file mode 100644index 2e7200256..000000000--- a/apps/web/src/components/dashboard/empty-state.tsx+++ /dev/null@@ -1,26 +0,0 @@-import type { ValidIcon } from "@/components/icons";-import { Icons } from "@/components/icons";-import type { ComponentProps, ReactNode } from "react";--interface Props extends ComponentProps<"div"> {- icon: ValidIcon;- title: string;- description: string;- action?: ReactNode;-}--export function EmptyState({ icon, title, description, action }: Props) {- const Icon = Icons[icon];- return (- <div className="col-span-full w-full rounded-lg border border-border border-dashed bg-background p-8">- <div className="flex flex-col items-center justify-center gap-4">- <div className="flex flex-col items-center justify-center gap-1">- <Icon className="h-6 w-6" />- <p className="text-base text-foreground">{title}</p>- <p className="text-center text-muted-foreground">{description}</p>- </div>- {action ? <div>{action}</div> : null}- </div>- </div>- );-}diff --git a/apps/web/src/components/dashboard/header.tsx b/apps/web/src/components/dashboard/header.tsxdeleted file mode 100644index 57a4af36b..000000000--- a/apps/web/src/components/dashboard/header.tsx+++ /dev/null@@ -1,59 +0,0 @@-import { Skeleton } from "@openstatus/ui";--import { cn } from "@/lib/utils";--interface HeaderProps extends React.HTMLAttributes<HTMLDivElement> {- title?: string;- description?: React.ReactNode;- actions?: React.ReactNode | React.ReactNode[];-}--/**- * use `children` to include a Button e.g.- */-function Header({ title, description, className, actions }: HeaderProps) {- return (- <div- className={cn(- "col-span-full flex items-start justify-between gap-1",- className,- )}- >- <div className="flex min-w-0 flex-col gap-1">- <h1 className="font-cal text-3xl">{title}</h1>- {typeof description === "string" ? (- <p className="text-muted-foreground">{description}</p>- ) : (- description- )}- </div>- {actions ? (- <div className="flex flex-1 items-center justify-end gap-2">- {actions}- </div>- ) : null}- </div>- );-}--function HeaderSkeleton({- children,- withDescription = true,-}: {- children?: React.ReactNode;- withDescription?: boolean;-}) {- return (- <div className="col-span-full flex w-full justify-between">- <div className="grid w-full gap-3">- <Skeleton className="h-8 w-full max-w-[200px]" />- {withDescription && <Skeleton className="h-4 w-full max-w-[300px]" />}- </div>- {children}- </div>- );-}--Header.Skeleton = HeaderSkeleton;--export { Header };diff --git a/apps/web/src/components/dashboard/shell.tsx b/apps/web/src/components/dashboard/shell.tsxdeleted file mode 100644index 7468a7780..000000000--- a/apps/web/src/components/dashboard/shell.tsx+++ /dev/null@@ -1,18 +0,0 @@-import { cn } from "@/lib/utils";--type ShellProps = React.HTMLAttributes<HTMLDivElement>;--function Shell({ children, className }: ShellProps) {- return (- <div- className={cn(- "w-full rounded-lg border border-border px-3 py-4 backdrop-blur-[2px] md:p-6",- className,- )}- >- {children}- </div>- );-}--export { Shell };diff --git a/apps/web/src/components/dashboard/tabs-link.tsx b/apps/web/src/components/dashboard/tabs-link.tsxdeleted file mode 100644index 443afc964..000000000--- a/apps/web/src/components/dashboard/tabs-link.tsx+++ /dev/null@@ -1,103 +0,0 @@-"use client";--import { cn } from "@/lib/utils";-import type { LinkProps } from "next/link";-import Link from "next/link";-import type { ReactNode } from "react";-import React from "react";--export interface TabsContainerProps- extends React.HTMLAttributes<HTMLDivElement>,- Partial<TabsContextProps> {}--export function TabsContainer({- className,- direction = "horizontal",- position = "end",- children,-}: TabsContainerProps) {- return (- <TabsContext.Provider value={{ direction, position }}>- <nav- className={cn(- "flex",- {- "items-center overflow-x-auto": direction === "horizontal",- },- className,- )}- >- <ul- className={cn("flex", {- "flex-row": direction === "horizontal",- "flex-col": direction === "vertical",- })}- >- {children}- </ul>- </nav>- </TabsContext.Provider>- );-}--export interface TabsLinkProps extends LinkProps {- children: ReactNode;- className?: string;- active?: boolean;- disabled?: boolean;-}--export function TabsLink({- children,- active,- className,- disabled,- ...props-}: TabsLinkProps) {- const { direction, position } = useTabs();- return (- <li- className={cn("flex shrink-0 list-none border-transparent", {- "border-primary": active,- "pointer-events-none opacity-70": disabled,- "border-b-2": position === "end" && direction === "horizontal",- "border-l-2": position === "start" && direction === "vertical",- // ... missing t, r- })}- >- <Link- className={cn(- "rounded-md font-medium text-muted-foreground text-sm hover:text-primary",- {- "text-primary": active,- "px-4 pt-2 pb-3": direction === "horizontal",- "px-4 py-2.5": direction === "vertical",- },- className,- )}- {...props}- >- {children}- </Link>- </li>- );-}--// ----------------interface TabsContextProps {- direction: "horizontal" | "vertical";- position: "start" | "end";-}--const TabsContext = React.createContext<TabsContextProps | null>(null);--const useTabs = () => {- const tabsContext = React.useContext(TabsContext);-- if (!tabsContext) {- throw new Error("useTabs has to be used within <TabsContext.Provider>");- }-- return tabsContext;-};diff --git a/apps/web/src/components/dashboard/tabs.tsx b/apps/web/src/components/dashboard/tabs.tsxdeleted file mode 100644index 62364589e..000000000--- a/apps/web/src/components/dashboard/tabs.tsx+++ /dev/null@@ -1,55 +0,0 @@-"use client";--import {- Separator,- Tabs as ShadcnTabs,- TabsContent as ShadcnTabsContent,- TabsList as ShadcnTabsList,- TabsTrigger as ShadcnTabsTrigger,-} from "@openstatus/ui";--import { cn } from "@/lib/utils";--export function TabsList({- className,- ...props-}: React.ComponentPropsWithoutRef<typeof ShadcnTabsList> & {}) {- return (- // REMINDER: needed for sticky header - ideally, we remove the div- <div className={className}>- <ShadcnTabsList- className={cn(- "w-full justify-start overflow-x-auto overflow-y-hidden rounded-none bg-transparent p-0",- )}- {...props}- />- <Separator className="mb-6" />- </div>- );-}--export function TabsTrigger({- className,- ...props-}: React.ComponentPropsWithoutRef<typeof ShadcnTabsTrigger>) {- return (- <ShadcnTabsTrigger- className={cn(- "relative rounded-none border-b-4 border-b-transparent bg-transparent px-4 pt-2 pb-3 text-muted-foreground shadow-none transition-none hover:text-primary data-[state=active]:border-b-primary data-[state=active]:bg-transparent data-[state=active]:text-foreground data-[state=active]:shadow-none",- className,- )}- {...props}- />- );-}--export function Tabs(props: React.ComponentPropsWithoutRef<typeof ShadcnTabs>) {- return <ShadcnTabs {...props} />;-}--export function TabsContent({- className,- ...props-}: React.ComponentPropsWithoutRef<typeof ShadcnTabsContent>) {- return <ShadcnTabsContent className={cn("w-full", className)} {...props} />;-}diff --git a/apps/web/src/components/data-table/columns.tsx b/apps/web/src/components/data-table/columns.tsxdeleted file mode 100644index 2c87490b4..000000000--- a/apps/web/src/components/data-table/columns.tsx+++ /dev/null@@ -1,118 +0,0 @@-"use client";--import type { ColumnDef } from "@tanstack/react-table";-import { format } from "date-fns";-import type * as z from "zod";--import { regionDict } from "@openstatus/regions";--import type { Trigger } from "@/lib/monitor/utils";-import type { monitorRegionSchema } from "@openstatus/db/src/schema/constants";-import { TriggerIconWithTooltip } from "../monitor/trigger-icon-with-tooltip";-import { DataTableColumnHeader } from "./data-table-column-header";-import { DataTableStatusBadge } from "./data-table-status-badge";--export type Check = {- type: "http" | "tcp";- monitorId: string;- latency: number;- region: z.infer<typeof monitorRegionSchema>;- statusCode?: number | null;- timestamp: number;- workspaceId: string;- cronTimestamp: number | null;- error: boolean;- trigger: Trigger | null;-};--export const columns: ColumnDef<Check>[] = [- {- accessorKey: "error",- header: () => null,- cell: ({ row }) => {- if (row.original.error)- return <div className="h-2.5 w-2.5 rounded-full bg-rose-500" />;- return <div className="h-2.5 w-2.5 rounded-full bg-green-500" />;- },- filterFn: (row, id, value) => value.includes(row.getValue(id)),- },- {- accessorKey: "cronTimestamp",- header: ({ column }) => (- <DataTableColumnHeader column={column} title="Date" />- ),- cell: ({ row }) => {- return (- <div>- {format(new Date(row.getValue("cronTimestamp")), "LLL dd, y HH:mm")}- </div>- );- },- },- {- accessorKey: "statusCode",- header: ({ column }) => (- <DataTableColumnHeader column={column} title="Status" />- ),- cell: ({ row }) => {- const statusCode = row.getValue("statusCode") as- | number- | null- | undefined;-- if (statusCode) {- return <DataTableStatusBadge {...{ statusCode }} />;- }-- return <div className="text-muted-foreground">N/A</div>;- },- filterFn: (row, id, value) => {- // get the first digit of the status code- return value.includes(Number(String(row.getValue(id)).charAt(0)));- },- },- {- accessorKey: "latency",- header: ({ column }) => (- <DataTableColumnHeader column={column} title="Latency (ms)" />- ),- filterFn: (row, id, value) => {- const { select, input } = value || {};- if (select === "min" && input)- return Number.parseInt(row.getValue(id)) > Number.parseInt(input);- if (select === "max" && input)- return Number.parseInt(row.getValue(id)) < Number.parseInt(input);- return true;- },- },- {- accessorKey: "region",- header: ({ column }) => (- <DataTableColumnHeader column={column} title="Region" />- ),- cell: ({ row }) => {- return (- <div>- <span className="font-mono">{String(row.getValue("region"))} </span>- <span className="text-muted-foreground text-xs">- {regionDict[row.original.region]?.location}- </span>- </div>- );- },- filterFn: (row, id, value) => {- return value.includes(row.getValue(id));- },- },- {- accessorKey: "trigger",- header: () => null,- cell: ({ row }) => {- const value = row.getValue("trigger") as Trigger;- return <TriggerIconWithTooltip triggerType={value} />;- },- filterFn: (row, id, value) => {- return value.includes(row.getValue(id));- },- },-];diff --git a/apps/web/src/components/data-table/data-table-badges.tsx b/apps/web/src/components/data-table/data-table-badges.tsxdeleted file mode 100644index ee0bbb28c..000000000--- a/apps/web/src/components/data-table/data-table-badges.tsx+++ /dev/null@@ -1,40 +0,0 @@-import {- Badge,- Tooltip,- TooltipContent,- TooltipProvider,- TooltipTrigger,-} from "@openstatus/ui";--export function DataTableBadges({ names }: { names: string[] }) {- const [first, second, ...rest] = names;-- if (names.length === 0) return null;-- return (- <div className="flex items-center gap-2">- <span className="flex max-w-[150px] gap-2 truncate font-medium sm:max-w-[200px] lg:max-w-[250px] xl:max-w-[350px]">- <Badge variant="outline">{first}</Badge>- {second ? <Badge variant="outline">{second}</Badge> : null}- </span>- {rest.length > 0 ? (- <TooltipProvider>- <Tooltip delayDuration={200}>- <TooltipTrigger>- <Badge variant="secondary" className="border">- +{rest.length}- </Badge>- </TooltipTrigger>- <TooltipContent side="top" className="flex gap-2">- {rest.map((name, i) => (- <Badge key={i} variant="outline">- {name}- </Badge>- ))}- </TooltipContent>- </Tooltip>- </TooltipProvider>- ) : null}- </div>- );-}diff --git a/apps/web/src/components/data-table/data-table-column-header.tsx b/apps/web/src/components/data-table/data-table-column-header.tsxdeleted file mode 100644index 5781cea57..000000000--- a/apps/web/src/components/data-table/data-table-column-header.tsx+++ /dev/null@@ -1,54 +0,0 @@-import type { Column } from "@tanstack/react-table";-import { ChevronDown, ChevronUp } from "lucide-react";--import { Button, type ButtonProps } from "@openstatus/ui";--import { cn } from "@/lib/utils";--interface DataTableColumnHeaderProps<TData, TValue> extends ButtonProps {- column: Column<TData, TValue>;- title: string;-}--export function DataTableColumnHeader<TData, TValue>({- column,- title,- className,- ...props-}: DataTableColumnHeaderProps<TData, TValue>) {- if (!column.getCanSort()) {- return <div className={cn(className)}>{title}</div>;- }-- return (- <Button- variant="ghost"- size="sm"- onClick={() => {- column.toggleSorting(undefined);- }}- className={cn("-ml-3", className)}- {...props}- >- <span>{title}</span>- <span className="ml-2 flex flex-col">- <ChevronUp- className={cn(- "-mb-0.5 h-3 w-3",- column.getIsSorted() === "asc" || !column.getIsSorted()- ? "text-accent-foreground"- : "text-muted-foreground/70",- )}- />- <ChevronDown- className={cn(- "-mt-0.5 h-3 w-3",- column.getIsSorted() === "desc" || !column.getIsSorted()- ? "text-accent-foreground"- : "text-muted-foreground/70",- )}- />- </span>- </Button>- );-}diff --git a/apps/web/src/components/data-table/data-table-faceted-filter.tsx b/apps/web/src/components/data-table/data-table-faceted-filter.tsxdeleted file mode 100644index d24765b8e..000000000--- a/apps/web/src/components/data-table/data-table-faceted-filter.tsx+++ /dev/null@@ -1,154 +0,0 @@-"use client";--import {- Badge,- Button,- Command,- CommandEmpty,- CommandGroup,- CommandInput,- CommandItem,- CommandList,- CommandSeparator,- Popover,- PopoverContent,- PopoverTrigger,- Separator,-} from "@openstatus/ui";-import type { Column } from "@tanstack/react-table";-import { Check, PlusCircle } from "lucide-react";--import { cn } from "@/lib/utils";-import { useQueryState } from "nuqs";--interface DataTableFacetedFilter<TData, TValue> {- column?: Column<TData, TValue>;- title?: string;- options: {- label: string;- value: string | number | boolean;- icon?: React.ComponentType<{ className?: string }>;- }[];-}--export function DataTableFacetedFilter<TData, TValue>({- column,- title,- options,-}: DataTableFacetedFilter<TData, TValue>) {- // REMINDER: should have a default value for the column- if (!column) throw new Error("Column is required.");-- const [_, setValue] = useQueryState(column.id, { shallow: false });- const facets = column.getFacetedUniqueValues();- const selectedValues = new Set(- column.getFilterValue() as (string | number | boolean)[],- );-- return (- <Popover>- <PopoverTrigger asChild>- <Button variant="outline" size="sm" className="h-8 border-dashed">- <PlusCircle className="mr-2 h-4 w-4" />- {title}- {selectedValues?.size > 0 && (- <>- <Separator orientation="vertical" className="mx-2 h-4" />- <Badge- variant="secondary"- className="rounded-sm px-1 font-normal lg:hidden"- >- {selectedValues.size}- </Badge>- <div className="hidden space-x-1 lg:flex">- {selectedValues.size > 2 ? (- <Badge- variant="secondary"- className="rounded-sm px-1 font-normal"- >- {selectedValues.size} selected- </Badge>- ) : (- options- .filter((option) => selectedValues.has(option.value))- .map((option) => (- <Badge- variant="secondary"- key={String(option.value)}- className="rounded-sm px-1 font-normal"- >- {option.label}- </Badge>- ))- )}- </div>- </>- )}- </Button>- </PopoverTrigger>- <PopoverContent className="w-[200px] p-0" align="start">- <Command>- <CommandInput placeholder={title} />- <CommandList>- <CommandEmpty>No results found.</CommandEmpty>- <CommandGroup>- {options.map((option) => {- const isSelected = selectedValues.has(option.value);- return (- <CommandItem- key={String(option.value)}- onSelect={() => {- if (isSelected) {- selectedValues.delete(option.value);- } else {- selectedValues.add(option.value);- }- const filterValues = Array.from(selectedValues);- column.setFilterValue(- filterValues.length ? filterValues : undefined,- );- setValue(filterValues?.join(",") || null);- }}- >- <div- className={cn(- "mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",- isSelected- ? "bg-primary text-primary-foreground"- : "opacity-50 [&_svg]:invisible",- )}- >- <Check className={cn("h-4 w-4")} />- </div>- {option.icon && (- <option.icon className="mr-2 h-4 w-4 text-muted-foreground" />- )}- <span>{option.label}</span>- {facets?.get(option.value) ? (- <span className="ml-auto flex h-4 w-4 items-center justify-center font-mono text-xs">- {facets.get(option.value)}- </span>- ) : null}- </CommandItem>- );- })}- </CommandGroup>- {selectedValues.size > 0 && (- <>- <CommandSeparator />- <CommandGroup>- <CommandItem- onSelect={() => column.setFilterValue(undefined)}- className="justify-center text-center"- >- Clear filters- </CommandItem>- </CommandGroup>- </>- )}- </CommandList>- </Command>- </PopoverContent>- </Popover>- );-}diff --git a/apps/web/src/components/data-table/data-table-faceted-input-dropdown.tsx b/apps/web/src/components/data-table/data-table-faceted-input-dropdown.tsxdeleted file mode 100644index fea01b3b1..000000000--- a/apps/web/src/components/data-table/data-table-faceted-input-dropdown.tsx+++ /dev/null@@ -1,92 +0,0 @@-import type { Column } from "@tanstack/react-table";-import { PlusCircle } from "lucide-react";--import {- Select,- SelectContent,- SelectGroup,- SelectItem,- SelectTrigger,- SelectValue,- Separator,-} from "@openstatus/ui";--interface DataTableFacetedInputDropdownProps<TData, TValue> {- column?: Column<TData, TValue>;- title?: string;- options: {- label: string;- value: string | number | boolean;- icon?: React.ComponentType<{ className?: string }>;- }[];-}--export function DataTableFacetedInputDropdown<TData, TValue>({- column,- title,- options,-}: DataTableFacetedInputDropdownProps<TData, TValue>) {- const selectedValue = column?.getFilterValue() as {- input?: number;- select?: string;- };-- return (- <div className="group flex h-8 items-center overflow-hidden rounded-md border border-input border-dashed bg-transparent text-sm ring-offset-background focus-within:outline-hidden focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2">- <Select- value={selectedValue?.select || ""}- onValueChange={(value) => {- column?.setFilterValue({- ...selectedValue,- select: value,- });- }}- >- <SelectTrigger className="h-8 max-w-min space-x-2 rounded-none border-0 ring-offset-inherit hover:bg-muted focus:ring-0 focus:ring-offet-0">- <SelectValue- placeholder={- <div className="flex items-center font-medium text-xs">- <PlusCircle className="mr-2 h-4 w-4" />- {title}- </div>- }- />- </SelectTrigger>- <SelectContent>- <SelectGroup>- {options?.map((option) => {- return (- <SelectItem- key={String(option.value)}- value={String(option.value)}- >- {option.icon && (- <option.icon className="mr-2 h-4 w-4 text-muted-foreground" />- )}- {option.label}- </SelectItem>- );- })}- </SelectGroup>- </SelectContent>- </Select>- <Separator orientation="vertical" className="h-4" />- <input- className="w-24 rounded-md bg-background px-3 py-2 placeholder:text-muted-foreground focus:outline-hidden disabled:cursor-not-allowed disabled:opacity-50"- type="number"- placeholder="4000"- min={0}- value={selectedValue?.input || ""}- onChange={(e) => {- column?.setFilterValue({- ...selectedValue,- input: Number.parseInt(e.target.value),- });- }}- />- <div className="flex h-full items-center border-input bg-muted p-2 text-sm">- ms- </div>- </div>- );-}diff --git a/apps/web/src/components/data-table/data-table-filter-input.tsx b/apps/web/src/components/data-table/data-table-filter-input.tsxdeleted file mode 100644index 96384c537..000000000--- a/apps/web/src/components/data-table/data-table-filter-input.tsx+++ /dev/null@@ -1,26 +0,0 @@-"use client";--import type { Table } from "@tanstack/react-table";--import { Input } from "@openstatus/ui";--interface DataTableFilterInputProps<TData> {- table: Table<TData>;-}--export function DataTableFilterInput<TData>({- table,-}: DataTableFilterInputProps<TData>) {- // const isFiltered = table.getState().columnFilters.length > 0;- return (- <Input- type="number"- placeholder="Filter status code..."- value={(table.getColumn("statusCode")?.getFilterValue() as string) ?? ""}- onChange={(event) => {- table.getColumn("statusCode")?.setFilterValue(event.target.value);- }}- className="h-8 w-[150px] lg:w-[250px]"- />- );-}diff --git a/apps/web/src/components/data-table/data-table-pagination.tsx b/apps/web/src/components/data-table/data-table-pagination.tsxdeleted file mode 100644index 503088e30..000000000--- a/apps/web/src/components/data-table/data-table-pagination.tsx+++ /dev/null@@ -1,118 +0,0 @@-"use client";--import type { Table } from "@tanstack/react-table";-import {- ChevronLeft,- ChevronRight,- ChevronsLeft,- ChevronsRight,-} from "lucide-react";--import {- Button,- Select,- SelectContent,- SelectItem,- SelectTrigger,- SelectValue,-} from "@openstatus/ui";--import { parseAsInteger, useQueryStates } from "nuqs";--// REMINDER: pageIndex pagination issue - jumping back to 0 after change--interface DataTablePaginationProps<TData> {- table: Table<TData>;-}--export function DataTablePagination<TData>({- table,-}: DataTablePaginationProps<TData>) {- const [_, setSearchParams] = useQueryStates({- pageSize: parseAsInteger.withDefault(10),- // pageIndex: parseAsInteger.withDefault(0),- });-- return (- <div className="flex items-center justify-between px-2">- <div>- <p className="text-muted-foreground text-sm">- {table.getFilteredRowModel().rows.length} row(s) filtered- </p>- </div>- <div className="flex items-center space-x-6 lg:space-x-8">- <div className="flex items-center space-x-2">- <p className="font-medium text-sm">Rows per page</p>- <Select- value={`${table.getState().pagination.pageSize}`}- onValueChange={(value) => {- table.setPageSize(Number(value));- setSearchParams({ pageSize: Number(value) });- }}- >- <SelectTrigger className="h-8 w-[70px]">- <SelectValue placeholder={table.getState().pagination.pageSize} />- </SelectTrigger>- <SelectContent side="top">- {[10, 20, 30, 40, 50].map((pageSize) => (- <SelectItem key={pageSize} value={`${pageSize}`}>- {pageSize}- </SelectItem>- ))}- </SelectContent>- </Select>- </div>- <div className="flex w-[100px] items-center justify-center font-medium text-sm">- Page {table.getState().pagination.pageIndex + 1} of{" "}- {table.getPageCount()}- </div>- <div className="flex items-center space-x-2">- <Button- variant="outline"- className="hidden h-8 w-8 p-0 lg:flex"- onClick={() => {- table.setPageIndex(0);- }}- disabled={!table.getCanPreviousPage()}- >- <span className="sr-only">Go to first page</span>- <ChevronsLeft className="h-4 w-4" />- </Button>- <Button- variant="outline"- className="h-8 w-8 p-0"- onClick={() => {- table.previousPage();- }}- disabled={!table.getCanPreviousPage()}- >- <span className="sr-only">Go to previous page</span>- <ChevronLeft className="h-4 w-4" />- </Button>- <Button- variant="outline"- className="h-8 w-8 p-0"- onClick={() => {- table.nextPage();- }}- disabled={!table.getCanNextPage()}- >- <span className="sr-only">Go to next page</span>- <ChevronRight className="h-4 w-4" />- </Button>- <Button- variant="outline"- className="hidden h-8 w-8 p-0 lg:flex"- onClick={() => {- table.setPageIndex(table.getPageCount() - 1);- }}- disabled={!table.getCanNextPage()}- >- <span className="sr-only">Go to last page</span>- <ChevronsRight className="h-4 w-4" />- </Button>- </div>- </div>- </div>- );-}diff --git a/apps/web/src/components/data-table/data-table-region-select.tsx b/apps/web/src/components/data-table/data-table-region-select.tsxdeleted file mode 100644index aeb9ce4a8..000000000--- a/apps/web/src/components/data-table/data-table-region-select.tsx+++ /dev/null@@ -1,3 +0,0 @@-export default function DataTableRegionSelect() {- return <div />;-}diff --git a/apps/web/src/components/data-table/data-table-row-action.tsx b/apps/web/src/components/data-table/data-table-row-action.tsxdeleted file mode 100644index 3cbb9f475..000000000--- a/apps/web/src/components/data-table/data-table-row-action.tsx+++ /dev/null@@ -1,51 +0,0 @@-"use client";--import type { Row } from "@tanstack/react-table";-import { MoreHorizontal } from "lucide-react";-import Link from "next/link";--import {- Button,- DropdownMenu,- DropdownMenuContent,- DropdownMenuItem,- DropdownMenuTrigger,-} from "@openstatus/ui";-import { z } from "zod";--interface DataTableRowActionsProps<TData> {- row: Row<TData>;-}--export function DataTableRowActions<TData>({- row,-}: DataTableRowActionsProps<TData>) {- // FIXME: DRY - this is a duplicate of the OSTinybird endpoint- const ping = z- .object({- monitorId: z.string(),- cronTimestamp: z.number(),- region: z.string(),- })- .parse(row.original);- return (- <DropdownMenu>- <DropdownMenuTrigger asChild>- <Button- variant="ghost"- className="h-8 w-8 p-0 data-[state=open]:bg-accent"- >- <span className="sr-only">Open menu</span>- <MoreHorizontal className="h-4 w-4" />- </Button>- </DropdownMenuTrigger>- <DropdownMenuContent align="end">- <Link- href={`./details?monitorId=${ping.monitorId}&cronTimestamp=${ping.cronTimestamp}®ion=${ping.region}`}- >- <DropdownMenuItem>Details</DropdownMenuItem>- </Link>- </DropdownMenuContent>- </DropdownMenu>- );-}diff --git a/apps/web/src/components/data-table/data-table-skeleton.tsx b/apps/web/src/components/data-table/data-table-skeleton.tsxdeleted file mode 100644index 9244a6321..000000000--- a/apps/web/src/components/data-table/data-table-skeleton.tsx+++ /dev/null@@ -1,66 +0,0 @@-import {- Skeleton, // @/components/skeleton- Table, // @/components/table- TableBody,- TableCell,- TableHead,- TableHeader,- TableRow,-} from "@openstatus/ui";--interface DataTableSkeletonProps {- /**- * Number of rows to render- * @default 3- */- rows?: number;-}--// TODO: add checkbox skeleton (for MonitorTable e.g.)--export function DataTableSkeleton({ rows = 3 }: DataTableSkeletonProps) {- return (- <div className="rounded-md border">- <Table>- <TableHeader className="bg-muted/50">- <TableRow className="hover:bg-transparent">- <TableHead>- <Skeleton className="my-1.5 h-4 w-24" />- </TableHead>- <TableHead className="hidden sm:table-cell">- <Skeleton className="my-1.5 h-4 w-32" />- </TableHead>- <TableHead className="hidden md:table-cell">- <Skeleton className="my-1.5 h-4 w-16" />- </TableHead>- <TableHead>- <Skeleton className="my-1.5 h-4 w-20" />- </TableHead>- <TableHead className="flex items-center justify-end" />- </TableRow>- </TableHeader>- <TableBody>- {new Array(rows).fill(0).map((_, i) => (- <TableRow key={i} className="hover:bg-transparent">- <TableCell>- <Skeleton className="my-1.5 h-4 w-full max-w-40" />- </TableCell>- <TableCell className="hidden sm:table-cell">- <Skeleton className="my-1.5 h-4 w-full max-w-52" />- </TableCell>- <TableCell className="hidden md:table-cell">- <Skeleton className="my-1.5 h-4 w-24" />- </TableCell>- <TableCell>- <Skeleton className="my-1.5 h-4 w-full max-w-40" />- </TableCell>- <TableCell className="flex justify-end">- <Skeleton className="my-1.5 h-5 w-5" />- </TableCell>- </TableRow>- ))}- </TableBody>- </Table>- </div>- );-}diff --git a/apps/web/src/components/data-table/data-table-status-badge.tsx b/apps/web/src/components/data-table/data-table-status-badge.tsxdeleted file mode 100644index d178ef53d..000000000--- a/apps/web/src/components/data-table/data-table-status-badge.tsx+++ /dev/null@@ -1,14 +0,0 @@-import { Badge } from "@openstatus/ui/src/components/badge";--import { StatusCodeBadge } from "@/components/monitor/status-code-badge";--export function DataTableStatusBadge({- statusCode,-}: {- statusCode?: number | null;-}) {- if (!statusCode) {- return <Badge variant="destructive">Error</Badge>;- }- return <StatusCodeBadge statusCode={statusCode} />;-}diff --git a/apps/web/src/components/data-table/data-table-toolbar-skeleton.tsx b/apps/web/src/components/data-table/data-table-toolbar-skeleton.tsxdeleted file mode 100644index 8dc2e584a..000000000--- a/apps/web/src/components/data-table/data-table-toolbar-skeleton.tsx+++ /dev/null@@ -1,11 +0,0 @@-import { Skeleton } from "@openstatus/ui";--export function DataTableToolbarSkeleton() {- return (- <div className="flex flex-wrap items-center justify-between gap-3">- <div className="flex flex-1 items-center gap-2">- <Skeleton className="h-8 w-[150px] lg:w-[250px]" />- </div>- </div>- );-}diff --git a/apps/web/src/components/data-table/data-table-toolbar.tsx b/apps/web/src/components/data-table/data-table-toolbar.tsxdeleted file mode 100644index 9ae12e6e4..000000000--- a/apps/web/src/components/data-table/data-table-toolbar.tsx+++ /dev/null@@ -1,112 +0,0 @@-"use client";--import type { Table } from "@tanstack/react-table";-import { X } from "lucide-react";-import { useRouter, useSearchParams } from "next/navigation";--import { regionDict } from "@openstatus/regions";-import { Button } from "@openstatus/ui/src/components/button";--import { Icons } from "@/components/icons";-import { codesDict } from "@/data/code-dictionary";-import { triggerDict } from "@/data/trigger-dictionary";-import { DataTableFacetedFilter } from "./data-table-faceted-filter";-import { DataTableFacetedInputDropdown } from "./data-table-faceted-input-dropdown";--interface DataTableToolbarProps<TData> {- table: Table<TData>;-}--export function DataTableToolbar<TData>({- table,-}: DataTableToolbarProps<TData>) {- const router = useRouter();- const searchParams = useSearchParams();- const isFiltered = table.getState().columnFilters.length > 0;-- return (- <div className="flex flex-wrap items-center justify-between gap-3">- <div className="flex flex-1 flex-wrap items-center gap-2">- {table.getColumn("statusCode")?.getIsVisible() && (- <DataTableFacetedFilter- column={table.getColumn("statusCode")}- title="Status Code"- options={Object.keys(codesDict).map((key) => {- const typedKey = key as keyof typeof codesDict;- return {- label: codesDict[typedKey].label,- value: codesDict[typedKey].prefix,- };- })}- />- )}- {table.getColumn("region") && (- <DataTableFacetedFilter- column={table.getColumn("region")}- title="Region"- options={Object.keys(regionDict).map((key) => {- const typedKey = key as keyof typeof regionDict;- return {- label: regionDict[typedKey].location,- value: regionDict[typedKey].code,- };- })}- />- )}- {table.getColumn("error") && (- <DataTableFacetedFilter- column={table.getColumn("error")}- title="Request"- options={[- // once we include 'degraded' requests, we can revert error to a number- { value: true, label: "Failed" },- { value: false, label: "Success" },- ]}- />- )}- {table.getColumn("latency") && (- <DataTableFacetedInputDropdown- title="Latency"- column={table.getColumn("latency")}- options={[- { value: "min", label: "Min." },- { value: "max", label: "Max." },- ]}- />- )}- {table.getColumn("trigger") && (- <DataTableFacetedFilter- column={table.getColumn("trigger")}- title="Trigger"- options={(["cron", "api"] as const).map((key) => {- const { label, icon, value } = triggerDict[key];- return {- label,- value,- icon: Icons[icon],- };- })}- />- )}- {isFiltered && (- <Button- variant="ghost"- onClick={() => {- const period = searchParams.get("period");- table.resetColumnFilters();- if (period) {- router.replace(`?period=${period}`, {- scroll: false,- });- }- }}- className="h-8 px-2 lg:px-3"- >- Reset- <X className="ml-2 h-4 w-4" />- </Button>- )}- </div>- </div>- );-}diff --git a/apps/web/src/components/data-table/data-table-view-options.tsx b/apps/web/src/components/data-table/data-table-view-options.tsxdeleted file mode 100644index 6e9cbe3c8..000000000--- a/apps/web/src/components/data-table/data-table-view-options.tsx+++ /dev/null@@ -1,56 +0,0 @@-"use client";--import type { Table } from "@tanstack/react-table";-import { Settings2 } from "lucide-react";--import { Button } from "@openstatus/ui/src/components/button";-import {- DropdownMenu,- DropdownMenuCheckboxItem,- DropdownMenuContent,- DropdownMenuLabel,- DropdownMenuSeparator,- DropdownMenuTrigger,-} from "@openstatus/ui/src/components/dropdown-menu";--interface DataTableViewOptionsProps<TData> {- table: Table<TData>;-}--export function DataTableViewOptions<TData>({- table,-}: DataTableViewOptionsProps<TData>) {- return (- <DropdownMenu>- <DropdownMenuTrigger asChild>- <Button variant="outline" size="sm" className="shadow-none">- <Settings2 className="mr-2 h-4 w-4" />- View- </Button>- </DropdownMenuTrigger>- <DropdownMenuContent align="end" className="w-[150px]">- <DropdownMenuLabel>Display properties</DropdownMenuLabel>- <DropdownMenuSeparator />- {table- .getAllColumns()- .filter(- (column) =>- typeof column.accessorFn !== "undefined" && column.getCanHide(),- )- .map((column) => {- return (- <DropdownMenuCheckboxItem- key={column.id}- className={"capitalize"}- onSelect={(e) => e.preventDefault()}- checked={column.getIsVisible()}- onCheckedChange={(value) => column.toggleVisibility(!!value)}- >- {column.id}- </DropdownMenuCheckboxItem>- );- })}- </DropdownMenuContent>- </DropdownMenu>- );-}diff --git a/apps/web/src/components/data-table/data-table.tsx b/apps/web/src/components/data-table/data-table.tsxdeleted file mode 100644index 49a45d27b..000000000--- a/apps/web/src/components/data-table/data-table.tsx+++ /dev/null@@ -1,168 +0,0 @@-"use client";--import type {- ColumnDef,- ColumnFiltersState,- ExpandedState,- PaginationState,- Row,- SortingState,- VisibilityState,-} from "@tanstack/react-table";-import {- flexRender,- getCoreRowModel,- getExpandedRowModel,- getFilteredRowModel,- getPaginationRowModel,- getSortedRowModel,- useReactTable,-} from "@tanstack/react-table";-import * as React from "react";--import {- Table,- TableBody,- TableCell,- TableHead,- TableHeader,- TableRow,-} from "@openstatus/ui";--import { cn } from "@/lib/utils";-import { DataTablePagination } from "./data-table-pagination";-import { DataTableToolbar } from "./data-table-toolbar";--interface DataTableProps<TData, TValue> {- columns: ColumnDef<TData, TValue>[];- data: TData[];- renderSubComponent(props: { row: Row<TData> }): React.ReactElement<unknown>;- getRowCanExpand(row: Row<TData>): boolean;- autoResetExpanded?: boolean;- defaultColumnFilters?: ColumnFiltersState;- defaultPagination?: PaginationState;- defaultVisibility?: VisibilityState;- // allowedPeriods?: Period[]; REMIDNER: disabled unallowed periods-}--export function DataTable<TData, TValue>({- columns,- data,- renderSubComponent,- getRowCanExpand,- autoResetExpanded,- defaultColumnFilters = [],- defaultPagination = { pageIndex: 0, pageSize: 10 },- defaultVisibility = {},-}: DataTableProps<TData, TValue>) {- const [sorting, setSorting] = React.useState<SortingState>([]);- const [columnFilters, setColumnFilters] =- React.useState<ColumnFiltersState>(defaultColumnFilters);- const [expanded, setExpanded] = React.useState<ExpandedState>({});- const [pagination, setPagination] =- React.useState<PaginationState>(defaultPagination);- const [columnVisibility, setColumnVisibility] =- React.useState<VisibilityState>(defaultVisibility);-- const table = useReactTable({- data,- columns,- getCoreRowModel: getCoreRowModel(),- onPaginationChange: setPagination,- getPaginationRowModel: getPaginationRowModel(),- onSortingChange: setSorting,- getSortedRowModel: getSortedRowModel(),- onColumnFiltersChange: setColumnFilters,- getFilteredRowModel: getFilteredRowModel(),- onExpandedChange: setExpanded,- getExpandedRowModel: getExpandedRowModel(),- onColumnVisibilityChange: setColumnVisibility,- getRowCanExpand,- autoResetExpanded,- state: {- sorting,- columnFilters,- expanded,- pagination,- columnVisibility,- },- });-- return (- <div className="space-y-3">- <DataTableToolbar table={table} />- <div className="rounded-md border">- <Table>- <TableHeader className="bg-muted/50">- {table.getHeaderGroups().map((headerGroup) => (- <TableRow key={headerGroup.id}>- {headerGroup.headers.map((header) => {- return (- <TableHead key={header.id}>- {header.isPlaceholder- ? null- : flexRender(- header.column.columnDef.header,- header.getContext(),- )}- </TableHead>- );- })}- </TableRow>- ))}- </TableHeader>- <TableBody>- {table.getRowModel().rows?.length ? (- table.getRowModel().rows.map((row) => (- <React.Fragment key={row.id}>- <TableRow- data-state={- (row.getIsSelected() || row.getIsExpanded()) && "selected"- }- onClick={() => {- if (!row.getCanExpand()) return;- // REMINDER: this is a workaround for single row expansion- if (!row.getIsExpanded()) table.resetExpanded();- row.toggleExpanded();- }}- className={cn(row.getCanExpand() && "cursor-pointer")}- >- {row.getVisibleCells().map((cell) => (- <TableCell key={cell.id}>- {flexRender(- cell.column.columnDef.cell,- cell.getContext(),- )}- </TableCell>- ))}- </TableRow>- {row.getIsExpanded() && (- <TableRow- data-state="expanded"- className="hover:bg-muted/10 data-[state=expanded]:bg-muted/10"- >- {/* 2nd row is a custom 1 cell row */}- <TableCell colSpan={row.getVisibleCells().length}>- {renderSubComponent({ row })}- </TableCell>- </TableRow>- )}- </React.Fragment>- ))- ) : (- <TableRow>- <TableCell- colSpan={columns.length}- className="h-24 text-center"- >- No results.- </TableCell>- </TableRow>- )}- </TableBody>- </Table>- </div>- <DataTablePagination table={table} />- </div>- );-}diff --git a/apps/web/src/components/data-table/single-region/columns.tsx b/apps/web/src/components/data-table/single-region/columns.tsxdeleted file mode 100644index 90b35f841..000000000--- a/apps/web/src/components/data-table/single-region/columns.tsx+++ /dev/null@@ -1,104 +0,0 @@-"use client";--import { SimpleChart } from "@/components/monitor-charts/simple-chart";-import { formatNumber } from "@/components/monitor-dashboard/metrics-card";-import type { ResponseTimeMetricsByRegion } from "@/lib/tb";-import type { Region } from "@openstatus/db/src/schema/constants";-import { regionDict } from "@openstatus/regions";-import type { ColumnDef } from "@tanstack/react-table";-import { DataTableColumnHeader } from "./data-table-column-header";--export interface RegionWithMetrics {- data: (Partial<Record<Region, number>> & { timestamp: string })[];- metrics?: ResponseTimeMetricsByRegion;- region: Region;-}--export const columns: ColumnDef<RegionWithMetrics>[] = [- {- accessorKey: "region",- header: "Region",- cell: ({ row }) => {- const region = row.getValue("region") as Region;- const { code, flag, location } = regionDict[region];- return (- <div>- <p className="text-muted-foreground text-xs">{location}</p>- <p className="font-mono text-xs">- {flag} {code}- </p>- </div>- );- },- meta: {- headerClassName: "w-[100px]",- },- },- {- accessorKey: "data",- header: "Trend",- cell: ({ row }) => {- const data = row.getValue("data") as RegionWithMetrics["data"];- const region = row.getValue("region") as Region;- return (- <SimpleChart- data={data.map((d) => ({- timestamp: d.timestamp,- latency: d[region],- }))}- />- );- },- meta: {- headerClassName: "min-w-[300px] w-full",- },- },- {- accessorKey: "p50",- header: ({ column }) => (- <DataTableColumnHeader column={column} title="P50" />- ),- accessorFn: (row) => row.metrics?.p50Latency,- cell: ({ row }) => {- const p50 = row.getValue("p50") as number;- return (- <div className="whitespace-nowrap font-mono">- <span>{formatNumber(p50)}</span>- <span className="text-muted-foreground text-xs">ms</span>- </div>- );- },- },- {- accessorKey: "p95",- accessorFn: (row) => row.metrics?.p95Latency,- header: ({ column }) => (- <DataTableColumnHeader column={column} title="P95" />- ),- cell: ({ row }) => {- const p95 = row.getValue("p95") as number;- return (- <div className="whitespace-nowrap font-mono">- <span>{formatNumber(p95)}</span>- <span className="text-muted-foreground text-xs">ms</span>- </div>- );- },- },- {- accessorKey: "p99",- header: ({ column }) => (- <DataTableColumnHeader column={column} title="P99" />- ),- accessorFn: (row) => row.metrics?.p99Latency,- cell: ({ row }) => {- const p99 = row.getValue("p99") as number;- return (- <div className="whitespace-nowrap font-mono">- <span>{formatNumber(p99)}</span>- <span className="text-muted-foreground text-xs">ms</span>- </div>- );- },- },-];diff --git a/apps/web/src/components/data-table/single-region/data-table-column-header.tsx b/apps/web/src/components/data-table/single-region/data-table-column-header.tsxdeleted file mode 100644index 68b1fea9d..000000000--- a/apps/web/src/components/data-table/single-region/data-table-column-header.tsx+++ /dev/null@@ -1,66 +0,0 @@-import type { Column } from "@tanstack/react-table";-import { ArrowDown, ArrowUp, ChevronsUpDown } from "lucide-react";--import {- Button,- DropdownMenu,- DropdownMenuContent,- DropdownMenuItem,- DropdownMenuTrigger,-} from "@openstatus/ui";--import { cn } from "@/lib/utils";--interface DataTableColumnHeaderProps<TData, TValue>- extends React.HTMLAttributes<HTMLDivElement> {- column: Column<TData, TValue>;- title: string;-}--export function DataTableColumnHeader<TData, TValue>({- column,- title,- className,-}: DataTableColumnHeaderProps<TData, TValue>) {- if (!column.getCanSort()) {- return <div className={cn(className)}>{title}</div>;- }-- return (- <div className={cn("flex items-center space-x-2", className)}>- <DropdownMenu>- <DropdownMenuTrigger asChild>- <Button- variant="ghost"- size="sm"- className="-ml-3 h-8 data-[state=open]:bg-accent"- >- <span>{title}</span>- {column.getIsSorted() === "desc" ? (- <ArrowUp className="ml-2 h-4 w-4" />- ) : column.getIsSorted() === "asc" ? (- <ArrowDown className="ml-2 h-4 w-4" />- ) : (- <ChevronsUpDown className="ml-2 h-4 w-4" />- )}- </Button>- </DropdownMenuTrigger>- <DropdownMenuContent align="start">- <DropdownMenuItem onClick={() => column.toggleSorting(false)}>- <ArrowDown className="mr-2 h-3.5 w-3.5 text-muted-foreground/70" />- Asc- </DropdownMenuItem>- <DropdownMenuItem onClick={() => column.toggleSorting(true)}>- <ArrowUp className="mr-2 h-3.5 w-3.5 text-muted-foreground/70" />- Desc- </DropdownMenuItem>- {/* <DropdownMenuSeparator />- <DropdownMenuItem onClick={() => column.toggleVisibility(false)}>- <EyeOff className="text-muted-foreground/70 mr-2 h-3.5 w-3.5" />- Hide- </DropdownMenuItem> */}- </DropdownMenuContent>- </DropdownMenu>- </div>- );-}diff --git a/apps/web/src/components/data-table/single-region/data-table.tsx b/apps/web/src/components/data-table/single-region/data-table.tsxdeleted file mode 100644index bc5420136..000000000--- a/apps/web/src/components/data-table/single-region/data-table.tsx+++ /dev/null@@ -1,92 +0,0 @@-"use client";--import type { ColumnDef, SortingState } from "@tanstack/react-table";-import {- flexRender,- getCoreRowModel,- getSortedRowModel,- useReactTable,-} from "@tanstack/react-table";-import * as React from "react";--import {- Table,- TableBody,- TableCell,- TableHead,- TableHeader,- TableRow,-} from "@openstatus/ui";--interface DataTableProps<TData, TValue> {- columns: ColumnDef<TData, TValue>[];- data: TData[];-}--export function DataTable<TData, TValue>({- columns,- data,-}: DataTableProps<TData, TValue>) {- const [sorting, setSorting] = React.useState<SortingState>([]);- const table = useReactTable({- data,- columns,- state: { sorting },- getCoreRowModel: getCoreRowModel(),- onSortingChange: setSorting,- getSortedRowModel: getSortedRowModel(),- });-- return (- <div className="rounded-md border">- <Table>- <TableHeader className="bg-muted/50">- {table.getHeaderGroups().map((headerGroup) => (- <TableRow key={headerGroup.id} className="hover:bg-transparent">- {headerGroup.headers.map((header) => {- return (- <TableHead- key={header.id}- className={header.column.columnDef.meta?.headerClassName}- >- {header.isPlaceholder- ? null- : flexRender(- header.column.columnDef.header,- header.getContext(),- )}- </TableHead>- );- })}- </TableRow>- ))}- </TableHeader>- <TableBody>- {table.getRowModel().rows?.length ? (- table.getRowModel().rows.map((row) => (- <TableRow- key={row.id}- data-state={row.getIsSelected() && "selected"}- >- {row.getVisibleCells().map((cell) => (- <TableCell- key={cell.id}- className={cell.column.columnDef.meta?.cellClassName}- >- {flexRender(cell.column.columnDef.cell, cell.getContext())}- </TableCell>- ))}- </TableRow>- ))- ) : (- <TableRow>- <TableCell colSpan={columns.length} className="h-24 text-center">- No results.- </TableCell>- </TableRow>- )}- </TableBody>- </Table>- </div>- );-}diff --git a/apps/web/src/components/forms/monitor/section-assertions.tsx b/apps/web/src/components/forms/monitor/section-assertions.tsxdeleted file mode 100644index e972c124f..000000000--- a/apps/web/src/components/forms/monitor/section-assertions.tsx+++ /dev/null@@ -1,357 +0,0 @@-"use client";-import { useFieldArray } from "react-hook-form";-import type { UseFormReturn } from "react-hook-form";--import {- numberCompareDictionary,- stringCompareDictionary,-} from "@openstatus/assertions";-import type { InsertMonitor } from "@openstatus/db/src/schema";-import {- Button,- FormControl,- FormDescription,- FormField,- FormItem,- FormLabel,- Input,- Select,- SelectContent,- SelectItem,- SelectTrigger,- SelectValue,-} from "@openstatus/ui";--import { EmptyState } from "@/components/dashboard/empty-state";-import { Icons } from "@/components/icons";-import { SectionHeader } from "../shared/section-header";--// IMPROVEMENT: use FormFields incl. error message (fixes the Select component)--export const setEmptyOrStr = (v: unknown) => {- if (typeof v === "string" && v.trim() === "") return undefined;- return v;-};--interface Props {- form: UseFormReturn<InsertMonitor>;-}--// REMINDER: once we have different types of assertions based on different jobTypes-// we shoulds start creating a mapping function with allowed assertions for each jobType--export function SectionAssertions({ form }: Props) {- const statusAssertions = useFieldArray({- control: form.control,- name: "statusAssertions",- });- const headerAssertions = useFieldArray({- control: form.control,- name: "headerAssertions",- });- const textBodyAssertions = useFieldArray({- control: form.control,- name: "textBodyAssertions",- });-- return (- <div className="grid w-full gap-4">- <SectionHeader- title="Timing Setting"- description={- <>- Add specific time limits to your requests to receive notifications- if an endpoint takes longer than expected.- </>- }- />- <div className="grid w-full gap-4 sm:grid-cols-6">- <FormField- control={form.control}- name="degradedAfter"- render={({ field }) => (- <FormItem className="col-span-6 sm:col-span-3">- <FormLabel>- Degraded <span className="font-normal">(in ms.)</span>- </FormLabel>- <FormControl>- <Input- type="number"- min={0}- max={60000}- placeholder="30000"- {...form.register(field.name, {- setValueAs: (v) => (v === "" ? null : v),- })}- />- </FormControl>- <FormDescription>- Time after which the endpoint is considered degraded.- </FormDescription>- </FormItem>- )}- />- <FormField- control={form.control}- name="timeout"- render={({ field }) => (- <FormItem className="col-span-6 sm:col-span-3">- <FormLabel>- Timeout <span className="font-normal">(in ms.)</span>- </FormLabel>- <FormControl>- <Input- type="number"- placeholder="45000"- min={0}- max={60000}- {...field}- />- </FormControl>- <FormDescription>- Max. time allowed for request to complete.- </FormDescription>-- {/* <FormMessage /> */}- </FormItem>- )}- />- </div>- <SectionHeader- title="Assertions"- description={- <>- Validate the response to ensure your service is working as expected.- <br />- <span className="underline decoration-border underline-offset-4">- By default, we check for a{" "}- <span className="font-medium text-foreground">- <code>2xx</code> status code- </span>- </span>- .- </>- }- />- {form.getValues("jobType") === "http" ? (- <div className="flex flex-col gap-4">- {statusAssertions.fields.map((f, i) => (- <div key={f.id} className="grid grid-cols-12 items-center gap-4">- <p className="col-span-2 text-muted-foreground text-sm">- Status Code- </p>- <div className="col-span-3" />- <FormField- control={form.control}- name={`statusAssertions.${i}.compare`}- render={({ field }) => (- <FormItem className="col-span-3 w-full">- <Select- onValueChange={field.onChange}- defaultValue={field.value}- >- <FormControl>- <SelectTrigger>- <SelectValue defaultValue="eq" placeholder="Equal" />- </SelectTrigger>- </FormControl>- <SelectContent>- {Object.entries(numberCompareDictionary).map(- ([key, value]) => (- <SelectItem key={key} value={key}>- {value}- </SelectItem>- ),- )}- </SelectContent>- </Select>- </FormItem>- )}- />- <Input- {...form.register(`statusAssertions.${i}.target`, {- required: true,- valueAsNumber: true,- validate: (value) =>- (value !== undefined && value <= 599) ||- "Value must be 599 or lower",- })}- type="number"- placeholder="200"- className="col-span-3"- />- <div className="col-span-1">- <Button- size="icon"- onClick={() => statusAssertions.remove(i)}- variant="ghost"- type="button"- >- <Icons.trash className="h-4 w-4" />- </Button>- </div>- </div>- ))}- {headerAssertions.fields.map((f, i) => (- <div key={f.id} className="grid grid-cols-12 items-center gap-4">- <p className="col-span-2 text-muted-foreground text-sm">- Response Header- </p>- <Input- {...form.register(`headerAssertions.${i}.key`, {- required: true,- setValueAs: setEmptyOrStr,- })}- className="col-span-3"- placeholder="X-Header"- />- <FormField- control={form.control}- name={`headerAssertions.${i}.compare`}- render={({ field }) => (- <FormItem className="col-span-3 w-full">- <Select- onValueChange={field.onChange}- defaultValue={field.value}- >- <FormControl>- <SelectTrigger>- <SelectValue defaultValue="eq" placeholder="Equal" />- </SelectTrigger>- </FormControl>- <SelectContent>- {Object.entries(stringCompareDictionary).map(- ([key, value]) => (- <SelectItem key={key} value={key}>- {value}- </SelectItem>- ),- )}- </SelectContent>- </Select>- </FormItem>- )}- />- <Input- {...form.register(`headerAssertions.${i}.target`)}- className="col-span-3"- placeholder="x-value"- />- <div className="col-span-1">- <Button- size="icon"- onClick={() => headerAssertions.remove(i)}- variant="ghost"- >- <Icons.trash className="h-4 w-4" />- </Button>- </div>- </div>- ))}- {textBodyAssertions.fields.map((f, i) => (- <div key={f.id} className="grid grid-cols-12 items-center gap-4">- <p className="col-span-2 text-muted-foreground text-sm">Body</p>- <div className="col-span-3" />- <FormField- control={form.control}- name={`textBodyAssertions.${i}.compare`}- render={({ field }) => (- <FormItem className="col-span-3 w-full">- <Select- onValueChange={field.onChange}- defaultValue={field.value}- >- <FormControl>- <SelectTrigger>- <SelectValue defaultValue="eq" placeholder="Equal" />- </SelectTrigger>- </FormControl>- <SelectContent>- {Object.entries(stringCompareDictionary).map(- ([key, value]) => (- <SelectItem key={key} value={key}>- {value}- </SelectItem>- ),- )}- </SelectContent>- </Select>- </FormItem>- )}- />- <Input- {...form.register(`textBodyAssertions.${i}.target`, {- required: true,- })}- placeholder="<html>...</html>"- className="col-span-3"- />- <div className="col-span-1">- <Button- size="icon"- onClick={() => textBodyAssertions.remove(i)}- variant="ghost"- type="button"- >- <Icons.trash className="h-4 w-4" />- </Button>- </div>- </div>- ))}- <div className="flex flex-wrap gap-4">- <Button- variant="outline"- type="button"- onClick={() =>- statusAssertions.append({- version: "v1",- type: "status",- compare: "eq",- target: 200,- })- }- >- Add Status Code Assertion- </Button>- <Button- variant="outline"- type="button"- onClick={() =>- headerAssertions.append({- version: "v1",- type: "header",- key: "Content-Type",- compare: "eq",- target: "application/json",- })- }- >- Add Header Assertion- </Button>-- <Button- variant="outline"- type="button"- onClick={() =>- textBodyAssertions.append({- version: "v1",- type: "textBody",- compare: "eq",- target: "",- })- }- >- Add String Body Assertion- </Button>- </div>- </div>- ) : (- <EmptyState- icon="alert-triangle"- title="No Assertions"- description="Assertions are only available for HTTP monitors."- />- )}- </div>- );-}diff --git a/apps/web/src/components/forms/monitor/section-notifications.tsx b/apps/web/src/components/forms/monitor/section-notifications.tsxdeleted file mode 100644index 9f6f3a3cd..000000000--- a/apps/web/src/components/forms/monitor/section-notifications.tsx+++ /dev/null@@ -1,98 +0,0 @@-"use client";-import type { UseFormReturn } from "react-hook-form";--import type { InsertMonitor, Notification } from "@openstatus/db/src/schema";-import {- Badge,- FormControl,- FormDescription,- FormField,- FormItem,- FormLabel,- FormMessage,-} from "@openstatus/ui";--import { CheckboxLabel } from "../shared/checkbox-label";--interface Props {- form: UseFormReturn<InsertMonitor>;- notifications?: Notification[];-}--export function SectionNotifications({ form, notifications }: Props) {- return (- <div className="grid w-full gap-4">- {/* <div className="grid gap-1">- <h4 className="text-foreground font-medium">Schedule and Regions</h4>- <p className="text-muted-foreground text-sm">- Customize the period of time and the regions where your endpoint will- be monitored.- </p>- </div> */}- <FormField- control={form.control}- name="notifications"- // biome-ignore lint/correctness/noUnusedVariables: <explanation>- render={({ field }) => {- return (- <FormItem>- <div className="mb-4">- <FormLabel className="text-base">Notifications</FormLabel>- <FormDescription>- Select the notification channels you want to be informed.- </FormDescription>- </div>- <div className="grid grid-cols-1 grid-rows-1 gap-4 sm:grid-cols-2 md:grid-cols-3">- {notifications?.map((item) => (- <FormField- key={item.id}- control={form.control}- name="notifications"- render={({ field }) => {- return (- <FormItem key={item.id} className="h-full w-full">- <FormControl className="h-full">- <CheckboxLabel- id={String(item.id)}- name={"notification"}- checked={field.value?.includes(item.id)}- onCheckedChange={(checked) => {- return checked- ? field.onChange([- ...(field.value ? field.value : []),- item.id,- ])- : field.onChange(- field.value?.filter(- (value) => value !== item.id,- ),- );- }}- >- <span>{item.name}</span>- <span>- <Badge variant="secondary">- {item.provider}- </Badge>- </span>- </CheckboxLabel>- </FormControl>- </FormItem>- );- }}- />- ))}- </div>- {!notifications || notifications.length === 0 ? (- <FormDescription>- Create some notifications first.- </FormDescription>- ) : null}- <FormMessage />- </FormItem>- );- }}- />- </div>- );-}diff --git a/apps/web/src/components/forms/shared/checkbox-label.tsx b/apps/web/src/components/forms/shared/checkbox-label.tsxdeleted file mode 100644index 52cb300cd..000000000--- a/apps/web/src/components/forms/shared/checkbox-label.tsx+++ /dev/null@@ -1,50 +0,0 @@-import { CheckCircle2 } from "lucide-react";--import { Checkbox, Label } from "@openstatus/ui";--import { cn } from "@/lib/utils";--interface Props {- id: string;- children: React.ReactNode;- checked?: boolean;- onCheckedChange(checked: boolean): void;- className?: string;- name: string;- disabled?: boolean;-}--export function CheckboxLabel({- id,- children,- checked,- onCheckedChange,- className,- name,- disabled,-}: Props) {- return (- <div className="relative h-full">- <Checkbox- id={`${name}-${id}`}- name={name}- className="peer sr-only"- checked={checked}- onCheckedChange={onCheckedChange}- disabled={disabled}- />- <Label- htmlFor={`${name}-${id}`}- className={cn(- "flex h-full items-center gap-1 rounded-md border border-border bg-popover p-4 pr-10 hover:bg-accent hover:text-accent-foreground peer-disabled:text-muted-foreground hover:peer-disabled:bg-background peer-data-[state=checked]:border-primary [&:has([data-state=checked])]:border-primary",- className,- )}- >- {children}- </Label>- <div className="absolute inset-y-0 right-4 hidden items-center peer-data-[state=checked]:flex [&:has([data-state=checked])]:flex">- <CheckCircle2 className="h-4 w-4" />- </div>- </div>- );-}diff --git a/apps/web/src/components/forms/shared/save-button.tsx b/apps/web/src/components/forms/shared/save-button.tsxdeleted file mode 100644index 6074a481e..000000000--- a/apps/web/src/components/forms/shared/save-button.tsx+++ /dev/null@@ -1,62 +0,0 @@-import React from "react";--import { Button } from "@openstatus/ui/src/components/button";--import { Kbd } from "../../kbd";-import { LoadingAnimation } from "../../loading-animation";--interface Props {- onSubmit?: () => void;- isPending?: boolean;- isDirty?: boolean;- form?: string;-}--export function SaveButton({ isPending, isDirty, onSubmit, form }: Props) {- React.useEffect(() => {- const callback = (event: KeyboardEvent) => {- // event.metaKey - pressed Command key on Macs- // event.ctrlKey - pressed Control key on Linux or Windows- if ((event.metaKey || event.ctrlKey) && event.key === "s") {- event.preventDefault();- onSubmit?.();- }- };- document.addEventListener("keydown", callback);- return () => {- document.removeEventListener("keydown", callback);- };- // no need to listen to `onSubmit` changes- }, [onSubmit]);-- return (- <div className="grid gap-3 sm:justify-end">- <div className="flex flex-col gap-6 sm:col-span-full sm:flex-row sm:justify-end">- <Button- className="w-full sm:w-auto"- size="lg"- type="submit"- disabled={isPending}- form={form}- >- {!isPending ? (- <span className="flex items-center gap-2">- Confirm- <Kbd>- <span className="mr-0.5">⌘</span>- <span>S</span>- </Kbd>- </span>- ) : (- <LoadingAnimation />- )}- </Button>- </div>- {isDirty ? (- <p className="text-muted-foreground text-xs">- You have unsaved changes- </p>- ) : null}- </div>- );-}diff --git a/apps/web/src/components/forms/shared/section-header.tsx b/apps/web/src/components/forms/shared/section-header.tsxdeleted file mode 100644index 994cd98a0..000000000--- a/apps/web/src/components/forms/shared/section-header.tsx+++ /dev/null@@ -1,18 +0,0 @@-import { cn } from "@/lib/utils";--export function SectionHeader({- title,- description,- className,-}: {- title: string;- description: React.ReactNode;- className?: string;-}) {- return (- <div className={cn("flex max-w-2xl flex-col gap-1", className)}>- <h4 className="font-medium text-foreground">{title}</h4>- <p className="text-muted-foreground text-sm">{description}</p>- </div>- );-}diff --git a/apps/web/src/components/layout/app-link.tsx b/apps/web/src/components/layout/app-link.tsxdeleted file mode 100644index 398d1d3dc..000000000--- a/apps/web/src/components/layout/app-link.tsx+++ /dev/null@@ -1,59 +0,0 @@-"use client";--import { cva } from "class-variance-authority";-import Link from "next/link";-import type { LinkProps } from "next/link";--import { cn } from "@/lib/utils";-import type { ValidIcon } from "../icons";-import { Icons } from "../icons";--const linkVariants = cva(- "text-muted-foreground group flex w-full min-w-[200px] items-center rounded-md border px-3 py-1",- {- variants: {- variant: {- default: "hover:bg-muted/50 hover:text-foreground border-transparent",- active: "bg-muted/50 border-border text-foreground font-medium",- disabled: "pointer-events-none opacity-60 border-transparent",- },- },- defaultVariants: {- variant: "default",- },- },-);--interface AppLinkProps extends LinkProps {- label: string;- icon?: ValidIcon;- className?: string;- active?: boolean;- disabled?: boolean;-}--export function AppLink({- label,- href,- icon,- disabled,- className,- active,- ...props-}: AppLinkProps) {- const Icon = icon && Icons[icon];-- const variant = disabled ? "disabled" : active ? "active" : "default";-- return (- <Link- href={href}- className={cn(linkVariants({ variant, className }))}- aria-disabled={disabled}- {...props}- >- {Icon ? <Icon className={cn("mr-2 h-4 w-4")} /> : null}- {label}- </Link>- );-}diff --git a/apps/web/src/components/layout/back-button.tsx b/apps/web/src/components/layout/back-button.tsxdeleted file mode 100644index d24c69508..000000000--- a/apps/web/src/components/layout/back-button.tsx+++ /dev/null@@ -1,20 +0,0 @@-import { ChevronLeft } from "lucide-react";-import type { LinkProps } from "next/link";-import Link from "next/link";--import { Button } from "@openstatus/ui/src/components/button";--interface BackButtonProps extends LinkProps {- children?: React.ReactNode;-}--export const BackButton = ({ href, children }: BackButtonProps) => {- return (- <Button variant="link" asChild>- <Link href={href} className="group mb-1">- <ChevronLeft className="mr-1 h-4 w-4 text-muted-foreground group-hover:text-foreground" />{" "}- {children || "Back"}- </Link>- </Button>- );-};diff --git a/apps/web/src/components/layout/brand-name.tsx b/apps/web/src/components/layout/brand-name.tsxdeleted file mode 100644index 030b559a9..000000000--- a/apps/web/src/components/layout/brand-name.tsx+++ /dev/null@@ -1,46 +0,0 @@-import Link from "next/link";--// Hottake: you don't need a features page if you have a changelog page-// Except for SEO--import {- ContextMenu,- ContextMenuContent,- ContextMenuItem,- ContextMenuTrigger,-} from "@openstatus/ui/src/components/context-menu";-import Image from "next/image";--export function BrandName() {- return (- <ContextMenu>- <ContextMenuTrigger>- <Link href="/" className="flex items-center gap-2 font-cal">- <Image- src="/icon.png"- alt="OpenStatus"- height={30}- width={30}- className="rounded-full border border-border bg-transparent"- />- OpenStatus- </Link>- </ContextMenuTrigger>- <ContextMenuContent>- <ContextMenuItem asChild>- <a href="/assets/logos/OpenStatus.svg" download="openstatus.svg">- Download Name SVG- </a>- </ContextMenuItem>- <ContextMenuItem asChild>- <a- href="/assets/logos/OpenStatus-Logo.svg"- download="openstatus-logo.svg"- >- Download Logo SVG- </a>- </ContextMenuItem>- </ContextMenuContent>- </ContextMenu>- );-}diff --git a/apps/web/src/components/layout/header/copy-button.tsx b/apps/web/src/components/layout/header/copy-button.tsxdeleted file mode 100644index 5e555c31d..000000000--- a/apps/web/src/components/layout/header/copy-button.tsx+++ /dev/null@@ -1,36 +0,0 @@-"use client";--import { useCopyToClipboard } from "@/hooks/use-copy-to-clipboard";-import {- Button,- Tooltip,- TooltipContent,- TooltipProvider,- TooltipTrigger,-} from "@openstatus/ui";-import { Copy } from "lucide-react";--export function CopyButton({ id }: { id: string | number }) {- const { copy } = useCopyToClipboard();- return (- <TooltipProvider>- <Tooltip>- <TooltipTrigger asChild>- <Button- variant="ghost"- className="font-mono"- onClick={() => {- copy(`${id}`, {- withToast: `Copied ID '${id}'`,- });- }}- >- <Copy className="mr-2 h-4 w-4 text-muted-foreground" />- {id}- </Button>- </TooltipTrigger>- <TooltipContent>Copy ID for API usage</TooltipContent>- </Tooltip>- </TooltipProvider>- );-}diff --git a/apps/web/src/components/layout/header/user-nav.tsx b/apps/web/src/components/layout/header/user-nav.tsxdeleted file mode 100644index 52cacc5ed..000000000--- a/apps/web/src/components/layout/header/user-nav.tsx+++ /dev/null@@ -1,106 +0,0 @@-import { signOut, useSession } from "next-auth/react";-import { useTheme } from "next-themes";-import Link from "next/link";-import { useParams } from "next/navigation";--import { ThemeIcon } from "@/components/theme/theme-icon";-import {- Avatar,- AvatarFallback,- AvatarImage,- Button,- DropdownMenu,- DropdownMenuCheckboxItem,- DropdownMenuContent,- DropdownMenuGroup,- DropdownMenuItem,- DropdownMenuLabel,- DropdownMenuPortal,- DropdownMenuSeparator,- DropdownMenuSub,- DropdownMenuSubContent,- DropdownMenuSubTrigger,- DropdownMenuTrigger,- Skeleton,-} from "@openstatus/ui";--export function UserNav() {- const session = useSession();- const { workspaceSlug } = useParams<{ workspaceSlug: string }>();- const { setTheme, theme } = useTheme();-- if (session.status !== "authenticated") {- return <Skeleton className="h-8 w-8 rounded-full" />;- }-- return (- <DropdownMenu>- <DropdownMenuTrigger asChild>- <Button variant="ghost" className="relative h-8 w-8 rounded-full">- <Avatar className="h-8 w-8">- <AvatarImage- src={session.data.user?.photoUrl || undefined}- alt={- session.data.user?.name ||- `${session.data.user?.firstName} ${session.data.user?.lastName}`- }- />- <AvatarFallback className="bg-linear-to-br from-foreground via-muted-foreground to-muted opacity-70" />- </Avatar>- </Button>- </DropdownMenuTrigger>- <DropdownMenuContent className="w-52" align="end" forceMount>- <DropdownMenuLabel className="font-normal">- <div className="flex flex-col space-y-1">- <p className="truncate font-medium text-sm leading-none">- {session.data.user?.name ||- `${session.data.user?.firstName} ${session.data.user?.lastName}`}- </p>- <p className="truncate text-muted-foreground text-xs leading-none">- {session.data.user?.email}- </p>- </div>- </DropdownMenuLabel>- <DropdownMenuSeparator />- <DropdownMenuGroup>- <DropdownMenuItem asChild>- <Link href={`/app/${workspaceSlug}/settings/billing`}>Billing</Link>- </DropdownMenuItem>- <DropdownMenuItem asChild>- <Link href={`/app/${workspaceSlug}/settings/user`}>Profile</Link>- </DropdownMenuItem>- </DropdownMenuGroup>{" "}- <DropdownMenuSeparator />- <DropdownMenuGroup>- <DropdownMenuSub>- {/* REMINDER: consider using that the data-state styles as default */}- <DropdownMenuSubTrigger className="gap-1 [&_svg]:text-muted-foreground data-[state=open]:[&_svg]:text-foreground data-highlighted:[&_svg]:text-foreground">- <div className="flex w-full flex-row items-center justify-between">- <span>Switch theme</span>- <ThemeIcon theme={theme} />- </div>- </DropdownMenuSubTrigger>- <DropdownMenuPortal>- <DropdownMenuSubContent>- <DropdownMenuLabel>Appearance</DropdownMenuLabel>- {["light", "dark", "system"].map((option) => (- <DropdownMenuCheckboxItem- key={option}- checked={theme === option}- onClick={() => setTheme(option)}- className="justify-between capitalize [&_svg]:text-muted-foreground data-[state=open]:[&_svg]:text-foreground data-highlighted:[&_svg]:text-foreground"- >- {option}- <ThemeIcon theme={option} />- </DropdownMenuCheckboxItem>- ))}- </DropdownMenuSubContent>- </DropdownMenuPortal>- </DropdownMenuSub>- </DropdownMenuGroup>- <DropdownMenuSeparator />- <DropdownMenuItem onClick={() => signOut()}>Log out</DropdownMenuItem>- </DropdownMenuContent>- </DropdownMenu>- );-}diff --git a/apps/web/src/components/layout/login-button.tsx b/apps/web/src/components/layout/login-button.tsxdeleted file mode 100644index a9e5583c2..000000000--- a/apps/web/src/components/layout/login-button.tsx+++ /dev/null@@ -1,16 +0,0 @@-"use client";--import Link from "next/link";--import type { ButtonProps } from "@openstatus/ui/src/components/button";-import { Button } from "@openstatus/ui/src/components/button";--import { cn } from "@/lib/utils";--export function LoginButton({ className, ...props }: ButtonProps) {- return (- <Button asChild className={cn("rounded-full", className)} {...props}>- <Link href="https://app.openstatus.dev">Dashboard</Link>- </Button>- );-}diff --git a/apps/web/src/components/layout/marketing-footer.tsx b/apps/web/src/components/layout/marketing-footer.tsxdeleted file mode 100644index d7528b791..000000000--- a/apps/web/src/components/layout/marketing-footer.tsx+++ /dev/null@@ -1,139 +0,0 @@-import { ArrowUpRight } from "lucide-react";-import Link from "next/link";--import { ThemeToggle } from "@/components/theme/theme-toggle";-import { alternativesConfig } from "@/config/alternatives";-import { landingsConfig } from "@/config/landings";-import { socialsConfig } from "@/config/socials";-import { cn } from "@/lib/utils";-import { Shell } from "../dashboard/shell";-import { BrandName } from "./brand-name";-import { SocialIconButton } from "./social-icon-button";-import { StatusWidgetContainer } from "./status-widget-suspense";--interface Props {- className?: string;-}--export function MarketingFooter({ className }: Props) {- return (- <footer className={cn("w-full", className)}>- <Shell className="grid gap-6">- <div className="grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-5 md:grid-rows-2">- <div className="col-span-1 flex flex-col gap-3 md:col-span-2 md:row-span-2">- <div>- <BrandName />- <p className="mt-2 max-w-md font-light text-muted-foreground text-sm">- We are on a mission to provide a reliable, easy and fast way to- monitor the performance of your APIs and websites.- <br />- <span className="underline decoration-dotted underline-offset-2">- Speed Matters- </span>- </p>- </div>- <StatusWidgetContainer slug="status" />- </div>- <div className="col-span-1 flex flex-col gap-3 text-sm">- <p className="font-semibold text-foreground">Product</p>- {Object.keys(landingsConfig).map((slug) => (- <FooterLink- key={slug}- href={`/${slug}`}- label={- landingsConfig[slug as keyof typeof landingsConfig].title- }- />- ))}- </div>- <div className="col-span-1 flex flex-col gap-3 text-sm">- <p className="font-semibold text-foreground">Compare</p>- {Object.keys(alternativesConfig).map((slug) => (- <FooterLink- key={slug}- href={`/compare/${slug}`}- label={- alternativesConfig[slug as keyof typeof alternativesConfig]- .name- }- />- ))}- </div>- <div className="col-span-1 flex flex-col gap-3 text-sm">- <p className="font-semibold text-foreground">Company</p>- <FooterLink href="/about" label="About" />- <FooterLink href="/changelog" label="Changelog" />- <FooterLink- href="https://www.openstatus.dev/llms.txt"- label="I'm an LLM"- />- <FooterLink href="/legal/terms" label="Terms" />- <FooterLink href="/legal/privacy" label="Privacy" />- </div>- <div className="col-span-1 flex flex-col gap-3 text-sm">- <p className="font-semibold text-foreground">Resources</p>- <FooterLink href="/blog" label="Blog" />- <FooterLink href="/pricing" label="Pricing" />- <FooterLink href="https://docs.openstatus.dev" label="Docs" />- <FooterLink href="/oss-friends" label="OSS Friends" />- <FooterLink href="/status" label="External Providers Monitoring" />- </div>- <div className="col-span-1 flex flex-col gap-3 text-sm">- <p className="font-semibold text-foreground">Tools</p>- <FooterLink href="/play" label="Playground" />- <FooterLink href="/play/checker" label="Speed Checker" />- <FooterLink href="/play/curl" label="cURL Builder" />- <FooterLink href="/play/uptime-sla" label="Uptime SLA Calculator" />- <FooterLink- href="https://themes.openstatus.dev"- label="Theme Explorer"- />- <FooterLink href="https://openstat.us" label="All Status Codes" />- <FooterLink- href="https://light.openstatus.dev"- label="Vercel Edge Ping"- />- </div>- </div>- <div className="flex items-center justify-between gap-3">- <div className="flex flex-wrap gap-2">- {socialsConfig.map(({ title, href, icon }) => (- <SocialIconButton key={title} {...{ href, icon, title }} />- ))}- </div>- <div className="text-right md:text-left">- <ThemeToggle />- </div>- </div>- </Shell>- </footer>- );-}--interface FooterLinkProps {- href: string;- label: string;- external?: boolean;-}--function FooterLink({ href, label, external = false }: FooterLinkProps) {- const isExternal = external || href.startsWith("http");-- const externalProps = isExternal- ? {- target: "_blank",- rel: "noreferrer",- }- : {};-- return (- <Link- className="flex w-fit flex-wrap items-center gap-1 text-muted-foreground underline underline-offset-4 hover:text-foreground hover:no-underline"- href={href}- {...externalProps}- >- {label}- {isExternal ? <ArrowUpRight className="h-4 w-4 shrink-0" /> : null}- </Link>- );-}diff --git a/apps/web/src/components/layout/marketing-header.tsx b/apps/web/src/components/layout/marketing-header.tsxdeleted file mode 100644index 2519b18d0..000000000--- a/apps/web/src/components/layout/marketing-header.tsx+++ /dev/null@@ -1,143 +0,0 @@-"use client";--import Link, { type LinkProps } from "next/link";-import { usePathname } from "next/navigation";--import {- NavigationMenu,- NavigationMenuContent,- NavigationMenuItem,- NavigationMenuLink,- NavigationMenuList,- NavigationMenuTrigger,- navigationMenuTriggerStyle,-} from "@openstatus/ui/src/components/navigation-menu";--import { marketingPagesConfig } from "@/config/pages";-import { cn } from "@/lib/utils";-import * as React from "react";-import { Icons, type ValidIcon } from "../icons";-import { BrandName } from "./brand-name";-import { LoginButton } from "./login-button";-import { MarketingMenu } from "./marketing-menu";--interface Props {- className?: string;-}--export function MarketingHeader({ className }: Props) {- const pathname = usePathname();-- return (- <header- className={cn(- "sticky top-3 z-10 flex w-full items-center justify-between gap-8 rounded-full border border-border px-2.5 py-1.5 backdrop-blur-lg md:top-6",- className,- )}- >- <div className="flex items-center gap-6">- <div className="ml-3 flex items-center gap-3">- <BrandName />- </div>- <div- className={cn(- "mx-auto hidden items-center justify-center border border-transparent md:flex md:gap-1",- )}- >- <NavigationMenu>- <NavigationMenuList>- {marketingPagesConfig.map((page) => {- const { href, title, children } = page;- if (!children) {- return (- <NavigationMenuItem key={title}>- <Link href={href} legacyBehavior passHref>- <NavigationMenuLink- className={cn(- navigationMenuTriggerStyle(),- "h-9 rounded-full bg-transparent text-muted-foreground hover:bg-accent/50",- { "text-foreground": href === pathname },- )}- >- {title}- </NavigationMenuLink>- </Link>- </NavigationMenuItem>- );- }-- return (- <NavigationMenuItem key={href}>- <NavigationMenuTrigger className="h-9 rounded-full bg-transparent text-muted-foreground hover:bg-transparent data-[state=open]:text-accent-foreground">- {title}- </NavigationMenuTrigger>- <NavigationMenuContent>- <ul className="grid w-[400px] gap-3 p-4 md:w-[500px] md:grid-cols-2 lg:w-[600px]">- {children?.map((item) => {- const isExternal = item.href.startsWith("http");- const _externalProps = isExternal- ? { target: "_blank" }- : {};- const _isActive = pathname.startsWith(item.href);- return (- <ListItem- key={item.title}- title={item.title}- href={item.href}- icon={item.icon}- >- {item.description}- </ListItem>- );- })}- </ul>- </NavigationMenuContent>- </NavigationMenuItem>- );- })}- </NavigationMenuList>- </NavigationMenu>- </div>- </div>- <div className="flex items-center justify-end gap-3">- <div className="block md:hidden">- <MarketingMenu />- </div>- <LoginButton />- </div>- </header>- );-}--const ListItem = React.forwardRef<- React.ElementRef<"a">,- React.ComponentPropsWithoutRef<"a"> & LinkProps & { icon: ValidIcon }->(({ className, title, children, icon, ...props }, ref) => {- // TODO: if external, add Arrow-Right-Up Icon- const Icon = Icons[icon];- return (- <li className="group">- <NavigationMenuLink asChild>- <Link- ref={ref}- className={cn(- "flex select-none gap-3 space-y-1 rounded-md p-3 leading-none no-underline outline-hidden transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",- className,- )}- {...props}- >- <div className="self-start rounded-md border p-2 group-hover:bg-background">- <Icon className="h-4 w-4" />- </div>- <div className="grid gap-1">- <div className="font-medium text-sm leading-none">{title}</div>- <p className="line-clamp-2 text-muted-foreground text-sm leading-snug">- {children}- </p>- </div>- </Link>- </NavigationMenuLink>- </li>- );-});-ListItem.displayName = "ListItem";diff --git a/apps/web/src/components/layout/marketing-layout.tsx b/apps/web/src/components/layout/marketing-layout.tsxdeleted file mode 100644index 7d1064244..000000000--- a/apps/web/src/components/layout/marketing-layout.tsx+++ /dev/null@@ -1,21 +0,0 @@-import { SessionProvider } from "next-auth/react";-import PlausibleProvider from "next-plausible";--import { MarketingFooter } from "./marketing-footer";-import { MarketingHeader } from "./marketing-header";--export function MarketingLayout({ children }: { children: React.ReactNode }) {- return (- <PlausibleProvider domain="openstatus.dev">- <SessionProvider>- <main className="flex min-h-screen w-full flex-col items-center justify-center gap-12 p-4 md:p-8">- <MarketingHeader className="mx-auto w-full max-w-4xl" />- <div className="mx-auto flex w-full max-w-4xl flex-1 flex-col items-start justify-center">- {children}- </div>- <MarketingFooter className="mx-auto w-full max-w-4xl" />- </main>- </SessionProvider>- </PlausibleProvider>- );-}diff --git a/apps/web/src/components/layout/marketing-menu.tsx b/apps/web/src/components/layout/marketing-menu.tsxdeleted file mode 100644index f90684318..000000000--- a/apps/web/src/components/layout/marketing-menu.tsx+++ /dev/null@@ -1,170 +0,0 @@-"use client";--import { Menu } from "lucide-react";-import { usePathname } from "next/navigation";-import * as React from "react";--import {- Accordion,- AccordionContent,- AccordionItem,- AccordionTrigger,-} from "@openstatus/ui/src/components/accordion";-import { Button } from "@openstatus/ui/src/components/button";-import {- Sheet,- SheetContent,- SheetHeader,- SheetTitle,- SheetTrigger,-} from "@openstatus/ui/src/components/sheet";--import { marketingPagesConfig } from "@/config/pages";-import { socialsConfig } from "@/config/socials";-import { useWindowScroll } from "@/hooks/use-window-scroll";-import { cn } from "@/lib/utils";-import Link, { type LinkProps } from "next/link";-import { Icons, type ValidIcon } from "../icons";-import { LoginButton } from "./login-button";-import { SocialIconButton } from "./social-icon-button";--export function MarketingMenu() {- const [open, setOpen] = React.useState(false);- const pathname = usePathname();- const [{ y }] = useWindowScroll();- const _isScroll = React.useMemo(() => y && y > 0, [y]);-- React.useEffect(() => {- setOpen(false);- }, []); // remove searchParams if not needed-- return (- <Sheet open={open} onOpenChange={(value) => setOpen(value)}>- <SheetTrigger asChild>- <Button- size="icon"- variant="outline"- className="rounded-full"- aria-label="menu"- >- <Menu className="h-6 w-6" />- </Button>- </SheetTrigger>- <SheetContent side="top" className={cn("flex flex-col")}>- <SheetHeader>- <SheetTitle className="text-left">Menu</SheetTitle>- </SheetHeader>- <div className="flex flex-1 flex-col justify-between gap-8">- <ul className="grid gap-1">- {marketingPagesConfig.map(({ href, title, icon, children }) => {- if (!children) {- const isExternal = href.startsWith("http");- const _externalProps = isExternal ? { target: "_blank" } : {};- const _isActive = pathname.startsWith(href);- return (- <li key={href} className="w-full">- <ListItemSingle- title={title}- href={href}- icon={icon}- onClick={() => setOpen(false)}- />- </li>- );- }-- return (- <li key={href}>- <Accordion type="single" collapsible className="w-full">- <AccordionItem value={title}>- <AccordionTrigger>{title}</AccordionTrigger>- <AccordionContent>- <ul>- {children.map((page) => {- const { href, title, icon } = page;- const isExternal = href.startsWith("http");- const _externalProps = isExternal- ? { target: "_blank" }- : {};- const _isActive = pathname.startsWith(href);- return (- <li key={href} className="w-full">- <ListItem- title={title}- href={href}- icon={icon}- onClick={() => setOpen(false)}- />- </li>- );- })}- </ul>- </AccordionContent>- </AccordionItem>- </Accordion>- </li>- );- })}- </ul>- <div className="flex justify-between gap-2">- <ul className="flex flex-wrap gap-2">- {socialsConfig.map((props, _i) => (- <li key={props.title}>- <SocialIconButton {...props} />- </li>- ))}- </ul>- <LoginButton variant="outline" />- </div>- </div>- </SheetContent>- </Sheet>- );-}--const ListItem = React.forwardRef<- React.ElementRef<"a">,- React.ComponentPropsWithoutRef<"a"> & LinkProps & { icon: ValidIcon }->(({ className, title, children, icon, ...props }, ref) => {- // TODO: if external, add Arrow-Right-Up Icon- const Icon = Icons[icon];- return (- <li className="group">- <Link- ref={ref}- className={cn(- "flex select-none items-center gap-2 space-y-1 rounded-md p-3 leading-none no-underline outline-hidden transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",- className,- )}- {...props}- >- <Icon className="h-4 w-4" />- <div className="font-medium text-sm leading-none">{title}</div>- </Link>- </li>- );-});-ListItem.displayName = "ListItem";--const ListItemSingle = React.forwardRef<- React.ElementRef<"a">,- React.ComponentPropsWithoutRef<"a"> & LinkProps & { icon: ValidIcon }->(({ className, title, children, icon, ...props }, ref) => {- // TODO: if external, add Arrow-Right-Up Icon- const _Icon = Icons[icon];- return (- <li className="group">- <Link- ref={ref}- className={cn(- "flex flex-1 items-center justify-between border-b py-4 font-medium transition-all hover:underline",- className,- )}- {...props}- >- {title}- </Link>- </li>- );-});-ListItemSingle.displayName = "ListItemSingle";diff --git a/apps/web/src/components/layout/public-header.tsx b/apps/web/src/components/layout/public-header.tsxdeleted file mode 100644index dd849ef4d..000000000--- a/apps/web/src/components/layout/public-header.tsx+++ /dev/null@@ -1,18 +0,0 @@-import { cn } from "@/lib/utils";-import { BrandName } from "./brand-name";-import { LoginButton } from "./login-button";--interface Props {- className?: string;-}--export function PublicHeader({ className }: Props) {- return (- <header- className={cn("flex w-full items-center justify-between", className)}- >- <BrandName />- <LoginButton />- </header>- );-}diff --git a/apps/web/src/components/layout/public-layout.tsx b/apps/web/src/components/layout/public-layout.tsxdeleted file mode 100644index 5379328fa..000000000--- a/apps/web/src/components/layout/public-layout.tsx+++ /dev/null@@ -1,18 +0,0 @@-import { SessionProvider } from "next-auth/react";--import { MarketingFooter } from "./marketing-footer";-import { PublicHeader } from "./public-header";--export function PublicLayout({ children }: { children: React.ReactNode }) {- return (- <SessionProvider>- <main className="flex min-h-screen w-full flex-col items-center justify-center gap-12 p-4 md:p-8">- <PublicHeader className="mx-auto w-full max-w-4xl" />- <div className="mx-auto flex w-full max-w-4xl flex-1 flex-col items-start justify-center">- {children}- </div>- <MarketingFooter className="mx-auto w-full max-w-4xl" />- </main>- </SessionProvider>- );-}diff --git a/apps/web/src/components/layout/skeleton-tabs.tsx b/apps/web/src/components/layout/skeleton-tabs.tsxdeleted file mode 100644index 34d7f51d1..000000000--- a/apps/web/src/components/layout/skeleton-tabs.tsx+++ /dev/null@@ -1,18 +0,0 @@-import { Skeleton } from "@openstatus/ui/src/components/skeleton";--interface SkeletonTabsProps {- children?: React.ReactNode;-}--export function SkeletonTabs({ children }: SkeletonTabsProps) {- return (- <div className="w-full">- <div className="flex items-center border-b">- <Skeleton className="h-9 w-16 px-3 py-1.5" />- <Skeleton className="h-9 w-16 px-3 py-1.5" />- </div>- {/* tbd: if children is empty, we could render a skeleton container */}- <div className="mt-3">{children}</div>- </div>- );-}diff --git a/apps/web/src/components/layout/social-icon-button.tsx b/apps/web/src/components/layout/social-icon-button.tsxdeleted file mode 100644index 14646a036..000000000--- a/apps/web/src/components/layout/social-icon-button.tsx+++ /dev/null@@ -1,19 +0,0 @@-import Link from "next/link";--import { Button } from "@openstatus/ui/src/components/button";--import type { Social } from "@/config/socials";-import { Icons } from "../icons";--export function SocialIconButton({ href, title, icon }: Social) {- const Icon = Icons[icon];-- return (- <Button asChild size="icon" variant="outline">- <Link href={href} target="_blank" rel="noreferrer">- <span className="sr-only">{title}</span>- <Icon className="h-4 w-4" />- </Link>- </Button>- );-}diff --git a/apps/web/src/components/layout/status-widget-suspense.tsx b/apps/web/src/components/layout/status-widget-suspense.tsxdeleted file mode 100644index 365a86110..000000000--- a/apps/web/src/components/layout/status-widget-suspense.tsx+++ /dev/null@@ -1,48 +0,0 @@-import { ExternalLink } from "lucide-react";-import { Suspense } from "react";--import type { StatusWidgetProps } from "@openstatus/react";-import { StatusWidget } from "@openstatus/react";-import { Button } from "@openstatus/ui/src/components/button";-import {- Tooltip,- TooltipContent,- TooltipProvider,- TooltipTrigger,-} from "@openstatus/ui/src/components/tooltip";--export function StatusWidgetFallback() {- return (- <div className="flex max-w-fit items-center gap-2 rounded-md border border-border px-3 py-1 text-sm">- <span className="h-5 w-20 animate-pulse rounded-md bg-muted" />- <span className="relative inline-flex h-2 w-2 rounded-full bg-muted" />- </div>- );-}--export function StatusWidgetContainer(props: StatusWidgetProps) {- return (- <Suspense fallback={<StatusWidgetFallback />}>- <TooltipProvider>- <Tooltip>- <TooltipTrigger asChild>- <div className="max-w-min">- <StatusWidget {...props} />- </div>- </TooltipTrigger>- <TooltipContent asChild>- <Button variant="link" size="sm" asChild>- <a- target="_blank"- href="https://docs.openstatus.dev/tools/react/"- rel="noreferrer"- >- Install your own <ExternalLink className="ml-1 h-3 w-3" />- </a>- </Button>- </TooltipContent>- </Tooltip>- </TooltipProvider>- </Suspense>- );-}diff --git a/apps/web/src/components/marketing/alert/card.tsx b/apps/web/src/components/marketing/alert/card.tsxdeleted file mode 100644index 5394a11ee..000000000--- a/apps/web/src/components/marketing/alert/card.tsx+++ /dev/null@@ -1,31 +0,0 @@-import { cardConfig } from "@/config/features";-import {- CardContainer,- CardContent,- CardFeature,- CardFeatureContainer,- CardHeader,- CardIcon,- CardTitle,-} from "../card";-import { Timeline } from "./timeline";--export function AlertCard() {- const { icon, title, features } = cardConfig.alerts;- return (- <CardContainer>- <CardHeader>- <CardIcon icon={icon} />- <CardTitle>{title}</CardTitle>- </CardHeader>- <CardContent>- <Timeline />- <CardFeatureContainer>- {features?.map((feature, i) => (- <CardFeature key={i} {...feature} />- ))}- </CardFeatureContainer>- </CardContent>- </CardContainer>- );-}diff --git a/apps/web/src/components/marketing/alert/timeline.tsx b/apps/web/src/components/marketing/alert/timeline.tsxdeleted file mode 100644index 5d36ef333..000000000--- a/apps/web/src/components/marketing/alert/timeline.tsx+++ /dev/null@@ -1,120 +0,0 @@-import type { ValidIcon } from "@/components/icons";-import { Icons } from "@/components/icons";-import { cn } from "@/lib/utils";-import { format } from "date-fns";-import type { ReactNode } from "react";--export function TimelineContainer({ children }: { children: ReactNode }) {- return (- // md:first:order-2 does not work- <div className="mx-auto flex max-w-md flex-col justify-center gap-3 md:order-2">- {children}- </div>- );-}--export function TimelineEvent({- label,- date,- message,- icon,- isLast = false,-}: Event & {- isLast?: boolean;-}) {- const Icon = Icons[icon.name];- return (- <div className="group -m-2 relative flex gap-4 border border-transparent p-2">- <div className="relative">- <div- className={cn(- "rounded-full border bg-background p-2",- icon.borderColor,- )}- >- <Icon className={cn("h-4 w-4", icon.textColor)} />- </div>- {!isLast ? (- <div className="absolute inset-x-0 mx-auto h-full w-[2px] bg-muted" />- ) : null}- </div>- <div className="mt-1 flex flex-1 flex-col gap-1">- <div className="flex items-center justify-between gap-4">- <p className="font-semibold text-sm">{label}</p>- <p className="mt-px text-right text-[10px] text-muted-foreground">- <code>{format(new Date(date), "LLL dd, y HH:mm:ss")}</code>- </p>- </div>- <p className="text-muted-foreground text-sm">{message}</p>- </div>- </div>- );-}--export function Timeline() {- return (- <TimelineContainer>- {timeline.map((event, i) => (- <TimelineEvent- key={event.message}- isLast={i === timeline.length - 1}- {...event}- />- ))}- </TimelineContainer>- );-}--type Event = {- label: string;- date: Date;- message: string;- icon: {- name: ValidIcon;- textColor: string;- borderColor: string;- };-};--const timeline = [- {- label: "Monitor down",- date: new Date("03.12.2023, 19:14:45"),- message: "We couldn't reach your endpoint in Amsterdam.",- icon: {- name: "alert-triangle",- textColor: "text-orange-500",- borderColor: "border-orange-500/40",- },- },- {- label: "Screenshot captured",- date: new Date("03.12.2023, 19:14:55"),- message: "3 incoming notifications from Grafana.",- icon: {- name: "camera",- textColor: "text-amber-500",- borderColor: "border-amber-500/40",- },- },- {- label: "Notification sent",- date: new Date("03.12.2023, 19:15:01"),- message: "Smart notification with summary sent to your Slack channel.",- icon: {- name: "sparkles",- textColor: "text-blue-500",- borderColor: "border-blue-500/40",- },- },- {- label: "Monitor recovered",- date: new Date("03.12.2023, 19:21:30"),- message: "The endpoint response is back.",- icon: {- name: "check",- textColor: "text-green-500",- borderColor: "border-green-500/40",- },- },-] satisfies Event[];diff --git a/apps/web/src/components/marketing/banner/booking-banner.tsx b/apps/web/src/components/marketing/banner/booking-banner.tsxdeleted file mode 100644index be71ceafe..000000000--- a/apps/web/src/components/marketing/banner/booking-banner.tsx+++ /dev/null@@ -1,30 +0,0 @@-import { Button } from "@openstatus/ui";-import { GenericBanner } from "./generic-banner";--export function BookingBanner() {- return (- <GenericBanner- title="Don't talk to Sales. Talk to Founders."- description="We are here to help you with any questions or concerns you may have."- actions={- <div className="flex gap-2">- <Button className="rounded-full" variant="outline" asChild>- <a href="https://app.openstatus.dev" className="text-nowrap">- Start for free- </a>- </Button>- <Button className="rounded-full" asChild>- <a- target="_blank"- rel="noreferrer"- href="https://cal.com/team/openstatus/30min"- className="text-nowrap"- >- Talk to us- </a>- </Button>- </div>- }- />- );-}diff --git a/apps/web/src/components/marketing/banner/enterprise-banner.tsx b/apps/web/src/components/marketing/banner/enterprise-banner.tsxdeleted file mode 100644index 733a55fc4..000000000--- a/apps/web/src/components/marketing/banner/enterprise-banner.tsx+++ /dev/null@@ -1,30 +0,0 @@-import { Button } from "@openstatus/ui";-import { GenericBanner } from "./generic-banner";--export function EnterpriseBanner() {- return (- <GenericBanner- title="Looking for an enterprise solution?"- description="We offer custom solutions for large organizations."- actions={- <div className="flex gap-2">- <Button className="rounded-full" variant="outline" asChild>- <a href="https://app.openstatus.dev" className="text-nowrap">- Start for free- </a>- </Button>- <Button className="rounded-full" asChild>- <a- target="_blank"- rel="noreferrer"- href="https://cal.com/team/openstatus/30min"- className="text-nowrap"- >- Book a call- </a>- </Button>- </div>- }- />- );-}diff --git a/apps/web/src/components/marketing/banner/generic-banner.tsx b/apps/web/src/components/marketing/banner/generic-banner.tsxdeleted file mode 100644index 1f64bda6c..000000000--- a/apps/web/src/components/marketing/banner/generic-banner.tsx+++ /dev/null@@ -1,33 +0,0 @@-import { Shell } from "@/components/dashboard/shell";-import { cn } from "@/lib/utils";--interface GenericBannerProps {- title: string;- description: string;- className?: string;- actions: React.ReactNode;-}--export function GenericBanner({- title,- description,- className,- actions,-}: GenericBannerProps) {- return (- <Shell- className={cn(- "flex flex-col gap-3 bg-accent/50 md:flex-row md:items-center md:justify-between",- className,- )}- >- <div>- <p className="font-semibold text-lg md:text-xl">{title}</p>- <p className="text-muted-foreground text-sm md:text-base">- {description}- </p>- </div>- {actions}- </Shell>- );-}diff --git a/apps/web/src/components/marketing/banner/speed-banner.tsx b/apps/web/src/components/marketing/banner/speed-banner.tsxdeleted file mode 100644index 288c2dea6..000000000--- a/apps/web/src/components/marketing/banner/speed-banner.tsx+++ /dev/null@@ -1,34 +0,0 @@-import { Button } from "@openstatus/ui";-import { SpeedCheckerButton } from "../speed-checker-button";-import { GenericBanner } from "./generic-banner";--const config = {- exploratory: {- title: "Type. Submit. Discover.",- description: "See how fast your API really is - in real time.",- },- dev: {- title: "Call. Measuer. Improve.",- description: "Benchmark your API speed with OpenStatus.",- },-};--export function SpeedBanner() {- const { title, description } = config.exploratory;- return (- <GenericBanner- title={title}- description={description}- actions={- <div className="flex gap-2">- <Button className="rounded-full" variant="outline" asChild>- <a href="https://app.openstatus.dev" className="text-nowrap">- Start for free- </a>- </Button>- <SpeedCheckerButton />- </div>- }- />- );-}diff --git a/apps/web/src/components/marketing/card.tsx b/apps/web/src/components/marketing/card.tsxdeleted file mode 100644index 72483a551..000000000--- a/apps/web/src/components/marketing/card.tsx+++ /dev/null@@ -1,115 +0,0 @@-import { Badge } from "@openstatus/ui/src/components/badge";--import type { FeatureDescription } from "@/config/features";-import { cn } from "@/lib/utils";-import { Shell } from "../dashboard/shell";-import type { ValidIcon } from "../icons";-import { Icons } from "../icons";--export function CardContainer({ children }: { children: React.ReactNode }) {- return (- <Shell className="flex flex-col gap-6 bg-linear-to-br from-0% from-[hsl(var(--muted))] to-20% to-transparent">- {children}- </Shell>- );-}--export function CardHeader({ children }: { children: React.ReactNode }) {- return (- <div className="flex flex-col items-center justify-center gap-3">- {children}- </div>- );-}--export function CardIcon({ icon }: { icon: ValidIcon }) {- const Icon = Icons[icon];- return (- <div className="rounded-full border border-border p-2">- <Icon className="h-5 w-5" />- </div>- );-}--export function CardTitle({ children }: { children: React.ReactNode }) {- return (- <h3 className="bg-linear-to-tl from-0% from-[hsl(var(--muted))] to-40% to-[hsl(var(--foreground))] bg-clip-text text-center font-cal text-3xl text-transparent">- {children}- </h3>- );-}--export function CardDescription({- children,- className,-}: {- children: React.ReactNode;- className?: string;-}) {- return (- <p className={cn("text-center text-muted-foreground", className)}>- {children}- </p>- );-}--export function CardContent({- children,- dir = "cols",-}: {- children: React.ReactNode;- dir?: "rows" | "cols";-}) {- return (- <div- className={cn("grid gap-10", {- "grid-cols-none md:grid-cols-2": dir === "cols",- "grid-rows-none md:grid-rows-2": dir === "rows",- })}- >- {children}- </div>- );-}--export function CardFeatureContainer({- children,- dir = "rows",-}: {- children: React.ReactNode;- dir?: "rows" | "cols";-}) {- return (- <ul- className={cn("gap-4 md:gap-6", {- "grid md:grid-cols-3": dir === "cols",- "flex flex-col": dir === "rows",- })}- >- {children}- </ul>- );-}--// TODO: rename type a bit appropriately-export function CardFeature(props: FeatureDescription) {- const FeatureIcon = Icons[props.icon];- return (- <li>- <div className="grid gap-1">- <p className="flex items-center gap-2">- <FeatureIcon className="h-4 w-4 text-foreground/80" />- <span className="font-medium text-foreground">- {props.catchline.replace(".", "")}- </span>{" "}- </p>- <span className="text-muted-foreground">{props.description}</span>- </div>- {props.badge ? (- <Badge variant="secondary" className="-ml-2 mt-1">- {props.badge}- </Badge>- ) : null}- </li>- );-}diff --git a/apps/web/src/components/marketing/cli/card.tsx b/apps/web/src/components/marketing/cli/card.tsxdeleted file mode 100644index 0a6a827a1..000000000--- a/apps/web/src/components/marketing/cli/card.tsx+++ /dev/null@@ -1,44 +0,0 @@-import { cardConfig } from "@/config/features";-import { Button } from "@openstatus/ui";-import Link from "next/link";-import {- CardContainer,- CardContent,- CardFeature,- CardFeatureContainer,- CardHeader,- CardIcon,- CardTitle,-} from "../card";-import { Code } from "./code";--export function CLICard() {- const { icon, title, features } = cardConfig.cli;- return (- <CardContainer>- <CardHeader>- <CardIcon icon={icon} />- <CardTitle>{title}</CardTitle>- </CardHeader>- <CardContent>- <Code />- <CardFeatureContainer>- {features?.map((feature, i) => (- <CardFeature key={i} {...feature} />- ))}- <div className="text-center">- <Button className="rounded-full" asChild>- <Link- href="https://docs.openstatus.dev/tutorial/get-started-with-openstatus-cli/"- target="_blank"- rel="noreferrer"- >- Learn more- </Link>- </Button>- </div>- </CardFeatureContainer>- </CardContent>- </CardContainer>- );-}diff --git a/apps/web/src/components/marketing/cli/code.tsx b/apps/web/src/components/marketing/cli/code.tsxdeleted file mode 100644index 611e3023b..000000000--- a/apps/web/src/components/marketing/cli/code.tsx+++ /dev/null@@ -1,33 +0,0 @@-import { Mdx } from "@/components/content/mdx";-import { allUnrelateds } from "content-collections";--const blockYaml = allUnrelateds.find(- (unrelated) => unrelated.slug === "yaml-file",-);--const blockCLI = allUnrelateds.find(- (unrelated) => unrelated.slug === "cli-block",-);--export function Code() {- if (!blockYaml) {- throw new Error("Yaml block not found");- }-- if (!blockCLI) {- throw new Error("CLI block not found");- }-- return (- <div className="flex flex-col gap-4">- <Mdx- code={blockCLI.mdx}- className="max-w-none prose-pre:overflow-hidden"- />- <Mdx- code={blockYaml.mdx}- className="max-w-none prose-pre:overflow-hidden"- />- </div>- );-}diff --git a/apps/web/src/components/marketing/faqs.tsx b/apps/web/src/components/marketing/faqs.tsxdeleted file mode 100644index 4592ff3d2..000000000--- a/apps/web/src/components/marketing/faqs.tsx+++ /dev/null@@ -1,46 +0,0 @@-"use client";--import { allFAQs } from "content-collections";--import {- Accordion,- AccordionContent,- AccordionItem,- AccordionTrigger,-} from "@openstatus/ui/src/components/accordion";--import { Mdx } from "../content/mdx";-import {- CardContainer,- CardDescription,- CardHeader,- CardIcon,- CardTitle,-} from "./card";--export function FAQs() {- const faqs = allFAQs.sort((a, b) => a.order - b.order);- return (- <CardContainer>- <CardHeader>- <CardIcon icon="message-circle" />- <CardTitle>FAQs</CardTitle>- <CardDescription>- What you want to know about OpenStatus.- </CardDescription>- </CardHeader>- <div>- <Accordion type="single" collapsible className="w-full">- {faqs.map((faq, i) => (- <AccordionItem key={faq.slug} value={`item-${i}`}>- <AccordionTrigger>{faq.title}</AccordionTrigger>- <AccordionContent>- <Mdx code={faq.mdx} />- </AccordionContent>- </AccordionItem>- ))}- </Accordion>- </div>- </CardContainer>- );-}diff --git a/apps/web/src/components/marketing/feature/assertions-timing-form-example.tsx b/apps/web/src/components/marketing/feature/assertions-timing-form-example.tsxdeleted file mode 100644index 7a60d0856..000000000--- a/apps/web/src/components/marketing/feature/assertions-timing-form-example.tsx+++ /dev/null@@ -1,33 +0,0 @@-"use client";--import { SectionAssertions } from "@/components/forms/monitor/section-assertions";-import { zodResolver } from "@hookform/resolvers/zod";-import * as assertions from "@openstatus/assertions";-import {- type InsertMonitor,- insertMonitorSchema,-} from "@openstatus/db/src/schema";-import { Form } from "@openstatus/ui";-import { useForm } from "react-hook-form";--const _assertions =- '[{"version":"v1","type":"header","compare":"eq","key":"Server","target":"Vercel"}]';--export function AssertionsTimingFormExample() {- const form = useForm<InsertMonitor>({- resolver: zodResolver(insertMonitorSchema),- defaultValues: {- timeout: 45_000,- headerAssertions: assertions- .deserialize(_assertions)- .map((a) => a.schema)- // biome-ignore lint/suspicious/noExplicitAny: <explanation>- .filter((a) => a.type === "header") as any,- },- });- return (- <Form {...form}>- <SectionAssertions form={form} />- </Form>- );-}diff --git a/apps/web/src/components/marketing/feature/index.tsx b/apps/web/src/components/marketing/feature/index.tsxdeleted file mode 100644index a8c440dc6..000000000--- a/apps/web/src/components/marketing/feature/index.tsx+++ /dev/null@@ -1,754 +0,0 @@-import { PasswordFormSuspense } from "@/app/status-page/[domain]/_components/password-form";-import { SubscribeButton } from "@/app/status-page/[domain]/_components/subscribe-button";-import { Mdx } from "@/components/content/mdx";-import { Icons } from "@/components/icons";-import { Chart } from "@/components/monitor-charts/chart";-import { RegionsPreset } from "@/components/monitor-dashboard/region-preset";-import { ResponseDetailTabs } from "@/components/ping-response-analysis/response-detail-tabs";-import { MaintenanceContainer } from "@/components/status-page/maintenance";-import { StatusCheck } from "@/components/status-page/status-check";-import { StatusReport } from "@/components/status-page/status-report";-import { Tracker } from "@/components/tracker/tracker";-import type { Region } from "@openstatus/db/src/schema/constants";-import { monitorRegions } from "@openstatus/db/src/schema/constants";-import { THEMES } from "@openstatus/theme-store";-import {- Button,- InputWithAddons,- Tooltip,- TooltipContent,- TooltipProvider,- TooltipTrigger,-} from "@openstatus/ui";-import { Skeleton } from "@openstatus/ui/src/components/skeleton";-import { allUnrelateds } from "content-collections";-import Link from "next/link";-import { Suspense } from "react";-import { AssertionsTimingFormExample } from "./assertions-timing-form-example";-import {- InteractiveFeature,- type InteractiveFeatureProps,-} from "./interactive-feature";-import {- maintenanceData,- mockChartData,- mockResponseData,- mockTrackerData,- statusReportData,-} from "./mock";-import { NotificationsFormExample } from "./notifications-form-example";-import { RaycastExample } from "./raycast-example";-import { TrackerWithVisibilityToggle } from "./tracker-example";--export { BookingBanner } from "../banner/booking-banner";-export { SpeedBanner } from "../banner/speed-banner";--export function FeatureTimingAssertions(- props: Partial<Pick<InteractiveFeatureProps, "position">>,-) {- return (- <InteractiveFeature- icon="book-open-check"- iconText="Timing & Assertions"- title="Validate the response."- subTitle="Check the return value, status code, header or maximum response time."- component={- <div className="origin-top scale-[0.80]">- <Suspense fallback={<Skeleton />}>- <AssertionsTimingFormExample />- </Suspense>- </div>- }- col={2}- position={props.position || "left"}- withGradient- />- );-}--export function FeatureNotifications(- props: Partial<Pick<InteractiveFeatureProps, "position">>,-) {- return (- <InteractiveFeature- icon="bell"- iconText="Notifications"- title="Integrate your channels."- subTitle="Get notified when your services are down. Slack, Discord, Email, and more."- component={- <div className="my-auto scale-[0.80]">- <NotificationsFormExample />- </div>- }- col={2}- position={props.position || "right"}- />- );-}--export function FeatureStatusPageTracker(- props: Partial<Pick<InteractiveFeatureProps, "position">>,-) {- return (- <InteractiveFeature- icon="panel-top"- iconText="Simple by default"- title="Status page."- subTitle="Connect your monitors and inform your users about the uptime."- component={- <div className="my-auto">- <Tracker- data={mockTrackerData}- name="OpenStatus"- description="Website Health"- showValues- />- </div>- }- col={2}- position={props.position || "left"}- />- );-}--export function FeatureCharts({- title = "Opinionated Dashboard.",- subTitle = "Keep an overview about Uptime, P50, P75, P90, P95, P99 of your monitors. Share it with your team or make it public.",- position = "top",-}: Partial<Pick<InteractiveFeatureProps, "position" | "title" | "subTitle">>) {- return (- <InteractiveFeature- icon="line-chart"- iconText="Charts"- title={title}- subTitle={subTitle}- action={- <div className="mt-2">- <Button variant="outline" className="rounded-full" asChild>- <Link href="/public/monitors/1">Public Dashboard</Link>- </Button>- </div>- }- component={- <div className="my-auto origin-top scale-[0.80]">- <Suspense fallback={<Skeleton />}>- <Chart {...mockChartData} />- </Suspense>- </div>- }- col={2}- position={position}- withGradient- />- );-}--export function FeatureCustomDomain(- props: Partial<Pick<InteractiveFeatureProps, "position">>,-) {- return (- <InteractiveFeature- icon="globe"- iconText="Customize"- title="Custom Domain."- subTitle="Bring your own domain, give the status page a personal touch."- component={- <div className="m-auto">- <InputWithAddons leading="https://" placeholder="status.acme.com" />- </div>- }- col={1}- position={props.position || "left"}- />- );-}--export function FeatureStatusPageTrackerToggle(- props: Partial<Pick<InteractiveFeatureProps, "position">>,-) {- return (- <InteractiveFeature- icon="panel-top"- iconText="Simple by default"- title="Status page."- subTitle="Connect your monitors and inform your users about the uptime."- component={<TrackerWithVisibilityToggle />}- col={2}- position={props.position || "left"}- />- );-}--export function FeatureSubscriptions(- props: Partial<Pick<InteractiveFeatureProps, "position">>,-) {- return (- <InteractiveFeature- icon="users"- iconText="Reach your users"- title="Subscriptions."- subTitle="Let your users subscribe to your status page, to automatically receive updates about the status of your services."- component={- <div className="m-auto">- <SubscribeButton plan="team" slug={""} isDemo />- </div>- }- col={1}- position={props.position || "left"}- />- );-}--export function FeatureStatusUpdates(- props: Partial<Pick<InteractiveFeatureProps, "position">>,-) {- return (- <InteractiveFeature- icon="search-check"- iconText="Stay up to date"- title="Status Updates."- subTitle="Down't let your users in the dark and show what's wrong."- component={- <div className="my-auto origin-top scale-[0.80]">- <StatusReport isDemo {...statusReportData} />- </div>- }- col={1}- position={props.position || "bottom"}- withGradient- />- );-}--export function FeaturePasswordProtection(- props: Partial<Pick<InteractiveFeatureProps, "position">>,-) {- return (- <InteractiveFeature- icon="eye-off"- iconText="Restrict access"- title="Password Protection."- subTitle="Hide your page to unexepected users."- component={- <div className="m-auto max-w-lg">- <PasswordFormSuspense slug="" />- </div>- }- col={2}- position={props.position || "left"}- />- );-}--export function FeatureOperationalBanner(- props: Partial<Pick<InteractiveFeatureProps, "position">>,-) {- return (- <InteractiveFeature- icon="user"- iconText="Keep it simple"- title="Build trust."- subTitle="Showcase your reliability to your users, and reduce the number of customer service tickets."- component={<StatusCheck />}- action={- <Button variant="outline" className="w-max rounded-full" asChild>- <Link href="https://status.openstatus.dev">Status Page</Link>- </Button>- }- col={2}- position={props.position || "bottom"}- />- );-}--export function FeatureMaintenance(- props: Partial<Pick<InteractiveFeatureProps, "position">>,-) {- return (- <InteractiveFeature- icon="hammer"- iconText="Handle migrations"- title="Maintenance."- subTitle="Mute your monitors for a specific period and inform the users about upcoming maintenance."- component={- <div className="my-auto scale-[0.80]">- <MaintenanceContainer- className="rounded-lg border-status-monitoring/10 bg-status-monitoring/5"- {...maintenanceData}- />- </div>- }- col={2}- position={props.position || "left"}- />- );-}--export function FeatureStatusPageThemes(- props: Partial<Pick<InteractiveFeatureProps, "position">>,-) {- return (- <InteractiveFeature- icon="palette"- iconText="Make it yours"- title="Themes."- subTitle="Customize your status page with the built-in themes. Or just build your own."- component={- <div className="space-y-3">- <style>- {Object.values(THEMES)- .map((theme) => {- const lightVars = Object.entries(theme.light)- .map(([key, value]) => `${key}: ${value};`)- .join(" ");- const darkVars = Object.entries(theme.dark)- .map(([key, value]) => `${key}: ${value};`)- .join(" ");-- return `- .theme-${theme.id} {- ${lightVars}- }- .dark .theme-${theme.id} {- ${darkVars}- }- `;- })- .join("\n")}- </style>- <ul className="flex flex-col gap-2">- {Object.values(THEMES).map((theme) => (- <li- key={theme.id}- className={`theme-${theme.id} flex flex-row justify-between gap-1 font-mono text-sm`}- >- <div>{theme.name}</div>- <div className="flex gap-2">- {Object.entries({- "--primary": "Primary",- "--success": "Success",- "--destructive": "Destructive",- "--warning": "Degraded",- "--info": "Maintenance",- }).map(([color, label]) => (- <TooltipProvider key={color}>- <Tooltip delayDuration={100}>- <TooltipTrigger>- <div- className="size-4 rounded border border-border"- style={{ backgroundColor: `var(${color})` }}- />- </TooltipTrigger>- <TooltipContent>{label}</TooltipContent>- </Tooltip>- </TooltipProvider>- ))}- </div>- </li>- ))}- </ul>- <div className="space-y-1 text-muted-foreground text-xs">- <p>More themes coming soon...</p>- <p>- Feel free to contribute to the theme store.{" "}- <Link- className="text-foreground underline"- href="https://github.com/openstatusHQ/openstatus/tree/main/packages/theme-store#readme"- >- README.md- </Link>- </p>- </div>- </div>- }- action={- <Button variant="outline" className="w-max rounded-full" asChild>- <Link href="https://themes.openstatus.dev" target="_blank">- Theme Explorer- </Link>- </Button>- }- col={2}- position={props.position || "left"}- />- );-}--export function FeatureRegions(- props: Partial<Pick<InteractiveFeatureProps, "position">>,-) {- return (- <InteractiveFeature- icon="activity"- iconText="Website & API monitoring"- title="Global Monitoring."- subTitle="Get insights of the latency worldwide."- component={- <Suspense fallback={<Skeleton />}>- <div className="m-auto">- <RegionsPreset- regions={monitorRegions as unknown as Region[]}- selectedRegions={monitorRegions as unknown as Region[]}- />- </div>- </Suspense>- }- col={1}- position={props.position || "left"}- />- );-}--export function FeatureResponseDetails(- props: Partial<Pick<InteractiveFeatureProps, "position">>,-) {- return (- <InteractiveFeature- icon="timer"- iconText="Request Metrics Insights"- title="Optimize Web Performance."- subTitle="Analyze DNS, TCP, TLS, and TTFB for every request and inspect Response Headers as needed."- component={- <div className="origin-top scale-[0.80]">- <Suspense fallback={<Skeleton />}>- <ResponseDetailTabs- {...mockResponseData}- defaultOpen="timing"- hideInfo={false}- />- </Suspense>- </div>- }- col={2}- position={props.position || "left"}- withGradient- />- );-}--export function FeatureRaycastIntegration(- props: Partial<Pick<InteractiveFeatureProps, "position">>,-) {- return (- <InteractiveFeature- icon="command"- iconText="Raycast"- title="Command K."- subTitle="Check status pages and incidents without leaving your flow."- component={<RaycastExample />}- action={- <Button variant="outline" className="w-max rounded-full" asChild>- <a- href="https://www.raycast.com/thibaultleouay/openstatus"- rel="noreferrer"- target="_blank"- >- Raycast Store- </a>- </Button>- }- col={2}- position={props.position || "left"}- />- );-}--const blockCICD = allUnrelateds.find(- (unrelated) => unrelated.slug === "ci-cd-features-block",-);--export function FeatureAPIMonitoring(- props: Partial<Pick<InteractiveFeatureProps, "position">>,-) {- if (!blockCICD) {- throw new Error("CI/CD block not found");- }-- return (- <InteractiveFeature- icon="bot"- iconText="API Monitoring"- title="On Demand Checks."- subTitle="Run your check in your CI/CD pipeline or via the CLI."- component={- <Mdx- code={blockCICD.mdx}- className="max-w-none prose-pre:overflow-hidden"- />- }- action={- <Button variant="outline" className="w-max rounded-full" asChild>- <a- href="https://docs.openstatus.dev/tutorial/get-started-with-openstatus-cli/"- rel="noreferrer"- target="_blank"- >- Getting Started- </a>- </Button>- }- col={2}- position={props.position || "bottom"}- withGradient- />- );-}--const blockTerraform = allUnrelateds.find(- (unrelated) => unrelated.slug === "terraform-provider-block",-);--export function FeatureTerraformProvider(- props: Partial<Pick<InteractiveFeatureProps, "position">>,-) {- if (!blockTerraform) {- throw new Error("Terraform block not found");- }-- return (- <InteractiveFeature- icon="bot"- iconText="Terraform Provider"- title="Infra as Code."- subTitle="Use Terraform to manage your monitors."- component={- <Mdx- code={blockTerraform.mdx}- className="max-w-none prose-pre:overflow-hidden"- />- }- action={- <Button variant="outline" className="w-max rounded-full" asChild>- <a- href="https://registry.terraform.io/providers/openstatusHQ/openstatus/latest"- rel="noreferrer"- target="_blank"- >- Terraform Registry- </a>- </Button>- }- col={2}- position={props.position || "bottom"}- withGradient- />- );-}--const blockGitHubAction = allUnrelateds.find(- (unrelated) => unrelated.slug === "github-action-block",-);--export function FeatureGitHubAction(- props: Partial<Pick<InteractiveFeatureProps, "position">>,-) {- if (!blockGitHubAction) {- throw new Error("GitHub Action block not found");- }-- return (- <InteractiveFeature- icon="bot"- iconText="GitHub Action"- title="CI/CD pipeline."- subTitle="Run your check on demand or in your workflows."- className="max-h-max"- component={- <Mdx- code={blockGitHubAction.mdx}- className="max-w-none prose-pre:overflow-hidden"- />- }- action={- <Button variant="outline" className="w-max rounded-full" asChild>- <a- href="https://github.com/marketplace/actions/openstatus-synthetics-ci"- rel="noreferrer"- target="_blank"- >- GitHub Action Marketplace- </a>- </Button>- }- col={2}- position={props.position || "bottom"}- />- );-}--const blockYaml = allUnrelateds.find(- (unrelated) => unrelated.slug === "yaml-file",-);--export function FeatureYAML(- props: Partial<Pick<InteractiveFeatureProps, "position">>,-) {- if (!blockYaml) {- throw new Error("YAML file block not found");- }-- return (- <InteractiveFeature- icon="file-text"- iconText="YAML File"- title="Monitoring as Code."- subTitle="Use any version control system to manage your monitors."- className="max-h-max"- component={- <Mdx- code={blockYaml.mdx}- className="max-w-none prose-pre:overflow-hidden"- />- }- col={2}- position={props.position || "right"}- />- );-}--export function FeatureCLI(- props: Partial<Pick<InteractiveFeatureProps, "position">>,-) {- const blockCLI = allUnrelateds.find(- (unrelated) => unrelated.slug === "cli-block",- );-- if (!blockCLI) {- throw new Error("CLI block not found");- }- return (- <InteractiveFeature- icon="terminal"- iconText="CLI"- title="Run everywhere."- subTitle="Manage and trigger your monitors from your favorite terminal."- component={- <Mdx- code={blockCLI.mdx}- className="my-auto max-w-none prose-pre:overflow-hidden"- />- }- action={- <Button variant="outline" className="w-max rounded-full" asChild>- <a- href="https://docs.openstatus.dev/tutorial/get-started-with-openstatus-cli/"- rel="noreferrer"- target="_blank"- >- Getting Started- </a>- </Button>- }- col={2}- position={props.position || "right"}- />- );-}--const blockOpenTelemetry = allUnrelateds.find(- (unrelated) => unrelated.slug === "otel-block",-);--export function FeatureOpenTelemetry(- props: Partial<Pick<InteractiveFeatureProps, "position">>,-) {- if (!blockOpenTelemetry) {- throw new Error("OpenTelemetry block not found");- }-- return (- <InteractiveFeature- icon="radar"- iconText="OpenTelemetry"- title="Track every request."- subTitle="Visualize how requests flow through your system using OpenTelemetry tracing."- component={- <Mdx- code={blockOpenTelemetry.mdx}- className="max-w-none prose-pre:overflow-hidden"- />- }- action={- <Button variant="outline" className="w-max rounded-full" asChild>- <a- href="https://docs.openstatus.dev/guides/how-to-export-metrics-to-otlp-endpoint/"- rel="noreferrer"- target="_blank"- >- Documentation- </a>- </Button>- }- col={2}- position={props.position || "top"}- withGradient- />- );-}--export function FeaturePrivateLocationsDockerImage(- props: Partial<Pick<InteractiveFeatureProps, "position">>,-) {- return (- <InteractiveFeature- icon="cpu"- iconText="Performance"- title="Run anywhere."- position={props.position || "left"}- col={1}- subTitle="The Docker image is so small, you can run it on your own homelab or Raspberry Pi."- component={- <div className="flex h-full flex-col items-center justify-center gap-3">- <Icons.cpu className="size-8 text-muted-foreground" />- <p className="font-medium">8.5MB</p>- </div>- }- action={- <Button variant="outline" className="w-max rounded-full" asChild>- <Link href="https://docs.openstatus.dev/blog/deploy-private-locations-raspberry-pi">- Blog Post- </Link>- </Button>- }- />- );-}--export function FeaturePrivateLocationsDockerInstall(- props: Partial<Pick<InteractiveFeatureProps, "position">>,-) {- const blockCLI = allUnrelateds.find(- (unrelated) => unrelated.slug === "cli-docker-private-locations",- );-- if (!blockCLI) {- throw new Error("CLI Docker Private Locations block not found");- }- return (- <InteractiveFeature- icon="terminal"- iconText="Docker"- title="Deploy anywhere."- subTitle="Run our Docker container on your infrastructure."- component={- <Mdx- code={blockCLI.mdx}- className="my-auto max-w-none prose-pre:overflow-hidden"- />- }- action={- <Button variant="outline" className="w-max rounded-full" asChild>- <a- href="https://docs.openstatus.dev/tutorial/how-to-create-private-location/"- rel="noreferrer"- target="_blank"- >- Documentation- </a>- </Button>- }- col={1}- position={props.position || "top"}- />- );-}diff --git a/apps/web/src/components/marketing/feature/interactive-feature.tsx b/apps/web/src/components/marketing/feature/interactive-feature.tsxdeleted file mode 100644index 1c644d721..000000000--- a/apps/web/src/components/marketing/feature/interactive-feature.tsx+++ /dev/null@@ -1,154 +0,0 @@-import { Shell } from "@/components/dashboard/shell";-import { Icons, type ValidIcon } from "@/components/icons";-import { cn } from "@/lib/utils";-import { cva } from "class-variance-authority";--const containerVariant = cva(- "flex w-full max-h-72 overflow-hidden flex-col gap-2",- {- variants: {- col: {- 1: "col-span-full md:col-span-1",- 2: "col-span-full md:col-span-2",- 3: "col-span-full md:col-span-3",- },- position: {- top: "order-2",- right: "order-2",- bottom: "order-1 border-b",- left: "order-1 border-b md:border-b-0 md:border-r",- },- },- },-);--export interface InteractiveFeatureProps- extends React.ComponentPropsWithoutRef<"div"> {- component: React.ReactNode;- icon: ValidIcon;- iconText: string;- title: string;- subTitle: string;- /**- * Allows to include one or multiple CTA action(s)- * @example <Button>CTA</Button>- */- action?: React.ReactNode;- // grid aligment- position: "top" | "right" | "bottom" | "left";- col: 1 | 2;- withGradient?: boolean;-}--export function InteractiveFeature({- icon,- iconText,- title,- subTitle,- action,- component,- position,- col,- withGradient = false,- className,-}: InteractiveFeatureProps) {- const Component = component;- const isSingleCol = ["top", "bottom"].includes(position);- return (- <Shell- className={cn(- "grid px-0 py-0 md:grid-cols-3 md:p-0",- isSingleCol && "md:grid-cols-1",- )}- >- <FeatureCardContentContainer- variant="secondary"- className={cn(- containerVariant({- col: (3 - col) as 1 | 2,- position,- }),- )}- >- <FeatureSubheader icon={icon} text={iconText} />- <FeatureTitle strong={title} regular={subTitle} />- {action}- </FeatureCardContentContainer>- <FeatureCardContentContainer- className={cn(- containerVariant({- col,- position: isSingleCol- ? position === "top"- ? "bottom"- : "top"- : position === "left"- ? "right"- : "left",- }),- "relative",- className,- )}- >- {Component}- {withGradient ? <Gradient /> : null}- </FeatureCardContentContainer>- </Shell>- );-}--function Gradient() {- return (- <div className="absolute inset-x-0 bottom-0 z-10 h-16 w-full overflow-hidden rounded-b-xl">- <div className="h-full w-full bg-linear-to-b from-transparent to-background" />- </div>- );-}--interface FeatureCardContentContainer- extends React.ComponentPropsWithoutRef<"div"> {- variant?: "default" | "secondary";-}--function FeatureCardContentContainer({- children,- variant = "default",- className,- ...props-}: FeatureCardContentContainer) {- return (- <div- className={cn(- "px-3 py-6 md:p-8",- variant === "secondary" && "bg-accent/50",- className,- )}- {...props}- >- {children}- </div>- );-}--function FeatureSubheader({ icon, text }: { icon: ValidIcon; text: string }) {- const Icon = Icons[icon];- return (- <h3 className="flex items-center gap-2 text-muted-foreground text-sm md:text-base">- <Icon className="h-4 w-4 text-foreground" />- {text}- </h3>- );-}--interface FeatureTitleProps- extends React.ComponentPropsWithoutRef<"p">,- Record<"strong" | "regular", string> {}--function FeatureTitle({ strong, regular }: FeatureTitleProps) {- return (- <p className="text-lg text-muted-foreground md:text-xl">- <strong className="font-medium text-foreground">{strong}</strong>{" "}- {regular}- </p>- );-}diff --git a/apps/web/src/components/marketing/feature/mock.ts b/apps/web/src/components/marketing/feature/mock.tsdeleted file mode 100644index ac706270d..000000000--- a/apps/web/src/components/marketing/feature/mock.ts+++ /dev/null@@ -1,1077 +0,0 @@-import * as assertions from "@openstatus/assertions";--export const mockResponseData = {- timing: {- dnsStart: 1720297250262,- dnsDone: 1720297250290,- connectStart: 1720297250290,- connectDone: 1720297250291,- tlsHandshakeStart: 1720297250291,- tlsHandshakeDone: 1720297250300,- firstByteStart: 1720297250300,- firstByteDone: 1720297250635,- transferStart: 1720297250635,- transferDone: 1720297250635,- },- headers: {- Age: "0",- "Cache-Control": "private, no-cache, no-store, max-age=0, must-revalidate",- "Content-Type": "text/html; charset=utf-8",- Date: "Sat, 06 Jul 2024 20:20:50 GMT",- Server: "Vercel",- "Strict-Transport-Security": "max-age=63072000",- Vary: "RSC, Next-Router-State-Tree, Next-Router-Prefetch",- "X-Matched-Path": "/",- "X-Powered-By": "Next.js",- "X-Vercel-Cache": "MISS",- "X-Vercel-Execution-Region": "fra1",- "X-Vercel-Id": "bom1::fra1::nj6b8-1720297250301-a7b4ff53baa9",- },- status: 200,- message: null,- assertions: assertions.deserialize(- '[{"version":"v1","type":"header","compare":"eq","key":"Server","target":"Vercel"}]',- ),-};--export const mockTrackerData = [- { day: "2024-07-07T00:00:00.000Z", count: 3944, ok: 3944 },- { day: "2024-07-06T00:00:00.000Z", count: 4692, ok: 4692 },- { day: "2024-07-05T00:00:00.000Z", count: 4737, ok: 4737 },- { day: "2024-07-04T00:00:00.000Z", count: 4862, ok: 4862 },- { day: "2024-07-03T00:00:00.000Z", count: 1958, ok: 1958 },- { day: "2024-07-02T00:00:00.000Z", count: 1152, ok: 1152 },- { day: "2024-07-01T00:00:00.000Z", count: 1152, ok: 1152 },- { day: "2024-06-30T00:00:00.000Z", count: 1152, ok: 1152 },- { day: "2024-06-29T00:00:00.000Z", count: 1152, ok: 1152 },- { day: "2024-06-28T00:00:00.000Z", count: 1128, ok: 1128 },- { day: "2024-06-27T00:00:00.000Z", count: 1144, ok: 1144 },- { day: "2024-06-26T00:00:00.000Z", count: 1148, ok: 1148 },- { day: "2024-06-25T00:00:00.000Z", count: 1152, ok: 1152 },- { day: "2024-06-24T00:00:00.000Z", count: 1151, ok: 1151 },- { day: "2024-06-23T00:00:00.000Z", count: 1152, ok: 1152 },- { day: "2024-06-22T00:00:00.000Z", count: 1152, ok: 1152 },- { day: "2024-06-21T00:00:00.000Z", count: 1152, ok: 1152 },- { day: "2024-06-20T00:00:00.000Z", count: 1152, ok: 1151 },- { day: "2024-06-19T00:00:00.000Z", count: 1064, ok: 1064 },- { day: "2024-06-18T00:00:00.000Z", count: 864, ok: 864 },- { day: "2024-06-17T00:00:00.000Z", count: 864, ok: 864 },- { day: "2024-06-16T00:00:00.000Z", count: 864, ok: 864 },- { day: "2024-06-15T00:00:00.000Z", count: 864, ok: 864 },- { day: "2024-06-14T00:00:00.000Z", count: 864, ok: 864 },- { day: "2024-06-13T00:00:00.000Z", count: 864, ok: 864 },- { day: "2024-06-12T00:00:00.000Z", count: 863, ok: 863 },- { day: "2024-06-11T00:00:00.000Z", count: 864, ok: 864 },- { day: "2024-06-10T00:00:00.000Z", count: 864, ok: 864 },- { day: "2024-06-09T00:00:00.000Z", count: 1320, ok: 1320 },- { day: "2024-06-08T00:00:00.000Z", count: 864, ok: 864 },- { day: "2024-06-07T00:00:00.000Z", count: 864, ok: 864 },- { day: "2024-06-06T00:00:00.000Z", count: 864, ok: 864 },- { day: "2024-06-05T00:00:00.000Z", count: 864, ok: 864 },- { day: "2024-06-04T00:00:00.000Z", count: 864, ok: 864 },- { day: "2024-06-03T00:00:00.000Z", count: 864, ok: 864 },- { day: "2024-06-02T00:00:00.000Z", count: 864, ok: 864 },- { day: "2024-06-01T00:00:00.000Z", count: 864, ok: 864 },- { day: "2024-05-31T00:00:00.000Z", count: 860, ok: 860 },- { day: "2024-05-30T00:00:00.000Z", count: 858, ok: 858 },- { day: "2024-05-29T00:00:00.000Z", count: 864, ok: 864 },- { day: "2024-05-28T00:00:00.000Z", count: 864, ok: 864 },- { day: "2024-05-27T00:00:00.000Z", count: 864, ok: 864 },- { day: "2024-05-26T00:00:00.000Z", count: 864, ok: 864 },- { day: "2024-05-25T00:00:00.000Z", count: 864, ok: 864 },- { day: "2024-05-24T00:00:00.000Z", count: 864, ok: 864 },-];--export const mockChartData = {- data: [- {- timestamp: "Jul 5, 23:00",- lhr: 991,- phx: 1870,- gig: 1088,- sjc: 658,- mia: 808,- dfw: 2403,- gru: 857,- gdl: 1043,- qro: 1183,- syd: 715,- jnb: 496,- yyz: 877,- mad: 886,- ams: 562,- iad: 2311,- scl: 992,- fra: 939,- den: 645,- ord: 2455,- hkg: 2082,- cdg: 984,- arn: 1179,- sea: 914,- sin: 970,- yul: 677,- atl: 1083,- bos: 2061,- bog: 902,- eze: 1031,- ewr: 965,- otp: 1077,- bom: 1609,- waw: 2227,- lax: 743,- },- {- timestamp: "Jul 6, 00:00",- hkg: 792,- cdg: 741,- den: 744,- ord: 1001,- fra: 917,- sea: 1053,- sin: 845,- arn: 955,- bos: 687,- bog: 562,- atl: 764,- yul: 695,- lax: 651,- otp: 599,- bom: 790,- waw: 669,- eze: 789,- ewr: 614,- sjc: 707,- mia: 1146,- gig: 936,- lhr: 992,- phx: 623,- gdl: 1137,- qro: 925,- dfw: 1153,- gru: 620,- jnb: 537,- syd: 703,- scl: 750,- iad: 310,- ams: 580,- mad: 829,- yyz: 811,- },- {- timestamp: "Jul 6, 01:00",- lax: 1386,- waw: 494,- bom: 1632,- otp: 687,- ewr: 1053,- eze: 1570,- bog: 1699,- bos: 1144,- atl: 1478,- yul: 1390,- sin: 1820,- sea: 1807,- arn: 1586,- cdg: 667,- hkg: 763,- ord: 1672,- den: 924,- fra: 497,- scl: 888,- iad: 702,- mad: 817,- ams: 1258,- yyz: 1768,- jnb: 496,- syd: 880,- qro: 1148,- gdl: 1568,- gru: 860,- dfw: 1578,- mia: 1564,- sjc: 1680,- gig: 1364,- phx: 788,- lhr: 778,- },- {- timestamp: "Jul 6, 02:00",- ord: 1854,- den: 1543,- fra: 555,- cdg: 662,- hkg: 1066,- arn: 906,- sin: 944,- sea: 1666,- atl: 950,- yul: 734,- bog: 1057,- bos: 795,- waw: 542,- otp: 621,- bom: 774,- ewr: 662,- eze: 888,- lax: 946,- gig: 854,- phx: 822,- lhr: 780,- mia: 702,- sjc: 604,- gru: 835,- dfw: 1080,- qro: 842,- gdl: 1580,- jnb: 554,- syd: 754,- mad: 756,- ams: 518,- yyz: 1058,- scl: 982,- iad: 946,- },- {- timestamp: "Jul 6, 03:00",- bos: 1076,- bog: 1106,- atl: 872,- yul: 825,- lax: 958,- otp: 616,- bom: 844,- waw: 586,- eze: 898,- ewr: 1097,- hkg: 678,- cdg: 700,- den: 766,- ord: 784,- fra: 682,- sea: 983,- sin: 824,- arn: 734,- jnb: 467,- syd: 1010,- scl: 780,- iad: 990,- mad: 832,- ams: 547,- yyz: 816,- sjc: 972,- mia: 826,- gig: 966,- lhr: 784,- phx: 554,- gdl: 990,- qro: 1012,- dfw: 1066,- gru: 848,- },- {- timestamp: "Jul 6, 04:00",- syd: 1142,- jnb: 508,- yyz: 864,- ams: 412,- mad: 642,- iad: 884,- scl: 866,- lhr: 797,- phx: 901,- gig: 794,- sjc: 1398,- mia: 546,- dfw: 1114,- gru: 620,- gdl: 650,- qro: 1684,- yul: 760,- atl: 870,- bos: 686,- bog: 868,- eze: 1065,- ewr: 854,- otp: 770,- bom: 1491,- waw: 678,- lax: 846,- fra: 541,- den: 1314,- ord: 714,- hkg: 1028,- cdg: 556,- arn: 1472,- sea: 1027,- sin: 1592,- },- {- timestamp: "Jul 6, 05:00",- gru: 660,- dfw: 1060,- qro: 1102,- gdl: 1650,- phx: 1502,- lhr: 706,- gig: 765,- mia: 741,- sjc: 880,- yyz: 928,- mad: 622,- ams: 620,- iad: 928,- scl: 942,- syd: 1692,- jnb: 480,- arn: 784,- sin: 1226,- sea: 914,- fra: 512,- ord: 962,- den: 1683,- cdg: 457,- hkg: 1032,- ewr: 1740,- eze: 790,- waw: 586,- bom: 1131,- otp: 724,- lax: 1774,- yul: 1366,- atl: 692,- bog: 856,- bos: 1666,- },- {- timestamp: "Jul 6, 06:00",- iad: 762,- scl: 802,- yyz: 1014,- ams: 644,- mad: 650,- syd: 1220,- jnb: 456,- gdl: 1072,- qro: 746,- dfw: 916,- gru: 720,- mia: 597,- sjc: 594,- lhr: 908,- phx: 810,- gig: 674,- lax: 1406,- eze: 918,- ewr: 582,- bom: 862,- otp: 582,- waw: 498,- bos: 840,- bog: 972,- yul: 524,- atl: 788,- sin: 982,- sea: 1035,- arn: 1486,- hkg: 1238,- cdg: 714,- fra: 420,- den: 962,- ord: 828,- },- {- timestamp: "Jul 6, 07:00",- syd: 1133,- jnb: 515,- yyz: 744,- ams: 750,- mad: 716,- iad: 790,- scl: 781,- phx: 944,- lhr: 746,- gig: 816,- mia: 622,- sjc: 597,- gru: 667,- dfw: 896,- qro: 928,- gdl: 832,- yul: 594,- atl: 668,- bog: 678,- bos: 642,- ewr: 664,- eze: 638,- waw: 711,- otp: 765,- bom: 685,- lax: 865,- fra: 624,- ord: 645,- den: 1426,- cdg: 672,- hkg: 1026,- arn: 971,- sin: 1018,- sea: 976,- },- {- timestamp: "Jul 6, 08:00",- sjc: 927,- mia: 700,- gig: 1416,- lhr: 754,- phx: 584,- gdl: 1022,- qro: 880,- dfw: 811,- gru: 522,- jnb: 498,- syd: 716,- scl: 826,- iad: 940,- ams: 550,- mad: 621,- yyz: 718,- hkg: 1240,- cdg: 656,- den: 631,- ord: 837,- fra: 554,- sea: 1008,- sin: 1014,- arn: 1148,- bos: 687,- bog: 779,- atl: 832,- yul: 514,- lax: 888,- otp: 748,- bom: 756,- waw: 674,- eze: 576,- ewr: 600,- },- {- timestamp: "Jul 6, 09:00",- sea: 921,- sin: 1022,- arn: 1199,- hkg: 1161,- cdg: 574,- den: 627,- ord: 767,- fra: 536,- lax: 497,- bom: 1151,- otp: 2027,- waw: 963,- eze: 2208,- ewr: 841,- bos: 623,- bog: 2252,- atl: 660,- yul: 626,- gdl: 753,- qro: 2429,- dfw: 2695,- gru: 504,- sjc: 2272,- mia: 628,- gig: 655,- lhr: 784,- phx: 1087,- scl: 930,- iad: 700,- ams: 602,- mad: 881,- yyz: 898,- jnb: 427,- syd: 1237,- },- {- timestamp: "Jul 6, 10:00",- cdg: 919,- hkg: 1140,- fra: 648,- ord: 696,- den: 771,- sin: 929,- sea: 978,- arn: 1283,- bog: 693,- bos: 938,- yul: 822,- atl: 741,- lax: 867,- ewr: 667,- eze: 697,- waw: 1059,- bom: 882,- otp: 1144,- mia: 710,- sjc: 834,- phx: 692,- lhr: 1039,- gig: 562,- qro: 1184,- gdl: 763,- gru: 559,- dfw: 1017,- syd: 1211,- jnb: 540,- iad: 903,- scl: 698,- yyz: 2359,- ams: 882,- mad: 652,- },- {- timestamp: "Jul 6, 11:00",- mia: 478,- sjc: 746,- gig: 695,- lhr: 873,- phx: 654,- gdl: 1040,- qro: 818,- dfw: 771,- gru: 488,- jnb: 621,- syd: 1641,- scl: 832,- iad: 902,- ams: 970,- mad: 651,- yyz: 858,- hkg: 1218,- cdg: 534,- den: 670,- ord: 820,- fra: 582,- sin: 1031,- sea: 953,- arn: 1214,- bos: 670,- bog: 1596,- atl: 572,- yul: 530,- lax: 766,- bom: 730,- otp: 577,- waw: 406,- eze: 888,- ewr: 544,- },- {- timestamp: "Jul 6, 12:00",- syd: 1056,- jnb: 474,- yyz: 1458,- ams: 946,- mad: 1626,- iad: 942,- scl: 678,- phx: 1514,- lhr: 786,- gig: 610,- sjc: 1358,- mia: 547,- gru: 542,- dfw: 936,- qro: 946,- gdl: 1024,- yul: 1455,- atl: 535,- bog: 794,- bos: 756,- ewr: 877,- eze: 639,- waw: 609,- bom: 1004,- otp: 724,- lax: 713,- fra: 848,- ord: 1636,- den: 856,- cdg: 1002,- hkg: 1106,- arn: 1200,- sea: 952,- sin: 1027,- },- {- timestamp: "Jul 6, 13:00",- ewr: 1450,- eze: 748,- waw: 900,- otp: 1000,- bom: 878,- lax: 694,- yul: 752,- atl: 672,- bog: 851,- bos: 679,- arn: 1143,- sea: 1073,- sin: 1085,- fra: 940,- ord: 954,- den: 1604,- cdg: 781,- hkg: 1078,- yyz: 719,- ams: 702,- mad: 951,- iad: 1329,- scl: 830,- syd: 1702,- jnb: 794,- gru: 530,- dfw: 931,- qro: 979,- gdl: 1704,- phx: 1432,- lhr: 633,- gig: 635,- sjc: 784,- mia: 1532,- },- {- timestamp: "Jul 6, 14:00",- cdg: 704,- hkg: 1144,- fra: 392,- ord: 663,- den: 705,- sea: 974,- sin: 1066,- arn: 1201,- bog: 714,- bos: 686,- yul: 682,- atl: 630,- lax: 682,- ewr: 1177,- eze: 636,- waw: 476,- otp: 818,- bom: 1000,- sjc: 740,- mia: 754,- phx: 1424,- lhr: 872,- gig: 578,- qro: 1008,- gdl: 854,- gru: 614,- dfw: 906,- syd: 921,- jnb: 712,- iad: 910,- scl: 718,- yyz: 886,- mad: 693,- ams: 788,- },- {- timestamp: "Jul 6, 15:00",- arn: 1198,- sea: 1036,- sin: 1271,- fra: 986,- den: 966,- ord: 768,- hkg: 1188,- cdg: 740,- eze: 661,- ewr: 572,- bom: 822,- otp: 796,- waw: 896,- lax: 602,- yul: 824,- atl: 950,- bos: 703,- bog: 1102,- dfw: 1038,- gru: 814,- gdl: 1122,- qro: 1032,- lhr: 897,- phx: 1506,- gig: 836,- sjc: 638,- mia: 958,- yyz: 878,- mad: 588,- ams: 526,- iad: 794,- scl: 760,- syd: 847,- jnb: 754,- },- {- timestamp: "Jul 6, 16:00",- bos: 876,- bog: 974,- atl: 854,- yul: 623,- lax: 775,- bom: 1265,- otp: 880,- waw: 666,- eze: 614,- ewr: 620,- hkg: 1216,- cdg: 704,- den: 808,- ord: 948,- fra: 682,- sin: 1112,- sea: 1044,- arn: 1179,- jnb: 690,- syd: 812,- scl: 700,- iad: 1136,- mad: 796,- ams: 848,- yyz: 655,- mia: 652,- sjc: 576,- gig: 660,- lhr: 744,- phx: 919,- gdl: 1658,- qro: 1036,- dfw: 781,- gru: 660,- },- {- timestamp: "Jul 6, 17:00",- sea: 1016,- sin: 1122,- arn: 1180,- cdg: 674,- hkg: 1090,- ord: 950,- den: 610,- fra: 778,- lax: 714,- waw: 713,- otp: 911,- bom: 911,- ewr: 902,- eze: 654,- bog: 935,- bos: 868,- atl: 818,- yul: 625,- qro: 1102,- gdl: 1818,- gru: 610,- dfw: 880,- sjc: 758,- mia: 738,- gig: 724,- phx: 1568,- lhr: 870,- scl: 1643,- iad: 1038,- ams: 312,- mad: 646,- yyz: 978,- jnb: 598,- syd: 700,- },- {- timestamp: "Jul 6, 18:00",- gru: 827,- dfw: 1083,- qro: 704,- gdl: 740,- phx: 750,- lhr: 916,- gig: 533,- sjc: 738,- mia: 778,- yyz: 1141,- mad: 794,- ams: 730,- iad: 598,- scl: 702,- syd: 714,- jnb: 608,- arn: 1198,- sea: 1006,- sin: 1140,- fra: 644,- ord: 762,- den: 1090,- cdg: 667,- hkg: 1179,- ewr: 442,- eze: 648,- waw: 826,- bom: 906,- otp: 570,- lax: 616,- yul: 760,- atl: 748,- bog: 832,- bos: 577,- },- {- timestamp: "Jul 6, 19:00",- ams: 596,- mad: 946,- yyz: 1022,- scl: 932,- iad: 948,- jnb: 660,- syd: 512,- gru: 692,- dfw: 930,- qro: 942,- gdl: 1192,- gig: 856,- phx: 732,- lhr: 908,- sjc: 1424,- mia: 784,- waw: 824,- bom: 894,- otp: 925,- ewr: 671,- eze: 614,- lax: 600,- atl: 764,- yul: 692,- bog: 860,- bos: 884,- arn: 1181,- sea: 1051,- sin: 1144,- ord: 704,- den: 963,- fra: 768,- cdg: 812,- hkg: 1148,- },- {- timestamp: "Jul 6, 20:00",- arn: 1154,- sin: 910,- sea: 996,- fra: 849,- den: 692,- ord: 918,- hkg: 1009,- cdg: 857,- eze: 710,- ewr: 508,- otp: 535,- bom: 939,- waw: 1037,- lax: 838,- yul: 721,- atl: 706,- bos: 644,- bog: 1550,- dfw: 1158,- gru: 504,- gdl: 1247,- qro: 1030,- lhr: 991,- phx: 662,- gig: 1118,- mia: 767,- sjc: 565,- yyz: 831,- mad: 676,- ams: 786,- iad: 674,- scl: 855,- syd: 680,- jnb: 798,- },- {- timestamp: "Jul 6, 21:00",- bom: 929,- otp: 644,- waw: 789,- eze: 764,- ewr: 846,- lax: 952,- atl: 802,- yul: 656,- bos: 867,- bog: 937,- arn: 1238,- sin: 896,- sea: 978,- den: 902,- ord: 1058,- fra: 890,- hkg: 840,- cdg: 558,- ams: 722,- mad: 1050,- yyz: 810,- scl: 870,- iad: 878,- jnb: 926,- syd: 670,- dfw: 1068,- gru: 856,- gdl: 1814,- qro: 1642,- gig: 856,- lhr: 884,- phx: 810,- mia: 1553,- sjc: 896,- },- {- timestamp: "Jul 6, 22:00",- iad: 762,- scl: 768,- yyz: 888,- ams: 568,- mad: 772,- syd: 708,- jnb: 520,- gdl: 902,- qro: 935,- dfw: 941,- gru: 924,- mia: 846,- sjc: 1512,- lhr: 906,- phx: 1016,- gig: 805,- lax: 520,- eze: 764,- ewr: 402,- bom: 892,- otp: 766,- waw: 716,- bos: 814,- bog: 1193,- yul: 668,- atl: 1036,- sin: 872,- sea: 1157,- arn: 1104,- hkg: 920,- cdg: 690,- fra: 622,- den: 769,- ord: 1066,- },- {- timestamp: "Jul 6, 23:00",- gdl: 2533,- qro: 2260,- dfw: 2435,- gru: 1060,- mia: 2234,- sjc: 987,- gig: 832,- lhr: 927,- phx: 2214,- scl: 2293,- iad: 1032,- mad: 872,- ams: 850,- yyz: 1206,- jnb: 682,- syd: 853,- sin: 2429,- sea: 1041,- arn: 1176,- hkg: 1077,- cdg: 740,- den: 1074,- ord: 1074,- fra: 448,- lax: 2146,- otp: 857,- bom: 615,- waw: 713,- eze: 514,- ewr: 797,- bos: 924,- bog: 895,- atl: 1008,- yul: 414,- },- ],- regions: ["ams", "gru", "iad", "jnb", "syd", "hkg"],-};--export const maintenanceData = {- maintenance: {- id: 0,- from: new Date("2024-07-09T21:02:43.000Z"),- to: new Date("2024-07-09T21:05:43.000Z"),- title: "Maintenance",- message:- "We are performing maintenance on our environment. Services and projects may be unavailable for a few minutes.",- createdAt: null,- updatedAt: null,- workspaceId: null,- pageId: null,- monitors: undefined,- },- monitors: [],-};--export const statusReportData = {- report: {- id: 0,- status: "resolved" as const,- title: "Downtime",- workspaceId: 1,- pageId: 0,- createdAt: new Date("2024-07-09T21:22:43.000Z"),- updatedAt: new Date("2024-07-09T21:23:17.000Z"),- statusReportUpdates: [- {- id: 3,- status: "resolved" as const,- date: new Date("2024-07-09T21:59:23.000Z"),- message:- "The database server has been successfully restarted and data integrity has been verified. All affected systems are now operational. We are currently monitoring the systems closely to ensure stability and to confirm that there are no further issues.",- statusReportId: 1,- createdAt: new Date("2024-07-09T21:59:23.000Z"),- updatedAt: new Date("2024-07-09T21:59:23.000Z"),- },- {- id: 2,- status: "identified" as const,- date: new Date("2024-07-09T21:44:03.000Z"),- message:- "The issue has been identified as a database server failure. Our team is working to restart the server and check data integrity. We will provide an estimated time for resolution shortly.",- statusReportId: 1,- createdAt: new Date("2024-07-09T21:23:12.000Z"),- updatedAt: new Date("2024-07-09T21:23:12.000Z"),- },- {- id: 1,- status: "investigating" as const,- date: new Date("2024-07-09T21:21:23.000Z"),- message:- "An unexpected outage occurred affecting the website, customer portal, and internal email systems. Our team is currently investigating the issue to determine the cause and restore services as quickly as possible. Further updates will be provided as soon as more information is available.",- statusReportId: 1,- createdAt: new Date("2024-07-09T21:22:43.000Z"),- updatedAt: new Date("2024-07-09T21:22:43.000Z"),- },- ],- monitorsToStatusReports: [],- },- monitors: [],-};diff --git a/apps/web/src/components/marketing/feature/notifications-form-example.tsx b/apps/web/src/components/marketing/feature/notifications-form-example.tsxdeleted file mode 100644index b7b0201d2..000000000--- a/apps/web/src/components/marketing/feature/notifications-form-example.tsx+++ /dev/null@@ -1,40 +0,0 @@-"use client";--import { SectionNotifications } from "@/components/forms/monitor/section-notifications";-import { zodResolver } from "@hookform/resolvers/zod";-import {- type InsertMonitor,- type Notification,- insertMonitorSchema,-} from "@openstatus/db/src/schema";-import { Form } from "@openstatus/ui";-import { useForm } from "react-hook-form";--const notifications: Notification[] = (- [- { name: "Team", provider: "email" },- { name: "#alerts", provider: "discord" },- { name: "#alerts", provider: "slack" },- ] as const-).map((n, i) => ({- ...n,- id: i,- createdAt: new Date(),- updatedAt: new Date(),- workspaceId: 1,- data: "",-}));--export function NotificationsFormExample() {- const form = useForm<InsertMonitor>({- resolver: zodResolver(insertMonitorSchema),- defaultValues: {- notifications: [0],- },- });- return (- <Form {...form}>- <SectionNotifications form={form} notifications={notifications} />- </Form>- );-}diff --git a/apps/web/src/components/marketing/feature/raycast-example.tsx b/apps/web/src/components/marketing/feature/raycast-example.tsxdeleted file mode 100644index 57874f9bf..000000000--- a/apps/web/src/components/marketing/feature/raycast-example.tsx+++ /dev/null@@ -1,43 +0,0 @@-import {- Command,- CommandEmpty,- CommandGroup,- CommandInput,- CommandItem,- CommandList,-} from "@openstatus/ui";-import Image from "next/image";--const commands = [- "Show Monitors",- "Create Status Report",- "Show Status Page",- "Create Status Report Update",- "Show Incidents",-];--export function RaycastExample() {- return (- <Command className="rounded-lg border shadow-md md:min-w-[450px]">- <CommandInput placeholder="Search for apps and commands..." />- <CommandList>- <CommandEmpty>No results found.</CommandEmpty>- <CommandGroup heading="Commands">- {commands.map((command) => (- <CommandItem key={command}>- <span className="relative mr-2">- <Image- src="/icon.png"- alt="OpenStatus"- width={16}- height={16}- />- </span>- <span>{command}</span>- </CommandItem>- ))}- </CommandGroup>- </CommandList>- </Command>- );-}diff --git a/apps/web/src/components/marketing/feature/tracker-example.tsx b/apps/web/src/components/marketing/feature/tracker-example.tsxdeleted file mode 100644index 3d08790a4..000000000--- a/apps/web/src/components/marketing/feature/tracker-example.tsx+++ /dev/null@@ -1,38 +0,0 @@-"use client";--import { Tracker } from "@/components/tracker/tracker";-import { Checkbox } from "@openstatus/ui";-import { useState } from "react";-import { mockTrackerData } from "./mock";--export function TrackerWithVisibilityToggle() {- const [visible, setVisible] = useState(true);- return (- <div className="my-auto flex flex-col gap-8">- <div className="items-top flex space-x-2">- <Checkbox- id="visibility"- onCheckedChange={(e) => setVisible(!!e)}- checked={visible}- />- <div className="grid gap-1.5 leading-none">- <label- htmlFor="visibility"- className="font-medium text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"- >- Show values- </label>- <p className="text-muted-foreground text-sm">- Share the uptime and number of requests.- </p>- </div>- </div>- <Tracker- data={mockTrackerData}- name="OpenStatus"- description="Website Health"- showValues={visible}- />- </div>- );-}diff --git a/apps/web/src/components/marketing/hero.tsx b/apps/web/src/components/marketing/hero.tsxdeleted file mode 100644index 85ddf3030..000000000--- a/apps/web/src/components/marketing/hero.tsx+++ /dev/null@@ -1,87 +0,0 @@-import { ChevronRight } from "lucide-react";-import Link from "next/link";-import { Suspense } from "react";--import { Badge } from "@openstatus/ui/src/components/badge";-import { Button } from "@openstatus/ui/src/components/button";--import { getGitHubStars } from "@/lib/github";-import { cn, numberFormatter } from "@/lib/utils";--export function Hero() {- return (- <div className="my-10 flex w-full flex-col justify-center gap-1 px-3 py-4 text-center md:my-20 md:p-6">- <div>- <Badge variant="outline" className="backdrop-blur-[2px]">- <Link- href="https://github.com/openstatusHQ/openstatus/stargazers"- target="_blank"- rel="noreferrer"- className="flex items-center"- >- Proudly Open Source- <ChevronRight className="ml-1 h-3 w-3" />- </Link>- </Badge>- </div>- <div className="flex flex-col gap-6">- <h1- className={cn(- "font-cal text-4xl text-foreground md:text-6xl",- "bg-linear-to-tl from-0% from-[hsl(var(--muted))] to-40% to-[hsl(var(--foreground))] bg-clip-text text-transparent",- )}- >- Showcase your uptime with a status page- </h1>- <p className="mx-auto max-w-md text-lg text-muted-foreground md:max-w-xl md:text-xl">- Proactively monitor your API and website worldwide to detect and- resolve performance issues and downtime, ensuring your users are never- impacted.- </p>- </div>- <div className="my-4 grid gap-2 sm:grid-cols-2">- <div className="text-center sm:block sm:text-right">- <Button className="w-48 rounded-full sm:w-auto" asChild>- <a href="https://app.openstatus.dev">Get Started</a>- </Button>- </div>- <div className="text-center sm:block sm:text-left">- <Button- variant="outline"- className="w-48 rounded-full sm:w-auto"- asChild- >- <Link href="/github" target="_blank">- Star on GitHub{" "}- <Suspense fallback={<StarsBadgeFallback />}>- <StarsBadge />- </Suspense>- </Link>- </Button>- </div>- </div>- </div>- );-}--function StarsBadgeFallback() {- return (- <Badge variant="secondary" className="ml-1">- ~- </Badge>- );-}--async function StarsBadge() {- const stars = await getGitHubStars();- return (- <>- <Badge variant="secondary" className="ml-1 hidden sm:block">- {numberFormatter(stars)}- </Badge>- <Badge variant="secondary" className="ml-1 block sm:hidden">- {stars}- </Badge>- </>- );-}diff --git a/apps/web/src/components/marketing/in-between-cta.tsx b/apps/web/src/components/marketing/in-between-cta.tsxdeleted file mode 100644index cd5538650..000000000--- a/apps/web/src/components/marketing/in-between-cta.tsx+++ /dev/null@@ -1,74 +0,0 @@-import Link from "next/link";--import { cn } from "@/lib/utils";-import { Button } from "@openstatus/ui/src/components/button";--interface InBetweenCTAProps {- description: string;- actions: Record<- "primary" | "secondary",- { label: string; href: string; target?: string }- >;- className?: string;-}--export function InBetweenCTA({- description,- actions,- className,-}: InBetweenCTAProps) {- const { primary, secondary } = actions;- return (- <div- className={cn(- "flex flex-col items-center justify-between gap-6",- className,- )}- >- <p className="max-w-lg text-center text-lg text-muted-foreground">- {description}- </p>- <div className="flex gap-2">- <Button className="rounded-full" asChild>- <Link href={primary.href} target={primary.target}>- {primary.label}- </Link>- </Button>- <Button className="rounded-full" variant="outline" asChild>- <Link href={secondary.href} target={secondary.target}>- {secondary.label}- </Link>- </Button>- </div>- </div>- );-}--export function MiddleCTA(props: Pick<InBetweenCTAProps, "className">) {- return (- <InBetweenCTA- description="Sick of booking a demo to know more? Test your endpoint or check our public dashboard right away."- actions={{- primary: { label: "Public Dashboard", href: "/public/monitors/1" },- secondary: { label: "Speed Checker", href: "/play/checker" },- }}- {...props}- />- );-}--export function BottomCTA(props: Pick<InBetweenCTAProps, "className">) {- return (- <InBetweenCTA- description="Learn how your services are performing over time, and notify your users of any issues."- actions={{- primary: {- label: "Start for Free",- href: "https://app.openstatus.dev",- },- secondary: { label: "Schedule a Demo", href: "/cal", target: "_blank" },- }}- {...props}- />- );-}diff --git a/apps/web/src/components/marketing/lastest-changelogs.tsx b/apps/web/src/components/marketing/lastest-changelogs.tsxdeleted file mode 100644index 8bb5943b8..000000000--- a/apps/web/src/components/marketing/lastest-changelogs.tsx+++ /dev/null@@ -1,54 +0,0 @@-import { allChangelogs } from "content-collections";-import Link from "next/link";--import { Button } from "@openstatus/ui/src/components/button";--import { formatDate } from "@/lib/utils";-import {- CardContainer,- CardDescription,- CardHeader,- CardIcon,- CardTitle,-} from "./card";--export function LatestChangelogs() {- const latestChangelogs = allChangelogs- .sort((a, b) => (a.publishedAt > b.publishedAt ? -1 : 1))- .slice(0, 4);-- return (- <CardContainer>- <CardHeader>- <CardIcon icon="zap" />- <CardTitle>We ship</CardTitle>- <CardDescription>- Check out the changelog to see our latest features.- </CardDescription>- </CardHeader>- <ul className="mx-auto w-full max-w-xs">- {latestChangelogs.map((changelog) => (- <li- key={changelog.slug}- className="group relative grid gap-2 border-accent border-l-2 px-4 py-2"- >- <Link href={`/changelog/${changelog.slug}`}>- <div className="-left-1.5 absolute top-4 h-2.5 w-2.5 rounded-full bg-border group-hover:bg-muted-foreground" />- <p className="text-muted-foreground">- {formatDate(new Date(changelog.publishedAt))}- </p>- <p className="line-clamp-1 font-medium text-lg">- {changelog.title}- </p>- </Link>- </li>- ))}- </ul>- <div className="flex justify-center">- <Button className="rounded-full" asChild>- <Link href="/changelog">Full changelog</Link>- </Button>- </div>- </CardContainer>- );-}diff --git a/apps/web/src/components/marketing/monitor/card.tsx b/apps/web/src/components/marketing/monitor/card.tsxdeleted file mode 100644index 2db3a3744..000000000--- a/apps/web/src/components/marketing/monitor/card.tsx+++ /dev/null@@ -1,42 +0,0 @@-import Link from "next/link";--import { Button } from "@openstatus/ui/src/components/button";--import { cardConfig } from "@/config/features";-import {- CardContainer,- CardContent,- CardFeature,- CardFeatureContainer,- CardHeader,- CardIcon,- CardTitle,-} from "../card";-import { SpeedCheckerButton } from "../speed-checker-button";-import { Globe } from "./globe";--export function MonitoringCard() {- const { icon, title, features } = cardConfig.monitors;- return (- <CardContainer>- <CardHeader>- <CardIcon icon={icon} />- <CardTitle>{title}</CardTitle>- </CardHeader>- <CardContent>- <Globe />- <CardFeatureContainer>- {features?.map((feature, i) => (- <CardFeature key={i} {...feature} />- ))}- <div className="order-first flex items-center justify-center gap-2 text-center md:order-0">- <Button variant="outline" className="rounded-full" asChild>- <Link href="/features/monitoring">Learn more</Link>- </Button>- <SpeedCheckerButton />- </div>- </CardFeatureContainer>- </CardContent>- </CardContainer>- );-}diff --git a/apps/web/src/components/marketing/monitor/globe.tsx b/apps/web/src/components/marketing/monitor/globe.tsxdeleted file mode 100644index c2bfe8fe7..000000000--- a/apps/web/src/components/marketing/monitor/globe.tsx+++ /dev/null@@ -1,161 +0,0 @@-"use client";--import createGlobe from "cobe";-import { useEffect, useRef, useState } from "react";--import { useMediaQuery } from "@/hooks/use-media-query";--const SIZE = 350;--// https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/By_example/Detect_WebGL-function isWebGLContext() {- const canvas = document.createElement("canvas");- const gl =- canvas.getContext("webgl") || canvas.getContext("experimental-webgl");-- return gl instanceof WebGLRenderingContext;-}--export function Globe() {- const canvasRef = useRef<HTMLCanvasElement>(null);- const prefersReducedMotion = useMediaQuery(- "(prefers-reduced-motion: reduce)",- );- const [disabledWebGL, setDisabledWebGL] = useState(false);-- useEffect(() => {- let phi = 0;- if (!canvasRef.current) return;- if (!document) return;- if (!isWebGLContext()) {- setDisabledWebGL(true);- return;- }-- const globe = createGlobe(canvasRef.current, {- devicePixelRatio: 2,- width: SIZE * 2,- height: SIZE * 2,- phi: 0,- theta: 0,- dark: 1,- diffuse: 1.2,- mapSamples: 16000,- mapBrightness: 6,- baseColor: [0.3, 0.3, 0.3],- markerColor: [1, 1, 1],- glowColor: [1, 1, 1],- markers: [- // AMS- { location: [52.3676, 4.9041], size: 0.05 },- // IAD- { location: [39.0438, -77.4874], size: 0.05 },- // JNB- { location: [-26.2041, 28.0473], size: 0.05 },- // HKG- { location: [22.3193, 114.1694], size: 0.05 },- // SYD- { location: [-33.8688, 151.2093], size: 0.05 },- // GRU- { location: [-23.5558, -46.6396], size: 0.05 },- // ARN- { location: [59.6519, 17.9186], size: 0.05 },- // ATL- { location: [33.6407, -84.4277], size: 0.05 },- // BOG- { location: [4.711, -74.0721], size: 0.05 },- // BOM- { location: [19.0896, 72.8656], size: 0.05 },- // CDG- { location: [49.0097, 2.5479], size: 0.05 },- // DEN- { location: [39.8561, -104.6737], size: 0.05 },- // DFW- { location: [32.8998, -97.0403], size: 0.05 },- // EWR- { location: [40.6895, -74.1745], size: 0.05 },- // EZE- { location: [-34.8226, -58.5336], size: 0.05 },- // FRA- { location: [50.0349, 8.5622], size: 0.05 },- // GDI- { location: [20.6752, -103.34], size: 0.05 },- // LAX- { location: [33.9416, -118.4085], size: 0.05 },- // MAD- { location: [40.4168, -3.7038], size: 0.05 },- // MIA- { location: [25.7617, -80.1918], size: 0.05 },- // NRT- { location: [35.6895, 139.6917], size: 0.05 },- // ORD- { location: [41.9742, -87.9073], size: 0.05 },- // OTP- { location: [44.4268, 26.1025], size: 0.05 },- // PHX- { location: [33.4484, -112.074], size: 0.05 },- // QRO- { location: [20.5881, -100.3899], size: 0.05 },- // SCL- { location: [-33.4489, -70.6693], size: 0.05 },- // SEA- { location: [47.6062, -122.3321], size: 0.05 },- // SIN- { location: [1.3521, 103.8198], size: 0.05 },- // SJC- { location: [37.3541, -121.9552], size: 0.05 },- // WAW- { location: [52.2297, 21.0122], size: 0.05 },- // YUL- { location: [45.5017, -73.5673], size: 0.05 },- // YYZ- { location: [43.6511, -79.347], size: 0.05 },- ],- onRender: (state) => {- // Called on every animation frame.- // `state` will be an empty object, return updated params.- if (!prefersReducedMotion) {- state.phi = phi;- phi += 0.003;- }- },- });-- setTimeout(() => {- const canvas = canvasRef.current;- if (!canvas) return;- canvas.style.opacity = "1";- });-- return () => {- globe.destroy();- };- }, [prefersReducedMotion]);-- if (disabledWebGL) {- return (- <div className="flex items-center justify-center">- <p className="text-muted-foreground text-sm">- <span className="font-semibold">Hint</span>: enable{" "}- <span className="font-semibold">WebGL</span> to render the globe.- </p>- </div>- );- }-- return (- <div className="flex justify-center">- <canvas- ref={canvasRef}- style={{- width: SIZE,- height: SIZE,- maxWidth: "100%",- aspectRatio: 1,- opacity: 0,- transition: "opacity 1s ease",- }}- />- </div>- );-}diff --git a/apps/web/src/components/marketing/partners.tsx b/apps/web/src/components/marketing/partners.tsxdeleted file mode 100644index 6f9d25e9c..000000000--- a/apps/web/src/components/marketing/partners.tsx+++ /dev/null@@ -1,63 +0,0 @@-import { ArrowUpRight } from "lucide-react";--import { Documenso } from "@/components/svg/documenso";-import { Hanko } from "@/components/svg/hanko";-import { Midday } from "@/components/svg/midday";--export function Partners() {- return (- <div className="grid gap-4">- <h3 className="text-center font-cal text-muted-foreground text-sm">- Trusted By- </h3>- <div className="grid grid-cols-2 gap-8 sm:grid-cols-4 sm:gap-16">- <div className="flex items-center justify-center">- <a- href="https://status.hanko.io"- target="_blank"- rel="noreferrer"- className="group inline-flex items-center justify-center"- >- <Hanko className="h-6 w-15 sm:h-8 sm:w-24" />- <ArrowUpRight className="ml-1 h-4 w-4 shrink-0 text-muted-foreground group-hover:text-foreground" />- </a>- </div>- <div className="flex items-center justify-center">- <a- href="https://status.documenso.com"- target="_blank"- rel="noreferrer"- className="group inline-flex items-center justify-center"- >- <Documenso className="h-6 w-24 sm:h-8 sm:w-32" />- <ArrowUpRight className="ml-1 h-4 w-4 shrink-0 text-muted-foreground group-hover:text-foreground" />- </a>- </div>- <div className="flex items-center justify-center">- <a- href="https://status.midday.ai"- target="_blank"- rel="noreferrer"- className="group inline-flex items-center justify-center"- >- <Midday className="h-6 w-24 sm:h-8 sm:w-24" />- <ArrowUpRight className="ml-1 h-4 w-4 shrink-0 text-muted-foreground group-hover:text-foreground" />- </a>- </div>- <div className="flex items-center justify-center">- <p>- <a- href="https://status.cal.com"- target="_blank"- rel="noreferrer"- className="group inline-flex items-center justify-center"- >- <span className="font-cal text-2xl">Cal.com</span>- <ArrowUpRight className="ml-1 h-4 w-4 shrink-0 text-muted-foreground group-hover:text-foreground" />- </a>- </p>- </div>- </div>- </div>- );-}diff --git a/apps/web/src/components/marketing/pricing/enterprice-plan.tsx b/apps/web/src/components/marketing/pricing/enterprice-plan.tsxdeleted file mode 100644index 88a1c5f66..000000000--- a/apps/web/src/components/marketing/pricing/enterprice-plan.tsx+++ /dev/null@@ -1,48 +0,0 @@-import { Button } from "@openstatus/ui/src/components/button";-import { CheckIcon } from "lucide-react";--const features = [- "Custom Integration",- "Custom Limits",- "Custom Support",- "Custom regions",- "SSO/SAML",- "BYOC (Bring Your Own Cloud)",-];--export function EnterpricePlan() {- return (- <div>- <p className="mb-2 font-cal text-2xl">Enterprise</p>- <p className="text-muted-foreground">If you are looking for:</p>- <div className="my-4 grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-3">- {features.map((feature) => (- <div key={feature} className="flex items-center">- <CheckIcon className="mr-1.5 h-4 w-4 shrink-0" />- <span className="text-foreground text-sm">{feature}</span>- </div>- ))}- </div>- <div className="grid grid-cols-1 gap-6 sm:grid-cols-4">- <div className="sm:col-span-3">- <p className="text-muted-foreground">- We can help you with that. Speak with us today to build your own- custom solution that fits your needs.- </p>- </div>- <div className="w-full sm:col-span-1">- <Button className="w-full rounded-full" asChild>- <a- href="https://cal.com/team/openstatus/30min"- target="_blank"- rel="noreferrer"- className="text-nowrap"- >- Talk to us- </a>- </Button>- </div>- </div>- </div>- );-}diff --git a/apps/web/src/components/marketing/pricing/pricing-plan-radio.tsx b/apps/web/src/components/marketing/pricing/pricing-plan-radio.tsxdeleted file mode 100644index 4d382695a..000000000--- a/apps/web/src/components/marketing/pricing/pricing-plan-radio.tsx+++ /dev/null@@ -1,54 +0,0 @@-"use client";--import { allPlans } from "@openstatus/db/src/schema/plan/config";-import { workspacePlans } from "@openstatus/db/src/schema/workspaces/constants";-import { Label } from "@openstatus/ui/src/components/label";-import {- RadioGroup,- RadioGroupItem,-} from "@openstatus/ui/src/components/radio-group";--import { useCookieState } from "@/hooks/use-cookie-state";-import { cn } from "@/lib/utils";-import type { WorkspacePlan } from "@openstatus/db/src/schema";-import { getPriceConfig } from "@openstatus/db/src/schema/plan/utils";--export function PricingPlanRadio({- onChange,-}: {- onChange(value: WorkspacePlan): void;-}) {- const [currency] = useCookieState("x-currency", "USD");- return (- <RadioGroup- defaultValue="team"- className="grid grid-cols-3 gap-4"- onValueChange={onChange}- >- {workspacePlans.map((key) => {- const price = getPriceConfig(key, currency);- return (- <div key={key}>- <RadioGroupItem value={key} id={key} className="peer sr-only" />- <Label- htmlFor={key}- className={cn(- "flex flex-col items-center justify-between rounded-md border-2 border-muted bg-popover p-4 hover:bg-accent hover:text-accent-foreground peer-data-[state=checked]:border-primary [&:has([data-state=checked])]:border-primary",- key === "team" && "bg-muted/50",- )}- >- <span className="text-sm capitalize">{allPlans[key].title}</span>- <span className="mt-1 font-light text-muted-foreground text-xs">- {new Intl.NumberFormat(price.locale, {- style: "currency",- currency: price.currency,- }).format(price.value)}- /month- </span>- </Label>- </div>- );- })}- </RadioGroup>- );-}diff --git a/apps/web/src/components/marketing/pricing/pricing-slider.tsx b/apps/web/src/components/marketing/pricing/pricing-slider.tsxdeleted file mode 100644index 5539ed456..000000000--- a/apps/web/src/components/marketing/pricing/pricing-slider.tsx+++ /dev/null@@ -1,115 +0,0 @@-"use client";--import { cn } from "@/lib/utils";-import { InputWithAddons } from "@openstatus/ui/src/components/input-with-addons";-import { Slider } from "@openstatus/ui/src/components/slider";-import { useMemo, useState } from "react";--const MAX_REGIONS = 35;--const slides = [- {- key: "30s",- value: 2 * 60 * 24 * 30,- },- {- key: "1m",- value: 60 * 24 * 30,- },- {- key: "5m",- value: 12 * 24 * 30,- },- {- key: "10m",- value: 6 * 24 * 30,- },- {- key: "30m",- value: 2 * 24 * 30,- },- {- key: "1h",- value: 24 * 30,- },-];--export function PricingSlider() {- const [index, setIndex] = useState<number[]>([2]);- const [inputValue, setInputValue] = useState<number>(6);- const region = useMemo(() => slides[index[0]].value, [index]);- const total = useMemo(() => region * inputValue, [region, inputValue]);-- return (- <div className="grid gap-4">- <div className="grid gap-8 sm:grid-cols-3">- <div className="grid gap-2 sm:col-span-2">- <h4 className="font-semibold text-2xl">Total requests per monitor</h4>- <p className="text-muted-foreground">- Check how many requests you will make with OpenStatus for a single- monitor over the selected time period.- </p>- </div>- <div className="flex justify-end">- <div className="min-w-36 max-w-min">- <InputWithAddons- type="number"- min={0}- max={MAX_REGIONS}- step={1}- trailing="regions"- className="bg-background text-right font-mono"- value={inputValue}- onChange={(e) =>- setInputValue(Number.parseInt(e.target.value) || 0)- }- />- </div>- </div>- </div>- <div className="grid gap-8 sm:grid-cols-3">- <div className="mt-2 grid w-full gap-2 sm:col-span-2">- <Slider- min={0}- max={slides.length - 1}- step={1}- minStepsBetweenThumbs={1}- value={index}- onValueChange={setIndex}- />- <div className="flex items-center justify-between">- {slides.map((slide, _i) => (- // TODO: make them clickable- <div- key={slide.key}- className={cn(- "text-left font-mono text-muted-foreground text-xs",- )}- >- {slide.key}- </div>- ))}- </div>- </div>- <div>- <p className="mt-0.5 text-right text-sm">- <span className="font-medium font-mono">- {new Intl.NumberFormat("us").format(region).toString()} pings{" "}- </span>{" "}- <span className="font-normal text-muted-foreground">- / region / month- </span>- </p>- </div>- </div>- <div>- <p className="text-right">- <span className="font-medium font-mono text-lg">- {new Intl.NumberFormat("us").format(total).toString()} pings{" "}- </span>{" "}- <span className="font-normal text-muted-foreground">/ month</span>- </p>- </div>- </div>- );-}diff --git a/apps/web/src/components/marketing/pricing/pricing-table.tsx b/apps/web/src/components/marketing/pricing/pricing-table.tsxdeleted file mode 100644index 57c39ab07..000000000--- a/apps/web/src/components/marketing/pricing/pricing-table.tsx+++ /dev/null@@ -1,218 +0,0 @@-"use client";--import { Check, Info } from "lucide-react";-import { useRouter } from "next/navigation";-import { Fragment } from "react";--import { workspacePlans } from "@openstatus/db/src/schema/workspaces/constants";-import type { WorkspacePlan } from "@openstatus/db/src/schema/workspaces/validation";-import { Badge } from "@openstatus/ui/src/components/badge";-import { Button } from "@openstatus/ui/src/components/button";-import {- Table,- TableBody,- TableCaption,- TableCell,- TableHead,- TableHeader,- TableRow,-} from "@openstatus/ui/src/components/table";-import { pricingTableConfig } from "../../../config/pricing-table";--import { LoadingAnimation } from "@/components/loading-animation";-import { useCookieState } from "@/hooks/use-cookie-state";-import { cn } from "@/lib/utils";-import { allPlans } from "@openstatus/db/src/schema/plan/config";-import { getPriceConfig } from "@openstatus/db/src/schema/plan/utils";-import {- Tooltip,- TooltipContent,- TooltipProvider,- TooltipTrigger,-} from "@openstatus/ui";--export function PricingTable({- plans = workspacePlans,- currentPlan,- events,- isLoading,-}: {- plans?: readonly WorkspacePlan[];- currentPlan?: WorkspacePlan;- events?: Partial<Record<WorkspacePlan, () => void>>;- isLoading?: boolean;-}) {- const router = useRouter();- const [currency] = useCookieState("x-currency", "USD");- const selectedPlans = Object.entries(allPlans)- .filter(([key, _]) => plans.includes(key as keyof typeof allPlans))- .map(([key, value]) => ({ key: key as keyof typeof allPlans, ...value }));- return (- <Table className="relative table-fixed">- <TableCaption>- A list to compare the different features by plan.- </TableCaption>- <TableHeader>- <TableRow className="hover:bg-background">- <TableHead className="bg-background px-3 py-3 align-bottom">- Features comparison- </TableHead>- {selectedPlans.map(({ key, ...plan }) => {- const isCurrentPlan = key === currentPlan;- const price = getPriceConfig(key, currency);- console.log(price);- return (- <TableHead- key={key}- className={cn(- "h-auto px-3 py-3 align-bottom text-foreground",- key === "starter" ? "bg-muted/30" : "bg-background",- )}- >- <p className="sticky top-0 mb-2 font-cal text-2xl">- {plan.title}- </p>- <p className="mb-2 font-normal text-muted-foreground text-sm">- {plan.description}- </p>- <p className="mb-2 text-right">- <span className="font-cal text-xl">- {new Intl.NumberFormat(price.locale, {- style: "currency",- currency: price.currency,- }).format(price.value)}- </span>- <span className="font-light text-muted-foreground text-sm">- /month- </span>- </p>- <Button- className="w-full"- size="sm"- variant={key === "starter" ? "default" : "outline"}- onClick={() => {- if (events?.[key]) {- return events[key]?.();- }- // FIXME: how to properly handle `?redirectTo` with unknown workspaceSlug- // to redirect user to `/app/[workspaceSlug]/settings/billing?plan=${key}`?- return router.push(`/app/login?plan=${key}`);- }}- disabled={isCurrentPlan || isLoading}- >- {isLoading ? (- <LoadingAnimation- variant={key === "starter" ? "default" : "inverse"}- />- ) : isCurrentPlan ? (- "Current plan"- ) : (- "Choose"- )}- </Button>- </TableHead>- );- })}- </TableRow>- </TableHeader>- <TableBody>- {Object.entries(pricingTableConfig).map(- ([key, { label, features }], _i) => {- return (- <Fragment key={key}>- <TableRow className="bg-muted/50">- <TableCell- colSpan={selectedPlans.length + 1}- className="p-3 font-medium"- >- {label}- </TableCell>- </TableRow>- {features.map(- ({ label, value, badge, monthly, description }, _i) => {- return (- <TableRow key={key + label}>- <TableCell>- <div className="flex items-center gap-2">- {label}- {badge ? (- <Badge variant="secondary">{badge}</Badge>- ) : null}- {description ? (- <TooltipProvider delayDuration={200}>- <Tooltip>- <TooltipTrigger className="ml-auto data-[state=closed]:text-muted-foreground">- <Info className="h-4 w-4" />- </TooltipTrigger>- <TooltipContent className="w-64">- {description}- </TooltipContent>- </Tooltip>- </TooltipProvider>- ) : null}- </div>- </TableCell>- {selectedPlans.map((plan, _i) => {- const limitValue =- plan.limits[value as keyof typeof plan.limits];- function renderContent() {- if (typeof limitValue === "boolean") {- if (limitValue) {- return (- <Check className="h-4 w-4 text-foreground" />- );- }- return (- <span className="text-muted-foreground/50">- ‐- </span>- );- }- if (typeof limitValue === "number") {- return new Intl.NumberFormat("us")- .format(limitValue)- .toString();- }- if (- Array.isArray(limitValue) &&- limitValue.length > 0 &&- value !== "periodicity"- ) {- return limitValue.length;- }-- if (- value === "periodicity" &&- Array.isArray(limitValue) &&- limitValue.length > 0- ) {- return limitValue[0];- }- return limitValue;- }-- return (- <TableCell- key={key + value + _i}- className={cn(- "p-3 font-mono",- plan.key === "starter" && "bg-muted/30",- )}- >- {renderContent()}- {monthly ? "/mo" : ""}- </TableCell>- );- })}- </TableRow>- );- },- )}- </Fragment>- );- },- )}- </TableBody>- </Table>- );-}diff --git a/apps/web/src/components/marketing/pricing/pricing-wrapper.tsx b/apps/web/src/components/marketing/pricing/pricing-wrapper.tsxdeleted file mode 100644index 3cc02ac0e..000000000--- a/apps/web/src/components/marketing/pricing/pricing-wrapper.tsx+++ /dev/null@@ -1,37 +0,0 @@-"use client";--import { workspacePlans } from "@openstatus/db/src/schema";-import { parseAsStringLiteral, useQueryState } from "nuqs";-import { Suspense } from "react";-import { PricingPlanRadio } from "./pricing-plan-radio";-import { PricingTable } from "./pricing-table";--export function PricingWrapper() {- const [plan, setPlan] = useQueryState(- "plan",- parseAsStringLiteral(workspacePlans).withDefault("team"),- );- return (- <div>- <div className="flex flex-col gap-4 sm:hidden">- <PricingPlanRadio onChange={setPlan} />- <PricingTable plans={[plan]} />- </div>- <div className="hidden sm:block">- <PricingTable />- </div>- </div>- );-}--// REMINDER: https://nextjs.org/docs/messages/missing-suspense-with-csr-bailout-// REMINDER: https://nextjs.org/docs/app/api-reference/functions/use-search-params#static-rendering-// REMINDER: https://nextjs.org/docs/messages/deopted-into-client-rendering-// experiments.missingSuspenseWithCSRBailout: false, within next.config.js-export function PricingWrapperSuspense() {- return (- <Suspense>- <PricingWrapper />- </Suspense>- );-}diff --git a/apps/web/src/components/marketing/speed-checker-button.tsx b/apps/web/src/components/marketing/speed-checker-button.tsxdeleted file mode 100644index e5b8c9f02..000000000--- a/apps/web/src/components/marketing/speed-checker-button.tsx+++ /dev/null@@ -1,15 +0,0 @@-import { cn } from "@/lib/utils";-import { Button, type ButtonProps } from "@openstatus/ui";-import Link from "next/link";-import { Icons } from "../icons";--export function SpeedCheckerButton({ className, ...props }: ButtonProps) {- return (- <Button className={cn("group rounded-full", className)} asChild {...props}>- <Link href="/play/checker">- Speed Checker{" "}- <Icons.gauge className="[&>*:first-child]:-rotate-90 ml-1 h-4 w-4 [&>*:first-child]:origin-[12px_14px] [&>*:first-child]:transition-transform [&>*:first-child]:duration-500 [&>*:first-child]:ease-out group-hover:[&>*:first-child]:rotate-0" />- </Link>- </Button>- );-}diff --git a/apps/web/src/components/marketing/stats.tsx b/apps/web/src/components/marketing/stats.tsxdeleted file mode 100644index 7cafdee68..000000000--- a/apps/web/src/components/marketing/stats.tsx+++ /dev/null@@ -1,42 +0,0 @@-import { Shell } from "@/components/dashboard/shell";-import { env } from "@/env";-import { numberFormatter } from "@/lib/utils";-import { OSTinybird } from "@openstatus/tinybird";--const _tb = new OSTinybird(env.TINY_BIRD_API_KEY);--export async function Stats() {- // const tbLastHourStats = await tb.homeStats({ period: "1h" });- // const tbWeeklyStats = await tb.homeStats({ period: "1w" });- // const totalActiveMonitors = await api.monitor.getTotalActiveMonitors.query();-- return (- <Shell>- <div className="grid grid-cols-1 gap-8 sm:grid-cols-3 sm:gap-16">- <div className="text-center">- <h3 className="font-cal text-3xl">- {/* {numberFormatter(tbWeeklyStats?.data?.[0]?.count || 0)} */}- {numberFormatter(26_000_000)}- </h3>- <p className="font-light text-muted-foreground">Weekly pings</p>- </div>- <div className="text-center">- <h3 className="font-cal text-3xl">- {/* {numberFormatter(tbLastHourStats?.data?.[0]?.count || 0)} */}- {numberFormatter(155_000)}- </h3>- <p className="font-light text-muted-foreground">- Pings in the last hour- </p>- </div>- <div className="text-center">- <h3 className="font-cal text-3xl">- {/* {numberFormatter(totalActiveMonitors)} */}- 3400+- </h3>- <p className="font-light text-muted-foreground">Active monitors</p>- </div>- </div>- </Shell>- );-}diff --git a/apps/web/src/components/marketing/status-page/card.tsx b/apps/web/src/components/marketing/status-page/card.tsxdeleted file mode 100644index fe96a32b5..000000000--- a/apps/web/src/components/marketing/status-page/card.tsx+++ /dev/null@@ -1,31 +0,0 @@-import { cardConfig } from "@/config/features";-import {- CardContainer,- CardContent,- CardFeature,- CardFeatureContainer,- CardHeader,- CardIcon,- CardTitle,-} from "../card";-import { TrackerExample } from "./tracker-example";--export function StatusPageCard() {- const { icon, title, features } = cardConfig.pages;- return (- <CardContainer>- <CardHeader>- <CardIcon icon={icon} />- <CardTitle>{title}</CardTitle>- </CardHeader>- <CardContent dir="rows">- <TrackerExample />- <CardFeatureContainer dir="cols">- {features?.map((feature, i) => (- <CardFeature key={i} {...feature} />- ))}- </CardFeatureContainer>- </CardContent>- </CardContainer>- );-}diff --git a/apps/web/src/components/marketing/status-page/tracker-example.tsx b/apps/web/src/components/marketing/status-page/tracker-example.tsxdeleted file mode 100644index 885d57251..000000000--- a/apps/web/src/components/marketing/status-page/tracker-example.tsx+++ /dev/null@@ -1,53 +0,0 @@-import Link from "next/link";-import { Suspense } from "react";--import { Button } from "@openstatus/ui/src/components/button";--import { Tracker } from "@/components/tracker/tracker";-import { prepareStatusByPeriod } from "@/lib/tb";--export async function TrackerExample() {- return (- <div className="flex w-full flex-col items-center justify-center gap-8">- <div className="mx-auto w-full max-w-md">- <Suspense fallback={<ExampleTrackerFallback />}>- {/* <ExampleTracker /> */}- <MockTracker />- </Suspense>- </div>- <Button className="rounded-full" asChild>- <Link href="/features/status-page">Learn more</Link>- </Button>- </div>- );-}--function ExampleTrackerFallback() {- return <Tracker data={[]} name="Ping" description="Pong" />;-}--export async function ExampleTracker() {- const res = await prepareStatusByPeriod("45d").getData({- monitorId: "1",- });-- if (!res.data) return null;- return <Tracker data={res.data} name="Ping" description="Pong" showValues />;-}--function MockTracker() {- return (- <Tracker data={getPingData()} name="Ping" description="Pong" showValues />- );-}--function getPingData() {- return new Array(45).fill(0).map((_, i) => {- const date = new Date(new Date().getTime() - i * 24 * 60 * 60 * 1000);- return {- day: date.toISOString(),- ok: 8640,- count: 8640,- };- });-}diff --git a/apps/web/src/components/modals/failed-ping-alert-confirmation.tsx b/apps/web/src/components/modals/failed-ping-alert-confirmation.tsxdeleted file mode 100644index 227b9c03f..000000000--- a/apps/web/src/components/modals/failed-ping-alert-confirmation.tsx+++ /dev/null@@ -1,65 +0,0 @@-"use client";--import React from "react";--import type { InsertMonitor } from "@openstatus/db/src/schema";-import {- AlertDialog,- AlertDialogAction,- AlertDialogCancel,- AlertDialogContent,- AlertDialogDescription,- AlertDialogFooter,- AlertDialogHeader,- AlertDialogTitle,-} from "@openstatus/ui/src/components/alert-dialog";--import { LoadingAnimation } from "@/components/loading-animation";--type FailedPingAlertConfirmationProps = {- monitor: InsertMonitor;- pingFailed: boolean;- setPingFailed: React.Dispatch<React.SetStateAction<boolean>>;- onConfirm: (props: InsertMonitor) => Promise<void>;-};--export const FailedPingAlertConfirmation = ({- onConfirm: upsertMonitor,- pingFailed,- setPingFailed,- monitor,-}: FailedPingAlertConfirmationProps) => {- const [isPending, startTransition] = React.useTransition();- const handleSubmit = () => {- startTransition(async () => {- await upsertMonitor(monitor);- setPingFailed(false);- });- };-- return (- <AlertDialog open={pingFailed} onOpenChange={setPingFailed}>- <AlertDialogContent>- <AlertDialogHeader>- <AlertDialogTitle>Are you absolutely sure?</AlertDialogTitle>- <AlertDialogDescription>- The test ping failed. Are you sure you want to continue to save?- </AlertDialogDescription>- </AlertDialogHeader>- <AlertDialogFooter>- <AlertDialogCancel>Cancel</AlertDialogCancel>- <AlertDialogAction- type="submit"- disabled={isPending}- onClick={(e) => {- e.preventDefault();- handleSubmit();- }}- >- {!isPending ? "Confirm" : <LoadingAnimation />}- </AlertDialogAction>- </AlertDialogFooter>- </AlertDialogContent>- </AlertDialog>- );-};diff --git a/apps/web/src/components/monitor-charts/chart-wrapper.tsx b/apps/web/src/components/monitor-charts/chart-wrapper.tsxdeleted file mode 100644index cd80626c5..000000000--- a/apps/web/src/components/monitor-charts/chart-wrapper.tsx+++ /dev/null@@ -1,17 +0,0 @@-import type { Period, Quantile } from "@/lib/monitor/utils";-import type { ResponseGraph } from "@/lib/tb";-import { Chart } from "./chart";-import { groupDataByTimestamp } from "./utils";--export function ChartWrapper({- data,- period,- quantile,-}: {- data: ResponseGraph[];- period: Period;- quantile: Quantile;-}) {- const group = groupDataByTimestamp(data, period, quantile);- return <Chart data={group.data} regions={group.regions} />;-}diff --git a/apps/web/src/components/monitor-charts/chart.tsx b/apps/web/src/components/monitor-charts/chart.tsxdeleted file mode 100644index 7314b1764..000000000--- a/apps/web/src/components/monitor-charts/chart.tsx+++ /dev/null@@ -1,166 +0,0 @@-"use client";--import type { Region } from "@openstatus/db/src/schema/constants";-import {- ChartContainer,- ChartLegend,- ChartLegendContent,- ChartTooltip,- ChartTooltipContent,-} from "@openstatus/ui";-import { CartesianGrid, Line, LineChart, XAxis, YAxis } from "recharts";-import { regionFormatter } from "./utils";--interface ChartProps {- data: { timestamp: string; [key: string]: string | number }[];- regions: string[];-}--export function Chart({ data, regions }: ChartProps) {- return (- <ChartContainer config={chartConfig}>- <LineChart- accessibilityLayer- data={data}- margin={{- left: 12,- right: 12,- }}- >- <ChartLegend- content={<ChartLegendContent className="flex-wrap" />}- verticalAlign="top"- />- <YAxis- tickLine={false}- axisLine={false}- scale="sqrt"- domain={([dataMin, dataMax]) => {- const min = Math.max(Math.abs(dataMin) - 25, 0);- const max = dataMax + 100;- return [min, max];- }}- />- <XAxis- dataKey="timestamp"- tickLine={false}- tickFormatter={(value) => {- return new Date(value).toLocaleDateString("en-US", {- day: "numeric",- month: "short",- hour: "numeric",- minute: "numeric",- });- }}- />- <CartesianGrid vertical={false} />- <ChartTooltip- cursor={false}- content={- <ChartTooltipContent- indicator="line"- labelFormatter={(value) => {- return new Date(value).toLocaleDateString("en-US", {- day: "numeric",- month: "short",- hour: "numeric",- minute: "numeric",- });- }}- formatter={(value, name) => (- <>- <div- className="h-full w-1 shrink-0 self-center rounded-[2px] bg-(--color-bg)"- style={- {- "--color-bg": `var(--color-${name})`,- } as React.CSSProperties- }- />- {/* {chartConfig[name as keyof typeof chartConfig]?.label || name} */}- {regionFormatter(name as Region)}- <div className="ml-auto flex items-baseline gap-0.5 font-medium font-mono text-foreground tabular-nums">- {value}- <span className="font-normal text-muted-foreground">- ms- </span>- </div>- </>- )}- />- }- />- {regions.map((region) => {- return (- <Line- key={region}- dataKey={region}- type="monotone"- stroke={`var(--color-${region})`}- strokeWidth={2}- dot={false}- />- );- })}- </LineChart>- </ChartContainer>- );-}--// basic tailwindcss 500 colors in hsl format-const chartConfig: Record<Region, { label: string; color: string }> = {- ams: { label: "AMS", color: "hsl(217.2 91.2% 59.8%)" },- arn: { label: "ARN", color: "hsl(238.7 83.5% 66.7%)" },- atl: { label: "ATL", color: "hsl(258.3 89.5% 66.3%)" },- bog: { label: "BOG", color: "hsl(270.7 91% 65.1%)" },- bom: { label: "BOM", color: "hsl(292.2 84.1% 60.6%)" },- bos: { label: "BOS", color: "hsl(330.4 81.2% 60.4%)" },- cdg: { label: "CDG", color: "hsl(349.7 89.2% 60.2%)" },- den: { label: "DEN", color: "hsl(215.4 16.3% 46.9%)" },- dfw: { label: "DFW", color: "hsl(220 8.9% 46.1%)" },- ewr: { label: "EWR", color: "hsl(240 3.8% 46.1%)" },- eze: { label: "EZE", color: "hsl(0 0% 45.1%)" },- fra: { label: "FRA", color: "hsl(25 5.3% 44.7%)" },- gdl: { label: "GDL", color: "hsl(0 84.2% 60.2%)" },- gig: { label: "GIG", color: "hsl(24.6 95% 53.1%)" },- gru: { label: "GRU", color: "hsl(37.7 92.1% 50.2%)" },- hkg: { label: "HKG", color: "hsl(45.4 93.4% 47.5%)" },- iad: { label: "IAD", color: "hsl(83.7 80.5% 44.3%)" },- jnb: { label: "JNB", color: "hsl(142.1 70.6% 45.3%)" },- lax: { label: "LAX", color: "hsl(160.1 84.1% 39.4%)" },- lhr: { label: "LHR", color: "hsl(173.4 80.4% 40%)" },- mad: { label: "MAD", color: "hsl(188.7 94.5% 42.7%)" },- mia: { label: "MIA", color: "hsl(198.6 88.7% 48.4%)" },- nrt: { label: "NRT", color: "hsl(217.2 91.2% 59.8%)" },- ord: { label: "ORD", color: "hsl(238.7 83.5% 66.7%)" },- otp: { label: "OTP", color: "hsl(258.3 89.5% 66.3%)" },- phx: { label: "PHX", color: "hsl(270.7 91% 65.1%)" },- qro: { label: "QRO", color: "hsl(292.2 84.1% 60.6%)" },- scl: { label: "SCL", color: "hsl(330.4 81.2% 60.4%)" },- sjc: { label: "SJC", color: "hsl(349.7 89.2% 60.2%)" },- sea: { label: "SEA", color: "hsl(215.4 16.3% 46.9%)" },- sin: { label: "SIN", color: "hsl(220 8.9% 46.1%)" },- syd: { label: "SYD", color: "hsl(240 3.8% 46.1%)" },- waw: { label: "WAW", color: "hsl(0 0% 45.1%)" },- yul: { label: "YUL", color: "hsl(25 5.3% 44.7%)" },- yyz: { label: "YYZ", color: "hsl(0 84.2% 60.2%)" },- koyeb_fra: { label: "FRA (koyeb)", color: "hsl(0 0% 45.1%)" },- koyeb_par: { label: "PAR (koyeb)", color: "hsl(0 0% 45.1%)" },- koyeb_sfo: { label: "SFO (koyeb)", color: "hsl(0 0% 45.1%)" },- koyeb_sin: { label: "SIN (koyeb)", color: "hsl(0 0% 45.1%)" },- koyeb_tyo: { label: "TYO (koyeb)", color: "hsl(0 0% 45.1%)" },- koyeb_was: { label: "WAS (koyeb)", color: "hsl(0 0% 45.1%)" },- "railway_asia-southeast1-eqsg3a": {- label: "asia-southeast1-eqsg3a (railway)",- color: "hsl(0 0% 45.1%)",- },- "railway_europe-west4-drams3a": {- label: "europe-west4-drams3a (railway)",- color: "hsl(0 0% 45.1%)",- },- "railway_us-west2": { label: "us-west2 (railway)", color: "hsl(0 0% 45.1%)" },- "railway_us-east4-eqdc4a": {- label: "us-east4-eqdc4a (railway)",- color: "hsl(0 0% 45.1%)",- },-};diff --git a/apps/web/src/components/monitor-charts/combined-chart-wrapper.tsx b/apps/web/src/components/monitor-charts/combined-chart-wrapper.tsxdeleted file mode 100644index 9b26667fd..000000000--- a/apps/web/src/components/monitor-charts/combined-chart-wrapper.tsx+++ /dev/null@@ -1,105 +0,0 @@-"use client";--import { LineChart } from "lucide-react";-import { useMemo } from "react";--import type { Monitor, PublicMonitor } from "@openstatus/db/src/schema";--import { Toggle } from "@openstatus/ui";--import { columns } from "@/components/data-table/single-region/columns";-import { DataTable } from "@/components/data-table/single-region/data-table";-import { IntervalPreset } from "@/components/monitor-dashboard/interval-preset";-import { QuantilePreset } from "@/components/monitor-dashboard/quantile-preset";-import { RegionsPreset } from "@/components/monitor-dashboard/region-preset";-import type { Interval, Period, Quantile } from "@/lib/monitor/utils";-import { usePreferredSettings } from "@/lib/preferred-settings/client";-import type { PreferredSettings } from "@/lib/preferred-settings/server";-import type { ResponseGraph, ResponseTimeMetricsByRegion } from "@/lib/tb";-import type { Region } from "@openstatus/db/src/schema/constants";-import { Chart } from "./chart";-import { groupDataByTimestamp } from "./utils";--export function CombinedChartWrapper({- data,- period,- quantile,- interval,- regions,- monitor,- isQuantileDisabled,- metricsByRegion,- preferredSettings: defaultPreferredSettings,-}: {- data: ResponseGraph[];- period: Period;- quantile: Quantile;- interval: Interval;- regions: Region[];- monitor: Monitor | PublicMonitor;- isQuantileDisabled: boolean;- metricsByRegion: ResponseTimeMetricsByRegion[];- preferredSettings: PreferredSettings;-}) {- const chartData = useMemo(- () => groupDataByTimestamp(data, period, quantile),- [data, period, quantile],- );-- const [preferredSettings, setPreferredSettings] = usePreferredSettings(- defaultPreferredSettings,- );-- const combinedRegions = preferredSettings?.combinedRegions ?? false;-- const tableData = useMemo(- () =>- regions- .map((region) => ({- region,- data: chartData.data,- metrics: metricsByRegion.find((metrics) => metrics.region === region),- }))- .filter((row) => !!row.metrics),- [regions, chartData, metricsByRegion],- );-- return (- <>- <div className="flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between">- <div className="flex w-full items-end gap-2 sm:flex-row sm:justify-between">- <div className="flex flex-col gap-1.5">- <p className="text-muted-foreground text-xs">Change the view</p>- <Toggle- pressed={combinedRegions}- onPressedChange={(value) => {- setPreferredSettings({ combinedRegions: value });- }}- variant="outline"- className="w-max"- >- <LineChart className="mr-2 h-4 w-4" />- {!combinedRegions ? "Combine regions" : "Split regions"}- </Toggle>- </div>- <RegionsPreset- regions={monitor.regions as Region[]}- selectedRegions={regions}- />- </div>- <div className="flex gap-2">- <QuantilePreset quantile={quantile} disabled={isQuantileDisabled} />- {/* TODO: add a minInterval and disabled for the once having e.g. only 30min monitor.periodicity */}- <IntervalPreset interval={interval} />- </div>- </div>- <div>- {combinedRegions ? (- <Chart data={chartData.data} regions={regions} />- ) : (- <DataTable columns={columns} data={tableData} />- )}- </div>- </>- );-}diff --git a/apps/web/src/components/monitor-charts/region-table.tsx b/apps/web/src/components/monitor-charts/region-table.tsxdeleted file mode 100644index e7b7f4938..000000000--- a/apps/web/src/components/monitor-charts/region-table.tsx+++ /dev/null@@ -1,94 +0,0 @@-import { regionDict } from "@openstatus/regions";-import {- Table,- TableBody,- TableCaption,- TableCell,- TableHead,- TableHeader,- TableRow,-} from "@openstatus/ui/src/components/table";--import { formatNumber } from "@/components/monitor-dashboard/metrics-card";-import type { ResponseTimeMetricsByRegion } from "@/lib/tb";-import type { Region } from "@openstatus/db/src/schema/constants";-import { SimpleChart } from "./simple-chart";--export interface RegionTableProps {- regions: Region[];- data: {- regions: Region[];- data: (Partial<Record<Region, number>> & { timestamp: string })[];- };- metricsByRegion: ResponseTimeMetricsByRegion[];- caption?: string;-}--/**- * @deprecated use the /region/data-table.tsx component instead, this is only used for the content blog posts- */-export function RegionTable({- regions,- data,- metricsByRegion,- caption = "A list of all the selected regions.",-}: RegionTableProps) {- return (- <Table>- <TableCaption>{caption}</TableCaption>- <TableHeader>- <TableRow>- <TableHead className="w-[100px]">Region</TableHead>- <TableHead className="min-w-[300px]">Trend</TableHead>- <TableHead className="w-[50px]">P50</TableHead>- <TableHead className="w-[50px]">P95</TableHead>- <TableHead className="w-[50px]">P99</TableHead>- </TableRow>- </TableHeader>- <TableBody>- {regions- .filter((region) => regions.includes(region))- .map((region) => {- const { code, flag, location } = regionDict[region];- const metrics = metricsByRegion.find((m) => m.region === region);- return (- <TableRow key={region}>- <TableCell>- <p className="text-muted-foreground text-xs">{location}</p>- <p className="font-mono text-xs">- {flag} {code}- </p>- </TableCell>- <TableCell>- <SimpleChart- data={data.data.map((d) => ({- timestamp: d.timestamp,- latency: d[region],- }))}- />- </TableCell>- <TableCell className="text-right font-medium">- {formatNumber(metrics?.p50Latency)}- <span className="font-normal text-muted-foreground text-xs">- ms- </span>- </TableCell>- <TableCell className="text-right font-medium">- {formatNumber(metrics?.p95Latency)}- <span className="font-normal text-muted-foreground text-xs">- ms- </span>- </TableCell>- <TableCell className="text-right font-medium">- {formatNumber(metrics?.p99Latency)}- <span className="font-normal text-muted-foreground text-xs">- ms- </span>- </TableCell>- </TableRow>- );- })}- </TableBody>- </Table>- );-}diff --git a/apps/web/src/components/monitor-charts/simple-chart-wrapper.tsx b/apps/web/src/components/monitor-charts/simple-chart-wrapper.tsxdeleted file mode 100644index e58502e5b..000000000--- a/apps/web/src/components/monitor-charts/simple-chart-wrapper.tsx+++ /dev/null@@ -1,32 +0,0 @@-import type { Period, Quantile } from "@/lib/monitor/utils";-import type { ResponseGraph } from "@/lib/tb";-import type { Region } from "@openstatus/db/src/schema/constants";-import { SimpleChart } from "./simple-chart";-import { groupDataByTimestamp } from "./utils";--export function SimpleChartWrapper({- data,- period,- quantile,- region,-}: {- data: ResponseGraph[];- period: Period;- quantile: Quantile;- region: Region;-}) {- const group = groupDataByTimestamp(data, period, quantile);- return (- <div className="flex items-center gap-2">- <div className="w-24">- <p className="font-mono">{region}</p>- </div>- <SimpleChart- data={group.data.map((d) => ({- timestamp: d.timestamp,- latency: d[region],- }))}- />- </div>- );-}diff --git a/apps/web/src/components/monitor-charts/utils.tsx b/apps/web/src/components/monitor-charts/utils.tsxdeleted file mode 100644index 35af1091d..000000000--- a/apps/web/src/components/monitor-charts/utils.tsx+++ /dev/null@@ -1,78 +0,0 @@-import { getRegionInfo, regionDict } from "@openstatus/regions";--import type { Period, Quantile } from "@/lib/monitor/utils";-import type { ResponseGraph } from "@/lib/tb";-import type { Region } from "@openstatus/db/src/schema/constants";--/**- *- * @param data expects to be sorted by cronTimestamp- * @param period- * @returns- */-export function groupDataByTimestamp(- data: ResponseGraph[],- period: Period,- quantile: Quantile,-) {- let currentTimestamp = 0;- const regions: Record<- string,- { code: string; location: string; flag: string }- > = {};- const _data = data.reduce(- (acc, curr) => {- const { timestamp, region } = curr;- const latency = curr[`${quantile}Latency`];- const { flag, code, location } = getRegionInfo(region);- const fullNameRegion = `${code}`;- regions[fullNameRegion] = { flag, code, location }; // to get the region keys- if (timestamp === currentTimestamp) {- // overwrite last object in acc- const last = acc.pop();- if (last) {- acc.push({- ...last,- [fullNameRegion]: latency,- });- }- } else if (timestamp) {- currentTimestamp = timestamp;- // create new object in acc- acc.push({- timestamp: renderTimestamp(timestamp, period),- [fullNameRegion]: latency,- });- }- return acc;- },- [] as (Partial<Record<Region, number>> & { timestamp: string })[],- );-- // regions are sorted by the flag utf-8 code- return {- regions: Object.keys(regions).sort() as Region[],- data: _data.reverse(),- };-}--/**- * in case we need to change the format of the timestamp- * based on the period- * @param timestamp- * @param period- * @returns- */-export function renderTimestamp(timestamp: number, _period: Period) {- const date = new Date(timestamp);- return date.toISOString();-}--export function dataFormatter(number: number) {- return `${Intl.NumberFormat("us").format(number).toString()}ms`;-}--export function regionFormatter(region: Region) {- const { code, flag } = regionDict[region];- return `${flag} ${code}`;-}diff --git a/apps/web/src/components/monitor-dashboard/button-reset.tsx b/apps/web/src/components/monitor-dashboard/button-reset.tsxdeleted file mode 100644index 7194f4390..000000000--- a/apps/web/src/components/monitor-dashboard/button-reset.tsx+++ /dev/null@@ -1,41 +0,0 @@-"use client";--import { X } from "lucide-react";-import { usePathname, useRouter } from "next/navigation";--import { Button } from "@openstatus/ui/src/components/button";-import {- Tooltip,- TooltipContent,- TooltipProvider,- TooltipTrigger,-} from "@openstatus/ui/src/components/tooltip";--export function ButtonReset() {- const router = useRouter();- const pathname = usePathname();-- return (- <TooltipProvider>- <Tooltip>- <TooltipTrigger asChild>- <Button- onClick={() => {- router.push(pathname);- router.refresh();- }}- variant="ghost"- size="lg"- className="px-3"- >- Reset- <X className="ml-2 h-4 w-4" />- </Button>- </TooltipTrigger>- <TooltipContent>- <p>Reset your filters</p>- </TooltipContent>- </Tooltip>- </TooltipProvider>- );-}diff --git a/apps/web/src/components/monitor-dashboard/date-picker-preset.tsx b/apps/web/src/components/monitor-dashboard/date-picker-preset.tsxdeleted file mode 100644index 0491053f5..000000000--- a/apps/web/src/components/monitor-dashboard/date-picker-preset.tsx+++ /dev/null@@ -1,27 +0,0 @@-"use client";--import { periodFormatter } from "@/lib/monitor/utils";-import type { Period } from "@/lib/monitor/utils";-import { SearchParamsPreset } from "./search-params-preset";--export function DatePickerPreset({- disabled,- defaultValue,- values,-}: {- disabled?: boolean;- defaultValue?: Period;- values: readonly Period[];-}) {- return (- <SearchParamsPreset- disabled={disabled}- defaultValue={defaultValue}- values={values}- searchParam="period"- icon="calendar"- placeholder="Pick a range"- formatter={periodFormatter}- />- );-}diff --git a/apps/web/src/components/monitor-dashboard/interval-preset.tsx b/apps/web/src/components/monitor-dashboard/interval-preset.tsxdeleted file mode 100644index 2f0a7ee6a..000000000--- a/apps/web/src/components/monitor-dashboard/interval-preset.tsx+++ /dev/null@@ -1,46 +0,0 @@-"use client";--import { HelpCircle } from "lucide-react";--import { Label } from "@openstatus/ui/src/components/label";-import {- Popover,- PopoverContent,- PopoverTrigger,-} from "@openstatus/ui/src/components/popover";-import { Separator } from "@openstatus/ui/src/components/separator";--import { intervals } from "@/lib/monitor/utils";-import type { Interval } from "@/lib/monitor/utils";-import { SearchParamsPreset } from "./search-params-preset";--export function IntervalPreset({ interval }: { interval: Interval }) {- return (- <div className="grid gap-1">- <div className="flex items-center gap-1.5">- <Label htmlFor="interval">Interval</Label>- <Popover>- <PopoverTrigger>- <HelpCircle className="h-4 w-4 text-muted-foreground" />- </PopoverTrigger>- <PopoverContent side="top" className="text-sm">- <p>Aggregate and process data at regular time intervals.</p>- <Separator className="my-2" />- <p className="text-muted-foreground">- 30m should be aligned to the beginning of 30-minute intervals for- data analysis and aggregation purposes- </p>- </PopoverContent>- </Popover>- </div>- <SearchParamsPreset- disabled={false}- defaultValue={interval}- values={intervals}- searchParam="interval"- icon="hour-glass"- placeholder="Pick an interval"- />- </div>- );-}diff --git a/apps/web/src/components/monitor-dashboard/metrics-card.tsx b/apps/web/src/components/monitor-dashboard/metrics-card.tsxdeleted file mode 100644index 1d01d02b6..000000000--- a/apps/web/src/components/monitor-dashboard/metrics-card.tsx+++ /dev/null@@ -1,127 +0,0 @@-import type { VariantProps } from "class-variance-authority";-import { cva } from "class-variance-authority";-import { ChevronDown, ChevronUp } from "lucide-react";--import { Badge } from "@openstatus/ui/src/components/badge"; // from @/components/ui/badge--import { cn } from "@/lib/utils";--const metricsCardVariants = cva("flex flex-col px-3 py-2 border rounded-lg", {- variants: {- variant: {- default: "border-transparent",- positive:- "border-green-500/20 bg-green-500/10 [&>p]:text-green-600 dark:[&>p]:text-green-400",- negative:- "border-red-500/20 bg-red-500/10 [&>p]:text-red-600 dark:[&>p]:text-red-400",- neutral: "border-border/80 bg-muted/30",- warning:- "border-yellow-500/20 bg-yellow-500/10 [&>p]:text-yellow-600 dark:[&>p]:text-yellow-400",- info: "border-blue-500/20 bg-blue-500/10 [&>p]:text-blue-600 dark:[&>p]:text-blue-400",- },- fading: {- true: "opacity-70",- },- },- defaultVariants: {- variant: "default",- },-});--export interface MetricsCardProps- extends VariantProps<typeof metricsCardVariants> {- title: string;- value?: number | null;- suffix: string;- /**- * Value indicating the change in the metric compared to the previous period.- * e.g. 1 means no change, 2 means a 100% increase, 0.5 means a 50% decrease.- */- delta?: number;- /**- * If true, the card will have a fading effect. Useful for cards that are- * not yet ready to be displayed or data is empty.- */- fading?: boolean;- className?: string;-}--export function MetricsCard({- title,- value,- suffix,- delta,- className,- variant,- fading,-}: MetricsCardProps) {- return (- <div className={cn(metricsCardVariants({ variant, fading, className }))}>- <p className="font-light text-muted-foreground text-sm uppercase">- {title}- </p>- <div>- <div className="flex flex-1 flex-wrap items-center gap-2">- <p className="flex">- <code className="mr-1 font-mono font-semibold text-xl empty:mr-0">- {formatNumber(value)}- </code>- <span className="self-center text-muted-foreground text-xs">- {suffix}- </span>- </p>- {delta || delta === 0 ? <DeltaBadge value={delta} /> : null}- </div>- </div>- </div>- );-}--export function formatNumber(value?: number | null) {- return typeof value === "number"- ? new Intl.NumberFormat(undefined, {- maximumFractionDigits: 2, // limit to max. 2 decimal places- }).format(value)- : null;-}--// --- DeltaBadge.tsx -----const badgeVariants = cva("px-1.5 text-[10px]", {- variants: {- variant: {- default: "border-border",- increase:- "border-red-500/20 bg-red-500/10 hover:bg-red-500/10 text-red-500",- decrease:- "border-green-500/20 bg-green-500/10 hover:bg-green-500/10 text-green-500",- },- },- defaultVariants: {- variant: "default",- },-});--function DeltaBadge({- value,- decimal = 1,-}: {- value: number;- decimal?: number;-}) {- const round = 10 ** decimal; // 10^1 = 10 (1 decimal), 10^2 = 100 (2 decimals), etc.- const percentage = Math.round((value - 1) * 100 * round) / round;-- const variant: VariantProps<typeof badgeVariants>["variant"] =- percentage > 0 ? "increase" : percentage < 0 ? "decrease" : "default";-- return (- <Badge variant="secondary" className={badgeVariants({ variant })}>- <span>- {percentage > 0 ? <ChevronUp className="mr-0.5 h-3 w-3" /> : null}- {percentage < 0 ? <ChevronDown className="mr-0.5 h-3 w-3" /> : null}- </span>- {Math.abs(percentage)}%- </Badge>- );-}diff --git a/apps/web/src/components/monitor-dashboard/metrics.tsx b/apps/web/src/components/monitor-dashboard/metrics.tsxdeleted file mode 100644index 7cd91cfe2..000000000--- a/apps/web/src/components/monitor-dashboard/metrics.tsx+++ /dev/null@@ -1,122 +0,0 @@-import { formatDistanceToNowStrict } from "date-fns";-import Link from "next/link";--import { periodFormatter } from "@/lib/monitor/utils";-import type { Period } from "@/lib/monitor/utils";-import type { ResponseTimeMetrics } from "@/lib/tb";-import { MetricsCard } from "./metrics-card";--const metricsOrder = [- "p50Latency",- "p75Latency",- "p90Latency",- "p95Latency",- "p99Latency",-] as const;--export function Metrics({- metrics,- period,- showErrorLink,-}: {- metrics?: ResponseTimeMetrics[];- period: Period;- showErrorLink?: boolean;-}) {- if (!metrics || metrics.length === 0) return null;-- const [current, last] = metrics.sort((a, b) =>- (a.lastTimestamp || 0) - (b.lastTimestamp || 0) < 0 ? 1 : -1,- );-- const isEmpty = current.count === 0;-- const uptime = isEmpty ? 1 : current.ok / current.count;- const lastUptime = last.ok / last.count;-- const failures = current.count === 0 ? 0 : current.count - current.ok;- const lastFailures = last.count - last.ok;-- const distance = current.lastTimestamp- ? formatDistanceToNowStrict(new Date(current.lastTimestamp))- : undefined;-- return (- <div className="@container grid gap-6">- <div className="grid @3xl:grid-cols-5 @xl:grid-cols-4 grid-cols-2 @3xl:gap-6 gap-4">- <MetricsCard- title="uptime"- value={uptime * 100}- suffix="%"- delta={!isEmpty ? lastUptime / uptime : undefined}- variant="positive"- />- <MetricsCard- title="fails"- value={failures}- suffix="#"- delta={- !isEmpty- ? lastFailures === 0- ? 1- : failures / lastFailures- : undefined- }- variant="negative"- />- {distance ? (- <MetricsCard- title="last ping"- value={Number.parseInt(distance.split(" ")[0])}- suffix={`${distance.split(" ")[1]} ago`}- variant="neutral"- />- ) : null}- <MetricsCard title="total pings" value={current.count} suffix="#" />- </div>- <div className="grid gap-4">- <div className="grid @3xl:grid-cols-5 @xl:grid-cols-4 grid-cols-2 @3xl:gap-6 gap-4">- {metricsOrder.map((key) => {- const value = current[key];- const lastValue = last[key];- const delta = value && lastValue ? value / lastValue : undefined;- return (- <MetricsCard- key={key}- title={key.replace("Latency", "")}- value={value || 0}- suffix="ms"- delta={delta}- fading={isEmpty}- />- );- })}- </div>- <div className="grid gap-2">- <p className="text-muted-foreground text-xs">- Metrics calculated from the{" "}- <span className="font-medium lowercase">- {periodFormatter(period)}- </span>{" "}- over all the regions and compared with the previous period.- </p>- {/* restricted to max 3d as we only support it in the list -> TODO: add more periods */}- {showErrorLink &&- failures > 0 &&- ["1h", "1d", "3d", "7d"].includes(period) ? (- <p className="text-destructive text-xs">- The monitor had {failures} failed ping(s). See more in the{" "}- <Link- href={`./data?error=true&period=${period}`}- className="underline underline-offset-4 hover:no-underline"- >- response logs- </Link>- .- </p>- ) : null}- </div>- </div>- </div>- );-}diff --git a/apps/web/src/components/monitor-dashboard/pause-button.tsx b/apps/web/src/components/monitor-dashboard/pause-button.tsxdeleted file mode 100644index 42e8d12a5..000000000--- a/apps/web/src/components/monitor-dashboard/pause-button.tsx+++ /dev/null@@ -1,56 +0,0 @@-"use client";--import { PauseCircle, PlayCircle } from "lucide-react";-import { useRouter } from "next/navigation";-import { useTransition } from "react";--import type { Monitor } from "@openstatus/db/src/schema";-import { Button } from "@openstatus/ui/src/components/button";--import { LoadingAnimation } from "@/components/loading-animation";-import { toastAction } from "@/lib/toast";-import { api } from "@/trpc/client";--export function PauseButton({ monitor }: { monitor: Monitor }) {- const [isPending, startTransition] = useTransition();- const router = useRouter();-- async function toggle() {- startTransition(async () => {- try {- await api.monitor.update.mutate({- ...monitor,- active: !monitor.active,- });- toastAction("success");- router.refresh();- } catch {- toastAction("error");- }- });- }-- return (- <Button- variant={monitor.active ? "outline" : "default"}- onClick={toggle}- disabled={isPending}- >- {isPending ? (- <LoadingAnimation variant={monitor.active ? "inverse" : "default"} />- ) : (- <>- {monitor.active ? (- <>- <PauseCircle className="mr-2 h-4 w-4" /> Pause- </>- ) : (- <>- <PlayCircle className="mr-2 h-4 w-4" /> Resume- </>- )}- </>- )}- </Button>- );-}diff --git a/apps/web/src/components/monitor-dashboard/quantile-preset.tsx b/apps/web/src/components/monitor-dashboard/quantile-preset.tsxdeleted file mode 100644index 0960cbdd7..000000000--- a/apps/web/src/components/monitor-dashboard/quantile-preset.tsx+++ /dev/null@@ -1,58 +0,0 @@-"use client";--import { HelpCircle } from "lucide-react";--import { Label } from "@openstatus/ui/src/components/label";-import {- Popover,- PopoverContent,- PopoverTrigger,-} from "@openstatus/ui/src/components/popover";-import { Separator } from "@openstatus/ui/src/components/separator";--import { quantiles } from "@/lib/monitor/utils";-import type { Quantile } from "@/lib/monitor/utils";-import { SearchParamsPreset } from "./search-params-preset";--export function QuantilePreset({- quantile,- disabled,-}: {- quantile: Quantile;- disabled?: boolean;-}) {- return (- <div className="grid gap-1">- <div className="flex items-center gap-1.5">- <Label htmlFor="quantile">Quantile</Label>- <Popover>- <PopoverTrigger>- <HelpCircle className="h-4 w-4 text-muted-foreground" />- </PopoverTrigger>- <PopoverContent side="top" className="text-sm">- <p>- Defines a statistical measure representing a specific percentile.- </p>- <Separator className="my-2" />- <p className="text-muted-foreground">- The p95 quantile represents the value below which 95% of the data- points in a dataset fall, indicating a high percentile level- within the distribution.- </p>- </PopoverContent>- </Popover>- </div>- <SearchParamsPreset- disabled={disabled}- defaultValue={quantile}- values={quantiles}- searchParam="quantile"- icon="candlestick-chart"- placeholder="Pick a quantile"- formatter={(value: Quantile) => (- <span className="uppercase">{value}</span>- )}- />- </div>- );-}diff --git a/apps/web/src/components/monitor-dashboard/region-preset.tsx b/apps/web/src/components/monitor-dashboard/region-preset.tsxdeleted file mode 100644index e72d682e7..000000000--- a/apps/web/src/components/monitor-dashboard/region-preset.tsx+++ /dev/null@@ -1,168 +0,0 @@-"use client";--import { Check, ChevronsUpDown, Globe2 } from "lucide-react";--import {- type Continent,- type RegionInfo,- formatRegionCode,- regionDict,-} from "@openstatus/regions";-import { Button, type ButtonProps } from "@openstatus/ui/src/components/button";-import {- Command,- CommandEmpty,- CommandGroup,- CommandInput,- CommandItem,- CommandList,- CommandSeparator,-} from "@openstatus/ui/src/components/command";-import {- Popover,- PopoverContent,- PopoverTrigger,-} from "@openstatus/ui/src/components/popover";--import { IconCloudProvider } from "@/components/icon-cloud-provider";-import { cn } from "@/lib/utils";-import {- type Region,- monitorRegions,-} from "@openstatus/db/src/schema/constants";-import { parseAsArrayOf, parseAsStringLiteral, useQueryState } from "nuqs";--interface RegionsPresetProps extends ButtonProps {- regions: Region[];- selectedRegions: Region[];-}--export function RegionsPreset({- regions,- selectedRegions,- className,- ...props-}: RegionsPresetProps) {- // TODO: check with the RSC pages- const [selected, setSelected] = useQueryState(- "regions",- parseAsArrayOf(parseAsStringLiteral(monitorRegions))- .withDefault(selectedRegions.filter((r) => regions?.includes(r)))- .withOptions({- shallow: false, // required for SSR to call the RSC- }),- );-- const allSelected = regions.every((r) => selected.includes(r));-- const regionsByContinent = regions- .reduce(- (prev, curr) => {- const region = regionDict[curr];-- const item = prev.find((r) => r.continent === region.continent);-- if (item) {- item.data.push(region);- } else {- prev.push({- continent: region.continent,- data: [region],- });- }-- return prev;- },- [] as { continent: Continent; data: RegionInfo[] }[],- )- .sort((a, b) => a.continent.localeCompare(b.continent));-- return (- <Popover>- <PopoverTrigger asChild>- <Button- size="lg"- variant="outline"- className={cn("px-3 shadow-none", className)}- {...props}- >- <Globe2 className="mr-2 h-4 w-4" />- <span className="whitespace-nowrap">- <code>{selected.length}</code> Regions- </span>- <ChevronsUpDown className="ml-2 h-4 w-4 shrink-0 opacity-50" />- </Button>- </PopoverTrigger>- <PopoverContent className="w-80 p-0" align="start">- <Command- // FIXME: keywords not taken - it would be great to search for "Europe"- // filter={(value, search, keywords) => {- // const extendValue = `${value} ${keywords?.join(" ") || ""}`;- // if (extendValue.includes(search)) return 1;- // return 0;- // }}- >- <CommandInput placeholder="Search regions..." />- <CommandList className="max-h-64">- <CommandEmpty>No results found.</CommandEmpty>- <CommandGroup>- <CommandItem- onSelect={() => setSelected(allSelected ? [] : regions)}- >- {allSelected ? "Clear all" : "Select all"}- </CommandItem>- </CommandGroup>- <CommandSeparator />- {regionsByContinent.map(({ continent, data }) => {- return (- <CommandGroup key={continent} heading={continent}>- {data.map((region) => {- const { code, flag, location, continent } = region;- const isSelected = selected.includes(code);- return (- <CommandItem- key={code}- value={code}- keywords={[code, location, continent]}- onSelect={(checked) => {- setSelected((prev) =>- !prev.includes(checked as Region)- ? [...prev, code]- : prev.filter((r) => r !== code),- );- }}- >- <div- className={cn(- "mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",- isSelected- ? "bg-primary text-primary-foreground"- : "opacity-50 [&_svg]:invisible",- )}- >- <Check className={cn("h-4 w-4")} />- </div>- <div className="flex w-full items-center gap-1">- <span>- <IconCloudProvider provider={region.provider} />- </span>- <span>- {formatRegionCode(code)}{" "}- <span className="truncate text-muted-foreground">- {location}- </span>- </span>- <span>{flag}</span>- </div>- </CommandItem>- );- })}- </CommandGroup>- );- })}- </CommandList>- </Command>- </PopoverContent>- </Popover>- );-}diff --git a/apps/web/src/components/monitor-dashboard/response-details.tsx b/apps/web/src/components/monitor-dashboard/response-details.tsxdeleted file mode 100644index dd86c5c61..000000000--- a/apps/web/src/components/monitor-dashboard/response-details.tsx+++ /dev/null@@ -1,88 +0,0 @@-// TODO: move to `ping-response-analysis`--import {- Tabs,- TabsContent,- TabsList,- TabsTrigger,-} from "@/components/dashboard/tabs";-import { RegionInfo } from "@/components/ping-response-analysis/region-info";-import { ResponseHeaderTable } from "@/components/ping-response-analysis/response-header-table";-import { ResponseTimingTable } from "@/components/ping-response-analysis/response-timing-table";-import { prepareGetByPeriod } from "@/lib/tb";--interface ResponseDetailsProps {- monitorId: string;- url?: string | undefined;- region?: string;- cronTimestamp?: number | undefined;- type: "http" | "tcp";-}--export async function ResponseDetails({- type,- ...props-}: ResponseDetailsProps) {- // FIXME: this has to be dynamic- const details = await prepareGetByPeriod("30d", type).getData(props);-- if (!details.data || details.data.length === 0) return null;-- const response = details.data[0];-- // FIXME: return the proper infos regarding TCP - but there are non right now anyways- if (response.type === "tcp") return null;-- const { timing, headers, message, statusCode } = response;-- const defaultValue = headers ? "headers" : timing ? "timing" : "message";-- return (- <div className="grid gap-8">- <RegionInfo- check={{- latency: response.latency || 0,- region: response.region,- status: response.statusCode || 0,- timestamp: response.cronTimestamp || 0,- }}- />- <Tabs defaultValue={defaultValue}>- <TabsList>- <TabsTrigger value="headers" disabled={!headers}>- Headers- </TabsTrigger>- <TabsTrigger value="timing" disabled={!timing}>- Timing- </TabsTrigger>- <TabsTrigger value="message" disabled={!message}>- Message- </TabsTrigger>- </TabsList>- <TabsContent value="headers">- {headers ? (- <ResponseHeaderTable headers={headers} status={statusCode || 0} />- ) : null}- </TabsContent>- <TabsContent value="timing">- {timing ? <ResponseTimingTable timing={timing} hideInfo /> : null}- </TabsContent>- <TabsContent value="message">- {message ? (- <div>- <pre- className="text-wrap rounded-md bg-muted p-4 text-sm"- style={{ textWrap: "wrap" }}- >- {message}- </pre>- <p className="mt-4 text-center text-muted-foreground text-sm">- Response Message- </p>- </div>- ) : null}- </TabsContent>- </Tabs>- </div>- );-}diff --git a/apps/web/src/components/monitor-dashboard/search-params-preset.tsx b/apps/web/src/components/monitor-dashboard/search-params-preset.tsxdeleted file mode 100644index 75ea072b0..000000000--- a/apps/web/src/components/monitor-dashboard/search-params-preset.tsx+++ /dev/null@@ -1,64 +0,0 @@-"use client";--import {- Select,- SelectContent,- SelectItem,- SelectTrigger,- SelectValue,-} from "@openstatus/ui/src/components/select";-import type { ReactNode } from "react";--import { Icons } from "@/components/icons";-import type { ValidIcon } from "@/components/icons";-import { cn } from "@/lib/utils";-import { useQueryState } from "nuqs";--export function SearchParamsPreset<T extends string>({- disabled,- defaultValue,- values,- searchParam,- icon,- placeholder,- formatter,- className,-}: {- disabled?: boolean;- defaultValue?: T;- values: readonly T[] | T[];- searchParam: string;- icon?: ValidIcon;- placeholder?: string;- formatter?(value: T): ReactNode;- className?: string;-}) {- const [value, setValue] = useQueryState(searchParam, { shallow: false });-- const Icon = icon ? Icons[icon] : undefined;-- return (- <Select- defaultValue={defaultValue}- value={value || defaultValue}- onValueChange={setValue}- disabled={disabled}- >- <SelectTrigger- className={cn("w-[150px] bg-background text-left", className)}- >- <span className="flex items-center gap-2">- {Icon ? <Icon className="h-4 w-4" /> : null}- <SelectValue placeholder={placeholder} />- </span>- </SelectTrigger>- <SelectContent>- {values.map((value) => (- <SelectItem key={value} value={value}>- {formatter?.(value) || value}- </SelectItem>- ))}- </SelectContent>- </Select>- );-}diff --git a/apps/web/src/components/monitor/job-type-icon-with-tooltip.tsx b/apps/web/src/components/monitor/job-type-icon-with-tooltip.tsxdeleted file mode 100644index dcb1a4303..000000000--- a/apps/web/src/components/monitor/job-type-icon-with-tooltip.tsx+++ /dev/null@@ -1,46 +0,0 @@-import { cn } from "@/lib/utils";-import type { Monitor } from "@openstatus/db/src/schema";-import {- Tooltip,- TooltipContent,- TooltipProvider,- TooltipTrigger,-} from "@openstatus/ui/src/components/tooltip";-import { type IconProps, Icons, type ValidIcon } from "../icons";--// TODO: extend once we have more job types-function getIcon(jobType: Monitor["jobType"]): ValidIcon {- switch (jobType) {- case "http":- return "globe";- case "tcp":- return "server";- default:- return "cog";- }-}--interface JobTypeIconWithTooltipProps extends IconProps {- jobType: Monitor["jobType"];-}--export function JobTypeIconWithTooltip({- jobType,- className,- ...props-}: JobTypeIconWithTooltipProps) {- const icon = getIcon(jobType);- const Icon = Icons[icon];- return (- <TooltipProvider delayDuration={50}>- <Tooltip>- <TooltipTrigger>- <Icon className={cn("h-3 w-3", className)} {...props} />- </TooltipTrigger>- <TooltipContent>- <p className="uppercase">{jobType}</p>- </TooltipContent>- </Tooltip>- </TooltipProvider>- );-}diff --git a/apps/web/src/components/monitor/notification-icon-with-tooltip.tsx b/apps/web/src/components/monitor/notification-icon-with-tooltip.tsxdeleted file mode 100644index e897959e7..000000000--- a/apps/web/src/components/monitor/notification-icon-with-tooltip.tsx+++ /dev/null@@ -1,32 +0,0 @@-import type { Notification } from "@openstatus/db/src/schema";-import {- Tooltip,- TooltipContent,- TooltipProvider,- TooltipTrigger,-} from "@openstatus/ui/src/components/tooltip";--import { Bell, BellOff } from "lucide-react";--export function NotificationIconWithTooltip({- notifications,-}: {- notifications?: Notification[];-}) {- return (- <TooltipProvider>- <Tooltip delayDuration={200}>- <TooltipTrigger className="text-muted-foreground">- {notifications?.length ? (- <Bell className="h-4 w-4" />- ) : (- <BellOff className="h-4 w-4" />- )}- </TooltipTrigger>- <TooltipContent side="top" className="flex gap-2">- {`${notifications?.length || "No"} notification channels`}- </TooltipContent>- </Tooltip>- </TooltipProvider>- );-}diff --git a/apps/web/src/components/monitor/status-code-badge.tsx b/apps/web/src/components/monitor/status-code-badge.tsxdeleted file mode 100644index 0cc939bb6..000000000--- a/apps/web/src/components/monitor/status-code-badge.tsx+++ /dev/null@@ -1,28 +0,0 @@-import { Badge } from "@openstatus/ui/src/components/badge";--import { cn } from "@/lib/utils";--export function StatusCodeBadge({ statusCode }: { statusCode: number }) {- const yellow = String(statusCode).startsWith("1");- const green = String(statusCode).startsWith("2");- const blue = String(statusCode).startsWith("3");- const rose =- String(statusCode).startsWith("4") || String(statusCode).startsWith("5");- return (- <Badge- variant="outline"- className={cn("font-mono", {- "border-green-500/20 bg-green-500/10 text-green-800 dark:text-green-300":- green,- "border-blue-500/20 bg-blue-500/10 text-blue-800 dark:text-blue-300":- blue,- "border-rose-500/20 bg-rose-500/10 text-rose-800 dark:text-rose-300":- rose,- "border-yellow-500/20 bg-yellow-500/10 text-yellow-800 dark:text-yellow-300":- yellow,- })}- >- {statusCode}- </Badge>- );-}diff --git a/apps/web/src/components/monitor/status-dot-with-tooltip.tsx b/apps/web/src/components/monitor/status-dot-with-tooltip.tsxdeleted file mode 100644index e979e3572..000000000--- a/apps/web/src/components/monitor/status-dot-with-tooltip.tsx+++ /dev/null@@ -1,33 +0,0 @@-import {- Tooltip,- TooltipContent,- TooltipProvider,- TooltipTrigger,-} from "@openstatus/ui/src/components/tooltip";--import type { StatusDotProps } from "./status-dot";-import { StatusDot } from "./status-dot";--export interface StatusDotWithTooltipProps extends StatusDotProps {}--export function StatusDotWithTooltip(props: StatusDotWithTooltipProps) {- const { active, maintenance, status } = props;- return (- <TooltipProvider delayDuration={50}>- <Tooltip>- <TooltipTrigger>- <StatusDot {...props} />- </TooltipTrigger>- <TooltipContent>- {(() => {- if (!active) return "Monitor is inactive";- if (maintenance) return "Monitor in maintenance";- if (status === "error") return "Monitor has failed";- if (status === "degraded") return "Monitor is degraded";- return "Monitor is active";- })()}- </TooltipContent>- </Tooltip>- </TooltipProvider>- );-}diff --git a/apps/web/src/components/monitor/status-dot.tsx b/apps/web/src/components/monitor/status-dot.tsxdeleted file mode 100644index a3ac3a9ec..000000000--- a/apps/web/src/components/monitor/status-dot.tsx+++ /dev/null@@ -1,48 +0,0 @@-import type { Monitor } from "@openstatus/db/src/schema";--export interface StatusDotProps {- active?: Monitor["active"];- status?: Monitor["status"];- maintenance?: boolean;-}--export function StatusDot({ active, status, maintenance }: StatusDotProps) {- if (!active) {- return (- <span className="relative flex h-2 w-2">- <span className="absolute inline-flex h-2 w-2 rounded-full bg-muted-foreground/80" />- </span>- );- }- if (maintenance) {- return (- <span className="relative flex h-2 w-2">- <span className="absolute inline-flex h-full w-full animate-ping rounded-full bg-status-monitoring/80 opacity-75 duration-2000" />- <span className="relative inline-flex h-2 w-2 rounded-full bg-status-monitoring" />- </span>- );- }- if (status === "error") {- return (- <span className="relative flex h-2 w-2">- <span className="absolute inline-flex h-full w-full animate-ping rounded-full bg-status-down/80 opacity-75 duration-2000" />- <span className="absolute inline-flex h-2 w-2 rounded-full bg-status-down" />- </span>- );- }- if (status === "degraded") {- return (- <span className="relative flex h-2 w-2">- <span className="absolute inline-flex h-full w-full animate-ping rounded-full bg-status-degraded/80 opacity-75 duration-2000" />- <span className="relative inline-flex h-2 w-2 rounded-full bg-status-degraded" />- </span>- );- }-- return (- <span className="relative flex h-2 w-2">- <span className="absolute inline-flex h-full w-full animate-ping rounded-full bg-status-operational/80 opacity-75 duration-2000" />- <span className="relative inline-flex h-2 w-2 rounded-full bg-status-operational" />- </span>- );-}diff --git a/apps/web/src/components/monitor/tag-badge-with-tooltip.tsx b/apps/web/src/components/monitor/tag-badge-with-tooltip.tsxdeleted file mode 100644index eccf40e2e..000000000--- a/apps/web/src/components/monitor/tag-badge-with-tooltip.tsx+++ /dev/null@@ -1,36 +0,0 @@-import type { MonitorTag } from "@openstatus/db/src/schema";-import { Badge } from "@openstatus/ui/src/components/badge";-import {- Tooltip,- TooltipContent,- TooltipProvider,- TooltipTrigger,-} from "@openstatus/ui/src/components/tooltip";--import { TagBadge } from "./tag-badge";--export function TagBadgeWithTooltip({ tags }: { tags?: MonitorTag[] }) {- const [first, second, ...rest] = tags || [];- return (- <div className="flex items-center gap-2">- {first ? <TagBadge {...first} /> : null}- {second ? <TagBadge {...second} /> : null}- {rest.length > 0 ? (- <TooltipProvider>- <Tooltip delayDuration={200}>- <TooltipTrigger>- <Badge variant="secondary" className="border">- +{rest.length}- </Badge>- </TooltipTrigger>- <TooltipContent side="top" className="flex gap-2">- {rest.map((tag) => (- <TagBadge key={tag.id} {...tag} />- ))}- </TooltipContent>- </Tooltip>- </TooltipProvider>- ) : null}- </div>- );-}diff --git a/apps/web/src/components/monitor/tag-badge.tsx b/apps/web/src/components/monitor/tag-badge.tsxdeleted file mode 100644index c53fbb53c..000000000--- a/apps/web/src/components/monitor/tag-badge.tsx+++ /dev/null@@ -1,18 +0,0 @@-import { Badge } from "@openstatus/ui/src/components/badge";--function getStyle(color: string) {- return {- borderColor: `${color}10`,- backgroundColor: `${color}20`,- color,- };-}--interface TagBadgeProps {- name: string;- color: string;-}--export function TagBadge({ color, name }: TagBadgeProps) {- return <Badge style={getStyle(color)}>{name}</Badge>;-}diff --git a/apps/web/src/components/monitor/trigger-icon-with-tooltip.tsx b/apps/web/src/components/monitor/trigger-icon-with-tooltip.tsxdeleted file mode 100644index fcd025665..000000000--- a/apps/web/src/components/monitor/trigger-icon-with-tooltip.tsx+++ /dev/null@@ -1,36 +0,0 @@-import type { Trigger } from "@/lib/monitor/utils";-import { cn } from "@/lib/utils";-import {- Tooltip,- TooltipContent,- TooltipProvider,- TooltipTrigger,-} from "@openstatus/ui/src/components/tooltip";--import { type IconProps, Icons } from "@/components/icons";-import { triggerDict } from "@/data/trigger-dictionary";--interface TriggerIconWithTooltipProps extends IconProps {- triggerType: Trigger;-}--export function TriggerIconWithTooltip({- triggerType,- className,- ...props-}: TriggerIconWithTooltipProps) {- const config = triggerDict[triggerType];- const Icon = Icons[config.icon];- return (- <TooltipProvider delayDuration={50}>- <Tooltip>- <TooltipTrigger asChild>- <Icon className={cn("h-4 w-4", className)} {...props} />- </TooltipTrigger>- <TooltipContent>- <p>{config.label}</p>- </TooltipContent>- </Tooltip>- </TooltipProvider>- );-}diff --git a/apps/web/src/components/monitor/visible-icon-with-tooltip.tsx b/apps/web/src/components/monitor/visible-icon-with-tooltip.tsxdeleted file mode 100644index 168425004..000000000--- a/apps/web/src/components/monitor/visible-icon-with-tooltip.tsx+++ /dev/null@@ -1,27 +0,0 @@-import { Eye, EyeOff } from "lucide-react";--import {- Tooltip,- TooltipContent,- TooltipProvider,- TooltipTrigger,-} from "@openstatus/ui/src/components/tooltip";--export function VisibleIconWithTooltip({ visible }: { visible: boolean }) {- return (- <TooltipProvider>- <Tooltip delayDuration={200}>- <TooltipTrigger>- {visible ? (- <Eye className="h-4 w-4 text-muted-foreground hover:text-foreground" />- ) : (- <EyeOff className="h-4 w-4 text-muted-foreground hover:text-foreground" />- )}- </TooltipTrigger>- <TooltipContent side="top">- Monitor is {visible ? "public" : "private"}- </TooltipContent>- </Tooltip>- </TooltipProvider>- );-}diff --git a/apps/web/src/components/ping-response-analysis/columns.tsx b/apps/web/src/components/ping-response-analysis/columns.tsxdeleted file mode 100644index 20192ca11..000000000--- a/apps/web/src/components/ping-response-analysis/columns.tsx+++ /dev/null@@ -1,316 +0,0 @@-"use client";--import type { ColumnDef } from "@tanstack/react-table";-import { type RegionChecker, latencyFormatter, regionFormatter } from "./utils";--import { DataTableColumnHeader } from "@/components/data-table/data-table-column-header";-import { IconCloudProviderTooltip } from "@/components/icon-cloud-provider";-import { cn } from "@/lib/utils";-import { formatRegionCode, regionDict } from "@openstatus/regions";-import {- HoverCard,- HoverCardContent,- HoverCardPortal,- HoverCardTrigger,-} from "@openstatus/ui";--export const columns: ColumnDef<RegionChecker>[] = [- {- accessorKey: "region",- accessorFn: (row) => row.region,- header: "Region",- cell: ({ row }) => {- const region = regionDict[row.original.region];- const code = formatRegionCode(row.original.region);- return (- <div className="flex items-center gap-1.5">- <IconCloudProviderTooltip provider={region.provider} />- <div className="truncate">- <span className="font-mono">{code}</span>{" "}- <span className="text-muted-foreground">- {regionFormatter(row.original.region, "long")}- </span>- </div>- </div>- );- },- filterFn: (row, _id, filterValue) => {- const region = regionFormatter(row.original.region, "long").toLowerCase();- const continent =- regionDict[row.original.region].continent.toLocaleLowerCase();- const provider =- regionDict[row.original.region].provider.toLocaleLowerCase();- return `${region} ${continent} ${provider}`.includes(- filterValue.toLowerCase(),- );- },- },- {- accessorKey: "status",- header: "Status",- cell: ({ row }) => {- const statusCode = row.original.status;- const yellow = String(statusCode).startsWith("1");- const green = String(statusCode).startsWith("2");- const blue = String(statusCode).startsWith("3");- const rose =- String(statusCode).startsWith("4") ||- String(statusCode).startsWith("5");- return (- <div- className={cn("font-mono", {- "text-green-500": green,- "text-blue-500": blue,- "text-rose-500": rose,- "text-yellow-500": yellow,- })}- >- {statusCode}- </div>- );- },- },- {- id: "DNS",- header: ({ column }) => {- return (- <DataTableColumnHeader- column={column}- title="DNS"- className="pr-0 text-right"- />- );- },- accessorFn: (row) => `${row.timing.dnsDone - row.timing.dnsStart}`,- cell: ({ row, column }) => {- return (- <div className="text-right font-mono text-muted-foreground">- {latencyFormatter(row.getValue(column.id))}- </div>- );- },- meta: {- headerClassName: "text-right",- },- },- {- id: "connect",- accessorFn: (row) => `${row.timing.connectDone - row.timing.connectStart}`,- header: ({ column }) => {- return (- <DataTableColumnHeader- column={column}- title="Connect"- className="pr-0 text-right"- />- );- },- cell: ({ row, column }) => {- return (- <div className="text-right font-mono text-muted-foreground">- {latencyFormatter(row.getValue(column.id))}- </div>- );- },- meta: {- headerClassName: "text-right",- },- },- {- id: "TLS",- accessorFn: (row) =>- `${row.timing.tlsHandshakeDone - row.timing.tlsHandshakeStart}`,- header: ({ column }) => {- return (- <DataTableColumnHeader- column={column}- title="TLS"- className="pr-0 text-right"- />- );- },- cell: ({ row, column }) => {- return (- <div className="text-right font-mono text-muted-foreground">- {latencyFormatter(row.getValue(column.id))}- </div>- );- },- meta: {- headerClassName: "text-right",- },- },- {- id: "TTFB",- accessorFn: (row) =>- `${row.timing.firstByteDone - row.timing.firstByteStart}`,- header: ({ column }) => {- return (- <DataTableColumnHeader- column={column}- title="TTFB"- className="pr-0 text-right"- />- );- },- cell: ({ row, column }) => {- return (- <div className="text-right font-mono text-muted-foreground">- {latencyFormatter(row.getValue(column.id))}- </div>- );- },- meta: {- headerClassName: "text-right",- },- },- {- accessorKey: "transfer",- accessorFn: (row) =>- `${row.timing.transferDone - row.timing.transferStart}`,- header: ({ column }) => {- return (- <DataTableColumnHeader- column={column}- title="Transfer"- className="pr-0 text-right"- />- );- },- cell: ({ row, column }) => {- return (- <div className="text-right font-mono text-muted-foreground">- {latencyFormatter(row.getValue(column.id))}- </div>- );- },- meta: {- headerClassName: "text-right",- },- },- {- accessorKey: "latency",- header: ({ column }) => {- return (- <DataTableColumnHeader- column={column}- title="Latency"- className="pr-0 text-right"- />- );- },- cell: ({ row }) => {- return (- <div className="text-right font-mono">- {latencyFormatter(row.original.latency)}- </div>- );- },- meta: {- headerClassName: "text-right",- },- },- // {- // accessorKey: "timing",- // header: "Timing",- // cell: ({ row }) => {- // return <HoverCardTiming timing={row.original.timing} />;- // },- // meta: {- // headerClassName: "text-right",- // },- // },-];--function HoverCardTiming({- timing: rawTiming,-}: {- timing: NonNullable<Extract<RegionChecker, { type: "http" }>["timing"]>;-}) {- const timing = getTiming(rawTiming);- const total = getTotal(timing);- return (- <HoverCard openDelay={50} closeDelay={50}>- <HoverCardTrigger- className="opacity-70 hover:opacity-100 data-[state=open]:opacity-100"- asChild- >- <div className="flex">- {Object.entries(timing).map(([key, value], index) => (- <div- key={key}- className={cn("h-4")}- style={{- width: `${(value / total) * 100}%`,- backgroundColor: `hsl(var(--chart-${index + 1}))`,- }}- />- ))}- </div>- </HoverCardTrigger>- {/* REMINDER: allows us to port the content to the document.body, which is helpful when using opacity-50 on the row element */}- <HoverCardPortal>- <HoverCardContent side="bottom" align="end" className="z-10 w-auto p-2">- <HoverCardTimingContent timing={rawTiming} />- </HoverCardContent>- </HoverCardPortal>- </HoverCard>- );-}--function HoverCardTimingContent({- timing: rawTiming,-}: {- timing: NonNullable<Extract<RegionChecker, { type: "http" }>["timing"]>;-}) {- const timing = getTiming(rawTiming);- const total = getTotal(timing);- return (- <div className="flex flex-col gap-1">- {Object.entries(timing).map(([key, value], index) => {- return (- <div key={key} className="grid grid-cols-2 gap-4 text-xs">- <div className="flex items-center gap-2">- <div- className={cn("h-2 w-2 rounded-full")}- style={{ backgroundColor: `hsl(var(--chart-${index + 1}))` }}- />- <div className="font-mono text-accent-foreground uppercase">- {key}- </div>- </div>- <div className="flex items-center justify-between gap-4">- <div className="font-mono text-muted-foreground">- {`${new Intl.NumberFormat("en-US", {- maximumFractionDigits: 2,- }).format((value / total) * 100)}%`}- </div>- <div className="font-mono">- {new Intl.NumberFormat("en-US", {- maximumFractionDigits: 3,- }).format(value)}- <span className="text-muted-foreground">ms</span>- </div>- </div>- </div>- );- })}- </div>- );-}--function getTotal(timing: ReturnType<typeof getTiming>) {- return Object.values(timing).reduce((acc, curr) => acc + curr, 0);-}--function getTiming(- timing: NonNullable<Extract<RegionChecker, { type: "http" }>["timing"]>,-) {- return {- dns: timing.dnsDone - timing.dnsStart,- connect: timing.connectDone - timing.connectStart,- tls: timing.tlsHandshakeDone - timing.tlsHandshakeStart,- ttfb: timing.firstByteDone - timing.firstByteStart,- transfer: timing.transferDone - timing.transferStart,- };-}diff --git a/apps/web/src/components/ping-response-analysis/config.ts b/apps/web/src/components/ping-response-analysis/config.tsdeleted file mode 100644index 6d85de246..000000000--- a/apps/web/src/components/ping-response-analysis/config.ts+++ /dev/null@@ -1,32 +0,0 @@-export const timingDict = {- dns: {- short: "DNS",- long: "DNS Lookup",- description:- "Time spent performing the DNS lookup. DNS lookup resolves domain names to IP addresses. Every new domain requires a full round trip to do the DNS lookup. There is no DNS lookup when the destination is already an IP address.",- },- connection: {- short: "TCP",- long: "Initial Connection",- description:- "Time it took to establish TCP connection between a source host and destination host. Connections must be properly established in a multi-step handshake process. TCP connection is managed by an operating system, if the underlying TCP connection cannot be established, the OS-wide TCP connection timeout will overrule the timeout config of our application.",- },- tls: {- short: "TLS",- long: "TLS Handshake",- description:- "Time spent completing a TLS handshake. During the handshake process endpoints exchange authentication and keys to establish or resume secure sessions. There is no TLS handshake with a not HTTPS request.",- },- ttfb: {- short: "TTFB",- long: "Time to First Byte",- description:- "Time spent waiting for the initial response. This time captures the latency of a round trip to the server in addition to the time spent waiting for the server to process the request and deliver the response.",- },- transfer: {- short: "Transfer",- long: "Content Transfer",- description:- "Time spent receiving the response data. The size of the response data and the available network bandwidth determinates its duration.",- },-} as const;diff --git a/apps/web/src/components/ping-response-analysis/copy-link-button.tsx b/apps/web/src/components/ping-response-analysis/copy-link-button.tsxdeleted file mode 100644index 880a25875..000000000--- a/apps/web/src/components/ping-response-analysis/copy-link-button.tsx+++ /dev/null@@ -1,49 +0,0 @@-"use client";--import { Button } from "@openstatus/ui/src/components/button";-import {- Tooltip,- TooltipContent,- TooltipProvider,- TooltipTrigger,-} from "@openstatus/ui/src/components/tooltip";-import * as React from "react";--import { Icons } from "@/components/icons";-import { copyToClipboard } from "@/lib/utils";--export function CopyLinkButton() {- const [hasCopied, setHasCopied] = React.useState(false);-- React.useEffect(() => {- if (hasCopied) {- setTimeout(() => {- setHasCopied(false);- }, 2000);- }- }, [hasCopied]);- return (- <TooltipProvider>- <Tooltip>- <TooltipTrigger asChild>- <Button- onClick={() => {- if (typeof window === "undefined") return;- copyToClipboard(window.location.href);- setHasCopied(true);- }}- size="icon"- variant="ghost"- >- {!hasCopied ? (- <Icons.link className="h-4 w-4" />- ) : (- <Icons.check className="h-4 w-4" />- )}- </Button>- </TooltipTrigger>- <TooltipContent>Copy link</TooltipContent>- </Tooltip>- </TooltipProvider>- );-}diff --git a/apps/web/src/components/ping-response-analysis/copy-to-clipboard-button.tsx b/apps/web/src/components/ping-response-analysis/copy-to-clipboard-button.tsxdeleted file mode 100644index 80546d98e..000000000--- a/apps/web/src/components/ping-response-analysis/copy-to-clipboard-button.tsx+++ /dev/null@@ -1,40 +0,0 @@-"use client";--import * as React from "react";--import { Icons } from "@/components/icons";-import { cn, copyToClipboard } from "@/lib/utils";--// TODO: make a generic copy to clipboard button--interface Props extends React.ButtonHTMLAttributes<HTMLButtonElement> {- copyValue: string;-}--export function CopyToClipboardButton({ copyValue, className }: Props) {- const [hasCopied, setHasCopied] = React.useState(false);-- React.useEffect(() => {- if (hasCopied) {- setTimeout(() => {- setHasCopied(false);- }, 2000);- }- }, [hasCopied]);- return (- <button- type="button"- onClick={() => {- copyToClipboard(copyValue);- setHasCopied(true);- }}- className={cn("text-muted-foreground hover:text-foreground", className)}- >- {!hasCopied ? (- <Icons.copy className="h-3 w-3" />- ) : (- <Icons.check className="h-3 w-3" />- )}- </button>- );-}diff --git a/apps/web/src/components/ping-response-analysis/data-table-collapse-button.tsx b/apps/web/src/components/ping-response-analysis/data-table-collapse-button.tsxdeleted file mode 100644index a429ee2c7..000000000--- a/apps/web/src/components/ping-response-analysis/data-table-collapse-button.tsx+++ /dev/null@@ -1,27 +0,0 @@-"use client";--import { Badge, Button } from "@openstatus/ui";-import type { Table } from "@tanstack/react-table";-import { ChevronsDownUp } from "lucide-react";--interface DataTableCollapseButtonProps<TData> {- table: Table<TData>;-}--export function DataTableCollapseButton<TData>({- table,-}: DataTableCollapseButtonProps<TData>) {- const isExpanded = Object.keys(table.getState().expanded).length;-- if (!isExpanded) return null;-- return (- <Button variant="ghost" size="sm" onClick={() => table.resetExpanded()}>- <ChevronsDownUp className="mr-2 h-4 w-4" />- Collapse- <Badge variant="secondary" className="ml-2">- {isExpanded}- </Badge>- </Button>- );-}diff --git a/apps/web/src/components/ping-response-analysis/multi-region-chart.tsx b/apps/web/src/components/ping-response-analysis/multi-region-chart.tsxdeleted file mode 100644index f51addcb8..000000000--- a/apps/web/src/components/ping-response-analysis/multi-region-chart.tsx+++ /dev/null@@ -1,161 +0,0 @@-"use client";--import type { RegionChecker } from "./utils";-import { getTimingPhases, regionFormatter } from "./utils";--import { Bar, BarChart, CartesianGrid, XAxis } from "recharts";--import { IconCloudProvider } from "@/components/icon-cloud-provider";-import { formatRegionCode, regionDict } from "@openstatus/regions";-import {- type ChartConfig,- ChartContainer,- ChartLegend,- ChartLegendContent,- ChartTooltip,- ChartTooltipContent,-} from "@openstatus/ui/src/components/chart";--const chartConfig = {- dns: {- label: "DNS",- color: "hsl(var(--chart-1))",- },- connection: {- label: "Connection",- color: "hsl(var(--chart-2))",- },- tls: {- label: "TLS",- color: "hsl(var(--chart-3))",- },- ttfb: {- label: "TTFB",- color: "hsl(var(--chart-4))",- },- transfer: {- label: "Transfer",- color: "hsl(var(--chart-5))",- },-} satisfies ChartConfig;--export function MultiRegionChart({ regions }: { regions: RegionChecker[] }) {- const chartData = regions- .sort((a, b) => a.latency - b.latency) // FIXME: seems to be off- .map((item) => {- const { dns, connection, tls, ttfb, transfer } = getTimingPhases(- item.timing,- );- return {- region: item.region,- dns,- connection,- tls,- ttfb,- transfer,- };- });- return (- <div className="relative">- <ChartContainer config={chartConfig}>- <BarChart accessibilityLayer data={chartData}>- <CartesianGrid vertical={false} />- <XAxis- dataKey="region"- tickLine={false}- tickMargin={10}- axisLine={false}- interval={0}- tick={(props) => {- const { x, y, payload } = props;- return (- <g transform={`translate(${x},${y})`}>- <text- x={0}- y={0}- dy={2}- textAnchor="end"- fill="#666"- transform="rotate(-35)"- className="font-mono"- >- {formatRegionCode(payload.value)}- </text>- </g>- );- }}- />- <ChartTooltip- defaultIndex={5}- content={- <ChartTooltipContent- labelFormatter={(label) => {- return (- <div className="flex items-center gap-2">- <IconCloudProvider- provider={- regionDict[label as keyof typeof regionDict].provider- }- className="size-2.5!"- />- {regionFormatter(label, "long")}- </div>- );- }}- formatter={(value, name, item, index) => (- <>- <div- className="h-2.5 w-2.5 shrink-0 rounded-[2px] bg-(--color-bg)"- style={- {- "--color-bg": `var(--color-${name})`,- } as React.CSSProperties- }- />- {chartConfig[name as keyof typeof chartConfig]?.label ||- name}- <div className="ml-auto flex items-baseline gap-0.5 font-medium font-mono text-foreground tabular-nums">- {value}- <span className="font-normal text-muted-foreground">- ms- </span>- </div>- {index === Object.keys(chartConfig).length - 1 && (- <div className="flex basis-full items-center border-t pt-1.5 font-medium text-foreground text-xs">- Latency- <div className="ml-auto flex items-baseline gap-0.5 font-medium font-mono text-foreground tabular-nums">- {Object.keys(chartConfig).reduce((acc, key) => {- if (key === "transfer") return acc;- return acc + item.payload[key];- }, 0)}- <span className="font-normal text-muted-foreground">- ms- </span>- </div>- </div>- )}- </>- )}- />- }- />- <ChartLegend content={<ChartLegendContent />} />- <Bar dataKey="dns" stackId="a" fill="var(--color-dns)" />- <Bar- dataKey="connection"- stackId="a"- fill="var(--color-connection)"- />- <Bar dataKey="tls" stackId="a" fill="var(--color-tls)" />- <Bar dataKey="ttfb" stackId="a" fill="var(--color-ttfb)" />- <Bar dataKey="transfer" stackId="a" fill="var(--color-transfer)" />- </BarChart>- </ChartContainer>- {regions.length ? null : (- <div className="absolute inset-0 flex w-full items-center justify-center bg-muted/50">- <div className="text-foreground">No results</div>- </div>- )}- </div>- );-}diff --git a/apps/web/src/components/ping-response-analysis/multi-region-table.tsx b/apps/web/src/components/ping-response-analysis/multi-region-table.tsxdeleted file mode 100644index 09bfab883..000000000--- a/apps/web/src/components/ping-response-analysis/multi-region-table.tsx+++ /dev/null@@ -1,164 +0,0 @@-"use client";--import {- Table,- TableBody,- TableCaption,- TableCell,- TableHead,- TableHeader,- TableRow,-} from "@openstatus/ui/src/components/table";--import { Input } from "@openstatus/ui";-import {- type ColumnDef,- type ColumnFiltersState,- type ExpandedState,- type Row,- type SortingState,- type VisibilityState,- flexRender,- getCoreRowModel,- getExpandedRowModel,- getFilteredRowModel,- getSortedRowModel,- useReactTable,-} from "@tanstack/react-table";-import { Fragment, useState } from "react";-import { DataTableViewOptions } from "../data-table/data-table-view-options";-import { DataTableCollapseButton } from "./data-table-collapse-button";--// TBD: add the popover infos about timing details--interface DataTableProps<TData, TValue> {- columns: ColumnDef<TData, TValue>[];- data: TData[];- renderSubComponent(props: { row: Row<TData> }): React.ReactElement<unknown>;- getRowCanExpand(row: Row<TData>): boolean;- autoResetExpanded?: boolean;- defaultColumnVisibility?: VisibilityState;-}--export function MultiRegionTable<TData, TValue>({- columns,- data,- renderSubComponent,- getRowCanExpand,- autoResetExpanded,- defaultColumnVisibility,-}: DataTableProps<TData, TValue>) {- const [sorting, setSorting] = useState<SortingState>([- { id: "latency", desc: false },- ]);- const [expanded, setExpanded] = useState<ExpandedState>({});- const [columnVisibility, setColumnVisibility] = useState<VisibilityState>(- defaultColumnVisibility ?? {},- );- const [columnFilters, setColumnFilters] = useState<ColumnFiltersState>([]);-- const table = useReactTable({- data,- columns,- onSortingChange: setSorting,- onExpandedChange: setExpanded,- onColumnVisibilityChange: setColumnVisibility,- onColumnFiltersChange: setColumnFilters,- getCoreRowModel: getCoreRowModel(),- getSortedRowModel: getSortedRowModel(),- getExpandedRowModel: getExpandedRowModel(),- getFilteredRowModel: getFilteredRowModel(),- getRowCanExpand,- autoResetExpanded,- state: {- sorting,- expanded,- columnVisibility,- columnFilters,- },- });-- return (- <div className="grid gap-4">- <div className="flex items-end justify-between gap-2">- <Input- placeholder="Filter region, continent, flag, cloud provider..."- value={(table.getColumn("region")?.getFilterValue() as string) ?? ""}- onChange={(event) =>- table.getColumn("region")?.setFilterValue(event.target.value)- }- className="h-8 max-w-[350px] truncate"- />- <div className="flex items-center justify-end gap-2">- <DataTableCollapseButton table={table} />- <DataTableViewOptions table={table} />- </div>- </div>- <Table>- <TableCaption>Multi Cloud Regions</TableCaption>- <TableHeader className="bg-muted/50">- {table.getHeaderGroups().map((headerGroup) => (- <TableRow key={headerGroup.id}>- {headerGroup.headers.map((header) => {- return (- <TableHead- key={header.id}- className={header.column.columnDef.meta?.headerClassName}- >- {header.isPlaceholder- ? null- : flexRender(- header.column.columnDef.header,- header.getContext(),- )}- </TableHead>- );- })}- </TableRow>- ))}- </TableHeader>- <TableBody>- {table.getRowModel().rows?.length ? (- table.getRowModel().rows.map((row) => (- <Fragment key={row.id}>- <TableRow- data-state={- (row.getIsSelected() || row.getIsExpanded()) && "selected"- }- onClick={() => row.toggleExpanded()}- className="cursor-pointer"- >- {row.getVisibleCells().map((cell) => (- <TableCell key={cell.id}>- {flexRender(- cell.column.columnDef.cell,- cell.getContext(),- )}- </TableCell>- ))}- </TableRow>- {row.getIsExpanded() && (- <TableRow- data-state="expanded"- className="hover:bg-muted/10 data-[state=expanded]:bg-muted/10"- >- {/* 2nd row is a custom 1 cell row */}- <TableCell colSpan={row.getVisibleCells().length}>- {renderSubComponent({ row })}- </TableCell>- </TableRow>- )}- </Fragment>- ))- ) : (- <TableRow>- <TableCell colSpan={columns.length} className="h-24 text-center">- No results.- </TableCell>- </TableRow>- )}- </TableBody>- </Table>- </div>- );-}diff --git a/apps/web/src/components/ping-response-analysis/multi-region-tabs.tsx b/apps/web/src/components/ping-response-analysis/multi-region-tabs.tsxdeleted file mode 100644index fe3a19b65..000000000--- a/apps/web/src/components/ping-response-analysis/multi-region-tabs.tsx+++ /dev/null@@ -1,58 +0,0 @@-"use client";--import { Tabs, TabsContent, TabsList, TabsTrigger } from "@openstatus/ui";--import type { Region } from "@openstatus/db/src/schema/constants";-import type { Row } from "@tanstack/react-table";-import { RegionsPreset } from "../monitor-dashboard/region-preset";-import { columns } from "./columns";-import { MultiRegionChart } from "./multi-region-chart";-import { MultiRegionTable } from "./multi-region-table";-import { ResponseDetailTabs } from "./response-detail-tabs";-import type { RegionChecker } from "./utils";--export function MultiRegionTabs({- regions,- selectedRegions,-}: {- regions: RegionChecker[];- selectedRegions?: Region[];-}) {- return (- <Tabs defaultValue="table">- <div className="flex items-center justify-between gap-2">- <TabsList className="h-8 p-0.5">- <TabsTrigger value="table" className="h-7">- Table- </TabsTrigger>- <TabsTrigger value="chart" className="h-7">- Chart- </TabsTrigger>- </TabsList>- <RegionsPreset- regions={regions.map((i) => i.region)}- selectedRegions={selectedRegions ?? []}- size="sm"- />- </div>- <TabsContent value="chart" className="mt-3">- <MultiRegionChart- regions={regions.filter((i) => selectedRegions?.includes(i.region))}- />- </TabsContent>- <TabsContent value="table" className="mt-3">- <MultiRegionTable- data={regions.filter((i) => selectedRegions?.includes(i.region))}- columns={columns}- getRowCanExpand={() => true}- renderSubComponent={renderSubComponent}- defaultColumnVisibility={{ transfer: false }}- />- </TabsContent>- </Tabs>- );-}--function renderSubComponent({ row }: { row: Row<RegionChecker> }) {- return <ResponseDetailTabs {...row.original} />;-}diff --git a/apps/web/src/components/ping-response-analysis/region-info.tsx b/apps/web/src/components/ping-response-analysis/region-info.tsxdeleted file mode 100644index a0e0210a4..000000000--- a/apps/web/src/components/ping-response-analysis/region-info.tsx+++ /dev/null@@ -1,62 +0,0 @@-import { StatusCodeBadge } from "@/components/monitor/status-code-badge";-import { latencyFormatter, regionFormatter, timestampFormatter } from "./utils";--export function RegionInfo({- check,- error,-}: {- check: {- region: string;- timestamp: number;- latency: number;- status?: number;- };- error?: string;-}) {- return (- <div className="grid grid-cols-5 gap-2 text-sm sm:grid-cols-9">- <div className="col-span-2">- <p className="text-muted-foreground">Time:</p>- </div>- <div className="col-span-3 sm:col-span-6">- <p>{timestampFormatter(check.timestamp)}</p>- </div>- <div className="col-span-2">- <p className="text-muted-foreground">Region:</p>- </div>- <div className="col-span-3 sm:col-span-6">- <p>{regionFormatter(check.region)}</p>- </div>- <div className="col-span-2">- <p className="text-muted-foreground">Latency:</p>- </div>- <div className="col-span-3 sm:col-span-6">- <p>- <code>{latencyFormatter(check.latency)}</code>- </p>- </div>- {check.status ? (- <>- <div className="col-span-2">- <p className="text-muted-foreground">Status:</p>- </div>- <div className="col-span-3 sm:col-span-6">- <StatusCodeBadge statusCode={check.status} />- </div>- </>- ) : null}- {error ? (- <>- <div className="col-span-2">- <p className="text-muted-foreground">Error:</p>- </div>- <div className="col-span-3 sm:col-span-6">- <p className="font-medium text-destructive before:content-['«_'] after:content-['_»']">- {error}- </p>- </div>- </>- ) : null}- </div>- );-}diff --git a/apps/web/src/components/ping-response-analysis/response-assertion.tsx b/apps/web/src/components/ping-response-analysis/response-assertion.tsxdeleted file mode 100644index ee90203ee..000000000--- a/apps/web/src/components/ping-response-analysis/response-assertion.tsx+++ /dev/null@@ -1,61 +0,0 @@-import {- numberCompareDictionary,- stringCompareDictionary,-} from "@openstatus/assertions";-import type { Assertion } from "@openstatus/assertions";-import {- Table,- TableBody,- TableCaption,- TableCell,- TableHead,- TableHeader,- TableRow,-} from "@openstatus/ui/src/components/table";--export function ResponseAssertion({ assertions }: { assertions: Assertion[] }) {- return (- <Table>- <TableCaption className="mt-2">Response Assertions</TableCaption>- <TableHeader>- <TableRow>- <TableHead>Source</TableHead>- <TableHead>Key</TableHead>- <TableHead>Comparison</TableHead>- <TableHead>Target</TableHead>- </TableRow>- </TableHeader>- <TableBody>- {assertions.map((a, i) => {- if (a.schema.type === "status") {- return (- <TableRow key={i}>- <TableCell className="text-muted-foreground">- Status Code- </TableCell>- <TableCell />- <TableCell>- {numberCompareDictionary[a.schema.compare]}- </TableCell>- <TableCell className="font-mono">{a.schema.target}</TableCell>- </TableRow>- );- }- if (a.schema.type === "header") {- return (- <TableRow key={i}>- <TableCell className="text-muted-foreground">Header</TableCell>- <TableCell className="font-mono">{a.schema.key}</TableCell>- <TableCell>- {stringCompareDictionary[a.schema.compare]}- </TableCell>- <TableCell className="font-mono">{a.schema.target}</TableCell>- </TableRow>- );- }- return null;- })}- </TableBody>- </Table>- );-}diff --git a/apps/web/src/components/ping-response-analysis/response-detail-tabs.tsx b/apps/web/src/components/ping-response-analysis/response-detail-tabs.tsxdeleted file mode 100644index b2a46b904..000000000--- a/apps/web/src/components/ping-response-analysis/response-detail-tabs.tsx+++ /dev/null@@ -1,84 +0,0 @@-import type { Assertion } from "@openstatus/assertions";--import {- Tabs,- TabsContent,- TabsList,- TabsTrigger,-} from "@/components/dashboard/tabs";-import { ResponseAssertion } from "./response-assertion";-import { ResponseHeaderTable } from "./response-header-table";-import { ResponseTimingTable } from "./response-timing-table";-import type { Timing } from "./utils";--export function ResponseDetailTabs({- timing,- headers,- status,- message,- assertions,- defaultOpen,- hideInfo = true,- className,-}: {- timing: Timing | null;- headers: Record<string, string> | null;- status: number | null;- message?: string | null;- assertions?: Assertion[] | null;- defaultOpen?: string;- hideInfo?: boolean;- className?: string;-}) {- const defaultValue =- defaultOpen || headers ? "headers" : timing ? "timing" : "message";- return (- <Tabs defaultValue={defaultValue} className={className}>- <TabsList className="sticky top-0 bg-background">- <TabsTrigger value="headers" disabled={!headers}>- Headers- </TabsTrigger>- <TabsTrigger value="timing" disabled={!timing}>- Timing- </TabsTrigger>- <TabsTrigger value="message" disabled={!message}>- Message- </TabsTrigger>- <TabsTrigger- value="assertions"- disabled={!assertions || assertions.length === 0}- >- Assertions- </TabsTrigger>- </TabsList>- <TabsContent value="headers">- {headers ? (- <ResponseHeaderTable headers={headers} status={status || 0} />- ) : null}- </TabsContent>- <TabsContent value="timing">- {timing ? (- <ResponseTimingTable timing={timing} hideInfo={hideInfo} />- ) : null}- </TabsContent>- <TabsContent value="message">- {message ? (- <div>- <pre- className="text-wrap rounded-md bg-muted p-4 text-sm"- style={{ textWrap: "wrap" }}- >- {message}- </pre>- <p className="mt-4 text-center text-muted-foreground text-sm">- Response Message- </p>- </div>- ) : null}- </TabsContent>- <TabsContent value="assertions">- {assertions ? <ResponseAssertion {...{ assertions }} /> : null}- </TabsContent>- </Tabs>- );-}diff --git a/apps/web/src/components/ping-response-analysis/response-header-analysis.tsx b/apps/web/src/components/ping-response-analysis/response-header-analysis.tsxdeleted file mode 100644index ac8de1ba3..000000000--- a/apps/web/src/components/ping-response-analysis/response-header-analysis.tsx+++ /dev/null@@ -1,240 +0,0 @@-import "@openstatus/header-analysis";--import { Info } from "lucide-react";-import React from "react";--import {- parseCacheControlHeader,- parseCfCacheStatus,- parseCfRay,- parseFlyRequestId,- parseXVercelCache,- parseXVercelId,-} from "@openstatus/header-analysis";-import {- Dialog,- DialogContent,- DialogDescription,- DialogHeader,- DialogTitle,- DialogTrigger,-} from "@openstatus/ui/src/components/dialog";--const allowedHeaders = [- "Cache-Control",- "Cf-Cache-Status",- "Cf-Ray",- "X-Vercel-Cache",- "X-Vercel-Id",- "Location",- "Fly-Request-Id",-];--export function ResponseHeaderAnalysis({- headerKey,- headers,- status,-}: {- headers: Record<string, string | undefined>;- headerKey: string;- status: number;-}) {- const header = headers[headerKey];-- if (!header) return null;- if (!allowedHeaders.includes(headerKey)) return null;-- return (- <Dialog>- <DialogTrigger className="text-muted-foreground hover:text-foreground data-[state=open]:text-foreground">- <Info className="h-4 w-4" />- </DialogTrigger>- <DialogContent className="sm:max-w-2xl">- <DialogHeader>- <DialogTitle>Header Analysis</DialogTitle>- <DialogDescription>- Breaking down the{" "}- <code className="font-semibold">"{headerKey}"</code>{" "}- header.- </DialogDescription>- </DialogHeader>- {(() => {- switch (headerKey) {- case "Cache-Control":- return <CacheControl header={header} />;- case "Cf-Cache-Status":- return <CfCacheStatus header={header} />;- case "Cf-Ray":- return <CfRay header={header} />;- case "X-Vercel-Cache":- return <XVercelCache header={header} />;- case "X-Vercel-Id":- return <XVercelId header={header} />;- case "Fly-Request-Id":- return <FlyRequestId header={header} />;- case "Location":- return <Location header={header} status={status} />;- default:- return null;- }- })()}- </DialogContent>- </Dialog>- );-}--function CacheControl({ header }: { header: string }) {- const values = parseCacheControlHeader(header);-- return (- <div className="grid gap-4 sm:grid-cols-4">- {values.map(({ name, value, description }) => {- return (- <React.Fragment key={name}>- <p className="sm:col-span-1">- <code className="rounded bg-muted p-1 font-semibold">{name}</code>{" "}- {value !== undefined ? <code>({value})</code> : null}- </p>- <p className="sm:col-span-3">{description}</p>- </React.Fragment>- );- })}- </div>- );-}--function CfCacheStatus({ header }: { header: string }) {- const { value, description } = parseCfCacheStatus(header);-- return (- <div className="grid gap-4 sm:grid-cols-4">- <p className="sm:col-span-1">- <code className="rounded bg-muted p-1 font-semibold">{value}</code>- </p>- <p className="sm:col-span-3">{description}</p>- </div>- );-}--function XVercelCache({ header }: { header: string }) {- const { value, description } = parseXVercelCache(header);-- return (- <div className="grid gap-4 sm:grid-cols-4">- <p className="sm:col-span-1">- <code className="rounded bg-muted p-1 font-semibold">{value}</code>- </p>- <p className="sm:col-span-3">{description}</p>- </div>- );-}--export function XVercelId({ header }: { header: string }) {- const value = parseXVercelId(header);-- return (- <div className="grid gap-4">- <p className="col-span-full text-muted-foreground text-sm">- This header contains a list of Edge regions your request hit, as well as- the region the function was executed in (for both Edge and Serverless):- </p>- <div className="grid grid-cols-4 gap-3">- {value.status === "failed" ? (- <p className="text-destructive">{value.error.message}</p>- ) : (- value.data.map(({ code, location, flag }) => (- <React.Fragment key={code}>- <p className="sm:col-span-1">- <code className="rounded bg-muted p-1 font-semibold">- {code}- </code>- </p>- <p className="sm:col-span-3">- {location} {flag}- </p>- </React.Fragment>- ))- )}- </div>- </div>- );-}--export function CfRay({ header }: { header: string }) {- const value = parseCfRay(header);-- return (- <div className="grid gap-4">- <p className="col-span-full text-muted-foreground text-sm">- This header is a hashed value that encodes information about the data- center and the visitor’s request. The data center the request hit is:- </p>- {value.status === "failed" ? (- <p className="text-destructive">{value.error.message}</p>- ) : (- <div className="grid grid-cols-4 gap-3">- <p className="sm:col-span-1">- <code className="rounded bg-muted p-1 font-semibold">- {value.data.code}- </code>- </p>- <p className="sm:col-span-3">- {value.data.location} {value.data.flag}- </p>- </div>- )}- </div>- );-}--export function Location({- header,- status,-}: {- header: string;- status: number;-}) {- return (- <div className="grid gap-4">- <p className="col-span-full text-muted-foreground text-sm">- This header in HTTP responses is used to redirect the client to a new- URL. It is often seen with status codes like <code>301</code> (Moved- Permanently) and <code>302</code> (Found), guiding the client's- browser to navigate to a different location.- </p>- <div className="grid gap-4 sm:grid-cols-4">- <p className="sm:col-span-1">- <code className="rounded bg-muted p-1 font-semibold">{status}</code>- </p>- <p className="sm:col-span-3">{header}</p>- </div>- </div>- );-}--export function FlyRequestId({ header }: { header: string }) {- const value = parseFlyRequestId(header);-- return (- <div className="grid gap-4">- <p className="col-span-full text-muted-foreground text-sm">- This header is a hashed value that encodes information about the data- center and the visitor’s request. The data center the request hit is:- </p>- {value.status === "failed" ? (- <p className="text-destructive">{value.error.message}</p>- ) : (- <div className="grid grid-cols-4 gap-3">- <p className="sm:col-span-1">- <code className="rounded bg-muted p-1 font-semibold">- {value.data.code}- </code>- </p>- <p className="sm:col-span-3">- {value.data.location} {value.data.flag}- </p>- </div>- )}- </div>- );-}diff --git a/apps/web/src/components/ping-response-analysis/response-header-table.tsx b/apps/web/src/components/ping-response-analysis/response-header-table.tsxdeleted file mode 100644index 031bb7d90..000000000--- a/apps/web/src/components/ping-response-analysis/response-header-table.tsx+++ /dev/null@@ -1,63 +0,0 @@-import {- Table,- TableBody,- TableCaption,- TableCell,- TableHead,- TableHeader,- TableRow,-} from "@openstatus/ui/src/components/table";--import { CopyToClipboardButton } from "./copy-to-clipboard-button";-import { ResponseHeaderAnalysis } from "./response-header-analysis";--export function ResponseHeaderTable({- headers,- status,-}: {- headers: Record<string, string>;- status: number;-}) {- return (- <Table>- <TableCaption className="mt-2">Response Headers</TableCaption>- <TableHeader>- <TableRow>- <TableHead className="md:min-w-[200px]">Key</TableHead>- <TableHead>Value</TableHead>- </TableRow>- </TableHeader>- <TableBody>- {Object.entries(headers).map(([key, value]) => (- <TableRow key={key}>- <TableCell className="group">- <div className="flex min-w-[130px] items-center justify-between gap-2">- <div className="flex items-center justify-between gap-2">- <code className="break-all font-medium">{key}</code>- <ResponseHeaderAnalysis- headerKey={key}- headers={headers}- status={status}- />- </div>- <CopyToClipboardButton- copyValue={key}- className="invisible group-hover:visible"- />- </div>- </TableCell>- <TableCell className="group">- <div className="flex items-center justify-between gap-1">- <code className="break-all">{value}</code>- <CopyToClipboardButton- copyValue={value}- className="invisible group-hover:visible"- />- </div>- </TableCell>- </TableRow>- ))}- </TableBody>- </Table>- );-}diff --git a/apps/web/src/components/ping-response-analysis/response-timing-table.tsx b/apps/web/src/components/ping-response-analysis/response-timing-table.tsxdeleted file mode 100644index 0b7637491..000000000--- a/apps/web/src/components/ping-response-analysis/response-timing-table.tsx+++ /dev/null@@ -1,92 +0,0 @@-import { Info } from "lucide-react";--import {- Popover,- PopoverContent,- PopoverTrigger,-} from "@openstatus/ui/src/components/popover";-import {- Table,- TableBody,- TableCaption,- TableCell,- TableHead,- TableHeader,- TableRow,-} from "@openstatus/ui/src/components/table";--import { timingDict } from "./config";-import type { Timing } from "./utils";-import { getTimingPhases, getTimingPhasesWidth } from "./utils";--export function ResponseTimingTable({- timing,- hideInfo = false,-}: {- timing: Timing;- hideInfo?: boolean;-}) {- const timingPhases = getTimingPhases(timing);- const timingPhasesWidth = getTimingPhasesWidth(timing);-- return (- <Table>- <TableCaption className="mt-2">Response Timing</TableCaption>- <TableHeader>- <TableRow>- <TableHead className="w-[72px] md:w-[150px]">Timing</TableHead>- <TableHead className="w-[100px] md:w-[150px]">Duration</TableHead>- <TableHead />- </TableRow>- </TableHeader>- <TableBody>- {Object.entries(timingPhases).map(([key, value]) => {- const phase = key as keyof typeof timingPhases;- const { short, long, description } = timingDict[phase];- const { preWidth, width } = timingPhasesWidth[phase];-- return (- <TableRow key={key}>- <TableCell>- <div className="flex items-center justify-between gap-2">- <p className="text-muted-foreground">{short}</p>- {!hideInfo ? (- <Popover>- <PopoverTrigger className="text-muted-foreground hover:text-foreground data-[state=open]:text-foreground">- <Info className="mr-2 h-4 w-4" />- </PopoverTrigger>- <PopoverContent>- <p className="font-medium">{long}</p>- <p className="text-muted-foreground text-sm">- {description}- </p>- </PopoverContent>- </Popover>- ) : null}- </div>- </TableCell>- <TableCell>- <code>{value}ms</code>- </TableCell>- <TableCell className="flex w-full">- <div- style={{- width: `${preWidth}%`,- minWidth: "1px",- }}- />- <div- className="h-3 rounded-md bg-foreground"- style={{- width: `${width}%`,- minWidth: "1px",- }}- />- </TableCell>- </TableRow>- );- })}- </TableBody>- </Table>- );-}diff --git a/apps/web/src/components/play/card.tsx b/apps/web/src/components/play/card.tsxdeleted file mode 100644index 125796b28..000000000--- a/apps/web/src/components/play/card.tsx+++ /dev/null@@ -1,62 +0,0 @@-import type { LucideIcon } from "lucide-react";-import Link from "next/link";--import { Button } from "@openstatus/ui/src/components/button";--import { Shell } from "@/components/dashboard/shell";-import { cn } from "@/lib/utils";--export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {- href: string;- title: string;- description: string;- icon?: LucideIcon;- variant?: "default" | "primary";-}--export function Card({- title,- description,- href,- variant = "default",- icon,- className,- ...props-}: CardProps) {- const buttonVariant = variant === "default" ? "outline" : "default";- const shellClassName =- variant === "default" ? "" : "bg-accent text-accent-foreground";-- const isExternal = href.startsWith("http");- const externalProps = isExternal- ? { target: "_blank", rel: "noreferrer" }- : {};-- const Icon = icon;-- return (- <Shell- className={cn(- "group flex flex-col gap-3 hover:shadow-sm dark:hover:border-card-foreground/30",- shellClassName,- className,- )}- {...props}- >- <div className="flex-1 space-y-2">- <h2 className={cn("font-cal text-xl")}>{title}</h2>- <p className="text-muted-foreground">{description}</p>- </div>- <div className="flex items-center justify-between">- <Button variant={buttonVariant} className="rounded-full" asChild>- <Link href={href} {...externalProps}>- Learn more- </Link>- </Button>- <div className="group-hover:-rotate-12 rounded-full border border-border bg-background p-2 transition-transform duration-200">- {Icon && <Icon className="h-5 w-5 text-muted-foreground" />}- </div>- </div>- </Shell>- );-}diff --git a/apps/web/src/components/status-page/datetime-tooltip.tsx b/apps/web/src/components/status-page/datetime-tooltip.tsxdeleted file mode 100644index 92fd79db2..000000000--- a/apps/web/src/components/status-page/datetime-tooltip.tsx+++ /dev/null@@ -1,43 +0,0 @@-"use client";--import { cn } from "@/lib/utils";-import {- Tooltip,- TooltipContent,- TooltipProvider,- TooltipTrigger,-} from "@openstatus/ui/src/components/tooltip";-import { format } from "date-fns";-import { formatInTimeZone } from "date-fns-tz";-import { useState } from "react";--export function DateTimeTooltip({- date = new Date(),- className,-}: {- date?: Date;- className?: string;- // formatter?: (date: Date) => string;-}) {- const [open, setOpen] = useState(false);- return (- <TooltipProvider>- <Tooltip open={open} onOpenChange={setOpen}>- <TooltipTrigger- onClick={() => setOpen(false)}- className={cn(- "font-mono text-muted-foreground underline decoration-muted-foreground/30 decoration-dashed underline-offset-4",- className,- )}- >- {formatInTimeZone(date, "UTC", "LLL dd, y HH:mm (z)")}- </TooltipTrigger>- <TooltipContent>- <p className="font-mono text-muted-foreground text-xs">- {format(date, "LLL dd, y HH:mm (z)")}- </p>- </TooltipContent>- </Tooltip>- </TooltipProvider>- );-}diff --git a/apps/web/src/components/status-page/day-header.tsx b/apps/web/src/components/status-page/day-header.tsxdeleted file mode 100644index 4efe17d5e..000000000--- a/apps/web/src/components/status-page/day-header.tsx+++ /dev/null@@ -1,18 +0,0 @@-import { Badge } from "@openstatus/ui/src/components/badge";-import { Separator } from "@openstatus/ui/src/components/separator";-import { format } from "date-fns";--export function DayHeader({ date }: { date: Date }) {- const isInFuture = date.getTime() > new Date().getTime();- return (- <div className="grid gap-2">- <div className="flex items-center justify-between">- <p className="font-mono text-muted-foreground text-sm">- {format(date, "LLL dd, y")}- </p>- {isInFuture ? <Badge>Coming up</Badge> : null}- </div>- <Separator />- </div>- );-}diff --git a/apps/web/src/components/status-page/feed.tsx b/apps/web/src/components/status-page/feed.tsxdeleted file mode 100644index 4cdbd4fba..000000000--- a/apps/web/src/components/status-page/feed.tsx+++ /dev/null@@ -1,149 +0,0 @@-import { notEmpty } from "@/lib/utils";-import type {- Maintenance,- PublicMonitor,- StatusReportWithUpdates,-} from "@openstatus/db/src/schema";-import { EmptyState } from "../dashboard/empty-state";-import { DayHeader } from "./day-header";-import { MaintenanceContainer } from "./maintenance";-import { StatusReport } from "./status-report";--function isMaintenanceType(value: unknown): value is Maintenance {- return (value as Maintenance).from !== undefined;-}--function isStatusReportType(value: unknown): value is StatusReportWithUpdates {- return (value as StatusReportWithUpdates).statusReportUpdates !== undefined;-}--export function Feed({- maintenances,- monitors,- statusReports,-}: {- maintenances: Maintenance[];- statusReports: StatusReportWithUpdates[];- monitors: PublicMonitor[];-}) {- if ([...maintenances, ...statusReports].length === 0) {- return (- <EmptyState icon="newspaper" title="No entries found." description="" />- );- }-- function groupByDay(- maintenances: Maintenance[],- statusReports: StatusReportWithUpdates[],- ) {- const grouped = [...maintenances, ...statusReports].reduce(- (acc, element) => {- const isMaintenance = isMaintenanceType(element);- const isStatusReport = isStatusReportType(element);-- if (isMaintenance) {- const date = new Date(element.from.toDateString()).getTime();-- const exists = acc.find((item) => item.timestamp === date);-- if (exists) {- exists.list.push({ type: "maintenance", value: element });- } else {- acc.push({- timestamp: date,- list: [{ type: "maintenance", value: element }],- });- }- }-- if (isStatusReport) {- const firstUpdate = element.statusReportUpdates[0]; // make sure we get the correct order from backend query!- const date = (- firstUpdate- ? new Date(firstUpdate?.date.toDateString())- : new Date(new Date().toDateString())- ).getTime();-- const exists = acc.find((item) => item.timestamp === date);-- if (exists) {- exists.list.push({ type: "report", value: element });- } else {- acc.push({- timestamp: date,- list: [{ type: "report", value: element }],- });- }- }-- return acc;- },- [] as {- timestamp: number;- list: (- | {- type: "maintenance";- value: Maintenance;- }- | {- type: "report";- value: StatusReportWithUpdates;- }- )[];- }[],- );-- grouped.sort((a, b) => b.timestamp - a.timestamp);-- return grouped;- }-- return (- <div className="grid gap-8">- {groupByDay(maintenances, statusReports).map((group) => {- return (- <div key={group.timestamp} className="grid gap-4">- <DayHeader date={new Date(group.timestamp)} />- {group.list.map((item, _i) => {- if (item.type === "maintenance") {- const affectedMonitors = item.value.monitors- ?.map((monitorId) => {- const monitor = monitors.find(({ id }) => monitorId === id);- return monitor || undefined;- })- .filter(notEmpty);-- return (- <MaintenanceContainer- key={item.value.id}- maintenance={item.value}- monitors={affectedMonitors || []}- className="rounded-lg border-status-monitoring/10 bg-status-monitoring/5"- />- );- }- if (item.type === "report") {- const affectedMonitors = item.value.monitorsToStatusReports- .map(({ monitorId }) => {- const monitor = monitors.find(({ id }) => monitorId === id);- return monitor || undefined;- })- .filter(notEmpty);-- return (- <div key={item.value.id} className="grid gap-6">- <StatusReport- monitors={affectedMonitors}- report={item.value}- />- </div>- );- }- return null;- })}- </div>- );- })}- </div>- );-}diff --git a/apps/web/src/components/status-page/maintenance.tsx b/apps/web/src/components/status-page/maintenance.tsxdeleted file mode 100644index 95b6f8369..000000000--- a/apps/web/src/components/status-page/maintenance.tsx+++ /dev/null@@ -1,38 +0,0 @@-import { cn } from "@/lib/utils";-import type { Maintenance, PublicMonitor } from "@openstatus/db/src/schema";-import { DateTimeTooltip } from "./datetime-tooltip";-import { StatusReportHeader, StatusReportUpdates } from "./status-report";--export function MaintenanceContainer({- maintenance,- monitors,- className,-}: {- maintenance: Maintenance;- monitors: PublicMonitor[];- className?: string;-}) {- return (- <div className={cn("grid gap-4 border border-transparent p-3", className)}>- <StatusReportHeader- title={maintenance.title}- monitors={monitors || []}- actions={- <p className="font-mono text-muted-foreground text-xs">- <DateTimeTooltip date={maintenance.from} /> -{" "}- <DateTimeTooltip date={maintenance.to} />- </p>- }- />- <StatusReportUpdates- updates={[- {- message: maintenance.message,- id: maintenance.id,- status: "maintenance",- },- ]}- />- </div>- );-}diff --git a/apps/web/src/components/status-page/monitor-list.tsx b/apps/web/src/components/status-page/monitor-list.tsxdeleted file mode 100644index f290c133b..000000000--- a/apps/web/src/components/status-page/monitor-list.tsx+++ /dev/null@@ -1,55 +0,0 @@-import type { z } from "zod";--import type {- Incident,- Maintenance,- PublicMonitor,- selectPublicStatusReportSchemaWithRelation,-} from "@openstatus/db/src/schema";--import { Monitor } from "./monitor";--export const MonitorList = ({- monitors,- statusReports,- incidents,- maintenances,- showMonitorValues,- totalDays,-}: {- monitors: PublicMonitor[];- statusReports: z.infer<typeof selectPublicStatusReportSchemaWithRelation>[];- incidents: Incident[];- maintenances: Maintenance[];- showMonitorValues?: boolean;- totalDays?: number;-}) => {- return (- <div className="grid gap-4">- {monitors.map((monitor, _index) => {- const monitorStatusReport = statusReports.filter((statusReport) =>- statusReport.monitorsToStatusReports.some(- (i) => i.monitor.id === monitor.id,- ),- );- const monitorIncidents = incidents.filter(- (incident) => incident.monitorId === monitor.id,- );- const monitorMaintenances = maintenances.filter((maintenance) =>- maintenance.monitors?.includes(monitor.id),- );- return (- <Monitor- key={monitor.id}- monitor={monitor}- statusReports={monitorStatusReport}- incidents={monitorIncidents}- maintenances={monitorMaintenances}- showValues={showMonitorValues}- totalDays={totalDays}- />- );- })}- </div>- );-};diff --git a/apps/web/src/components/status-page/monitor.tsx b/apps/web/src/components/status-page/monitor.tsxdeleted file mode 100644index d55c63bf2..000000000--- a/apps/web/src/components/status-page/monitor.tsx+++ /dev/null@@ -1,50 +0,0 @@-import type { z } from "zod";--import type {- Incident,- Maintenance,- PublicMonitor,- selectPublicStatusReportSchemaWithRelation,-} from "@openstatus/db/src/schema";--import { Tracker } from "@/components/tracker/tracker";-import { prepareStatusByPeriod } from "@/lib/tb";--export const Monitor = async ({- monitor,- statusReports,- incidents,- maintenances,- showValues,- totalDays,-}: {- monitor: PublicMonitor;- statusReports: z.infer<typeof selectPublicStatusReportSchemaWithRelation>[];- incidents: Incident[];- maintenances: Maintenance[];- showValues?: boolean;- totalDays?: number;-}) => {- const res = await prepareStatusByPeriod(- "45d",- monitor.jobType as "http" | "tcp",- ).getData({- monitorId: String(monitor.id),- days: totalDays,- });-- // TODO: we could handle the `statusReports` here instead of passing it down to the tracker-- if (!res.data) return <div>Something went wrong</div>;-- return (- <Tracker- data={res.data}- reports={statusReports}- incidents={incidents}- maintenances={maintenances}- showValues={showValues}- {...monitor}- />- );-};diff --git a/apps/web/src/components/status-page/process-message.tsx b/apps/web/src/components/status-page/process-message.tsxdeleted file mode 100644index 791a1f8e9..000000000--- a/apps/web/src/components/status-page/process-message.tsx+++ /dev/null@@ -1,34 +0,0 @@-import type { AnchorHTMLAttributes } from "react";-import { Fragment, createElement } from "react";-import { jsx, jsxs } from "react/jsx-runtime";-import rehypeReact from "rehype-react";-import remarkParse from "remark-parse";-import remarkRehype from "remark-rehype";-import { unified } from "unified";--export function ProcessMessage({ value }: { value: string }) {- const result = unified()- .use(remarkParse)- .use(remarkRehype)- .use(rehypeReact, {- createElement,- Fragment,- jsx,- jsxs,- components: {- a: (props: AnchorHTMLAttributes<HTMLAnchorElement>) => {- return (- <a- target="_blank"- rel="noreferrer"- className="underline"- {...props}- />- );- },- } as { [key: string]: React.ComponentType<unknown> },- })- .processSync(value).result;-- return result;-}diff --git a/apps/web/src/components/status-page/status-check.tsx b/apps/web/src/components/status-page/status-check.tsxdeleted file mode 100644index 0870de347..000000000--- a/apps/web/src/components/status-page/status-check.tsx+++ /dev/null@@ -1,71 +0,0 @@-import type {- Incident,- Maintenance,- StatusReport,-} from "@openstatus/db/src/schema";-import type { StatusVariant } from "@openstatus/tracker";-import { Tracker } from "@openstatus/tracker";--import { cn } from "@/lib/utils";-import { Icons } from "../icons";-import { DateTimeTooltip } from "./datetime-tooltip";--export async function StatusCheck({- statusReports,- incidents,- maintenances,-}: {- statusReports?: StatusReport[];- incidents?: Incident[];- maintenances?: Maintenance[];-}) {- const tracker = new Tracker({ statusReports, incidents, maintenances });- const className = tracker.currentClassName;- const details = tracker.currentDetails;-- return (- <div- className={cn(- "flex items-center gap-3 rounded-lg border p-3",- containerClassName(details.variant),- )}- >- <span className={cn("rounded-full border p-1.5", className)}>- <StatusIcon variant={details.variant} />- </span>- <div className="flex w-full flex-wrap items-center justify-between gap-1">- <h2 className="font-semibold text-xl">{details.long}</h2>- <p className="text-xs">- <DateTimeTooltip date={new Date()} />- </p>- </div>- </div>- );-}--function containerClassName(variant: StatusVariant) {- if (variant === "incident") return "bg-status-down/10 border-status-down/20";- if (variant === "maintenance")- return "bg-status-monitoring/10 border-status-monitoring/20";- if (variant === "degraded")- return "bg-status-degraded/10 border-status-degraded/20";- if (variant === "down") return "bg-status-down/10 border-status-down/20";- return "bg-status-operational/10 border-status-operational/20";-}--export function StatusIcon({ variant }: { variant: StatusVariant }) {- if (variant === "incident") {- const AlertTriangleIcon = Icons["alert-triangle"];- return <AlertTriangleIcon className="h-5 w-5 text-background" />;- }- if (variant === "maintenance") {- return <Icons.hammer className="h-5 w-5 text-background" />;- }- if (variant === "degraded") {- return <Icons.minus className="h-5 w-5 text-background" />;- }- if (variant === "down") {- return <Icons.minus className="h-5 w-5 text-background" />;- }- return <Icons.check className="h-5 w-5 text-background" />;-}diff --git a/apps/web/src/components/status-page/status-report.tsx b/apps/web/src/components/status-page/status-report.tsxdeleted file mode 100644index 460b1b115..000000000--- a/apps/web/src/components/status-page/status-report.tsx+++ /dev/null@@ -1,149 +0,0 @@-"use client";--import { ChevronRight } from "lucide-react";-import Link from "next/link";-import { useParams } from "next/navigation";--import type {- PublicMonitor,- StatusReportWithUpdates,-} from "@openstatus/db/src/schema";-import { Badge } from "@openstatus/ui/src/components/badge";--import { setPrefixUrl } from "@/app/status-page/[domain]/utils";-import { statusDict } from "@/data/incidents-dictionary";-import { cn } from "@/lib/utils";-import { Icons } from "../icons";-import { DateTimeTooltip } from "./datetime-tooltip";-import { ProcessMessage } from "./process-message";--function StatusReport({- report,- monitors,- actions,- isDemo,-}: {- report: StatusReportWithUpdates;- monitors: PublicMonitor[];- actions?: React.ReactNode;- isDemo?: boolean;-}) {- const params = useParams<{ domain: string }>();-- if (isDemo) {- return (- <div className="group grid gap-4 rounded-lg border border-transparent p-3 hover:border-border hover:bg-muted/20">- <StatusReportHeader title={report.title} {...{ monitors, actions }} />- <StatusReportUpdates updates={report.statusReportUpdates} />- </div>- );- }-- return (- <Link href={setPrefixUrl(`/events/report/${report.id}`, params)}>- <div className="group grid gap-4 rounded-lg border border-transparent p-3 hover:border-border hover:bg-muted/20">- <StatusReportHeader title={report.title} {...{ monitors, actions }} />- <StatusReportUpdates updates={report.statusReportUpdates} />- </div>- </Link>- );-}--// REMINDER: we had the report?.id in the link href to features page to be clickable-function StatusReportHeader({- title,- monitors,- actions,-}: {- title: StatusReportWithUpdates["title"];- monitors: PublicMonitor[];- actions?: React.ReactNode;-}) {- return (- <div className="flex flex-wrap items-center justify-between gap-2">- <div className="flex flex-wrap items-center gap-2">- <h3 className="font-semibold text-xl">{title}</h3>- <ul className="flex flex-wrap gap-2">- {monitors.map((monitor) => (- <li key={monitor.id}>- <Badge variant="secondary">{monitor.name}</Badge>- </li>- ))}- </ul>- </div>- <div>- {/* NOT IDEAL BUT IT WORKS */}- {actions ? (- actions- ) : (- <ChevronRight className="h-4 w-4 text-muted-foreground group-hover:text-foreground" />- )}- </div>- </div>- );-}--interface StatusReportUpdatesProps {- updates: {- date?: Date;- id: number;- status:- | "investigating"- | "identified"- | "monitoring"- | "resolved"- | "maintenance";- message: string;- }[];-}--function StatusReportUpdates({ updates }: StatusReportUpdatesProps) {- return (- <div className="grid gap-4">- {updates.map((update, i) => {- const { icon, label, color } = statusDict[update.status];- const StatusIcon = Icons[icon];- return (- <div- key={update.id}- className={cn(- "group -m-2 relative flex gap-4 border border-transparent p-2",- )}- >- <div className="relative">- <div- className={cn(- "rounded-full border border-border bg-background p-2",- i === 0 ? color : null,- )}- >- <StatusIcon className="h-4 w-4" />- </div>- {i !== updates.length - 1 ? (- <div className="absolute inset-x-0 mx-auto h-full w-[2px] bg-muted" />- ) : null}- </div>- <div className="mt-2 grid flex-1 gap-1">- <div className="flex items-center justify-between gap-2">- <p className="font-medium text-sm">{label}</p>- {update.date ? (- <p className="mt-px text-muted-foreground text-xs">- <DateTimeTooltip date={new Date(update.date)} />- </p>- ) : null}- </div>- <div className="prose dark:prose-invert">- <ProcessMessage value={update.message} />- </div>- </div>- </div>- );- })}- </div>- );-}--StatusReport.Header = StatusReportHeader;-StatusReport.Updates = StatusReportUpdates;--export { StatusReport, StatusReportHeader, StatusReportUpdates };diff --git a/apps/web/src/components/support/action.ts b/apps/web/src/components/support/action.tsdeleted file mode 100644index 694798e2f..000000000--- a/apps/web/src/components/support/action.ts+++ /dev/null@@ -1,37 +0,0 @@-"use server";--import { env } from "@/env";-import type { FormValues } from "./contact-form";--export async function handleSlackWebhookSupport(values: FormValues) {- console.log(env);- if (!env.SLACK_SUPPORT_WEBHOOK_URL) return { error: "Missing webhook URL." };-- try {- await fetch(env.SLACK_SUPPORT_WEBHOOK_URL, {- method: "POST",- body: JSON.stringify({- blocks: [- {- type: "section",- text: {- type: "mrkdwn",- text: `*New Support Request!* [${process.env.NODE_ENV.toUpperCase()}]\n\n-*Name:* ${values.name}\n-*Type:* ${values.type}\n-*Blocker:* ${values.blocker ? "Yes" : "No"}\n-*Email:* ${values.email}\n-*Message:* ${values.message}\n-`,- },- },- ],- }),- });- } catch (e) {- console.log(e);- return { error: "Something went wrong. Please try again." };- }-- return { error: null };-}diff --git a/apps/web/src/components/support/bubble.tsx b/apps/web/src/components/support/bubble.tsxdeleted file mode 100644index 48105d0fe..000000000--- a/apps/web/src/components/support/bubble.tsx+++ /dev/null@@ -1,94 +0,0 @@-"use client";--import { MessageCircle } from "lucide-react";-import { useState } from "react";--import {- Popover,- PopoverContent,- PopoverTrigger,-} from "@openstatus/ui/src/components/popover";--import { Button } from "@openstatus/ui/src/components/button";-import { useSession } from "next-auth/react";-import { ContactForm } from "./contact-form";--export function Bubble() {- const [open, setOpen] = useState(false);- const [formVisible, setFormVisible] = useState(false);- const session = useSession();-- return (- <div className="fixed right-4 bottom-4 z-50 rounded-full bg-background">- <Popover- open={open}- onOpenChange={(value) => {- if (formVisible && !value) {- setTimeout(() => setFormVisible(false), 300); // reset form after popover closes- }- setOpen(value);- }}- >- <PopoverTrigger className="rounded-full border p-2 shadow-sm focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring">- <MessageCircle className="h-6 w-6" />- </PopoverTrigger>- <PopoverContent- side="top"- sideOffset={8}- align="end"- alignOffset={0}- className={formVisible ? "w-80" : undefined}- >- {!formVisible ? (- <div className="space-y-2">- <p className="font-medium text-foreground">Need help?</p>- <p className="text-muted-foreground text-sm">- We are here to help you with any questions you may have.- </p>- <Button variant="ghost" className="w-full" asChild>- <a- target="_blank"- rel="noreferrer"- href="https://cal.com/team/openstatus/30min"- >- Book a call- </a>- </Button>- <Button variant="ghost" className="w-full" asChild>- <a- target="_blank"- rel="noreferrer"- href="https://docs.openstatus.dev"- >- Browse documentation- </a>- </Button>- <Button variant="ghost" className="w-full" asChild>- <a target="_blank" rel="noreferrer" href="/discord">- Join Discord- </a>- </Button>- <Button- variant="ghost"- className="w-full"- onClick={() => setFormVisible((prev) => !prev)}- >- Get in touch- </Button>- </div>- ) : (- <ContactForm- defaultValues={{- name:- session?.data?.user?.name ||- `${session?.data?.user?.firstName} ${session?.data?.user?.lastName}`,- email: session?.data?.user?.email ?? undefined,- }}- onSubmit={() => setOpen(false)}- />- )}- </PopoverContent>- </Popover>- </div>- );-}diff --git a/apps/web/src/components/support/contact-form.tsx b/apps/web/src/components/support/contact-form.tsxdeleted file mode 100644index 155a360ea..000000000--- a/apps/web/src/components/support/contact-form.tsx+++ /dev/null@@ -1,187 +0,0 @@-"use client";--import { zodResolver } from "@hookform/resolvers/zod";-import { useTransition } from "react";-import { useForm } from "react-hook-form";-import { z } from "zod";--import {- Button,- Checkbox,- Form,- FormControl,- FormField,- FormItem,- FormLabel,- FormMessage,- Input,- Select,- SelectContent,- SelectItem,- SelectTrigger,- SelectValue,- Textarea,-} from "@openstatus/ui";--import { toast } from "@/lib/toast";-import { LoadingAnimation } from "../loading-animation";-import { handleSlackWebhookSupport } from "./action";--export const types = [- {- label: "Report a bug",- value: "bug" as const,- },- {- label: "Book a demo",- value: "demo" as const,- },- {- label: "Suggest a feature",- value: "feature" as const,- },- {- label: "Report a security issue",- value: "security" as const,- },- {- label: "Something else",- value: "question" as const,- },-];--export const FormSchema = z.object({- name: z.string().min(1),- type: z.enum(["bug", "demo", "feature", "security", "question"]),- email: z.string().email(),- message: z.string().min(1),- blocker: z.boolean().optional().default(false),-});--export type FormValues = z.infer<typeof FormSchema>;--interface ContactFormProps {- defaultValues?: Partial<FormValues>;- onSubmit?: () => void;-}--export function ContactForm({- defaultValues,- onSubmit: handleSubmit,-}: ContactFormProps) {- const form = useForm<FormValues>({- resolver: zodResolver(FormSchema),- defaultValues,- });- const [isPending, startTransition] = useTransition();-- async function onSubmit(data: FormValues) {- startTransition(async () => {- const result = await handleSlackWebhookSupport(data);- if (result.error) {- toast.error(result.error);- } else {- handleSubmit?.();- toast.success(- "Your message has been sent! We will get back to you soon.",- );- }- });- }-- const watchType = form.watch("type");-- return (- <Form {...form}>- <form onSubmit={form.handleSubmit(onSubmit)} className="space-y-3">- <FormField- control={form.control}- name="name"- render={({ field }) => (- <FormItem>- <FormLabel>Name</FormLabel>- <FormControl>- <Input placeholder="Max" {...field} />- </FormControl>- <FormMessage />- </FormItem>- )}- />- <FormField- control={form.control}- name="email"- render={({ field }) => (- <FormItem>- <FormLabel>Email</FormLabel>- <FormControl>- <Input placeholder="[email protected]" {...field} />- </FormControl>- <FormMessage />- </FormItem>- )}- />- <FormField- control={form.control}- name="type"- render={({ field }) => (- <FormItem>- <FormLabel>Type</FormLabel>- <Select onValueChange={field.onChange} defaultValue={field.value}>- <FormControl>- <SelectTrigger>- <SelectValue placeholder="What you need help with" />- </SelectTrigger>- </FormControl>- <SelectContent>- {types.map((type) => (- <SelectItem key={type.value} value={type.value}>- {type.label}- </SelectItem>- ))}- </SelectContent>- </Select>- <FormMessage />- </FormItem>- )}- />- {watchType ? (- <FormField- control={form.control}- name="message"- render={({ field }) => (- <FormItem>- <FormLabel>Message</FormLabel>- <FormControl>- <Textarea placeholder="Tell us about it..." {...field} />- </FormControl>- <FormMessage />- </FormItem>- )}- />- ) : null}- {watchType === "bug" ? (- <FormField- control={form.control}- name="blocker"- render={({ field }) => (- <FormItem className="flex flex-row items-start space-x-2 space-y-0">- <FormControl>- <Checkbox- checked={field.value}- onCheckedChange={field.onChange}- />- </FormControl>- <FormLabel className="font-normal leading-none">- This bug prevents me from using the product.- </FormLabel>- </FormItem>- )}- />- ) : null}- <Button type="submit" className="w-full" disabled={isPending}>- {isPending ? <LoadingAnimation /> : "Submit"}- </Button>- </form>- </Form>- );-}diff --git a/apps/web/src/components/svg/documenso.tsx b/apps/web/src/components/svg/documenso.tsxdeleted file mode 100644index c5d4259df..000000000--- a/apps/web/src/components/svg/documenso.tsx+++ /dev/null@@ -1,80 +0,0 @@-import type { SVGAttributes } from "react";--export function Documenso(props: SVGAttributes<SVGSVGElement>) {- return (- <svg viewBox="0 0 226 32" xmlns="http://www.w3.org/2000/svg" {...props}>- <path- d="M52.9387 28H44.6887V4.72727H53.0069C55.3478 4.72727 57.363 5.19318 59.0524 6.125C60.7418 7.04924 62.041 8.37879 62.9501 10.1136C63.8668 11.8485 64.3251 13.9242 64.3251 16.3409C64.3251 18.7652 63.8668 20.8485 62.9501 22.5909C62.041 24.3333 60.7342 25.6705 59.0296 26.6023C57.3327 27.5341 55.3024 28 52.9387 28ZM49.6092 23.7841H52.7342C54.1887 23.7841 55.4122 23.5265 56.4047 23.0114C57.4047 22.4886 58.1547 21.6818 58.6547 20.5909C59.1622 19.4924 59.416 18.0758 59.416 16.3409C59.416 14.6212 59.1622 13.2159 58.6547 12.125C58.1547 11.0341 57.4084 10.2311 56.416 9.71591C55.4236 9.20076 54.2001 8.94318 52.7456 8.94318H49.6092V23.7841ZM75.0988 28.3409C73.3336 28.3409 71.8071 27.9659 70.5192 27.2159C69.2389 26.4583 68.2503 25.4053 67.5533 24.0568C66.8564 22.7008 66.5079 21.1288 66.5079 19.3409C66.5079 17.5379 66.8564 15.9621 67.5533 14.6136C68.2503 13.2576 69.2389 12.2045 70.5192 11.4545C71.8071 10.697 73.3336 10.3182 75.0988 10.3182C76.8639 10.3182 78.3867 10.697 79.667 11.4545C80.9548 12.2045 81.9473 13.2576 82.6442 14.6136C83.3412 15.9621 83.6897 17.5379 83.6897 19.3409C83.6897 21.1288 83.3412 22.7008 82.6442 24.0568C81.9473 25.4053 80.9548 26.4583 79.667 27.2159C78.3867 27.9659 76.8639 28.3409 75.0988 28.3409ZM75.1215 24.5909C75.9245 24.5909 76.595 24.3636 77.1329 23.9091C77.6707 23.447 78.0761 22.8182 78.3488 22.0227C78.6291 21.2273 78.7692 20.322 78.7692 19.3068C78.7692 18.2917 78.6291 17.3864 78.3488 16.5909C78.0761 15.7955 77.6707 15.1667 77.1329 14.7045C76.595 14.2424 75.9245 14.0114 75.1215 14.0114C74.3109 14.0114 73.6291 14.2424 73.0761 14.7045C72.5306 15.1667 72.1177 15.7955 71.8374 16.5909C71.5647 17.3864 71.4283 18.2917 71.4283 19.3068C71.4283 20.322 71.5647 21.2273 71.8374 22.0227C72.1177 22.8182 72.5306 23.447 73.0761 23.9091C73.6291 24.3636 74.3109 24.5909 75.1215 24.5909ZM94.0571 28.3409C92.2692 28.3409 90.7314 27.9621 89.4435 27.2045C88.1632 26.4394 87.1783 25.3788 86.4889 24.0227C85.8071 22.6667 85.4662 21.1061 85.4662 19.3409C85.4662 17.553 85.8109 15.9848 86.5003 14.6364C87.1973 13.2803 88.1859 12.2235 89.4662 11.4659C90.7465 10.7008 92.2692 10.3182 94.0344 10.3182C95.5571 10.3182 96.8904 10.5947 98.0344 11.1477C99.1783 11.7008 100.084 12.4773 100.75 13.4773C101.417 14.4773 101.784 15.6515 101.853 17H97.2844C97.1556 16.1288 96.8147 15.428 96.2617 14.8977C95.7162 14.3598 95.0003 14.0909 94.1139 14.0909C93.3639 14.0909 92.7086 14.2955 92.148 14.7045C91.595 15.1061 91.1632 15.6932 90.8526 16.4659C90.542 17.2386 90.3867 18.1742 90.3867 19.2727C90.3867 20.3864 90.5382 21.3333 90.8412 22.1136C91.1518 22.8939 91.5874 23.4886 92.148 23.8977C92.7086 24.3068 93.3639 24.5114 94.1139 24.5114C94.667 24.5114 95.1632 24.3977 95.6026 24.1705C96.0495 23.9432 96.417 23.6136 96.7048 23.1818C97.0003 22.7424 97.1935 22.2159 97.2844 21.6023H101.853C101.777 22.9356 101.413 24.1098 100.762 25.125C100.118 26.1326 99.2276 26.9205 98.0912 27.4886C96.9548 28.0568 95.6101 28.3409 94.0571 28.3409ZM115.479 20.5682V10.5455H120.319V28H115.672V24.8295H115.49C115.096 25.8523 114.441 26.6742 113.524 27.2955C112.615 27.9167 111.505 28.2273 110.194 28.2273C109.028 28.2273 108.001 27.9621 107.115 27.4318C106.229 26.9015 105.535 26.1477 105.035 25.1705C104.543 24.1932 104.293 23.0227 104.285 21.6591V10.5455H109.126V20.7955C109.134 21.8258 109.41 22.6402 109.956 23.2386C110.501 23.8371 111.232 24.1364 112.149 24.1364C112.732 24.1364 113.278 24.0038 113.785 23.7386C114.293 23.4659 114.702 23.0644 115.013 22.5341C115.331 22.0038 115.486 21.3485 115.479 20.5682ZM123.525 28V10.5455H128.139V13.625H128.343C128.707 12.6023 129.313 11.7955 130.161 11.2045C131.01 10.6136 132.025 10.3182 133.207 10.3182C134.404 10.3182 135.423 10.6174 136.264 11.2159C137.104 11.8068 137.665 12.6098 137.945 13.625H138.127C138.483 12.625 139.127 11.8258 140.059 11.2273C140.998 10.6212 142.108 10.3182 143.389 10.3182C145.017 10.3182 146.339 10.8371 147.354 11.875C148.377 12.9053 148.889 14.3674 148.889 16.2614V28H144.059V17.2159C144.059 16.2462 143.801 15.5189 143.286 15.0341C142.771 14.5492 142.127 14.3068 141.354 14.3068C140.476 14.3068 139.79 14.5871 139.298 15.1477C138.805 15.7008 138.559 16.4318 138.559 17.3409V28H133.866V17.1136C133.866 16.2576 133.62 15.5758 133.127 15.0682C132.642 14.5606 132.002 14.3068 131.207 14.3068C130.669 14.3068 130.184 14.4432 129.752 14.7159C129.328 14.9811 128.991 15.3561 128.741 15.8409C128.491 16.3182 128.366 16.8788 128.366 17.5227V28H123.525ZM160 28.3409C158.205 28.3409 156.659 27.9773 155.364 27.25C154.076 26.5152 153.084 25.4773 152.387 24.1364C151.69 22.7879 151.341 21.1932 151.341 19.3523C151.341 17.5568 151.69 15.9811 152.387 14.625C153.084 13.2689 154.065 12.2121 155.33 11.4545C156.603 10.697 158.095 10.3182 159.807 10.3182C160.959 10.3182 162.031 10.5038 163.023 10.875C164.023 11.2386 164.894 11.7879 165.637 12.5227C166.387 13.2576 166.97 14.1818 167.387 15.2955C167.803 16.4015 168.012 17.697 168.012 19.1818V20.5114H153.273V17.5114H163.455C163.455 16.8144 163.303 16.197 163 15.6591C162.697 15.1212 162.277 14.7008 161.739 14.3977C161.209 14.0871 160.591 13.9318 159.887 13.9318C159.152 13.9318 158.5 14.1023 157.932 14.4432C157.371 14.7765 156.932 15.2273 156.614 15.7955C156.296 16.3561 156.133 16.9811 156.125 17.6705V20.5227C156.125 21.3864 156.284 22.1326 156.603 22.7614C156.928 23.3902 157.387 23.875 157.978 24.2159C158.568 24.5568 159.269 24.7273 160.08 24.7273C160.618 24.7273 161.11 24.6515 161.557 24.5C162.004 24.3485 162.387 24.1212 162.705 23.8182C163.023 23.5152 163.265 23.1439 163.432 22.7045L167.909 23C167.682 24.0758 167.216 25.0152 166.512 25.8182C165.815 26.6136 164.913 27.2348 163.807 27.6818C162.709 28.1212 161.44 28.3409 160 28.3409ZM175.345 17.9091V28H170.504V10.5455H175.118V13.625H175.322C175.709 12.6098 176.356 11.8068 177.265 11.2159C178.175 10.6174 179.277 10.3182 180.572 10.3182C181.784 10.3182 182.841 10.5833 183.743 11.1136C184.644 11.6439 185.345 12.4015 185.845 13.3864C186.345 14.3636 186.595 15.5303 186.595 16.8864V28H181.754V17.75C181.762 16.6818 181.489 15.8485 180.936 15.25C180.383 14.6439 179.621 14.3409 178.652 14.3409C178 14.3409 177.425 14.4811 176.925 14.7614C176.432 15.0417 176.046 15.4508 175.765 15.9886C175.493 16.5189 175.353 17.1591 175.345 17.9091ZM204.266 15.5227L199.835 15.7955C199.759 15.4167 199.596 15.0758 199.346 14.7727C199.096 14.4621 198.766 14.2159 198.357 14.0341C197.956 13.8447 197.475 13.75 196.914 13.75C196.164 13.75 195.532 13.9091 195.016 14.2273C194.501 14.5379 194.244 14.9545 194.244 15.4773C194.244 15.8939 194.41 16.2462 194.744 16.5341C195.077 16.822 195.649 17.053 196.46 17.2273L199.619 17.8636C201.316 18.2121 202.581 18.7727 203.414 19.5455C204.247 20.3182 204.664 21.3333 204.664 22.5909C204.664 23.7348 204.327 24.7386 203.653 25.6023C202.986 26.4659 202.069 27.1402 200.903 27.625C199.744 28.1023 198.407 28.3409 196.891 28.3409C194.581 28.3409 192.74 27.8598 191.369 26.8977C190.005 25.928 189.206 24.6098 188.971 22.9432L193.732 22.6932C193.876 23.3977 194.225 23.9356 194.778 24.3068C195.331 24.6705 196.039 24.8523 196.903 24.8523C197.751 24.8523 198.433 24.6894 198.948 24.3636C199.471 24.0303 199.736 23.6023 199.744 23.0795C199.736 22.6402 199.55 22.2803 199.187 22C198.823 21.7121 198.263 21.4924 197.505 21.3409L194.482 20.7386C192.778 20.3977 191.509 19.8068 190.675 18.9659C189.85 18.125 189.437 17.053 189.437 15.75C189.437 14.6288 189.74 13.6629 190.346 12.8523C190.96 12.0417 191.819 11.4167 192.925 10.9773C194.039 10.5379 195.342 10.3182 196.835 10.3182C199.039 10.3182 200.774 10.7841 202.039 11.7159C203.312 12.6477 204.054 13.9167 204.266 15.5227ZM214.932 28.3409C213.167 28.3409 211.64 27.9659 210.353 27.2159C209.072 26.4583 208.084 25.4053 207.387 24.0568C206.69 22.7008 206.341 21.1288 206.341 19.3409C206.341 17.5379 206.69 15.9621 207.387 14.6136C208.084 13.2576 209.072 12.2045 210.353 11.4545C211.64 10.697 213.167 10.3182 214.932 10.3182C216.697 10.3182 218.22 10.697 219.5 11.4545C220.788 12.2045 221.781 13.2576 222.478 14.6136C223.175 15.9621 223.523 17.5379 223.523 19.3409C223.523 21.1288 223.175 22.7008 222.478 24.0568C221.781 25.4053 220.788 26.4583 219.5 27.2159C218.22 27.9659 216.697 28.3409 214.932 28.3409ZM214.955 24.5909C215.758 24.5909 216.428 24.3636 216.966 23.9091C217.504 23.447 217.909 22.8182 218.182 22.0227C218.462 21.2273 218.603 20.322 218.603 19.3068C218.603 18.2917 218.462 17.3864 218.182 16.5909C217.909 15.7955 217.504 15.1667 216.966 14.7045C216.428 14.2424 215.758 14.0114 214.955 14.0114C214.144 14.0114 213.462 14.2424 212.909 14.7045C212.364 15.1667 211.951 15.7955 211.671 16.5909C211.398 17.3864 211.262 18.2917 211.262 19.3068C211.262 20.322 211.398 21.2273 211.671 22.0227C211.951 22.8182 212.364 23.447 212.909 23.9091C213.462 24.3636 214.144 24.5909 214.955 24.5909Z"- fill="currentColor"- />- <path- d="M13.2564 3.34376C12.8462 3.71643 12.3924 4.15417 11.8738 4.66593C11.5454 4.92372 11.1405 5.06921 10.7196 5.0773L8.98205 5.11072L9.48827 4.60449C12.5579 1.53483 14.0928 -6.50545e-08 16 0C17.9072 6.50545e-08 19.4421 1.53483 22.5117 4.60448L23.017 5.10979L21.3391 5.07818C20.8661 5.06927 20.4128 4.88687 20.0654 4.56564L19.0593 3.63519C18.9638 3.54571 18.8706 3.45951 18.7796 3.37649L18.7253 3.32626L18.7244 3.32626C18.3807 3.01468 18.0676 2.74898 17.7726 2.52387C16.9204 1.87364 16.4243 1.72668 16 1.72668C15.5757 1.72668 15.0796 1.87364 14.2274 2.52387C13.9288 2.75173 13.6117 3.02115 13.2631 3.33766L13.2627 3.33767L13.2564 3.34376Z"- fill="currentColor"- />- <path- d="M28.6234 13.2203C28.5405 13.1294 28.4545 13.0364 28.3652 12.9411L27.4342 11.9344C27.1132 11.5873 26.9308 11.1344 26.9217 10.6617L26.8893 8.98205L27.3955 9.48827C30.4652 12.5579 32 14.0928 32 16C32 17.9072 30.4652 19.4421 27.3955 22.5117L26.8893 23.018L26.9217 21.3383C26.9308 20.8656 27.1132 20.4127 27.4342 20.0656L28.3651 19.0591C28.4544 18.9637 28.5405 18.8706 28.6234 18.7797L28.6737 18.7253V18.7244C28.9853 18.3807 29.251 18.0676 29.4761 17.7726C30.1264 16.9204 30.2733 16.4243 30.2733 16C30.2733 15.5757 30.1264 15.0796 29.4761 14.2274C29.251 13.9324 28.9853 13.6193 28.6737 13.2756V13.2747L28.6234 13.2203Z"- fill="currentColor"- />- <path- d="M18.7604 28.641C18.8631 28.5475 18.9685 28.45 19.077 28.3483L20.0656 27.4341C20.4129 27.113 20.8659 26.9307 21.3388 26.9217L23.0175 26.8897L22.5117 27.3955C19.4421 30.4652 17.9072 32 16 32C14.0928 32 12.5579 30.4652 9.48828 27.3955L8.98205 26.8893L10.6653 26.9216C11.1359 26.9307 11.5871 27.1115 11.9337 27.43L12.6125 28.0538C13.2322 28.6475 13.7531 29.1142 14.2274 29.4761C15.0796 30.1264 15.5757 30.2733 16 30.2733C16.4243 30.2733 16.9204 30.1264 17.7726 29.4761C18.0712 29.2483 18.3883 28.9788 18.7369 28.6623H18.7373L18.7604 28.641Z"- fill="currentColor"- />- <path- d="M3.34582 18.7459C3.44863 18.859 3.55638 18.9755 3.66926 19.0957L4.56609 20.0654C4.88718 20.4127 5.06957 20.8657 5.07861 21.3385L5.11072 23.018L4.60449 22.5117C1.53483 19.4421 0 17.9072 0 16C0 14.0928 1.53483 12.5579 4.60448 9.48828L5.11025 8.98251L5.07848 10.6611C5.06952 11.1341 4.88706 11.5874 4.56578 11.9347L3.64116 12.9343C3.54928 13.0324 3.46085 13.1279 3.37575 13.2212L3.32626 13.2747L3.32626 13.2756C3.01468 13.6193 2.74898 13.9324 2.52387 14.2274C1.87364 15.0796 1.72668 15.5757 1.72668 16C1.72668 16.4243 1.87364 16.9204 2.52387 17.7726C2.75178 18.0713 3.02128 18.3885 3.33789 18.7372L3.33789 18.7373L3.34582 18.7459Z"- fill="currentColor"- />- <path- d="M3.33789 13.2621L4.56578 11.9347C4.85051 11.6269 5.02621 11.2359 5.06873 10.8216C5.07379 10.1391 5.08497 9.54383 5.10959 9.01766L5.11095 8.94563L5.11317 8.94342C5.13584 8.48885 5.16906 8.08652 5.21775 7.72437C5.36059 6.66197 5.60744 6.20728 5.90746 5.90726C6.20748 5.60724 6.66217 5.36039 7.72457 5.21755C8.09344 5.16796 8.50398 5.13441 8.96897 5.11173L8.96975 5.11095L8.99512 5.11046C9.54009 5.08446 10.1595 5.07311 10.8737 5.06816C11.3044 5.02528 11.71 4.83847 12.0234 4.53553L13.2626 3.33769H12.5469C8.20571 3.33769 6.03514 3.33769 4.68651 4.68631C3.33789 6.03494 3.33789 8.20551 3.33789 12.5467V13.2621Z"- fill="currentColor"- />- <path- d="M3.33789 18.7373V19.4534C3.33789 23.7945 3.33789 25.9651 4.68651 27.3137C6.03514 28.6624 8.20571 28.6624 12.5469 28.6624H19.4536C23.7947 28.6624 25.9653 28.6624 27.3139 27.3137C28.6626 25.9651 28.6626 23.7945 28.6626 19.4534V18.7374L27.4342 20.0656C27.1503 20.3727 26.9748 20.7625 26.9317 21.1756C26.9266 21.8729 26.9151 22.4793 26.8894 23.0138L26.889 23.0302L26.8885 23.0308C26.8659 23.496 26.8323 23.9067 26.7827 24.2757C26.6399 25.3381 26.393 25.7928 26.093 26.0928C25.793 26.3928 25.3383 26.6397 24.2759 26.7825C23.9136 26.8312 23.5111 26.8644 23.0563 26.8871L23.0544 26.889L22.9913 26.8902C22.4627 26.9152 21.8642 26.9264 21.1775 26.9315C20.7637 26.9742 20.3731 27.1498 20.0656 27.4341L18.7373 28.6623L13.2747 28.6623L11.9337 27.43C11.6271 27.1482 11.2387 26.9742 10.8273 26.9316C10.1319 26.9264 9.52698 26.915 8.99344 26.8895L8.96975 26.889L8.96903 26.8883C8.50402 26.8656 8.09345 26.8321 7.72457 26.7825C6.66217 26.6397 6.20748 26.3928 5.90746 26.0928C5.60744 25.7928 5.36059 25.3381 5.21775 24.2757C5.16816 23.9068 5.13461 23.4962 5.11192 23.0312L5.11095 23.0302L5.11034 22.9984C5.08518 22.4679 5.07383 21.867 5.06872 21.1769C5.02595 20.7633 4.85039 20.3729 4.56609 20.0654L3.33789 18.7373Z"- fill="currentColor"- />- <path- d="M26.9317 10.8243C26.9748 11.2375 27.1502 11.6273 27.4342 11.9344L28.6626 13.2626V12.5467C28.6626 8.20551 28.6626 6.03494 27.3139 4.68631C25.9653 3.33769 23.7947 3.33769 19.4536 3.33769H18.7376L20.0654 4.56564C20.3735 4.85052 20.7648 5.02621 21.1794 5.06854C21.8578 5.07358 22.45 5.08465 22.9738 5.10898L23.0785 5.11095L23.0817 5.11423C23.5261 5.13686 23.9203 5.16976 24.2759 5.21756C25.3383 5.36039 25.793 5.60724 26.093 5.90726C26.393 6.20728 26.6399 6.66197 26.7827 7.72437C26.8323 8.09336 26.8659 8.50406 26.8885 8.96924L26.889 8.96975L26.8894 8.98624C26.9151 9.52079 26.9266 10.1271 26.9317 10.8243Z"- fill="currentColor"- />- <path- d="M14.6901 8.34998L13.5255 9.33844C13.3177 9.51483 13.0573 9.61738 12.785 9.63007L10.8358 9.72089L11.8522 8.70451C13.814 6.74265 14.795 5.76172 16.0139 5.76172C17.2328 5.76172 18.2138 6.74265 20.1756 8.70451L21.1858 9.71469L19.2093 9.62904C18.9322 9.61703 18.6673 9.51196 18.4572 9.33078L17.578 8.57232C17.2694 8.28187 17.0077 8.05229 16.7689 7.87008C16.2796 7.49679 16.0941 7.48829 16.0139 7.48829C15.9337 7.48829 15.7482 7.49679 15.2589 7.87008C15.2511 7.87603 15.2433 7.88204 15.2355 7.88809L15.2343 7.88808L15.2228 7.89787C15.0589 8.02496 14.8839 8.17426 14.6901 8.34998Z"- fill="currentColor"- />- <path- d="M24.0665 15.1491C23.7338 14.7285 23.2563 14.2319 22.565 13.5366C22.4519 13.356 22.3868 13.1479 22.3781 12.9322L22.2926 10.8215L23.2969 11.8258C25.2588 13.7877 26.2397 14.7686 26.2397 15.9875C26.2397 17.2065 25.2588 18.1874 23.2969 20.1493L22.2872 21.159L22.3845 19.1417C22.398 18.8614 22.5068 18.5941 22.6927 18.3839L23.4313 17.5494C23.6644 17.3016 23.8582 17.0841 24.0198 16.8843L24.1108 16.7816V16.7693C24.1177 16.7604 24.1246 16.7514 24.1314 16.7425C24.5047 16.2533 24.5132 16.0677 24.5132 15.9875C24.5132 15.9074 24.5047 15.7218 24.1314 15.2326C24.1246 15.2237 24.1177 15.2147 24.1108 15.2057V15.1956L24.0665 15.1491Z"- fill="currentColor"- />- <path- d="M7.92135 15.2037L9.26779 13.7395C9.45848 13.5321 9.57241 13.2657 9.59063 12.9846L9.66513 11.8352C9.67643 11.4713 9.69512 11.1639 9.72601 10.8959L9.7313 10.8143L9.73663 10.8091C9.73783 10.7998 9.73904 10.7906 9.74027 10.7815C9.82227 10.1716 9.94745 10.0344 10.0041 9.97768C10.0608 9.92098 10.198 9.7958 10.808 9.7138C11.0038 9.68747 11.221 9.66864 11.4674 9.65517L13.1211 9.49202C13.3864 9.46585 13.6361 9.35441 13.8327 9.1744L15.2303 7.89488H13.8069C11.0324 7.89488 9.6452 7.89489 8.78328 8.75681C8.04898 9.49111 7.94025 10.6067 7.92415 12.6365C7.92135 12.9893 7.92135 13.3697 7.92135 13.7805L7.92135 15.2002V15.2037Z"- fill="currentColor"- />- <path- d="M7.92135 16.7714V16.7765L7.92135 18.1946C7.92135 18.6054 7.92135 18.9858 7.92415 19.3386C7.94025 21.3684 8.04897 22.484 8.78328 23.2183C9.51758 23.9526 10.6332 24.0613 12.663 24.0774C13.0158 24.0802 13.3961 24.0802 13.8069 24.0802H15.2247H16.8011H18.2211C18.6318 24.0802 19.0121 24.0802 19.3648 24.0774C21.3948 24.0613 22.5104 23.9526 23.2448 23.2183C24.1067 22.3564 24.1067 20.9691 24.1067 18.1946V16.7671L22.6718 18.323C22.5283 18.4786 22.4283 18.6673 22.3794 18.8703C22.3767 19.8788 22.3629 20.5801 22.2972 21.1199L22.2965 21.1487L22.2932 21.152C22.2914 21.166 22.2896 21.1798 22.2878 21.1936C22.2058 21.8035 22.0806 21.9407 22.0239 21.9974C21.9672 22.0541 21.83 22.1793 21.2201 22.2613C21.2063 22.2632 21.1924 22.265 21.1784 22.2668L21.175 22.2702L21.1268 22.2731C20.8197 22.3095 20.4606 22.3295 20.0233 22.3405L19.0393 22.4005C18.7592 22.4176 18.4933 22.5297 18.2855 22.7184L16.7857 24.0802H15.218L13.7187 22.6785C13.5213 22.494 13.2694 22.3799 13.002 22.3525C12.8862 22.3521 12.7746 22.3515 12.6669 22.3506C11.8587 22.3441 11.2728 22.3238 10.808 22.2613C10.198 22.1793 10.0608 22.0541 10.0041 21.9974C9.94745 21.9407 9.82227 21.8035 9.74027 21.1936C9.73904 21.1845 9.73783 21.1753 9.73663 21.1661L9.7313 21.1607L9.7308 21.1492L9.72882 21.1031C9.67412 20.6437 9.65634 20.0678 9.65061 19.287L9.642 19.087C9.63969 19.0333 9.63389 18.9802 9.62474 18.9278C9.58465 18.6984 9.48016 18.4838 9.32191 18.31L7.92135 16.7714Z"- fill="currentColor"- />- <path- d="M22.365 11.9073L22.4459 13.004C22.4663 13.2806 22.5794 13.5423 22.7668 13.7467L24.1067 15.208V13.7805C24.1067 11.006 24.1067 9.61873 23.2448 8.75681C22.3828 7.89489 20.9956 7.89488 18.2211 7.89488H16.7855L18.2234 9.20474C18.4249 9.38831 18.6815 9.49994 18.9532 9.52217L20.6207 9.6586C20.78 9.66807 20.927 9.67995 21.0638 9.69485L21.1871 9.70494L21.1922 9.71012C21.2016 9.71133 21.2109 9.71256 21.2201 9.7138C21.83 9.7958 21.9672 9.92098 22.0239 9.97768C22.0806 10.0344 22.2058 10.1716 22.2878 10.7815C22.3296 11.0925 22.3525 11.4577 22.365 11.9073Z"- fill="currentColor"- />- <path- d="M9.73619 21.1546L9.7308 21.1492L9.7313 21.1607L9.73663 21.1661L9.73619 21.1546Z"- fill="currentColor"- />- <path- d="M10.8482 22.2666L12.6669 22.3506C11.8819 22.3443 11.3065 22.325 10.8482 22.2666Z"- fill="currentColor"- />- <path- d="M9.65897 19.1692C9.65554 19.0873 9.64398 19.0065 9.62474 18.9278C9.63389 18.9802 9.63969 19.0333 9.642 19.087L9.65061 19.287C9.65634 20.0678 9.67412 20.6437 9.72882 21.1031L9.7308 21.1492L9.73619 21.1546L9.65897 19.1692Z"- fill="currentColor"- />- <path- d="M5.78809 15.9875C5.78809 17.026 6.50011 17.8918 7.92415 19.3386C7.92135 18.9858 7.92135 18.6054 7.92135 18.1946L7.92135 16.7765L7.91833 16.773L7.91834 16.771C7.91096 16.7615 7.90367 16.752 7.89644 16.7425C7.52316 16.2533 7.51466 16.0677 7.51466 15.9875C7.51466 15.9074 7.52316 15.7218 7.89644 15.2326C7.90465 15.2218 7.91295 15.211 7.92135 15.2002L7.92135 13.7805C7.92135 13.3697 7.92135 12.9893 7.92415 12.6365C6.50011 14.0833 5.78809 14.949 5.78809 15.9875Z"- fill="currentColor"- />- <path- d="M15.2589 24.105C15.252 24.0997 15.2451 24.0944 15.2381 24.089H15.2343L15.2247 24.0802H13.8069C13.3961 24.0802 13.0158 24.0802 12.663 24.0774C14.1097 25.5014 14.9754 26.2134 16.0139 26.2134C17.0524 26.2134 17.9181 25.5014 19.3648 24.0774C19.0121 24.0802 18.6318 24.0802 18.2211 24.0802H16.8011C16.7903 24.0886 16.7796 24.0968 16.7689 24.105C16.2796 24.4783 16.0941 24.4868 16.0139 24.4868C15.9337 24.4868 15.7482 24.4783 15.2589 24.105Z"- fill="currentColor"- />- </svg>- );-}diff --git a/apps/web/src/components/svg/hanko.tsx b/apps/web/src/components/svg/hanko.tsxdeleted file mode 100644index fcdc7ceb5..000000000--- a/apps/web/src/components/svg/hanko.tsx+++ /dev/null@@ -1,51 +0,0 @@-import type { SVGAttributes } from "react";--export function Hanko(props: SVGAttributes<SVGSVGElement>) {- return (- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 137 48" {...props}>- <path- fill="currentColor"- d="M36.1,12.9v29.1h-4V26H16.4V30h11.7v2c0,5.1,0,10.2,0,15.2c0,0.3,0,0.6,0.1,0.8c4.4-0.7,8.5-2.6,11.8-5.4V22.1- C39.9,19,39.3,15.7,36.1,12.9z"- />- <path- fill="currentColor"- d="M28.2,14.1h4V5.4c2.4,0.5,11.4,6.4,11.8,15.7v17.2c2.9-4,4.7-9,4.7-14.3c0-12.1-8.8-22.1-20.4-24- c0,0.2,0,0.5-0.1,0.8L28.2,14.1z"- />- <path- fill="currentColor"- d="M12.4,35.1V6.1h4V22h15.7V18H20.4v-2c0-5.1,0-10.2,0-15.2c0-0.3,0-0.6-0.1-0.8c-4.4,0.7-8.5,2.6-11.8,5.4v20.4- C8.6,28.9,9.2,32.3,12.4,35.1z"- />- <path- fill="currentColor"- d="M20.4,33.9h-4v8.7C14.1,42.1,5,36.2,4.7,26.9V9.7C1.7,13.7,0,18.6,0,24c0,12.1,8.8,22.1,20.4,24- c0-0.2,0-0.5,0.1-0.8L20.4,33.9z"- />- <path- fill="currentColor"- d="M62.3,34.6V13.8h3.2v8.4h2.8v-8.4h3.2v20.8h-3.2v-9.7h-2.8v9.7H62.3z"- />- <path- fill="currentColor"- d="M84.7,28.3l-1.4-10.4h0L82,28.3H84.7z M78.2,34.6l3-20.8h4.2l3.2,20.8h-3L85,30.9h-3.4l-0.4,3.7H78.2z"- />- <path- fill="currentColor"- d="M95.1,34.6V13.8h2.5l4.4,12.5l-0.2-5.7v-6.8h2.8v20.8h-2.2l-4.5-12.9l0.2,5.5v7.5H95.1z"- />- <path- fill="currentColor"- d="M111.8,34.6V13.8h3.2v9.6l3.2-9.6h3.3L118,24.1l3.7,10.5h-3.3l-3.3-9.7v9.7H111.8z"- />- <path- fill="currentColor"- d="M130.9,31.4c0.2,0.5,0.6,0.7,1.1,0.7s1-0.2,1.1-0.7c0.2-0.5,0.3-1.3,0.3-2.5v-9.7c0-1-0.1-1.7-0.3-2.2- c-0.2-0.5-0.5-0.7-1.1-0.7c-0.5,0-0.9,0.2-1.1,0.7c-0.2,0.5-0.3,1.2-0.3,2.1v9.7C130.7,30,130.8,30.9,130.9,31.4z M135.6,33.3- c-0.7,1-1.9,1.5-3.5,1.5c-1.6,0-2.8-0.5-3.5-1.5c-0.7-1-1.1-2.5-1.1-4.5v-9.5c0-3.8,1.6-5.7,4.7-5.7c1.6,0,2.8,0.5,3.5,1.5- c0.7,1,1.1,2.4,1.1,4.3v9.5C136.7,30.8,136.3,32.3,135.6,33.3z"- />- </svg>- );-}diff --git a/apps/web/src/components/svg/midday.tsx b/apps/web/src/components/svg/midday.tsxdeleted file mode 100644index 63a473921..000000000--- a/apps/web/src/components/svg/midday.tsx+++ /dev/null@@ -1,23 +0,0 @@-import type { SVGAttributes } from "react";--export function Midday(props: SVGAttributes<SVGSVGElement>) {- return (- <svg- xmlns="http://www.w3.org/2000/svg"- viewBox="0 0 102 30"- fill="none"- {...props}- >- <path- fill="currentColor"- fillRule="evenodd"- d="M14.347 0a14.931 14.931 0 0 0-6.282 1.68l6.282 10.88V0Zm0 17.443L8.067 28.32a14.933 14.933 0 0 0 6.28 1.68V17.443ZM15.652 30V17.432l6.285 10.887A14.932 14.932 0 0 1 15.652 30Zm0-17.43V0c2.26.097 4.392.693 6.287 1.682l-6.287 10.889ZM2.336 23.068l10.884-6.284-6.284 10.884a15.093 15.093 0 0 1-4.6-4.6Zm25.33-16.132-10.88 6.282 6.282-10.88a15.094 15.094 0 0 1 4.598 4.598ZM2.335 6.934a15.094 15.094 0 0 1 4.6-4.6l6.284 10.884L2.335 6.934Zm-.654 1.13A14.931 14.931 0 0 0 0 14.35h12.568L1.681 8.064Zm0 13.873a14.932 14.932 0 0 1-1.68-6.282h12.562L1.682 21.938Zm15.754-7.587H30a14.93 14.93 0 0 0-1.68-6.285L17.435 14.35Zm10.884 7.586-10.878-6.28H30a14.932 14.932 0 0 1-1.68 6.28Zm-11.533-5.151 6.281 10.88a15.092 15.092 0 0 0 4.598-4.599l-10.88-6.281Z"- clipRule="evenodd"- />- <path- fill="currentColor"- d="M92.34 11.912h1.637l2.995 8.223 2.884-8.223h1.619l-4 11.107c-.372 1.06-1.08 1.544-2.196 1.544h-1.172v-1.358h1.024c.502 0 .8-.186.986-.707l.353-.912h-.52l-3.61-9.674ZM82.744 14.814c.39-1.916 1.916-3.126 4.018-3.126 2.549 0 3.963 1.489 3.963 4.13v3.964c0 .446.186.632.614.632h.39v1.358h-.65c-1.005 0-1.88-.335-1.861-1.544-.428.93-1.544 1.767-3.107 1.767-1.954 0-3.535-1.041-3.535-2.79 0-2.028 1.544-2.55 3.702-2.977l2.921-.558c-.018-1.712-.818-2.53-2.437-2.53-1.265 0-2.102.65-2.4 1.804l-1.618-.13Zm1.432 4.39c0 .8.689 1.452 2.14 1.433 1.637 0 2.92-1.153 2.92-3.442v-.167l-2.362.41c-1.47.26-2.698.371-2.698 1.767ZM80.129 8.563v13.21h-1.377l-.056-1.452c-.558 1.042-1.618 1.675-3.144 1.675-2.847 0-4.168-2.419-4.168-5.154s1.321-5.153 4.168-5.153c1.451 0 2.493.558 3.051 1.562V8.563h1.526Zm-7.145 8.28c0 1.915.819 3.701 2.884 3.701 2.028 0 2.865-1.823 2.865-3.702 0-1.953-.837-3.758-2.865-3.758-2.065 0-2.884 1.786-2.884 3.758ZM68.936 8.563v13.21H67.56l-.056-1.452c-.558 1.042-1.619 1.675-3.144 1.675-2.847 0-4.168-2.419-4.168-5.154s1.321-5.153 4.168-5.153c1.45 0 2.493.558 3.05 1.562V8.563h1.526Zm-7.144 8.28c0 1.915.819 3.701 2.884 3.701 2.028 0 2.865-1.823 2.865-3.702 0-1.953-.837-3.758-2.865-3.758-2.065 0-2.884 1.786-2.884 3.758ZM56.212 11.912h1.525v9.86h-1.525v-9.86Zm-.037-1.544V8.6h1.6v1.768h-1.6ZM40.224 11.912h1.395l.056 1.674c.446-1.21 1.47-1.898 2.846-1.898 1.414 0 2.438.763 2.865 2.084.428-1.34 1.47-2.084 3.014-2.084 1.973 0 3.126 1.377 3.126 3.74v6.344H52v-5.897c0-1.805-.707-2.828-1.916-2.828-1.544 0-2.437 1.041-2.437 2.846v5.88H46.12v-5.899c0-1.767-.725-2.827-1.916-2.827-1.526 0-2.456 1.079-2.456 2.827v5.898h-1.525v-9.86Z"- />- </svg>- );-}diff --git a/apps/web/src/components/templates/email-template.tsx b/apps/web/src/components/templates/email-template.tsxdeleted file mode 100644index 0b4af1dfe..000000000--- a/apps/web/src/components/templates/email-template.tsx+++ /dev/null@@ -1,10 +0,0 @@-interface EmailTemplateProps {- firstName: string;-}--// TODO: rename and content-export const EmailTemplate = ({ firstName }: EmailTemplateProps) => (- <div>- <h1>Welcome, {firstName}!</h1>- </div>-);diff --git a/apps/web/src/components/theme/theme-icon.tsx b/apps/web/src/components/theme/theme-icon.tsxdeleted file mode 100644index 02ee75cfe..000000000--- a/apps/web/src/components/theme/theme-icon.tsx+++ /dev/null@@ -1,26 +0,0 @@-import { cn } from "@/lib/utils";-import { type IconProps, Icons, type ValidIcon } from "../icons";--function mapThemeToIconName(theme: string): ValidIcon {- switch (theme) {- case "dark":- return "moon";- case "light":- return "sun";- case "system":- return "laptop";- default:- return "laptop";- }-}--interface ThemeIconProps extends IconProps {- theme?: string;-}--export function ThemeIcon({ theme, className, ...props }: ThemeIconProps) {- if (!theme) return null;-- const Icon = Icons[mapThemeToIconName(theme)];- return <Icon className={cn("h-4 w-4", className)} {...props} />;-}diff --git a/apps/web/src/components/theme/theme-toggle.tsx b/apps/web/src/components/theme/theme-toggle.tsxdeleted file mode 100644index ab62e70b0..000000000--- a/apps/web/src/components/theme/theme-toggle.tsx+++ /dev/null@@ -1,43 +0,0 @@-"use client";--import { useTheme } from "next-themes";--import { Button } from "@openstatus/ui/src/components/button";-import {- DropdownMenu,- DropdownMenuContent,- DropdownMenuItem,- DropdownMenuTrigger,-} from "@openstatus/ui/src/components/dropdown-menu";--import { Icons } from "@/components/icons";--export function ThemeToggle() {- const { setTheme } = useTheme();-- return (- <DropdownMenu>- <DropdownMenuTrigger asChild>- <Button variant="outline" size="icon">- <Icons.sun className="dark:-rotate-90 h-4 w-4 rotate-0 scale-100 transition-all dark:scale-0" />- <Icons.moon className="absolute h-4 w-4 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100" />- <span className="sr-only">Toggle theme</span>- </Button>- </DropdownMenuTrigger>- <DropdownMenuContent align="end">- <DropdownMenuItem onClick={() => setTheme("light")}>- <Icons.sun className="mr-2 h-4 w-4" />- <span>Light</span>- </DropdownMenuItem>- <DropdownMenuItem onClick={() => setTheme("dark")}>- <Icons.moon className="mr-2 h-4 w-4" />- <span>Dark</span>- </DropdownMenuItem>- <DropdownMenuItem onClick={() => setTheme("system")}>- <Icons.laptop className="mr-2 h-4 w-4" />- <span>System</span>- </DropdownMenuItem>- </DropdownMenuContent>- </DropdownMenu>- );-}diff --git a/apps/web/src/components/tracker/tracker.tsx b/apps/web/src/components/tracker/tracker.tsxdeleted file mode 100644index 4446ddb2c..000000000--- a/apps/web/src/components/tracker/tracker.tsx+++ /dev/null@@ -1,312 +0,0 @@-"use client";--import { cva } from "class-variance-authority";-import { format, formatDuration } from "date-fns";-import { ChevronRight, Info } from "lucide-react";-import Link from "next/link";-import * as React from "react";--import type {- Incident,- Maintenance,- StatusReport,- StatusReportUpdate,-} from "@openstatus/db/src/schema";-import {- Tracker as OSTracker,- classNames,- endOfDay,- startOfDay,-} from "@openstatus/tracker";-import {- Tooltip,- TooltipContent,- TooltipProvider,- TooltipTrigger,-} from "@openstatus/ui/src/components/tooltip";--import type { ResponseStatusTracker } from "@/lib/tb";-import { cn } from "@/lib/utils";-import {- HoverCard,- HoverCardContent,- HoverCardTrigger,-} from "@openstatus/ui/src/components/hover-card";-import { Separator } from "@openstatus/ui/src/components/separator";--const tracker = cva("h-10 rounded-full flex-1", {- variants: {- variant: {- blacklist:- "bg-status-operational/80 data-[state=open]:bg-status-operational",- ...classNames,- },- report: {- false: "",- true: classNames.degraded,- },- incident: {- // only used to highlight incident that are 'light' (less than 10 minutes)- light: classNames.degraded,- },- },- defaultVariants: {- variant: "empty",- report: false,- },-});--interface TrackerProps {- data: ResponseStatusTracker[];- name: string;- description?: string;- reports?: (StatusReport & { statusReportUpdates: StatusReportUpdate[] })[];- incidents?: Incident[];- maintenances?: Maintenance[];- showValues?: boolean;-}--export function Tracker({- data,- name,- description,- reports,- incidents,- maintenances,- showValues,-}: TrackerProps) {- const tracker = new OSTracker({- data,- statusReports: reports,- incidents,- maintenances,- });- const uptime = tracker.totalUptime;- const isMissing = tracker.isDataMissing;-- return (- <div className="flex w-full flex-col gap-1.5">- <div className="flex justify-between text-sm">- <div className="flex items-center gap-2">- <p className="line-clamp-1 font-semibold text-foreground">{name}</p>- {description ? (- <TooltipProvider>- <Tooltip>- <TooltipTrigger asChild>- <Info className="h-4 w-4" />- </TooltipTrigger>- <TooltipContent>- <p className="text-muted-foreground">{description}</p>- </TooltipContent>- </Tooltip>- </TooltipProvider>- ) : null}- </div>- {!isMissing && showValues ? (- <p className="shrink-0 font-light text-muted-foreground">{uptime}%</p>- ) : null}- </div>- <div className="relative h-full w-full">- <div className="flex flex-row-reverse gap-px sm:gap-0.5">- {tracker.days.map((props, i) => {- return <Bar key={i} showValues={showValues} {...props} />;- })}- </div>- </div>- <div className="flex items-center justify-between font-light text-muted-foreground text-xs">- <p>{tracker.days.length} days ago</p>- <p>Today</p>- </div>- </div>- );-}--type BarProps = OSTracker["days"][number] & {- className?: string;- showValues?: boolean;-};--export const Bar = ({- count,- ok,- day,- variant,- label,- blacklist,- statusReports,- incidents,- showValues,- className,-}: BarProps) => {- const [open, setOpen] = React.useState(false);-- // total incident time in ms- const incidentLength = incidents.reduce((prev, curr) => {- return (- prev +- Math.abs(- (curr.resolvedAt?.getTime() || new Date().getTime()) -- curr.startedAt?.getTime(),- )- );- }, 0);-- const isLightIncident = incidentLength > 0 && incidentLength < 600_000; // 10 minutes in ms-- const rootClassName = tracker({- report:- statusReports.length > 0 &&- // NOTE: avoid setting true for a report with a single update (e.g. post-mortem) + maintenance at the same time- statusReports.some(- (report) =>- report.statusReportUpdates && report.statusReportUpdates?.length > 1,- ),- variant: blacklist ? "blacklist" : variant,- incident: isLightIncident ? "light" : undefined,- });-- return (- <HoverCard- openDelay={100}- closeDelay={100}- open={open}- onOpenChange={setOpen}- >- <HoverCardTrigger onClick={() => setOpen(true)} asChild>- <div className={cn(rootClassName, className)} />- </HoverCardTrigger>- <HoverCardContent side="top" className="w-auto p-2">- {blacklist ? (- <p className="text-muted-foreground text-sm">{blacklist}</p>- ) : (- <div>- <BarDescription- label={label}- day={day}- count={count}- ok={ok}- barClassName={rootClassName}- showValues={showValues}- />- {statusReports && statusReports.length > 0 ? (- <>- <Separator className="my-1.5" />- <StatusReportList reports={statusReports} />- </>- ) : null}- {incidents && incidents.length > 0 ? (- <>- <Separator className="my-1.5" />- <DowntimeText incidents={incidents} day={day} />- </>- ) : null}- </div>- )}- </HoverCardContent>- </HoverCard>- );-};--export function BarDescription({- label,- day,- count,- ok,- showValues,- barClassName,- className,-}: {- label: string;- day: string;- count: number;- ok: number;- showValues?: boolean;- barClassName?: string;- className?: string;-}) {- return (- <div className={cn("flex gap-2", className)}>- <div className={cn(barClassName, "h-auto w-1 flex-none")} />- <div className="grid flex-1 gap-1">- <div className="flex justify-between gap-8 text-sm">- <p className="font-semibold">{label}</p>- <p className="shrink-0 text-muted-foreground">- {format(new Date(day), "MMM d")}- </p>- </div>- {showValues ? (- <div className="flex justify-between gap-8 font-light text-muted-foreground text-xs">- <p>- <code className="text-status-operational">{count}</code> requests- </p>- <p>- <code className="text-status-down">{count - ok}</code> failed- </p>- </div>- ) : null}- </div>- </div>- );-}--export function StatusReportList({ reports }: { reports: StatusReport[] }) {- return (- <ul>- {reports?.map((report) => (- <li key={report.id} className="text-muted-foreground text-sm">- <Link- // TODO: include setPrefixUrl for local development- href={`./events/report/${report.id}`}- className="group flex items-center justify-between gap-2 hover:text-foreground"- >- <span className="truncate">{report.title}</span>- <ChevronRight className="h-4 w-4 shrink-0" />- </Link>- </li>- ))}- </ul>- );-}--export function DowntimeText({- incidents,- day,-}: {- incidents: Incident[];- day: string; // TODO: use Date-}) {- // TODO: MOVE INTO TRACKER CLASS?- const startOfDayDate = startOfDay(new Date(day));- const endOfDayDate = endOfDay(new Date(day));-- const incidentLength = incidents- ?.map((incident) => {- const { startedAt, resolvedAt } = incident;- if (!startedAt) return 0;- if (!resolvedAt)- return (- Math.min(endOfDayDate.getTime(), new Date().getTime()) -- Math.max(startOfDayDate.getTime(), startedAt.getTime())- );- return (- Math.min(resolvedAt.getTime(), endOfDayDate.getTime()) -- Math.max(startOfDayDate.getTime(), startedAt.getTime())- );- })- // add 1 second because end of day is 23:59:59- .reduce((acc, curr) => acc + 1 + curr, 0);-- const days = Math.floor(incidentLength / (1000 * 60 * 60 * 24));- const minutes = Math.floor((incidentLength / (1000 * 60)) % 60);- const hours = Math.floor((incidentLength / (1000 * 60 * 60)) % 24);-- return (- <p className="text-muted-foreground text-xs">- Downtime for{" "}- {formatDuration(- { minutes, hours, days },- { format: ["days", "hours", "minutes", "seconds"], zero: false },- )}- </p>- );-}diff --git a/apps/web/src/config/alternatives.ts b/apps/web/src/config/alternatives.tsdeleted file mode 100644index 6567d72ac..000000000--- a/apps/web/src/config/alternatives.ts+++ /dev/null@@ -1,231 +0,0 @@-type Config = Record<- string,- {- name: string;- logo: string;- description: string;- features: Feature[];- uptime?: Feature[];- monitoring?: Feature[];- }->;--type Feature = {- label: string;- description: string;- openstatus: string | boolean | number | undefined;- alternative: string | boolean | number | undefined;- url?: string;-};--export const alternativesConfig = {- betterstack: {- name: "BetterStack",- logo: "/assets/alternatives/betterstack.png",- description:- "Open-source uptime monitoring. Learn how OpenStatus compares to BetterStack.",- features: [- opensource(),- bootstrap(),- multiregion(4),- schedulingStrategy(),- incident(),- otelexport(),- githubaction(),- cli(),- privatepage("additional $42/month"),- pagesubscribers("additional $40/month per 1000 subscribers"),- ],- },- "uptime-robot": {- name: "UptimeRobot",- description:- "Monitor your endpoints globally. Learn how OpenStatus compares to UptimeRobot.",- logo: "/assets/alternatives/uptime-robot.png",- features: [- opensource(),- bootstrap(),- multicloud(),- global(),- otelexport(),- githubaction(),- teammembers("additional 19$/seat"),- ],- },- "uptime-kuma": {- name: "Uptime Kuma",- description:- "Monitor your endpoints globally. Learn how OpenStatus compares to Uptime Kuma.",- logo: "/assets/alternatives/uptime-kuma.png",- features: [- opensource(true),- multicloud(),- global(),- selfhost(),- managed(),- otelexport(),- githubaction(),- ],- },- checkly: {- name: "Checkly",- description:- "Open-source multi-region monitoring. Learn how OpenStatus compares to Checkly.",- logo: "/assets/alternatives/checkly.png",- features: [- multiregion(19),- statuspage(undefined),- opensource(),- bootstrap(),- ],- },-} satisfies Config;--/** HELPER FUNCTIONS */--function opensource(alternative = false): Feature {- return {- label: "Open Source",- description: "Self-hosted or cloud-based.",- openstatus: true,- alternative,- url: "https://github.com/openstatusHQ/openstatus",- };-}--function bootstrap(alternative = false): Feature {- return {- label: "Bootstrap",- description: "Talk directly to the founder.",- openstatus: true,- alternative,- url: "https://cal.com/team/openstatus/30min",- };-}--function global(alternative = false): Feature {- return {- label: "Global (28 regions)",- description: "Monitor your endpoints globally.",- openstatus: true,- alternative,- };-}--function multiregion(alternative = 1): Feature {- return {- label: "Multi-region",- description: "Monitor your endpoints globally",- openstatus: 28,- alternative,- };-}--function multicloud(alternative = undefined): Feature {- return {- label: "Multi-cloud",- description: "Monitor from different cloud providers",- openstatus: 3,- alternative,- };-}--function incident(alternative = true): Feature {- return {- label: "Incident Escalation",- description: "Escalate incidents within your team.",- openstatus: false,- alternative,- };-}--function otelexport(alternative = false): Feature {- return {- label: "OTel Export",- description: "Export synthetic checks to OTel",- openstatus: true,- alternative,- };-}--function githubaction(alternative = false): Feature {- return {- label: "GitHub Action",- description: "Trigger your monitor via CI/CD",- openstatus: true,- alternative,- url: "https://github.com/marketplace/actions/openstatus-synthetics-ci",- };-}--function cli(alternative = false): Feature {- return {- label: "CLI to trigger checks",- description: "Never leave your terminal.",- openstatus: true,- alternative,- };-}--function statuspage(alternative: boolean | undefined): Feature {- return {- label: "Status Page",- description: "Share your uptime with your customers.",- openstatus: true,- alternative,- };-}--function privatepage(alternative: string): Feature {- return {- label: "Private status page",- description: "Share your status page with your team.",- openstatus: "included in team plan",- alternative,- };-}--function pagesubscribers(alternative: string): Feature {- return {- label: "Status page subscribers",- description: "Keep your customers in the loop.",- openstatus: "Unlimited",- alternative,- };-}--function teammembers(alternative: string): Feature {- return {- label: "Team members",- description: "Invite your team to the dashboard.",- openstatus: "Unlimited",- alternative,- };-}--function selfhost(alternative = "easy"): Feature {- return {- label: "Self hostable",- description: "Make it yours and deploy it.",- openstatus: "hard",- alternative,- };-}--function managed(alternative = false): Feature {- return {- label: "Managed",- description: "Don't worry about managing your instance.",- openstatus: true,- alternative,- };-}--function schedulingStrategy(alternative = "round-robin"): Feature {- return {- label: "Scheduling strategy",- description: "Choose your scheduling strategy.",- openstatus: "parallel",- alternative,- };-}diff --git a/apps/web/src/config/features.tsx b/apps/web/src/config/features.tsxdeleted file mode 100644index 318affae4..000000000--- a/apps/web/src/config/features.tsx+++ /dev/null@@ -1,127 +0,0 @@-import type { ValidIcon } from "@/components/icons";--export type Feature = {- icon: ValidIcon;- title: string;- // description?: string;- features?: FeatureDescription[];-};--export type FeatureDescription = {- icon: ValidIcon;- catchline: string;- description: React.ReactNode;- badge?: "Coming soon" | "New";-};--export type SpecialFeature = {- icon: ValidIcon;- title: string;- catchline: string;- description: string;-};--export const specialCardConfig = {- icon: "toy-brick",- title: "Integrations",- catchline: "Connect.",- description: "Build or use existing integrations to automate your workflow.",-} satisfies SpecialFeature;--export const cardConfig = {- monitors: {- icon: "activity",- title: "Monitoring",- features: [- {- icon: "globe",- catchline: "Latency Monitoring.",- description:- "Monitor the latency of your endpoints from all over the world. We support all the continents.",- },- {- icon: "play",- catchline: "Monitor anything.",- description:- "API, DNS, domain, SSL, SMTP, ping, webpage... We can monitor it all.",- },- {- icon: "bot",- catchline: "OpenTelemetry.",- description:- "Export your synthetic monitoring metrics to your observability stack.",- },- ],- },- pages: {- icon: "panel-top",- title: "Status Pages",- features: [- {- icon: "puzzle",- catchline: "Build trust",- description:- "Showcase your reliability to your users, and reduce the number of customer service tickets.",- },- {- icon: "globe",- catchline: "Custom domain.",- description:- "Bring your own domain, give the status page a personal touch.",- },- {- icon: "image",- catchline: "Subscription",- description:- "Let your users subscribe to your status page, to automatically receive updates about the status of your services.",- },- ],- },- alerts: {- icon: "siren",- title: "Alerting",- features: [- {- icon: "bell",- catchline: "Get alerted.",- description:- "Receive notifications via Email, SMS, Slack, or Discord, ... so you're always aware before your users are.",- },- {- icon: "eye",- catchline: "Know the activity.",- description:- "Gain complete visibility: All recoveries, incidents and notifications, together in one timeline.",- },- {- icon: "zap",- catchline: "Escalation.",- description: "Notify and escalate an alert to the right team member.",- badge: "Coming soon",- },- ],- },- cli: {- icon: "terminal",- title: "CLI",- features: [- {- icon: "file-text",- catchline: "YAML file configuration",- description: "Use version control to keep track of all your changes.",- },- {- icon: "sparkles",- catchline: "Monitoring as Code",- description:- "Apply changes to your monitors directly from the terminal.",- },- {- icon: "workflow",- catchline: "CI/CD",- description:- "Trigger a specific monitor or run your file within your workflows.",- },- ],- },-} satisfies Record<string, Feature>;diff --git a/apps/web/src/config/landings.tsx b/apps/web/src/config/landings.tsxdeleted file mode 100644index 2c0d73417..000000000--- a/apps/web/src/config/landings.tsx+++ /dev/null@@ -1,147 +0,0 @@-import type { ValidIcon } from "@/components/icons";-import { EnterpriseBanner } from "@/components/marketing/banner/enterprise-banner";-import {- BookingBanner,- FeatureAPIMonitoring,- FeatureCLI,- FeatureCharts,- FeatureCustomDomain,- FeatureGitHubAction,- FeatureMaintenance,- FeatureNotifications,- FeatureOpenTelemetry,- FeatureOperationalBanner,- FeaturePasswordProtection,- FeaturePrivateLocationsDockerImage,- FeaturePrivateLocationsDockerInstall,- FeatureRaycastIntegration,- FeatureRegions,- FeatureResponseDetails,- FeatureStatusPageThemes,- FeatureStatusPageTracker,- FeatureStatusPageTrackerToggle,- FeatureStatusUpdates,- FeatureSubscriptions,- FeatureTerraformProvider,- FeatureTimingAssertions,- FeatureYAML,- SpeedBanner,-} from "@/components/marketing/feature";-import { MonitoringCard } from "@/components/marketing/monitor/card";--type Landing = {- title: string;- hero: string;- description: string;- icon: ValidIcon;- blocks: React.ReactNode[];-};--export const landingsConfig = {- "uptime-monitoring": {- icon: "activity",- title: "Uptime Monitoring",- hero: "Detect downtime before your users do",- description:- "Monitor your uptime and get notified when your services are down.",- blocks: [- <FeatureNotifications key="feature-notifications" />,- <SpeedBanner key="speed-banner" />,- <FeatureTimingAssertions key="feature-timing-assertions" />,- <FeatureStatusPageTracker key="feature-status-page-tracker" />,- <FeatureCharts key="feature-charts" />,- <FeatureRaycastIntegration key="feature-raycast-integration" />,- <BookingBanner key="booking-banner" />,- ],- },- "status-page": {- icon: "panel-top",- title: "Status Page",- hero: "Turn transparency into trust with a dedicated status page",- description:- "Keep users informed during downtime, so you can focus on the fix.",- blocks: [- <FeatureStatusPageThemes key="feature-status-page-themes" />,- <FeatureStatusPageTrackerToggle key="feature-status-page-tracker" />,- <FeatureCustomDomain key="feature-custom-domain" />,- <FeatureSubscriptions key="feature-subscriptions" />,- <FeatureStatusUpdates key="feature-status-updates" />,- <FeaturePasswordProtection key="feature-password-protection" />,- <FeatureOperationalBanner key="feature-operational-banner" />,- <FeatureMaintenance key="feature-maintenance" />,- <FeatureRaycastIntegration- key="feature-raycast-integration"- position="right"- />,- <BookingBanner key="booking-banner" />,- ],- },- "api-monitoring": {- icon: "chevron-left-right-ellipsis",- title: "API Monitoring",- hero: "API Reliability: We've Got You Covered.",- description:- "Don't let slow APIs frustrate your users. Ensure smooth experiences with global monitoring.",- blocks: [- <MonitoringCard key="monitoring-card" />,- <SpeedBanner key="speed-banner" />,- <FeatureYAML key="feature-yaml-file" position="top" />,- <EnterpriseBanner key="enterprise-banner" />,- <FeatureAPIMonitoring key="feature-api-monitoring" />,- <FeatureOpenTelemetry key="feature-open-telemetry" />,- <BookingBanner key="booking-banner" />,- ],- },- "monitoring-as-code": {- icon: "terminal",- title: "Monitoring as Code",- hero: "Get rid of ClickOps for your uptime monitoring configuration",- description: "Define your Monitors with YAML. Control Them with Our CLI.",- blocks: [- <FeatureCLI key="feature-cli" />,- <FeatureYAML key="feature-yaml-file" position="top" />,- <FeatureGitHubAction key="feature-github-action" />,- <EnterpriseBanner key="enterprise-banner" />,- <FeatureAPIMonitoring key="feature-api-monitoring" />,- <FeatureTerraformProvider key="feature-terraform-provider" />,- <FeatureOpenTelemetry key="feature-open-telemetry" />,- <BookingBanner key="booking-banner" />,- ],- },- "synthetic-monitoring": {- icon: "network",- title: "Synthetic Monitoring",- hero: "Stop Guessing. Start Knowing. Monitor Your API's Performance Globally.",- description:- "Proactively identify and resolve application issues across the globe.",- blocks: [- <FeatureRegions key="feature-regions" />,- <SpeedBanner key="speed-banner" />,- <FeatureTimingAssertions key="feature-timing-assertions" />,- <FeatureAPIMonitoring key="feature-api-monitoring" />,- <FeatureResponseDetails- key="feature-response-details"- position="right"- />,- <FeatureTerraformProvider key="feature-terraform-provider" />,- <BookingBanner key="booking-banner" />,- ],- },- "private-locations": {- icon: "globe",- title: "Private Locations",- hero: "Monitor from anywhere. Literally anywhere, even from your own VPC",- description: "Monitor your services from your own infrastructure",- blocks: [- <FeaturePrivateLocationsDockerImage key="feature-private-locations-docker-image" />,- <FeaturePrivateLocationsDockerInstall key="feature-private-locations-docker-install" />,- <SpeedBanner key="speed-banner" />,- <FeatureCharts- key="feature-charts"- title="Private Locations."- subTitle="Latency, availability and performance of your internal services. Always be close to your users."- />,- <BookingBanner key="enterprise-banner" />,- ],- },-} satisfies Record<string, Landing>;diff --git a/apps/web/src/config/pages.ts b/apps/web/src/config/pages.tsdeleted file mode 100644index 6b3d23a89..000000000--- a/apps/web/src/config/pages.ts+++ /dev/null@@ -1,302 +0,0 @@-import type { ValidIcon } from "@/components/icons";--import { landingsConfig } from "./landings";--export type Page = {- title: string;- subtitle?: string;- description: string;- href: string;- icon: ValidIcon;- disabled?: boolean;- segment: string;- children?: Page[];-};--export const settingsPagesConfig: Page[] = [- {- title: "General",- description: "General settings for the workspace.",- href: "/settings/general",- icon: "cog",- segment: "general",- },- {- title: "Team",- description: "Team settings for the workspace.",- href: "/settings/team",- icon: "users",- segment: "team",- },- {- title: "API Token",- description: "API token settings for the workspace.",- href: "/settings/api-token",- icon: "key",- segment: "api-token",- },- {- title: "Billing",- description: "Billing settings for the workspace.",- href: "/settings/billing",- icon: "credit-card",- segment: "billing",- },- {- title: "Appearance",- description: "Appearance settings for the workspace.",- href: "/settings/appearance",- icon: "sun",- segment: "appearance",- },- {- title: "User",- description: "Profile settings for the user.",- href: "/settings/user",- icon: "user",- segment: "user",- },-];--export const monitorPagesConfig: Page[] = [- {- title: "Overview",- description: "Dashboard with all the metrics and charts.",- href: "/monitors/[id]/overview",- icon: "line-chart",- segment: "overview",- },- {- title: "Response logs",- description: "Data table with all response details.",- href: "/monitors/[id]/data",- icon: "table",- segment: "data",- },- {- title: "Settings",- description: "Edit section for the monitor.",- href: "/monitors/[id]/edit",- icon: "cog",- segment: "edit",- },-];--export const statusPagesPagesConfig: Page[] = [- {- title: "Settings",- description: "Edit section for the status page.",- href: "/status-pages/[id]/edit",- icon: "cog",- segment: "edit",- },- {- title: "Status Reports",- description: "Inform your users about recent reports",- href: "/status-pages/[id]/reports",- icon: "megaphone",- segment: "reports",- },- {- title: "Domain",- description: "Where you can see the domain settings.",- href: "/status-pages/[id]/domain",- icon: "globe",- segment: "domain",- },- {- title: "Subscribers",- description: "Where you can see all the subscribers.",- href: "/status-pages/[id]/subscribers",- icon: "users",- segment: "subscribers",- },- {- title: "Maintenance",- description: "Where you can see all the maintenance.",- href: "/status-pages/[id]/maintenances",- icon: "hammer",- segment: "maintenances",- },-];--const incidentPagesConfig: Page[] = [- {- title: "Overview",- description: "Timeline with all the actions.",- href: "/incidents/[id]/overview",- icon: "file-clock",- segment: "overview",- },-];--export const statusReportsPagesConfig: Page[] = [- {- title: "Overview",- description: "Overview of the status report.",- href: "/status-reports/[id]/overview",- icon: "megaphone",- segment: "overview",- },- {- title: "Settings",- description: "Edit section for the status report.",- href: "/status-reports/[id]/edit",- icon: "cog",- segment: "edit",- },-];--export const notificationsPagesConfig: Page[] = [- {- title: "Settings",- description: "Edit section for the notifications.",- href: "/notifications/[id]/edit",- icon: "cog",- segment: "edit",- },-];--export type PageId = (typeof pagesConfig)[number]["segment"];--export const pagesConfig = [- {- title: "Monitors",- description: "Check all the responses in one place.",- href: "/monitors",- icon: "activity",- segment: "monitors",- children: monitorPagesConfig,- },- {- title: "Incidents",- description: "All your incidents.",- href: "/incidents",- icon: "siren",- segment: "incidents",- children: incidentPagesConfig,- },- {- title: "Status Pages",- description: "Where you can see all the pages.",- href: "/status-pages",- icon: "panel-top",- segment: "status-pages",- children: statusPagesPagesConfig,- },- {- title: "Notifications",- description: "Where you can see all the notifications.",- href: "/notifications",- icon: "bell",- segment: "notifications",- children: notificationsPagesConfig,- },- {- title: "Settings",- description: "Your workspace settings",- href: "/settings/general",- icon: "cog",- segment: "settings",- children: settingsPagesConfig,- },-] as const satisfies readonly Page[];--type MarketingPageType = Page;--export const marketingProductPagesConfig = [- ...Object.entries(landingsConfig).map(- ([key, { title, description, icon }]) => {- return {- title,- href: `/${key}`,- description,- icon,- segment: "product",- };- },- ),-] as const satisfies MarketingPageType[];--export const marketingResourcePagesConfig = [- {- href: "/blog",- title: "Blog",- description: "All the latest articles and news from OpenStatus.",- segment: "blog",- icon: "book",- },- {- href: "/changelog",- title: "Changelog",- description: "All the latest features, fixes and work to OpenStatus.",- segment: "changelog",- icon: "newspaper",- },- {- href: "/play/checker",- title: "Speed Checker",- description: "Check your endpoints latency right away.",- segment: "checker",- icon: "gauge",- },- {- href: "/compare",- title: "Compare",- description: "Discover how OpenStatus compares to other services.",- segment: "compare",- icon: "compare",- },-] as const satisfies Page[];--export const marketingPagesConfig = [- {- href: "/product",- title: "Product",- description: "All product features for OpenStatus",- segment: "product",- icon: "package",- children: marketingProductPagesConfig,- },- {- href: "/resources",- description: "All resources for OpenStatus",- title: "Resources",- segment: "",- icon: "library",- children: marketingResourcePagesConfig,- },- {- href: "/pricing",- title: "Pricing",- description: "The pricing for OpenStatus.",- segment: "pricing",- icon: "credit-card",- },- {- href: "https://docs.openstatus.dev",- description: "The documentation for OpenStatus.",- title: "Docs",- segment: "docs",- icon: "book",- },-] satisfies Page[];--export function getPageBySegment(- segment: string | string[],- currentPage: readonly Page[] = pagesConfig,-): Page | undefined {- if (typeof segment === "string") {- const page = currentPage.find((page) => page.segment === segment);- return page;- }- if (Array.isArray(segment) && segment.length > 0) {- const [firstSegment, ...restSegments] = segment;- const childPage = currentPage.find((page) => page.segment === firstSegment);- if (childPage?.children) {- return getPageBySegment(restSegments, childPage.children);- }- return childPage;- }- return undefined;-}diff --git a/apps/web/src/config/pricing-table.tsx b/apps/web/src/config/pricing-table.tsxdeleted file mode 100644index 11aff31ce..000000000--- a/apps/web/src/config/pricing-table.tsx+++ /dev/null@@ -1,134 +0,0 @@-import type { Limits } from "@openstatus/db/src/schema/plan/schema";-import Link from "next/link";-import type React from "react";--import { type Changelog, allChangelogs } from "content-collections";--function renderChangelogDescription(slug: Changelog["slug"]) {- const changelog = allChangelogs.find((c) => c.slug === slug);- if (!changelog) return null;- return (- <span>- {changelog?.description}{" "}- <Link- href={`/changelog/${changelog.slug}`}- className="text-nowrap underline underline-offset-4"- >- Learn more- </Link>- .- </span>- );-}--export const pricingTableConfig: Record<- string,- {- label: string;- features: {- value: keyof Limits;- label: string;- description?: React.ReactNode; // tooltip informations- badge?: string;- monthly?: boolean;- }[];- }-> = {- monitors: {- label: "Monitors",- features: [- {- value: "periodicity",- label: "Check Interval",- },- {- value: "monitors",- label: "Number of monitors",- },- {- value: "multi-region",- label: "Multi-region monitoring",- },- { value: "regions", label: "Total regions" },- { value: "max-regions", label: "Regions per monitor" },- { value: "data-retention", label: "Data retention" },- { value: "response-logs", label: "Response logs" },- { value: "otel", label: "OTel Exporter" },- {- value: "synthetic-checks",- label: "Number of on-demand checks",- monthly: true,- },- ],- },- "status-pages": {- label: "Status Pages",- features: [- {- value: "status-pages",- label: "Number of status pages",- },- {- value: "maintenance",- label: "Maintenance status",- },- {- value: "monitor-values-visibility",- label: "Toggle numbers visibility",- description: renderChangelogDescription(- "status-page-monitor-values-visibility",- ),- },- {- value: "status-subscribers",- label: "Subscribers",- },- {- value: "custom-domain",- label: "Custom domain",- },- {- value: "password-protection",- label: "Password-protected",- description: renderChangelogDescription(- "password-protected-status-page",- ),- },- ],- },- alerts: {- label: "Alerts",- features: [- {- value: "notifications",- label: "Slack, Discord, Email, Webhook, ntfy.sh",- },- {- value: "sms",- label: "SMS",- },- {- value: "pagerduty",- label: "PagerDuty",- },- {- value: "notification-channels",- label: "Number of notification channels",- },- ],- },- collaboration: {- label: "Collaboration",- features: [- {- value: "members",- label: "Team members",- },- {- value: "audit-log",- label: "Audit log",- badge: "Planned",- },- ],- },-};diff --git a/apps/web/src/content/changelog/curl-builder-playground.mdx b/apps/web/src/content/changelog/curl-builder-playground.mdxdeleted file mode 100644index 70ba4f818..000000000--- a/apps/web/src/content/changelog/curl-builder-playground.mdx+++ /dev/null@@ -1,10 +0,0 @@-----title: cURL Builder-description: An online curl command line builder. Generate curl commands to test your API endpoints.-image: /assets/changelog/curl-builder-playground.png-publishedAt: 2024-11-14------An online curl command line builder. Generate curl commands to test your API endpoints.--Go to the **[Playground](/play/curl)** and test it.\ No newline at end of filediff --git a/apps/web/src/content/changelog/follow-redirect.mdx b/apps/web/src/content/changelog/follow-redirect.mdxdeleted file mode 100644index b9a1935f6..000000000--- a/apps/web/src/content/changelog/follow-redirect.mdx+++ /dev/null@@ -1,11 +0,0 @@-----title: Follow Redirect-description: Choose if you want to follow redirects or not.-image: /assets/changelog/follow-redirect.png-publishedAt: 2025-09-28------You can now choose if you want to follow redirects for your requests. By default, redirects are followed.---Thanks to [Anonymus2000](https://github.com/Nil2000) for the contribution.diff --git a/apps/web/src/content/changelog/grouped-monitors.mdx b/apps/web/src/content/changelog/grouped-monitors.mdxdeleted file mode 100644index a91356e44..000000000--- a/apps/web/src/content/changelog/grouped-monitors.mdx+++ /dev/null@@ -1,8 +0,0 @@-----title: Grouped Monitors-description: Organize monitors by region or service for a cleaner overview.-image: /assets/changelog/grouped-monitors.png-publishedAt: 2025-11-06------You can now group monitors on your status page - for example, by region (EU, US, APAC) or service (API, Dashboard, Auth). This makes it easier for visitors to understand which parts of your system are affected.\ No newline at end of filediff --git a/apps/web/src/content/changelog/pagerduty-integration.mdx b/apps/web/src/content/changelog/pagerduty-integration.mdxdeleted file mode 100644index a998bd894..000000000--- a/apps/web/src/content/changelog/pagerduty-integration.mdx+++ /dev/null@@ -1,8 +0,0 @@-----title: PagerDuty Integration-description: Get notified via PagerDuty if we detect an incident.-image: /assets/changelog/pagerduty-integration.png-publishedAt: 2024-06-25------We've added a PagerDuty integration to the notification feature. This allows you to receive incident alerts through PagerDuty.\ No newline at end of filediff --git a/apps/web/src/content/changelog/play-checker-improvements.mdx b/apps/web/src/content/changelog/play-checker-improvements.mdxdeleted file mode 100644index b7bb8a280..000000000--- a/apps/web/src/content/changelog/play-checker-improvements.mdx+++ /dev/null@@ -1,10 +0,0 @@-----title: Speed Checker-description: Improving the speed checker playground for a better experience.-image: /assets/changelog/play-checker-improvements.png-publishedAt: 2024-08-27------We've refreshed the Playground for a better experience. Now, access real-time data without leaving the page.--Check out the [Speed Checker](/play/checker).\ No newline at end of filediff --git a/apps/web/src/content/changelog/response-time-charts.mdx b/apps/web/src/content/changelog/response-time-charts.mdxdeleted file mode 100644index 89205f3ec..000000000--- a/apps/web/src/content/changelog/response-time-charts.mdx+++ /dev/null@@ -1,11 +0,0 @@-----title: Response Time Charts-description: You have now access to new charts for better visualization.-publishedAt: 2023-10-08-image: /assets/changelog/response-time-charts.png------You can now assess your monitor's response time using the new charts and get a-better overview of your monitor's performance.--Powered by [tremor.so](https://tremor.so).diff --git a/apps/web/src/content/changelog/slack-discord-notification.mdx b/apps/web/src/content/changelog/slack-discord-notification.mdxdeleted file mode 100644index 301b49230..000000000--- a/apps/web/src/content/changelog/slack-discord-notification.mdx+++ /dev/null@@ -1,13 +0,0 @@-----title: Slack and Discord notifications-description: You can now send notifications to your favorite channels.-publishedAt: 2023-11-01-image: /assets/changelog/slack-discord-notification.png------We have just released a new feature that allows you to receive notifications in-Slack or Discord when your monitor is down.--Thanks [Kelvin](https://github.com/AmoabaKelvin) for the help 🔥--Expect more integration to come soon!diff --git a/apps/web/src/content/changelog/status-page-colors-and-more.mdx b/apps/web/src/content/changelog/status-page-colors-and-more.mdxdeleted file mode 100644index e090df78b..000000000--- a/apps/web/src/content/changelog/status-page-colors-and-more.mdx+++ /dev/null@@ -1,12 +0,0 @@-----title: Status Page rework-description: New status specific colors, improved navigation and more.-publishedAt: 2024-07-21-image: /assets/changelog/status-page-colors-and-more.png------We have reworked our status page!--- **less flashy colors** for _operational_, _degraded_, _downtime_ and _maintenance_-- **new sticky navigation** bar, merging _maintenances_ and _incidents_ into an _events_ page (your old links will still work)-- redesign of **status reports**\ No newline at end of filediff --git a/apps/web/src/content/changelog/status-page-feed.mdx b/apps/web/src/content/changelog/status-page-feed.mdxdeleted file mode 100644index fef42fe6c..000000000--- a/apps/web/src/content/changelog/status-page-feed.mdx+++ /dev/null@@ -1,10 +0,0 @@-----title: Status Page Feeds-description: Subscribe to status page updates via RSS and Atom feed.-image: /assets/changelog/status-page-feed.png-publishedAt: 2025-01-04------You can now subscribe via RSS and Atom feed on any status page!--S/o to [@washingtonserip](https://x.com/washingtonserip) for this contribution.\ No newline at end of filediff --git a/apps/web/src/content/changelog/status-page-monitor-values-visibility.mdx b/apps/web/src/content/changelog/status-page-monitor-values-visibility.mdxdeleted file mode 100644index a7a62e054..000000000--- a/apps/web/src/content/changelog/status-page-monitor-values-visibility.mdx+++ /dev/null@@ -1,11 +0,0 @@-----title: Monitor values visibility-description: Hide the uptime and number of request on your status pages.-publishedAt: 2024-10-20-image: /assets/changelog/status-page-monitor-values-visibility.png-------You can now hide your request values.--We have added a checkbox within your Status Page settings to hide/show the number of total and failed requests incl. the average percentage for each monitor connected to the page.\ No newline at end of filediff --git a/apps/web/src/content/changelog/status-report-location-change.mdx b/apps/web/src/content/changelog/status-report-location-change.mdxdeleted file mode 100644index 2b89ebf58..000000000--- a/apps/web/src/content/changelog/status-report-location-change.mdx+++ /dev/null@@ -1,10 +0,0 @@-----title: Status Report location change-description: Each report is now saved within a Status Page.-publishedAt: 2024-07-14-image: /assets/changelog/status-report-location-change.png------The location of your reports has changed. The can be found within the connected status page. No need to connect manually to a status page.--If you encounter any issues. Please [contact us](mailto:[email protected]).\ No newline at end of filediff --git a/apps/web/src/content/changelog/status-update-subscriber.mdx b/apps/web/src/content/changelog/status-update-subscriber.mdxdeleted file mode 100644index 4d1258a23..000000000--- a/apps/web/src/content/changelog/status-update-subscriber.mdx+++ /dev/null@@ -1,11 +0,0 @@-----title: Status Update Subscriber-description: You can now subscribe to pro plan status updates via email.-publishedAt: 2023-12-11-image: /assets/changelog/status-update-subscriber.png------You can now subscribe to pro plan status updates via email.--As a subscriber, we require you to verify your email address to avoid spam. You-can do this by clicking the link in the email we send you after you subscribe.diff --git a/apps/web/src/content/changelog/team-invites.mdx b/apps/web/src/content/changelog/team-invites.mdxdeleted file mode 100644index 56febc709..000000000--- a/apps/web/src/content/changelog/team-invites.mdx+++ /dev/null@@ -1,9 +0,0 @@-----title: Team invites-description: Invite your team members to your workspace-image: /assets/changelog/team-invites.png-publishedAt: 2023-12-08------As a Pro plan user, you can now invite you favorite team members to your-workspace and collaborate on your project together.diff --git a/apps/web/src/content/copy-button.tsx b/apps/web/src/content/copy-button.tsxnew file mode 100644index 000000000..d63786936--- /dev/null+++ b/apps/web/src/content/copy-button.tsx@@ -0,0 +1,25 @@+"use client";++import { useCopyToClipboard } from "@/hooks/use-copy-to-clipboard";+import { cn } from "@/lib/utils";+import { Button } from "@openstatus/ui";++export function CopyButton({+ className,+ copyText,+ ...props+}: React.ComponentProps<typeof Button> & { copyText: string }) {+ const { copy, isCopied } = useCopyToClipboard();++ return (+ <Button+ variant="ghost"+ size="lg"+ className={cn("rounded-none p-4", className)}+ onClick={() => copy(copyText, { withToast: true })}+ {...props}+ >+ {isCopied ? "[copied]" : "[copy]"}+ </Button>+ );+}diff --git a/apps/web/src/content/faq/about-us.mdx b/apps/web/src/content/faq/about-us.mdxdeleted file mode 100644index d8ef5b193..000000000--- a/apps/web/src/content/faq/about-us.mdx+++ /dev/null@@ -1,9 +0,0 @@-----title: Who are we?-order: 2------We are [Thibault](https://bsky.app/profile/thibaultleouay.dev) and-[Max](https://twitter.com/mxkaske) and we take you with us on our journey.--Read more on our [about](/about) page.diff --git a/apps/web/src/content/faq/functioning.mdx b/apps/web/src/content/faq/functioning.mdxdeleted file mode 100644index 370621203..000000000--- a/apps/web/src/content/faq/functioning.mdx+++ /dev/null@@ -1,10 +0,0 @@-----title: How does it work?-order: 3------We ping your endpoints from multiple regions to calculate uptime and display the-current status on your status page. We also collect response time data like-`headers` and `timing` phases and display it on your dashboard.--Try out the [Speed Checker](/play/checker).diff --git a/apps/web/src/content/faq/help.mdx b/apps/web/src/content/faq/help.mdxdeleted file mode 100644index 0e04e6606..000000000--- a/apps/web/src/content/faq/help.mdx+++ /dev/null@@ -1,16 +0,0 @@-----title: How can I help?-order: 5------There are many ways you can help us:--- **Spread the word**: Tell your friends and colleagues about OpenStatus. The- more people use it, the more we can improve it.-- **Report bugs**: If you find a bug, please report it.-- **Suggest features**: If you have an idea for a new feature, please let us- know.-- **Contribute**: If you are a developer, you can contribute to the project.-- **Become a paid user**: If you are a business, you can become a paid user.-- **Star our project**: If you like our project, you can star it on- [GitHub](https://github.com/openstatusHQ/openstatus).diff --git a/apps/web/src/content/faq/limits.mdx b/apps/web/src/content/faq/limits.mdxdeleted file mode 100644index 5279d1547..000000000--- a/apps/web/src/content/faq/limits.mdx+++ /dev/null@@ -1,10 +0,0 @@-----title: What are the limits?-order: 1------As free user you will start with a total of **1 monitor** and **1 status page**-as well as cron jobs of min. `10m`. You can upgrade to a paid plan at any time.-Check the pricing table for more details.--**No credit card** is required to sign up and you can cancel at any time.diff --git a/apps/web/src/content/faq/supported-regions.mdx b/apps/web/src/content/faq/supported-regions.mdxdeleted file mode 100644index 3cdeff98e..000000000--- a/apps/web/src/content/faq/supported-regions.mdx+++ /dev/null@@ -1,57 +0,0 @@-----title: What regions do we support?-order: 4------We support 35 regions to allow multi-regions monitoring:--**Africa**-- Johannesburg, South Africa 🇿🇦--**Asia**-- Hong Kong, Hong Kong 🇭🇰-- Mumbai, India 🇮🇳-- Singapore, Singapore 🇸🇬-- Tokyo, Japan 🇯🇵--**Europe**-- Amsterdam, Netherlands 🇳🇱-- Bucharest, Romania 🇷🇴-- Frankfurt, Germany 🇩🇪-- London, United Kingdom 🇬🇧-- Madrid, Spain 🇪🇸-- Paris, France 🇫🇷-- Stockholm, Sweden 🇸🇪-- Warsaw, Poland 🇵🇱---**North America**-- Ashburn, Virginia, USA 🇺🇸-- Atlanta, Georgia, USA 🇺🇸-- Boston, Massachusetts, USA 🇺🇸-- Chicago, Illinois, USA 🇺🇸-- Dallas, Texas, USA 🇺🇸-- Denver, Colorado, USA 🇺🇸-- Guadalajara, Mexico 🇲🇽-- Los Angeles, California, USA 🇺🇸-- Miami, Florida, USA 🇺🇸-- Montreal, Canada 🇨🇦-- Phoenix, Arizona, USA 🇺🇸-- Queretaro, Mexico 🇲🇽-- Seattle, Washington, USA 🇺🇸-- San Jose, California, USA 🇺🇸-- Toronto, Canada 🇨🇦--**South America**-- Bogota, Colombia 🇨🇴-- Buenos Aires, Argentina 🇦🇷-- Rio de Janeiro, Brazil 🇧🇷-- Sao Paulo, Brazil 🇧🇷-- Santiago, Chile 🇨🇱--**Oceania**-- Sydney, Australia 🇦🇺---Feel free to [contact us](mailto:[email protected]) if you need a specific-region.diff --git a/apps/web/src/content/footer-status.tsx b/apps/web/src/content/footer-status.tsxnew file mode 100644index 000000000..a76341d39--- /dev/null+++ b/apps/web/src/content/footer-status.tsx@@ -0,0 +1,42 @@+import { cn } from "@/lib/utils";+import { getStatus } from "@openstatus/react";+import Link from "next/link";++export async function FooterStatus() {+ const status = await getStatus("status");+ return (+ <Link+ href="https://status.openstatus.dev"+ className={cn(+ "flex w-full items-center gap-2 p-4 hover:bg-muted",+ STATUS[status.status].color,+ )}+ >+ {STATUS[status.status].label}+ </Link>+ );+}++const STATUS = {+ operational: { color: "text-success", label: "Operational" },+ degraded_performance: {+ color: "text-warning",+ label: "Degraded Performance",+ },+ partial_outage: { color: "text-warning", label: "Partial Outage" },+ major_outage: { color: "text-error", label: "Major Outage" },+ under_maintenance: { color: "text-info", label: "Under Maintenance" },+ unknown: { color: "text-gray-500", label: "Unknown" },+ incident: { color: "text-warning", label: "Incident" },+} satisfies Record<+ Awaited<ReturnType<typeof getStatus>>["status"],+ { color: string; label: string }+>;++export function FooterStatusFallback() {+ return (+ <div className="flex w-full items-center gap-2 p-4 hover:bg-muted">+ Loading...+ </div>+ );+}diff --git a/apps/web/src/content/footer.tsx b/apps/web/src/content/footer.tsxnew file mode 100644index 000000000..f2ce29dec--- /dev/null+++ b/apps/web/src/content/footer.tsx@@ -0,0 +1,44 @@+import { Link } from "@/content/link";+import { ThemeToggle } from "@/content/theme-toggle";+import { footerLinks } from "@/data/content";+import { Suspense } from "react";+import { FooterStatus } from "./footer-status";++export function Footer() {+ return (+ <footer>+ <div className="grid grid-cols-1 gap-px border border-border bg-border sm:grid-cols-2 md:grid-cols-3 [&>div]:bg-background [&>div]:p-4">+ {footerLinks.map((section) => (+ <div key={section.label}>+ <p className="text-muted-foreground">{section.label}</p>+ <ul>+ {section.items.map((item) => (+ <li key={item.href}>+ <Link+ href={item.href}+ className="block w-full hover:bg-muted"+ >+ {item.label}+ </Link>+ </li>+ ))}+ </ul>+ </div>+ ))}+ </div>+ <div className="grid gap-px border border-border border-t-0 bg-border sm:grid-cols-2 md:grid-cols-3 [&>*]:bg-background">+ <p className="p-4 text-muted-foreground">+ Powered by <Link href="https://openstatus.dev">openstatus</Link>.+ </p>+ <div>+ <Suspense fallback="Loading...">+ <FooterStatus />+ </Suspense>+ </div>+ <div className="sm:col-span-2 md:col-span-1">+ <ThemeToggle className="rounded-none" />+ </div>+ </div>+ </footer>+ );+}diff --git a/apps/web/src/content/header.tsx b/apps/web/src/content/header.tsxnew file mode 100644index 000000000..1ad83be94--- /dev/null+++ b/apps/web/src/content/header.tsx@@ -0,0 +1,100 @@+import { headerLinks } from "@/data/content";+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuTrigger,+} from "@openstatus/ui";+import {+ ContextMenu,+ ContextMenuContent,+ ContextMenuItem,+ ContextMenuTrigger,+} from "@openstatus/ui";+import Link from "next/link";++export function Header() {+ return (+ <header className="grid grid-cols-3 gap-px border border-border bg-border lg:grid-cols-6 [&>*]:bg-background [&>*]:px-4 [&>*]:py-4 [&>*]:hover:bg-muted">+ <ContextMenu>+ <ContextMenuTrigger className="group" asChild>+ <Link href="/" className="relative flex items-center gap-2">+ <img+ src="/assets/landing/openstatus-logo.svg"+ alt="openstatus logo"+ width={20}+ height={20}+ className="rounded-full border border-border dark:border-foreground"+ />+ <span className="hidden sm:block">openstatus</span>+ <div className="absolute right-0.5 bottom-0 hidden group-hover:block">+ <span className="text-[10px] text-muted-foreground/50">+ [right click]+ </span>+ </div>+ </Link>+ </ContextMenuTrigger>+ <ContextMenuContent className="min-w-[var(--radix-dropdown-menu-trigger-width)] rounded-none">+ <ContextMenuItem className="rounded-none px-2 py-3 font-mono" asChild>+ {/* FIXME: use relative path */}+ <a+ href="https://openstatus.dev/assets/logos/OpenStatus.svg"+ download="openstatus.svg"+ >+ Download Name SVG+ </a>+ </ContextMenuItem>+ <ContextMenuItem className="rounded-none px-2 py-3 font-mono" asChild>+ <a+ href="https://openstatus.dev/assets/logos/OpenStatus-Logo.svg"+ download="openstatus-logo.svg"+ >+ Download Logo SVG+ </a>+ </ContextMenuItem>+ </ContextMenuContent>+ </ContextMenu>+ {headerLinks.map((section, _) => (+ <DropdownMenu key={section.label}>+ <DropdownMenuTrigger className="group flex items-center gap-1 data-[state=open]:bg-muted">+ <span className="w-full truncate text-left">{section.label}</span>+ <span+ className="relative top-[1px] shrink-0 origin-center text-[10px] text-muted-foreground transition duration-300 group-hover:text-foreground group-data-[state=open]:rotate-180 group-data-[state=open]:text-foreground"+ aria-hidden="true"+ >+ ▲+ </span>+ </DropdownMenuTrigger>+ <DropdownMenuContent+ align="start"+ className="min-w-[var(--radix-dropdown-menu-trigger-width)] rounded-none"+ alignOffset={0}+ sideOffset={0}+ >+ {section.items.map((item) => (+ <DropdownMenuItem+ key={item.href}+ className="rounded-none px-2 py-3 font-mono"+ asChild+ >+ <Link href={item.href}>{item.label}</Link>+ </DropdownMenuItem>+ ))}+ </DropdownMenuContent>+ </DropdownMenu>+ ))}+ <Link href="/pricing" className="truncate">+ Pricing+ </Link>+ <Link href="https://docs.openstatus.dev" className="truncate">+ Docs+ </Link>+ <Link+ href="https://app.openstatus.dev/login"+ className="truncate text-info"+ >+ Dashboard+ </Link>+ </header>+ );+}diff --git a/apps/web/src/content/image-zoom.tsx b/apps/web/src/content/image-zoom.tsxnew file mode 100644index 000000000..f971f554a--- /dev/null+++ b/apps/web/src/content/image-zoom.tsx@@ -0,0 +1,52 @@+"use client";++import { cn } from "@/lib/utils";+import Zoom, {+ type ControlledProps,+ type UncontrolledProps,+} from "react-medium-image-zoom";++export type ImageZoomProps = UncontrolledProps & {+ isZoomed?: ControlledProps["isZoomed"];+ onZoomChange?: ControlledProps["onZoomChange"];+ className?: string;+ backdropClassName?: string;+};++export const ImageZoom = ({+ className,+ backdropClassName,+ ...props+}: ImageZoomProps) => (+ <div+ className={cn(+ "relative",+ "[&_[data-rmiz-ghost]]:pointer-events-none [&_[data-rmiz-ghost]]:absolute",+ "[&_[data-rmiz-btn-zoom]]:m-0 [&_[data-rmiz-btn-zoom]]:size-10 [&_[data-rmiz-btn-zoom]]:touch-manipulation [&_[data-rmiz-btn-zoom]]:appearance-none [&_[data-rmiz-btn-zoom]]:rounded-[50%] [&_[data-rmiz-btn-zoom]]:border-none [&_[data-rmiz-btn-zoom]]:bg-foreground/70 [&_[data-rmiz-btn-zoom]]:p-2 [&_[data-rmiz-btn-zoom]]:text-background [&_[data-rmiz-btn-zoom]]:outline-offset-2",+ "[&_[data-rmiz-btn-unzoom]]:m-0 [&_[data-rmiz-btn-unzoom]]:size-10 [&_[data-rmiz-btn-unzoom]]:touch-manipulation [&_[data-rmiz-btn-unzoom]]:appearance-none [&_[data-rmiz-btn-unzoom]]:rounded-[50%] [&_[data-rmiz-btn-unzoom]]:border-none [&_[data-rmiz-btn-unzoom]]:bg-foreground/70 [&_[data-rmiz-btn-unzoom]]:p-2 [&_[data-rmiz-btn-unzoom]]:text-background [&_[data-rmiz-btn-unzoom]]:outline-offset-2",+ "[&_[data-rmiz-btn-zoom]:not(:focus):not(:active)]:pointer-events-none [&_[data-rmiz-btn-zoom]:not(:focus):not(:active)]:absolute [&_[data-rmiz-btn-zoom]:not(:focus):not(:active)]:size-px [&_[data-rmiz-btn-zoom]:not(:focus):not(:active)]:overflow-hidden [&_[data-rmiz-btn-zoom]:not(:focus):not(:active)]:whitespace-nowrap [&_[data-rmiz-btn-zoom]:not(:focus):not(:active)]:[clip-path:inset(50%)] [&_[data-rmiz-btn-zoom]:not(:focus):not(:active)]:[clip:rect(0_0_0_0)]",+ "[&_[data-rmiz-btn-zoom]]:absolute [&_[data-rmiz-btn-zoom]]:top-2.5 [&_[data-rmiz-btn-zoom]]:right-2.5 [&_[data-rmiz-btn-zoom]]:bottom-auto [&_[data-rmiz-btn-zoom]]:left-auto [&_[data-rmiz-btn-zoom]]:cursor-zoom-in",+ "[&_[data-rmiz-btn-unzoom]]:absolute [&_[data-rmiz-btn-unzoom]]:top-5 [&_[data-rmiz-btn-unzoom]]:right-5 [&_[data-rmiz-btn-unzoom]]:bottom-auto [&_[data-rmiz-btn-unzoom]]:left-auto [&_[data-rmiz-btn-unzoom]]:z-[1] [&_[data-rmiz-btn-unzoom]]:cursor-zoom-out",+ '[&_[data-rmiz-content="found"]_img]:cursor-zoom-in',+ '[&_[data-rmiz-content="found"]_svg]:cursor-zoom-in',+ '[&_[data-rmiz-content="found"]_[role="img"]]:cursor-zoom-in',+ '[&_[data-rmiz-content="found"]_[data-zoom]]:cursor-zoom-in',+ className,+ )}+ >+ <Zoom+ classDialog={cn(+ "[&::backdrop]:hidden",+ "[&[open]]:fixed [&[open]]:m-0 [&[open]]:h-dvh [&[open]]:max-h-none [&[open]]:w-dvw [&[open]]:max-w-none [&[open]]:overflow-hidden [&[open]]:border-0 [&[open]]:bg-transparent [&[open]]:p-0",+ "[&_[data-rmiz-modal-overlay]]:absolute [&_[data-rmiz-modal-overlay]]:inset-0 [&_[data-rmiz-modal-overlay]]:transition-all",+ '[&_[data-rmiz-modal-overlay="hidden"]]:bg-transparent',+ '[&_[data-rmiz-modal-overlay="visible"]]:bg-background/80 [&_[data-rmiz-modal-overlay="visible"]]:backdrop-blur-md',+ "[&_[data-rmiz-modal-content]]:relative [&_[data-rmiz-modal-content]]:size-full",+ "[&_[data-rmiz-modal-img]]:absolute [&_[data-rmiz-modal-img]]:origin-top-left [&_[data-rmiz-modal-img]]:cursor-zoom-out [&_[data-rmiz-modal-img]]:transition-transform",+ "motion-reduce:[&_[data-rmiz-modal-img]]:transition-none motion-reduce:[&_[data-rmiz-modal-overlay]]:transition-none",+ backdropClassName,+ )}+ {...props}+ />+ </div>+);diff --git a/apps/web/src/content/latency-chart-table.tsx b/apps/web/src/content/latency-chart-table.tsxnew file mode 100644index 000000000..8579f57ee--- /dev/null+++ b/apps/web/src/content/latency-chart-table.tsx@@ -0,0 +1,82 @@+import fs from "node:fs";+import type { RegionMetricsChartTable } from "@/data/content";+import { type Region, regionDict } from "@openstatus/regions";+import { SimpleChart } from "./simple-chart";++export interface LatencyChartTableProps {+ staticFile: string;+ caption?: string;+}++interface LatencyChartTableData {+ regions: Region[];+ data: {+ regions: Region[];+ data: (Partial<Record<Region, number>> & { timestamp: string })[];+ };+ metricsByRegion: RegionMetricsChartTable[];+}++export function LatencyChartTable({+ staticFile,+ caption = "A list of all the selected regions.",+}: LatencyChartTableProps) {+ const data = JSON.parse(+ fs.readFileSync(`${process.cwd()}/public${staticFile}`, "utf8"),+ ) as LatencyChartTableData;+ const { regions, data: chartData, metricsByRegion } = data;++ return (+ <div className="table-wrapper">+ <table>+ <caption>{caption}</caption>+ <thead>+ <tr>+ <th className="w-[100px]">Region</th>+ <th>Trend</th>+ <th className="w-[50px]">P75</th>+ <th className="w-[50px]">P95</th>+ <th className="w-[50px]">P99</th>+ </tr>+ </thead>+ <tbody>+ {regions+ .filter((region) => regions.includes(region))+ .map((region) => {+ const regionConfig = regionDict[region as Region];+ const flag = regionConfig.flag;+ const code = regionConfig.code;+ const metrics = metricsByRegion.find((m) => m.region === region);+ return (+ <tr key={region}>+ <td>+ {flag} {code}+ </td>+ <td>+ <SimpleChart+ data={chartData.data.map((d) => ({+ timestamp: d.timestamp,+ latency: d[region],+ }))}+ />+ </td>+ <td>+ {metrics?.p75Latency}+ ms+ </td>+ <td>+ {metrics?.p95Latency}+ ms+ </td>+ <td>+ {metrics?.p99Latency}+ ms+ </td>+ </tr>+ );+ })}+ </tbody>+ </table>+ </div>+ );+}diff --git a/apps/web/src/content/link.tsx b/apps/web/src/content/link.tsxnew file mode 100644index 000000000..6749263d8--- /dev/null+++ b/apps/web/src/content/link.tsx@@ -0,0 +1,19 @@+import { cn } from "@/lib/utils";+import NextLink from "next/link";++// TODO: we could add cva variants for the link++export function Link({+ children,+ className,+ ...props+}: React.ComponentProps<typeof NextLink>) {+ return (+ <NextLink+ className={cn("font-medium text-foreground", className)}+ {...props}+ >+ {children}+ </NextLink>+ );+}diff --git a/apps/web/src/content/mdx.tsx b/apps/web/src/content/mdx.tsxnew file mode 100644index 000000000..f445345f7--- /dev/null+++ b/apps/web/src/content/mdx.tsx@@ -0,0 +1,370 @@+import { existsSync } from "node:fs";+import { join } from "node:path";+import { cn } from "@/lib/utils";+import { Button } from "@openstatus/ui";+import { MDXRemote, type MDXRemoteProps } from "next-mdx-remote/rsc";+import Image from "next/image";+import Link from "next/link";+import React from "react";+import { Tweet, type TweetProps } from "react-tweet";+import { highlight } from "sugar-high";+import { CopyButton } from "./copy-button";+import { ImageZoom } from "./image-zoom";+import { LatencyChartTable } from "./latency-chart-table";++function Table({+ data,+}: {+ data: { headers: React.ReactNode[]; rows: React.ReactNode[][] };+}) {+ const headers = data.headers.map((header: React.ReactNode, index: number) => (+ <th key={index}>{header}</th>+ ));+ const rows = data.rows.map((row: React.ReactNode[], index: number) => (+ <tr key={index}>+ {row.map((cell: React.ReactNode, cellIndex: number) => (+ <td key={cellIndex}>{cell}</td>+ ))}+ </tr>+ ));++ return (+ <div className="table-wrapper">+ <table>+ <thead>+ <tr>{headers}</tr>+ </thead>+ <tbody>{rows}</tbody>+ </table>+ </div>+ );+}++function Grid({+ cols = 2,+ children,+ className,+}: {+ cols?: 1 | 2 | 3 | 4 | 5;+ children: React.ReactNode;+ className?: string;+}) {+ const colsClass = {+ 1: "md:grid-cols-1",+ 2: "md:grid-cols-2",+ 3: "md:grid-cols-3",+ 4: "md:grid-cols-4",+ 5: "md:grid-cols-5",+ };++ // Remove top border from all except first row+ const topBorderClass = {+ 1: "[&>*]:border-t-0 [&>*:first-child]:border-t",+ 2: "[&>*]:border-t-0 [&>*:first-child]:border-t md:[&>*:nth-child(-n+2)]:border-t",+ 3: "[&>*]:border-t-0 [&>*:first-child]:border-t md:[&>*:nth-child(-n+3)]:border-t",+ 4: "[&>*]:border-t-0 [&>*:first-child]:border-t md:[&>*:nth-child(-n+4)]:border-t",+ 5: "[&>*]:border-t-0 [&>*:first-child]:border-t md:[&>*:nth-child(-n+5)]:border-t",+ };++ // Remove left border from all except first column (only on md+ screens)+ const leftBorderClass = {+ 1: "",+ 2: "md:[&>*]:border-l-0 md:[&>*:nth-child(2n+1)]:border-l",+ 3: "md:[&>*]:border-l-0 md:[&>*:nth-child(3n+1)]:border-l",+ 4: "md:[&>*]:border-l-0 md:[&>*:nth-child(4n+1)]:border-l",+ 5: "md:[&>*]:border-l-0 md:[&>*:nth-child(5n+1)]:border-l",+ };++ return (+ <div+ className={cn(+ "my-4 grid grid-cols-1",+ "[&>*]:border [&>*]:border-border [&>*]:p-4",+ // NOTE: remove extra margin from prose grid cells of first and last element+ "[&>*>*:first-child]:!mt-0 [&>*>*:last-child]:!mb-0",+ colsClass[cols],+ topBorderClass[cols],+ leftBorderClass[cols],+ className,+ )}+ >+ {children}+ </div>+ );+}++function CustomLink(props: React.ComponentProps<"a">) {+ const href = props.href ?? "";++ if (href.startsWith("/")) {+ return (+ <Link href={href} {...props}>+ {props.children}+ </Link>+ );+ }++ if (href.startsWith("#")) {+ return <a {...props} />;+ }++ return <a target="_blank" rel="noopener noreferrer" {...props} />;+}++function ButtonLink(+ props: React.ComponentProps<typeof Button> & { href: string },+) {+ return (+ <Button+ variant="outline"+ size="lg"+ className="no-underline! h-auto rounded-none px-4 py-4 text-base"+ asChild+ {...props}+ >+ <CustomLink href={props.href}>{props.children}</CustomLink>+ </Button>+ );+}++function Code({ children, className, ...props }: React.ComponentProps<"code">) {+ // Only apply syntax highlighting if a language is specified (className contains "language-")+ const hasLanguage = className?.includes("language-");++ if (hasLanguage) {+ const codeHTML = highlight(children?.toString() ?? "");+ return (+ <code+ // biome-ignore lint/security/noDangerouslySetInnerHtml: <explanation>+ dangerouslySetInnerHTML={{ __html: codeHTML }}+ className={className}+ {...props}+ />+ );+ }++ // Plain code block without language - render as-is+ return (+ <code className={className} {...props}>+ {children}+ </code>+ );+}++function extractTextFromReactNode(node: React.ReactNode): string {+ if (typeof node === "string") {+ return node;+ }+ if (typeof node === "number") {+ return String(node);+ }+ if (Array.isArray(node)) {+ return node.map(extractTextFromReactNode).join("");+ }+ if (React.isValidElement(node)) {+ const props = node.props as { children?: React.ReactNode };+ if (props.children) {+ return extractTextFromReactNode(props.children);+ }+ }+ return "";+}++function Pre({ children, ...props }: React.ComponentProps<"pre">) {+ const textContent = extractTextFromReactNode(children);+ return (+ <div className="relative">+ <pre {...props}>{children}</pre>+ <CopyButton+ copyText={textContent}+ className="absolute top-px right-px backdrop-blur-xs"+ />+ </div>+ );+}++function slugify(str: string) {+ return str+ .toString()+ .toLowerCase()+ .trim() // Remove whitespace from both ends of a string+ .replace(/\s+/g, "-") // Replace spaces with -+ .replace(/&/g, "-and-") // Replace & with 'and'+ .replace(/[^\w-]+/g, "") // Remove all non-word characters except for -+ .replace(/--+/g, "-"); // Replace multiple - with single -+}++function createHeading(level: number) {+ const Heading = ({ children }: { children: React.ReactNode }) => {+ const slug = slugify(children?.toString() ?? "");+ return React.createElement(+ `h${level}`,+ { id: slug },+ [+ React.createElement("a", {+ href: `#${slug}`,+ key: `link-${slug}`,+ className: "anchor",+ }),+ ],+ children,+ );+ };++ Heading.displayName = `Heading${level}`;++ return Heading;+}++function Details({+ children,+ summary,+ open = false,+}: {+ children: React.ReactNode;+ summary: string;+ open?: boolean;+}) {+ return (+ <details open={open}>+ <summary>{summary}</summary>+ {children}+ </details>+ );+}++function CustomImage({+ className,+ ...props+}: React.ComponentProps<typeof Image>) {+ const { src, alt, width, height, ...rest } = props;++ if (!src || typeof src !== "string") {+ return (+ <figure>+ <ImageZoom+ backdropClassName={cn(+ '[&_[data-rmiz-modal-overlay="visible"]]:bg-background/80',+ )}+ zoomMargin={16}+ >+ <Image+ className={className}+ src={src}+ alt={alt ?? "image"}+ width={0}+ height={0}+ sizes="100vw"+ style={{ width: "100%", height: "auto" }}+ {...rest}+ />+ </ImageZoom>+ <figcaption>{alt}</figcaption>+ </figure>+ );+ }++ // Generate dark mode image path by adding .dark before extension+ const getDarkImagePath = (path: string) => {+ const match = path.match(/^(.+)(\.[^.]+)$/);+ if (match) {+ return `${match[1]}.dark${match[2]}`;+ }+ return path;+ };++ // Check if dark image exists, fallback to light version if not+ const checkDarkImageExists = (darkPath: string) => {+ // If path starts with /, it's in the public directory+ if (darkPath.startsWith("/")) {+ const publicPath = join(process.cwd(), "public", darkPath);+ return existsSync(publicPath);+ }+ // For relative paths, check relative to public+ const publicPath = join(process.cwd(), "public", darkPath);+ return existsSync(publicPath);+ };++ const darkSrc = getDarkImagePath(src);+ const useDarkImage = checkDarkImageExists(darkSrc);++ return (+ <figure>+ <ImageZoom+ backdropClassName={cn(+ '[&_[data-rmiz-modal-overlay="visible"]]:bg-black/80',+ )}+ zoomMargin={16}+ >+ <Image+ {...rest}+ src={src}+ alt={alt ?? ""}+ width={0}+ height={0}+ sizes="100vw"+ style={{ width: "100%", height: "auto" }}+ className={cn("block dark:hidden", className)}+ />+ </ImageZoom>+ <ImageZoom+ backdropClassName={cn(+ '[&_[data-rmiz-modal-overlay="visible"]]:bg-black/80',+ )}+ zoomMargin={16}+ >+ <Image+ {...rest}+ src={useDarkImage ? darkSrc : src}+ alt={alt ?? ""}+ width={0}+ height={0}+ sizes="100vw"+ style={{ width: "100%", height: "auto" }}+ className={cn("hidden dark:block", className)}+ />+ </ImageZoom>+ {alt && <figcaption>{alt}</figcaption>}+ </figure>+ );+}++export const components = {+ h1: createHeading(1),+ h2: createHeading(2),+ h3: createHeading(3),+ h4: createHeading(4),+ h5: createHeading(5),+ h6: createHeading(6),+ Image: CustomImage,+ a: CustomLink,+ ButtonLink: ButtonLink,+ code: Code,+ pre: Pre,+ Table,+ Grid,+ Details, // Capital D for JSX usage with props+ details: Details, // lowercase for HTML tag replacement+ SimpleChart: LatencyChartTable,+ Tweet: (props: TweetProps) => {+ return (+ <div data-theme="light" className="not-prose [&>div]:mx-auto">+ <Tweet {...props} />+ </div>+ );+ },+};++export function CustomMDX(props: MDXRemoteProps) {+ return (+ <MDXRemote+ {...props}+ components={+ {+ ...components,+ ...(props.components || {}),+ } as MDXRemoteProps["components"]+ }+ />+ );+}diff --git a/apps/web/src/content/nav.tsx b/apps/web/src/content/nav.tsxnew file mode 100644index 000000000..e69de29bbdiff --git a/apps/web/src/content/posts/2023-year-review.mdx b/apps/web/src/content/pages/blog/2023-year-review.mdxsimilarity index 93%rename from apps/web/src/content/posts/2023-year-review.mdxrename to apps/web/src/content/pages/blog/2023-year-review.mdxindex 25219465b..0cf851bdd 100644--- a/apps/web/src/content/posts/2023-year-review.mdx+++ b/apps/web/src/content/pages/blog/2023-year-review.mdx@@ -1,15 +1,10 @@----title: Our 2023 year in review.-description:- Let's review our year in 2023, analyze our metrics, and discuss our future- plans.-author:- name: Thibault Le Ouay Ducasse- url: https://bsky.app/profile/thibaultleouay.dev- avatar: /assets/authors/thibault.jpeg-publishedAt: 2023-12-29-image: /assets/posts/2023-year-review/title.png-tag: company+title: "Our 2023 year in review."+description: "Let's review our year in 2023, analyze our metrics, and discuss our future plans."+author: "Thibault Le Ouay Ducasse"+publishedAt: "2023-12-29"+image: "/assets/posts/2023-year-review/title.png"+category: "company"---It has been a wild six months for us at OpenStatus. In late June, we begandiff --git a/apps/web/src/content/posts/data-table-redesign.mdx b/apps/web/src/content/pages/blog/data-table-redesign.mdxsimilarity index 96%rename from apps/web/src/content/posts/data-table-redesign.mdxrename to apps/web/src/content/pages/blog/data-table-redesign.mdxindex 87716b1a8..15817be3b 100644--- a/apps/web/src/content/posts/data-table-redesign.mdx+++ b/apps/web/src/content/pages/blog/data-table-redesign.mdx@@ -1,13 +1,10 @@----title: The React data-table I always wanted-description: Better design, new features, and performance improvements.-author:- name: Maximilian Kaske- url: https://x.com/mxkaske- avatar: /assets/authors/max.png-publishedAt: 2025-02-02-image: /assets/posts/data-table-redesign/toolbox.png-tag: engineering+title: "The React data-table I always wanted"+description: "Better design, new features, and performance improvements."+author: "Maximilian Kaske"+publishedAt: "2025-02-02"+image: "/assets/posts/data-table-redesign/toolbox.png"+category: "engineering"---We have release our react data-table based on [shadcn/ui](https://ui.shadcn.com/) a couple of months ago. While there's still in development, the PR [#11](https://github.com/openstatusHQ/data-table-filters/pull/11) marks an important second milestone after the initial release a few months ago. We now have a solid foundation to focus on the component API design and data fetching. Though you can create your own data table using only config files (for "sheet," "filters," and "columns"), you end up writing more code than you would like.@@ -20,16 +17,14 @@ We've reworked the design. Adding table borders improves clarity and structure.A quick look of the before/after changes:-<ImageWithCaption+<Imagesrc="/assets/posts/data-table-redesign/before.png"alt="before"- caption="before"/>-<ImageWithCaption+<Imagesrc="/assets/posts/data-table-redesign/after.png"alt="after"- caption="after"/>We have been inspired by [Vercel](http://vercel.com/?ref=openstatus), [Datadog](http://datadoghq.com/?ref=openstatus) and [Axiom](http://axiom.co/?ref=openstatus) when it comes to design and features.diff --git a/apps/web/src/content/posts/deploy-private-locations-raspberry-pi.mdx b/apps/web/src/content/pages/blog/deploy-private-locations-raspberry-pi.mdxsimilarity index 86%rename from apps/web/src/content/posts/deploy-private-locations-raspberry-pi.mdxrename to apps/web/src/content/pages/blog/deploy-private-locations-raspberry-pi.mdxindex 9a3e9f931..c67066a29 100644--- a/apps/web/src/content/posts/deploy-private-locations-raspberry-pi.mdx+++ b/apps/web/src/content/pages/blog/deploy-private-locations-raspberry-pi.mdx@@ -1,13 +1,10 @@----title: Deploy private locations on a Raspberry Pi-description: An 8.5MB Docker image running uptime checks from home.-author:- name: Maximilian Kaske- url: https://x.com/mxkaske- avatar: /assets/authors/max.png-publishedAt: 2025-10-17-image: /assets/posts/deploy-private-locations-raspberry-pi/raspberry-pi.png-tag: engineering+title: "Deploy private locations on a Raspberry Pi"+description: "An 8.5MB Docker image running uptime checks from home."+author: "Maximilian Kaske"+publishedAt: "2025-10-17"+image: "/assets/posts/deploy-private-locations-raspberry-pi/raspberry-pi.png"+category: "engineering"---We just pushed the first version of **Private Locations** at openstatus - and I had to test it on my old **Raspberry Pi 3**.@@ -16,10 +13,9 @@ Since **2016**, I've been using the Pi for **AirPlay** to connect to my receiverTime to revive it!-<ImageWithCaption+<Imagesrc="/assets/posts/deploy-private-locations-raspberry-pi/raspberry-pi-receiver.jpg"- alt="bare metal raspberrypi on a receiver"- caption="My bare metal Raspberry Pi on top of the receiver I use for AirPlay"+ alt="My bare metal Raspberry Pi on top of the receiver I use for AirPlay"/>---@@ -69,10 +65,9 @@ $ cat /etc/os-releaseI'm running the OS on a **16GB micro SD** card. The Pi has **1GB of RAM**, which is perfectly enough for this use case.-<ImageWithCaption+<Imagesrc="/assets/posts/deploy-private-locations-raspberry-pi/raspberry-htop.png"- alt="htop stats"- caption="Statistics from htop command"+ alt="Statistics from htop command"/>@@ -100,10 +95,9 @@ $ sudo docker pull ghcr.io/openstatushq/private-location:latestIf you have access to Private Locations in the **Dashboard**, create one - it'll will provide you a `token` to use as an environment variables:-<ImageWithCaption+<Imagesrc="/assets/posts/deploy-private-locations-raspberry-pi/dashboard-create-private-location.png"- alt="dashboard create private location form"- caption="Create a private location"+ alt="Create a private location"/>@@ -167,10 +161,9 @@ Every few minutes (`last_seen_at`), the agent refreshes its internal database toThe responses of the pings are sent to our ingest endpoint for storage and aggregation.-<ImageWithCaption+<Imagesrc="/assets/posts/deploy-private-locations-raspberry-pi/dashboard-response-logs.png"- alt="response logs in the openstatus dashboard"- caption="Access your logs within the openstatus Dashboard."+ alt="Access your logs within the openstatus Dashboard."/>@@ -199,7 +192,7 @@ Not bad for a 9-year-old piece of hardware.If you'd like to try this out yourself, contact us ([discord](https://openstatus.dev/discord), [email](mailto:[email protected])) and head over to:-https://github.com/openstatusHQ/openstatus/pkgs/container/private-location+[pkgs/container/private-location](https://github.com/openstatusHQ/openstatus/pkgs/container/private-location)Private locations are currently in **beta** and we're gathering feedback from early users. If you've got an old Raspberry Pi lying around - this is your excuse to bring it back to life.diff --git a/apps/web/src/content/posts/dynamic-breadcrumb-nextjs.mdx b/apps/web/src/content/pages/blog/dynamic-breadcrumb-nextjs.mdxsimilarity index 93%rename from apps/web/src/content/posts/dynamic-breadcrumb-nextjs.mdxrename to apps/web/src/content/pages/blog/dynamic-breadcrumb-nextjs.mdxindex abab0a0cf..5ab5bd545 100644--- a/apps/web/src/content/posts/dynamic-breadcrumb-nextjs.mdx+++ b/apps/web/src/content/pages/blog/dynamic-breadcrumb-nextjs.mdx@@ -1,14 +1,10 @@----title: Dynamic Breadcrumb in Next.js with Parallel Routes-description:- Learn how to create a dynamic breadcrumb in Next.js with parallel routes.-author:- name: Thibault Le Ouay Ducasse- url: https://bsky.app/profile/thibaultleouay.dev- avatar: /assets/authors/thibault.jpeg-publishedAt: 2024-08-19-image: /assets/posts/dynamic-breadcrumb-nextjs/breadcrumb.png-tag: engineering+title: "Dynamic Breadcrumb in Next.js with Parallel Routes"+description: ""+author: "Thibault Le Ouay Ducasse"+publishedAt: "2024-08-19"+image: "/assets/posts/dynamic-breadcrumb-nextjs/breadcrumb.png"+category: "engineering"---In this post, we'll dive into the process of creating dynamic breadcrumbs in Next.js using parallel routes. Our goal is to build a breadcrumb component that automatically updates based on the current page and its hierarchy, all while leveraging server-side rendering for optimal performance.diff --git a/apps/web/src/content/posts/event-analytics-implementation.mdx b/apps/web/src/content/pages/blog/event-analytics-implementation.mdxsimilarity index 94%rename from apps/web/src/content/posts/event-analytics-implementation.mdxrename to apps/web/src/content/pages/blog/event-analytics-implementation.mdxindex e177f5713..ca6934068 100644--- a/apps/web/src/content/posts/event-analytics-implementation.mdx+++ b/apps/web/src/content/pages/blog/event-analytics-implementation.mdx@@ -1,14 +1,10 @@----title: How We Implemented Event Analytics with OpenPanel-description:- Leveraging Hono OpenAPI middleware and tRPC metadata + middleware to implement event analytics easily.-author:- name: Maximilian Kaske- url: https://x.com/mxkaske- avatar: /assets/authors/max.png-publishedAt: 2024-12-27-image: /assets/posts/event-analytics-implementation/event-analytics-implementation.png-tag: engineering+title: "How We Implemented Event Analytics with OpenPanel"+description: ""+author: "Maximilian Kaske"+publishedAt: "2024-12-27"+image: "/assets/posts/event-analytics-implementation/event-analytics-implementation.png"+category: "engineering"---We had never really tracked events properly. We had some basic tracking in place, but it was not very useful. It is time to improve that with [OpenPanel](https://openpanel.dev?ref=openstatus).diff --git a/apps/web/src/content/posts/global-latency-monitoring-benchmark-hono-hetzner.mdx b/apps/web/src/content/pages/blog/global-latency-monitoring-benchmark-hono-hetzner.mdxsimilarity index 90%rename from apps/web/src/content/posts/global-latency-monitoring-benchmark-hono-hetzner.mdxrename to apps/web/src/content/pages/blog/global-latency-monitoring-benchmark-hono-hetzner.mdxindex 7319b6b34..573d3ed21 100644--- a/apps/web/src/content/posts/global-latency-monitoring-benchmark-hono-hetzner.mdx+++ b/apps/web/src/content/pages/blog/global-latency-monitoring-benchmark-hono-hetzner.mdx@@ -1,14 +1,10 @@---title: "Global Latency Monitoring: Benchmarking a Hono App on Hetzner with OpenStatus"-description:- "Benchmarking network latency: See the results of monitoring our Hono server on Hetzner from global locations hosted by Fly, Koyeb, and Railway. We analyze the impact of distance and provider networks."-author:- name: Thibault Le Ouay Ducasse- url: https://bsky.app/profile/thibaultleouay.dev- avatar: /assets/authors/thibault.jpeg-publishedAt: 2025-10-23-image: /assets/posts/global-latency-monitoring-benchmark-hono-hetzner/global.png-tag: engineering+description: "Benchmarking network latency from global locations across Fly, Koyeb, and Railway to analyze the impact of distance and provider networks."+author: "Thibault Le Ouay Ducasse"+publishedAt: "2025-10-23"+image: "/assets/posts/global-latency-monitoring-benchmark-hono-hetzner/global.png"+category: "engineering"---At OpenStatus, we offer **global monitoring** to give you an unbiased, external view of your service's performance. To truly test our monitoring capabilities and gather real-world latency data, we decided to benchmark a simple application deployed outside our internal network.@@ -142,4 +138,4 @@ Through this global setup, I gained valuable insights into external network perfMy 2cts, if you want to pick a PaaS to deploy your next project, pick the one that fits your needs the best, because in the end, the network differences are minimal!-If you want to try monitoring our app from multiple global locations, you can try our [global speed checker](https://www.openstatus.dev/play/checker) for free.+If you want to try monitoring our app from multiple global locations, you can try our [global speed checker](/play/checker) for free.diff --git a/apps/web/src/content/posts/hono-vercel-fluid-compute.mdx b/apps/web/src/content/pages/blog/hono-vercel-fluid-compute.mdxsimilarity index 71%rename from apps/web/src/content/posts/hono-vercel-fluid-compute.mdxrename to apps/web/src/content/pages/blog/hono-vercel-fluid-compute.mdxindex 9a9b5c3b0..8d2bff389 100644--- a/apps/web/src/content/posts/hono-vercel-fluid-compute.mdx+++ b/apps/web/src/content/pages/blog/hono-vercel-fluid-compute.mdx@@ -1,14 +1,10 @@---title: "Hono on Vercel: A Performance Deep Dive into Fluid Compute"-description:- Deploy a Hono server on Vercel and monitor it using OpenStatus to evaluate the performance of Vercel's Fluid Compute, comparing cold and warm server response times.-author:- name: Thibault Le Ouay Ducasse- url: https://bsky.app/profile/thibaultleouay.dev- avatar: /assets/authors/thibault.jpg-publishedAt: 2025-08-27-image: /assets/posts/hono-vercel-fluid-compute/hono.png-tag: engineering+description: ""+author: "Thibault Le Ouay Ducasse"+publishedAt: "2025-08-27"+image: "/assets/posts/hono-vercel-fluid-compute/hono.png"+category: "engineering"---@@ -103,17 +99,50 @@ These are our metrics for both cold and warm deployments from the last 24 hours.#### Warm-<div className="grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-5">- <MetricsCard title="uptime" value={100} suffix="%" variant="positive" />- <MetricsCard title="failing" value={0} suffix="#" variant="negative" />- <MetricsCard title="total pings" value={47520} suffix="#" variant="info" />- <div className="hidden md:col-span-2 md:block" />- <MetricsCard title="p50" value={171} suffix="ms" />- <MetricsCard title="p75" value={275} suffix="ms" />- <MetricsCard title="p90" value={343} suffix="ms" />- <MetricsCard title="p95" value={417} suffix="ms" />- <MetricsCard title="p99" value={524} suffix="ms" />+<Grid cols={5}>+<div>++**100**% UPTIME++</div>+<div>++**0**# FAILING++</div>+<div>++**47,520**# PINGS++</div>+<div className="hidden md:block"></div>+<div className="hidden md:block"></div>+<div>++**171**ms P50++</div>+<div>++**275**ms P75++</div>+<div>++**343**ms P90++</div>+<div>++**417**ms P95++</div>+<div>++**524**ms P99+</div>+</Grid><div className="mt-4"><SimpleChart@@ -124,18 +153,50 @@ These are our metrics for both cold and warm deployments from the last 24 hours.#### Cold+<Grid cols={5}>+<div>++**100**% UPTIME++</div>+<div>++**0**# FAILING++</div>+<div>++**792**# PINGS++</div>+<div className="hidden md:block"></div>+<div className="hidden md:block"></div>+<div>++**212**ms P50++</div>+<div>++**333**ms P75++</div>+<div>++**439**ms P90++</div>+<div>++**529**ms P95++</div>+<div>++**639**ms P99-<div className="grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-5">- <MetricsCard title="uptime" value={100} suffix="%" variant="positive" />- <MetricsCard title="failing" value={0} suffix="#" variant="negative" />- <MetricsCard title="total pings" value={792} suffix="#" variant="info" />- <div className="hidden md:col-span-2 md:block" />- <MetricsCard title="p50" value={212} suffix="ms" />- <MetricsCard title="p75" value={333} suffix="ms" />- <MetricsCard title="p90" value={439} suffix="ms" />- <MetricsCard title="p95" value={529} suffix="ms" />- <MetricsCard title="p99" value={639} suffix="ms" /></div>+</Grid><div className="mt-4">@@ -150,7 +211,7 @@ These are our metrics for both cold and warm deployments from the last 24 hours.When we compare our results, the warm server's performance is significantly faster, as expected. Its p99 latency is 524ms, while the cold server's p99 latency is 639ms. This 115ms difference highlights the overhead of a cold start. However, when we compare this to a similar test we ran with the previous Node.js runtime, the performance is notably better.-> Read our blog post: [Monitoring latency: Vercel Serverless Function vs Vercel Edge Function](https://www.openstatus.dev/blog/monitoring-latency-vercel-edge-vs-serverless)+> Read our blog post: [Monitoring latency: Vercel Serverless Function vs Vercel Edge Function](/blog/monitoring-latency-vercel-edge-vs-serverless)### The Good@@ -172,5 +233,5 @@ In conclusion, deploying a Hono server on Vercel offers excellent developer expe-_Create an account on [OpenStatus](https://www.openstatus.dev/app/sign-up) to+_Create an account on [OpenStatus](/app/sign-up) tomonitor your API and get notified when your latency increases._diff --git a/apps/web/src/content/posts/how-we-build-our-github-action.mdx b/apps/web/src/content/pages/blog/how-we-build-our-github-action.mdxsimilarity index 89%rename from apps/web/src/content/posts/how-we-build-our-github-action.mdxrename to apps/web/src/content/pages/blog/how-we-build-our-github-action.mdxindex 7a575061f..e461e87ae 100644--- a/apps/web/src/content/posts/how-we-build-our-github-action.mdx+++ b/apps/web/src/content/pages/blog/how-we-build-our-github-action.mdx@@ -1,14 +1,10 @@----title: How We Built our own GitHub Action-description:- A speedrun on building our own custom Docker GitHub Action to run OpenStatus Synthetics Tests on every push to our main branch and on a schedule.-author:- name: Thibault Le Ouay Ducasse- url: https://bsky.app/profile/thibaultleouay.dev- avatar: /assets/authors/thibault.jpeg-publishedAt: 2025-02-26-image: /assets/posts/how-we-build-our-github-action/GitHub.png-tag: engineering+title: "How We Built our own GitHub Action"+description: ""+author: "Thibault Le Ouay Ducasse"+publishedAt: "2025-02-26"+image: "/assets/posts/how-we-build-our-github-action/GitHub.png"+category: "engineering"---A couple of weeks ago, when we released our CLI, we wanted to use it to run our own Synthetics Tests in a GitHub Action. We aimed to have a simple way to run our tests on every push to our main branch or on a schedule.diff --git a/apps/web/src/content/posts/introducing-goatstack.mdx b/apps/web/src/content/pages/blog/introducing-goatstack.mdxsimilarity index 94%rename from apps/web/src/content/posts/introducing-goatstack.mdxrename to apps/web/src/content/pages/blog/introducing-goatstack.mdxindex 7e143b6eb..817bb82ee 100644--- a/apps/web/src/content/posts/introducing-goatstack.mdx+++ b/apps/web/src/content/pages/blog/introducing-goatstack.mdx@@ -1,14 +1,10 @@----title: Introducing the GoaT stack-description:- A full-stack app template featuring a Golang server and a Vite + React SPA front end.-author:- name: Thibault Le Ouay Ducasse- url: https://bsky.app/profile/thibaultleouay.dev- avatar: /assets/authors/thibault.jpeg-publishedAt: 2025-03-24-image: /assets/posts/introducing-goatstack/goat.png-tag: engineering+title: "Introducing the GoaT stack"+description: ""+author: "Thibault Le Ouay Ducasse"+publishedAt: "2025-03-24"+image: "/assets/posts/introducing-goatstack/goat.png"+category: "engineering"---## What is the GoaT stack?diff --git a/apps/web/src/content/posts/introducing-openstatus-cli.mdx b/apps/web/src/content/pages/blog/introducing-openstatus-cli.mdxsimilarity index 93%rename from apps/web/src/content/posts/introducing-openstatus-cli.mdxrename to apps/web/src/content/pages/blog/introducing-openstatus-cli.mdxindex aa69dd277..50c86f672 100644--- a/apps/web/src/content/posts/introducing-openstatus-cli.mdx+++ b/apps/web/src/content/pages/blog/introducing-openstatus-cli.mdx@@ -1,14 +1,10 @@---title: "Level Up Your Monitoring: Introducing the Openstatus CLI"-description:- Say hello to our new CLI and manage your openstatus monitors as code.-author:- name: Thibault Le Ouay Ducasse- url: https://bsky.app/profile/thibaultleouay.dev- avatar: /assets/authors/thibault.jpeg-publishedAt: 2025-08-02-image: /assets/posts/introducing-openstatus-cli/CLI.png-tag: engineering+description: ""+author: "Thibault Le Ouay Ducasse"+publishedAt: "2025-08-02"+image: "/assets/posts/introducing-openstatus-cli/CLI.png"+category: "engineering"---As developers, we live in the terminal, sometimes we are even stuck trying to quit NeoVim. At openstatus, we understand that deeply. That's why we're thrilled to announce the release of the openstatus CLI, a powerful new tool designed to bring your monitoring workflow directly into the environment you love.diff --git a/apps/web/src/content/posts/introducing-status-page-theme-explorer.mdx b/apps/web/src/content/pages/blog/introducing-status-page-theme-explorer.mdxsimilarity index 90%rename from apps/web/src/content/posts/introducing-status-page-theme-explorer.mdxrename to apps/web/src/content/pages/blog/introducing-status-page-theme-explorer.mdxindex c8d33f97b..77081e667 100644--- a/apps/web/src/content/posts/introducing-status-page-theme-explorer.mdx+++ b/apps/web/src/content/pages/blog/introducing-status-page-theme-explorer.mdx@@ -1,13 +1,10 @@---title: "Introducing: The Status Page Theme Explorer"-description: Customize and build your own status page experience.-author:- name: Maximilian Kaske- url: https://x.com/mxkaske- avatar: /assets/authors/max.png-publishedAt: 2025-10-28-image: /assets/posts/introducing-status-page-theme-explorer/palette.png-tag: education+description: "Customize and build your own status page experience."+author: "Maximilian Kaske"+publishedAt: "2025-10-28"+image: "/assets/posts/introducing-status-page-theme-explorer/palette.png"+category: "education"---Who uses status pages the most? _Mainly Developers_. And to match their nerdiness, we’re adding more font-mono into the game. We’ve collaborated with [@aliszu](https://x.com/aliszu) to rebuilt our status page experience from the ground up and are providing you with more flexibility and control.@@ -23,10 +20,9 @@ The status-page is now a standalone app, fully separated from our main web projeFrom day one, we’ve built with [shadcn/ui](https://ui.shadcn.com), and we’re sticking to it: same `CSS` variables, same philosophy. And luckily, it makes it easy to change themes!-<ImageWithCaption+<Imagesrc="/assets/posts/introducing-status-page-theme-explorer/theme-explorer-supabase.png"alt="Supabase Theme"- caption="Supabase Theme"/>We’ve now extended those variables with custom ones for states like _maintenance_, _success_, and _degraded_, among others.@@ -64,10 +60,9 @@ There’s more configuration.We’ve heard from teams who wanted to **manually update their status page without connecting any synthetic monitors**. While we still believe _monitoring + transparency go hand in hand_, we don’t want to exclude users who just want to share updates directly.-<ImageWithCaption+<Imagesrc="/assets/posts/introducing-status-page-theme-explorer/dashboard-status-page-redesign.png"alt="Status Page Dashboard Settings"- caption="Status Page Dashboard Settings"/>With the new _“manual”_ type, you can only share status reports you are creating, regardless of the derived synthetic monitoring values.diff --git a/apps/web/src/content/posts/live-mode-infinite-query.mdx b/apps/web/src/content/pages/blog/live-mode-infinite-query.mdxsimilarity index 95%rename from apps/web/src/content/posts/live-mode-infinite-query.mdxrename to apps/web/src/content/pages/blog/live-mode-infinite-query.mdxindex 54da57708..232b4dd59 100644--- a/apps/web/src/content/posts/live-mode-infinite-query.mdx+++ b/apps/web/src/content/pages/blog/live-mode-infinite-query.mdx@@ -1,13 +1,10 @@----title: Live Mode-description: How we leverage TanStack Infinite Query for implementing live mode-author:- name: Maximilian Kaske- url: https://x.com/mxkaske- avatar: /assets/authors/max.png-publishedAt: 2025-03-16-image: /assets/posts/live-mode-infinite-query/tanstack.png-tag: engineering+title: "Live Mode"+description: "How we leverage TanStack Infinite Query for implementing live mode"+author: "Maximilian Kaske"+publishedAt: "2025-03-16"+image: "/assets/posts/live-mode-infinite-query/tanstack.png"+category: "engineering"---This article is part of the [logs.run](https://logs.run) series.@@ -230,4 +227,4 @@ We use `setTimeout` with recursion rather than `setInterval` to ensure each refrGo check it out on [logs.run/i?live=true](https://logs.run/i?live=true).-For more details about our data table implementation, check out [The React data-table I always wanted](https://www.openstatus.dev/blog/data-table-redesign) blog post.+For more details about our data table implementation, check out [The React data-table I always wanted](/blog/data-table-redesign) blog post.diff --git a/apps/web/src/content/posts/migration-auth-clerk-to-next-auth.mdx b/apps/web/src/content/pages/blog/migration-auth-clerk-to-next-auth.mdxsimilarity index 93%rename from apps/web/src/content/posts/migration-auth-clerk-to-next-auth.mdxrename to apps/web/src/content/pages/blog/migration-auth-clerk-to-next-auth.mdxindex 7a2e6c0ed..4e7af7ef9 100644--- a/apps/web/src/content/posts/migration-auth-clerk-to-next-auth.mdx+++ b/apps/web/src/content/pages/blog/migration-auth-clerk-to-next-auth.mdx@@ -1,14 +1,10 @@----title: Why we migrated from Clerk to NextAuth (Auth.js).-description:- Discover the reasons behind our decision to migrate from Clerk to NextAuth.-author:- name: Thibault Le Ouay Ducasse- url: https://bsky.app/profile/thibaultleouay.dev- avatar: /assets/authors/thibault.jpeg-publishedAt: 2024-05-15-image: /assets/posts/migration-auth-clerk-to-next-auth/authjs.png-tag: engineering+title: "Why we migrated from Clerk to NextAuth (Auth.js)."+description: ""+author: "Thibault Le Ouay Ducasse"+publishedAt: "2024-05-15"+image: "/assets/posts/migration-auth-clerk-to-next-auth/authjs.png"+category: "engineering"---We recently switched from [Clerk](https://clerk.com) to NextAuthdiff --git a/apps/web/src/content/posts/migration-backend-from-vercel-to-fly.mdx b/apps/web/src/content/pages/blog/migration-backend-from-vercel-to-fly.mdxsimilarity index 90%rename from apps/web/src/content/posts/migration-backend-from-vercel-to-fly.mdxrename to apps/web/src/content/pages/blog/migration-backend-from-vercel-to-fly.mdxindex ff41f11df..8741e171f 100644--- a/apps/web/src/content/posts/migration-backend-from-vercel-to-fly.mdx+++ b/apps/web/src/content/pages/blog/migration-backend-from-vercel-to-fly.mdx@@ -1,15 +1,10 @@----title: Why we migrated our backend from Vercel to Fly.io.-description:- Learn why we switched from Vercel to Fly.io for our backend and the challenges- we encountered.-author:- name: Thibault Le Ouay Ducasse- url: https://bsky.app/profile/thibaultleouay.dev- avatar: /assets/authors/thibault.jpeg-publishedAt: 2023-10-29-image: /assets/posts/migration-backend-from-vercel-to-fly/fly.png-tag: company+title: "Why we migrated our backend from Vercel to Fly.io."+description: ""+author: "Thibault Le Ouay Ducasse"+publishedAt: "2023-10-29"+image: "/assets/posts/migration-backend-from-vercel-to-fly/fly.png"+category: "company"---In this article, we are going to see the reasons that made us change our backend@@ -130,5 +125,5 @@ application other than Next.js, it may not be the best option.We are still using it for our frontend.-Create an account on [OpenStatus](https://www.openstatus.dev/app/login?ref=blog3)+Create an account on [OpenStatus](/app/login?ref=blog3)to start monitoring our website and managing your incidents for free.diff --git a/apps/web/src/content/posts/migration-planetscale-to-turso.mdx b/apps/web/src/content/pages/blog/migration-planetscale-to-turso.mdxsimilarity index 92%rename from apps/web/src/content/posts/migration-planetscale-to-turso.mdxrename to apps/web/src/content/pages/blog/migration-planetscale-to-turso.mdxindex de7aa9bde..d81910781 100644--- a/apps/web/src/content/posts/migration-planetscale-to-turso.mdx+++ b/apps/web/src/content/pages/blog/migration-planetscale-to-turso.mdx@@ -1,228 +1,224 @@-----title: Why we migrated from PlanetScale to Turso.-image: /assets/posts/migration-planetscale-to-turso/turso.png-description:- Discover the reasons behind our decision to use Turso as our main database.-author:- name: Thibault Le Ouay Ducasse- url: https://bsky.app/profile/thibaultleouay.dev- avatar: /assets/authors/thibault.jpeg-publishedAt: 2023-08-20-tag: company------## What are we building ? 🏗️--We are building an open source status uptime monitoring with a beautiful status-page. Our goal is to provide a fast service to our users.--To achieve this, we are hosting it on the Vercel Edge Runtime, which requires an-Edge Database to fully benefit from it.--We also aim to simplify contributions to our project by eliminating the-requirement for an account on an external service.--Our current data tech stack is:--- [Next 13](https://nextjs.org/)-- [Drizzle ORM](https://orm.drizzle.team/)-- [Tinybird](https://www.tinybird.co/)-- [Turso](https://turso.tech/)--### What is PlanetScale ? 🗃️--[PlanetScale](https://planetscale.com/) is a cloud-native database platform.--It is built on top of the open-source database system Vitess. PlanetScale offers-a managed database service that allows developers to deploy, manage, and scale-databases easily. In my opinion, the standout feature of PlanetScale is its-migration management system.--### What is Turso ? 🌍--[Turso](https://turso.tech/) is a new database provider.--Turso is built on top of LibSQL a fork of SQLite. They provide an edge database-that enhances the developer experience of SQLite for your users. It enables-extensive replication, allowing you to distribute your data to numerous-locations where your users are located.--### History of the project 📜--When we began the project, we opted for PlanetScale due to its simplicity and-cost-free database option. They also don't have any cold start which is super-nice for us. Since we wanted to build fast, it was a good choice when we started-the project. The database was just a URL. Their migration tools, ensuring zero-downtime, were also valuable to us during rapid prototyping and frequent-modifications.--I came across Turso on X (formely known as Twitter) and became interested in-trying it out. It seems promising as their value proposition is an edge-database, which is exactly what we need. We plan to deploy the status page to-the edge (Vercel Edge Runtime). Calling a database in a specific region would-negate the benefits of Vercel Edge Runtime.--## What drove our changes ? 🤔--### Performance 🏎️--Not all of our users are in `us-east-1`. Users who are not located in-`us-east-1` should receive the same level of performance as those in that-region.--I was playing with this [Vercel tool](https://edge-data-latency.vercel.app/) to-determine the most suitable database for our users. Among the options, Turso-proved to be the fastest.--<Image- alt="Turso latency"- src="/assets/posts/migration-planetscale-to-turso/turso-latency.png"- width={650}- height={575}-/>--Turso is around `60ms` for 5 serial queries globally.--<Image- alt="PlanetScale latency"- src="/assets/posts/migration-planetscale-to-turso/planetscale-latency.png"- width={650}- height={575}-/>--While PlanetScale is around `450ms` for 5 serial queries in a different region.--We considered using read replicas from PlanetScale, but I was also interested in-trying out Turso.--With Turso, you only need a single URL for all your replicas, eliminating the-need to add this logic in your codebase. Additionally, Turso's scaler plan is-more affordable, offering 6 replicas for $29, whereas PlanetScale only allows 3-replicas.--Turso offers 26 regions, while PlanetScale only offers 11 regions (their AWS-regions).--### Better DX for contributors 🧑💻--We are building an open source status page, and we want to make it easy for-everyone to contribute to it.--Asking our users to create an account on a new service is a bit awkward. We-could have asked for our user to use Docker and create a MySQL8 database while-developing locally. However I don’t like Docker, it consumes too much memory on-my laptop 😁.--Or we use a file and SQLite, as it is the best option for everyone. And it’s-what we can achieve with Turso: seamless local development.--## How the migration went. 🚀--### SQLite has a less powerful type system than MySQL. 📦--The migration process from MySQL to SQLite requires some changes. SQLite has-fewer data types compared to MySQL. For example, DateTime doesn't exist in-SQLite, so dates should be treated as integers.--There are only five types in SQLite:--- `INT`-- `INTEGER`-- `REAL`-- `TEXT`-- `BLOB`--We use Drizzle for type handling and migration in our codebase, so we weren't-significantly affected by this. Additionally, our experience with SQLite has-taught us the importance of implementing additional checks in our code, rather-than solely relying on the database engine.--### Drizzle ORM Migration 😱--We had to write additional SQL for migration when transitioning from Planetscale-and/or Prisma. Initially, it was a bit frustrating because Drizzle could not-generate all the necessary migration code.--```-/*- SQLite does not support "Drop not null from column" out of the box,- we do not generate automatic migration for that, so it has to be done manually- Please refer to: <https://www.techonthenet.com/sqlite/tables/alter_table.php>- <https://www.sqlite.org/lang_altertable.html>- <https://stackoverflow.com/questions/2083543/modify-a-columns-type-in-sqlite3>-- Due to that we don't generate migration automatically- and it has to be done manually-*/--```--After migrating a couple of times, you realize that they are mostly the same,-and you need to follow these steps.--1. Create new table-2. Copy data into new table-3. Drop old table-4. Rename new table--As it can been seen in this-[migration](https://github.com/openstatusHQ/openstatus/blob/9f610d7cafb892774ceda533b3f21aaa4a4b3d5f/packages/db/drizzle/0003_glamorous_living_mummy.sql)-when we released the incident:--```sql-ALTER TABLE `incident` RENAME TO `incident_old`;--> statement-breakpoint-ALTER TABLE `incident_update` RENAME TO `incident_update_old`;--> statement-breakpoint--DROP TABLE `incident_old`;--> statement-breakpoint-DROP TABLE `incident_update_old`;--> statement-breakpoint--CREATE TABLE `incident` (-`id` integer PRIMARY KEY NOT NULL,-`status` text(4) NOT NULL,-`title` text(256) NOT NULL,-`created_at` integer DEFAULT (strftime('%s', 'now')),-`updated_at` integer DEFAULT (strftime('%s', 'now')),-`workspace_id` integer NOT NULL,-FOREIGN KEY (`workspace_id`) REFERENCES `workspace`(`id`) ON UPDATE no action ON DELETE cascade-);---> statement-breakpoint--CREATE TABLE `incident_update` (-`id` integer PRIMARY KEY NOT NULL,-`status` text(4) NOT NULL,-`date` integer NOT NULL,-`message` text NOT NULL,-`created_at` integer DEFAULT (strftime('%s', 'now')),-`updated_at` integer DEFAULT (strftime('%s', 'now')),-`incident_id` integer NOT NULL,-FOREIGN KEY (`incident_id`) REFERENCES `incident`(`id`) ON UPDATE no action ON DELETE cascade-);---> statement-breakpoint--```--## The Turso Doc 📚--The Turso Documentation has been the major challenge during the migration. We-faced difficulties finding the specific information. We needed to make it work-both locally and on Turso.--However, we have DMed [Glauber Costa](https://twitter.com/glcst), the CEO of-Turso, and they are aware of this issue. Hopefully, they will update the-documentation soon. We believe that with comprehensive documentation and plenty-of examples, Turso will be an even greater product.--## The verdict 🍾--We are pleased with the change, regardless of whether our users are interested-in the stack we use. We genuinely enjoy using this stack. Turso is still an-early product, but we are confident that it will improve over time. I strongly-believe in its future.--P.S. We are building OpenStatus in public, follow-[me](https://www.twitter.com/thibaultleouay) or-[Max](https://www.twitter.com/mxkaske) on Twitter/X if you want sneak peaks of-the upcoming features - it's fun to watch! 🍿--P.P.S: OpenStatus is open-source, you can browse our code on-[GitHub](https://github.com/openstatusHQ/openstatus) and give us a star ⭐️+---+title: "Why we migrated from PlanetScale to Turso."+image: "/assets/posts/migration-planetscale-to-turso/turso.png"+description: ""+author: "Thibault Le Ouay Ducasse"+publishedAt: "2023-08-20"+category: "company"+---++## What are we building ? 🏗️++We are building an open source status uptime monitoring with a beautiful status+page. Our goal is to provide a fast service to our users.++To achieve this, we are hosting it on the Vercel Edge Runtime, which requires an+Edge Database to fully benefit from it.++We also aim to simplify contributions to our project by eliminating the+requirement for an account on an external service.++Our current data tech stack is:++- [Next 13](https://nextjs.org/)+- [Drizzle ORM](https://orm.drizzle.team/)+- [Tinybird](https://www.tinybird.co/)+- [Turso](https://turso.tech/)++### What is PlanetScale ? 🗃️++[PlanetScale](https://planetscale.com/) is a cloud-native database platform.++It is built on top of the open-source database system Vitess. PlanetScale offers+a managed database service that allows developers to deploy, manage, and scale+databases easily. In my opinion, the standout feature of PlanetScale is its+migration management system.++### What is Turso ? 🌍++[Turso](https://turso.tech/) is a new database provider.++Turso is built on top of LibSQL a fork of SQLite. They provide an edge database+that enhances the developer experience of SQLite for your users. It enables+extensive replication, allowing you to distribute your data to numerous+locations where your users are located.++### History of the project 📜++When we began the project, we opted for PlanetScale due to its simplicity and+cost-free database option. They also don't have any cold start which is super+nice for us. Since we wanted to build fast, it was a good choice when we started+the project. The database was just a URL. Their migration tools, ensuring zero+downtime, were also valuable to us during rapid prototyping and frequent+modifications.++I came across Turso on X (formely known as Twitter) and became interested in+trying it out. It seems promising as their value proposition is an edge+database, which is exactly what we need. We plan to deploy the status page to+the edge (Vercel Edge Runtime). Calling a database in a specific region would+negate the benefits of Vercel Edge Runtime.++## What drove our changes ? 🤔++### Performance 🏎️++Not all of our users are in `us-east-1`. Users who are not located in+`us-east-1` should receive the same level of performance as those in that+region.++I was playing with this [Vercel tool](https://edge-data-latency.vercel.app/) to+determine the most suitable database for our users. Among the options, Turso+proved to be the fastest.++<Image+ alt="Turso latency"+ src="/assets/posts/migration-planetscale-to-turso/turso-latency.png"+ width={650}+ height={575}+/>++Turso is around `60ms` for 5 serial queries globally.++<Image+ alt="PlanetScale latency"+ src="/assets/posts/migration-planetscale-to-turso/planetscale-latency.png"+ width={650}+ height={575}+/>++While PlanetScale is around `450ms` for 5 serial queries in a different region.++We considered using read replicas from PlanetScale, but I was also interested in+trying out Turso.++With Turso, you only need a single URL for all your replicas, eliminating the+need to add this logic in your codebase. Additionally, Turso's scaler plan is+more affordable, offering 6 replicas for $29, whereas PlanetScale only allows 3+replicas.++Turso offers 26 regions, while PlanetScale only offers 11 regions (their AWS+regions).++### Better DX for contributors 🧑💻++We are building an open source status page, and we want to make it easy for+everyone to contribute to it.++Asking our users to create an account on a new service is a bit awkward. We+could have asked for our user to use Docker and create a MySQL8 database while+developing locally. However I don’t like Docker, it consumes too much memory on+my laptop 😁.++Or we use a file and SQLite, as it is the best option for everyone. And it’s+what we can achieve with Turso: seamless local development.++## How the migration went. 🚀++### SQLite has a less powerful type system than MySQL. 📦++The migration process from MySQL to SQLite requires some changes. SQLite has+fewer data types compared to MySQL. For example, DateTime doesn't exist in+SQLite, so dates should be treated as integers.++There are only five types in SQLite:++- `INT`+- `INTEGER`+- `REAL`+- `TEXT`+- `BLOB`++We use Drizzle for type handling and migration in our codebase, so we weren't+significantly affected by this. Additionally, our experience with SQLite has+taught us the importance of implementing additional checks in our code, rather+than solely relying on the database engine.++### Drizzle ORM Migration 😱++We had to write additional SQL for migration when transitioning from Planetscale+and/or Prisma. Initially, it was a bit frustrating because Drizzle could not+generate all the necessary migration code.++```+/*+ SQLite does not support "Drop not null from column" out of the box,+ we do not generate automatic migration for that, so it has to be done manually+ Please refer to: <https://www.techonthenet.com/sqlite/tables/alter_table.php>+ <https://www.sqlite.org/lang_altertable.html>+ <https://stackoverflow.com/questions/2083543/modify-a-columns-type-in-sqlite3>++ Due to that we don't generate migration automatically+ and it has to be done manually+*/++```++After migrating a couple of times, you realize that they are mostly the same,+and you need to follow these steps.++1. Create new table+2. Copy data into new table+3. Drop old table+4. Rename new table++As it can been seen in this+[migration](https://github.com/openstatusHQ/openstatus/blob/9f610d7cafb892774ceda533b3f21aaa4a4b3d5f/packages/db/drizzle/0003_glamorous_living_mummy.sql)+when we released the incident:++```sql+ALTER TABLE `incident` RENAME TO `incident_old`;--> statement-breakpoint+ALTER TABLE `incident_update` RENAME TO `incident_update_old`;--> statement-breakpoint++DROP TABLE `incident_old`;--> statement-breakpoint+DROP TABLE `incident_update_old`;--> statement-breakpoint++CREATE TABLE `incident` (+`id` integer PRIMARY KEY NOT NULL,+`status` text(4) NOT NULL,+`title` text(256) NOT NULL,+`created_at` integer DEFAULT (strftime('%s', 'now')),+`updated_at` integer DEFAULT (strftime('%s', 'now')),+`workspace_id` integer NOT NULL,+FOREIGN KEY (`workspace_id`) REFERENCES `workspace`(`id`) ON UPDATE no action ON DELETE cascade+);+--> statement-breakpoint++CREATE TABLE `incident_update` (+`id` integer PRIMARY KEY NOT NULL,+`status` text(4) NOT NULL,+`date` integer NOT NULL,+`message` text NOT NULL,+`created_at` integer DEFAULT (strftime('%s', 'now')),+`updated_at` integer DEFAULT (strftime('%s', 'now')),+`incident_id` integer NOT NULL,+FOREIGN KEY (`incident_id`) REFERENCES `incident`(`id`) ON UPDATE no action ON DELETE cascade+);+--> statement-breakpoint++```++## The Turso Doc 📚++The Turso Documentation has been the major challenge during the migration. We+faced difficulties finding the specific information. We needed to make it work+both locally and on Turso.++However, we have DMed [Glauber Costa](https://twitter.com/glcst), the CEO of+Turso, and they are aware of this issue. Hopefully, they will update the+documentation soon. We believe that with comprehensive documentation and plenty+of examples, Turso will be an even greater product.++## The verdict 🍾++We are pleased with the change, regardless of whether our users are interested+in the stack we use. We genuinely enjoy using this stack. Turso is still an+early product, but we are confident that it will improve over time. I strongly+believe in its future.++P.S. We are building OpenStatus in public, follow+[me](https://www.twitter.com/thibaultleouay) or+[Max](https://www.twitter.com/mxkaske) on Twitter/X if you want sneak peaks of+the upcoming features - it's fun to watch! 🍿++P.P.S: OpenStatus is open-source, you can browse our code on+[GitHub](https://github.com/openstatusHQ/openstatus) and give us a star ⭐️diff --git a/apps/web/src/content/pages/blog/monitoring-latency-cf-workers-fly-koyeb-raylway-render.mdx b/apps/web/src/content/pages/blog/monitoring-latency-cf-workers-fly-koyeb-raylway-render.mdxnew file mode 100644index 000000000..a0689fe62--- /dev/null+++ b/apps/web/src/content/pages/blog/monitoring-latency-cf-workers-fly-koyeb-raylway-render.mdx@@ -0,0 +1,708 @@+---+title: "Monitoring latency: Cloudflare Workers vs Fly vs Koyeb vs Railway vs Render"+description: ""+author: "Thibault Le Ouay Ducasse"+publishedAt: "2024-02-19"+image: "/assets/posts/monitoring-latency/all-hosting-providers.png"+category: "education"+---++> ⚠️ We are using the default settings for each provider and conducting+> datacenter to datacenter requests. A real-world application's results are+> going to be different. ⚠️++You want to know which cloud providers offer the lowest latency?++In this post, I compare the latency of+[Cloudflare Workers](#cloudflare-workers), [Fly](#flyio), [Koyeb](#koyeb),+[Railway](#railway) and [Render](#render) using+[OpenStatus](https://www.openstatus.dev).++I deployed the application on the cheapest or free tier offered by each+provider.++For this test, I used a basic [Hono](https://hono.dev) server that returns a+simple text response.++```js+const app = new Hono();+app.use("*", logger());++app.use("*", poweredBy());++app.get("/", (c) => {+ return c.text(+ "Just return the desired http status code, e.g. /404 🤯 \nhttps://www.openstatus.dev",+ );+});+```++You can find the code [here](https://github.com/openstatusHQ/status-code), it’s+open source 😉.++OpenStatus monitored our endpoint every **10 minutes** from **6 locations**+located in Amsterdam, Ashburn, Hong Kong, Johannesburg, Sao Paulo and Sydney.++It's a good way to test our own product and improve it.++Let's analyze the data from the past two weeks.++## Cloudflare workers++Cloudflare Workers is a serverless platform by Cloudflare. It lets you build new+applications using JavaScript/Typescript. You can deploy up to 100 worker+scripts for free, running on more than 275 network locations.++### Latency metrics++<Grid cols={5}>+<div>++**100**% UPTIME++</div>+<div>++**0**# FAILS++</div>+<div>++**10,956**# PINGS++</div>+<div className="hidden md:block"></div>+<div className="hidden md:block"></div>+<div>++**182**ms AVG++</div>+<div>++**138**ms P75++</div>+<div>++**695**ms P90++</div>+<div>++**778**ms P95++</div>+<div>++**991**ms P99++</div>+</Grid>++<div className="mt-4">+ <SimpleChart+ staticFile="/assets/posts/monitoring-latency/cloudflare.json"+ caption="Cloudflare avg. latency between 04. Feb and 18. Feb 2024 aggregated in a 1h window."+ />+</div>++### Timing metrics++<Table+ data={{+ headers: ["Region", "DNS (ms)", "Connection (ms)", "TLS Handshake (ms)", "TTFB (ms)", "Transfert (ms)"],+ rows: [+ ["AMS", "17", "2", "17", "27", "0"],+ ["GRU", "38", "2", "13", "28", "0"],+ ["HKG", "19", "2", "13", "29", "0"],+ ["IAD", "24", "1", "14", "30", "0"],+ ["JNB", "123", "168", "182", "185", "0"],+ ["SYD", "51", "1", "11", "25", "0"],+ ],+ }}+/>++I can notice that Johannesburg's latency is about ten times higher than that of+the other monitors.++### Headers++From the Cloudflare request I can get the location of the workers that handle+the request, with `Cf-ray` in the headers response.++<Table+ data={{+ headers: ["Checker region", "Workers region", "number of request"],+ rows: [+ ["HKG", "HKG", "1831"],+ ["SYD", "SYD", "1831"],+ ["AMS", "AMS", "1831"],+ ["IAD", "IAD", "1831"],+ ["GRU", "GRU", "1791"],+ ["GRU", "GIG", "40"],+ ["JNB", "AMS", "741"],+ ["JNB", "MUC", "4"],+ ["JNB", "HKG", "5"],+ ["JNB", "SIN", "6"],+ ["JNB", "NRT", "8"],+ ["JNB", "EWR", "10"],+ ["JNB", "CDG", "82"],+ ["JNB", "FRA", "276"],+ ["JNB", "LHR", "699"],+ ["JNB", "AMS", "741"],+ ],+ }}+/>++I can see all the request from JNB is never routed to a nearby data-center.++Apart from the strange routing error in Johannesburg, Cloudflare workers are+fast worldwide.++I have not experienced any cold start issues.++## Fly.io++Fly.io simplifies deploying and running server-side applications globally.+Developers can deploy their applications near users worldwide for low latency+and high performance. It uses a lightweight Firecracker VM to easily deploy+Docker images.++### Latency metrics++<Grid cols={5}>+<div>++**100**% UPTIME++</div>+<div>++**0**# FAILS++</div>+<div>++**10,952**# PINGS++</div>+<div className="hidden md:block"></div>+<div className="hidden md:block"></div>+<div>++**1,471**ms AVG++</div>+<div>++**1,514**ms P75++</div>+<div>++**1,555**ms P90++</div>+<div>++**1,626**ms P95++</div>+<div>++**2,547**ms P99++</div>+</Grid>++<div className="mt-4">+ <SimpleChart+ staticFile="/assets/posts/monitoring-latency/fly.json"+ caption="Fly avg. latency between 04. Feb and 18. Feb 2024 aggregated in a 1h window."+ />+</div>++### Timing metrics++<Table+ data={{+ headers: ["Region", "DNS (ms)", "Connection (ms)", "TLS Handshake (ms)", "TTFB (ms)", "Transfert (ms)"],+ rows: [+ ["AMS", "6", "1", "8", "1469", "0"],+ ["GRU", "5", "0", "4", "1431", "0"],+ ["HKG", "4", "0", "5", "1473", "0"],+ ["IAD", "3", "0", "5", "1470", "0"],+ ["JNB", "24", "0", "5", "1423", "0"],+ ["SYD", "3", "0", "3", "1489", "0"],+ ],+ }}+/>++The DNS is fast, our checker is attempting to connect to a region in the same+data center, but our machine's cold start is slowing us down, leading to the+high TTFB.++Here’s our config for Fly.io:++```toml+app = 'statuscode'+primary_region = 'ams'++[build]+ dockerfile = "./Dockerfile"++[http_service]+ internal_port = 3000+ force_https = true+ auto_stop_machines = true+ auto_start_machines = true+ min_machines_running = 0+ processes = ['app']++[[vm]]+ cpu_kind = 'shared'+ cpus = 1+ memory_mb = 256+```++The primary region of our server is Amsterdam, and the fly instances is getting+paused after a period of inactivity.++The machine starts slowly, as indicated by the logs showing a start time of+`1.513643778s.`++```+2024-02-14T11:24:16.107 proxy[286560ea703108] ams [info] Starting machine++2024-02-14T11:24:16.322 app[286560ea703108] ams [info] [ 0.035736] PCI: Fatal: No config space access function found++2024-02-14T11:24:16.533 app[286560ea703108] ams [info] INFO Starting init (commit: bfa79be)...++2024-02-14T11:24:16.546 app[286560ea703108] ams [info] INFO Preparing to run: `/usr/local/bin/docker-entrypoint.sh bun start` as root++2024-02-14T11:24:16.558 app[286560ea703108] ams [info] INFO [fly api proxy] listening at /.fly/api++2024-02-14T11:24:16.565 app[286560ea703108] ams [info] 2024/02/14 11:24:16 listening on [fdaa:3:2ef:a7b:10c:3c9a:5b4:2]:22 (DNS: [fdaa::3]:53)++2024-02-14T11:24:16.611 app[286560ea703108] ams [info] $ bun src/index.ts++2024-02-14T11:24:16.618 runner[286560ea703108] ams [info] Machine started in 460ms++2024-02-14T11:24:17.621 proxy[286560ea703108] ams [info] machine started in 1.513643778s++2024-02-14T11:24:17.628 proxy[286560ea703108] ams [info] machine became reachable in 7.03669ms+```++#### OpenStatus Prod metrics++If you update your fly.toml file to include the following, you can get the zero+cold start and achieve a better latency.++```+ min_machines_running = 1+```++This is our data for our production server deploy on Fly.io.++<Grid cols={5}>+<div>++**100**% UPTIME++</div>+<div>++**0**# FAILS++</div>+<div>++**12,076**# PINGS++</div>+<div className="hidden md:block"></div>+<div className="hidden md:block"></div>+<div>++**61**ms AVG++</div>+<div>++**67**ms P75++</div>+<div>++**164**ms P90++</div>+<div>++**198**ms P95++</div>+<div>++**327**ms P99++</div>+</Grid>++> We use Fly.io in production, and the machine never sleeps, yielding much+> better results.++## Koyeb++Koyeb is a developer-friendly serverless platform that allows for global app+deployment without the need for operations, servers, or infrastructure+management. Koyeb offers a free Starter plan that includes one Web Service, one+Database service. The platform focuses on ease of deployment and scalability for+developers++### Latency metrics++<Grid cols={5}>+<div>++**100**% UPTIME++</div>+<div>++**0**# FAILS++</div>+<div>++**10,955**# PINGS++</div>+<div className="hidden md:block"></div>+<div className="hidden md:block"></div>+<div>++**539**ms AVG++</div>+<div>++**738**ms P75++</div>+<div>++**881**ms P90++</div>+<div>++**1,013**ms P95++</div>+<div>++**1,525**ms P99++</div>+</Grid>++<div className="mt-4">+ <SimpleChart+ staticFile="/assets/posts/monitoring-latency/koyeb.json"+ caption="Koyeb avg. latency between 04. Feb and 18. Feb 2024."+ />+</div>++### Timing metrics++<Table+ data={{+ headers: ["Region", "DNS (ms)", "Connection (ms)", "TLS Handshake (ms)", "TTFB (ms)", "Transfert (ms)"],+ rows: [+ ["AMS", "50", "2", "17", "107", "0"],+ ["GRU", "139", "65", "75", "407", "0"],+ ["HKG", "48", "2", "13", "321", "0"],+ ["IAD", "35", "1", "12", "129", "0"],+ ["JNB", "298", "1", "11", "720", "0"],+ ["SYD", "97", "1", "10", "711", "0"],+ ],+ }}+/>++### Headers++The request headers show that none of our requests are cached. They contain+`cf-cache-status: dynamic`. Cloudflare handles the Koyeb edge layer.+https://www.koyeb.com/blog/building-a-multi-region-service-mesh-with-kuma-envoy-anycast-bgp-and-mtls++Our requests follow this route:++```+Cf workers -> koyeb Global load balancer -> koyeb backend+```++Let's see where did we hit the cf workers++<Table+ data={{+ headers: ["Checker region", "Workers region", "number of request"],+ rows: [+ ["AMS", "AMS", "1866"],+ ["GRU", "GRU", "504"],+ ["GRU", "IAD", "38"],+ ["GRU", "MIA", "688"],+ ["GRU", "EWR", "337"],+ ["GRU", "CIG", "299"],+ ["HKG", "HKG", "1866"],+ ["IAD", "IAD", "1866"],+ ["JNB", "JNB", "1861"],+ ["JNB", "AMS", "1"],+ ["SYD", "SYD", "1866"],+ ],+ }}+/>++Koyeb Global Load Balancer region we hit:++<Table+ data={{+ headers: ["Checker region", "Koyeb Global Load Balancer", "number of request"],+ rows: [+ ["AMS", "FRA1", "1866"],+ ["GRU", "WAS1", "1866"],+ ["HKG", "SIN1", "1866"],+ ["IAD", "WAS1", "1866"],+ ["JNB", "PAR1", "4"],+ ["JNB", "SIN1", "1864"],+ ["JNB", "FRA1", "1"],+ ["JNB", "SIN1", "1866"],+ ],+ }}+/>++I have deployed our app in the Frankfurt data-center.++## Railway++Railway is a cloud platform designed for building, shipping, and monitoring+applications without the need for Platform Engineers. It simplifies the+application development process by offering seamless deployment and monitoring+capabilities.++### Latency metrics++<Grid cols={5}>+<div>++**99.991**% UPTIME++</div>+<div>++**1**# FAILS++</div>+<div>++**10,955**# PINGS++</div>+<div className="hidden md:block"></div>+<div className="hidden md:block"></div>+<div>++**381**ms AVG++</div>+<div>++**469**ms P75++</div>+<div>++**653**ms P90++</div>+<div>++**661**ms P95++</div>+<div>++**850**ms P99++</div>+</Grid>++<div className="mt-4">+ <SimpleChart+ staticFile="/assets/posts/monitoring-latency/railway.json"+ caption="Railway avg. latency between 04. Feb and 18. Feb 2024 aggregated in a 1h window."+ />+</div>++### Timing metrics++<Table+ data={{+ headers: ["Region", "DNS (ms)", "Connection (ms)", "TLS Handshake (ms)", "TTFB (ms)", "Transfert (ms)"],+ rows: [+ ["AMS", "9", "21", "18", "158", "0"],+ ["GRU", "14", "115", "127", "178", "0"],+ ["HKG", "8", "45", "54", "225", "0"],+ ["IAD", "7", "2", "14", "65", "0"],+ ["JNB", "18", "193", "178", "319", "0"],+ ["SYD", "21", "108", "105", "280", "0"],+ ],+ }}+/>++### Headers++The headers don't provide any information.++Railway is using Google Cloud Platform. It’s the only service that does not+allow us to pick a specific region on the free plan. Our test app will be+located to `us-west1` Portland, Oregon. We can see that the latency is the+lowest in IAD.++By default our app did not scale down to 0. It was always running. We don't have+any cold start.++## Render++Render is a platform that simplifies deploying and scaling web applications and+services. It offers features like automated SSL, automatic scaling, native+support for popular frameworks, and one-click deployments from Git. The platform+focuses on simplicity and developer productivity.++### Latency metrics++<Grid cols={5}>+<div>++**99.89**% UPTIME++</div>+<div>++**12**# FAILS++</div>+<div>++**10,946**# PINGS++</div>+<div className="hidden md:block"></div>+<div className="hidden md:block"></div>+<div>++**451**ms AVG++</div>+<div>++**447**ms P75++</div>+<div>++**591**ms P90++</div>+<div>++**707**ms P95++</div>+<div>++**902**ms P99++</div>+</Grid>++<div className="mt-4">+ <SimpleChart+ staticFile="/assets/posts/monitoring-latency/render.json"+ caption="Render avg. latency between 04. Feb and 18. Feb 2024 aggregated in a 1h window."+ />+</div>++### Timing metrics++<Table+ data={{+ headers: ["Region", "DNS (ms)", "Connection (ms)", "TLS Handshake (ms)", "TTFB (ms)", "Transfert (ms)"],+ rows: [+ ["AMS", "20", "2", "7", "107", "0"],+ ["GRU", "61", "2", "6", "407", "0"],+ ["HKG", "76", "2", "6", "321", "0"],+ ["IAD", "15", "1", "5", "129", "0"],+ ["JNB", "36", "161", "167", "720", "0"],+ ["SYD", "103", "1", "4", "711", "0"],+ ],+ }}+/>++### Headers++The headers don't provide any information.++I have deployed our app in the Frankfurt data-center.++According to the Render docs, the free tier will shut down the service after 15+minutes of inactivity. However, our app is being accessed by a monitor every 10+minutes. We should never scale down to 0.++```+Render spins down a Free web service that goes 15 minutes without receiving inbound traffic. Render spins the service back up whenever it next receives a request to process.+```++I think the failures are due to the cold start of our app. We have a default+timeout of 30s and the render app takes up to 50s to start.We might have hit an+inflection point between cold and warm.++## Conclusion++Here are the results of our test:++<Table+ data={{+ headers: ["Provider", "Uptime", "Fails Ping", "Total Pings", "AVG latency (ms)", "P75 (ms)", "P90 (ms)", "P95 (ms)", "P99 (ms)"],+ rows: [+ ["CF Workers", "100", "0", "10,956", "182", "138", "690", "778", "991"],+ ["Fly.io", "100", "0", "10,952", "1,471", "1,514", "1,555", "1,626", "2,547"],+ ["Koyeb", "100", "0", "10,955", "536", "738", "881", "1,013", "1,525"],+ ["Railway", "99.991", "1", "10,955", "381", "469", "653", "661", "850"],+ ["Render", "99.89", "12", "10,946", "451", "447", "591", "707", "902"],+ ],+ }}+/>++If you value low latency, Cloudflare Workers are the best option for fast global+performance without cold start issues. They deploy your app worldwide+efficiently.++For multi-region deployment, check out Koyeb and Fly.io.++For specific region deployment, Railway and Render are good choices.++Choosing a cloud provider involves considering not just latency but also user+experience and pricing.++We use Fly.io in production and are satisfied with it.++#### Vercel++I haven't included Vercel in this test. But we have a blog post comparing Vercel+Serverless vs Edge vs Serverless. You can find it+[here](/blog/monitoring-latency-vercel-edge-vs-serverless).++If you want to monitor your API or website, create an account on+[OpenStatus](/app/sign-up?ref=blog-monitoring).diff --git a/apps/web/src/content/posts/monitoring-latency-vercel-edge-vs-serverless.mdx b/apps/web/src/content/pages/blog/monitoring-latency-vercel-edge-vs-serverless.mdxsimilarity index 56%rename from apps/web/src/content/posts/monitoring-latency-vercel-edge-vs-serverless.mdxrename to apps/web/src/content/pages/blog/monitoring-latency-vercel-edge-vs-serverless.mdxindex 060122cd1..742c45844 100644--- a/apps/web/src/content/posts/monitoring-latency-vercel-edge-vs-serverless.mdx+++ b/apps/web/src/content/pages/blog/monitoring-latency-vercel-edge-vs-serverless.mdx@@ -1,19 +1,14 @@---title: "Monitoring latency: Vercel Serverless Function vs Vercel Edge Function"-description:- In this article, we will compare the latency of Edge Functions vs Serverless- Functions.-author:- name: Thibault Le Ouay Ducasse- url: https://bsky.app/profile/thibaultleouay.dev- avatar: /assets/authors/thibault.jpeg-publishedAt: 2024-03-14-image: /assets/posts/monitoring-vercel/serverless-vs-edge.png-tag: education+description: ""+author: "Thibault Le Ouay Ducasse"+publishedAt: "2024-03-14"+image: "/assets/posts/monitoring-vercel/serverless-vs-edge.png"+category: "education"---In our previous-[article](https://www.openstatus.dev/blog/monitoring-latency-cf-workers-fly-koyeb-raylway-render),+[article](/blog/monitoring-latency-cf-workers-fly-koyeb-raylway-render),we compared the latency of various cloud providers but did not include Vercel.This article will compare the latency of Vercel Serverless Function with VercelEdge Function.@@ -75,17 +70,50 @@ hit the Vercel cache.### Warm - `/api/ping/warm`-<div className="grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-5">- <MetricsCard title="uptime" value={100} suffix="%" variant="positive" />- <MetricsCard title="fails" value={0} suffix="#" variant="negative" />- <MetricsCard title="total pings" value={12090} suffix="#" variant="info" />- <div className="hidden md:col-span-2 md:block" />- <MetricsCard title="p50" value={246} suffix="ms" />- <MetricsCard title="p75" value={305} suffix="ms" />- <MetricsCard title="p90" value={442} suffix="ms" />- <MetricsCard title="p95" value={563} suffix="ms" />- <MetricsCard title="p99" value={855} suffix="ms" />+<Grid cols={5}>+<div>++**100**% UPTIME++</div>+<div>++**0**# FAILS++</div>+<div>++**12,090**# PINGS++</div>+<div className="hidden md:block"></div>+<div className="hidden md:block"></div>+<div>++**246**ms P50++</div>+<div>++**305**ms P75++</div>+<div>++**442**ms P90++</div>+<div>++**563**ms P95++</div>+<div>++**855**ms P99+</div>+</Grid><div className="mt-4"><SimpleChart@@ -98,17 +126,50 @@ We are pinging this functions every 5 minutes to keep it warm.### Cold - `/api/ping/cold`-<div className="grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-5">- <MetricsCard title="uptime" value={100} suffix="%" variant="positive" />- <MetricsCard title="fails" value={0} suffix="#" variant="negative" />- <MetricsCard title="total pings" value={2010} suffix="#" variant="info" />- <div className="hidden md:col-span-2 md:block" />- <MetricsCard title="p50" value={859} suffix="ms" />- <MetricsCard title="p75" value={933} suffix="ms" />- <MetricsCard title="p90" value={1004} suffix="ms" />- <MetricsCard title="p95" value={1046} suffix="ms" />- <MetricsCard title="p99" value={1156} suffix="ms" />+<Grid cols={5}>+<div>++**100**% UPTIME++</div>+<div>++**0**# FAILS++</div>+<div>++**2,010**# PINGS++</div>+<div className="hidden md:block"></div>+<div className="hidden md:block"></div>+<div>++**859**ms P50++</div>+<div>++**933**ms P75++</div>+<div>++**1,004**ms P90++</div>+<div>++**1,046**ms P95++</div>+<div>++**1,156**ms P99+</div>+</Grid><div className="mt-4"><SimpleChart@@ -122,17 +183,50 @@ scaled down.### Cold Roulette - `/api/ping`-<div className="grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-5">- <MetricsCard title="uptime" value={100} suffix="%" variant="positive" />- <MetricsCard title="fails" value={0} suffix="#" variant="negative" />- <MetricsCard title="total pings" value={6036} suffix="#" variant="info" />- <div className="hidden md:col-span-2 md:block" />- <MetricsCard title="p50" value={305} suffix="ms" />- <MetricsCard title="p75" value={791} suffix="ms" />- <MetricsCard title="p90" value={914} suffix="ms" />- <MetricsCard title="p95" value={972} suffix="ms" />- <MetricsCard title="p99" value={1086} suffix="ms" />+<Grid cols={5}>+<div>++**100**% UPTIME++</div>+<div>++**0**# FAILS++</div>+<div>++**6,036**# PINGS++</div>+<div className="hidden md:block"></div>+<div className="hidden md:block"></div>+<div>++**305**ms P50++</div>+<div>++**791**ms P75++</div>+<div>++**914**ms P90++</div>+<div>++**972**ms P95++</div>+<div>++**1,086**ms P99+</div>+</Grid><div className="mt-4"><SimpleChart@@ -164,17 +258,50 @@ the request is processed in a datacenter near the user.### Edge - `/api/ping/edge`-<div className="grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-5">- <MetricsCard title="uptime" value={100} suffix="%" variant="positive" />- <MetricsCard title="fails" value={0} suffix="#" variant="negative" />- <MetricsCard title="total pings" value={6042} suffix="#" variant="info" />- <div className="hidden md:col-span-2 md:block" />- <MetricsCard title="p50" value={106} suffix="ms" />- <MetricsCard title="p75" value={124} suffix="ms" />- <MetricsCard title="p90" value={152} suffix="ms" />- <MetricsCard title="p95" value={178} suffix="ms" />- <MetricsCard title="p99" value={328} suffix="ms" />+<Grid cols={5}>+<div>++**100**% UPTIME++</div>+<div>++**0**# FAILS++</div>+<div>++**6,042**# PINGS++</div>+<div className="hidden md:block"></div>+<div className="hidden md:block"></div>+<div>++**106**ms P50++</div>+<div>++**124**ms P75++</div>+<div>++**152**ms P90++</div>+<div>++**178**ms P95++</div>+<div>++**328**ms P99+</div>+</Grid><div className="mt-4"><SimpleChart@@ -187,11 +314,16 @@ We are pinging this functions every 10 minutes.## Conclusion-| Runtime | p50 | p95 | p99 |-| --------------------- | --- | ----- | ----- |-| Serverless Cold Start | 859 | 1,046 | 1,156 |-| Serverless Warm | 246 | 563 | 855 |-| Edge | 106 | 178 | 328 |+<Table+ data={{+ headers: ["Runtime", "p50", "p95", "p99"],+ rows: [+ ["Serverless Cold Start", "859ms", "1,046ms", "1,156ms"],+ ["Serverless Warm", "246ms", "563ms", "855ms"],+ ["Edge", "106ms", "178ms", "328ms"],+ ],+ }}+/>Globablly Edge functions are approximately 9 times faster than Serverlessfunctions during cold starts, but only 2 times faster when the function is warm.@@ -200,5 +332,5 @@ Edge functions have similar latency regardless of the user's location. If youvalue your users and have a worldwide audience, you should consider EdgeFunctions.-Create an account on [OpenStatus](https://www.openstatus.dev/app/sign-up) to+Create an account on [OpenStatus](/app/sign-up) tomonitor your API and get notified when your latency increases.diff --git a/apps/web/src/content/posts/new-dashboard-we-are-so-back.mdx b/apps/web/src/content/pages/blog/new-dashboard-we-are-so-back.mdxsimilarity index 95%rename from apps/web/src/content/posts/new-dashboard-we-are-so-back.mdxrename to apps/web/src/content/pages/blog/new-dashboard-we-are-so-back.mdxindex 52f8a1970..2b496392c 100644--- a/apps/web/src/content/posts/new-dashboard-we-are-so-back.mdx+++ b/apps/web/src/content/pages/blog/new-dashboard-we-are-so-back.mdx@@ -1,13 +1,10 @@----title: We Are So Back-description: New dashboard - rebuilt for clarity, speed and insights.-author:- name: Maximilian Kaske- url: https://x.com/mxkaske- avatar: /assets/authors/max.png-publishedAt: 2025-08-03-image: /assets/posts/new-dashboard-we-are-so-back/we-are-so-back.png-tag: company+title: "We Are So Back"+description: "New dashboard - rebuilt for clarity, speed and insights."+author: "Maximilian Kaske"+publishedAt: "2025-08-03"+image: "/assets/posts/new-dashboard-we-are-so-back/we-are-so-back.png"+category: "company"---With a few days delay exactly two years ago (30.07.2023), we launched openstatus with Thibault. Today marks the day we sit together for the second time in real life and are launching the new version of the dashboard. _What a blast!_@@ -166,7 +163,7 @@ Big thanks to all early testers that provided incredible feedback and helped usYou can now `import` your current monitors from the GUI into a YML file and `apply` changes to settings - or `trigger` checks when needed. Devs don't wanna switch context and want to keep track of changes within a version control. Let's enable them!-Read more about the latest changes in our newly published [blog post](https://www.openstatus.dev/blog/introducing-openstatus-cli).+Read more about the latest changes in our newly published [blog post](/blog/introducing-openstatus-cli).To push **monitoring as code**, we are not only referring to our CLI docs but also create a dedicated `/cli` page with the most important commands, templates and links.@@ -174,7 +171,7 @@ We'd love to here from what your use cases are and how you handle infra/monitori## Same Pricing. More Monitors.-To better align with the new changes, we've updated our pricing plans. [Read more](https://openstatus.dev/blog/same-pricing-more-monitors).+To better align with the new changes, we've updated our pricing plans. [Read more](/blog/same-pricing-more-monitors).---diff --git a/apps/web/src/content/posts/openstatus-infra.mdx b/apps/web/src/content/pages/blog/openstatus-infra.mdxsimilarity index 92%rename from apps/web/src/content/posts/openstatus-infra.mdxrename to apps/web/src/content/pages/blog/openstatus-infra.mdxindex 4df69c32d..9dc135eee 100644--- a/apps/web/src/content/posts/openstatus-infra.mdx+++ b/apps/web/src/content/pages/blog/openstatus-infra.mdx@@ -1,13 +1,10 @@---title: "Building OpenStatus: A Deep Dive into Our Infrastructure Architecture"-description:- Let's deep dive in the infra behind OpenStatus. Learn how we built it and how we host it.-author:- name: Thibault Le Ouay Ducasse- url: https://bsky.app/profile/thibaultleouay.dev-publishedAt: 2024-12-29-tag: engineering-image: /assets/posts/infra-openstatus/tech-infra.png+description: ""+author: "Thibault Le Ouay Ducasse"+publishedAt: "2024-12-29"+category: "engineering"+image: "/assets/posts/infra-openstatus/tech-infra.png"---## Infrastructure Overview@@ -110,4 +107,4 @@ Building a resilient synthetic monitoring platform is hard. It's not just a $5 VThe drawback of this approach is the complexity of providing an easy self hostable services. Which is annoying because we are an open-source project and we want to provide a self-hostable version of OpenStatus. But we are working on community edition that will be easier to deploy.-*Want to start monitoring your services with OpenStatus? [Sign up for free](https://www.openstatus.dev/app/login?ref=blogpost-infra) and get started today!*\ No newline at end of file+*Want to start monitoring your services with OpenStatus? [Sign up for free](/app/login?ref=blogpost-infra) and get started today!*\ No newline at end of filediff --git a/apps/web/src/content/posts/openstatus-light-viewer.mdx b/apps/web/src/content/pages/blog/openstatus-light-viewer.mdxsimilarity index 93%rename from apps/web/src/content/posts/openstatus-light-viewer.mdxrename to apps/web/src/content/pages/blog/openstatus-light-viewer.mdxindex 1ebbe4086..ea2449c89 100644--- a/apps/web/src/content/posts/openstatus-light-viewer.mdx+++ b/apps/web/src/content/pages/blog/openstatus-light-viewer.mdx@@ -1,13 +1,10 @@----title: OpenStatus Light Viewer-description: The perfect companion for the vercel-edge-ping project-author:- name: Maximilian Kaske- url: https://x.com/mxkaske- avatar: /assets/authors/max.png-publishedAt: 2025-03-30-image: /assets/posts/openstatus-light-viewer/light-viewer.png-tag: engineering+title: "OpenStatus Light Viewer"+description: "The perfect companion for the vercel-edge-ping project"+author: "Maximilian Kaske"+publishedAt: "2025-03-30"+image: "/assets/posts/openstatus-light-viewer/light-viewer.png"+category: "engineering"---› [logs.run/light](https://logs.run/light)diff --git a/apps/web/src/content/posts/our-new-pricing-explained.mdx b/apps/web/src/content/pages/blog/our-new-pricing-explained.mdxsimilarity index 87%rename from apps/web/src/content/posts/our-new-pricing-explained.mdxrename to apps/web/src/content/pages/blog/our-new-pricing-explained.mdxindex b4ec6ac9f..9a87fe785 100644--- a/apps/web/src/content/posts/our-new-pricing-explained.mdx+++ b/apps/web/src/content/pages/blog/our-new-pricing-explained.mdx@@ -1,15 +1,10 @@----title: Our new pricing explained, and why pricing is hard-description:- We have updated our pricing. In this article, we will discuss the challenges- we faced while setting up our new pricing.-author:- name: Thibault Le Ouay Ducasse- url: https://bsky.app/profile/thibaultleouay.dev- avatar: /assets/authors/thibault.jpeg-publishedAt: 2024-01-15-image: /assets/posts/our-new-pricing-explained/pricing-hard.png-tag: company+title: "Our new pricing explained, and why pricing is hard"+description: ""+author: "Thibault Le Ouay Ducasse"+publishedAt: "2024-01-15"+image: "/assets/posts/our-new-pricing-explained/pricing-hard.png"+category: "company"---We began the new year with two goals: to increase profitability and attract more@@ -110,5 +105,5 @@ It's hard to price your product. But our pricing is not static. If it's notworking, we will change it.Want to support us?-[Sign-up](https://www.openstatus.dev/app/sign-up?ref=pricing-blog) and pick the+[Sign-up](/app/sign-up?ref=pricing-blog) and pick theplan that rights for you.diff --git a/apps/web/src/content/posts/our-producthunt-launch-brutal-reality.mdx b/apps/web/src/content/pages/blog/our-producthunt-launch-brutal-reality.mdxsimilarity index 86%rename from apps/web/src/content/posts/our-producthunt-launch-brutal-reality.mdxrename to apps/web/src/content/pages/blog/our-producthunt-launch-brutal-reality.mdxindex 1e05fc1e4..32a90f78c 100644--- a/apps/web/src/content/posts/our-producthunt-launch-brutal-reality.mdx+++ b/apps/web/src/content/pages/blog/our-producthunt-launch-brutal-reality.mdx@@ -1,14 +1,10 @@---title: "Our Product Hunt Launch: The Brutal Reality"-description:- Here’s the story of our Product Hunt launch, where we ended up as the second product of the day, along with our thoughts a couple of days later. Reflecting on the experience and its implications for our marketing strategy.-author:- name: Thibault Le Ouay Ducasse- url: https://bsky.app/profile/thibaultleouay.dev- avatar: /assets/authors/thibault.jpeg-publishedAt: 2025-10-22-image: /assets/posts/producthunt-launch-brutal-reality/producthunt-launch.png-tag: company+description: ""+author: "Thibault Le Ouay Ducasse"+publishedAt: "2025-10-22"+image: "/assets/posts/producthunt-launch-brutal-reality/producthunt-launch.png"+category: "company"---@@ -24,14 +20,12 @@ Initially, I thought it was a broken AI outreach. We had never planned to launchSoon after, my LinkedIn inbox filled with outreach messages trying to sell me upvotes.-<div class="my-2 flex justify-center"><Imagealt="screenshot of linkedin inbox full of spam"src="/assets/posts/producthunt-launch-brutal-reality/linkedin-inbox.png"width={350}height={575}/>-</div>I read a lot of blog posts about preparing for Product Hunt day and how to achieve a high ranking. However, we followed none of this advice and continued with our day as we have planned it. Though I replied to every comments on the Product Hunt page. Alsodiff --git a/apps/web/src/content/posts/pricing-update-july-2024.mdx b/apps/web/src/content/pages/blog/pricing-update-july-2024.mdxsimilarity index 91%rename from apps/web/src/content/posts/pricing-update-july-2024.mdxrename to apps/web/src/content/pages/blog/pricing-update-july-2024.mdxindex ddb98a1b0..2d9b817c0 100644--- a/apps/web/src/content/posts/pricing-update-july-2024.mdx+++ b/apps/web/src/content/pages/blog/pricing-update-july-2024.mdx@@ -1,13 +1,10 @@---title: "Our latest pricing update: more value, cleaner numbers."-description: We have update our pricing again, let's deep dive into it.-author:- name: Thibault Le Ouay Ducasse- url: https://bsky.app/profile/thibaultleouay.dev- avatar: /assets/authors/thibault.jpeg-publishedAt: 2024-07-24-image: /assets/posts/pricing-update-july-2024/pricing.png-tag: company+description: "We have update our pricing again, let's deep dive into it."+author: "Thibault Le Ouay Ducasse"+publishedAt: "2024-07-24"+image: "/assets/posts/pricing-update-july-2024/pricing.png"+category: "company"---@@ -41,10 +38,6 @@ We took a completly different approach we are charging per monitors instead of rThis means you can set a fixed number of monitors without worrying about the number of requests our price is fixed.-You can see how many requests you can do with a monitor:--<PricingSlider />-## 🏠💸 The Cost of Self-Hosting.diff --git a/apps/web/src/content/posts/product-strategy-a-reality-check.mdx b/apps/web/src/content/pages/blog/product-strategy-a-reality-check.mdxsimilarity index 95%rename from apps/web/src/content/posts/product-strategy-a-reality-check.mdxrename to apps/web/src/content/pages/blog/product-strategy-a-reality-check.mdxindex e6eddba58..d8688d7d3 100644--- a/apps/web/src/content/posts/product-strategy-a-reality-check.mdx+++ b/apps/web/src/content/pages/blog/product-strategy-a-reality-check.mdx@@ -1,13 +1,10 @@----title: Product Strategy - A Reality Check-description: Emily Omier challenged us to think deeply about our product strategy.-author:- name: Maximilian Kaske- url: https://x.com/mxkaske- avatar: /assets/authors/max.png-publishedAt: 2025-07-31-image: /assets/posts/product-strategy-a-reality-check/emily-omier.png-tag: company+title: "Product Strategy - A Reality Check"+description: "Emily Omier challenged us to think deeply about our product strategy."+author: "Maximilian Kaske"+publishedAt: "2025-07-31"+image: "/assets/posts/product-strategy-a-reality-check/emily-omier.png"+category: "company"---We worked closely with [Emily Omier](https://emilyomier.com/) to understand our place in the open-source ecosystem and to challenge ourselves. Over the course of a month, every week, Emily hit us with tough questions and then questioned our answers again. All async - so everyone could work on it when they had the capacity.diff --git a/apps/web/src/content/posts/q1-2024-update.mdx b/apps/web/src/content/pages/blog/q1-2024-update.mdxsimilarity index 72%rename from apps/web/src/content/posts/q1-2024-update.mdxrename to apps/web/src/content/pages/blog/q1-2024-update.mdxindex ab10ff392..2276f3078 100644--- a/apps/web/src/content/posts/q1-2024-update.mdx+++ b/apps/web/src/content/pages/blog/q1-2024-update.mdx@@ -1,13 +1,10 @@----title: OpenStatus Q1 2024 Update-description: Let's review our first quarter of 2024.-author:- name: Thibault Le Ouay Ducasse- url: https://bsky.app/profile/thibaultleouay.dev- avatar: /assets/authors/thibault.jpeg-publishedAt: 2024-04-29-image: /assets/posts/q1-2024-update/q1-2024-update.png-tag: company+title: "OpenStatus Q1 2024 Update"+description: "Let's review our first quarter of 2024."+author: "Thibault Le Ouay Ducasse"+publishedAt: "2024-04-29"+image: "/assets/posts/q1-2024-update/q1-2024-update.png"+category: "company"---A lot has happened in the first quarter of 2024. We have been working hard to@@ -17,7 +14,7 @@ performance of your services.## Metrics 📈Our MRR has increased by 108% compared to the last quarter of 2023 and our new-[pricing](https://www.openstatus.dev/blog/our-new-pricing-explained).+[pricing](/blog/our-new-pricing-explained).<Imagealt="New users per week"@@ -39,8 +36,7 @@ a few:- Monitor Tags- Auto Resolved Incidents-But you should check out our [changelog](https://www.openstatus.dev/changelog)-for a complete list of updates.+But you should check out our [changelog](/changelog) for a complete list of updates.## Team Update 👥diff --git a/apps/web/src/content/posts/reflecting-1-year-building-openstatus.mdx b/apps/web/src/content/pages/blog/reflecting-1-year-building-openstatus.mdxsimilarity index 90%rename from apps/web/src/content/posts/reflecting-1-year-building-openstatus.mdxrename to apps/web/src/content/pages/blog/reflecting-1-year-building-openstatus.mdxindex 9688b5ed6..3c17f4c81 100644--- a/apps/web/src/content/posts/reflecting-1-year-building-openstatus.mdx+++ b/apps/web/src/content/pages/blog/reflecting-1-year-building-openstatus.mdx@@ -1,22 +1,18 @@----title:- "Our Journey Building OpenStatus: From Idea to Reality"-description: Reflecting on our first year of building OpenStatus, an open source synthetic monitoring platform that has grown to more than 6,000 GitHub stars and 5,000 users.-author:- name: Thibault Le Ouay- url: https://bsky.app/profile/thibaultleouay.dev- avatar: /assets/authors/thibault.jpeg-publishedAt: 2024-09-26-image: /assets/posts/reflecting-1-year-building-openstatus/first-year.png-tag: company+title: "Our Journey Building OpenStatus: From Idea to Reality"+description: "Reflecting on our first year of building OpenStatus, an open source synthetic monitoring platform that has grown to more than 6,000 GitHub stars and 5,000 users."+author: "Thibault Le Ouay"+publishedAt: "2024-09-26"+image: "/assets/posts/reflecting-1-year-building-openstatus/first-year.png"+category: "company"---In one year, we've grown our open-source synthetic monitoring platform to more than 6,000 GitHub stars and 5,000 users. This article will reflect on our first year of building OpenStatus.We've written about OpenStatus's journey before:-- [Celebrated 48 hours of OpenStatus](https://www.openstatus.dev/blog/the-first-48-hours?ref=blog-1year)-- [Our 2023 year in review](https://www.openstatus.dev/blog/2023-year-review?ref=blog-1year)+- [Celebrated 48 hours of OpenStatus](/blog/the-first-48-hours?ref=blog-1year)+- [Our 2023 year in review](/blog/2023-year-review?ref=blog-1year)## The Beginning: A Twitter Connection 🤝@@ -98,8 +94,8 @@ To be in these lists you don’t only need to ship feature but you have to engagWe lacked a formal SEO strategy, but some of our blog posts performed well:-- [Monitoring Serverless Providers](https://www.openstatus.dev/blog/monitoring-latency-cf-workers-fly-koyeb-raylway-render)-- [Migrating our backend from Vercel to Fly](https://www.openstatus.dev/blog/migration-backend-from-vercel-to-fly)+- [Monitoring Serverless Providers](/blog/monitoring-latency-cf-workers-fly-koyeb-raylway-render)+- [Migrating our backend from Vercel to Fly](/blog/migration-backend-from-vercel-to-fly)Our content approach was straightforward:@@ -192,7 +188,7 @@ As we reflect on our journey, we're excited about the road ahead. So how does ou- Overall solidify the source code structure via tests, code splitting and staging environment- Being more integrated into your o11y stack-> If you have ideas, requests or wanna chat feel free to contact us via [[email protected]](mailto:[email protected]) or join our Discord channel [https://www.openstatus.dev/discord](https://openstatus.dev/discord)+> If you have ideas, requests or wanna chat feel free to contact us via [[email protected]](mailto:[email protected]) or join our Discord channel [/discord](https://openstatus.dev/discord)>OpenStatus has grown from a simple idea into a promising open-source project with a dedicated user base. We're committed to continuing our innovation, engaging with our community, and building tools that developers love.@@ -210,4 +206,4 @@ Stay tuned for more updates as we continue to improve OpenStatus!To infinity and beyond 🚀Want to join us on this journey? [Star us on GitHub](https://www.github.com/openstatusHQ/openstatus)! 🌟-Or create an account on [Openstatus](https://www.openstatus.dev/app/login) and start monitoring your services today!+Or create an account on [Openstatus](/app/login) and start monitoring your services today!diff --git a/apps/web/src/content/posts/rss-app-slack-feed.mdx b/apps/web/src/content/pages/blog/rss-app-slack-feed.mdxsimilarity index 85%rename from apps/web/src/content/posts/rss-app-slack-feed.mdxrename to apps/web/src/content/pages/blog/rss-app-slack-feed.mdxindex f570c1ce4..d4722d237 100644--- a/apps/web/src/content/posts/rss-app-slack-feed.mdx+++ b/apps/web/src/content/pages/blog/rss-app-slack-feed.mdx@@ -1,13 +1,10 @@----title: RSS feed in your Slack channel-description: Learn how to subscribe to RSS feeds in Slack and stay up-to-date with blog posts, changelogs, and status page updates.-author:- name: Maximilian Kaske- url: https://x.com/mxkaske- avatar: /assets/authors/max.png-publishedAt: 2025-09-29-image: /assets/posts/rss-app-slack-feed/rss-app-slack-feed.png-tag: education+title: "RSS feed in your Slack channel"+description: "Learn how to subscribe to RSS feeds in Slack and stay up-to-date with blog posts, changelogs, and status page updates."+author: "Maximilian Kaske"+publishedAt: "2025-09-29"+image: "/assets/posts/rss-app-slack-feed/rss-app-slack-feed.png"+category: "education"---Using RSS (**Really Simple Syndication**) to stay up to date is definitely underrated. Every site should provide an RSS feed - whether it’s for blog posts, changelogs, or status page updates like incidents, reports, and maintenances. RSS makes it simple to follow the latest news without scraping websites or doom-scrolling through social media.diff --git a/apps/web/src/content/posts/same-pricing-more-monitors.mdx b/apps/web/src/content/pages/blog/same-pricing-more-monitors.mdxsimilarity index 82%rename from apps/web/src/content/posts/same-pricing-more-monitors.mdxrename to apps/web/src/content/pages/blog/same-pricing-more-monitors.mdxindex e536fbbfd..719e9423c 100644--- a/apps/web/src/content/posts/same-pricing-more-monitors.mdx+++ b/apps/web/src/content/pages/blog/same-pricing-more-monitors.mdx@@ -1,13 +1,10 @@----title: Same Pricing. More Monitors.-description: We are updating our plans.-author:- name: Maximilian Kaske- url: https://x.com/mxkaske- avatar: /assets/authors/max.png-publishedAt: 2025-08-02-image: /assets/posts/same-pricing-more-monitors/same-pricing-more-monitors.png-tag: company+title: "Same Pricing. More Monitors."+description: "We are updating our plans."+author: "Maximilian Kaske"+publishedAt: "2025-08-02"+image: "/assets/posts/same-pricing-more-monitors/same-pricing-more-monitors.png"+category: "company"---We’re updating our plans alongside the launch of the new [dashboard](https://openstatus.dev/blog/new-dashboard-we-are-so-back).diff --git a/apps/web/src/content/posts/secure-api-with-unkey.mdx b/apps/web/src/content/pages/blog/secure-api-with-unkey.mdxsimilarity index 95%rename from apps/web/src/content/posts/secure-api-with-unkey.mdxrename to apps/web/src/content/pages/blog/secure-api-with-unkey.mdxindex 7c8ec66bb..8c73a223d 100644--- a/apps/web/src/content/posts/secure-api-with-unkey.mdx+++ b/apps/web/src/content/pages/blog/secure-api-with-unkey.mdx@@ -1,13 +1,10 @@----title: How to secure your API with Unkey and Hono.js Middleware-description: The simplest way to secure your API routes within seconds.-author:- name: Maximilian Kaske- url: https://twitter.com/mxkaske- avatar: /assets/authors/max.png-publishedAt: 2023-10-01-image: /assets/posts/secure-api-with-unkey/unkey.png-tag: engineering+title: "How to secure your API with Unkey and Hono.js Middleware"+description: "The simplest way to secure your API routes within seconds."+author: "Maximilian Kaske"+publishedAt: "2023-10-01"+image: "/assets/posts/secure-api-with-unkey/unkey.png"+category: "engineering"---## Introductiondiff --git a/apps/web/src/content/posts/the-first-48-hours.mdx b/apps/web/src/content/pages/blog/the-first-48-hours.mdxsimilarity index 91%rename from apps/web/src/content/posts/the-first-48-hours.mdxrename to apps/web/src/content/pages/blog/the-first-48-hours.mdxindex 222cc0e41..1380fa550 100644--- a/apps/web/src/content/posts/the-first-48-hours.mdx+++ b/apps/web/src/content/pages/blog/the-first-48-hours.mdx@@ -1,132 +1,129 @@-----title: 48 hours of public OpenStatus-image: /assets/posts/the-first-48-hours/48.png-description: The numbers, limits we faced and consequences we have taken.-author:- name: Maximilian Kaske- url: https://twitter.com/mxkaske- avatar: /assets/authors/max.png-publishedAt: 2023-08-02-tag: company------## 48 hours of Rollercoaster 🎢--The past two days following the launch have been incredibly hectic. The level of-interest we received exceeded our expectations. We were even trending on GitHub.-The number of users and created monitors far surpassed what we anticipated. We-sincerely appreciate your support, as it further motivates us. The raw-statistics are astonishing:--- Monitors: 315-- Users: 418-- Status pages: 174--With a large user base comes great responsibility. Thanks to the high volume of-users, we discovered several flaws in our system. We promptly addressed the-issues and took action.--## Limits we encountered 😱--We conducted a DDOS attack on Vercel's firewalls from Upstash servers because we-where pining every single vercel region for every monitor (18 \* 315 = 5.670)-more or less at once. Before considering the removal of-[QStash](https://upstash.com/qstash?ref=openstatus), we implemented a hotfix to-introduce random delays of 0 to 180 seconds between each ping. This prevented us-from overwhelming Vercel with simultaneous requests, significantly reducing the-number of retries on QStash. As a result of these measures, we now have a-randomized check interval of 0 to 90 seconds.--For the time being, we will keep it to ensure that every check is successfully-processed.--<Image- alt="Qstash Usage"- src="/assets/posts/the-first-48-hours/qstash-usage.png"- width={650}- height={168}-/>--Moreover, our actions caused the `/monitor/[id]/data` data-table to break. We-were storing the metadata `res.text()` in Tinybird and retrieving it with the-query `SELECT * from monitors WHERE ....` This means that if the text is in HTML-format, we store the HTML content of the page, which is acceptable. However,-this led to quickly exceeding the 100MB limit for the result length when-accessing monitor data. Now, we are only querying the necessary data from-tinybird: `SELECT latency, timestamp, url, ... from monitors WHERE ...`. Despite-this, we continue to ingest the data and will only request it in the future when-you click on the "View metadata" action.--And of course no need to mention all the little hotfixed we had to make here and-there.--### What would it cost us? 💸--Let's break the current numbers a bit more down if we would have kept pinging-all the regions:--- Number of checks every 10min: 315 \* 18 regions = 5.670-- Number of checks every 1h: 5.670 \* 6 = 34.020-- Number of checks every day: 34.020 \* 24 = 816.480--<Image- alt="Vercel Usage"- src="/assets/posts/the-first-48-hours/vercel-usage.png"- width={650}- height={263}-/>--> We have resolved an issue with regex invocation in the edge middleware.-> Previously, it was being called whenever an API endpoint was called.--Under Vercel's Pro plan, we have 1 million edge function executions included,-and for each additional 1 million, there is a-$2 charge. Because the numbers are constant, we would have payed-1$/100k Qstash-messages which would lead us to a approx. **10$/day** for the current free-tiers.--### Actions taken 👷--But due to the high cost of our current infrastructure, **we have downgraded all-monitors to a single region** (`/regions/auto`, a which will take a random-vercel region) in order to stay within a reasonable budget, by dividing it-by 18. You can edit the region for each monitor. We apologize for any-inconvenience caused and will update you on the new conditions once everything-is normalized.--A big appreciation to [@chronark\_](https://twitter.com/chronark_) who joined us-on a call to discuss potential solutions and for sharing his knowledge about his-own service, [planetfall.io](https://planetfall.io).--Also, Guilherme had a very good comment:--<Tweet id="1686482013685940224" />--As a result of this incident, we will be reevaluating the prices and plans-displayed on our homepage.--Join [Discord](https://openstatus.dev/discord) if you want to learn more or just-have a chat!--Again, thank you for all your support and your understanding. 🙏-------P.S. We are generating your workspace-slug by merging two random names. Create-an account on [openstatus](https://openstatus.dev) and share yours on-[Discord](https://openstatus.dev/discord) - it's fun to watch! 🍿--<Image- alt="wet-grandmother slug"- src="/assets/posts/the-first-48-hours/wet-grandmother-workspace-slug.png"- width={400}- height={100}-/>--<Image- alt="enough-gas slug"- src="/assets/posts/the-first-48-hours/enough-gas-workspace-slug.png"- width={400}- height={100}-/>+---+title: "48 hours of public OpenStatus"+image: "/assets/posts/the-first-48-hours/48.png"+description: "The numbers, limits we faced and consequences we have taken."+author: "Maximilian Kaske"+publishedAt: "2023-08-02"+category: "company"+---++## 48 hours of Rollercoaster 🎢++The past two days following the launch have been incredibly hectic. The level of+interest we received exceeded our expectations. We were even trending on GitHub.+The number of users and created monitors far surpassed what we anticipated. We+sincerely appreciate your support, as it further motivates us. The raw+statistics are astonishing:++- Monitors: 315+- Users: 418+- Status pages: 174++With a large user base comes great responsibility. Thanks to the high volume of+users, we discovered several flaws in our system. We promptly addressed the+issues and took action.++## Limits we encountered 😱++We conducted a DDOS attack on Vercel's firewalls from Upstash servers because we+where pining every single vercel region for every monitor (18 \* 315 = 5.670)+more or less at once. Before considering the removal of+[QStash](https://upstash.com/qstash?ref=openstatus), we implemented a hotfix to+introduce random delays of 0 to 180 seconds between each ping. This prevented us+from overwhelming Vercel with simultaneous requests, significantly reducing the+number of retries on QStash. As a result of these measures, we now have a+randomized check interval of 0 to 90 seconds.++For the time being, we will keep it to ensure that every check is successfully+processed.++<Image+ alt="Qstash Usage"+ src="/assets/posts/the-first-48-hours/qstash-usage.png"+ width={650}+ height={168}+/>++Moreover, our actions caused the `/monitor/[id]/data` data-table to break. We+were storing the metadata `res.text()` in Tinybird and retrieving it with the+query `SELECT * from monitors WHERE ....` This means that if the text is in HTML+format, we store the HTML content of the page, which is acceptable. However,+this led to quickly exceeding the 100MB limit for the result length when+accessing monitor data. Now, we are only querying the necessary data from+tinybird: `SELECT latency, timestamp, url, ... from monitors WHERE ...`. Despite+this, we continue to ingest the data and will only request it in the future when+you click on the "View metadata" action.++And of course no need to mention all the little hotfixed we had to make here and+there.++### What would it cost us? 💸++Let's break the current numbers a bit more down if we would have kept pinging+all the regions:++- Number of checks every 10min: 315 \* 18 regions = 5.670+- Number of checks every 1h: 5.670 \* 6 = 34.020+- Number of checks every day: 34.020 \* 24 = 816.480++<Image+ alt="Vercel Usage"+ src="/assets/posts/the-first-48-hours/vercel-usage.png"+ width={650}+ height={263}+/>++> We have resolved an issue with regex invocation in the edge middleware.+> Previously, it was being called whenever an API endpoint was called.++Under Vercel's Pro plan, we have 1 million edge function executions included,+and for each additional 1 million, there is a+$2 charge. Because the numbers are constant, we would have payed+1$/100k Qstash+messages which would lead us to a approx. **10$/day** for the current free+tiers.++### Actions taken 👷++But due to the high cost of our current infrastructure, **we have downgraded all+monitors to a single region** (`/regions/auto`, a which will take a random+vercel region) in order to stay within a reasonable budget, by dividing it+by 18. You can edit the region for each monitor. We apologize for any+inconvenience caused and will update you on the new conditions once everything+is normalized.++A big appreciation to [@chronark\_](https://twitter.com/chronark_) who joined us+on a call to discuss potential solutions and for sharing his knowledge about his+own service, [planetfall.io](https://planetfall.io).++Also, Guilherme had a very good comment:++<Tweet id="1686482013685940224" />++As a result of this incident, we will be reevaluating the prices and plans+displayed on our homepage.++Join [Discord](https://openstatus.dev/discord) if you want to learn more or just+have a chat!++Again, thank you for all your support and your understanding. 🙏++---++P.S. We are generating your workspace-slug by merging two random names. Create+an account on [openstatus](https://openstatus.dev) and share yours on+[Discord](https://openstatus.dev/discord) - it's fun to watch! 🍿++<Image+ alt="wet-grandmother slug"+ src="/assets/posts/the-first-48-hours/wet-grandmother-workspace-slug.png"+ width={400}+ height={100}+/>++<Image+ alt="enough-gas slug"+ src="/assets/posts/the-first-48-hours/enough-gas-workspace-slug.png"+ width={400}+ height={100}+/>diff --git a/apps/web/src/content/posts/top-five-atlassian-statuspage-alternatives.mdx b/apps/web/src/content/pages/blog/top-five-atlassian-statuspage-alternatives.mdxsimilarity index 82%rename from apps/web/src/content/posts/top-five-atlassian-statuspage-alternatives.mdxrename to apps/web/src/content/pages/blog/top-five-atlassian-statuspage-alternatives.mdxindex 654eb0d8a..f756ca25b 100644--- a/apps/web/src/content/posts/top-five-atlassian-statuspage-alternatives.mdx+++ b/apps/web/src/content/pages/blog/top-five-atlassian-statuspage-alternatives.mdx@@ -1,13 +1,10 @@----title: Top Five Atlassian Statuspage Alternatives-image: /assets/posts/top-five-atlassian-statuspage-alternatives/hero.png-description: Explore the best alternatives to Atlassian Statuspage including OpenStatus, Status-io, Datadog Status Page, Instatus, and Betterstack.-author:- name: Thibault Le Ouay Ducasse- url: https://bsky.app/profile/thibaultleouay.dev- avatar: /assets/authors/thibault.jpeg-publishedAt: 2025-11-05-tag: guide+title: "Top Five Atlassian Statuspage Alternatives"+image: "/assets/posts/top-five-atlassian-statuspage-alternatives/hero.png"+description: "Explore the best alternatives to Atlassian Statuspage including OpenStatus, Status-io, Datadog Status Page, Instatus, and Betterstack."+author: "Thibault Le Ouay Ducasse"+publishedAt: "2025-11-05"+category: "guide"---Atlassian Statuspage has long been a go-to choice for organizations needing to communicate their service status. It's a robust, mature platform. However, the service reliability and incident communication landscape is evolving rapidly.@@ -36,19 +33,31 @@ While Statuspage is a powerful tool, several factors might lead your team to see## Atlassian Statuspage Comparison-Here’s a high-level look at how these five alternatives stack up on key features.--| Features | openstatus | status.io | Datadog Status Page | Instatus | Betterstack |-|---|---|---|---|---|---|-| Status Page | | | | | |-| Private Status Page | $30/m | $349/m | ✅ | $50/m | Add on $42/m |-| Team Members | Unlimited | 50 for $349/ | $42/seat | 25 for the $50/m plan | $29/seat |-| Custom Style | Theme Store | ✅ for $349 | ✅ | ✅ | $12 per page per month |-| Monitoring | | | | | |-| Monitoring | ✅ | ❌ | ✅ | ✅ | ✅ |-| Monitoring As Code | ✅ Yaml based | ❌ | ✅ Terraform | ❌ | ✅ Terraform |-| OpenTelemetry | ✅ | ❌ | ✅ | ❌ | ✅ |-| Private Location | ✅ | ❌ | ✅ | ❌ | ❌ |+Here's a high-level look at how these five alternatives stack up on key features.++<Table+ data={{+ headers: [+ "Features",+ "openstatus",+ "status.io",+ "Datadog Status Page",+ "Instatus",+ "Betterstack",+ ],+ rows: [+ [<strong>Status Page</strong>, "", "", "", "", ""],+ ["Private Status Page", "$30/m", "$349/m", "✅", "$50/m", "Add on $42/m"],+ ["Team Members", "Unlimited", "50 for $349/", "$42/seat", "25 for the $50/m plan", "$29/seat"],+ ["Custom Style", "Theme Store", "✅ for $349", "✅", "✅", "$12 per page per month"],+ [<strong>Monitoring</strong>, "", "", "", "", ""],+ ["Monitoring", "✅", "❌", "✅", "✅", "✅"],+ ["Monitoring As Code", "✅ Yaml based", "❌", "✅ Terraform", "❌", "✅ Terraform"],+ ["OpenTelemetry", "✅", "❌", "✅", "❌", "✅"],+ ["Private Location", "✅", "❌", "✅", "❌", "❌"],+ ],+ }}+/>@@ -160,4 +169,4 @@ While Atlassian Statuspage pioneered the status page market, several alternative## Need Help or Have Questions?-If you need help along the way, feel free to join our [Discord community](https://www.openstatus.dev/dev), check our [documentation](https://docs.openstatus.dev) for more information or reach out to us via [email](mailto:[email protected])+If you need help along the way, feel free to join our [Discord community](https://www.openstatus.dev/discord), check our [documentation](https://docs.openstatus.dev) for more information or reach out to us via [email](mailto:[email protected])diff --git a/apps/web/src/content/posts/vision-2025.mdx b/apps/web/src/content/pages/blog/vision-2025.mdxsimilarity index 94%rename from apps/web/src/content/posts/vision-2025.mdxrename to apps/web/src/content/pages/blog/vision-2025.mdxindex 1cf177008..5c76d32dc 100644--- a/apps/web/src/content/posts/vision-2025.mdx+++ b/apps/web/src/content/pages/blog/vision-2025.mdx@@ -1,13 +1,10 @@----title: Our plans in 2025-description: Embrace OpenTelemetry, improve developer experience, and support community editions.-author:- name: Maximilian Kaske- url: https://x.com/mxkaske- avatar: /assets/authors/max.png-publishedAt: 2024-12-31-image: /assets/posts/vision-2025/vision-2025.png-tag: company+title: "Our plans in 2025"+description: "Embrace OpenTelemetry, improve developer experience, and support community editions."+author: "Maximilian Kaske"+publishedAt: "2024-12-31"+image: "/assets/posts/vision-2025/vision-2025.png"+category: "company"---This post has two purposes: (a) *sharing our vision with you* and (b) *holding ourselves accountable*.diff --git a/apps/web/src/content/changelog/auto-resolved-incidents.mdx b/apps/web/src/content/pages/changelog/auto-resolved-incidents.mdxsimilarity index 72%rename from apps/web/src/content/changelog/auto-resolved-incidents.mdxrename to apps/web/src/content/pages/changelog/auto-resolved-incidents.mdxindex 79fce42c0..fcdf721b6 100644--- a/apps/web/src/content/changelog/auto-resolved-incidents.mdx+++ b/apps/web/src/content/pages/changelog/auto-resolved-incidents.mdx@@ -1,8 +1,10 @@----title: Auto Resolved Incidents-description: Automatically resolve incidents when your endpoint is back.-image: /assets/changelog/auto-resolved-incidents.png-publishedAt: 2024-02-19+title: "Auto Resolved Incidents"+description: "Automatically resolve incidents when your endpoint is back."+image: "/assets/changelog/auto-resolved-incidents.png"+publishedAt: "2024-02-19"+author: "openstatus"+category: "incidents"---We have added auto-resolved incidents to the incident management feature. Now,diff --git a/apps/web/src/content/changelog/binary-payload.mdx b/apps/web/src/content/pages/changelog/binary-payload.mdxsimilarity index 58%rename from apps/web/src/content/changelog/binary-payload.mdxrename to apps/web/src/content/pages/changelog/binary-payload.mdxindex ea37ee7c1..e994f4f64 100644--- a/apps/web/src/content/changelog/binary-payload.mdx+++ b/apps/web/src/content/pages/changelog/binary-payload.mdx@@ -1,8 +1,10 @@----title: Binary payload-description: Send binary payloads with your HTTP synthetic check requests.-image: /assets/changelog/content-type.png-publishedAt: 2024-09-09+title: "Binary payload"+description: "Send binary payloads with your HTTP synthetic check requests."+image: "/assets/changelog/content-type.png"+publishedAt: "2024-09-09"+author: "openstatus"+category: "monitoring"---You can now include binary payloads in your HTTP synthetic check requests, which is handy for sending files or other binary data in the request body.diff --git a/apps/web/src/content/changelog/check-run-api.mdx b/apps/web/src/content/pages/changelog/check-run-api.mdxsimilarity index 59%rename from apps/web/src/content/changelog/check-run-api.mdxrename to apps/web/src/content/pages/changelog/check-run-api.mdxindex 57826d590..1c59fa5b4 100644--- a/apps/web/src/content/changelog/check-run-api.mdx+++ b/apps/web/src/content/pages/changelog/check-run-api.mdx@@ -1,8 +1,10 @@----title: Run Check API-description: Launch a check with our API to test your endpoint's latency.-image: /assets/changelog/check-api.png-publishedAt: 2024-06-18+title: "Run Check API"+description: "Launch a check with our API to test your endpoint's latency."+image: "/assets/changelog/check-api.png"+publishedAt: "2024-06-18"+author: "openstatus"+category: "monitoring"---We have added a new API to launch a check with OpenStatus. You can now test your endpoint's latency programmatically.diff --git a/apps/web/src/content/changelog/checker-playground.mdx b/apps/web/src/content/pages/changelog/checker-playground.mdxsimilarity index 78%rename from apps/web/src/content/changelog/checker-playground.mdxrename to apps/web/src/content/pages/changelog/checker-playground.mdxindex e6b21c1e7..b751a1478 100644--- a/apps/web/src/content/changelog/checker-playground.mdx+++ b/apps/web/src/content/pages/changelog/checker-playground.mdx@@ -1,9 +1,10 @@----title: Checker Playground-description:- Experience the performance of your application from different regions.-image: /assets/changelog/checker-playground.png-publishedAt: 2024-01-20+title: "Checker Playground"+description: "Experience the performance of your application from different regions."+image: "/assets/changelog/checker-playground.png"+publishedAt: "2024-01-20"+author: "openstatus"+category: "monitoring"---You can now test your API or website from multiple regions around the world anddiff --git a/apps/web/src/content/changelog/cli-import-apply.mdx b/apps/web/src/content/pages/changelog/cli-import-apply.mdxsimilarity index 63%rename from apps/web/src/content/changelog/cli-import-apply.mdxrename to apps/web/src/content/pages/changelog/cli-import-apply.mdxindex 181862e0b..8552826cc 100644--- a/apps/web/src/content/changelog/cli-import-apply.mdx+++ b/apps/web/src/content/pages/changelog/cli-import-apply.mdx@@ -1,8 +1,10 @@---title: "CLI: Import and manage monitors"-description: Import your openstatus monitors, modify them and apply change with the CLI-image: /assets/changelog/cli-apply.png-publishedAt: 2025-08-02+description: "Import your openstatus monitors, modify them and apply change with the CLI"+image: "/assets/changelog/cli-apply.png"+publishedAt: "2025-08-02"+author: "openstatus"+category: "cli"---We have released a new version of our CLI.diff --git a/apps/web/src/content/changelog/cli-improvement.mdx b/apps/web/src/content/pages/changelog/cli-improvement.mdxsimilarity index 62%rename from apps/web/src/content/changelog/cli-improvement.mdxrename to apps/web/src/content/pages/changelog/cli-improvement.mdxindex 2bcb647cc..24a5658fa 100644--- a/apps/web/src/content/changelog/cli-improvement.mdx+++ b/apps/web/src/content/pages/changelog/cli-improvement.mdx@@ -1,8 +1,10 @@----title: New CLI commands-description: We have updated our CLI to provide more features and improve the user experience.-image: /assets/changelog/cli-update.png-publishedAt: 2025-06-16+title: "New CLI commands"+description: "We have updated our CLI to provide more features and improve the user experience."+image: "/assets/changelog/cli-update.png"+publishedAt: "2025-06-16"+author: "openstatus"+category: "cli"---Upgrade your CLI to the latest version for enhanced functionality and a better user experience.diff --git a/apps/web/src/content/changelog/cli-monitor-template.mdx b/apps/web/src/content/pages/changelog/cli-monitor-template.mdxsimilarity index 65%rename from apps/web/src/content/changelog/cli-monitor-template.mdxrename to apps/web/src/content/pages/changelog/cli-monitor-template.mdxindex 02797fa68..6d108ade5 100644--- a/apps/web/src/content/changelog/cli-monitor-template.mdx+++ b/apps/web/src/content/pages/changelog/cli-monitor-template.mdx@@ -1,8 +1,10 @@----title: CLI Monitor configuration template-description: We have published a new repository with CLI Monitor configuration template.-image: /assets/changelog/cli-template.png-publishedAt: 2025-06-30+title: "CLI Monitor configuration template"+description: "We have published a new repository with CLI Monitor configuration template."+image: "/assets/changelog/cli-template.png"+publishedAt: "2025-06-30"+author: "openstatus"+category: "cli"---In our [previous changelog](/changelog/cli-improvement), we have introduced a new command to create monitors defined in a YAML configuration file.diff --git a/apps/web/src/content/changelog/clone-monitor.mdx b/apps/web/src/content/pages/changelog/clone-monitor.mdxsimilarity index 63%rename from apps/web/src/content/changelog/clone-monitor.mdxrename to apps/web/src/content/pages/changelog/clone-monitor.mdxindex c3a70e569..0e4570587 100644--- a/apps/web/src/content/changelog/clone-monitor.mdx+++ b/apps/web/src/content/pages/changelog/clone-monitor.mdx@@ -1,8 +1,10 @@----title: Clone Monitor-description: No more work. Just a click.-image: /assets/changelog/clone-monitor.png-publishedAt: 2024-07-14+title: "Clone Monitor"+description: "No more work. Just a click."+image: "/assets/changelog/clone-monitor.png"+publishedAt: "2024-07-14"+author: "openstatus"+category: "monitoring"---Sometimes you need to create a copy of your monitor with the same settings quickly and easily.diff --git a/apps/web/src/content/pages/changelog/curl-builder-playground.mdx b/apps/web/src/content/pages/changelog/curl-builder-playground.mdxnew file mode 100644index 000000000..5d2b07616--- /dev/null+++ b/apps/web/src/content/pages/changelog/curl-builder-playground.mdx@@ -0,0 +1,12 @@+---+title: "cURL Builder"+description: "An online curl command line builder. Generate curl commands to test your API endpoints."+image: "/assets/changelog/curl-builder-playground.png"+publishedAt: "2024-11-14"+author: "openstatus"+category: "tools"+---++An online curl command line builder. Generate curl commands to test your API endpoints.++Go to the **[Playground](/play/curl)** and test it.\ No newline at end of filediff --git a/apps/web/src/content/changelog/dark-theme-support.mdx b/apps/web/src/content/pages/changelog/dark-theme-support.mdxsimilarity index 57%rename from apps/web/src/content/changelog/dark-theme-support.mdxrename to apps/web/src/content/pages/changelog/dark-theme-support.mdxindex e1e330063..a2ef91712 100644--- a/apps/web/src/content/changelog/dark-theme-support.mdx+++ b/apps/web/src/content/pages/changelog/dark-theme-support.mdx@@ -1,8 +1,10 @@----title: Dark mode support-description: Choose your favorite theme. Dark or light.-image: /assets/changelog/dark-theme-support.png-publishedAt: 2023-11-27+title: "Dark mode support"+description: "Choose your favorite theme. Dark or light."+image: "/assets/changelog/dark-theme-support.png"+publishedAt: "2023-11-27"+author: "openstatus"+category: "company"---You can now use dark mode on the website, after a long awaited pull requestdiff --git a/apps/web/src/content/changelog/dashboard-metrics-card.mdx b/apps/web/src/content/pages/changelog/dashboard-metrics-card.mdxsimilarity index 74%rename from apps/web/src/content/changelog/dashboard-metrics-card.mdxrename to apps/web/src/content/pages/changelog/dashboard-metrics-card.mdxindex deb2fc9df..95f958705 100644--- a/apps/web/src/content/changelog/dashboard-metrics-card.mdx+++ b/apps/web/src/content/pages/changelog/dashboard-metrics-card.mdx@@ -1,8 +1,10 @@----title: Dashboard Metrics Card-description: Get more insights into your services.-image: /assets/changelog/dashboard-metrics-card.png-publishedAt: 2024-02-09+title: "Dashboard Metrics Card"+description: "Get more insights into your services."+image: "/assets/changelog/dashboard-metrics-card.png"+publishedAt: "2024-02-09"+author: "openstatus"+category: "monitoring"---You can now see more insights into your services with the new metrics card ondiff --git a/apps/web/src/content/changelog/dns-monitoring.mdx b/apps/web/src/content/pages/changelog/dns-monitoring.mdxsimilarity index 61%rename from apps/web/src/content/changelog/dns-monitoring.mdxrename to apps/web/src/content/pages/changelog/dns-monitoring.mdxindex 761b72c89..d53cd7430 100644--- a/apps/web/src/content/changelog/dns-monitoring.mdx+++ b/apps/web/src/content/pages/changelog/dns-monitoring.mdx@@ -1,8 +1,10 @@----title: DNS Monitoring-description: Monitor your DNS records with openstatus.-image: /assets/changelog/dns-monitoring.png-publishedAt: 2025-11-24+title: "DNS Monitoring"+description: "Monitor your DNS records with openstatus."+image: "/assets/changelog/dns-monitoring.png"+publishedAt: "2025-11-24"+author: "openstatus"+category: "monitoring"---We're excited to announce that DNS monitoring is now available in openstatus! This new addition expands our monitoring capabilities, allowing you to keep track of all your DNS records.diff --git a/apps/web/src/content/changelog/docker-checker.mdx b/apps/web/src/content/pages/changelog/docker-checker.mdxsimilarity index 75%rename from apps/web/src/content/changelog/docker-checker.mdxrename to apps/web/src/content/pages/changelog/docker-checker.mdxindex cdbb1c0da..8777b7059 100644--- a/apps/web/src/content/changelog/docker-checker.mdx+++ b/apps/web/src/content/pages/changelog/docker-checker.mdx@@ -1,8 +1,10 @@----title: Docker Image Checker-description: Our checker has been published to a container registry.-image: /assets/changelog/docker-checker.png-publishedAt: 2024-07-24+title: "Docker Image Checker"+description: "Our checker has been published to a container registry."+image: "/assets/changelog/docker-checker.png"+publishedAt: "2024-07-24"+author: "openstatus"+category: "monitoring"---You can deploy our checker within your infrastructure, any cloud providers or coolify by pulling the image from the container registry.diff --git a/apps/web/src/content/pages/changelog/follow-redirect.mdx b/apps/web/src/content/pages/changelog/follow-redirect.mdxnew file mode 100644index 000000000..ae3c9dd3d--- /dev/null+++ b/apps/web/src/content/pages/changelog/follow-redirect.mdx@@ -0,0 +1,13 @@+---+title: "Follow Redirect"+description: "Choose if you want to follow redirects or not."+image: "/assets/changelog/follow-redirect.png"+publishedAt: "2025-09-28"+author: "openstatus"+category: "monitoring"+---++You can now choose if you want to follow redirects for your requests. By default, redirects are followed.+++Thanks to [Anonymus2000](https://github.com/Nil2000) for the contribution.diff --git a/apps/web/src/content/changelog/github-action.mdx b/apps/web/src/content/pages/changelog/github-action.mdxsimilarity index 69%rename from apps/web/src/content/changelog/github-action.mdxrename to apps/web/src/content/pages/changelog/github-action.mdxindex 30511b060..a09f872de 100644--- a/apps/web/src/content/changelog/github-action.mdx+++ b/apps/web/src/content/pages/changelog/github-action.mdx@@ -1,8 +1,10 @@----title: OpenStatus GitHub Actions-description: Run your OpenStatus synthetic checks as part of your GitHub Workflow.-image: /assets/changelog/github-action.png-publishedAt: 2025-02-18+title: "OpenStatus GitHub Actions"+description: "Run your OpenStatus synthetic checks as part of your GitHub Workflow."+image: "/assets/changelog/github-action.png"+publishedAt: "2025-02-18"+author: "openstatus"+category: "monitoring"---We have published our GitHub Actions, It lets your run your OpenStatus synthetic checks as part of your GitHub Workflow.diff --git a/apps/web/src/content/changelog/golang-monitor-checker.mdx b/apps/web/src/content/pages/changelog/golang-monitor-checker.mdxsimilarity index 69%rename from apps/web/src/content/changelog/golang-monitor-checker.mdxrename to apps/web/src/content/pages/changelog/golang-monitor-checker.mdxindex b3f7d5a1d..fec25eb62 100644--- a/apps/web/src/content/changelog/golang-monitor-checker.mdx+++ b/apps/web/src/content/pages/changelog/golang-monitor-checker.mdx@@ -1,8 +1,10 @@----title: Golang monitor checker-description: Stability improvement for the endpoint health checker.-image: /assets/changelog/golang-monitor-checker.png-publishedAt: 2023-12-02+title: "Golang monitor checker"+description: "Stability improvement for the endpoint health checker."+image: "/assets/changelog/golang-monitor-checker.png"+publishedAt: "2023-12-02"+author: "openstatus"+category: "monitoring"---The endpoint health checker has been improved to be more stable and reliablediff --git a/apps/web/src/content/pages/changelog/grouped-monitors.mdx b/apps/web/src/content/pages/changelog/grouped-monitors.mdxnew file mode 100644index 000000000..f8755906a--- /dev/null+++ b/apps/web/src/content/pages/changelog/grouped-monitors.mdx@@ -0,0 +1,10 @@+---+title: "Grouped Monitors"+description: "Organize monitors by region or service for a cleaner overview."+image: "/assets/changelog/grouped-monitors.png"+publishedAt: "2025-11-06"+author: "openstatus"+category: "statuspage"+---++You can now group monitors on your status page - for example, by region (EU, US, APAC) or service (API, Dashboard, Auth). This makes it easier for visitors to understand which parts of your system are affected.\ No newline at end of filediff --git a/apps/web/src/content/changelog/individual-status-report-page.mdx b/apps/web/src/content/pages/changelog/individual-status-report-page.mdxsimilarity index 52%rename from apps/web/src/content/changelog/individual-status-report-page.mdxrename to apps/web/src/content/pages/changelog/individual-status-report-page.mdxindex 87344668c..dcbe5f525 100644--- a/apps/web/src/content/changelog/individual-status-report-page.mdx+++ b/apps/web/src/content/pages/changelog/individual-status-report-page.mdx@@ -1,8 +1,10 @@----title: Invidivual Status Report Page-description: Every created status report now has its own page.-publishedAt: 2023-12-22-image: /assets/changelog/individual-status-report-page.png+title: "Invidivual Status Report Page"+description: "Every created status report now has its own page."+publishedAt: "2023-12-22"+image: "/assets/changelog/individual-status-report-page.png"+author: "openstatus"+category: "statuspage"---Every created status report now has its own page. That will make it easier todiff --git a/apps/web/src/content/changelog/latency-quantiles.mdx b/apps/web/src/content/pages/changelog/latency-quantiles.mdxsimilarity index 67%rename from apps/web/src/content/changelog/latency-quantiles.mdxrename to apps/web/src/content/pages/changelog/latency-quantiles.mdxindex 926066542..2e33a19e7 100644--- a/apps/web/src/content/changelog/latency-quantiles.mdx+++ b/apps/web/src/content/pages/changelog/latency-quantiles.mdx@@ -1,8 +1,10 @@----title: Latency quantiles-description: Refine response time analysis with precision using quantiles.-image: /assets/changelog/latency-quantiles.png-publishedAt: 2024-01-04+title: "Latency quantiles"+description: "Refine response time analysis with precision using quantiles."+image: "/assets/changelog/latency-quantiles.png"+publishedAt: "2024-01-04"+author: "openstatus"+category: "monitoring"---You can now refine your latency data more effectively with quantiles: `p99`,diff --git a/apps/web/src/content/changelog/maintenance-status.mdx b/apps/web/src/content/pages/changelog/maintenance-status.mdxsimilarity index 69%rename from apps/web/src/content/changelog/maintenance-status.mdxrename to apps/web/src/content/pages/changelog/maintenance-status.mdxindex 607161538..540f96ddb 100644--- a/apps/web/src/content/changelog/maintenance-status.mdx+++ b/apps/web/src/content/pages/changelog/maintenance-status.mdx@@ -1,8 +1,10 @@----title: Maintenance status-description: Show your users that you're performing maintenance.-image: /assets/changelog/maintenance-status.png-publishedAt: 2024-06-09+title: "Maintenance status"+description: "Show your users that you're performing maintenance."+image: "/assets/changelog/maintenance-status.png"+publishedAt: "2024-06-09"+author: "openstatus"+category: "statuspage"---You can now set your status to _Under Maintenance_ to inform your users that you're performing maintenance. You'll be able to set the start and end times for the maintenance period. During this time, we will pause the connected monitors and suppress any notifications.diff --git a/apps/web/src/content/changelog/monitor-tags.mdx b/apps/web/src/content/pages/changelog/monitor-tags.mdxsimilarity index 52%rename from apps/web/src/content/changelog/monitor-tags.mdxrename to apps/web/src/content/pages/changelog/monitor-tags.mdxindex 58c4fb5fa..1bfb60190 100644--- a/apps/web/src/content/changelog/monitor-tags.mdx+++ b/apps/web/src/content/pages/changelog/monitor-tags.mdx@@ -1,8 +1,10 @@----title: Monitor Tags-description: Easily categorize your monitors with tags.-image: /assets/changelog/monitor-tags.png-publishedAt: 2024-03-20+title: "Monitor Tags"+description: "Easily categorize your monitors with tags."+image: "/assets/changelog/monitor-tags.png"+publishedAt: "2024-03-20"+author: "openstatus"+category: "monitoring"---You can now create tags for your monitors to easily categorize them. Tags can bediff --git a/apps/web/src/content/changelog/monitor-threshold.mdx b/apps/web/src/content/pages/changelog/monitor-threshold.mdxsimilarity index 53%rename from apps/web/src/content/changelog/monitor-threshold.mdxrename to apps/web/src/content/pages/changelog/monitor-threshold.mdxindex 58e08a1b1..0288be263 100644--- a/apps/web/src/content/changelog/monitor-threshold.mdx+++ b/apps/web/src/content/pages/changelog/monitor-threshold.mdx@@ -1,8 +1,10 @@----title: Monitor Threshold-description: Set custom request timeouts and degradation timing.-image: /assets/changelog/monitor-threshold.png-publishedAt: 2024-07-01+title: "Monitor Threshold"+description: "Set custom request timeouts and degradation timing."+image: "/assets/changelog/monitor-threshold.png"+publishedAt: "2024-07-01"+author: "openstatus"+category: "monitoring"---Sometimes you need to get notified if your monitor is taking too long to respond or if it's degrading.diff --git a/apps/web/src/content/changelog/more-regions.mdx b/apps/web/src/content/pages/changelog/more-regions.mdxsimilarity index 86%rename from apps/web/src/content/changelog/more-regions.mdxrename to apps/web/src/content/pages/changelog/more-regions.mdxindex 9d39bb8dd..e93c929bf 100644--- a/apps/web/src/content/changelog/more-regions.mdx+++ b/apps/web/src/content/pages/changelog/more-regions.mdx@@ -1,8 +1,10 @@----title: More regions available 🌐-description: You can now monitor your endpoint from 35 regions.-image: /assets/changelog/more-regions.png-publishedAt: 2024-06-19+title: "More regions available 🌐"+description: "You can now monitor your endpoint from 35 regions."+image: "/assets/changelog/more-regions.png"+publishedAt: "2024-06-19"+author: "openstatus"+category: "monitoring"---We have added more regions to OpenStatus.diff --git a/apps/web/src/content/changelog/multi-cloud-fly-railway-koyeb.mdx b/apps/web/src/content/pages/changelog/multi-cloud-fly-railway-koyeb.mdxsimilarity index 74%rename from apps/web/src/content/changelog/multi-cloud-fly-railway-koyeb.mdxrename to apps/web/src/content/pages/changelog/multi-cloud-fly-railway-koyeb.mdxindex efed95c47..c6032b840 100644--- a/apps/web/src/content/changelog/multi-cloud-fly-railway-koyeb.mdx+++ b/apps/web/src/content/pages/changelog/multi-cloud-fly-railway-koyeb.mdx@@ -1,8 +1,10 @@----title: Multi-Cloud is here-description: Supporting Koyeb and Railway regions to extend Fly.io coverage-image: /assets/changelog/multi-cloud-fly-railway-koyeb.png-publishedAt: 2025-10-06+title: "Multi-Cloud is here"+description: "Supporting Koyeb and Railway regions to extend Fly.io coverage"+image: "/assets/changelog/multi-cloud-fly-railway-koyeb.png"+publishedAt: "2025-10-06"+author: "openstatus"+category: "monitoring"---We’re expanding our global coverage, supporting now multiple cloud providers!diff --git a/apps/web/src/content/changelog/multi-region-monitoring.mdx b/apps/web/src/content/pages/changelog/multi-region-monitoring.mdxsimilarity index 66%rename from apps/web/src/content/changelog/multi-region-monitoring.mdxrename to apps/web/src/content/pages/changelog/multi-region-monitoring.mdxindex 7a1f7194b..0c812c33e 100644--- a/apps/web/src/content/changelog/multi-region-monitoring.mdx+++ b/apps/web/src/content/pages/changelog/multi-region-monitoring.mdx@@ -1,8 +1,10 @@----title: Multi regions monitoring by default-description: Your monitors are now being called from around the world.-publishedAt: 2023-10-25-image: /assets/changelog/multi-region-monitoring.png+title: "Multi regions monitoring by default"+description: "Your monitors are now being called from around the world."+publishedAt: "2023-10-25"+image: "/assets/changelog/multi-region-monitoring.png"+author: "openstatus"+category: "monitoring"---We have migrated our backend to [fly.io](https://fly.io) and we have enableddiff --git a/apps/web/src/content/changelog/ntfy-sh-integration.mdx b/apps/web/src/content/pages/changelog/ntfy-sh-integration.mdxsimilarity index 54%rename from apps/web/src/content/changelog/ntfy-sh-integration.mdxrename to apps/web/src/content/pages/changelog/ntfy-sh-integration.mdxindex 5fb856970..af1717f5d 100644--- a/apps/web/src/content/changelog/ntfy-sh-integration.mdx+++ b/apps/web/src/content/pages/changelog/ntfy-sh-integration.mdx@@ -1,8 +1,10 @@----title: ntfy.sh Integration-description: Get notified via ntfy.sh if we detect an Incident.-image: /assets/changelog/ntfy.png-publishedAt: 2025-03-17+title: "ntfy.sh Integration"+description: "Get notified via ntfy.sh if we detect an Incident."+image: "/assets/changelog/ntfy.png"+publishedAt: "2025-03-17"+author: "openstatus"+category: "notifications"---You can now receive notifications via ntfy.sh when we detect an incident.diff --git a/apps/web/src/content/changelog/openstatus-cli.mdx b/apps/web/src/content/pages/changelog/openstatus-cli.mdxsimilarity index 83%rename from apps/web/src/content/changelog/openstatus-cli.mdxrename to apps/web/src/content/pages/changelog/openstatus-cli.mdxindex 639ff3250..5fb46caf9 100644--- a/apps/web/src/content/changelog/openstatus-cli.mdx+++ b/apps/web/src/content/pages/changelog/openstatus-cli.mdx@@ -1,8 +1,10 @@----title: OpenStatus CLI-description: Manage triggers for your monitors from your terminal.-image: /assets/changelog/CLI.png-publishedAt: 2024-11-07+title: "OpenStatus CLI"+description: "Manage triggers for your monitors from your terminal."+image: "/assets/changelog/CLI.png"+publishedAt: "2024-11-07"+author: "openstatus"+category: "cli"---Our CLI is now available 🎉diff --git a/apps/web/src/content/changelog/opentelemetry.mdx b/apps/web/src/content/pages/changelog/opentelemetry.mdxsimilarity index 68%rename from apps/web/src/content/changelog/opentelemetry.mdxrename to apps/web/src/content/pages/changelog/opentelemetry.mdxindex f998745cd..bc7dfc30f 100644--- a/apps/web/src/content/changelog/opentelemetry.mdx+++ b/apps/web/src/content/pages/changelog/opentelemetry.mdx@@ -1,8 +1,10 @@----title: OpenTelemetry support-description: Export your OpenStatus synthetics checks as OpenTelemetry metrics.-image: /assets/changelog/Otel.png-publishedAt: 2025-02-24+title: "OpenTelemetry support"+description: "Export your OpenStatus synthetics checks as OpenTelemetry metrics."+image: "/assets/changelog/Otel.png"+publishedAt: "2025-02-24"+author: "openstatus"+category: "monitoring"---We have added support for exporting your OpenStatus synthetic checks as OpenTelemetry metrics.diff --git a/apps/web/src/content/pages/changelog/pagerduty-integration.mdx b/apps/web/src/content/pages/changelog/pagerduty-integration.mdxnew file mode 100644index 000000000..163916c9b--- /dev/null+++ b/apps/web/src/content/pages/changelog/pagerduty-integration.mdx@@ -0,0 +1,10 @@+---+title: "PagerDuty Integration"+description: "Get notified via PagerDuty if we detect an incident."+image: "/assets/changelog/pagerduty-integration.png"+publishedAt: "2024-06-25"+author: "openstatus"+category: "notifications"+---++We've added a PagerDuty integration to the notification feature. This allows you to receive incident alerts through PagerDuty.\ No newline at end of filediff --git a/apps/web/src/content/changelog/password-protected-status-page.mdx b/apps/web/src/content/pages/changelog/password-protected-status-page.mdxsimilarity index 71%rename from apps/web/src/content/changelog/password-protected-status-page.mdxrename to apps/web/src/content/pages/changelog/password-protected-status-page.mdxindex 100a416e5..fc8c8ebde 100644--- a/apps/web/src/content/changelog/password-protected-status-page.mdx+++ b/apps/web/src/content/pages/changelog/password-protected-status-page.mdx@@ -1,8 +1,10 @@----title: Password-protected status page-description: Hide your page from the public.-image: /assets/changelog/password-protected-status-page.png-publishedAt: 2024-05-03+title: "Password-protected status page"+description: "Hide your page from the public."+image: "/assets/changelog/password-protected-status-page.png"+publishedAt: "2024-05-03"+author: "openstatus"+category: "statuspage"---You can now protect your status page with a password. This will hide the pagediff --git a/apps/web/src/content/pages/changelog/play-checker-improvements.mdx b/apps/web/src/content/pages/changelog/play-checker-improvements.mdxnew file mode 100644index 000000000..1722adbeb--- /dev/null+++ b/apps/web/src/content/pages/changelog/play-checker-improvements.mdx@@ -0,0 +1,12 @@+---+title: "Speed Checker"+description: "Improving the speed checker playground for a better experience."+image: "/assets/changelog/play-checker-improvements.png"+publishedAt: "2024-08-27"+author: "openstatus"+category: "monitoring"+---++We've refreshed the Playground for a better experience. Now, access real-time data without leaving the page.++Check out the [Speed Checker](/play/checker).\ No newline at end of filediff --git a/apps/web/src/content/changelog/private-location.mdx b/apps/web/src/content/pages/changelog/private-location.mdxsimilarity index 69%rename from apps/web/src/content/changelog/private-location.mdxrename to apps/web/src/content/pages/changelog/private-location.mdxindex 4c29084c3..8c2105436 100644--- a/apps/web/src/content/changelog/private-location.mdx+++ b/apps/web/src/content/pages/changelog/private-location.mdx@@ -1,8 +1,10 @@----title: Private Location is here (beta)-description: Monitor your services from your own infrastructure-image: /assets/changelog/private-location.png-publishedAt: 2025-10-28+title: "Private Location is here (beta)"+description: "Monitor your services from your own infrastructure"+image: "/assets/changelog/private-location.png"+publishedAt: "2025-10-28"+author: "openstatus"+category: "monitoring"---We’re excited to introduce Private Location, a beta feature that allows you to monitor your services from your own infrastructure!diff --git a/apps/web/src/content/changelog/public-monitors.mdx b/apps/web/src/content/pages/changelog/public-monitors.mdxsimilarity index 72%rename from apps/web/src/content/changelog/public-monitors.mdxrename to apps/web/src/content/pages/changelog/public-monitors.mdxindex 72711882b..791d30fba 100644--- a/apps/web/src/content/changelog/public-monitors.mdx+++ b/apps/web/src/content/pages/changelog/public-monitors.mdx@@ -1,8 +1,10 @@----title: Public Monitors-description: Make your monitors public and share more metrics with your users.-image: /assets/changelog/public-monitors.png-publishedAt: 2024-04-14+title: "Public Monitors"+description: "Make your monitors public and share more metrics with your users."+image: "/assets/changelog/public-monitors.png"+publishedAt: "2024-04-14"+author: "openstatus"+category: "statuspage"---You can now change the monitors visibility to public. This will allow you todiff --git a/apps/web/src/content/changelog/raycast-integration.mdx b/apps/web/src/content/pages/changelog/raycast-integration.mdxsimilarity index 61%rename from apps/web/src/content/changelog/raycast-integration.mdxrename to apps/web/src/content/pages/changelog/raycast-integration.mdxindex cbbaefe40..d1c26c713 100644--- a/apps/web/src/content/changelog/raycast-integration.mdx+++ b/apps/web/src/content/pages/changelog/raycast-integration.mdx@@ -1,8 +1,10 @@----title: Raycast Extension-description: Use Raycast to manage your monitors, status page and status updates.-image: /assets/changelog/raycast-integration.png-publishedAt: 2025-01-15+title: "Raycast Extension"+description: "Use Raycast to manage your monitors, status page and status updates."+image: "/assets/changelog/raycast-integration.png"+publishedAt: "2025-01-15"+author: "openstatus"+category: "integrations"---We have published our Raycast integration. You can now manage your monitors, status page and status updates directly from Raycast.diff --git a/apps/web/src/content/changelog/request-assertions.mdx b/apps/web/src/content/pages/changelog/request-assertions.mdxsimilarity index 53%rename from apps/web/src/content/changelog/request-assertions.mdxrename to apps/web/src/content/pages/changelog/request-assertions.mdxindex e5a45db07..6f8730a37 100644--- a/apps/web/src/content/changelog/request-assertions.mdx+++ b/apps/web/src/content/pages/changelog/request-assertions.mdx@@ -1,10 +1,10 @@----title: Request assertions-description:- Not all requests should return a 200 status code. You can now assert on the- status code, headers of your requests.-publishedAt: 2024-04-01-image: /assets/changelog/request-assertions.png+title: "Request assertions"+description: "Not all requests should return a 200 status code. You can now assert on the status code, headers of your requests."+publishedAt: "2024-04-01"+image: "/assets/changelog/request-assertions.png"+author: "openstatus"+category: "monitoring"---Not all requests should return a 200 status code to be successful. Sometimes youdiff --git a/apps/web/src/content/pages/changelog/response-time-charts.mdx b/apps/web/src/content/pages/changelog/response-time-charts.mdxnew file mode 100644index 000000000..e04fe0426--- /dev/null+++ b/apps/web/src/content/pages/changelog/response-time-charts.mdx@@ -0,0 +1,13 @@+---+title: "Response Time Charts"+description: "You have now access to new charts for better visualization."+publishedAt: "2023-10-08"+image: "/assets/changelog/response-time-charts.png"+author: "openstatus"+category: "monitoring"+---++You can now assess your monitor's response time using the new charts and get a+better overview of your monitor's performance.++Powered by [tremor.so](https://tremor.so).diff --git a/apps/web/src/content/changelog/screenshot-incident.mdx b/apps/web/src/content/pages/changelog/screenshot-incident.mdxsimilarity index 51%rename from apps/web/src/content/changelog/screenshot-incident.mdxrename to apps/web/src/content/pages/changelog/screenshot-incident.mdxindex 1a94867a5..5ddec6671 100644--- a/apps/web/src/content/changelog/screenshot-incident.mdx+++ b/apps/web/src/content/pages/changelog/screenshot-incident.mdx@@ -1,11 +1,10 @@----title: Website screenshots for incidents-description:- When creating an incident, we capture a website screenshot for added context.- We also take a screenshot upon resolving the incident to see the website- post-resolution.-image: /assets/changelog/screenshot-incident.png-publishedAt: 2024-04-05+title: "Website screenshots for incidents"+description: "When creating an incident, we capture a website screenshot for added context."+image: "/assets/changelog/screenshot-incident.png"+publishedAt: "2024-04-05"+author: "openstatus"+category: "incidents"---We want to provide you with as much context as possible when an incident occurs.diff --git a/apps/web/src/content/pages/changelog/slack-discord-notification.mdx b/apps/web/src/content/pages/changelog/slack-discord-notification.mdxnew file mode 100644index 000000000..2c10916f2--- /dev/null+++ b/apps/web/src/content/pages/changelog/slack-discord-notification.mdx@@ -0,0 +1,15 @@+---+title: "Slack and Discord notifications"+description: "You can now send notifications to your favorite channels."+publishedAt: "2023-11-01"+image: "/assets/changelog/slack-discord-notification.png"+author: "openstatus"+category: "notifications"+---++We have just released a new feature that allows you to receive notifications in+Slack or Discord when your monitor is down.++Thanks [Kelvin](https://github.com/AmoabaKelvin) for the help 🔥++Expect more integration to come soon!diff --git a/apps/web/src/content/changelog/sms-notification.mdx b/apps/web/src/content/pages/changelog/sms-notification.mdxsimilarity index 66%rename from apps/web/src/content/changelog/sms-notification.mdxrename to apps/web/src/content/pages/changelog/sms-notification.mdxindex 3effa6109..78fc63e75 100644--- a/apps/web/src/content/changelog/sms-notification.mdx+++ b/apps/web/src/content/pages/changelog/sms-notification.mdx@@ -1,9 +1,11 @@----title: Get alerted on your cell phone-description:+title: "Get alerted on your cell phone"+description: ""Receive alerts on your cell phone via SMS when your monitor is down.-publishedAt: 2023-11-13-image: /assets/changelog/sms-notification.png+publishedAt: "2023-11-13"+image: "/assets/changelog/sms-notification.png"+author: "openstatus"+category: "notifications"---You can now receive alerts on your cell phone via SMS when your monitor is done.diff --git a/apps/web/src/content/changelog/status-page-badge-v2.mdx b/apps/web/src/content/pages/changelog/status-page-badge-v2.mdxsimilarity index 71%rename from apps/web/src/content/changelog/status-page-badge-v2.mdxrename to apps/web/src/content/pages/changelog/status-page-badge-v2.mdxindex e3c4bb3e5..bd7df53e1 100644--- a/apps/web/src/content/changelog/status-page-badge-v2.mdx+++ b/apps/web/src/content/pages/changelog/status-page-badge-v2.mdx@@ -1,8 +1,10 @@----title: Status Page Badge (v2)-description: Easily integrate the status of your service everywhere.-image: /assets/changelog/status-page-badge-v2.png-publishedAt: 2025-08-16+title: "Status Page Badge (v2)"+description: "Easily integrate the status of your service everywhere."+image: "/assets/changelog/status-page-badge-v2.png"+publishedAt: "2025-08-16"+category: "statuspage"+author: "openstatus"---Until now, the badge was a PNG image. Now we provide an SVG instead to make it crystal clear. We are reducing the default style to a minimum.diff --git a/apps/web/src/content/changelog/status-page-badge.mdx b/apps/web/src/content/pages/changelog/status-page-badge.mdxsimilarity index 62%rename from apps/web/src/content/changelog/status-page-badge.mdxrename to apps/web/src/content/pages/changelog/status-page-badge.mdxindex 3f4cf9b8e..8e9fd09cc 100644--- a/apps/web/src/content/changelog/status-page-badge.mdx+++ b/apps/web/src/content/pages/changelog/status-page-badge.mdx@@ -1,8 +1,10 @@----title: Status Page Badge-description: Easily integrate the status of your service everywhere.-image: /assets/changelog/status-page-badge.jpeg-publishedAt: 2024-05-02+title: "Status Page Badge"+description: "Easily integrate the status of your service everywhere."+image: "/assets/changelog/status-page-badge.jpeg"+publishedAt: "2024-05-02"+category: "statuspage"+author: "openstatus"---We have added a new feature to embed the status of your service everywhere.diff --git a/apps/web/src/content/pages/changelog/status-page-colors-and-more.mdx b/apps/web/src/content/pages/changelog/status-page-colors-and-more.mdxnew file mode 100644index 000000000..129c53ff3--- /dev/null+++ b/apps/web/src/content/pages/changelog/status-page-colors-and-more.mdx@@ -0,0 +1,14 @@+---+title: "Status Page rework"+description: "New status specific colors, improved navigation and more."+publishedAt: "2024-07-21"+image: "/assets/changelog/status-page-colors-and-more.png"+category: "statuspage"+author: "openstatus"+---++We have reworked our status page!++- **less flashy colors** for _operational_, _degraded_, _downtime_ and _maintenance_+- **new sticky navigation** bar, merging _maintenances_ and _incidents_ into an _events_ page (your old links will still work)+- redesign of **status reports**\ No newline at end of filediff --git a/apps/web/src/content/pages/changelog/status-page-feed.mdx b/apps/web/src/content/pages/changelog/status-page-feed.mdxnew file mode 100644index 000000000..f98f67151--- /dev/null+++ b/apps/web/src/content/pages/changelog/status-page-feed.mdx@@ -0,0 +1,12 @@+---+title: "Status Page Feeds"+description: "Subscribe to status page updates via RSS and Atom feed."+image: "/assets/changelog/status-page-feed.png"+publishedAt: "2025-01-04"+category: "statuspage"+author: "openstatus"+---++You can now subscribe via RSS and Atom feed on any status page!++S/o to [@washingtonserip](https://x.com/washingtonserip) for this contribution.\ No newline at end of filediff --git a/apps/web/src/content/changelog/status-page-monitor-order.mdx b/apps/web/src/content/pages/changelog/status-page-monitor-order.mdxsimilarity index 64%rename from apps/web/src/content/changelog/status-page-monitor-order.mdxrename to apps/web/src/content/pages/changelog/status-page-monitor-order.mdxindex 3670e71da..4b90e7d05 100644--- a/apps/web/src/content/changelog/status-page-monitor-order.mdx+++ b/apps/web/src/content/pages/changelog/status-page-monitor-order.mdx@@ -1,8 +1,10 @@----title: Status page monitor order-description: Sort your monitors by importance on your status page.-image: /assets/changelog/status-page-monitor-order.png-publishedAt: 2024-05-20+title: "Status page monitor order"+description: "Sort your monitors by importance on your status page."+image: "/assets/changelog/status-page-monitor-order.png"+publishedAt: "2024-05-20"+category: "statuspage"+author: "openstatus"---You can now sort your monitors by importance on your status page. This allowsdiff --git a/apps/web/src/content/pages/changelog/status-page-monitor-values-visibility.mdx b/apps/web/src/content/pages/changelog/status-page-monitor-values-visibility.mdxnew file mode 100644index 000000000..8d0f7bd4e--- /dev/null+++ b/apps/web/src/content/pages/changelog/status-page-monitor-values-visibility.mdx@@ -0,0 +1,13 @@+---+title: "Monitor values visibility"+description: "Hide the uptime and number of request on your status pages."+publishedAt: "2024-10-20"+image: "/assets/changelog/status-page-monitor-values-visibility.png"+category: "statuspage"+author: "openstatus"+---+++You can now hide your request values.++We have added a checkbox within your Status Page settings to hide/show the number of total and failed requests incl. the average percentage for each monitor connected to the page.\ No newline at end of filediff --git a/apps/web/src/content/changelog/status-page-redesign-beta.mdx b/apps/web/src/content/pages/changelog/status-page-redesign-beta.mdxsimilarity index 69%rename from apps/web/src/content/changelog/status-page-redesign-beta.mdxrename to apps/web/src/content/pages/changelog/status-page-redesign-beta.mdxindex 5cd4557d5..280ca1c92 100644--- a/apps/web/src/content/changelog/status-page-redesign-beta.mdx+++ b/apps/web/src/content/pages/changelog/status-page-redesign-beta.mdx@@ -1,8 +1,10 @@----title: Status page redesign (beta)-description: A whole new experience with more control-image: /assets/changelog/status-page-redesign-beta.png-publishedAt: 2025-10-03+title: "Status page redesign (beta)"+description: "A whole new experience with more control"+image: "/assets/changelog/status-page-redesign-beta.png"+publishedAt: "2025-10-03"+category: "statuspage"+author: "openstatus"---You can now toggle the new status page version. We provide more flexibility and options to include:diff --git a/apps/web/src/content/changelog/status-page-subscribers.mdx b/apps/web/src/content/pages/changelog/status-page-subscribers.mdxsimilarity index 58%rename from apps/web/src/content/changelog/status-page-subscribers.mdxrename to apps/web/src/content/pages/changelog/status-page-subscribers.mdxindex 85c8a21d4..d53306c93 100644--- a/apps/web/src/content/changelog/status-page-subscribers.mdx+++ b/apps/web/src/content/pages/changelog/status-page-subscribers.mdx@@ -1,8 +1,10 @@----title: Status Page Subscribers-description: You can now get the list of your status page subscribers-publishedAt: 2024-02-23-image: /assets/changelog/status-page-subscribers.png+title: "Status Page Subscribers"+description: "You can now get the list of your status page subscribers"+publishedAt: "2024-02-23"+image: "/assets/changelog/status-page-subscribers.png"+category: "statuspage"+author: "openstatus"---When visiting your status page section, you will find a list displaying alldiff --git a/apps/web/src/content/pages/changelog/status-report-location-change.mdx b/apps/web/src/content/pages/changelog/status-report-location-change.mdxnew file mode 100644index 000000000..d4c18b24c--- /dev/null+++ b/apps/web/src/content/pages/changelog/status-report-location-change.mdx@@ -0,0 +1,12 @@+---+title: "Status Report location change"+description: "Each report is now saved within a Status Page."+publishedAt: "2024-07-14"+image: "/assets/changelog/status-report-location-change.png"+category: "statuspage"+author: "openstatus"+---++The location of your reports has changed. The can be found within the connected status page. No need to connect manually to a status page.++If you encounter any issues. Please [contact us](mailto:[email protected]).\ No newline at end of filediff --git a/apps/web/src/content/pages/changelog/status-update-subscriber.mdx b/apps/web/src/content/pages/changelog/status-update-subscriber.mdxnew file mode 100644index 000000000..aeb5c48fa--- /dev/null+++ b/apps/web/src/content/pages/changelog/status-update-subscriber.mdx@@ -0,0 +1,13 @@+---+title: "Status Update Subscriber"+description: "You can now subscribe to pro plan status updates via email."+publishedAt: "2023-12-11"+image: "/assets/changelog/status-update-subscriber.png"+category: "statuspage"+author: "openstatus"+---++You can now subscribe to pro plan status updates via email.++As a subscriber, we require you to verify your email address to avoid spam. You+can do this by clicking the link in the email we send you after you subscribe.diff --git a/apps/web/src/content/changelog/status-widget.mdx b/apps/web/src/content/pages/changelog/status-widget.mdxsimilarity index 59%rename from apps/web/src/content/changelog/status-widget.mdxrename to apps/web/src/content/pages/changelog/status-widget.mdxindex 9ebd2745f..34053bebd 100644--- a/apps/web/src/content/changelog/status-widget.mdx+++ b/apps/web/src/content/pages/changelog/status-widget.mdx@@ -1,8 +1,10 @@----title: Status Widget-description: You can now access the status of your status page via a public api.-publishedAt: 2023-10-05-image: /assets/changelog/status-widget.png+title: "Status Widget"+description: "You can now access the status of your status page via a public api."+publishedAt: "2023-10-05"+image: "/assets/changelog/status-widget.png"+category: "statuspage"+author: "openstatus"---You can now access the status of your status page via a public api endpoint.diff --git a/apps/web/src/content/changelog/tcp-monitoring.mdx b/apps/web/src/content/pages/changelog/tcp-monitoring.mdxsimilarity index 61%rename from apps/web/src/content/changelog/tcp-monitoring.mdxrename to apps/web/src/content/pages/changelog/tcp-monitoring.mdxindex 014dc1b7f..915eb4f4c 100644--- a/apps/web/src/content/changelog/tcp-monitoring.mdx+++ b/apps/web/src/content/pages/changelog/tcp-monitoring.mdx@@ -1,8 +1,10 @@----title: TCP Monitoring-description: Monitor your TCP endpoints with OpenStatus.-image: /assets/changelog/tcp-request.png-publishedAt: 2024-11-05+title: "TCP Monitoring"+description: "Monitor your TCP endpoints with OpenStatus."+image: "/assets/changelog/tcp-request.png"+publishedAt: "2024-11-05"+category: "monitoring"+author: "openstatus"---We're excited to announce that TCP monitoring is now available in OpenStatus! This new addition expands our monitoring capabilities, allowing you to keep track of all your TCP endpoints.diff --git a/apps/web/src/content/pages/changelog/team-invites.mdx b/apps/web/src/content/pages/changelog/team-invites.mdxnew file mode 100644index 000000000..026c516bc--- /dev/null+++ b/apps/web/src/content/pages/changelog/team-invites.mdx@@ -0,0 +1,11 @@+---+title: "Team invites"+description: "Invite your team members to your workspace"+image: "/assets/changelog/team-invites.png"+publishedAt: "2023-12-08"+category: "company"+author: "openstatus"+---++As a Pro plan user, you can now invite you favorite team members to your+workspace and collaborate on your project together.diff --git a/apps/web/src/content/changelog/terraform-provider.mdx b/apps/web/src/content/pages/changelog/terraform-provider.mdxsimilarity index 64%rename from apps/web/src/content/changelog/terraform-provider.mdxrename to apps/web/src/content/pages/changelog/terraform-provider.mdxindex 99ae05c44..2b16124e6 100644--- a/apps/web/src/content/changelog/terraform-provider.mdx+++ b/apps/web/src/content/pages/changelog/terraform-provider.mdx@@ -1,8 +1,10 @@----title: Terraform Provider-description: Manage your monitors with the Terraform provider-image: /assets/changelog/terraform.png-publishedAt: 2024-02-07+title: "Terraform Provider"+description: "Manage your monitors with the Terraform provider"+image: "/assets/changelog/terraform.png"+publishedAt: "2024-02-07"+category: "monitoring"+author: "openstatus"---We are excited to announce the release of the Terraform provider for OpenStatus.diff --git a/apps/web/src/content/changelog/webhook-integration.mdx b/apps/web/src/content/pages/changelog/webhook-integration.mdxsimilarity index 54%rename from apps/web/src/content/changelog/webhook-integration.mdxrename to apps/web/src/content/pages/changelog/webhook-integration.mdxindex fbc706620..10ea3e4bb 100644--- a/apps/web/src/content/changelog/webhook-integration.mdx+++ b/apps/web/src/content/pages/changelog/webhook-integration.mdx@@ -1,8 +1,10 @@----title: Webhook Integration-description: Get notified via webhook if we detect an Incident..-image: /assets/changelog/webhook.png-publishedAt: 2025-04-08+title: "Webhook Integration"+description: "Get notified via webhook if we detect an Incident.."+image: "/assets/changelog/webhook.png"+publishedAt: "2025-04-08"+category: "integrations"+author: "openstatus"---When your monitor's status changes, you can receive notifications through a webhook.diff --git a/apps/web/src/content/pages/compare/betterstack.mdx b/apps/web/src/content/pages/compare/betterstack.mdxnew file mode 100644index 000000000..ed0aa3275--- /dev/null+++ b/apps/web/src/content/pages/compare/betterstack.mdx@@ -0,0 +1,25 @@+---+title: "BetterStack Alternative"+publishedAt: "2025-11-10"+author: "Thibault Le Ouay Ducasse"+description: "Open-source uptime monitoring. Learn how OpenStatus compares to BetterStack."+category: "Company"+---++<Table+ data={{+ headers: ["Feature", "openstatus", "BetterStack"],+ rows: [+ ["Open-source", "+", "-"],+ ["Bootstrap", "+", "-"],+ ["Multi-region", "28", "4"],+ ["Scheduling strategy", "parallel", "round-robin"],+ ["Incident escalation", "-", "+"],+ ["OpenTelemetry exporter", "+", "-"],+ ["GitHub Action", "+", "-"],+ ["CLI to trigger checks", "+", "-"],+ ["Private status page", "included in team plan", "additional $42/mo."],+ ["Status page subscribers", "Unlimited", "additional $42/mo. per 1000"],+ ],+ }}+/>diff --git a/apps/web/src/content/pages/compare/checkly.mdx b/apps/web/src/content/pages/compare/checkly.mdxnew file mode 100644index 000000000..f9f5ed86e--- /dev/null+++ b/apps/web/src/content/pages/compare/checkly.mdx@@ -0,0 +1,19 @@+---+title: "Checkly Alternative"+publishedAt: "2025-11-10"+author: "Thibault Le Ouay Ducasse"+description: "Open-source uptime monitoring. Learn how OpenStatus compares to Checkly."+category: "Company"+---++<Table+ data={{+ headers: ["Feature", "OpenStatus", "Checkly"],+ rows: [+ ["Multi-region", "28", "19"],+ ["Status Page", "+", "?"],+ ["Open Source", "+", "-"],+ ["Bootstrap", "+", "-"],+ ],+ }}+/>diff --git a/apps/web/src/content/pages/compare/uptime-kuma.mdx b/apps/web/src/content/pages/compare/uptime-kuma.mdxnew file mode 100644index 000000000..d6515e506--- /dev/null+++ b/apps/web/src/content/pages/compare/uptime-kuma.mdx@@ -0,0 +1,24 @@+---+title: "Uptime Kuma Alternative"+publishedAt: "2025-11-10"+author: "Thibault Le Ouay Ducasse"+description: "Open-source uptime monitoring. Learn how OpenStatus compares to Uptime Kuma."+category: "Company"+---++<Table+ data={{+ headers: ["Feature", "OpenStatus", "Uptime Kuma"],+ rows: [+ ["Open Source", "+", "+"],+ ["Self-hosted or cloud-based", "+", "Self-hosted only"],+ ["Bootstrap", "Talk directly to the founder", "-"],+ ["Multi-cloud", "3 cloud providers", "Single server"],+ ["Global (28 regions)", "28", "1"],+ ["Monitor your endpoints globally", "+", "Single location"],+ ["OTel Export", "Export synthetic checks to OTel", "-"],+ ["GitHub Action", "Trigger via CI/CD", "-"],+ ["Team members", "Unlimited", "Unlimited"],+ ],+ }}+/>diff --git a/apps/web/src/content/pages/compare/uptime-robot.mdx b/apps/web/src/content/pages/compare/uptime-robot.mdxnew file mode 100644index 000000000..6de925df5--- /dev/null+++ b/apps/web/src/content/pages/compare/uptime-robot.mdx@@ -0,0 +1,22 @@+---+title: "UptimeRobot Alternative"+publishedAt: "2025-11-10"+author: "Maximilian Kaske"+description: "Open-source uptime monitoring. Learn how openstatus compares to UptimeRobot."+category: "Company"+---++<Table+ data={{+ headers: ["Feature", "OpenStatus", "UptimeRobot"],+ rows: [+ ["Open Source", "+", "-"],+ ["Bootstrap", "+", "-"],+ ["Multi-cloud", "3", "?"],+ ["Multi-region", "28", "-"],+ ["OTel Export", "Export synthetic checks to OTel", "-"],+ ["GitHub Action", "Trigger via CI/CD", "-"],+ ["Team members", "Unlimited", "additional $19/seat"],+ ],+ }}+/>diff --git a/apps/web/src/content/pages/home.mdx b/apps/web/src/content/pages/home.mdxnew file mode 100644index 000000000..137d4e1ec--- /dev/null+++ b/apps/web/src/content/pages/home.mdx@@ -0,0 +1,90 @@+---+title: "The open-source status page with uptime monitoring"+publishedAt: "2025-11-10"+author: "openstatus"+description: "Openstatus helps you communicate openly during incidents. Share what's happening, keep users updated, and let your status page automatically populate real-time data from our uptime monitoring solution."+category: "Product"+---++<div className="space-x-2">+ <ButtonLink href="https://app.openstatus.dev" children="Dashboard" />+ <ButtonLink+ variant="ghost"+ href="https://openstatus.dev/github"+ children="GitHub 8k+"+ />+</div>++<Image src="/assets/landing/dashboard.png" alt="dashboard monitor overview" />++## Used by awesome folks++<Grid cols={4}>+ <a href="https://cal.com">Cal.com</a>+ <a href="https://documenso.com">Documenso</a>+ <a href="https://tigrisdata.com">TigrisData</a>+ <a href="https://midday.ai">Midday</a>+ <a href="https://openpanel.dev">OpenPanel</a>+ <a href="https://getprobo.com">Probo</a>+ <a href="https://hanko.io">Hanko</a>+ <a href="https://superwall.com">Superwall</a>+</Grid>++## Status Pages++A status page helps you communicate incidents more effectively. It adds **transparency**, so users aren't left guessing. It enables **proactive communication**, giving updates without users needing to ask. And it shows **reliability**, not just in uptime but in how you handle downtime and keep people informed.++Make it yours with [themes from our Theme Store](https://themes.openstatus.dev), custom domains, and branding. Share publicly or password protect for internal teams. Keep everyone in the loop with status reports, maintenance windows, and subscriptions.++- **Customization** with our Theme Store+- Public or **password protected** pages+- **Custom domains**+- **Status reports** and **maintenance windows**+- **Subscription channels**: email, RSS/Atom, SSH++Read more [about status pages](/status-page).++## Monitoring++Uptime monitoring helps you detect when your website or service goes down. Instead of learning about issues from users, you get **notified immediately** and can respond faster. Monitor your APIs to ensure they return the expected values within a **defined threshold**, helping you **catch** slow responses or failures before they affect users.++Get a real picture with **28 regions** across multiple clouds. Validate your APIs with **assertions** and **thresholds**. Define monitors as **YAML configuration** with our [CLI](https://docs.openstatus.dev/tutorial/get-started-with-openstatus-cli/). Deploy our **8.5MB Docker image** behind firewalls or export to [OpenTelemetry](https://docs.openstatus.dev/guides/how-to-export-metrics-to-otlp-endpoint/).++- **28 regions** across **multi-cloud providers** (Fly.io, Koyeb, Railway)+- **API Monitoring**: assertions, thresholds, status codes, headers, body validation+- **Monitoring as Code**: YAML configuration, GitHub Actions, CLI+- **Private Locations**: 8.5MB Docker image for internal monitoring+- **Integrations**: OpenTelemetry export, notification channels (email, Slack, Discord, etc.)+- Check all regions in our [global speed checker](/play/checker)++Read more about [uptime monitoring](/uptime-monitoring), [API monitoring](/api-monitoring), [monitoring as code](/monitoring-as-code), and [private locations](/private-locations).++---++Check your website's latency++<ButtonLink href="/play/checker">Global Speed Checker</ButtonLink>++---++<Grid>+<div>++**Status Page**++<Image src="/assets/landing/statuspage.png" alt="statuspage home" />++[Visit our Theme Explorer](https://themes.openstatus.dev)++</div>+<div>++**Dashboard**++<Image src="/assets/landing/dashboard-logs.png" alt="dashboard monitor response logs" />++[Go to Dashboard](https://app.openstatus.dev)++</div>++</Grid>diff --git a/apps/web/src/content/pages/product/api-monitoring.mdx b/apps/web/src/content/pages/product/api-monitoring.mdxnew file mode 100644index 000000000..fda83ad13--- /dev/null+++ b/apps/web/src/content/pages/product/api-monitoring.mdx@@ -0,0 +1,86 @@+---+title: "API Monitoring"+publishedAt: "2025-11-10"+author: "openstatus"+description: "Openstatus allows your to monitor your API from multiple regions around the world. "+category: "Product"+---++## Why monitor your API from an external providers?++Internally you might already have a Grafana, or Signoz deployed. They are working great to monitor your internal metrics, but they are not able to monitor from an external point of view.++With openstatus you can monitor your API from multiple regions around the world, and be sure that your customers are able to reach your API.++<Grid>+<div>++**Monitoring Dashboard**++<Image src="/assets/landing/dashboard.png" alt="dashboard monitor charts" />++</div>+<div>++**Response Logs**++<Image src="/assets/landing/dashboard-logs.png" alt="dashboard monitor logs" />++</div>+</Grid>++## Why choose openstatus for API monitoring?++### Assertions++Validating your response can be important. You can do **status code**, **header** or **body text** assertions. Read more [in the docs](https://docs.openstatus.dev/reference/http-monitor/#assertions).++### Thresholds++You can set a **degraded at** and **timeout** threshold whenever required. We will send you a notification whenever the responses exceed the thresholds.++### Open Telemetry++When needed, you can export to your **OTLP endpoint** the metrics for every request we do. Access the data and set yourself an **alert channel** in Grafana, Honeycomb etc.. Read more [in our guide](https://docs.openstatus.dev/guides/how-to-export-metrics-to-otlp-endpoint/).++### Private locations++You can **deploy our probes** on your own VPC, [Cloudflare Containers](https://docs.openstatus.dev/guides/how-to-deploy-probes-cloudflare-containers/) and more. It is **8.5MB small** and fits even on a [Raspberry Pi 3](/blog) with ease. Read more [in the docs](https://docs.openstatus.dev/tutorial/how-to-create-private-location/).++### CLI++You can manage or trigger your monitors via CLI. We provide a simple [GitHub Action](https://github.com/marketplace/actions/openstatus-synthetics-ci) to run it in your **CI/CD**.++```++------------------------------------------------------------------------------------------++| dwightschrute@computer ~ > openstatus |+| |+| NAME: |+| OpenStatus - This is OpenStatus Command Line Interface |+| |+| USAGE: |+| OpenStatus [global options] [command [command options]] [arguments...] |+| |+| VERSION: |+| v0.0.7 |+| |+| COMMANDS: |+| monitors Manage your monitors |+| run, r Run your synthetics tests defined in your configuration file |+| whoami, w Get your current workspace Information |+| help, h Shows a list of commands or help for one command |+| |+| GLOBAL OPTIONS: |+| --help, -h show help |+| --version, -v print the version |+| |++------------------------------------------------------------------------------------------++```++---++Check your website's latency++<ButtonLink href="/play/checker">Global Speed Checker</ButtonLink>++---diff --git a/apps/web/src/content/pages/product/monitoring-as-code.mdx b/apps/web/src/content/pages/product/monitoring-as-code.mdxnew file mode 100644index 000000000..5a014ae20--- /dev/null+++ b/apps/web/src/content/pages/product/monitoring-as-code.mdx@@ -0,0 +1,64 @@+---+title: "Monitoring as Code"+publishedAt: "2025-11-10"+author: "Maximilian Kaske"+description: "Openstatus gives you the possibility to store your monitoring as code."+category: "Product"+---++## What are the benefits of monitoring as code?++When you set your monitoring from an external providers. You can set and forget it easily, with monitoring as code your monitoring lives in your git repository. All your team knows about it.++**Version controlling** the changes helps you keep track changes over time, review the monitors or roll back to previous configs.++## Why choose openstatus for uptime monitoring as code?++### YAML + CLI++We use `YAML` to define your monitoring configuration. `YAML` is a human friendly data serialization standard that can be used in conjunction with all programming languages and is often used to write configuration files.++```yaml+# yaml-language-server: $schema=https://www.openstatus.dev/schema.json+uptime-monitor:+ name: "Graphql"+ description: "GitHub GraphQL API"+ frequency: "10m"+ active: true+ regions:+ - iad+ - ams+ - syd+ - jnb+ - gru+ retry: 3+ kind: http+ request:+ url: https://api.github.com/graphql+ method: POST+ headers:+ User-Agent: OpenStatus+ Authorization: Bearer YOUR_TOKEN_HERE+ body: |+ {+ "query": "query { viewer { login }}"+ }+```++Once set, apply your changes via [CLI](https://docs.openstatus.dev/tutorial/get-started-with-openstatus-cli/):++```bash+openstatus monitors apply+```++Check our [GitHub repository](https://github.com/openstatusHQ/cli-template) to see the `YAML` templates of how to monitor **MCP**, **GraphQL**,... endpoints.++### Terraform Provider++You can define monitors as **Terraform resources**, integrate with your existing IaC setup, and let Terraform handle the state management.++Check out the [Terraform Provider](https://registry.terraform.io/providers/openstatusHQ/openstatus/latest) on the Terraform Registry.++### Team Collaboration++We are not limiting our paid plans to any number of members. Let everyone in your team update your monitors and check the responses in the dashboard. Read more [about api monitoring](/api-monitoring).diff --git a/apps/web/src/content/pages/product/private-locations.mdx b/apps/web/src/content/pages/product/private-locations.mdxnew file mode 100644index 000000000..e337b8500--- /dev/null+++ b/apps/web/src/content/pages/product/private-locations.mdx@@ -0,0 +1,40 @@+---+title: "Private Locations"+publishedAt: "2025-11-10"+author: "Thibault Le Ouay Ducasse"+description: "Openstatus allows your to monitor your service from your own network."+category: "Product"+---++Sometimes the services you want to monitor are not accessible from the outside, you want to be able to monitor from your own network.++## Why private locations are important?++Private locations let you monitor internal or restricted services that aren’t reachable from the public internet. They run checks from inside your own network or infrastructure, giving you visibility into systems behind firewalls, or VPCs.++## Why choose openstatus for private locations?++### Deploy everywhere++Simply **deploy our probes** to your favorite **cloud provider**, your own **server** or on your own **virtual private cloud** (VPC).++The docker image is only **8.5MB** small and should easily fit on your infrastructure whether ARM64 or AMD64. We don't provide browser checks and can keep it this small.++- [Cloudflare Containers](https://docs.openstatus.dev/guides/how-to-deploy-probes-cloudflare-containers/)+- [Raspberry Pi](/blog/deploy-private-locations-raspberry-pi)++### Docker Container++```bash+docker pull ghcr.io/openstatushq/private-location:latest+```++Run the docker container. It will start **listening to the changes** of your monitors every few minutes and run the **scheduler** for each frequency defined.++```bash+docker run -d \+ --name openstatus-private-location \+ --restart=always \+ -e OPENSTATUS_KEY=$OPENSTATUS_KEY \+ ghcr.io/openstatushq/private-location:latest+```diff --git a/apps/web/src/content/pages/product/status-page.mdx b/apps/web/src/content/pages/product/status-page.mdxnew file mode 100644index 000000000..00f57086b--- /dev/null+++ b/apps/web/src/content/pages/product/status-page.mdx@@ -0,0 +1,69 @@+---+title: "Status Page"+publishedAt: "2025-11-10"+author: "Maximilian Kaske"+description: "Turn transparency into trust with a dedicated status page. Keep users informed during downtime, so you can focus on the fix."+category: "Product"+---++## Why do you need a status page?++A status page is a dedicated webpage that provides real-time information about the operational status of your services. It serves as a communication tool to inform your users about any ongoing incidents, maintenance activities, or service disruptions.++<Grid>+<div>++**Uptime Status Page**++<Image src="/assets/landing/statuspage.png" alt="status page overview" />++</div>+<div>++**Events Page**++<Image src="/assets/landing/statuspage-events.png" alt="status page events list" />++</div>+</Grid>++## Why choose openstatus for your status pages?++We provide you with a good **mix of customization and opinionated options**.++### Monitors (or Components)++You can attach specific monitors to a status page. You can either populate the data from the **aggregated uptime** data **or manually** manage them. Read more [about uptime monitoring](/uptime-monitoring).++You can **group monitors** by their services, locations,... and they will be collabsible.++### Customization++Match your brand **appearance** by contributing your own theme to the community. We have build a **[Theme Store](https://themes.openstatus.dev)** that helps you create and use custom themes on your status page. Contribute your own theme. If you a private custom theme let us know via [email](mailto:[email protected]?subject=Private%20Theme).++You can **define the values** you want to share with your users. If can decide between duration values/uptime ping values or purely based on manual status report updates.++You can create **custom domains** to keep the domain your users are used to.++### Links++Add a **Get in touch** in touch button and add a specific **website** link or a **`mailto:`** address.++Include a **homepage** link to redirect the user to your page on clicking on the left-hand nav icon.++### Subscriptions++Allow your users **subscribe** to your status page, to automatically receive **updates** whenever you add a status report or maintenance to your status page.++We support following communication channels:++- **Emails**+- **RSS/Atom feeds**++[Contact us](mailto:[email protected]) if you are looking for specific a channel.++### Visibility++You can **password protect** your status page. By default, a status page is for the broad public, but if you want to share it internally or with clients, a password helps you from unwanted visitors.++The RSS feed will still work. Append your `?pw=` to the URL **search params** to share private pages.diff --git a/apps/web/src/content/pages/product/uptime-monitoring.mdx b/apps/web/src/content/pages/product/uptime-monitoring.mdxnew file mode 100644index 000000000..44b260d71--- /dev/null+++ b/apps/web/src/content/pages/product/uptime-monitoring.mdx@@ -0,0 +1,123 @@+---+title: "Uptime Monitoring"+publishedAt: "2025-11-10"+author: "Thibault Le Ouay Ducasse"+description: "Openstatus provides a global multi-cloud uptime monitoring solution."+category: "Product"+---++```++----------------++| Service to be |+| Monitored |++----------------++ ▲+ |+ | (Network Latency/Failures)+ |++-----+-------+ +-----+-------+ +-----+-------++| Monitoring | | Monitoring | | Monitoring |+| Node (USA) | | Node (EU) | | Node (Asia) |++-----+-------+ +-----+-------+ +-----+-------++ | | |+ |---------------|-----------------|+ ▼ ▼ ▼++------------------------------------------------++| openstatus |+| |+| - Sends automated requests (e.g., pings or |+| HTTP checks) from all nodes at set intervals |+| - Records response time and success/failure |+| - Compares results from different nodes |+| - If a failure or a slow response is detected, |+| it triggers an alert. |++------------------------------------------------++ |+ | (Alerts: Email, SMS, Slack, etc.) 🔔+ |++-----+-----++| Your Team |++-----------++```+++## Why uptime monitoring is important?++Uptime monitoring is your first line of defense to ensure your service is available for your customers. By monitoring your service from multiple regions around the world, you can be sure that your customers are able to reach your service.+++++<Grid>+<div>++**Uptime Dashboard**++<Image src="/assets/landing/dashboard.png" alt="dashboard monitor charts" />++</div>+<div>++**Response Logs**++<Image src="/assets/landing/dashboard-logs.png" alt="dashboard monitor logs" />++</div>+</Grid>++## Why choose openstatus for uptime monitoring?++### Global Monitoring++You can monitor your services from multiple regions around the world. We currently have our probes deployed in **28 regions**.++Check all regions in the [global speed checker](/play/checker).++### Multi Cloud++You should avoid monitoring your services from the same cloud providers you use for those services. That’s why our probes are deployed across three different cloud providers:++- **Fly.io**+- **Koyeb**+- **Railway**++### Notification channels++Set different notification channels and **get notified** whenever a not satisfying your assertions or are exceeding the thresholds.++We support:++- Socials: Slack, Discord+- Direct: Email, SMS+- Incident Management: OpsGenie, PagerDuty+- Custom: Webhook, Ntfy++### Status Pages++Automatically update your status page based on your uptime monitoring results. Push reports and communicate with your users during incidents. You can choose to **share response details** on your status page. Read more [about status pages](/status-page).++### CLI++You can manage or trigger your monitors via CLI. We provide a simple [GitHub Action](https://github.com/marketplace/actions/openstatus-synthetics-ci) to run it in your **CI/CD**.++### Monitoring as code++The best way to **version** your monitor changes is via the openstatus CLI and its **`YAML` config**. Additionally, we provide you a [Terraform](https://registry.terraform.io/providers/openstatusHQ/openstatus/latest). Read more [about monitoring as code](/monitoring-as-code)++<Grid>+<div>++**Status Page Monitors**++<Image src="/assets/landing/statuspage-monitor.png" alt="status page monitor details" />++</div>+</Grid>++---++Check your website's latency++<ButtonLink href="/play/checker">Global Speed Checker</ButtonLink>++---diff --git a/apps/web/src/content/pages/tools/checker-slug.mdx b/apps/web/src/content/pages/tools/checker-slug.mdxnew file mode 100644index 000000000..d7be01f6d--- /dev/null+++ b/apps/web/src/content/pages/tools/checker-slug.mdx@@ -0,0 +1,13 @@+---+title: "Global Speed Checker"+publishedAt: "2025-11-10"+author: "Thibault Le Ouay Ducasse"+description: "Check the speed of your website from around the world."+category: "Product"+---++The data is getting stored for **7 days**. If you want to keep it longer, consider [creating an account](https://app.openstatus.dev) and use our cloud solution.++---++> **We have reworked the checker experience ([go back to v1](https://v1.openstatus.dev/play/checker))**. Please let us know if you are missing a feature from the older version. Contact us directly or send us a message to [[email protected]](mailto:[email protected]). Happy to bring stuff back!diff --git a/apps/web/src/content/pages/tools/checker.mdx b/apps/web/src/content/pages/tools/checker.mdxnew file mode 100644index 000000000..a5eac3137--- /dev/null+++ b/apps/web/src/content/pages/tools/checker.mdx@@ -0,0 +1,60 @@+---+title: "Global Speed Checker"+publishedAt: "2025-11-10"+author: "Thibault Le Ouay Ducasse"+description: "Check the speed of your website from around the world."+category: "Product"+---++## Start monitoring your services++<Grid cols={3}>+ <div>++**API & Website Speed**++Test Enter your URL and get a website speed check. Get insights on page load, header details and timing phases (DNS, Connect, TLS, TTFB, Transfer) of the response.++ </div>+ <div>++**Global Speed Test**++Monitor latency performance in different regions to ensure quick load times for users across 28 regions worldwide.++ </div>+ <div>++**Share the Results**++Quickly share the results of your website speed test with your team or clients. The results expire after 7 days, so you can easily collaborate on performance.++ </div>+</Grid>++### What Is a Website Speed Checker?++A Website Speed Checker is an online tool that measures how fast your website or API responds when someone visits it. It analyzes various website performance metrics to help you understand which elements slow down your page load time.+Speed checkers can focus on two aspects of performance:++- **Client-side performance**, which includes metrics like First Contentful Paint (FCP), Largest Contentful Paint (LCP), and Cumulative Layout Shift (CLS) — all indicators of how quickly your site becomes visible and usable to visitors.+- **Server-side performance (or network performance)**, which looks at the technical steps of a request such as DNS lookup, TCP connection, TLS handshake, and server response time.++Understanding both sides helps you identify whether slowdowns are caused by your frontend assets or your backend infrastructure.++### What Is a Global Speed Checker?++A Global Speed Checker measures your website or API's latency and response time from multiple locations around the world. Instead of testing from just one data center, it runs checks from 28 global regions across 3 cloud providers, giving you a complete picture of your site's real-world performance.++---++With OpenStatus, you can:++- Test how fast your API or website responds worldwide.+- Compare latency across different regions.+- Identify network bottlenecks.+- Monitor uptime and availability in real time.++Whether you want to test your website speed from Europe, Asia, North America, or beyond, our Global Speed Checker gives accurate, consistent data from distributed locations.++If you'd like to request additional test regions or providers, feel free to contact us at [[email protected]](mailto:[email protected]).diff --git a/apps/web/src/content/pages/tools/curl.mdx b/apps/web/src/content/pages/tools/curl.mdxnew file mode 100644index 000000000..23f0bd14a--- /dev/null+++ b/apps/web/src/content/pages/tools/curl.mdx@@ -0,0 +1,13 @@+---+title: "cURL Builder"+publishedAt: "2025-11-10"+author: "Maximilian Kaske"+description: "An online curl command line builder. Generate curl commands to test your API endpoints."+category: "Product"+---++## What is cURL?++cURL (Client URL) is a command-line tool and library for transferring data with URLs. It supports various protocols like HTTP, HTTPS, FTP, and more, making it a versatile choice for testing APIs, downloading files, or performing network tasks. Its simplicity and power come from the ability to execute complex operations through straightforward commands.++cURL is available on most operating systems, including Linux, macOS, and Windows.diff --git a/apps/web/src/content/pages/tools/uptime-sla.mdx b/apps/web/src/content/pages/tools/uptime-sla.mdxnew file mode 100644index 000000000..25830efdc--- /dev/null+++ b/apps/web/src/content/pages/tools/uptime-sla.mdx@@ -0,0 +1,19 @@+---+title: "Uptime SLA Calculator"+publishedAt: "2025-11-10"+author: "Thibault Le Ouay Ducasse"+description: "Calculate allowed downtime from uptime percentages or determine uptime percentages from actual downtime. Supports multiple reporting periods and SLA tiers."+category: "Product"+---++_All calculations assume continuous 24/7 availability requirements._++## Understanding Uptime SLA++Service Level Agreements (SLAs) define the expected performance and availability of your services. Understanding uptime percentages and their corresponding downtime allowances is crucial for maintaining customer trust and meeting compliance requirements.+++Common SLA tiers include 99.9% (three nines), 99.99% (four nines), and 99.999% (five nines), each representing different levels of reliability. For example, 99.9% uptime allows for 8.77 hours of downtime per year, while 99.99% allows only 52.6 minutes annually.+++This calculator helps you understand the real-world impact of your SLA commitments and plan for capacity, incident response, and stakeholder expectations.diff --git a/apps/web/src/content/pages/unrelated/about.mdx b/apps/web/src/content/pages/unrelated/about.mdxnew file mode 100644index 000000000..56ab3249c--- /dev/null+++ b/apps/web/src/content/pages/unrelated/about.mdx@@ -0,0 +1,55 @@+---+title: "About openstatus"+publishedAt: "2025-11-10"+author: "openstatus"+description: "openstatus is built by a small team of passionate developers, committed to creating the best open-source status page and uptime monitoring solution."+category: "Company"+---++<Grid cols={3}>++<div>++<Image+ className="aspect-square!"+ src="/assets/authors/thibault.jpeg"+ alt="Thibault Le Ouay Ducasse"+/>++[BlueSky](https://bsky.app/profile/thibaultleouay.dev) | [LinkedIn](https://www.linkedin.com/in/thibault-le-ouay-ducasse/) | [GitHub](https://github.com/thibaultleouay/)++</div>++<div>++<Image+ className="aspect-square!"+ src="/assets/authors/max.png"+ alt="Maximilian Kaske"+/>++[X](https://x.com/mxkaske) | [LinkedIn](https://www.linkedin.com/in/mxkaske/) | [GitHub](https://github.com/mxkaske/)++</div>++</Grid>++## Our story++We **met on Twitter in 2023**, after couple of months of DM. We started to work on openstatus and were driven by these goals:++- Build something useful **for other developers**+- A real-world project with all the **latest hot technologies**+- Be **open-source**++In 2025 most of it remains true but building with the latest hot technologies was a mistake we are afficionado of the **boring tech**.++## Our values++We are a small team of 2 people, we are a **small company**. We are **not VC funded**. We are not looking for investors. We want to keep our freedom and **build a substainable business** while working on features that provides the best value to our users.++We also want to be **transparent** about our business. We are not going to hide our ups and downs. We are going to share our journey with you.++## Our mission++Let's build the best open-source status page with uptime monitoring. **We are aiming to connect the dot between status page and monitoring with incidents.**diff --git a/apps/web/src/content/pages/unrelated/not-found.mdx b/apps/web/src/content/pages/unrelated/not-found.mdxnew file mode 100644index 000000000..6292d87fe--- /dev/null+++ b/apps/web/src/content/pages/unrelated/not-found.mdx@@ -0,0 +1,18 @@+---+title: "404 - Not Found"+publishedAt: "2025-11-10"+author: "openstatus"+description: "The page you are looking for does not exist."+category: "Company"+---++---++Are you looking for something specific?++- [API Reference](https://api.openstatus.dev/v1)+- [Documentation](https://docs.openstatus.dev)+- [Dashboard](https://app.openstatus.dev)+- [Global Speed Checker](/play/checker)++Or [Return Home](/)diff --git a/apps/web/src/content/pages/unrelated/pricing.mdx b/apps/web/src/content/pages/unrelated/pricing.mdxnew file mode 100644index 000000000..054aee04a--- /dev/null+++ b/apps/web/src/content/pages/unrelated/pricing.mdx@@ -0,0 +1,54 @@+---+title: "Pricing"+publishedAt: "2025-11-10"+author: "Maximilian Kaske"+description: "All plans. Start free today, upgrade later."+category: "Company"+---++<Table+ data={{+ headers: [+ "Features comparison",+ <>$0/month <span className="text-muted-foreground">| Hobby</span></>,+ <>$30/month <span className="text-muted-foreground">| Starter</span></>,+ <>$100/month <span className="text-muted-foreground">| Pro</span></>,+ ],+ rows: [+ [<a href="/uptime-monitoring"><strong>Monitors</strong></a>, "", "", ""],+ ["Check Interval", "10m", "1m", "30s"],+ ["Number of monitors", "1", "20", "50"],+ ["Multi-region monitoring", "+", "+", "+"],+ ["Total regions", "6", "28", "28"],+ ["Regions per monitor", "6", "6", "28"],+ ["Data retention", "14 days", "3 months", "12 months"],+ ["Response logs", "", "+", "+"],+ ["OTel Exporter", "", "", "+"],+ ["Number of on-demand checks", "30/mo", "100/mo", "300/mo"],+ [<a href="/status-page"><strong>Status Pages</strong></a>, "", "", ""],+ ["Number of status pages", "1", "1", "5"],+ ["Maintenance status", "+", "+", "+"],+ ["Toggle numbers visibility", "+", "+", "+"],+ ["Subscribers", "", "+", "+"],+ ["Custom domain", "", "+", "+"],+ ["Password-protected", "", "+", "+"],+ [<strong>Alerts</strong>, "", "", ""],+ ["Slack, Discord, Email, Webhook, ntfy.sh", "+", "+", "+"],+ ["SMS", "", "+", "+"],+ ["PagerDuty", "", "+", "+"],+ ["Number of notification channels", "1", "10", "20"],+ [<strong>Collaboration</strong>, "", "", ""],+ ["Team members", "1", "Unlimited", "Unlimited"],+ ],+ }}+/>++We provide pricing parity and support **EUR**/**USD**/**INR** as currency. Contact us at [[email protected]](mailto:[email protected]) or [book a call](https://openstatus.dev/cal) if you have questions.++---++Go to the dashboard and get started++<ButtonLink href="https://app.openstatus.dev">Create Account</ButtonLink>++---\ No newline at end of filediff --git a/apps/web/src/content/legal/privacy.mdx b/apps/web/src/content/pages/unrelated/privacy.mdxsimilarity index 91%rename from apps/web/src/content/legal/privacy.mdxrename to apps/web/src/content/pages/unrelated/privacy.mdxindex 2607bfc6d..1962415c5 100644--- a/apps/web/src/content/legal/privacy.mdx+++ b/apps/web/src/content/pages/unrelated/privacy.mdx@@ -1,6 +1,9 @@----title: Privacy Policy-updatedAt: 2023-05-29+title: "Privacy"+publishedAt: "2025-11-10"+author: "openstatus"+description: "The privacy conduct for openstatus"+category: "company"---Welcome to [openstatus.dev](/) (the "Site"), hosted by OpenStatus ("OpenStatus",diff --git a/apps/web/src/content/pages/unrelated/subprocessors.mdx b/apps/web/src/content/pages/unrelated/subprocessors.mdxnew file mode 100644index 000000000..afeb641b3--- /dev/null+++ b/apps/web/src/content/pages/unrelated/subprocessors.mdx@@ -0,0 +1,59 @@+---+title: "Subprocessors"+publishedAt: "2025-11-10"+author: "openstatus"+description: ""+category: "Company"+---++## List of Subprocessors++Vercel:++- Purpose: Server hosting+- Location: Global++Fly:++- Purpose: Server hosting+- Location: Global++Koyeb:++- Purpose: Server hosting+- Location: Global++Railway:++- Purpose: Server hosting+- Location: Global++GCP:++- Purpose: Queue+- Location: EU++Turso:++- Purpose: Relational database (SQLite)+- Location: Global++Tinybird:++- Purpose: Analytical database (Clickhouse)+- Location: EU++Stripe:++- Purpose: payment processing+- Location: US++Resend:++- Purpose: Email sending+- Location: EU++Openpanel:++- Purpose: Product analytics+- Location: EUdiff --git a/apps/web/src/content/legal/terms.mdx b/apps/web/src/content/pages/unrelated/terms.mdxsimilarity index 96%rename from apps/web/src/content/legal/terms.mdxrename to apps/web/src/content/pages/unrelated/terms.mdxindex 101b5145f..33558455b 100644--- a/apps/web/src/content/legal/terms.mdx+++ b/apps/web/src/content/pages/unrelated/terms.mdx@@ -1,6 +1,9 @@----title: Terms of Service-updatedAt: 2023-05-29+title: "Terms of Service"+publishedAt: "2025-11-10"+author: "openstatus"+description: "The terms and conditions for openstatus"+category: "company"---Subject to these Terms of Service (this "Agreement"), [openstatus.dev](/)diff --git a/apps/web/src/content/posts/monitoring-latency-cf-workers-fly-koyeb-raylway-render.mdx b/apps/web/src/content/posts/monitoring-latency-cf-workers-fly-koyeb-raylway-render.mdxdeleted file mode 100644index 3906c9e65..000000000--- a/apps/web/src/content/posts/monitoring-latency-cf-workers-fly-koyeb-raylway-render.mdx+++ /dev/null@@ -1,471 +0,0 @@-----title:- "Monitoring latency: Cloudflare Workers vs Fly vs Koyeb vs Railway vs Render"-description:- Want to know which providers offer the lowest latency? We deployed a simple- Hono server on differerent cloud and compared their latency using OpenStatus.-author:- name: Thibault Le Ouay Ducasse- url: https://bsky.app/profile/thibaultleouay.dev- avatar: /assets/authors/thibault.jpeg-publishedAt: 2024-02-19-image: /assets/posts/monitoring-latency/all-hosting-providers.png-tag: education------> ⚠️ We are using the default settings for each provider and conducting-> datacenter to datacenter requests. A real-world application's results are-> going to be different. ⚠️--You want to know which cloud providers offer the lowest latency?--In this post, I compare the latency of-[Cloudflare Workers](#cloudflare-workers), [Fly](#flyio), [Koyeb](#koyeb),-[Railway](#railway) and [Render](#render) using-[OpenStatus](https://www.openstatus.dev).--I deployed the application on the cheapest or free tier offered by each-provider.--For this test, I used a basic [Hono](https://hono.dev) server that returns a-simple text response.--```js-const app = new Hono();-app.use("*", logger());--app.use("*", poweredBy());--app.get("/", (c) => {- return c.text(- "Just return the desired http status code, e.g. /404 🤯 \nhttps://www.openstatus.dev",- );-});-```--You can find the code [here](https://github.com/openstatusHQ/status-code), it’s-open source 😉.--OpenStatus monitored our endpoint every **10 minutes** from **6 locations**-located in Amsterdam, Ashburn, Hong Kong, Johannesburg, Sao Paulo and Sydney.--It's a good way to test our own product and improve it.--Let's analyze the data from the past two weeks.--## Cloudflare workers--Cloudflare Workers is a serverless platform by Cloudflare. It lets you build new-applications using JavaScript/Typescript. You can deploy up to 100 worker-scripts for free, running on more than 275 network locations.--### Latency metrics--<div className="grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-5">- <MetricsCard title="uptime" value={100} suffix="%" variant="positive" />- <MetricsCard title="fails" value={0} suffix="#" variant="negative" />- <MetricsCard title="total pings" value={10956} suffix="#" variant="info" />- <div className="hidden md:col-span-2 md:block" />- <MetricsCard title="avg" value={182} suffix="ms" />- <MetricsCard title="p75" value={138} suffix="ms" />- <MetricsCard title="p90" value={695} suffix="ms" />- <MetricsCard title="p95" value={778} suffix="ms" />- <MetricsCard title="p99" value={991} suffix="ms" />-</div>--<div className="mt-4">- <SimpleChart- staticFile="/assets/posts/monitoring-latency/cloudflare.json"- caption="Cloudflare avg. latency between 04. Feb and 18. Feb 2024 aggregated in a 1h window."- />-</div>--### Timing metrics--| Region | DNS (ms) | Connection (ms) | TLS Handshake (ms) | TTFB (ms) | Transfert (ms) |-| ------ | -------- | --------------- | ------------------ | --------- | -------------- |-| AMS | 17 | 2 | 17 | 27 | 0 |-| GRU | 38 | 2 | 13 | 28 | 0 |-| HKG | 19 | 2 | 13 | 29 | 0 |-| IAD | 24 | 1 | 14 | 30 | 0 |-| JNB | 123 | 168 | 182 | 185 | 0 |-| SYD | 51 | 1 | 11 | 25 | 0 |--I can notice that Johannesburg's latency is about ten times higher than that of-the other monitors.--### Headers--From the Cloudflare request I can get the location of the workers that handle-the request, with `Cf-ray` in the headers response.--| Checker region | Workers region | number of request |-| -------------- | -------------- | ----------------- |-| HKG | HKG | 1831 |-| SYD | SYD | 1831 |-| AMS | AMS | 1831 |-| IAD | IAD | 1831 |-| GRU | GRU | 1791 |-| GRU | GIG | 40 |-| JNB | AMS | 741 |-| JNB | MUC | 4 |-| JNB | HKG | 5 |-| JNB | SIN | 6 |-| JNB | NRT | 8 |-| JNB | EWR | 10 |-| JNB | CDG | 82 |-| JNB | FRA | 276 |-| JNB | LHR | 699 |-| JNB | AMS | 741 |--I can see all the request from JNB is never routed to a nearby data-center.--Apart from the strange routing error in Johannesburg, Cloudflare workers are-fast worldwide.--I have not experienced any cold start issues.--## Fly.io--Fly.io simplifies deploying and running server-side applications globally.-Developers can deploy their applications near users worldwide for low latency-and high performance. It uses a lightweight Firecracker VM to easily deploy-Docker images.--### Latency metrics--<div className="grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-5">- <MetricsCard title="uptime" value={100} suffix="%" variant="positive" />- <MetricsCard title="fails" value={0} suffix="#" variant="negative" />- <MetricsCard title="total pings" value={10952} suffix="#" variant="info" />- <div className="hidden md:col-span-2 md:block" />- <MetricsCard title="avg" value={1471} suffix="ms" />- <MetricsCard title="p75" value={1514} suffix="ms" />- <MetricsCard title="p90" value={1555} suffix="ms" />- <MetricsCard title="p95" value={1626} suffix="ms" />- <MetricsCard title="p99" value={2547} suffix="ms" />-</div>--<div className="mt-4">- <SimpleChart- staticFile="/assets/posts/monitoring-latency/fly.json"- caption="Fly avg. latency between 04. Feb and 18. Feb 2024 aggregated in a 1h window."- />-</div>--### Timing metrics--| Region | DNS (ms) | Connection (ms) | TLS Handshake (ms) | TTFB (ms) | Transfert (ms) |-| ------ | -------- | --------------- | ------------------ | --------- | -------------- |-| AMS | 6 | 1 | 8 | 1469 | 0 |-| GRU | 5 | 0 | 4 | 1431 | 0 |-| HKG | 4 | 0 | 5 | 1473 | 0 |-| IAD | 3 | 0 | 5 | 1470 | 0 |-| JNB | 24 | 0 | 5 | 1423 | 0 |-| SYD | 3 | 0 | 3 | 1489 | 0 |--The DNS is fast, our checker is attempting to connect to a region in the same-data center, but our machine's cold start is slowing us down, leading to the-high TTFB.--Here’s our config for Fly.io:--```toml-app = 'statuscode'-primary_region = 'ams'--[build]- dockerfile = "./Dockerfile"--[http_service]- internal_port = 3000- force_https = true- auto_stop_machines = true- auto_start_machines = true- min_machines_running = 0- processes = ['app']--[[vm]]- cpu_kind = 'shared'- cpus = 1- memory_mb = 256-```--The primary region of our server is Amsterdam, and the fly instances is getting-paused after a period of inactivity.--The machine starts slowly, as indicated by the logs showing a start time of-`1.513643778s.`--```-2024-02-14T11:24:16.107 proxy[286560ea703108] ams [info] Starting machine--2024-02-14T11:24:16.322 app[286560ea703108] ams [info] [ 0.035736] PCI: Fatal: No config space access function found--2024-02-14T11:24:16.533 app[286560ea703108] ams [info] INFO Starting init (commit: bfa79be)...--2024-02-14T11:24:16.546 app[286560ea703108] ams [info] INFO Preparing to run: `/usr/local/bin/docker-entrypoint.sh bun start` as root--2024-02-14T11:24:16.558 app[286560ea703108] ams [info] INFO [fly api proxy] listening at /.fly/api--2024-02-14T11:24:16.565 app[286560ea703108] ams [info] 2024/02/14 11:24:16 listening on [fdaa:3:2ef:a7b:10c:3c9a:5b4:2]:22 (DNS: [fdaa::3]:53)--2024-02-14T11:24:16.611 app[286560ea703108] ams [info] $ bun src/index.ts--2024-02-14T11:24:16.618 runner[286560ea703108] ams [info] Machine started in 460ms--2024-02-14T11:24:17.621 proxy[286560ea703108] ams [info] machine started in 1.513643778s--2024-02-14T11:24:17.628 proxy[286560ea703108] ams [info] machine became reachable in 7.03669ms-```--#### OpenStatus Prod metrics--If you update your fly.toml file to include the following, you can get the zero-cold start and achieve a better latency.--```- min_machines_running = 1-```--This is our data for our production server deploy on Fly.io.--<div className="grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-5">- <MetricsCard title="uptime" value={100} suffix="%" variant="positive" />- <MetricsCard title="fails" value={0} suffix="#" variant="negative" />- <MetricsCard title="total pings" value={12076} suffix="#" variant="info" />- <div className="hidden md:col-span-2 md:block" />- <MetricsCard title="avg" value={61} suffix="ms" />- <MetricsCard title="p75" value={67} suffix="ms" />- <MetricsCard title="p90" value={164} suffix="ms" />- <MetricsCard title="p95" value={198} suffix="ms" />- <MetricsCard title="p99" value={327} suffix="ms" />-</div>--> We use Fly.io in production, and the machine never sleeps, yielding much-> better results.--## Koyeb--Koyeb is a developer-friendly serverless platform that allows for global app-deployment without the need for operations, servers, or infrastructure-management. Koyeb offers a free Starter plan that includes one Web Service, one-Database service. The platform focuses on ease of deployment and scalability for-developers--### Latency metrics--<div className="grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-5">- <MetricsCard title="uptime" value={100} suffix="%" variant="positive" />- <MetricsCard title="fails" value={0} suffix="#" variant="negative" />- <MetricsCard title="total pings" value={10955} suffix="#" variant="info" />- <div className="hidden md:col-span-2 md:block" />- <MetricsCard title="avg" value={539} suffix="ms" />- <MetricsCard title="p75" value={738} suffix="ms" />- <MetricsCard title="p90" value={881} suffix="ms" />- <MetricsCard title="p95" value={1013} suffix="ms" />- <MetricsCard title="p99" value={1525} suffix="ms" />-</div>--<div className="mt-4">- <SimpleChart- staticFile="/assets/posts/monitoring-latency/koyeb.json"- caption="Koyeb avg. latency between 04. Feb and 18. Feb 2024."- />-</div>--### Timing metrics--| Region | DNS (ms) | Connection (ms) | TLS Handshake (ms) | TTFB (ms) | Transfert (ms) |-| ------ | -------- | --------------- | ------------------ | --------- | -------------- |-| AMS | 50 | 2 | 17 | 107 | 0 |-| GRU | 139 | 65 | 75 | 407 | 0 |-| HKG | 48 | 2 | 13 | 321 | 0 |-| IAD | 35 | 1 | 12 | 129 | 0 |-| JNB | 298 | 1 | 11 | 720 | 0 |-| SYD | 97 | 1 | 10 | 711 | 0 |--### Headers--The request headers show that none of our requests are cached. They contain-`cf-cache-status: dynamic`. Cloudflare handles the Koyeb edge layer.-https://www.koyeb.com/blog/building-a-multi-region-service-mesh-with-kuma-envoy-anycast-bgp-and-mtls--Our requests follow this route:--```-Cf workers -> koyeb Global load balancer -> koyeb backend-```--Let’s see where did we hit the cf workers--| Checker region | Workers region | number of request |-| -------------- | -------------- | ----------------- |-| AMS | AMS | 1866 |-| GRU | GRU | 504 |-| GRU | IAD | 38 |-| GRU | MIA | 688 |-| GRU | EWR | 337 |-| GRU | CIG | 299 |-| HKG | HKG | 1866 |-| IAD | IAD | 1866 |-| JNB | JNB | 1861 |-| JNB | AMS | 1 |-| SYD | SYD | 1866 |--Koyeb Global Load Balancer region we hit:--| Checker region | Koyeb Global Load Balancer | number of request |-| -------------- | -------------------------- | ----------------- |-| AMS | FRA1 | 1866 |-| GRU | WAS1 | 1866 |-| HKG | SIN1 | 1866 |-| IAD | WAS1 | 1866 |-| JNB | PAR1 | 4 |-| JNB | SIN1 | 1864 |-| JNB | FRA1 | 1 |-| JNB | SIN1 | 1866 |--I have deployed our app in the Frankfurt data-center.--## Railway--Railway is a cloud platform designed for building, shipping, and monitoring-applications without the need for Platform Engineers. It simplifies the-application development process by offering seamless deployment and monitoring-capabilities.--### Latency metrics--<div className="grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-5">- <MetricsCard title="uptime" value={99.991} suffix="%" variant="positive" />- <MetricsCard title="fails" value={1} suffix="#" variant="negative" />- <MetricsCard title="total pings" value={10955} suffix="#" variant="info" />- <div className="hidden md:col-span-2 md:block" />- <MetricsCard title="avg" value={381} suffix="ms" />- <MetricsCard title="p75" value={469} suffix="ms" />- <MetricsCard title="p90" value={653} suffix="ms" />- <MetricsCard title="p95" value={661} suffix="ms" />- <MetricsCard title="p99" value={850} suffix="ms" />-</div>--<div className="mt-4">- <SimpleChart- staticFile="/assets/posts/monitoring-latency/railway.json"- caption="Railway avg. latency between 04. Feb and 18. Feb 2024 aggregated in a 1h window."- />-</div>--### Timing metrics--| Region | DNS (ms) | Connection (ms) | TLS Handshake (ms) | TTFB (ms) | Transfert (ms) |-| ------ | -------- | --------------- | ------------------ | --------- | -------------- |-| AMS | 9 | 21 | 18 | 158 | 0 |-| GRU | 14 | 115 | 127 | 178 | 0 |-| HKG | 8 | 45 | 54 | 225 | 0 |-| IAD | 7 | 2 | 14 | 65 | 0 |-| JNB | 18 | 193 | 178 | 319 | 0 |-| SYD | 21 | 108 | 105 | 280 | 0 |--### Headers--The headers don't provide any information.--Railway is using Google Cloud Platform. It’s the only service that does not-allow us to pick a specific region on the free plan. Our test app will be-located to `us-west1` Portland, Oregon. We can see that the latency is the-lowest in IAD.--By default our app did not scale down to 0. It was always running. We don't have-any cold start.--## Render--Render is a platform that simplifies deploying and scaling web applications and-services. It offers features like automated SSL, automatic scaling, native-support for popular frameworks, and one-click deployments from Git. The platform-focuses on simplicity and developer productivity.--### Latency metrics--<div className="grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-5">- <MetricsCard title="uptime" value={99.89} suffix="%" variant="positive" />- <MetricsCard title="fails" value={12} suffix="#" variant="negative" />- <MetricsCard title="total pings" value={10946} suffix="#" variant="info" />- <div className="hidden md:col-span-2 md:block" />- <MetricsCard title="avg" value={451} suffix="ms" />- <MetricsCard title="p75" value={447} suffix="ms" />- <MetricsCard title="p90" value={591} suffix="ms" />- <MetricsCard title="p95" value={707} suffix="ms" />- <MetricsCard title="p99" value={902} suffix="ms" />-</div>--<div className="mt-4">- <SimpleChart- staticFile="/assets/posts/monitoring-latency/render.json"- caption="Render avg. latency between 04. Feb and 18. Feb 2024 aggregated in a 1h window."- />-</div>--### Timing metrics--| Region | DNS (ms) | Connection (ms) | TLS Handshake (ms) | TTFB (ms) | Transfert (ms) |-| ------ | -------- | --------------- | ------------------ | --------- | -------------- |-| AMS | 20 | 2 | 7 | 107 | 0 |-| GRU | 61 | 2 | 6 | 407 | 0 |-| HKG | 76 | 2 | 6 | 321 | 0 |-| IAD | 15 | 1 | 5 | 129 | 0 |-| JNB | 36 | 161 | 167 | 720 | 0 |-| SYD | 103 | 1 | 4 | 711 | 0 |--### Headers--The headers don't provide any information.--I have deployed our app in the Frankfurt data-center.--According to the Render docs, the free tier will shut down the service after 15-minutes of inactivity. However, our app is being accessed by a monitor every 10-minutes. We should never scale down to 0.--```-Render spins down a Free web service that goes 15 minutes without receiving inbound traffic. Render spins the service back up whenever it next receives a request to process.-```--I think the failures are due to the cold start of our app. We have a default-timeout of 30s and the render app takes up to 50s to start.We might have hit an-inflection point between cold and warm.--## Conclusion--Here are the results of our test:--| Provider | Uptime | Fails Ping | Total Pings | AVG latency (ms) | P75 (ms) | P90 (ms) | P95 (ms) | P99 (ms) |-| ---------- | ------ | ---------- | ----------- | ---------------- | -------- | -------- | -------- | -------- |-| CF Workers | 100 | 0 | 10,956 | 182 | 138 | 690 | 778 | 991 |-| Fly.io | 100 | 0 | 10,952 | 1,471 | 1,514 | 1,555 | 1,626 | 2,547 |-| Koyeb | 100 | 0 | 10,955 | 536 | 738 | 881 | 1,013 | 1,525 |-| Railway | 99.991 | 1 | 10,955 | 381 | 469 | 653 | 661 | 850 |-| Render | 99.89 | 12 | 10,946 | 451 | 447 | 591 | 707 | 902 |--If you value low latency, Cloudflare Workers are the best option for fast global-performance without cold start issues. They deploy your app worldwide-efficiently.--For multi-region deployment, check out Koyeb and Fly.io.--For specific region deployment, Railway and Render are good choices.--Choosing a cloud provider involves considering not just latency but also user-experience and pricing.--We use Fly.io in production and are satisfied with it.--#### Vercel--I haven't included Vercel in this test. But we have a blog post comparing Vercel-Serverless vs Edge vs Serverless. You can find it-[here](https://www.openstatus.dev/blog/monitoring-latency-vercel-edge-vs-serverless).--If you want to monitor your API or website, create an account on-[OpenStatus](https://www.openstatus.dev/app/sign-up?ref=blog-monitoring).diff --git a/apps/web/src/components/monitor-charts/simple-chart.tsx b/apps/web/src/content/simple-chart.tsxsimilarity index 85%rename from apps/web/src/components/monitor-charts/simple-chart.tsxrename to apps/web/src/content/simple-chart.tsxindex e5f3a1fdf..42cfe9aba 100644--- a/apps/web/src/components/monitor-charts/simple-chart.tsx+++ b/apps/web/src/content/simple-chart.tsx@@ -1,28 +1,32 @@"use client";-import { Line, LineChart, XAxis } from "recharts";-+import { cn } from "@/lib/utils";+import type { ChartConfig } from "@openstatus/ui";import {ChartContainer,ChartTooltip,ChartTooltipContent,} from "@openstatus/ui";+import { Line, LineChart, XAxis } from "recharts";const chartConfig = {latency: {label: "Latency",- color: "hsl(var(--status-operational))",+ color: "var(--color-success)",},-};+} as ChartConfig;export interface SimpleChartProps {data: { timestamp: string; latency: number | undefined }[];+ className?: string;}-// TODO: allow click to open `./details` intercepting route-export function SimpleChart({ data }: SimpleChartProps) {+export function SimpleChart({ data, className }: SimpleChartProps) {return (- <ChartContainer config={chartConfig} className="h-20 w-full">+ <ChartContainer+ config={chartConfig}+ className={cn("h-12 w-full", className)}+ ><LineChartaccessibilityLayerdata={data}diff --git a/apps/web/src/content/sub-nav.tsx b/apps/web/src/content/sub-nav.tsxnew file mode 100644index 000000000..8617d3002--- /dev/null+++ b/apps/web/src/content/sub-nav.tsx@@ -0,0 +1,35 @@+"use client";++import { cn } from "@/lib/utils";+import Link from "next/link";+import { usePathname } from "next/navigation";+import { Fragment } from "react";+import { CopyButton } from "./copy-button";++export function SubNav({ className, ...props }: React.ComponentProps<"div">) {+ const pathname = usePathname();+ const segments = pathname.split("/").filter(Boolean).slice(0, -1);++ return (+ <div+ className={cn("flex items-center justify-between gap-2", className)}+ {...props}+ >+ <div className="prose px-4 text-muted-foreground">+ {segments.map((segment, index) => (+ <Fragment key={segment}>+ <Link href={`/${segments.slice(0, index + 1).join("/")}`}>+ {segment}+ </Link>+ {index < segments.length - 1 ? (+ <span className="text-muted-foreground">{" | "}</span>+ ) : null}+ </Fragment>+ ))}+ </div>+ <CopyButton+ copyText={typeof window !== "undefined" ? window.location.href : ""}+ />+ </div>+ );+}diff --git a/apps/web/src/content/theme-toggle.tsx b/apps/web/src/content/theme-toggle.tsxnew file mode 100644index 000000000..cf3c7846d--- /dev/null+++ b/apps/web/src/content/theme-toggle.tsx@@ -0,0 +1,73 @@+"use client";++import { cn } from "@/lib/utils";+import { Laptop, Moon, Sun } from "lucide-react";+import { useTheme } from "next-themes";+import type * as React from "react";+import { useEffect, useState } from "react";++export function ThemeToggle({+ className,+ ...props+}: React.ComponentProps<"div">) {+ const { setTheme, theme } = useTheme();+ const [mounted, setMounted] = useState(false);++ useEffect(() => {+ setMounted(true);+ }, []);++ if (!mounted) {+ return (+ <div+ className={cn(+ "flex items-center gap-px bg-border [&>*]:flex [&>*]:flex-1 [&>*]:items-center [&>*]:justify-center [&>*]:bg-background [&>*]:p-4",+ className,+ )}+ {...props}+ >+ <div>+ <Sun className="h-6 w-6" />+ </div>+ <div>+ <Moon className="h-6 w-6" />+ </div>+ <div>+ <Laptop className="h-6 w-6" />+ </div>+ </div>+ );+ }++ return (+ <div+ className={cn(+ "flex items-center gap-px bg-border [&>*]:flex [&>*]:flex-1 [&>*]:items-center [&>*]:justify-center [&>*]:bg-background [&>*]:p-4 [&>*]:hover:bg-muted [&>*]:data-[active=true]:bg-muted",+ className,+ )}+ {...props}+ >+ <button+ type="button"+ data-active={theme === "light"}+ onClick={() => setTheme("light")}+ >+ [light]+ </button>+ <button+ type="button"+ data-active={theme === "dark"}+ onClick={() => setTheme("dark")}+ >+ [dark]+ </button>+ <button+ type="button"+ data-active={theme === "system"}+ onClick={() => setTheme("system")}+ >+ [system]+ </button>+ </div>+ );+}diff --git a/apps/web/src/content/unrelated/ci-cd-features-block.mdx b/apps/web/src/content/unrelated/ci-cd-features-block.mdxdeleted file mode 100644index 42b1a0054..000000000--- a/apps/web/src/content/unrelated/ci-cd-features-block.mdx+++ /dev/null@@ -1,12 +0,0 @@-```ts-test("should fail if slow", async () => {- const data = await fetch("https://api.openstatus.dev/v1/monitor/:id/run", {- method: "POST",- headers: { "x-openstatus-key": process.env.OPENSTATUS_API_KEY },- });- const body = await data.json();-- expect(body.status).toBe(200);- expect(body.latency).toBeLessThan(1000);-});-```diff --git a/apps/web/src/content/unrelated/cli-block.mdx b/apps/web/src/content/unrelated/cli-block.mdxdeleted file mode 100644index c4f45c115..000000000--- a/apps/web/src/content/unrelated/cli-block.mdx+++ /dev/null@@ -1,3 +0,0 @@-```bash-$ openstatus monitors apply-```diff --git a/apps/web/src/content/unrelated/cli-docker-private-locations.mdx b/apps/web/src/content/unrelated/cli-docker-private-locations.mdxdeleted file mode 100644index 4c41a1235..000000000--- a/apps/web/src/content/unrelated/cli-docker-private-locations.mdx+++ /dev/null@@ -1,3 +0,0 @@-```bash-$ docker pull ghcr.io/openstatushq/private-location:latest-```\ No newline at end of filediff --git a/apps/web/src/content/unrelated/github-action-block.mdx b/apps/web/src/content/unrelated/github-action-block.mdxdeleted file mode 100644index 418bd14a4..000000000--- a/apps/web/src/content/unrelated/github-action-block.mdx+++ /dev/null@@ -1,20 +0,0 @@-```yaml-name: Run OpenStatus Synthetics CI--on:- workflow_dispatch:- push:- branches: [main]--jobs:- synthetic_ci:- runs-on: ubuntu-latest- name: Run OpenStatus Synthetics CI- steps:- - name: Checkout- uses: actions/checkout@v4- - name: Run OpenStatus Synthetics CI- uses: openstatushq/openstatus-github-action@v1- with:- api_key: ${{ secrets.OPENSTATUS_API_KEY }}-```\ No newline at end of filediff --git a/apps/web/src/content/unrelated/otel-block.mdx b/apps/web/src/content/unrelated/otel-block.mdxdeleted file mode 100644index 1606a101f..000000000--- a/apps/web/src/content/unrelated/otel-block.mdx+++ /dev/null@@ -1,82 +0,0 @@-```json-{- "resourceMetrics": [- {- "resource": {- "attributes": [- {- "key": "service.name",- "value": { "stringValue": "openstatus-synthetic-check" }- },- {- "key": "service.version",- "value": { "stringValue": "0.1.0" }- }- ]- },- "scopeMetrics": [- {- "scope": {- "name": "OpenStatus"- },- "metrics": [- {- "name": "openstatus.status",- "description": "Status of the check",- "unit": "1",- "sum": {- "dataPoints": [- {- "attributes": [- { "key": "openstatus.probes", "value": { "stringValue": "fra" } },- { "key": "openstatus.target", "value": { "stringValue": "https://acme.com" } },- { "key": "http.response.status_code", "value": { "intValue": 200 } }- ],- "value": 1- }- ],- "aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE",- "isMonotonic": true- }- },- {- "name": "openstatus.http.request.duration",- "description": "Duration of the check",- "unit": "ms",- "gauge": {- "dataPoints": [- {- "attributes": [- { "key": "openstatus.probes", "value": { "stringValue": "fra" } },- { "key": "openstatus.target", "value": { "stringValue": "https://acme.com" } },- { "key": "http.response.status_code", "value": { "intValue": 200 } }- ],- "value": 431.12- }- ]- }- },- {- "name": "openstatus.http.dns.duration",- "description": "Duration of the dns lookup",- "unit": "ms",- "gauge": {- "dataPoints": [- {- "attributes": [- { "key": "openstatus.probes", "value": { "stringValue": "fra" } },- { "key": "openstatus.target", "value": { "stringValue": "https://acme.com" } },- { "key": "http.response.status_code", "value": { "intValue": 200 } }- ],- "value": 56.45- }- ]- }- }- ]- }- ]- }- ]-}-```\ No newline at end of filediff --git a/apps/web/src/content/unrelated/our-story.mdx b/apps/web/src/content/unrelated/our-story.mdxdeleted file mode 100644index d217447c6..000000000--- a/apps/web/src/content/unrelated/our-story.mdx+++ /dev/null@@ -1,28 +0,0 @@-## Our story 📜--We met on Twitter in 2023, after couple of months of DM. We started to work on-OpenStatus and were driven by these goals:--- Build something useful for other developers 🧑💻-- A real-world project with all the latest hot technologies 🌶️-- Be Open-Source 📖--## Our values ⚖️--We are a small team of 2 people, we are a small company. We are not a VC funded-startup. We are not looking for investors. We want to keep our freedom and build-a substainable business while working on features that provides the best value-to our users.--We also want to be transparent about our business. We are not going to hide our-ups and downs. We are going to share our journey with you.--## Our mission 🚀--We want to make the web faster and more reliable for everyone, wherever they are-in the world. To achieve this, we are building a platform that helps developers-monitor their websites and APIs.--We are here to fight Us-East-1 privilege. ⚔️--<Tweet id="1696131704547905809" />diff --git a/apps/web/src/content/unrelated/terraform-provider-block.mdx b/apps/web/src/content/unrelated/terraform-provider-block.mdxdeleted file mode 100644index 15d3c1fcc..000000000--- a/apps/web/src/content/unrelated/terraform-provider-block.mdx+++ /dev/null@@ -1,14 +0,0 @@-```hcl-provider "openstatus" {- openstatus_api_token= "YOUR_API_TOKEN"-}--resource "openstatus_monitor" "my_monitor" {- url = "https://www.openstatus.dev"- regions= ["iad", "jnb"]- periodicity = "10m"- name = "test-monitor"- active = true- description = "This is a test monitor"-}-```\ No newline at end of filediff --git a/apps/web/src/content/unrelated/yaml-file.mdx b/apps/web/src/content/unrelated/yaml-file.mdxdeleted file mode 100644index d26774728..000000000--- a/apps/web/src/content/unrelated/yaml-file.mdx+++ /dev/null@@ -1,14 +0,0 @@-```yaml title="openstatus.yaml"-"openstat.us":- active: true- frequency: 1m- kind: http- name: openstat.us- regions:- - ams- - iad- - syd- request:- method: GET- url: https://openstat.us-```\ No newline at end of filediff --git a/apps/web/src/content/utils.ts b/apps/web/src/content/utils.tsnew file mode 100644index 000000000..6f3a63762--- /dev/null+++ b/apps/web/src/content/utils.ts@@ -0,0 +1,164 @@+import fs from "node:fs";+import path from "node:path";+import { z } from "zod";++const metadataSchema = z.object({+ title: z.string(),+ publishedAt: z.coerce.date(),+ description: z.string(),+ category: z.string(),+ author: z.string(),+ image: z.string().optional(),+});++export type Metadata = z.infer<typeof metadataSchema>;++function parseFrontmatter(fileContent: string) {+ const frontmatterRegex = /---\s*([\s\S]*?)\s*---/;+ const match = frontmatterRegex.exec(fileContent);+ const frontMatterBlock = match?.[1];+ const content = fileContent.replace(frontmatterRegex, "").trim();+ const frontMatterLines = frontMatterBlock?.trim().split("\n");+ const metadata: Record<string, string> = {};++ frontMatterLines?.forEach((line) => {+ const [key, ...valueArr] = line.split(": ");+ let value = valueArr.join(": ").trim();+ value = value.replace(/^['"](.*)['"]$/, "$1"); // Remove quotes+ metadata[key.trim()] = value;+ });++ const validatedMetadata = metadataSchema.safeParse(metadata);++ if (!validatedMetadata.success) {+ console.error(validatedMetadata.error);+ throw new Error(`Invalid metadata ${fileContent}`);+ }++ return { metadata: validatedMetadata.data, content };+}++function getMDXFiles(dir: string) {+ return fs.readdirSync(dir).filter((file) => path.extname(file) === ".mdx");+}++function readMDXFile(filePath: string) {+ const rawContent = fs.readFileSync(filePath, "utf-8");+ return parseFrontmatter(rawContent);+}++function getMDXDataFromDir(dir: string) {+ const mdxFiles = getMDXFiles(dir);+ return mdxFiles.map((file) => {+ return getMDXDataFromFile(path.join(dir, file));+ });+}++function getMDXDataFromFile(filePath: string) {+ const { metadata, content } = readMDXFile(filePath);+ const slug = path.basename(filePath, path.extname(filePath));+ return {+ metadata,+ slug,+ content,+ };+}++export type MDXData = ReturnType<typeof getMDXDataFromFile>;++export function getBlogPosts(): MDXData[] {+ return getMDXDataFromDir(+ path.join(process.cwd(), "src", "content", "pages", "blog"),+ );+}++export function getChangelogPosts(): MDXData[] {+ return getMDXDataFromDir(+ path.join(process.cwd(), "src", "content", "pages", "changelog"),+ );+}++export function getProductPages(): MDXData[] {+ return getMDXDataFromDir(+ path.join(process.cwd(), "src", "content", "pages", "product"),+ );+}++export function getUnrelatedPages(): MDXData[] {+ return getMDXDataFromDir(+ path.join(process.cwd(), "src", "content", "pages", "unrelated"),+ );+}++export function getUnrelatedPage(slug: string): MDXData {+ return getMDXDataFromFile(+ path.join(+ process.cwd(),+ "src",+ "content",+ "pages",+ "unrelated",+ `${slug}.mdx`,+ ),+ );+}++export function getMainPages(): MDXData[] {+ return [...getUnrelatedPages(), ...getProductPages()];+}++export function getComparePages(): MDXData[] {+ return getMDXDataFromDir(+ path.join(process.cwd(), "src", "content", "pages", "compare"),+ );+}++export function getHomePage(): MDXData {+ return getMDXDataFromFile(+ path.join(process.cwd(), "src", "content", "pages", "home.mdx"),+ );+}++export function getToolsPages(): MDXData[] {+ return getMDXDataFromDir(+ path.join(process.cwd(), "src", "content", "pages", "tools"),+ );+}++export function getToolsPage(slug: string): MDXData {+ return getMDXDataFromFile(+ path.join(process.cwd(), "src", "content", "pages", "tools", `${slug}.mdx`),+ );+}++export function formatDate(targetDate: Date, includeRelative = false) {+ const currentDate = new Date();++ const yearsAgo = currentDate.getFullYear() - targetDate.getFullYear();+ const monthsAgo = currentDate.getMonth() - targetDate.getMonth();+ const daysAgo = currentDate.getDate() - targetDate.getDate();++ let formattedDate = "";++ if (yearsAgo > 0) {+ formattedDate = `${yearsAgo}y ago`;+ } else if (monthsAgo > 0) {+ formattedDate = `${monthsAgo}mo ago`;+ } else if (daysAgo > 0) {+ formattedDate = `${daysAgo}d ago`;+ } else {+ formattedDate = "Today";+ }++ const fullDate = targetDate.toLocaleString("en-us", {+ month: "short",+ day: "2-digit",+ year: "numeric",+ });++ if (!includeRelative) {+ return fullDate;+ }++ return `${fullDate} (${formattedDate})`;+}diff --git a/apps/web/src/data/author.ts b/apps/web/src/data/author.tsnew file mode 100644index 000000000..ff49b4bf0--- /dev/null+++ b/apps/web/src/data/author.ts@@ -0,0 +1,19 @@+export const author = {+ "Maximilian Kaske": {+ name: "Maximilian Kaske",+ url: "https://x.com/mxkaske",+ image: "/assets/authors/max.png",+ },+ "Thibault Le Ouay Ducasse": {+ name: "Thibault Le Ouay Ducasse",+ url: "https://bsky.app/profile/thibaultleouay.dev",+ image: "/assets/authors/thibault.jpeg",+ },+} as const;++export function getAuthor(name: string) {+ if (name in author) {+ return author[name as keyof typeof author];+ }+ return name;+}diff --git a/apps/web/src/data/content.ts b/apps/web/src/data/content.tsnew file mode 100644index 000000000..56a5fdf9d--- /dev/null+++ b/apps/web/src/data/content.ts@@ -0,0 +1,224 @@+import {+ getComparePages,+ getProductPages,+ getToolsPages,+} from "@/content/utils";+import type { Region } from "@openstatus/regions";++const products = getProductPages();++const productsSection = {+ label: "Products",+ items: products.map((product) => ({+ label: product.metadata.title,+ href: `/${product.slug}`,+ })),+};++const resourcesFooterSection = {+ label: "Resources",+ items: [+ {+ label: "Blog",+ href: "/blog",+ },+ {+ label: "Pricing",+ href: "/pricing",+ },+ {+ label: "Docs",+ href: "https://docs.openstatus.dev",+ },+ {+ label: "External Status",+ href: "/status",+ },+ {+ label: "OSS Friends",+ href: "/oss-friends",+ },+ {+ label: "Marketing V1",+ href: "https://v1.openstatus.dev",+ },+ ],+};++const resourcesHeaderSection = {+ label: "Resources",+ items: [+ {+ label: "Blog",+ href: "/blog",+ },+ {+ label: "Changelog",+ href: "/changelog",+ },+ {+ label: "Global Speed Checker",+ href: "/play/checker",+ },+ {+ label: "Compare",+ href: "/compare",+ },+ {+ label: "Playground (Tools)",+ href: "/play",+ },+ ],+};++const companySection = {+ label: "Company",+ items: [+ {+ label: "About",+ href: "/about",+ },+ {+ label: "Changelog",+ href: "/changelog",+ },+ {+ label: "I'm an LLM",+ href: "https://www.openstatus.dev/llms.txt",+ },+ {+ label: "Terms",+ href: "/terms",+ },+ {+ label: "Privacy",+ href: "/privacy",+ },+ {+ label: "Subprocessors",+ href: "/subprocessors",+ },+ ],+};++const compareSection = {+ label: "Compare",+ items: getComparePages().map((page) => ({+ label: page.metadata.title,+ href: `/compare/${page.slug}`,+ })),+};++const toolsSection = {+ label: "Tools",+ items: [+ ...getToolsPages()+ .filter((page) => page.slug !== "checker-slug")+ .map((page) => ({+ label: page.metadata.title,+ href: `/play/${page.slug}`,+ })),+ {+ label: "Theme Explorer",+ href: "https://themes.openstatus.dev",+ },+ {+ label: "All Status Codes",+ href: "https://openstat.us",+ },+ {+ label: "Vercel Edge Ping",+ href: "https://light.openstatus.dev",+ },+ ],+};++const communitySection = {+ label: "Community",+ items: [+ {+ label: "Discord",+ href: "https://openstatus.dev/discord",+ },+ {+ label: "GitHub",+ href: "https://openstatus.dev/github",+ },+ {+ label: "X",+ href: "https://openstatus.dev/twitter",+ },+ {+ label: "BlueSky",+ href: "https://openstatus.dev/bsky",+ },+ {+ label: "YouTube",+ href: "https://openstatus.dev/youtube",+ },+ {+ label: "LinkedIn",+ href: "https://openstatus.dev/linkedin",+ },+ ],+};++export const playSection = {+ label: "Play",+ items: [+ ...getToolsPages()+ .filter((page) => page.slug !== "checker-slug")+ .map((page) => ({+ label: page.metadata.title,+ href: `/play/${page.slug}`,+ })),+ {+ label: "Theme Explorer",+ href: "https://themes.openstatus.dev",+ },+ {+ label: "All Status Codes",+ href: "https://openstat.us",+ },+ {+ label: "Vercel Edge Ping",+ href: "https://light.openstatus.dev",+ },+ {+ label: "React Data Table",+ href: "https://logs.run",+ },+ {+ label: "Shadcn Time Picker",+ href: "https://time.openstatus.dev",+ },+ {+ label: "Astro Status Page",+ href: "https://astro.openstat.us",+ },+ ],+};++export const headerLinks = [productsSection, resourcesHeaderSection];++export const footerLinks = [+ productsSection,+ resourcesFooterSection,+ companySection,+ compareSection,+ toolsSection,+ communitySection,+];++// --------------------------------++export type RegionMetricsChartTable = {+ region: Region;+ count: number;+ ok: number;+ p50Latency: number | null;+ p75Latency: number | null;+ p90Latency: number | null;+ p95Latency: number | null;+ p99Latency: number | null;+};diff --git a/apps/web/src/hooks/use-preprocessor.tsx b/apps/web/src/hooks/use-preprocessor.tsxdeleted file mode 100644index 9f438c02a..000000000--- a/apps/web/src/hooks/use-preprocessor.tsx+++ /dev/null@@ -1,34 +0,0 @@-import type { AnchorHTMLAttributes } from "react";-import { Fragment, createElement, useEffect, useState } from "react";-import { jsx, jsxs } from "react/jsx-runtime";-import rehypeReact from "rehype-react";-import remarkParse from "remark-parse";-import remarkRehype from "remark-rehype";-import { unified } from "unified";--export function useProcessor(text: string) {- const [Content, setContent] = useState<React.ReactNode>(null);-- useEffect(() => {- unified()- .use(remarkParse)- .use(remarkRehype)- .use(rehypeReact, {- createElement,- Fragment,- jsx,- jsxs,- components: {- a: (props: AnchorHTMLAttributes<HTMLAnchorElement>) => {- return <a target="_blank" rel="noreferrer" {...props} />;- },- } as { [key: string]: React.ComponentType<unknown> },- })- .process(text)- .then((file) => {- setContent(file.result);- });- }, [text]);-- return Content;-}diff --git a/apps/web/src/proxy.ts b/apps/web/src/proxy.tsdeleted file mode 100644index c5a7d4af5..000000000--- a/apps/web/src/proxy.ts+++ /dev/null@@ -1,213 +0,0 @@-import { NextResponse } from "next/server";--import { db } from "@openstatus/db/src/db";-import { user, usersToWorkspaces, workspace } from "@openstatus/db/src/schema";-import { getCurrency } from "@openstatus/db/src/schema/plan/utils";--import { auth } from "@/lib/auth";-import { eq } from "@openstatus/db";-import { Redis } from "@openstatus/upstash";-import { env } from "./env";--const MAX_AGE = 30; // 30 seconds--export const getValidSubdomain = (host?: string | null) => {- let subdomain: string | null = null;- if (!host && typeof window !== "undefined") {- // On client side, get the host from window- // biome-ignore lint: to fix later- host = window.location.host;- }- // we should improve here for custom vercel deploy page- if (host?.includes(".") && !host.includes(".vercel.app")) {- const candidate = host.split(".")[0];- if (candidate && !candidate.includes("www")) {- // Valid candidate- subdomain = candidate;- }- }- if (host?.includes("ngrok-free.app")) {- return null;- }- // In case the host is a custom domain- if (- host &&- !(host?.includes(env.NEXT_PUBLIC_URL) || host?.endsWith(".vercel.app"))- ) {- subdomain = host;- }- return subdomain;-};--const publicAppPaths = [- "/app/sign-in",- "/app/sign-up",- "/app/login",- "/app/invite",- "/app/onboarding",-];--// remove auth middleware if needed-// export const middleware = () => NextResponse.next();--export default auth(async (req) => {- const url = req.nextUrl.clone();- const continent = req.headers.get("x-vercel-ip-continent") || "NA";- const country = req.headers.get("x-vercel-ip-country") || "US";- const currency = getCurrency({ continent, country });-- if (url.pathname.includes("api/trpc")) {- return NextResponse.next();- }-- const host = req.headers.get("host");- const pathname = req.nextUrl.pathname;- const subdomain = getValidSubdomain(host);-- console.log({ subdomain });-- // Subdomain handling: set mode cookie (legacy/new) and let next.config rewrites proxy- if (subdomain) {- const modeCookie = req.cookies.get("sp_mode")?.value; // "legacy" | "new"- const cached = modeCookie === "legacy" || modeCookie === "new";- let mode: "legacy" | "new" | undefined = cached ? modeCookie : undefined;-- console.log({ mode, cached });-- if (!mode) {- try {- const redis = Redis.fromEnv();- // NOTE: we are storing the slug in the cache if it's the new status page- const cache = await redis.get(`page:${subdomain}`);- console.log({ cache });- // Determine legacy flag from cache- mode = cache ? "new" : "legacy";- } catch (e) {- console.error("error getting cache", e);- mode = "legacy";- }- }-- console.log({ mode });-- if (mode === "legacy") {- url.pathname = `/status-page/${subdomain}${url.pathname}`;- return NextResponse.rewrite(url);- }-- const res = NextResponse.next();- // Mark that this request is being proxied so downstream can adapt- res.headers.set("x-proxy", "1");- // Short-lived cookie so toggles apply relatively quickly- res.cookies.set("sp_mode", "new", { path: "/", maxAge: MAX_AGE });- // If we just set the cookie, trigger one redirect so next.config.js- // rewrites that depend on sp_mode can apply on the next request.- if (!cached) {- const redirect = NextResponse.redirect(url);- redirect.headers.set("x-proxy", "1");- redirect.cookies.set("sp_mode", "new", { path: "/", maxAge: MAX_AGE });- return redirect;- }-- return res;- }-- const isPublicAppPath = publicAppPaths.some((path) =>- pathname.startsWith(path),- );-- if (!req.auth && pathname.startsWith("/app/invite")) {- return NextResponse.redirect(- new URL(- `/app/login?redirectTo=${encodeURIComponent(req.nextUrl.href)}`,- req.url,- ),- );- }-- if (!req.auth && pathname.startsWith("/app") && !isPublicAppPath) {- return NextResponse.redirect(- new URL(- `/app/login?redirectTo=${encodeURIComponent(req.nextUrl.href)}`,- req.url,- ),- );- }-- if (req.auth?.user?.id) {- if (pathname.startsWith("/app") && !isPublicAppPath) {- const workspaceSlug = req.nextUrl.pathname.split("/")?.[2];- const hasWorkspaceSlug = !!workspaceSlug && workspaceSlug.trim() !== "";-- const allowedWorkspaces = await db- .select()- .from(usersToWorkspaces)- .innerJoin(user, eq(user.id, usersToWorkspaces.userId))- .innerJoin(workspace, eq(workspace.id, usersToWorkspaces.workspaceId))- .where(eq(user.id, Number.parseInt(req.auth.user.id)))- .all();-- if (hasWorkspaceSlug) {- const hasAccessToWorkspace = allowedWorkspaces.find(- ({ workspace }) => workspace.slug === workspaceSlug,- );- if (hasAccessToWorkspace) {- const workspaceCookie = req.cookies.get("workspace-slug")?.value;- const hasChanged = workspaceCookie !== workspaceSlug;- if (hasChanged) {- const response = NextResponse.redirect(url);- response.cookies.set("workspace-slug", workspaceSlug);- return response;- }- } else {- return NextResponse.redirect(new URL("/app", req.url));- }- } else {- if (allowedWorkspaces.length > 0) {- const firstWorkspace = allowedWorkspaces[0].workspace;- const { slug } = firstWorkspace;- return NextResponse.redirect(- new URL(`/app/${slug}/monitors`, req.url),- );- }- }- }- }-- // reset workspace slug cookie if no auth- if (!req.auth && req.cookies.has("workspace-slug")) {- const response = NextResponse.next();- response.cookies.set("x-currency", currency);- response.cookies.delete("workspace-slug");- return response;- }-- const response = NextResponse.next();- response.cookies.set("x-currency", currency);- return response;-});--export const config = {- matcher: [- "/((?!api|assets|_next/static|_next/image|favicon.ico|sitemap.xml|robots.txt).*)",- "/",- "/(api/webhook|api/trpc)(.*)",- "/(!api/checker/:path*|!api/og|!api/ping)",- ],-- unstable_allowDynamic: [- // use a glob to allow anything in the function-bind 3rd party module- // "**/packages/analytics/src/**",- // // "@jitsu/js/**",- // "**/node_modules/@jitsu/**",- // "**/node_modules/**/@jitsu/**",- // "**/node_modules/@openstatus/analytics/**",- // "@openstatus/analytics/**",- // "@jitsu/js/dist/jitsu.es.js",- // "**/analytics/src/**",- // "**/node_modules/.pnpm/@jitsu/**",- // "/node_modules/function-bind/**",- // "**/node_modules/.pnpm/**/function-bind/**",- // "../../packages/analytics/src/index.ts",- ],-};diff --git a/apps/web/src/public/fonts/CommitMono-400-Italic.otf b/apps/web/src/public/fonts/CommitMono-400-Italic.otfnew file mode 100644index 000000000..616bb0797Binary files /dev/null and b/apps/web/src/public/fonts/CommitMono-400-Italic.otf differdiff --git a/apps/web/src/public/fonts/CommitMono-400-Regular.otf b/apps/web/src/public/fonts/CommitMono-400-Regular.otfnew file mode 100644index 000000000..4c029ed36Binary files /dev/null and b/apps/web/src/public/fonts/CommitMono-400-Regular.otf differdiff --git a/apps/web/src/public/fonts/CommitMono-700-Italic.otf b/apps/web/src/public/fonts/CommitMono-700-Italic.otfnew file mode 100644index 000000000..e948f7396Binary files /dev/null and b/apps/web/src/public/fonts/CommitMono-700-Italic.otf differdiff --git a/apps/web/src/public/fonts/CommitMono-700-Regular.otf b/apps/web/src/public/fonts/CommitMono-700-Regular.otfnew file mode 100644index 000000000..da3e6243fBinary files /dev/null and b/apps/web/src/public/fonts/CommitMono-700-Regular.otf differdiff --git a/apps/web/src/styles/globals.css b/apps/web/src/styles/globals.cssindex 2855ca5b9..db1f9b619 100644--- a/apps/web/src/styles/globals.css+++ b/apps/web/src/styles/globals.css@@ -2,55 +2,62 @@@plugin 'tailwindcss-animate';@plugin '@tailwindcss/container-queries';-@plugin '@tailwindcss/typography';@source '../../../../packages/ui/**/*.{ts,tsx}';-@source '../../../../packages/tracker/**/*.{ts,tsx}';@source '../../node_modules/@openstatus/react/**/*.{js,ts,jsx,tsx}';@custom-variant dark (&:is(.dark *));@theme {- --background-image-gradient-radial: radial-gradient(var(--tw-gradient-stops));-- --color-border: hsl(var(--border));- --color-input: hsl(var(--input));- --color-ring: hsl(var(--ring));- --color-background: hsl(var(--background));- --color-foreground: hsl(var(--foreground));-- --color-primary: hsl(var(--primary));- --color-primary-foreground: hsl(var(--primary-foreground));-- --color-secondary: hsl(var(--secondary));- --color-secondary-foreground: hsl(var(--secondary-foreground));-- --color-destructive: hsl(var(--destructive));- --color-destructive-foreground: hsl(var(--destructive-foreground));-- --color-muted: hsl(var(--muted));- --color-muted-foreground: hsl(var(--muted-foreground));-- --color-accent: hsl(var(--accent));- --color-accent-foreground: hsl(var(--accent-foreground));-- --color-popover: hsl(var(--popover));- --color-popover-foreground: hsl(var(--popover-foreground));-- --color-card: hsl(var(--card));- --color-card-foreground: hsl(var(--card-foreground));-- --color-status-operational: hsl(var(--status-operational));-- --color-status-degraded: hsl(var(--status-degraded));-- --color-status-down: hsl(var(--status-down));-- --color-status-monitoring: hsl(var(--status-monitoring));-- --radius-lg: var(--radius);- --radius-md: calc(var(--radius) - 2px);+ --color-background: var(--background);+ --color-foreground: var(--foreground);+ --color-sidebar-ring: var(--sidebar-ring);+ --color-sidebar-border: var(--sidebar-border);+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);+ --color-sidebar-accent: var(--sidebar-accent);+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);+ --color-sidebar-primary: var(--sidebar-primary);+ --color-sidebar-foreground: var(--sidebar-foreground);+ --color-sidebar: var(--sidebar);+ --color-chart-5: var(--chart-5);+ --color-chart-4: var(--chart-4);+ --color-chart-3: var(--chart-3);+ --color-chart-2: var(--chart-2);+ --color-chart-1: var(--chart-1);+ --color-ring: var(--ring);+ --color-input: var(--input);+ --color-border: var(--border);+ --color-destructive: var(--destructive);+ --color-accent-foreground: var(--accent-foreground);+ --color-accent: var(--accent);+ --color-muted-foreground: var(--muted-foreground);+ --color-muted: var(--muted);+ --color-secondary-foreground: var(--secondary-foreground);+ --color-secondary: var(--secondary);+ --color-primary-foreground: var(--primary-foreground);+ --color-primary: var(--primary);+ --color-popover-foreground: var(--popover-foreground);+ --color-popover: var(--popover);+ --color-card-foreground: var(--card-foreground);+ --color-card: var(--card);--radius-sm: calc(var(--radius) - 4px);+ --radius-md: calc(var(--radius) - 2px);+ --radius-lg: var(--radius);+ --radius-xl: calc(var(--radius) + 4px);++ --color-success: var(--success);+ --color-warning: var(--warning);+ --color-info: var(--info);++ --color-sh-class: var(--sh-class);+ --color-sh-identifier: var(--sh-identifier);+ --color-sh-sign: var(--sh-sign);+ --color-sh-string: var(--sh-string);+ --color-sh-keyword: var(--sh-keyword);+ --color-sh-comment: var(--sh-comment);+ --color-sh-jsxliterals: var(--sh-jsxliterals);+ --color-sh-property: var(--sh-property);+ --color-sh-entity: var(--sh-entity);--font-sans:var(--font-sans), ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',@@ -109,134 +116,363 @@@layer base {:root {- --background: 0 0% 100%;- --foreground: 222.2 84% 4.9%;+ --radius: 0.625rem;+ --background: oklch(1 0 0);+ --foreground: oklch(0.145 0 0);+ --card: oklch(1 0 0);+ --card-foreground: oklch(0.145 0 0);+ --popover: oklch(1 0 0);+ --popover-foreground: oklch(0.145 0 0);+ --primary: oklch(0.205 0 0);+ --primary-foreground: oklch(0.985 0 0);+ --secondary: oklch(0.97 0 0);+ --secondary-foreground: oklch(0.205 0 0);+ --muted: oklch(0.97 0 0);+ --muted-foreground: oklch(0.556 0 0);+ --accent: oklch(0.97 0 0);+ --accent-foreground: oklch(0.205 0 0);+ --destructive: oklch(0.577 0.245 27.325);+ --border: oklch(0.922 0 0);+ --input: oklch(0.922 0 0);+ --ring: oklch(0.708 0 0);+ --chart-1: oklch(0.646 0.222 41.116);+ --chart-2: oklch(0.6 0.118 184.704);+ --chart-3: oklch(0.398 0.07 227.392);+ --chart-4: oklch(0.828 0.189 84.429);+ --chart-5: oklch(0.769 0.188 70.08);+ --sidebar: oklch(0.985 0 0);+ --sidebar-foreground: oklch(0.145 0 0);+ --sidebar-primary: oklch(0.205 0 0);+ --sidebar-primary-foreground: oklch(0.985 0 0);+ --sidebar-accent: oklch(0.97 0 0);+ --sidebar-accent-foreground: oklch(0.205 0 0);+ --sidebar-border: oklch(0.922 0 0);+ --sidebar-ring: oklch(0.708 0 0);++ --success: oklch(0.72 0.19 150);+ --warning: oklch(0.77 0.16 70);+ --info: oklch(0.62 0.19 260);++ --rainbow-1: oklch(0.64 0.21 25);+ --rainbow-2: oklch(0.70 0.19 48);+ --rainbow-3: oklch(0.77 0.16 70);+ --rainbow-4: oklch(0.80 0.16 86);+ --rainbow-5: oklch(0.77 0.20 131);+ --rainbow-6: oklch(0.72 0.19 150);+ --rainbow-7: oklch(0.70 0.15 162);+ --rainbow-8: oklch(0.70 0.12 183);+ --rainbow-9: oklch(0.71 0.13 215);+ --rainbow-10: oklch(0.68 0.15 237);+ --rainbow-11: oklch(0.62 0.19 260);+ --rainbow-12: oklch(0.59 0.20 277);+ --rainbow-13: oklch(0.61 0.22 293);+ --rainbow-14: oklch(0.63 0.23 304);+ --rainbow-15: oklch(0.67 0.26 322);+ --rainbow-16: oklch(0.66 0.21 354);+ --rainbow-17: oklch(0.65 0.22 16);++ --sh-class: #2d5e9d;+ --sh-identifier: #354150;+ --sh-sign: #8996a3;+ --sh-string: #007f7a;+ --sh-keyword: #e02518;+ --sh-comment: #a19595;+ --sh-jsxliterals: #6266d1;+ --sh-property: #e25a1c;+ --sh-entity: #e25a1c;+ }- --muted: 210 40% 96.1%;- --muted-foreground: 215.4 16.3% 46.9%;+ .dark {+ --background: oklch(0.145 0 0);+ --foreground: oklch(0.985 0 0);+ --card: oklch(0.205 0 0);+ --card-foreground: oklch(0.985 0 0);+ --popover: oklch(0.205 0 0);+ --popover-foreground: oklch(0.985 0 0);+ --primary: oklch(0.922 0 0);+ --primary-foreground: oklch(0.205 0 0);+ --secondary: oklch(0.269 0 0);+ --secondary-foreground: oklch(0.985 0 0);+ --muted: oklch(0.269 0 0);+ --muted-foreground: oklch(0.708 0 0);+ --accent: oklch(0.269 0 0);+ --accent-foreground: oklch(0.985 0 0);+ --destructive: oklch(0.704 0.191 22.216);+ --border: oklch(1 0 0 / 10%);+ --input: oklch(1 0 0 / 15%);+ --ring: oklch(0.556 0 0);+ --chart-1: oklch(0.488 0.243 264.376);+ --chart-2: oklch(0.696 0.17 162.48);+ --chart-3: oklch(0.769 0.188 70.08);+ --chart-4: oklch(0.627 0.265 303.9);+ --chart-5: oklch(0.645 0.246 16.439);+ --sidebar: oklch(0.205 0 0);+ --sidebar-foreground: oklch(0.985 0 0);+ --sidebar-primary: oklch(0.488 0.243 264.376);+ --sidebar-primary-foreground: oklch(0.985 0 0);+ --sidebar-accent: oklch(0.269 0 0);+ --sidebar-accent-foreground: oklch(0.985 0 0);+ --sidebar-border: oklch(1 0 0 / 10%);+ --sidebar-ring: oklch(0.556 0 0);++ --success: oklch(0.72 0.19 150);+ --warning: oklch(0.77 0.16 70);+ --info: oklch(0.62 0.19 260);++ --rainbow-1: oklch(0.64 0.21 25);+ --rainbow-2: oklch(0.70 0.19 48);+ --rainbow-3: oklch(0.77 0.16 70);+ --rainbow-4: oklch(0.80 0.16 86);+ --rainbow-5: oklch(0.77 0.20 131);+ --rainbow-6: oklch(0.72 0.19 150);+ --rainbow-7: oklch(0.70 0.15 162);+ --rainbow-8: oklch(0.70 0.12 183);+ --rainbow-9: oklch(0.71 0.13 215);+ --rainbow-10: oklch(0.68 0.15 237);+ --rainbow-11: oklch(0.62 0.19 260);+ --rainbow-12: oklch(0.59 0.20 277);+ --rainbow-13: oklch(0.61 0.22 293);+ --rainbow-14: oklch(0.63 0.23 304);+ --rainbow-15: oklch(0.67 0.26 322);+ --rainbow-16: oklch(0.66 0.21 354);+ --rainbow-17: oklch(0.65 0.22 16);++ --sh-class: #4c97f8;+ --sh-identifier: white;+ --sh-keyword: #f47067;+ --sh-string: #0fa295;+ }+}- --popover: 0 0% 100%;- --popover-foreground: 222.2 84% 4.9%;+@layer base {+ * {+ @apply border-border;+ }+ body {+ @apply bg-background text-foreground;+ }- --card: 0 0% 100%;- --card-foreground: 222.2 84% 4.9%;+ .dark [data-theme='dark'] {+ display: block;+ }++ [data-theme='dark'] {+ display: none;+ }++ [data-theme='light'] {+ display: block;+ }++ .dark [data-theme='light'] {+ display: none;+ }+}- --border: 214.3 31.8% 91.4%;- --input: 214.3 31.8% 91.4%;+/* Typography */- --primary: 222.2 47.4% 11.2%;- --primary-foreground: 210 40% 98%;+::selection {+ background-color: var(--color-primary);+ color: var(--color-primary-foreground);+}- --secondary: 210 40% 96.1%;- --secondary-foreground: 222.2 47.4% 11.2%;+.prose {+ @apply text-foreground/80;+}- --accent: 210 40% 96.1%;- --accent-foreground: 222.2 47.4% 11.2%;+.prose .anchor {+ @apply absolute invisible no-underline;- --destructive: 0 84.2% 60.2%;- --destructive-foreground: 210 40% 98%;+ margin-left: -1em;+ padding-right: 0.5em;+ width: 80%;+ max-width: 700px;+ cursor: pointer;+}- --ring: 215 20.2% 65.1%;+.anchor:hover {+ @apply visible;+}- --radius: 0.5rem;+.prose a {+ @apply text-foreground underline transition-all decoration-muted-foreground/50 underline-offset-2 decoration-2 hover:decoration-muted-foreground;+}- /** Chart Colors */- --chart-1: 12 76% 61%;- --chart-2: 173 58% 39%;- --chart-3: 197 37% 24%;- --chart-4: 43 74% 66%;- --chart-5: 27 87% 67%;+.prose .anchor:after {+ @apply text-muted-foreground;+ content: '#';+}- /* Status Tracker Colors - Radix Color */- --status-degraded: 50 100% 52%; /* Amber 10 */- --status-operational: 131 39% 51%; /* Grass 10 */- --status-down: 11 82% 59%; /* Tomato 10 */- --status-monitoring: 210 100% 62%; /* Blue 10 */- }+.prose *:hover > .anchor {+ @apply visible;+}- .dark {- --background: 222.2 84% 4.9%;- --foreground: 210 40% 98%;+.prose pre {+ @apply relative bg-muted overflow-x-auto border border-border py-2.5 px-3.5 text-sm rounded-none;+}- --muted: 217.2 32.6% 17.5%;- --muted-foreground: 215 20.2% 65.1%;+.prose code {+ @apply px-1 py-0.5 bg-muted text-muted-foreground;+}- --popover: 222.2 84% 4.9%;- --popover-foreground: 210 40% 98%;+.prose pre code {+ @apply p-0;+ border: initial;+ line-height: 1.5;+}- --card: 222.2 84% 4.9%;- --card-foreground: 210 40% 98%;+.prose code span {+ @apply font-medium;+}- --border: 217.2 32.6% 17.5%;- --input: 217.2 32.6% 17.5%;+.prose img {+ /* Don't apply styles to next/image */+ @apply m-0;+}- --primary: 210 40% 98%;- --primary-foreground: 222.2 47.4% 11.2%;+.prose p {+ @apply my-4 leading-7;+}- --secondary: 217.2 32.6% 17.5%;- --secondary-foreground: 210 40% 98%;+.prose h1 {+ @apply text-3xl text-foreground font-medium tracking-tight my-4 relative;+}- --accent: 217.2 32.6% 17.5%;- --accent-foreground: 210 40% 98%;- --destructive: 0 62.8% 30.6%;- --destructive-foreground: 0 85.7% 97.3%;+.prose h2 {+ @apply text-2xl text-foreground font-medium tracking-tight my-4 relative;+}- --ring: 217.2 32.6% 17.5%;+.prose h3 {+ @apply text-xl text-foreground font-medium tracking-tight my-4 relative;+}- /* Chart Colors */- --chart-1: 220 70% 50%;- --chart-2: 160 60% 45%;- --chart-3: 30 80% 55%;- --chart-4: 280 65% 60%;- --chart-5: 340 75% 55%;+.prose h4 {+ @apply text-lg text-foreground font-medium tracking-tight my-4 relative;+}- /* Status Tracker Colors - Radix Color */- --status-degraded: 50 100% 52%; /* Amber 10 */- --status-operational: 131 39% 51%; /* Grass 10 */- --status-down: 11 82% 59%; /* Tomato 10 */- --status-monitoring: 210 100% 62%; /* Blue 10 */+.prose hr {+ @apply my-4 border-border;+}- }+.prose strong {+ @apply text-foreground font-semibold;}-@layer base {- * {- @apply border-border;- }- body {- @apply bg-background text-foreground;- }+.prose blockquote {+ @apply border-l-2 border-foreground/50 pl-4;+}- [data-highlighted-chars] {- @apply bg-muted rounded;- }-- [data-highlighted-line] {- @apply bg-muted rounded;- }+.prose blockquote p::before {+ content: '"';+ @apply text-muted-foreground;+}- [data-rehype-pretty-code-caption] {- @apply mt-1 text-muted-foreground text-xs;- }+.prose blockquote p::after {+ content: '"';+ @apply text-muted-foreground;+}- [data-rehype-pretty-code-title] {- @apply mb-1 text-muted-foreground text-xs font-mono;- }+.prose figure {+ @apply my-4;+}- .dark [data-theme='dark'] {- display: block;- }-- [data-theme='dark'] {- display: none;- }-- [data-theme='light'] {- display: block;- }-- .dark [data-theme='light'] {- display: none;- }+.prose figure img {+ @apply aspect-video object-cover border border-border;+}++.prose figure figcaption {+ @apply text-sm text-muted-foreground not-empty:mt-1;+}++.prose em {+ @apply text-foreground italic;+}++.prose ul {+ list-style-type: "- ";+ @apply pl-4 list-outside marker:text-muted-foreground;+}++.prose ol {+ /* NOTE: maybe replace by default pl and list-inside */+ @apply pl-4 list-outside list-decimal marker:text-muted-foreground;+}++.prose li {+ @apply leading-7;+}++.prose details {+ @apply border border-border p-4 my-4;+}++.prose details p:last-child {+ @apply mb-0;+}++.prose details summary {+ @apply cursor-pointer font-medium text-foreground select-none;+}++.prose details summary:hover {+ @apply bg-muted;+}++.prose details summary::marker {+ @apply mr-1;+}++.prose details[open] summary {+ @apply mb-2;+}++.prose form {+ @apply my-4;+}++.prose form label {+ @apply text-foreground font-medium;+}++/* Wrapper for scrollable tables */+.prose .table-wrapper {+ @apply w-full overflow-x-auto my-4;+}++.prose table {+ @apply w-full border-collapse border border-border text-foreground;+}++.prose table th {+ @apply font-medium bg-muted/50 p-4 text-left border border-border;+}++.prose table td {+ @apply font-normal p-4 border border-border;+}++.prose table caption {+ @apply text-muted-foreground text-sm caption-bottom mt-4;+}++pre::-webkit-scrollbar {+ display: none;+}++pre {+ -ms-overflow-style: none; /* IE and Edge */+ scrollbar-width: none; /* Firefox */+}++/* Remove Safari input shadow on mobile */+input[type='text'],+input[type='email'] {+ -webkit-appearance: none;+ -moz-appearance: none;+ appearance: none;+}++.title {+ text-wrap: balance;}\ No newline at end of filediff --git a/apps/web/tsconfig.json b/apps/web/tsconfig.jsonindex 3ae90b521..8e6a8c1f0 100644--- a/apps/web/tsconfig.json+++ b/apps/web/tsconfig.json@@ -3,7 +3,6 @@"compilerOptions": {"baseUrl": ".","paths": {- "content-collections": ["./.content-collections/generated"],"@/*": ["./src/*"]},"plugins": [{ "name": "next" }],diff --git a/packages/ui/src/components/dialog.tsx b/packages/ui/src/components/dialog.tsxindex 9656e9581..adc8603e5 100644--- a/packages/ui/src/components/dialog.tsx+++ b/packages/ui/src/components/dialog.tsx@@ -1,122 +1,135 @@"use client";-import * as React from "react";import * as DialogPrimitive from "@radix-ui/react-dialog";-import { X } from "lucide-react";+import { XIcon } from "lucide-react";+import type * as React from "react";import { cn } from "@/lib/utils";-const Dialog = DialogPrimitive.Root;--const DialogTrigger = DialogPrimitive.Trigger;+function Dialog({+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Root>) {+ return <DialogPrimitive.Root data-slot="dialog" {...props} />;+}-const DialogPortal = DialogPrimitive.Portal;+function DialogTrigger({+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Trigger>) {+ return <DialogPrimitive.Trigger data-slot="dialog-trigger" {...props} />;+}-const DialogClose = DialogPrimitive.Close;+function DialogPortal({+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Portal>) {+ return <DialogPrimitive.Portal data-slot="dialog-portal" {...props} />;+}-const DialogOverlay = React.forwardRef<- React.ElementRef<typeof DialogPrimitive.Overlay>,- React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>->(({ className, ...props }, ref) => (- <DialogPrimitive.Overlay- ref={ref}- className={cn(- "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",- className- )}- {...props}- />-));-DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;+function DialogClose({+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Close>) {+ return <DialogPrimitive.Close data-slot="dialog-close" {...props} />;+}-const DialogContent = React.forwardRef<- React.ElementRef<typeof DialogPrimitive.Content>,- React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>->(({ className, children, ...props }, ref) => (- <DialogPortal>- <DialogOverlay />- <DialogPrimitive.Content- ref={ref}+function DialogOverlay({+ className,+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Overlay>) {+ return (+ <DialogPrimitive.Overlay+ data-slot="dialog-overlay"className={cn(- "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",+ "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in",className)}{...props}- >- {children}- <DialogPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground">- <X className="h-4 w-4" />- <span className="sr-only">Close</span>- </DialogPrimitive.Close>- </DialogPrimitive.Content>- </DialogPortal>-));-DialogContent.displayName = DialogPrimitive.Content.displayName;+ />+ );+}-const DialogHeader = ({+function DialogContent({className,+ children,...props-}: React.HTMLAttributes<HTMLDivElement>) => (- <div- className={cn(- "flex flex-col space-y-1.5 text-center sm:text-left",- className- )}- {...props}- />-);-DialogHeader.displayName = "DialogHeader";+}: React.ComponentProps<typeof DialogPrimitive.Content>) {+ return (+ <DialogPortal data-slot="dialog-portal">+ <DialogOverlay />+ <DialogPrimitive.Content+ data-slot="dialog-content"+ className={cn(+ "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:max-w-lg",+ className+ )}+ {...props}+ >+ {children}+ <DialogPrimitive.Close className="absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0">+ <XIcon />+ <span className="sr-only">Close</span>+ </DialogPrimitive.Close>+ </DialogPrimitive.Content>+ </DialogPortal>+ );+}-const DialogFooter = ({+function DialogHeader({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="dialog-header"+ className={cn("flex flex-col gap-2 text-center sm:text-left", className)}+ {...props}+ />+ );+}++function DialogFooter({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="dialog-footer"+ className={cn(+ "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",+ className+ )}+ {...props}+ />+ );+}++function DialogTitle({className,...props-}: React.HTMLAttributes<HTMLDivElement>) => (- <div- className={cn(- "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",- className- )}- {...props}- />-);-DialogFooter.displayName = "DialogFooter";--const DialogTitle = React.forwardRef<- React.ElementRef<typeof DialogPrimitive.Title>,- React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>->(({ className, ...props }, ref) => (- <DialogPrimitive.Title- ref={ref}- className={cn(- "text-lg font-semibold leading-none tracking-tight",- className- )}- {...props}- />-));-DialogTitle.displayName = DialogPrimitive.Title.displayName;+}: React.ComponentProps<typeof DialogPrimitive.Title>) {+ return (+ <DialogPrimitive.Title+ data-slot="dialog-title"+ className={cn("font-semibold text-lg leading-none", className)}+ {...props}+ />+ );+}-const DialogDescription = React.forwardRef<- React.ElementRef<typeof DialogPrimitive.Description>,- React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>->(({ className, ...props }, ref) => (- <DialogPrimitive.Description- ref={ref}- className={cn("text-sm text-muted-foreground", className)}- {...props}- />-));-DialogDescription.displayName = DialogPrimitive.Description.displayName;+function DialogDescription({+ className,+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Description>) {+ return (+ <DialogPrimitive.Description+ data-slot="dialog-description"+ className={cn("text-muted-foreground text-sm", className)}+ {...props}+ />+ );+}export {Dialog,- DialogPortal,- DialogOverlay,DialogClose,- DialogTrigger,DialogContent,- DialogHeader,+ DialogDescription,DialogFooter,+ DialogHeader,+ DialogOverlay,+ DialogPortal,DialogTitle,- DialogDescription,+ DialogTrigger,};diff --git a/packages/ui/src/components/sonner.tsx b/packages/ui/src/components/sonner.tsxindex 549cf8413..d4b762411 100644--- a/packages/ui/src/components/sonner.tsx+++ b/packages/ui/src/components/sonner.tsx@@ -21,6 +21,7 @@ const Toaster = ({ ...props }: ToasterProps) => {"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground",+ closeButton: "group-[.toast]:text-muted-foreground",},}}{...props}diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex d29bc676b..3b4fcd0e7 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -858,7 +858,7 @@ importers:version: 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@sentry/nextjs':specifier: 10.22.0- version: 10.22.0(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))+ version: 10.22.0(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected])'@stripe/stripe-js':specifier: 2.1.6version: 2.1.6@@ -937,6 +937,9 @@ importers:next-auth:specifier: 5.0.0-beta.29version: 5.0.0-beta.29([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])+ next-mdx-remote:+ specifier: 5.0.0+ version: 5.0.0(@types/[email protected])([email protected])next-plausible:specifier: 3.12.4version: 3.12.4([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])@@ -961,6 +964,9 @@ importers:react-hook-form:specifier: 7.66.1version: 7.66.1([email protected])+ react-medium-image-zoom:+ specifier: 5.4.0react-tweet:specifier: 3.2.1@@ -970,21 +976,6 @@ importers:recharts:specifier: 2.15.0- rehype-pretty-code:- specifier: 0.10.0- version: 0.10.0([email protected])- rehype-react:- specifier: 8.0.0- version: 8.0.0- remark-gfm:- specifier: 4.0.1- version: 4.0.1- remark-parse:- specifier: 11.0.0- version: 11.0.0- remark-rehype:- specifier: 11.1.2- version: 11.1.2resend:specifier: 4.0.1@@ -1000,6 +991,9 @@ importers:stripe:specifier: 13.8.0version: 13.8.0+ sugar-high:+ specifier: 0.9.5+ version: 0.9.5superjson:specifier: 2.2.2version: 2.2.2@@ -1013,15 +1007,6 @@ importers:specifier: 3.25.76version: 3.25.76devDependencies:- '@content-collections/core':- specifier: 0.7.3- version: 0.7.3([email protected])- '@content-collections/mdx':- specifier: 0.2.0- version: 0.2.0(@content-collections/[email protected]([email protected]))([email protected]([email protected]))([email protected])- '@content-collections/next':- specifier: 0.2.4- version: 0.2.4(@content-collections/[email protected]([email protected]))([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))'@openstatus/tsconfig':specifier: workspace:*version: link:../../packages/tsconfig@@ -2543,29 +2528,6 @@ packages:'@chronark/[email protected]':resolution: {integrity: sha512-hE8kCGLJK5ncH8F7uPaqPiOOqo68vUI66nusg7HO5X9BcyN8lXfeQliu6Ou1kOSq95OYshf9nB2fk2+LEvF4ng==}- '@content-collections/[email protected]':- resolution: {integrity: sha512-eqrQ/59BdorWQFFLF1sGPtIKzsn1OPSomok8e6MevYAaZ2knkhI3ddTQqo8OMrW/zA5H71Pbg0cgxbCN0pOVsg==}- peerDependencies:- typescript: ^5.0.2-- '@content-collections/[email protected]':- resolution: {integrity: sha512-AyEcS2MmcOXSYt6vNmJsAiu6EBYjtNiwYGUVUmpG3llm8Gt8uiNrhIhlHyv3cuk+N8KJ2PWemLcMqtQJ+sW3bA==}- peerDependencies:- '@content-collections/core': 0.x-- '@content-collections/[email protected]':- resolution: {integrity: sha512-Up42WaoZN+iYLO7rI59hy4ivw+Q7xXoezmoyjFFQjE0P9Mi3p5jGDdpsuXYmUiQOMZubPLClZHAbntk/27PxSQ==}- peerDependencies:- '@content-collections/core': 0.x- react: '>= 18'- react-dom: '>= 18'-- '@content-collections/[email protected]':- resolution: {integrity: sha512-MAmnKX/Lj4rDIWkcnzQIASboi8vmv5w+/uxM6gHPPQFXcp1yiiZndxbzR9TV7ul1J6i7HB1h9Qpj6gvCz/HwvA==}- peerDependencies:- '@content-collections/core': 0.x- next: ^12 || ^13 || ^14 || ^15-'@cspotcode/[email protected]':resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==}engines: {node: '>=12'}@@ -2693,6 +2655,7 @@ packages:'@ericcornelissen/[email protected]':resolution: {integrity: sha512-4pIMTa1nEFfMXitv7oaNEWOdM+zpOZavesa5GaiWTgda6Zk32CFGxjUp/iIaN0PwgUW1yTq/fztSjbpE8SLGZQ==}engines: {node: '>=4'}+ deprecated: Support for this package will stop 2025-12-31'@esbuild-kit/[email protected]':resolution: {integrity: sha512-sPRAnw9CdSsRmEtnsl2WXWdyquogVpB3yZ3dgwJfe8zrOzTsV7cJvmwrKVa+0ma5BoiGJ+BoqkMvawbayKUsqQ==}@@ -2702,17 +2665,6 @@ packages:resolution: {integrity: sha512-FxEMIkJKnodyA1OaCUoEvbYRkoZlLZ4d/eXFu9Fh8CbBBgP5EmZxrfTRyN0qpXZ4vOvqnE5YdRdcrmUUXuU+dA==}deprecated: 'Merged into tsx: https://tsx.is'- '@esbuild-plugins/[email protected]':- resolution: {integrity: sha512-+t5FdX3ATQlb53UFDBRb4nqjYBz492bIrnVWvpQHpzZlu9BQL5HasMZhqc409ygUwOWCXZhrWr6NyZ6T6Y+cxw==}- peerDependencies:- esbuild: '*'-- '@esbuild/[email protected]':- resolution: {integrity: sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==}- engines: {node: '>=12'}- cpu: [ppc64]- os: [aix]-'@esbuild/[email protected]':resolution: {integrity: sha512-0NFWnA+7l41irNuaSVlLfgNT12caWJVLzp5eAVhZ0z1qpxbockccEt3s+149rE64VUI3Ml2zt8Nv5JVc4QXTsw==}engines: {node: '>=18'}@@ -2731,12 +2683,6 @@ packages:cpu: [arm64]os: [android]- '@esbuild/[email protected]':- resolution: {integrity: sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==}- engines: {node: '>=12'}- cpu: [arm64]- os: [android]-'@esbuild/[email protected]':resolution: {integrity: sha512-LSQa7eDahypv/VO6WKohZGPSJDq5OVOo3UoFR1E4t4Gj1W7zEQMUhI+lo81H+DtB+kP+tDgBp+M4oNCwp6kffg==}engines: {node: '>=18'}@@ -2755,12 +2701,6 @@ packages:cpu: [arm]os: [android]- '@esbuild/[email protected]':- resolution: {integrity: sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==}- engines: {node: '>=12'}- cpu: [arm]- os: [android]-'@esbuild/[email protected]':resolution: {integrity: sha512-dQAxF1dW1C3zpeCDc5KqIYuZ1tgAdRXNoZP7vkBIRtKZPYe2xVr/d3SkirklCHudW1B45tGiUlz2pUWDfbDD4w==}engines: {node: '>=18'}@@ -2779,12 +2719,6 @@ packages:cpu: [x64]os: [android]- '@esbuild/[email protected]':- resolution: {integrity: sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==}- engines: {node: '>=12'}- cpu: [x64]- os: [android]-'@esbuild/[email protected]':resolution: {integrity: sha512-MiC9CWdPrfhibcXwr39p9ha1x0lZJ9KaVfvzA0Wxwz9ETX4v5CHfF09bx935nHlhi+MxhA63dKRRQLiVgSUtEg==}engines: {node: '>=18'}@@ -2803,12 +2737,6 @@ packages:cpu: [arm64]os: [darwin]- '@esbuild/[email protected]':- resolution: {integrity: sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==}- engines: {node: '>=12'}- cpu: [arm64]- os: [darwin]-'@esbuild/[email protected]':resolution: {integrity: sha512-JC74bdXcQEpW9KkV326WpZZjLguSZ3DfS8wrrvPMHgQOIEIG/sPXEN/V8IssoJhbefLRcRqw6RQH2NnpdprtMA==}engines: {node: '>=18'}@@ -2827,12 +2755,6 @@ packages:cpu: [x64]os: [darwin]- '@esbuild/[email protected]':- resolution: {integrity: sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==}- engines: {node: '>=12'}- cpu: [x64]- os: [darwin]-'@esbuild/[email protected]':resolution: {integrity: sha512-tguWg1olF6DGqzws97pKZ8G2L7Ig1vjDmGTwcTuYHbuU6TTjJe5FXbgs5C1BBzHbJ2bo1m3WkQDbWO2PvamRcg==}engines: {node: '>=18'}@@ -2851,12 +2773,6 @@ packages:cpu: [arm64]os: [freebsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==}- engines: {node: '>=12'}- cpu: [arm64]- os: [freebsd]-'@esbuild/[email protected]':resolution: {integrity: sha512-3ZioSQSg1HT2N05YxeJWYR+Libe3bREVSdWhEEgExWaDtyFbbXWb49QgPvFH8u03vUPX10JhJPcz7s9t9+boWg==}engines: {node: '>=18'}@@ -2875,12 +2791,6 @@ packages:cpu: [x64]os: [freebsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==}- engines: {node: '>=12'}- cpu: [x64]- os: [freebsd]-'@esbuild/[email protected]':resolution: {integrity: sha512-LLgJfHJk014Aa4anGDbh8bmI5Lk+QidDmGzuC2D+vP7mv/GeSN+H39zOf7pN5N8p059FcOfs2bVlrRr4SK9WxA==}engines: {node: '>=18'}@@ -2899,12 +2809,6 @@ packages:cpu: [arm64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==}- engines: {node: '>=12'}- cpu: [arm64]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-5luJWN6YKBsawd5f9i4+c+geYiVEw20FVW5x0v1kEMWNq8UctFjDiMATBxLvmmHA4bf7F6hTRaJgtghFr9iziQ==}engines: {node: '>=18'}@@ -2923,12 +2827,6 @@ packages:cpu: [arm]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==}- engines: {node: '>=12'}- cpu: [arm]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-oR31GtBTFYCqEBALI9r6WxoU/ZofZl962pouZRTEYECvNF/dtXKku8YXcJkhgK/beU+zedXfIzHijSRapJY3vg==}engines: {node: '>=18'}@@ -2947,12 +2845,6 @@ packages:cpu: [ia32]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==}- engines: {node: '>=12'}- cpu: [ia32]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-NrSCx2Kim3EnnWgS4Txn0QGt0Xipoumb6z6sUtl5bOEZIVKhzfyp/Lyw4C1DIYvzeW/5mWYPBFJU3a/8Yr75DQ==}engines: {node: '>=18'}@@ -2971,12 +2863,6 @@ packages:cpu: [loong64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==}- engines: {node: '>=12'}- cpu: [loong64]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-xoSphrd4AZda8+rUDDfD9J6FUMjrkTz8itpTITM4/xgerAZZcFW7Dv+sun7333IfKxGG8gAq+3NbfEMJfiY+Eg==}engines: {node: '>=18'}@@ -2995,12 +2881,6 @@ packages:cpu: [mips64el]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==}- engines: {node: '>=12'}- cpu: [mips64el]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-ab6eiuCwoMmYDyTnyptoKkVS3k8fy/1Uvq7Dj5czXI6DF2GqD2ToInBI0SHOp5/X1BdZ26RKc5+qjQNGRBelRA==}engines: {node: '>=18'}@@ -3019,12 +2899,6 @@ packages:cpu: [ppc64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==}- engines: {node: '>=12'}- cpu: [ppc64]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-NLinzzOgZQsGpsTkEbdJTCanwA5/wozN9dSgEl12haXJBzMTpssebuXR42bthOF3z7zXFWH1AmvWunUCkBE4EA==}engines: {node: '>=18'}@@ -3043,12 +2917,6 @@ packages:cpu: [riscv64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==}- engines: {node: '>=12'}- cpu: [riscv64]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-FE557XdZDrtX8NMIeA8LBJX3dC2M8VGXwfrQWU7LB5SLOajfJIxmSdyL/gU1m64Zs9CBKvm4UAuBp5aJ8OgnrA==}engines: {node: '>=18'}@@ -3067,12 +2935,6 @@ packages:cpu: [s390x]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==}- engines: {node: '>=12'}- cpu: [s390x]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-3BBSbgzuB9ajLoVZk0mGu+EHlBwkusRmeNYdqmznmMc9zGASFjSsxgkNsqmXugpPk00gJ0JNKh/97nxmjctdew==}engines: {node: '>=18'}@@ -3091,12 +2953,6 @@ packages:cpu: [x64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==}- engines: {node: '>=12'}- cpu: [x64]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-QSX81KhFoZGwenVyPoberggdW1nrQZSvfVDAIUXr3WqLRZGZqWk/P4T8p2SP+de2Sr5HPcvjhcJzEiulKgnxtA==}engines: {node: '>=18'}@@ -3127,12 +2983,6 @@ packages:cpu: [x64]os: [netbsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==}- engines: {node: '>=12'}- cpu: [x64]- os: [netbsd]-'@esbuild/[email protected]':resolution: {integrity: sha512-7RTytDPGU6fek/hWuN9qQpeGPBZFfB4zZgcz2VK2Z5VpdUxEI8JKYsg3JfO0n/Z1E/6l05n0unDCNc4HnhQGig==}engines: {node: '>=18'}@@ -3163,12 +3013,6 @@ packages:cpu: [x64]os: [openbsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==}- engines: {node: '>=12'}- cpu: [x64]- os: [openbsd]-'@esbuild/[email protected]':resolution: {integrity: sha512-XkA4frq1TLj4bEMB+2HnI0+4RnjbuGZfet2gs/LNs5Hc7D89ZQBHQ0gL2ND6Lzu1+QVkjp3x1gIcPKzRNP8bXw==}engines: {node: '>=18'}@@ -3199,12 +3043,6 @@ packages:cpu: [x64]os: [sunos]- '@esbuild/[email protected]':- resolution: {integrity: sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==}- engines: {node: '>=12'}- cpu: [x64]- os: [sunos]-'@esbuild/[email protected]':resolution: {integrity: sha512-fswk3XT0Uf2pGJmOpDB7yknqhVkJQkAQOcW/ccVOtfx05LkbWOaRAtn5SaqXypeKQra1QaEa841PgrSL9ubSPQ==}engines: {node: '>=18'}@@ -3223,12 +3061,6 @@ packages:cpu: [arm64]os: [win32]- '@esbuild/[email protected]':- resolution: {integrity: sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==}- engines: {node: '>=12'}- cpu: [arm64]- os: [win32]-'@esbuild/[email protected]':resolution: {integrity: sha512-ah+9b59KDTSfpaCg6VdJoOQvKjI33nTaQr4UluQwW7aEwZQsbMCfTmfEO4VyewOxx4RaDT/xCy9ra2GPWmO7Kw==}engines: {node: '>=18'}@@ -3247,12 +3079,6 @@ packages:cpu: [ia32]os: [win32]- '@esbuild/[email protected]':- resolution: {integrity: sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==}- engines: {node: '>=12'}- cpu: [ia32]- os: [win32]-'@esbuild/[email protected]':resolution: {integrity: sha512-QHPDbKkrGO8/cz9LKVnJU22HOi4pxZnZhhA2HYHez5Pz4JeffhDjf85E57Oyco163GnzNCVkZK0b/n4Y0UHcSw==}engines: {node: '>=18'}@@ -3271,12 +3097,6 @@ packages:cpu: [x64]os: [win32]- '@esbuild/[email protected]':- resolution: {integrity: sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==}- engines: {node: '>=12'}- cpu: [x64]- os: [win32]-'@esbuild/[email protected]':resolution: {integrity: sha512-9KpxSVFCu0iK1owoez6aC/s/EdUQLDN3adTxGCqxMVhrPDj6bt5dbrHDXUuq+Bs2vATFBBrQS5vdQ/Ed2P+nbw==}engines: {node: '>=18'}@@ -3301,9 +3121,6 @@ packages:'@expressive-code/[email protected]':resolution: {integrity: sha512-SN8tkIzDpA0HLAscEYD2IVrfLiid6qEdE9QLlGVSxO1KEw7qYvjpbNBQjUjMr5/jvTJ7ys6zysU2vLPHE0sb2g==}- '@fal-works/[email protected]':- resolution: {integrity: sha512-cEee/Z+I12mZcFJshKcCqC8tuX5hG3s+d+9nZ3LabqKF1vKdF41B92pJVCBggjAGORAeOzyyDDKrZwIkLffeOQ==}-'@fastify/[email protected]':resolution: {integrity: sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA==}engines: {node: '>=14'}@@ -3922,14 +3739,15 @@ packages:'@lottiefiles/[email protected]':resolution: {integrity: sha512-Zr2LCaOAoPCsdAQgeLyCSiQ1+xrAJtRCyuEYDj0qR5heUwpc+Pxbb88JyTVumcXFfKOBMOMmrlsTScLz2mrvQQ==}- '@mdx-js/[email protected]':- resolution: {integrity: sha512-NS35VhTdvKNj5/B1JSD5W3kN1R0WDHgk+zCWq+tSChQw5L2Bgeiz7yyZPFrc5LWuPVOxE1xMbJr82bO9VVzmfQ==}- peerDependencies:- esbuild: '>=0.14.0'-'@mdx-js/[email protected]':resolution: {integrity: sha512-f6ZO2ifpwAQIpzGWaBQT2TXxPv6z3RBzQKpVftEWN78Vl/YweF1uwussDx8ECAXVtr3Rs89fKyG9YlzUs9DyGQ==}+ '@mdx-js/[email protected]':+ resolution: {integrity: sha512-f++rKLQgUVYDAtECQ6fn/is15GkEH9+nZPM3MS0RcxVqoTfawHvDlSCH7JbMhAM6uJ32v3eXLvLmLvjGu7PTQw==}+ peerDependencies:+ '@types/react': '>=16'+ react: '>=16'+'@modelcontextprotocol/[email protected]':resolution: {integrity: sha512-MCGd4K9aZKvuSqdoBkdMvZNcYXCkZRYVs/Gh92mdV5IHbctX9H9uIvd4X93+9g8tBbXv08sxc/QHXTzf8y65bA==}engines: {node: '>=18'}@@ -6910,9 +6728,6 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-FGJ6udDNUCjd19pp0Q3iTiDkwhYup7J8hpMW9c4k53NrccQFFWKRho6hvtPPEhnXWKvukfwAlB6DbDz4yhH5Gg==}- '@types/[email protected]':- resolution: {integrity: sha512-A4STmOXPhMUtHH+S6ymgE2GiBSMqf4oTvcQZMcHzokuTLVYzXTB8ttjcgxOVaAp2lGwEdzZ0J+cRbbeevQj1UQ==}-'@types/[email protected]':resolution: {integrity: sha512-rO73L89PJxeYM3s3pPPjiPgVVcymqU490g0YO5n5By0k2Erzj6tay/4lr1CHAAU4JyOWd1rpQ8bCf6cZfHU96A==}@@ -6974,6 +6789,7 @@ packages:'@upstash/[email protected]':resolution: {integrity: sha512-CIr657FZuK+IMuwcxkj3oCB6xKO+LMlHd4BL4J/Lwbpj6+5YHO+5ZcpdMIQhbcemthJcRtE0gDUfZEnrfb3Rjg==}engines: {node: '>=10'}+ deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.'@upstash/[email protected]':resolution: {integrity: sha512-aB/1yqMJTRyOt7Go2Db1ZIVnmTPpsc2KGY5jpLVcegNtjksaPTJF6fmITxos5HVvsQhS8IB3gvF/+gQfRQlPLQ==}@@ -7199,9 +7015,6 @@ packages:resolution: {integrity: sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==}- resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==}-resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==}@@ -8136,11 +7949,6 @@ packages:engines: {node: '>=12'}hasBin: true- resolution: {integrity: sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==}- engines: {node: '>=12'}- hasBin: true-resolution: {integrity: sha512-9RiGKvCwaqxO2owP61uQ4BgNborAQskMR6QusfWzQqv7AZOg5oGehdY2pRJMTKuwxd1IDBP4rSbI5lHzU7SMsQ==}engines: {node: '>=18'}@@ -8211,9 +8019,6 @@ packages:resolution: {integrity: sha512-WDF+xj5rRWmD5tj6bIqRi6CkLIXbbNQUcxQHzGysQzvHmdYG2G7p/Tf0J0gpxGgkeMZNTIjT/AoSvC9Xehcgdg==}- resolution: {integrity: sha512-aMV56R27Gv3QmfmF1MY12GWkGzzeAezAX+UplqHVASfjc9wNzI/X6hC0S9oxq61WT4aQesLGslWP9tKk6ghRZQ==}-resolution: {integrity: sha512-m5KgiH85xAhhW8Wta0vShLcUvOsh3LLPI2YVwcbio1l7E09NTLL1EyMZFM1OyWowoH0skScNbhOPl4kcBgzTww==}@@ -8277,10 +8082,6 @@ packages:resolution: {integrity: sha512-LmDxfWXwcTArk8fUEnOfSZpHOJ6zOMUJKOtFLFqJLoKJetuQG874Uc7/Kki7zFLzYybmZhp1M7+98pfMqeX8yA==}- resolution: {integrity: sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==}- engines: {node: '>=0.10.0'}-resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==}@@ -8316,9 +8117,6 @@ packages:resolution: {integrity: sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==}- resolution: {integrity: sha512-WtySTkS4OKev5JtpHXnib4Gxiurzh5NCGvWrFaZ34m6JehfTUhKZvn9njTfw48t6JumVQOmrKqpmGcdwxnhqBQ==}-resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==}engines: {node: '>=12.0.0'}@@ -8391,10 +8189,6 @@ packages:resolution: {integrity: sha512-jqdObeR2rxZZbPSGL+3VckHMYtu+f9//KXBsVny6JSX/pa38Fy+bGjuG8eW/H6USNQWhLi8Num++cU2yOCNz4A==}engines: {node: '>= 0.12'}- resolution: {integrity: sha512-wzsgA6WOq+09wrU1tsJ09udeR/YZRaeArL9e1wPbFg3GG2yDnC2ldKpxs4xunpFF9DgqCqOIra3bc1HWrJ37Ww==}- engines: {node: '>=0.4.x'}-resolution: {integrity: sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==}engines: {node: '>=12.20.0'}@@ -8568,10 +8362,6 @@ packages:resolution: {integrity: sha512-DKKrynuQRne0PNpEbzuEdHlYOMksHSUI8Zc9Unei5gTsMNA2/vMpoMz/yKba50pejK56qj98qM0SjYxAKi13gQ==}engines: {node: ^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0}- resolution: {integrity: sha512-5v6yZd4JK3eMI3FqqCouswVqwugaA9r4dNZB1wwcmrD02QkV5H0y7XBQW8QwQqEaZY1pM9aqORSORhJRdNK44Q==}- engines: {node: '>=6.0'}-resolution: {integrity: sha512-pCcEwRi+TKpMlxAQObHDQ56KawURgyAf6jtIY046fJ5tIv3zDe/LEIubckAO8fj6JnAxLdmWkUfNyulQ2iKdEw==}engines: {node: '>=14.0.0'}@@ -8603,10 +8393,6 @@ packages:resolution: {integrity: sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==}engines: {node: '>= 0.4'}- resolution: {integrity: sha512-FwO1BUVWkyHasWDW4S8o0ssQXjvyghLV2rfVhnN36b2bbcj45eGiuzdn9XOvOpjV3TKQD7Gm2BWNXdE9V4KKYg==}- engines: {node: '>=12'}-resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==}engines: {node: '>= 0.4'}@@ -8867,10 +8653,6 @@ packages:engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}hasBin: true- resolution: {integrity: sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==}- engines: {node: '>=0.10.0'}-resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==}engines: {node: '>=0.10.0'}@@ -9040,10 +8822,6 @@ packages:resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}- resolution: {integrity: sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg==}- hasBin: true-resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==}hasBin: true@@ -9096,10 +8874,6 @@ packages:resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==}- resolution: {integrity: sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==}- engines: {node: '>=0.10.0'}-resolution: {integrity: sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==}engines: {node: '>=6'}@@ -9374,9 +9148,6 @@ packages:resolution: {integrity: sha512-uZhTV/8NBuw0WHkPTrCqDOl0zVe1BIng5ZtHoDk49ME1qqcjYmmLmOf0gELgcRMxN4w2iuIeVso5/6QymSrgmA==}- resolution: {integrity: sha512-LRqI9+wdgC25P0URIJY9vwocIzCcksduHQ9OF2joxQoyTNVduwLAFUzjoopuRJbJAReaKrNQKAZKL3uCMugWJA==}-resolution: {integrity: sha512-5HVP2MKaP6L+G6YaxPNjuL0BPrq9orG3TsrZ9YXbA3vDw/ACI4MEsnoDpn6ZNm7GnZgtAcONJyPhOP8tNJQavQ==}@@ -9422,12 +9193,6 @@ packages:resolution: {integrity: sha512-IEn+pegP1aManZuckezWCO+XZQDplx1366JoVhTpMpBB1sPey/SbveZQUosKiKiGYjg1wH4pMlNgXbCiYgihQA==}- resolution: {integrity: sha512-87FtxC7miUPznwqEaAlJARinHJ6Qin9kDuG2E2BCCNEOszr62kHpqivI/IF/CmwObVSpvApVFFxN1ftM/Gykvw==}- engines: {node: '>=18', npm: '>=6'}- peerDependencies:- esbuild: 0.*-resolution: {integrity: sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==}engines: {node: '>= 0.8'}@@ -9449,9 +9214,6 @@ packages:resolution: {integrity: sha512-wjcXHgk+PPdmvR58Le9d7zQYWy+vKEU9Se44p2CrCDPiLr2FMyiT4Fyb5UFKFC66wGB3kPlgD7q3TnoqPS7SZA==}- resolution: {integrity: sha512-C4AkuM3dA58cgZha7zVnuVxBhDsbttIMiytjgsM2XbHAB2faRVaHRle40558FBN+DJcrLNCoqG5mlrpdU4cRtg==}-resolution: {integrity: sha512-oOg7knzhicgQ3t4QCjCWgTmfNhvQbDDnJeVu9v81r7NltNCVmhPy1fJRX27pISafdjL+SVc4d3l48Gb6pbRypw==}@@ -9727,6 +9489,12 @@ packages:nodemailer:optional: true+ resolution: {integrity: sha512-RNNbqRpK9/dcIFZs/esQhuLA8jANqlH694yqoDBK8hkVdJUndzzGmnPHa2nyi90N4Z9VmzuSWNRpr5ItT3M7xQ==}+ engines: {node: '>=14', npm: '>=7'}+ peerDependencies:+ react: '>=16'+resolution: {integrity: sha512-cD3+ixJxf8yBYvsideTxqli3fvrB7R4BXcvsNJz8Sm2X1QN039WfiXjCyNWkub4h5++rRs6fHhchUMnOuJokcg==}peerDependencies:@@ -10028,9 +9796,6 @@ packages:resolution: {integrity: sha512-TXfryirbmq34y8QBwgqCVLi+8oA3oWx2eAnSn62ITyEhEYaWRlVZ2DvMM9eZbMs/RfxPu/PK/aBLyGj4IrqMHw==}engines: {node: '>=18'}- resolution: {integrity: sha512-twN+njEipszzlMJd4ONUYgSfZPDxgHhT9Ahed5uTigpQn90FggW4SA/AIPq/6a149fTbE9qBEcSwE3FAEp6wQQ==}-resolution: {integrity: sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==}@@ -10155,10 +9920,6 @@ packages:engines: {node: '>=18'}hasBin: true- resolution: {integrity: sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==}- engines: {node: '>=4'}-resolution: {integrity: sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==}engines: {node: '>=14.0.0'}@@ -10368,6 +10129,12 @@ packages:resolution: {integrity: sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==}+ resolution: {integrity: sha512-BsE+EnFVQzFIlyuuQrZ9iTwyKpKkqdFZV1ImEQN573QPqGrIUuNni7aF+sZwDcxlsuOMayCr6oO/PZR/yJnbRg==}+ peerDependencies:+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0+ react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0+resolution: {integrity: sha512-I42jl7L3Ze6kZaq+7zXWSunBa3b1on5yfvUW6Eo/3fFOj6dZ5Bqmcd264nJbTK/gn1HjjILAjSwnZbV4RpSaNQ==}@@ -10521,12 +10288,6 @@ packages:resolution: {integrity: sha512-ksCzCD0Fgfh7trPDxr2rSylbwq9iYDkSn8TCDmEJ49ljEUBxDVCzCHv7QNzZOfODanX4+bWQ4WZqLCRWYLfhag==}- resolution: {integrity: sha512-qCD071Y+vUxEy9yyrATPk2+W9q7qCbzZgtc9suZhu75bmRQvOlBhJt4d3WvqSMTamkKoFkvqtCjyAk+ggH+aXQ==}- engines: {node: '>=16'}- peerDependencies:- shiki: 0.x-resolution: {integrity: sha512-/aE8hCfKlQeA8LmyeyQvQF3eBiLRGNlfBJEvWH7ivp9sBqs7TNqBL5X3v157rM4IFETqDnIOO+z5M/biZbo9Ww==}@@ -10551,15 +10312,9 @@ packages:resolution: {integrity: sha512-gwglrEQEZcZYgVyG1tQuA+h58EZfq5CSULw7J90AFuCTyib1thgHPoqQ+h9iFvU6R+vnZ5oNFQR5QKgGpk741A==}- resolution: {integrity: sha512-XTFYvNASMe5iPN0719nPrdItC9aU0ssC4v14mH1BCi1u0n1gAocqcujWUrByftZTbLhRtiKRyjYTSIOcr69UVQ==}-resolution: {integrity: sha512-1quofZ2RQ9EWdeN34S79+KExV1764+wCUGop5CPL1WGdD0ocPpu91lzPGbwWMECpEpd42kJGQwzRfyov9j4yNg==}- resolution: {integrity: sha512-PZzAiDGOEfv1Ua7exQ8S5kKxkD8CDaSb4nM+1Mprs6u8dyvQifakh+kCj6NovfGXW+bTvrhjaR3srzjS2qJHKg==}-resolution: {integrity: sha512-Pjj2IYlUY3+D8x00UJsIOg5BEvfMyeI+2uLPn9VO9Wg4MEtN/VTIq2NEJQfde9PnX15KgtHyl9S0BcTnWrIuWg==}@@ -10722,10 +10477,6 @@ packages:resolution: {integrity: sha512-eflK8wEtyOE6+hsaRVPxvUKYCpRgzLqDTb8krvAsRIwOGlHoSgYLgBXoubGgLd2fT41/OUYdb48v4k4WWHQurA==}engines: {node: '>= 10.13.0'}- resolution: {integrity: sha512-vfD3pmTzGpufjScBh50YHKzEu2lxBWhVEHsNGoEXmCmn2hKGfeNLYMzCJpe8cD7gqX7TJluOVpBkAequ6dgMmA==}- engines: {node: '>=4'}-resolution: {integrity: sha512-5TF+l7p4+OsnP8BCCvSyZiSPc4x4//p5uPwK8TCnVPJYRmU2aYKMpOXvw8zM5a5JvuuCGN1jmsMwuU2W02ukfA==}@@ -10885,10 +10636,6 @@ packages:react: ^18.0.0 || ^19.0.0 || ^19.0.0-rcreact-dom: ^18.0.0 || ^19.0.0 || ^19.0.0-rc- resolution: {integrity: sha512-aSbHV0DaBcr7u0PVHXzM6NbZNAtrr9sF6+Qfs9UUVG7Ll3jQ6hHi8F/xqIIcn2rvIVbr0v/2zyjSdwSV47AgLQ==}- engines: {node: '>=12'}-resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==}engines: {node: '>=0.10.0'}@@ -10919,9 +10666,6 @@ packages:resolution: {integrity: sha512-jYXItuZuiWZyG9fIdvgTUbp2MNRuyhuSwvvhhpPJd4JK/9oSZxkD7zAj53GJtowSlXwCJzLg6sCKAoE9wXsKgg==}- resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==}-resolution: {integrity: sha512-WjlahMgHmCJpqzU8bIBy4qtsZdU9lRlcZE3Lvyej6t4tuOuv1vk57OW3MBrj6hXBFx/nNoC9MPMTcr5YA7NQbg==}engines: {node: '>=6'}@@ -11014,10 +10758,6 @@ packages:resolution: {integrity: sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==}engines: {node: '>=12'}- resolution: {integrity: sha512-uCC2VHvQRYu+lMh4My/sFNmF2klFymLX1wHJeXnbEJERpV/ZsVuonzerjfrGpIGF7LBVa1O7i9kjiWvJiFck8g==}- engines: {node: '>=0.10.0'}-resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==}engines: {node: '>=4'}@@ -11075,6 +10815,9 @@ packages:engines: {node: '>=16 || 14 >=14.17'}hasBin: true+ resolution: {integrity: sha512-eirwp9p7QcMg6EFCD6zrGh4H30uFx2YtfiMJUavagceP6/YUUjLeiQmis7QuwqKB3nXrWXlLaRumCqOd9AKpSA==}+resolution: {integrity: sha512-nMIjMrd5Z2nuB2RZCKJfFMjgS3fygbeyGk9PxPPaJR1RIcyN9yn4A63Isovzm3ZtQuEkLBVgMdPup8UeLH7aQw==}@@ -11232,9 +10975,6 @@ packages:resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==}engines: {node: '>=0.6'}- resolution: {integrity: sha512-y/mWCZinnvxjTKYhJ+pYxwD0mRLVvOtdS2Awbgxln6iEnt4rk0yBxeSBHkGJcPucRiG0e55mwWp+g/05rsrd6w==}-resolution: {integrity: sha512-GTPwEaCRN8IbYe5/VeGiwxYvMO0dKaC16fTeLbF+QGswjkLZ9JUqAfDhLMyH2SWukYhmetH+uxWa1Bhluv/evQ==}@@ -11362,10 +11102,6 @@ packages:resolution: {integrity: sha512-Ne2YiiGN8bmrmJJEuTWTLJR32nh/JdL1+PSicowtNb0WFpn59GK8/lfD61bVtzguz7b3PBt74nxpv/Pw5po5Rg==}engines: {node: '>=8'}- resolution: {integrity: sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==}- engines: {node: '>=10'}-resolution: {integrity: sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==}engines: {node: '>=16'}@@ -11461,6 +11197,9 @@ packages:resolution: {integrity: sha512-Hp5Kh3wLxv0PHj9m2yZhhLt58KzPtEYKQQ4yxfYFEO7EvHwzyDYnduhHnY1mDxoqr7VUwVuHXk9RXKIiYS1N8Q==}+ resolution: {integrity: sha512-kfCqZK5YVY5yEa89tvpl7KnBBHu2c6CzMkqHUrlOqaRgGOMp0sMvwWOVrbAtj03KhovQB7i96Gda72v/EFE0vw==}+resolution: {integrity: sha512-b4gokeGId57UVRX/eVKej5gXqGlc9+trkORhFJpu9raqZkZhU0zm8Doi05+HaiBsMEIJowL+2WtQ5ItjsngPXg==}@@ -11669,6 +11408,9 @@ packages:resolution: {integrity: sha512-5yXvWDEgqeiYiBe1lbxYF7UMAIm/IcopxMHrMQDq3nvKcjPKIhZklUKL+AE7J7uApI4kwe2snsK+eI6UTj9EHg==}+ resolution: {integrity: sha512-o6roP82AiX0XfkyTHyRCMXgHfltUNlXSEqCIS80f+mbAyiQBE2fxtDVMtseyytGx75sihiJFo/zR6r/4LTs2Cw==}+resolution: {integrity: sha512-fa0Z6P8HUrQN4BZaX05SIVXic+7kE3b05PWAtPuYP9QLHsLKYR7/AlLW3NtOrpXRLeawpDLMsVkmk5DG0NXgWw==}@@ -13154,42 +12896,6 @@ snapshots:dependencies:zod: 3.25.76- '@content-collections/[email protected]([email protected])':- dependencies:- '@parcel/watcher': 2.5.1- camelcase: 8.0.0- esbuild: 0.21.5- gray-matter: 4.0.3- p-limit: 6.2.0- picomatch: 4.0.3- pluralize: 8.0.0- serialize-javascript: 6.0.2- tinyglobby: 0.2.15- typescript: 5.7.2- yaml: 2.8.1- zod: 3.25.76-- '@content-collections/[email protected](@content-collections/[email protected]([email protected]))':- dependencies:- '@content-collections/core': 0.7.3([email protected])-- '@content-collections/[email protected](@content-collections/[email protected]([email protected]))([email protected]([email protected]))([email protected])':- dependencies:- '@content-collections/core': 0.7.3([email protected])- esbuild: 0.21.5- mdx-bundler: 10.1.1([email protected])- react: 19.2.0- react-dom: 19.2.0([email protected])- unified: 11.0.5- transitivePeerDependencies:- - supports-color-- '@content-collections/[email protected](@content-collections/[email protected]([email protected]))([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))':- dependencies:- '@content-collections/core': 0.7.3([email protected])- '@content-collections/integrations': 0.2.1(@content-collections/[email protected]([email protected]))- next: 16.0.4(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])-'@cspotcode/[email protected]':dependencies:'@jridgewell/trace-mapping': 0.3.9@@ -13377,19 +13083,6 @@ snapshots:'@esbuild-kit/core-utils': 3.3.2get-tsconfig: 4.13.0- '@esbuild-plugins/[email protected]([email protected])':- dependencies:- '@types/resolve': 1.20.6- debug: 4.4.3- esbuild: 0.21.5- escape-string-regexp: 4.0.0- resolve: 1.22.11- transitivePeerDependencies:- - supports-color-- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -13399,9 +13092,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -13411,9 +13101,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -13423,9 +13110,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -13435,9 +13119,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -13447,9 +13128,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -13459,9 +13137,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -13471,9 +13146,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -13483,9 +13155,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -13495,9 +13164,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -13507,9 +13173,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -13519,9 +13182,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -13531,9 +13191,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -13543,9 +13200,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -13555,9 +13209,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -13567,9 +13218,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -13579,9 +13227,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -13597,9 +13242,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -13615,9 +13257,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -13633,9 +13272,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -13645,9 +13281,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -13657,9 +13290,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -13669,9 +13299,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -13703,8 +13330,6 @@ snapshots:dependencies:'@expressive-code/core': 0.41.3- '@fal-works/[email protected]': {}-'@fastify/[email protected]': {}'@floating-ui/[email protected]':@@ -14254,17 +13879,6 @@ snapshots:'@lottiefiles/[email protected]': {}- '@mdx-js/[email protected]([email protected])':- dependencies:- '@mdx-js/mdx': 3.1.1- '@types/unist': 3.0.3- esbuild: 0.21.5- source-map: 0.7.6- vfile: 6.0.3- vfile-message: 4.0.3- transitivePeerDependencies:- - supports-color-'@mdx-js/[email protected]':dependencies:'@types/estree': 1.0.8@@ -14295,6 +13909,12 @@ snapshots:transitivePeerDependencies:- supports-color+ dependencies:+ '@types/mdx': 2.0.13+ '@types/react': 19.2.2+ react: 19.2.0+'@modelcontextprotocol/[email protected]([email protected])':dependencies:ajv: 8.17.1@@ -16508,7 +16128,7 @@ snapshots:json5: 2.2.3log-symbols: 4.1.0module-punycode: [email protected]- next: 15.5.2(@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ next: 15.5.2(@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])node-html-parser: 7.0.1ora: 5.4.1pretty-bytes: 6.1.1@@ -16832,32 +16452,6 @@ snapshots:- supports-color- webpack- '@sentry/[email protected](@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))':- dependencies:- '@opentelemetry/api': 1.9.0- '@opentelemetry/semantic-conventions': 1.38.0- '@rollup/plugin-commonjs': 28.0.1([email protected])- '@sentry-internal/browser-utils': 10.22.0- '@sentry/bundler-plugin-core': 4.6.1- '@sentry/core': 10.22.0- '@sentry/node': 10.22.0- '@sentry/opentelemetry': 10.22.0(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected])- '@sentry/react': 10.22.0([email protected])- '@sentry/vercel-edge': 10.22.0- '@sentry/webpack-plugin': 4.6.1([email protected]([email protected]))- next: 16.0.4(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])- resolve: 1.22.8- rollup: 4.53.3- stacktrace-parser: 0.1.11- transitivePeerDependencies:- - '@opentelemetry/context-async-hooks'- - '@opentelemetry/core'- - '@opentelemetry/sdk-trace-base'- - encoding- - react- - supports-color- - webpack-'@sentry/[email protected](@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected])':dependencies:'@opentelemetry/api': 1.9.0@@ -16968,16 +16562,6 @@ snapshots:'@opentelemetry/resources': 2.2.0(@opentelemetry/[email protected])'@sentry/core': 10.22.0- dependencies:- '@sentry/bundler-plugin-core': 4.6.1- unplugin: 1.0.1- uuid: 9.0.1- webpack: 5.103.0([email protected])- transitivePeerDependencies:- - encoding- - supports-color-'@sentry/[email protected]([email protected])':dependencies:'@sentry/bundler-plugin-core': 4.6.1@@ -17897,8 +17481,6 @@ snapshots:'@types/tough-cookie': 4.0.5form-data: 2.5.5- '@types/[email protected]': {}-'@types/[email protected]':dependencies:'@types/node': 24.0.8@@ -18246,10 +17828,6 @@ snapshots:- dependencies:- sprintf-js: 1.0.3-@@ -19212,32 +18790,6 @@ snapshots:'@esbuild/win32-ia32': 0.18.20'@esbuild/win32-x64': 0.18.20- optionalDependencies:- '@esbuild/aix-ppc64': 0.21.5- '@esbuild/android-arm': 0.21.5- '@esbuild/android-arm64': 0.21.5- '@esbuild/android-x64': 0.21.5- '@esbuild/darwin-arm64': 0.21.5- '@esbuild/darwin-x64': 0.21.5- '@esbuild/freebsd-arm64': 0.21.5- '@esbuild/freebsd-x64': 0.21.5- '@esbuild/linux-arm': 0.21.5- '@esbuild/linux-arm64': 0.21.5- '@esbuild/linux-ia32': 0.21.5- '@esbuild/linux-loong64': 0.21.5- '@esbuild/linux-mips64el': 0.21.5- '@esbuild/linux-ppc64': 0.21.5- '@esbuild/linux-riscv64': 0.21.5- '@esbuild/linux-s390x': 0.21.5- '@esbuild/linux-x64': 0.21.5- '@esbuild/netbsd-x64': 0.21.5- '@esbuild/openbsd-x64': 0.21.5- '@esbuild/sunos-x64': 0.21.5- '@esbuild/win32-arm64': 0.21.5- '@esbuild/win32-ia32': 0.21.5- '@esbuild/win32-x64': 0.21.5-optionalDependencies:'@esbuild/aix-ppc64': 0.25.10@@ -19353,10 +18905,6 @@ snapshots:astring: 1.9.0source-map: 0.7.6- dependencies:- '@types/estree': 1.0.8-dependencies:'@types/estree-jsx': 1.0.5@@ -19455,10 +19003,6 @@ snapshots:- dependencies:- is-extendable: 0.1.1-@@ -19499,10 +19043,6 @@ snapshots:dependencies:reusify: 1.1.0- dependencies:- format: 0.2.2-optionalDependencies:picomatch: 4.0.3@@ -19590,8 +19130,6 @@ snapshots:mime-types: 2.1.35safe-buffer: 5.2.1- [email protected]: {}-dependencies:fetch-blob: 3.2.0@@ -19804,13 +19342,6 @@ snapshots:- dependencies:- js-yaml: 3.14.2- kind-of: 6.0.3- section-matter: 1.0.0- strip-bom-string: 1.0.0-dependencies:gaxios: 6.7.1@@ -19852,12 +19383,6 @@ snapshots:dependencies:has-symbols: 1.1.0- dependencies:- is-obj: 3.0.0- sort-keys: 5.1.0- type-fest: 1.4.0-dependencies:function-bind: 1.1.2@@ -20293,8 +19818,6 @@ snapshots:- [email protected]: {}-@@ -20418,11 +19941,6 @@ snapshots:- dependencies:- argparse: 1.0.10- esprima: 4.0.1-dependencies:argparse: 2.0.1@@ -20472,8 +19990,6 @@ snapshots:dependencies:json-buffer: 3.0.1- [email protected]: {}-@@ -20747,17 +20263,6 @@ snapshots:transitivePeerDependencies:- supports-color- dependencies:- '@types/mdast': 4.0.4- devlop: 1.1.0- escape-string-regexp: 5.0.0- mdast-util-from-markdown: 2.0.2- mdast-util-to-markdown: 2.1.2- micromark-extension-frontmatter: 2.0.0- transitivePeerDependencies:- - supports-color-dependencies:'@types/mdast': 4.0.4@@ -20899,21 +20404,6 @@ snapshots:- dependencies:- '@babel/runtime': 7.28.4- '@esbuild-plugins/node-resolve': 0.2.2([email protected])- '@fal-works/esbuild-plugin-global-externals': 2.1.2- '@mdx-js/esbuild': 3.1.1([email protected])- esbuild: 0.21.5- gray-matter: 4.0.3- remark-frontmatter: 5.0.0- remark-mdx-frontmatter: 4.0.0- uuid: 9.0.1- vfile: 6.0.3- transitivePeerDependencies:- - supports-color-@@ -20951,13 +20441,6 @@ snapshots:micromark-util-types: 2.0.2parse-entities: 4.0.2- dependencies:- fault: 2.0.1- micromark-util-character: 2.1.1- micromark-util-symbol: 2.0.1- micromark-util-types: 2.0.2-dependencies:micromark-util-character: 2.1.1@@ -21350,6 +20833,19 @@ snapshots:next: 16.0.4(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])react: 19.2.0+ dependencies:+ '@babel/code-frame': 7.27.1+ '@mdx-js/mdx': 3.1.1+ '@mdx-js/react': 3.1.1(@types/[email protected])([email protected])+ react: 19.2.0+ unist-util-remove: 3.1.1+ vfile: 6.0.3+ vfile-matter: 5.0.1+ transitivePeerDependencies:+ - '@types/react'+ - supports-color+[email protected]([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]):dependencies:next: 16.0.4(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])@@ -21367,7 +20863,7 @@ snapshots:react: 19.2.0react-dom: 19.2.0([email protected])- [email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]):+ [email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]):dependencies:'@next/env': 15.5.2'@swc/helpers': 0.5.15@@ -21727,8 +21223,6 @@ snapshots:- [email protected]: {}-dependencies:entities: 6.0.1@@ -21833,8 +21327,6 @@ snapshots:optionalDependencies:fsevents: 2.3.2- [email protected]: {}-dependencies:postcss: 8.4.38@@ -22078,6 +21570,11 @@ snapshots:+ dependencies:+ react: 19.2.0+ react-dom: 19.2.0([email protected])+dependencies:fast-deep-equal: 2.0.1@@ -22297,13 +21794,6 @@ snapshots:hast-util-from-html: 2.0.3unified: 11.0.5- dependencies:- '@types/hast': 2.3.10- hash-obj: 4.0.0- parse-numeric-range: 1.3.0- shiki: 0.14.4-dependencies:'@types/hast': 3.0.4@@ -22366,15 +21856,6 @@ snapshots:transitivePeerDependencies:- supports-color- dependencies:- '@types/mdast': 4.0.4- mdast-util-frontmatter: 2.0.1- micromark-extension-frontmatter: 2.0.0- unified: 11.0.5- transitivePeerDependencies:- - supports-color-dependencies:'@types/mdast': 4.0.4@@ -22386,15 +21867,6 @@ snapshots:transitivePeerDependencies:- supports-color- dependencies:- '@types/mdast': 4.0.4- estree-util-is-identifier-name: 3.0.0- estree-util-value-to-estree: 3.5.0- toml: 3.0.0- unified: 11.0.5- yaml: 2.8.1-dependencies:mdast-util-mdx: 3.0.0@@ -22618,11 +22090,6 @@ snapshots:ajv-formats: 2.1.1([email protected])ajv-keywords: 5.1.0([email protected])- dependencies:- extend-shallow: 2.0.1- kind-of: 6.0.3-dependencies:parseley: 0.12.1@@ -22941,10 +22408,6 @@ snapshots:react: 19.2.0react-dom: 19.2.0([email protected])- dependencies:- is-plain-obj: 4.1.0-@@ -22966,8 +22429,6 @@ snapshots:- [email protected]: {}-dependencies:type-fest: 0.7.1@@ -23092,8 +22553,6 @@ snapshots:dependencies:ansi-regex: 6.2.2- [email protected]: {}-@@ -23152,6 +22611,8 @@ snapshots:tinyglobby: 0.2.15ts-interface-checker: 0.1.13+ [email protected]: {}+@@ -23247,17 +22708,6 @@ snapshots:- encoding- supports-color- dependencies:- '@jridgewell/trace-mapping': 0.3.31- jest-worker: 27.5.1- schema-utils: 4.3.3- serialize-javascript: 6.0.2- terser: 5.44.1- webpack: 5.103.0([email protected])- optionalDependencies:- esbuild: 0.21.5-dependencies:'@jridgewell/trace-mapping': 0.3.31@@ -23346,8 +22796,6 @@ snapshots:- [email protected]: {}-dependencies:'@sentry/core': 8.9.2@@ -23509,8 +22957,6 @@ snapshots:- [email protected]: {}-@@ -23626,6 +23072,12 @@ snapshots:'@types/unist': 3.0.3unist-util-visit: 5.0.0+ dependencies:+ '@types/unist': 2.0.11+ unist-util-is: 5.2.1+ unist-util-visit-parents: 5.1.3+dependencies:'@types/unist': 3.0.3@@ -23787,6 +23239,11 @@ snapshots:'@types/unist': 3.0.3vfile: 6.0.3+ dependencies:+ vfile: 6.0.3+ yaml: 2.8.1+dependencies:'@types/unist': 2.0.11@@ -24004,38 +23461,6 @@ snapshots:- esbuild- uglify-js- dependencies:- '@types/eslint-scope': 3.7.7- '@types/estree': 1.0.8- '@types/json-schema': 7.0.15- '@webassemblyjs/ast': 1.14.1- '@webassemblyjs/wasm-edit': 1.14.1- '@webassemblyjs/wasm-parser': 1.14.1- acorn: 8.15.0- acorn-import-phases: 1.0.4([email protected])- browserslist: 4.28.0- chrome-trace-event: 1.0.4- enhanced-resolve: 5.18.3- es-module-lexer: 1.7.0- eslint-scope: 5.1.1- events: 3.3.0- glob-to-regexp: 0.4.1- graceful-fs: 4.2.11- json-parse-even-better-errors: 2.3.1- loader-runner: 4.3.1- mime-types: 2.1.35- neo-async: 2.6.2- schema-utils: 4.3.3- tapable: 2.3.0- watchpack: 2.4.4- webpack-sources: 3.3.3- transitivePeerDependencies:- - '@swc/core'- - esbuild- - uglify-js-dependencies:'@types/eslint-scope': 3.7.7