Skip to content

Open-source status page, incident response and uptime monitoring

chore: switch tooling from biome to oxc (#2250)

Colin Ozanne1d32fd78c0fc
diff --git a/.oxlintrc.json b/.oxlintrc.json
deleted file mode 100644
index d1ecb0f27..000000000
--- a/.oxlintrc.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "$schema": "./node_modules/oxlint/configuration_schema.json",
- "ignorePatterns": ["**/*.test.ts", "**/*_pb.ts"]
-}
diff --git a/.prettierignore b/.prettierignore
deleted file mode 100644
index 8795b4d5f..000000000
--- a/.prettierignore
+++ /dev/null
@@ -1 +0,0 @@
-**/.content-collections
diff --git a/.vscode/extensions.json b/.vscode/extensions.json
new file mode 100644
index 000000000..523f820b2
--- /dev/null
+++ b/.vscode/extensions.json
@@ -0,0 +1,4 @@
+{
+ "recommendations": ["oxc.oxc-vscode"],
+ "unwantedRecommendations": ["biomejs.biome"]
+}
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 4d9b67c52..0abbd5912 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -1,8 +1,7 @@
{
"editor.codeActionsOnSave": {
- "source.organizeImports.biome": "explicit"
+ "source.fixAll.oxc": "explicit"
},
- "editor.defaultFormatter": "biomejs.biome",
"editor.formatOnSave": true,
"typescript.tsdk": "node_modules/typescript/lib",
diff --git a/.zed/settings.json b/.zed/settings.json
index a10b829ce..0ea1254c9 100644
--- a/.zed/settings.json
+++ b/.zed/settings.json
@@ -22,151 +22,89 @@
}
},
"languages": {
- "CSS": {
+ "TypeScript": {
+ "language_servers": [
+ "vtsls",
+ "oxlint",
+ "oxfmt",
+ "tailwindcss-language-server"
+ ],
"format_on_save": "on",
- "prettier": {
- "allowed": false
- },
- "formatter": [
- {
- "language_server": {
- "name": "oxfmt"
- }
- }
- ]
+ "formatter": [{ "language_server": { "name": "oxfmt" } }],
+ "code_actions_on_format": { "source.fixAll.oxc": true },
+ "prettier": { "allowed": false }
},
- "HTML": {
+ "TSX": {
+ "language_servers": [
+ "vtsls",
+ "oxlint",
+ "oxfmt",
+ "tailwindcss-language-server"
+ ],
"format_on_save": "on",
- "prettier": {
- "allowed": false
- },
- "formatter": [
- {
- "language_server": {
- "name": "oxfmt"
- }
- }
- ]
+ "formatter": [{ "language_server": { "name": "oxfmt" } }],
+ "code_actions_on_format": { "source.fixAll.oxc": true },
+ "prettier": { "allowed": false }
},
"JavaScript": {
+ "language_servers": [
+ "vtsls",
+ "oxlint",
+ "oxfmt",
+ "tailwindcss-language-server"
+ ],
"format_on_save": "on",
- "prettier": {
- "allowed": false
- },
- "formatter": [
- {
- "language_server": {
- "name": "oxfmt"
- }
- },
- {
- "code_action": "source.fixAll.oxc"
- }
- ]
+ "formatter": [{ "language_server": { "name": "oxfmt" } }],
+ "code_actions_on_format": { "source.fixAll.oxc": true },
+ "prettier": { "allowed": false }
},
"JSON": {
+ "language_servers": ["json-language-server", "oxfmt"],
"format_on_save": "on",
- "prettier": {
- "allowed": false
- },
- "formatter": [
- {
- "language_server": {
- "name": "oxfmt"
- }
- }
- ]
+ "formatter": [{ "language_server": { "name": "oxfmt" } }],
+ "prettier": { "allowed": false }
},
"JSONC": {
+ "language_servers": ["json-language-server", "oxfmt"],
"format_on_save": "on",
- "prettier": {
- "allowed": false
- },
- "formatter": [
- {
- "language_server": {
- "name": "oxfmt"
- }
- }
- ]
+ "formatter": [{ "language_server": { "name": "oxfmt" } }],
+ "prettier": { "allowed": false }
},
- "Markdown": {
+ "CSS": {
+ "language_servers": ["tailwindcss-language-server", "oxfmt"],
"format_on_save": "on",
- "prettier": {
- "allowed": false
- },
- "formatter": [
- {
- "language_server": {
- "name": "oxfmt"
- }
- }
- ]
+ "formatter": [{ "language_server": { "name": "oxfmt" } }],
+ "prettier": { "allowed": false }
},
- "MDX": {
+ "SCSS": {
+ "language_servers": ["tailwindcss-language-server", "oxfmt"],
"format_on_save": "on",
- "prettier": {
- "allowed": false
- },
- "formatter": [
- {
- "language_server": {
- "name": "oxfmt"
- }
- }
- ]
+ "formatter": [{ "language_server": { "name": "oxfmt" } }],
+ "prettier": { "allowed": false }
},
- "SCSS": {
+ "HTML": {
+ "language_servers": ["oxfmt"],
"format_on_save": "on",
- "prettier": {
- "allowed": false
- },
- "formatter": [
- {
- "language_server": {
- "name": "oxfmt"
- }
- }
- ]
+ "formatter": [{ "language_server": { "name": "oxfmt" } }],
+ "prettier": { "allowed": false }
},
- "TypeScript": {
+ "Markdown": {
+ "language_servers": ["oxfmt"],
"format_on_save": "on",
- "prettier": {
- "allowed": false
- },
- "formatter": [
- {
- "language_server": {
- "name": "oxfmt"
- }
- }
- ]
+ "formatter": [{ "language_server": { "name": "oxfmt" } }],
+ "prettier": { "allowed": false }
},
- "TSX": {
+ "MDX": {
+ "language_servers": ["oxfmt"],
"format_on_save": "on",
- "prettier": {
- "allowed": false
- },
- "formatter": [
- {
- "language_server": {
- "name": "oxfmt"
- }
- }
- ]
+ "formatter": [{ "language_server": { "name": "oxfmt" } }],
+ "prettier": { "allowed": false }
},
"YAML": {
+ "language_servers": ["yaml-language-server", "oxfmt"],
"format_on_save": "on",
- "prettier": {
- "allowed": false
- },
- "formatter": [
- {
- "language_server": {
- "name": "oxfmt"
- }
- }
- ]
+ "formatter": [{ "language_server": { "name": "oxfmt" } }],
+ "prettier": { "allowed": false }
}
}
}
diff --git a/apps/dashboard/src/app/(dashboard)/agents/breadcrumb.tsx b/apps/dashboard/src/app/(dashboard)/agents/breadcrumb.tsx
index 7242d4a13..f60bdeb77 100644
--- a/apps/dashboard/src/app/(dashboard)/agents/breadcrumb.tsx
+++ b/apps/dashboard/src/app/(dashboard)/agents/breadcrumb.tsx
@@ -1,8 +1,9 @@
"use client";
-import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";
import { Bot } from "lucide-react";
+import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";
+
export function Breadcrumb() {
return (
<NavBreadcrumb
diff --git a/apps/dashboard/src/app/(dashboard)/agents/nav-actions.tsx b/apps/dashboard/src/app/(dashboard)/agents/nav-actions.tsx
index 9c9130c9f..4bb9b6669 100644
--- a/apps/dashboard/src/app/(dashboard)/agents/nav-actions.tsx
+++ b/apps/dashboard/src/app/(dashboard)/agents/nav-actions.tsx
@@ -1,4 +1,3 @@
-import { NavFeedback } from "@/components/nav/nav-feedback";
import { Button } from "@openstatus/ui/components/ui/button";
import {
Tooltip,
@@ -8,6 +7,8 @@ import {
} from "@openstatus/ui/components/ui/tooltip";
import { Book } from "lucide-react";
+import { NavFeedback } from "@/components/nav/nav-feedback";
+
export function NavActions() {
return (
<div className="flex items-center gap-2 text-sm">
@@ -21,7 +22,7 @@ export function NavActions() {
target="_blank"
rel="noreferrer"
>
- <Book className="h-4 w-4 text-muted-foreground group-hover:text-foreground" />
+ <Book className="text-muted-foreground group-hover:text-foreground h-4 w-4" />
</a>
</Button>
</TooltipTrigger>
diff --git a/apps/dashboard/src/app/(dashboard)/agents/page.tsx b/apps/dashboard/src/app/(dashboard)/agents/page.tsx
index 98b92e5b4..add05eca2 100644
--- a/apps/dashboard/src/app/(dashboard)/agents/page.tsx
+++ b/apps/dashboard/src/app/(dashboard)/agents/page.tsx
@@ -1,5 +1,9 @@
"use client";
+import { Button } from "@openstatus/ui/components/ui/button";
+import { useQuery } from "@tanstack/react-query";
+import { Info } from "lucide-react";
+
import { Code } from "@/components/common/code";
import { Link } from "@/components/common/link";
import { Note } from "@/components/common/note";
@@ -11,9 +15,6 @@ import {
} from "@/components/content/section";
import { Section } from "@/components/content/section";
import { useTRPC } from "@/lib/trpc/client";
-import { Button } from "@openstatus/ui/components/ui/button";
-import { useQuery } from "@tanstack/react-query";
-import { Info } from "lucide-react";
const messages = [
{
diff --git a/apps/dashboard/src/app/(dashboard)/cli/breadcrumb.tsx b/apps/dashboard/src/app/(dashboard)/cli/breadcrumb.tsx
index 954f94b6d..aa7c0fe1d 100644
--- a/apps/dashboard/src/app/(dashboard)/cli/breadcrumb.tsx
+++ b/apps/dashboard/src/app/(dashboard)/cli/breadcrumb.tsx
@@ -1,8 +1,9 @@
"use client";
-import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";
import { Terminal } from "lucide-react";
+import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";
+
export function Breadcrumb() {
return (
<NavBreadcrumb items={[{ type: "page", label: "CLI", icon: Terminal }]} />
diff --git a/apps/dashboard/src/app/(dashboard)/cli/nav-actions.tsx b/apps/dashboard/src/app/(dashboard)/cli/nav-actions.tsx
index 9c9130c9f..4bb9b6669 100644
--- a/apps/dashboard/src/app/(dashboard)/cli/nav-actions.tsx
+++ b/apps/dashboard/src/app/(dashboard)/cli/nav-actions.tsx
@@ -1,4 +1,3 @@
-import { NavFeedback } from "@/components/nav/nav-feedback";
import { Button } from "@openstatus/ui/components/ui/button";
import {
Tooltip,
@@ -8,6 +7,8 @@ import {
} from "@openstatus/ui/components/ui/tooltip";
import { Book } from "lucide-react";
+import { NavFeedback } from "@/components/nav/nav-feedback";
+
export function NavActions() {
return (
<div className="flex items-center gap-2 text-sm">
@@ -21,7 +22,7 @@ export function NavActions() {
target="_blank"
rel="noreferrer"
>
- <Book className="h-4 w-4 text-muted-foreground group-hover:text-foreground" />
+ <Book className="text-muted-foreground group-hover:text-foreground h-4 w-4" />
</a>
</Button>
</TooltipTrigger>
diff --git a/apps/dashboard/src/app/(dashboard)/cli/page.tsx b/apps/dashboard/src/app/(dashboard)/cli/page.tsx
index a2a9a455f..52bea3881 100644
--- a/apps/dashboard/src/app/(dashboard)/cli/page.tsx
+++ b/apps/dashboard/src/app/(dashboard)/cli/page.tsx
@@ -1,12 +1,3 @@
-import { Code } from "@/components/common/code";
-import { Link } from "@/components/common/link";
-import {
- SectionDescription,
- SectionGroup,
- SectionHeader,
- SectionTitle,
-} from "@/components/content/section";
-import { Section } from "@/components/content/section";
import {
Tabs,
TabsContent,
@@ -24,6 +15,16 @@ import {
} from "lucide-react";
import React from "react";
+import { Code } from "@/components/common/code";
+import { Link } from "@/components/common/link";
+import {
+ SectionDescription,
+ SectionGroup,
+ SectionHeader,
+ SectionTitle,
+} from "@/components/content/section";
+import { Section } from "@/components/content/section";
+
const OS = ["macOs", "Windows", "Linux"] as const;
const installs = [
@@ -209,7 +210,7 @@ export default function Page() {
return (
<div key={i} className="flex flex-col gap-3">
<div className="flex flex-col gap-1">
- <p className="flex items-center gap-2 font-medium text-sm">
+ <p className="flex items-center gap-2 text-sm font-medium">
<step.icon className="size-4" />
{step.title}
</p>
diff --git a/apps/dashboard/src/app/(dashboard)/error.tsx b/apps/dashboard/src/app/(dashboard)/error.tsx
index 4f56152f5..c138f904a 100644
--- a/apps/dashboard/src/app/(dashboard)/error.tsx
+++ b/apps/dashboard/src/app/(dashboard)/error.tsx
@@ -1,11 +1,12 @@
"use client";
-import { Code } from "@/components/common/code";
import { Button } from "@openstatus/ui/components/ui/button";
import * as Sentry from "@sentry/nextjs";
import Link from "next/link";
import { useEffect } from "react";
+import { Code } from "@/components/common/code";
+
export default function ErrorPage({
error,
reset,
@@ -19,11 +20,11 @@ export default function ErrorPage({
return (
<main className="flex min-h-screen w-full flex-col items-center justify-center p-4 md:p-8">
- <div className="mx-auto w-full max-w-md rounded-lg border border-border bg-sidebar">
+ <div className="border-border bg-sidebar mx-auto w-full max-w-md rounded-lg border">
<div className="flex flex-col gap-6 p-6 sm:p-8">
<div className="flex flex-col gap-1 text-center">
- <p className="font-mono text-destructive">500 Error</p>
- <h2 className="font-cal text-2xl text-foreground">
+ <p className="text-destructive font-mono">500 Error</p>
+ <h2 className="font-cal text-foreground text-2xl">
Something went wrong
</h2>
<p className="text-muted-foreground text-sm">
@@ -38,7 +39,7 @@ export default function ErrorPage({
</p>
</div>
{process.env.NODE_ENV === "development" && (
- <Code className="max-h-40 overflow-auto rounded-md border border-border bg-background text-destructive">
+ <Code className="border-border bg-background text-destructive max-h-40 overflow-auto rounded-md border">
{error.message}
{error.stack && `\n\n${error.stack}`}
</Code>
diff --git a/apps/dashboard/src/app/(dashboard)/invite/client.tsx b/apps/dashboard/src/app/(dashboard)/invite/client.tsx
index 55a597140..1b7c5f267 100644
--- a/apps/dashboard/src/app/(dashboard)/invite/client.tsx
+++ b/apps/dashboard/src/app/(dashboard)/invite/client.tsx
@@ -1,5 +1,12 @@
"use client";
+import { Button } from "@openstatus/ui/components/ui/button";
+import { useMutation, useQuery } from "@tanstack/react-query";
+import { isTRPCClientError } from "@trpc/client";
+import { useQueryStates } from "nuqs";
+import { useTransition } from "react";
+import { toast } from "sonner";
+
import {
Section,
SectionDescription,
@@ -8,12 +15,7 @@ import {
SectionTitle,
} from "@/components/content/section";
import { useTRPC } from "@/lib/trpc/client";
-import { Button } from "@openstatus/ui/components/ui/button";
-import { useMutation, useQuery } from "@tanstack/react-query";
-import { isTRPCClientError } from "@trpc/client";
-import { useQueryStates } from "nuqs";
-import { useTransition } from "react";
-import { toast } from "sonner";
+
import { searchParamsParsers } from "./search-params";
export function Client() {
diff --git a/apps/dashboard/src/app/(dashboard)/invite/layout.tsx b/apps/dashboard/src/app/(dashboard)/invite/layout.tsx
index 23734266d..b7cc3fdb5 100644
--- a/apps/dashboard/src/app/(dashboard)/invite/layout.tsx
+++ b/apps/dashboard/src/app/(dashboard)/invite/layout.tsx
@@ -5,6 +5,7 @@ import {
} from "@/components/nav/app-header";
import { AppSidebarTrigger } from "@/components/nav/app-sidebar";
import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";
+
import { NavActions } from "./nav-actions";
export default function Layout({ children }: { children: React.ReactNode }) {
diff --git a/apps/dashboard/src/app/(dashboard)/invite/page.tsx b/apps/dashboard/src/app/(dashboard)/invite/page.tsx
index d1e38078a..80673532f 100644
--- a/apps/dashboard/src/app/(dashboard)/invite/page.tsx
+++ b/apps/dashboard/src/app/(dashboard)/invite/page.tsx
@@ -1,6 +1,8 @@
-import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";
import { redirect } from "next/navigation";
import type { SearchParams } from "nuqs";
+
+import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";
+
import { Client } from "./client";
import { searchParamsCache } from "./search-params";
diff --git a/apps/dashboard/src/app/(dashboard)/layout.tsx b/apps/dashboard/src/app/(dashboard)/layout.tsx
index 4d04c2468..425081dcf 100644
--- a/apps/dashboard/src/app/(dashboard)/layout.tsx
+++ b/apps/dashboard/src/app/(dashboard)/layout.tsx
@@ -1,13 +1,14 @@
+import {
+ SidebarInset,
+ SidebarProvider,
+} from "@openstatus/ui/components/ui/sidebar";
+
import { AppSidebar } from "@/components/nav/app-sidebar";
import {
LEFT_SIDEBAR_COOKIE,
getSidebarDefaultOpen,
} from "@/lib/sidebar-cookie";
import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";
-import {
- SidebarInset,
- SidebarProvider,
-} from "@openstatus/ui/components/ui/sidebar";
export default async function Layout({
children,
diff --git a/apps/dashboard/src/app/(dashboard)/monitors/(list)/breadcrumb.tsx b/apps/dashboard/src/app/(dashboard)/monitors/(list)/breadcrumb.tsx
index fc0bf24f4..744e30462 100644
--- a/apps/dashboard/src/app/(dashboard)/monitors/(list)/breadcrumb.tsx
+++ b/apps/dashboard/src/app/(dashboard)/monitors/(list)/breadcrumb.tsx
@@ -1,8 +1,9 @@
"use client";
-import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";
import { Activity } from "lucide-react";
+import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";
+
export function Breadcrumb() {
return (
<NavBreadcrumb
diff --git a/apps/dashboard/src/app/(dashboard)/monitors/(list)/client.tsx b/apps/dashboard/src/app/(dashboard)/monitors/(list)/client.tsx
index 7ba47b3a9..2513ab866 100644
--- a/apps/dashboard/src/app/(dashboard)/monitors/(list)/client.tsx
+++ b/apps/dashboard/src/app/(dashboard)/monitors/(list)/client.tsx
@@ -1,5 +1,11 @@
"use client";
+import { useQuery } from "@tanstack/react-query";
+import type { ColumnFiltersState, SortingState } from "@tanstack/react-table";
+import { ArrowDown, CheckCircle, ListFilter } from "lucide-react";
+import { useQueryStates } from "nuqs";
+import { useEffect, useState } from "react";
+
import {
Section,
SectionDescription,
@@ -22,11 +28,7 @@ import { DataTable } from "@/components/ui/data-table/data-table";
import { DataTablePaginationSimple } from "@/components/ui/data-table/data-table-pagination";
import { getMonitorListMetrics } from "@/data/metrics.client";
import { useTRPC } from "@/lib/trpc/client";
-import { useQuery } from "@tanstack/react-query";
-import type { ColumnFiltersState, SortingState } from "@tanstack/react-table";
-import { ArrowDown, CheckCircle, ListFilter } from "lucide-react";
-import { useQueryStates } from "nuqs";
-import { useEffect, useState } from "react";
+
import { searchParamsParsers } from "./search-params";
const icons = {
@@ -78,7 +80,6 @@ export function Client() {
});
// TODO: ideally we read from the searchParamsCache and there is no layout shift
- // biome-ignore lint/correctness/useExhaustiveDependencies: <explanation>
useEffect(() => {
if (searchParams.status) {
setColumnFilters([{ id: "status", value: [searchParams.status] }]);
@@ -170,12 +171,12 @@ export function Client() {
isLoadingHttp || isLoadingTcp
? undefined
: monitor.jobType === "http"
- ? globalHttpMetrics?.data?.find(
+ ? (globalHttpMetrics?.data?.find(
(m) => m.monitorId === monitor.id.toString(),
- ) ?? false
- : globalTcpMetrics?.data?.find(
+ ) ?? false)
+ : (globalTcpMetrics?.data?.find(
(m) => m.monitorId === monitor.id.toString(),
- ) ?? false,
+ ) ?? false),
}))}
actionBar={MonitorDataTableActionBar}
toolbarComponent={(props) => (
diff --git a/apps/dashboard/src/app/(dashboard)/monitors/(list)/layout.tsx b/apps/dashboard/src/app/(dashboard)/monitors/(list)/layout.tsx
index 29afe1b3d..affb067cb 100644
--- a/apps/dashboard/src/app/(dashboard)/monitors/(list)/layout.tsx
+++ b/apps/dashboard/src/app/(dashboard)/monitors/(list)/layout.tsx
@@ -4,6 +4,7 @@ import {
AppHeaderContent,
} from "@/components/nav/app-header";
import { AppSidebarTrigger } from "@/components/nav/app-sidebar";
+
import { Breadcrumb } from "./breadcrumb";
import { NavActions } from "./nav-actions";
diff --git a/apps/dashboard/src/app/(dashboard)/monitors/(list)/nav-actions.tsx b/apps/dashboard/src/app/(dashboard)/monitors/(list)/nav-actions.tsx
index 3a8461465..79aecaa74 100644
--- a/apps/dashboard/src/app/(dashboard)/monitors/(list)/nav-actions.tsx
+++ b/apps/dashboard/src/app/(dashboard)/monitors/(list)/nav-actions.tsx
@@ -1,13 +1,14 @@
"use client";
-import { UpgradeDialog } from "@/components/dialogs/upgrade";
-import { NavFeedback } from "@/components/nav/nav-feedback";
-import { useTRPC } from "@/lib/trpc/client";
import { Button } from "@openstatus/ui/components/ui/button";
import { useQuery } from "@tanstack/react-query";
import Link from "next/link";
import { useState } from "react";
+import { UpgradeDialog } from "@/components/dialogs/upgrade";
+import { NavFeedback } from "@/components/nav/nav-feedback";
+import { useTRPC } from "@/lib/trpc/client";
+
export function NavActions() {
const trpc = useTRPC();
const [openDialog, setOpenDialog] = useState(false);
diff --git a/apps/dashboard/src/app/(dashboard)/monitors/(list)/page.tsx b/apps/dashboard/src/app/(dashboard)/monitors/(list)/page.tsx
index a22b1904d..322476240 100644
--- a/apps/dashboard/src/app/(dashboard)/monitors/(list)/page.tsx
+++ b/apps/dashboard/src/app/(dashboard)/monitors/(list)/page.tsx
@@ -1,5 +1,7 @@
-import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";
import type { SearchParams } from "nuqs";
+
+import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";
+
import { Client } from "./client";
import { searchParamsCache } from "./search-params";
diff --git a/apps/dashboard/src/app/(dashboard)/monitors/[id]/breadcrumb.tsx b/apps/dashboard/src/app/(dashboard)/monitors/[id]/breadcrumb.tsx
index 21c8631da..9cc24df22 100644
--- a/apps/dashboard/src/app/(dashboard)/monitors/[id]/breadcrumb.tsx
+++ b/apps/dashboard/src/app/(dashboard)/monitors/[id]/breadcrumb.tsx
@@ -1,10 +1,12 @@
"use client";
-import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";
-import { useTRPC } from "@/lib/trpc/client";
import { useQuery } from "@tanstack/react-query";
import { Activity } from "lucide-react";
import { useParams, usePathname } from "next/navigation";
+
+import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";
+import { useTRPC } from "@/lib/trpc/client";
+
import { MONITOR_TABS } from "./constants";
export function Breadcrumb() {
diff --git a/apps/dashboard/src/app/(dashboard)/monitors/[id]/edit/page.tsx b/apps/dashboard/src/app/(dashboard)/monitors/[id]/edit/page.tsx
index 98e2f66a9..d44b5e711 100644
--- a/apps/dashboard/src/app/(dashboard)/monitors/[id]/edit/page.tsx
+++ b/apps/dashboard/src/app/(dashboard)/monitors/[id]/edit/page.tsx
@@ -1,5 +1,8 @@
"use client";
+import { useQuery } from "@tanstack/react-query";
+import { useParams } from "next/navigation";
+
import {
Section,
SectionDescription,
@@ -9,8 +12,6 @@ import {
} from "@/components/content/section";
import { FormMonitorUpdate } from "@/components/forms/monitor/update";
import { useTRPC } from "@/lib/trpc/client";
-import { useQuery } from "@tanstack/react-query";
-import { useParams } from "next/navigation";
export default function Page() {
const { id } = useParams<{ id: string }>();
diff --git a/apps/dashboard/src/app/(dashboard)/monitors/[id]/incidents/layout.tsx b/apps/dashboard/src/app/(dashboard)/monitors/[id]/incidents/layout.tsx
index 800b53103..5c93f0259 100644
--- a/apps/dashboard/src/app/(dashboard)/monitors/[id]/incidents/layout.tsx
+++ b/apps/dashboard/src/app/(dashboard)/monitors/[id]/incidents/layout.tsx
@@ -1,9 +1,11 @@
+import { SidebarProvider } from "@openstatus/ui/components/ui/sidebar";
+
import {
RIGHT_SIDEBAR_COOKIE,
getSidebarDefaultOpen,
} from "@/lib/sidebar-cookie";
import { getQueryClient, trpc } from "@/lib/trpc/server";
-import { SidebarProvider } from "@openstatus/ui/components/ui/sidebar";
+
import { Sidebar } from "../sidebar";
export default async function Layout({
diff --git a/apps/dashboard/src/app/(dashboard)/monitors/[id]/incidents/page.tsx b/apps/dashboard/src/app/(dashboard)/monitors/[id]/incidents/page.tsx
index 83aed0edf..d218ffba5 100644
--- a/apps/dashboard/src/app/(dashboard)/monitors/[id]/incidents/page.tsx
+++ b/apps/dashboard/src/app/(dashboard)/monitors/[id]/incidents/page.tsx
@@ -1,5 +1,9 @@
"use client";
+import { useQuery } from "@tanstack/react-query";
+import { Info } from "lucide-react";
+import { useParams } from "next/navigation";
+
import { Link } from "@/components/common/link";
import { Note } from "@/components/common/note";
import {
@@ -18,9 +22,6 @@ import { columns } from "@/components/data-table/incidents/columns";
import { DataTable } from "@/components/ui/data-table/data-table";
import { DataTablePaginationSimple } from "@/components/ui/data-table/data-table-pagination";
import { useTRPC } from "@/lib/trpc/client";
-import { useQuery } from "@tanstack/react-query";
-import { Info } from "lucide-react";
-import { useParams } from "next/navigation";
export default function Page() {
const { id } = useParams<{ id: string }>();
diff --git a/apps/dashboard/src/app/(dashboard)/monitors/[id]/layout.tsx b/apps/dashboard/src/app/(dashboard)/monitors/[id]/layout.tsx
index 4c01e7a6a..de6ed5951 100644
--- a/apps/dashboard/src/app/(dashboard)/monitors/[id]/layout.tsx
+++ b/apps/dashboard/src/app/(dashboard)/monitors/[id]/layout.tsx
@@ -10,6 +10,7 @@ import {
getQueryClient,
trpc,
} from "@/lib/trpc/server";
+
import { Breadcrumb } from "./breadcrumb";
import { NavActions } from "./nav-actions";
import { Tabs } from "./tabs";
diff --git a/apps/dashboard/src/app/(dashboard)/monitors/[id]/logs/client.tsx b/apps/dashboard/src/app/(dashboard)/monitors/[id]/logs/client.tsx
index c8dfb1c17..1ed107844 100644
--- a/apps/dashboard/src/app/(dashboard)/monitors/[id]/logs/client.tsx
+++ b/apps/dashboard/src/app/(dashboard)/monitors/[id]/logs/client.tsx
@@ -1,5 +1,12 @@
"use client";
+import { useQuery } from "@tanstack/react-query";
+import type { PaginationState } from "@tanstack/react-table";
+import { Lock } from "lucide-react";
+import { useParams } from "next/navigation";
+import { useQueryStates } from "nuqs";
+import { useCallback, useMemo } from "react";
+
import { Link } from "@/components/common/link";
import {
BillingOverlay,
@@ -13,7 +20,6 @@ import {
SectionHeader,
SectionTitle,
} from "@/components/content/section";
-
import { Section } from "@/components/content/section";
import { ButtonReset } from "@/components/controls-search/button-reset";
import { CommandRegion } from "@/components/controls-search/command-region";
@@ -27,12 +33,7 @@ import { DataTablePagination } from "@/components/ui/data-table/data-table-pagin
import { DataTableSkeleton } from "@/components/ui/data-table/data-table-skeleton";
import { exampleLogs } from "@/data/response-logs";
import { useTRPC } from "@/lib/trpc/client";
-import { useQuery } from "@tanstack/react-query";
-import type { PaginationState } from "@tanstack/react-table";
-import { Lock } from "lucide-react";
-import { useParams } from "next/navigation";
-import { useQueryStates } from "nuqs";
-import { useCallback, useMemo } from "react";
+
import { searchParamsParsers } from "./search-params";
export function Client() {
diff --git a/apps/dashboard/src/app/(dashboard)/monitors/[id]/logs/page.tsx b/apps/dashboard/src/app/(dashboard)/monitors/[id]/logs/page.tsx
index 478df3192..14d03f214 100644
--- a/apps/dashboard/src/app/(dashboard)/monitors/[id]/logs/page.tsx
+++ b/apps/dashboard/src/app/(dashboard)/monitors/[id]/logs/page.tsx
@@ -1,4 +1,5 @@
import type { SearchParams } from "nuqs/server";
+
import { Client } from "./client";
import { searchParamsCache } from "./search-params";
diff --git a/apps/dashboard/src/app/(dashboard)/monitors/[id]/logs/search-params.ts b/apps/dashboard/src/app/(dashboard)/monitors/[id]/logs/search-params.ts
index f9558f9bc..ae09140d7 100644
--- a/apps/dashboard/src/app/(dashboard)/monitors/[id]/logs/search-params.ts
+++ b/apps/dashboard/src/app/(dashboard)/monitors/[id]/logs/search-params.ts
@@ -1,4 +1,3 @@
-import { PERIODS, STATUS, TRIGGER } from "@/data/metrics.client";
import { endOfDay } from "date-fns";
import { startOfDay } from "date-fns";
import {
@@ -10,6 +9,8 @@ import {
parseAsStringLiteral,
} from "nuqs/server";
+import { PERIODS, STATUS, TRIGGER } from "@/data/metrics.client";
+
export const searchParamsParsers = {
period: parseAsStringLiteral(PERIODS).withDefault("1d"),
regions: parseAsArrayOf(parseAsString),
diff --git a/apps/dashboard/src/app/(dashboard)/monitors/[id]/nav-actions.tsx b/apps/dashboard/src/app/(dashboard)/monitors/[id]/nav-actions.tsx
index 29ed6f4fb..d9db443ad 100644
--- a/apps/dashboard/src/app/(dashboard)/monitors/[id]/nav-actions.tsx
+++ b/apps/dashboard/src/app/(dashboard)/monitors/[id]/nav-actions.tsx
@@ -1,10 +1,5 @@
"use client";
-import { DataTableSheetTest } from "@/components/data-table/response-logs/data-table-sheet-test";
-import { QuickActions } from "@/components/dropdowns/quick-actions";
-import { NavFeedback } from "@/components/nav/nav-feedback";
-import { getActions } from "@/data/monitors.client";
-import { useTRPC } from "@/lib/trpc/client";
import type { RouterOutputs } from "@openstatus/api";
import { deserialize } from "@openstatus/assertions";
import { Button } from "@openstatus/ui/components/ui/button";
@@ -21,6 +16,12 @@ import { useParams, usePathname, useRouter } from "next/navigation";
import { useState } from "react";
import { toast } from "sonner";
+import { DataTableSheetTest } from "@/components/data-table/response-logs/data-table-sheet-test";
+import { QuickActions } from "@/components/dropdowns/quick-actions";
+import { NavFeedback } from "@/components/nav/nav-feedback";
+import { getActions } from "@/data/monitors.client";
+import { useTRPC } from "@/lib/trpc/client";
+
type TestTCP = RouterOutputs["checker"]["testTcp"];
type TestHTTP = RouterOutputs["checker"]["testHttp"];
type TestDNS = RouterOutputs["checker"]["testDns"];
@@ -156,23 +157,23 @@ export function NavActions() {
return (
<div className="flex items-center gap-2 text-sm">
<NavFeedback />
- <div className="hidden font-medium text-muted-foreground lg:inline-block">
+ <div className="text-muted-foreground hidden font-medium lg:inline-block">
{!monitor.active ? (
<span className="relative ml-1.5 inline-flex">
- <span className="relative inline-flex h-2.5 w-2.5 rounded-full bg-muted-foreground/70" />
+ <span className="bg-muted-foreground/70 relative inline-flex h-2.5 w-2.5 rounded-full" />
</span>
) : monitor.status === "active" ? (
<span className="relative ml-1.5 inline-flex">
- <span className="absolute inline-flex h-full w-full animate-ping rounded-full bg-success/80 opacity-75" />
- <span className="relative inline-flex h-2.5 w-2.5 rounded-full bg-success" />
+ <span className="bg-success/80 absolute inline-flex h-full w-full animate-ping rounded-full opacity-75" />
+ <span className="bg-success relative inline-flex h-2.5 w-2.5 rounded-full" />
</span>
) : monitor.status === "error" ? (
<span className="relative ml-1.5 inline-flex">
- <span className="relative inline-flex h-2.5 w-2.5 rounded-full bg-destructive" />
+ <span className="bg-destructive relative inline-flex h-2.5 w-2.5 rounded-full" />
</span>
) : (
<span className="relative ml-1.5 inline-flex">
- <span className="relative inline-flex h-2.5 w-2.5 rounded-full bg-warning" />
+ <span className="bg-warning relative inline-flex h-2.5 w-2.5 rounded-full" />
</span>
)}
</div>
diff --git a/apps/dashboard/src/app/(dashboard)/monitors/[id]/overview/client.tsx b/apps/dashboard/src/app/(dashboard)/monitors/[id]/overview/client.tsx
index bb683288b..0b9f5167b 100644
--- a/apps/dashboard/src/app/(dashboard)/monitors/[id]/overview/client.tsx
+++ b/apps/dashboard/src/app/(dashboard)/monitors/[id]/overview/client.tsx
@@ -1,5 +1,18 @@
"use client";
+import {
+ Tabs,
+ TabsContent,
+ TabsList,
+ TabsTrigger,
+} from "@openstatus/ui/components/ui/tabs";
+import { useQuery } from "@tanstack/react-query";
+import { endOfDay } from "date-fns";
+import { useParams } from "next/navigation";
+import { useQueryStates } from "nuqs";
+import React, { useEffect, useMemo } from "react";
+import { toast } from "sonner";
+
import { ChartAreaLatency } from "@/components/chart/chart-area-latency";
import { ChartAreaTimingPhases } from "@/components/chart/chart-area-timing-phases";
import { ChartBarUptime } from "@/components/chart/chart-bar-uptime";
@@ -31,18 +44,7 @@ import {
import { periodToFromDate, periodToInterval } from "@/data/metrics.client";
import type { RegionMetric } from "@/data/region-metrics";
import { useTRPC } from "@/lib/trpc/client";
-import {
- Tabs,
- TabsContent,
- TabsList,
- TabsTrigger,
-} from "@openstatus/ui/components/ui/tabs";
-import { useQuery } from "@tanstack/react-query";
-import { endOfDay } from "date-fns";
-import { useParams } from "next/navigation";
-import { useQueryStates } from "nuqs";
-import React, { useEffect, useMemo } from "react";
-import { toast } from "sonner";
+
import { searchParamsParsers } from "./search-params";
const TIMELINE_INTERVAL = 30; // in days
diff --git a/apps/dashboard/src/app/(dashboard)/monitors/[id]/overview/layout.tsx b/apps/dashboard/src/app/(dashboard)/monitors/[id]/overview/layout.tsx
index bbeede521..404567611 100644
--- a/apps/dashboard/src/app/(dashboard)/monitors/[id]/overview/layout.tsx
+++ b/apps/dashboard/src/app/(dashboard)/monitors/[id]/overview/layout.tsx
@@ -1,8 +1,10 @@
+import { SidebarProvider } from "@openstatus/ui/components/ui/sidebar";
+
import {
RIGHT_SIDEBAR_COOKIE,
getSidebarDefaultOpen,
} from "@/lib/sidebar-cookie";
-import { SidebarProvider } from "@openstatus/ui/components/ui/sidebar";
+
import { Sidebar } from "../sidebar";
export default async function Layout({
diff --git a/apps/dashboard/src/app/(dashboard)/monitors/[id]/overview/page.tsx b/apps/dashboard/src/app/(dashboard)/monitors/[id]/overview/page.tsx
index 478df3192..14d03f214 100644
--- a/apps/dashboard/src/app/(dashboard)/monitors/[id]/overview/page.tsx
+++ b/apps/dashboard/src/app/(dashboard)/monitors/[id]/overview/page.tsx
@@ -1,4 +1,5 @@
import type { SearchParams } from "nuqs/server";
+
import { Client } from "./client";
import { searchParamsCache } from "./search-params";
diff --git a/apps/dashboard/src/app/(dashboard)/monitors/[id]/overview/search-params.ts b/apps/dashboard/src/app/(dashboard)/monitors/[id]/overview/search-params.ts
index 1db48b0fd..9c4f1e0f9 100644
--- a/apps/dashboard/src/app/(dashboard)/monitors/[id]/overview/search-params.ts
+++ b/apps/dashboard/src/app/(dashboard)/monitors/[id]/overview/search-params.ts
@@ -1,4 +1,3 @@
-import { INTERVALS } from "@/data/metrics.client";
import {
createSearchParamsCache,
parseAsArrayOf,
@@ -7,6 +6,8 @@ import {
parseAsStringLiteral,
} from "nuqs/server";
+import { INTERVALS } from "@/data/metrics.client";
+
const PERIOD = ["1d", "7d", "14d", "30d", "90d"] as const;
const PERCENTILE = ["p50", "p75", "p90", "p95", "p99"] as const;
diff --git a/apps/dashboard/src/app/(dashboard)/monitors/[id]/sidebar.tsx b/apps/dashboard/src/app/(dashboard)/monitors/[id]/sidebar.tsx
index c4f0238d5..adfa85202 100644
--- a/apps/dashboard/src/app/(dashboard)/monitors/[id]/sidebar.tsx
+++ b/apps/dashboard/src/app/(dashboard)/monitors/[id]/sidebar.tsx
@@ -1,16 +1,17 @@
"use client";
-import { TableCellLink } from "@/components/data-table/table-cell-link";
-import { SidebarRight } from "@/components/nav/sidebar-right";
-import { monitorTypes } from "@/data/monitors.client";
-import { formatMilliseconds } from "@/lib/formatter";
-import { useTRPC } from "@/lib/trpc/client";
import { deserialize } from "@openstatus/assertions";
import { Badge } from "@openstatus/ui/components/ui/badge";
import { useQuery } from "@tanstack/react-query";
import { Logs } from "lucide-react";
import { useParams, useRouter } from "next/navigation";
+import { TableCellLink } from "@/components/data-table/table-cell-link";
+import { SidebarRight } from "@/components/nav/sidebar-right";
+import { monitorTypes } from "@/data/monitors.client";
+import { formatMilliseconds } from "@/lib/formatter";
+import { useTRPC } from "@/lib/trpc/client";
+
export function Sidebar() {
const router = useRouter();
const { id } = useParams<{ id: string }>();
@@ -45,7 +46,7 @@ export function Sidebar() {
value: type ? (
<span className="flex items-center gap-1">
<span className="uppercase">{type.label}</span>
- <type.icon className="h-2.5 w-2.5 text-muted-foreground" />
+ <type.icon className="text-muted-foreground h-2.5 w-2.5" />
</span>
) : (
<span className="uppercase">{monitor.jobType}</span>
@@ -65,12 +66,12 @@ export function Sidebar() {
{
label: "Tags",
value: (
- <div className="group/badges -space-x-2 flex flex-wrap">
+ <div className="group/badges flex flex-wrap -space-x-2">
{monitor.tags.map((tag) => (
<Badge
key={tag.id}
variant="outline"
- className="relative flex translate-x-0 items-center gap-1.5 rounded-full bg-background transition-transform hover:z-10 hover:translate-x-1"
+ className="bg-background relative flex translate-x-0 items-center gap-1.5 rounded-full transition-transform hover:z-10 hover:translate-x-1"
>
<div
className="size-2.5 rounded-full"
diff --git a/apps/dashboard/src/app/(dashboard)/monitors/[id]/tabs.tsx b/apps/dashboard/src/app/(dashboard)/monitors/[id]/tabs.tsx
index 1da09ab79..03d6aaa6d 100644
--- a/apps/dashboard/src/app/(dashboard)/monitors/[id]/tabs.tsx
+++ b/apps/dashboard/src/app/(dashboard)/monitors/[id]/tabs.tsx
@@ -1,7 +1,9 @@
"use client";
-import { NavTabs } from "@/components/nav/nav-tabs";
import { useParams } from "next/navigation";
+
+import { NavTabs } from "@/components/nav/nav-tabs";
+
import { MONITOR_TABS } from "./constants";
export function Tabs() {
diff --git a/apps/dashboard/src/app/(dashboard)/monitors/create/breadcrumb.tsx b/apps/dashboard/src/app/(dashboard)/monitors/create/breadcrumb.tsx
index 2d317b852..9cc21f586 100644
--- a/apps/dashboard/src/app/(dashboard)/monitors/create/breadcrumb.tsx
+++ b/apps/dashboard/src/app/(dashboard)/monitors/create/breadcrumb.tsx
@@ -1,8 +1,9 @@
"use client";
-import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";
import { Activity } from "lucide-react";
+import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";
+
export function Breadcrumb() {
return (
<NavBreadcrumb
diff --git a/apps/dashboard/src/app/(dashboard)/monitors/create/layout.tsx b/apps/dashboard/src/app/(dashboard)/monitors/create/layout.tsx
index 0b429f218..d154ddb79 100644
--- a/apps/dashboard/src/app/(dashboard)/monitors/create/layout.tsx
+++ b/apps/dashboard/src/app/(dashboard)/monitors/create/layout.tsx
@@ -1,5 +1,6 @@
import { AppHeader, AppHeaderContent } from "@/components/nav/app-header";
import { AppSidebarTrigger } from "@/components/nav/app-sidebar";
+
import { Breadcrumb } from "./breadcrumb";
export default function Layout({ children }: { children: React.ReactNode }) {
diff --git a/apps/dashboard/src/app/(dashboard)/monitors/create/page.tsx b/apps/dashboard/src/app/(dashboard)/monitors/create/page.tsx
index f99216355..6d9ae8ea2 100644
--- a/apps/dashboard/src/app/(dashboard)/monitors/create/page.tsx
+++ b/apps/dashboard/src/app/(dashboard)/monitors/create/page.tsx
@@ -1,5 +1,8 @@
"use client";
+import { useMutation, useQueryClient } from "@tanstack/react-query";
+import { useRouter } from "next/navigation";
+
import {
EmptyStateContainer,
EmptyStateTitle,
@@ -13,8 +16,6 @@ import {
} from "@/components/content/section";
import { FormGeneral } from "@/components/forms/monitor/form-general";
import { useTRPC } from "@/lib/trpc/client";
-import { useMutation, useQueryClient } from "@tanstack/react-query";
-import { useRouter } from "next/navigation";
export default function Page() {
const trpc = useTRPC();
diff --git a/apps/dashboard/src/app/(dashboard)/not-found.tsx b/apps/dashboard/src/app/(dashboard)/not-found.tsx
index 9ab3f9c60..e65f10d6c 100644
--- a/apps/dashboard/src/app/(dashboard)/not-found.tsx
+++ b/apps/dashboard/src/app/(dashboard)/not-found.tsx
@@ -1,7 +1,8 @@
-import { WorkspaceSwitcher } from "@/components/nav/workspace-switcher";
import { Activity, Cog, LayoutGrid, PanelTop } from "lucide-react";
import Link from "next/link";
+import { WorkspaceSwitcher } from "@/components/nav/workspace-switcher";
+
const quickLinks = [
{ name: "Overview", href: "/overview", icon: LayoutGrid },
{ name: "Monitors", href: "/monitors", icon: Activity },
@@ -12,11 +13,11 @@ const quickLinks = [
export default function NotFound() {
return (
<main className="flex min-h-screen w-full flex-col items-center justify-center p-4 md:p-8">
- <div className="mx-auto w-full max-w-md rounded-lg border border-border bg-sidebar">
+ <div className="border-border bg-sidebar mx-auto w-full max-w-md rounded-lg border">
<div className="flex flex-col gap-6 p-6 sm:p-8">
<div className="flex flex-col gap-1 text-center">
- <p className="font-mono text-destructive">404 Not found</p>
- <h2 className="font-cal text-2xl text-foreground">
+ <p className="text-destructive font-mono">404 Not found</p>
+ <h2 className="font-cal text-foreground text-2xl">
Page not found
</h2>
<p className="text-muted-foreground text-sm">
@@ -25,7 +26,7 @@ export default function NotFound() {
</p>
</div>
<WorkspaceSwitcher
- className="rounded-md border border-border bg-background"
+ className="border-border bg-background rounded-md border"
side="bottom"
/>
<div className="grid gap-2 sm:grid-cols-2">
@@ -33,7 +34,7 @@ export default function NotFound() {
<Link
key={link.href}
href={link.href}
- className="flex items-center gap-2 rounded-md border border-border bg-background px-4 py-2 font-commit-mono text-muted-foreground text-sm transition-colors hover:bg-accent hover:text-accent-foreground"
+ className="border-border bg-background font-commit-mono text-muted-foreground hover:bg-accent hover:text-accent-foreground flex items-center gap-2 rounded-md border px-4 py-2 text-sm transition-colors"
>
<link.icon className="h-4 w-4" />
{link.name}
diff --git a/apps/dashboard/src/app/(dashboard)/notifications/breadcrumb.tsx b/apps/dashboard/src/app/(dashboard)/notifications/breadcrumb.tsx
index 07afb55d1..ff1644ca6 100644
--- a/apps/dashboard/src/app/(dashboard)/notifications/breadcrumb.tsx
+++ b/apps/dashboard/src/app/(dashboard)/notifications/breadcrumb.tsx
@@ -1,8 +1,9 @@
"use client";
-import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";
import { Bell } from "lucide-react";
+import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";
+
export function Breadcrumb() {
return (
<NavBreadcrumb
diff --git a/apps/dashboard/src/app/(dashboard)/notifications/client.tsx b/apps/dashboard/src/app/(dashboard)/notifications/client.tsx
index 12964e88d..1a1beea60 100644
--- a/apps/dashboard/src/app/(dashboard)/notifications/client.tsx
+++ b/apps/dashboard/src/app/(dashboard)/notifications/client.tsx
@@ -1,5 +1,8 @@
"use client";
+import { useMutation, useQuery } from "@tanstack/react-query";
+import { useQueryStates } from "nuqs";
+
import { Link } from "@/components/common/link";
import {
ActionCard,
@@ -24,8 +27,7 @@ import { FormSheetNotifier } from "@/components/forms/notifications/sheet";
import { DataTable } from "@/components/ui/data-table/data-table";
import { config } from "@/data/notifications.client";
import { useTRPC } from "@/lib/trpc/client";
-import { useMutation, useQuery } from "@tanstack/react-query";
-import { useQueryStates } from "nuqs";
+
import { searchParamsParsers } from "./search-params";
// FIXME: WARNING we are using the `web` api url here
@@ -114,7 +116,7 @@ export function Client() {
<ActionCard className="h-full w-full">
<ActionCardHeader>
<div className="flex items-center gap-2">
- <div className="flex size-6 items-center justify-center rounded-md border border-border bg-muted">
+ <div className="border-border bg-muted flex size-6 items-center justify-center rounded-md border">
<Icon className="size-3" />
</div>
<ActionCardTitle>{config[key].label}</ActionCardTitle>
@@ -147,7 +149,7 @@ export function Client() {
<ActionCard className="h-full w-full">
<ActionCardHeader>
<div className="flex items-center gap-2">
- <div className="flex size-6 items-center justify-center rounded-md border border-border bg-muted">
+ <div className="border-border bg-muted flex size-6 items-center justify-center rounded-md border">
<Icon className="size-3" />
</div>
<ActionCardTitle>{config[key].label}</ActionCardTitle>
@@ -163,7 +165,7 @@ export function Client() {
<ActionCard className="border-dashed">
<ActionCardHeader>
<div className="flex items-center gap-2">
- <div className="flex size-6 items-center justify-center rounded-md border border-border bg-muted" />
+ <div className="border-border bg-muted flex size-6 items-center justify-center rounded-md border" />
<ActionCardTitle className="text-muted-foreground">
Your Notifier
</ActionCardTitle>
diff --git a/apps/dashboard/src/app/(dashboard)/notifications/layout.tsx b/apps/dashboard/src/app/(dashboard)/notifications/layout.tsx
index 42727da2e..dce979381 100644
--- a/apps/dashboard/src/app/(dashboard)/notifications/layout.tsx
+++ b/apps/dashboard/src/app/(dashboard)/notifications/layout.tsx
@@ -5,6 +5,7 @@ import {
} from "@/components/nav/app-header";
import { AppSidebarTrigger } from "@/components/nav/app-sidebar";
import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";
+
import { Breadcrumb } from "./breadcrumb";
import { NavActions } from "./nav-actions";
diff --git a/apps/dashboard/src/app/(dashboard)/notifications/page.tsx b/apps/dashboard/src/app/(dashboard)/notifications/page.tsx
index b7f03f9a8..3598b76a1 100644
--- a/apps/dashboard/src/app/(dashboard)/notifications/page.tsx
+++ b/apps/dashboard/src/app/(dashboard)/notifications/page.tsx
@@ -1,4 +1,5 @@
import type { SearchParams } from "nuqs";
+
import { Client } from "./client";
import { searchParamsCache } from "./search-params";
diff --git a/apps/dashboard/src/app/(dashboard)/overview/breadcrumb.tsx b/apps/dashboard/src/app/(dashboard)/overview/breadcrumb.tsx
index 0c401a621..020ddd598 100644
--- a/apps/dashboard/src/app/(dashboard)/overview/breadcrumb.tsx
+++ b/apps/dashboard/src/app/(dashboard)/overview/breadcrumb.tsx
@@ -1,8 +1,9 @@
"use client";
-import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";
import { LayoutGrid } from "lucide-react";
+import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";
+
export function Breadcrumb() {
return (
<NavBreadcrumb
diff --git a/apps/dashboard/src/app/(dashboard)/overview/data-table-status-reports.tsx b/apps/dashboard/src/app/(dashboard)/overview/data-table-status-reports.tsx
index 30d3ffc84..3e21a7b1e 100644
--- a/apps/dashboard/src/app/(dashboard)/overview/data-table-status-reports.tsx
+++ b/apps/dashboard/src/app/(dashboard)/overview/data-table-status-reports.tsx
@@ -1,9 +1,10 @@
"use client";
+import type { RouterOutputs } from "@openstatus/api";
+
import { DataTable as UpdatesDataTable } from "@/components/data-table/status-report-updates/data-table";
import { columns as statusReportsColumns } from "@/components/data-table/status-reports/columns";
import { DataTable } from "@/components/ui/data-table/data-table";
-import type { RouterOutputs } from "@openstatus/api";
type StatusReport = RouterOutputs["statusReport"]["list"][number];
diff --git a/apps/dashboard/src/app/(dashboard)/overview/layout.tsx b/apps/dashboard/src/app/(dashboard)/overview/layout.tsx
index b45ea3ff2..b205d9c87 100644
--- a/apps/dashboard/src/app/(dashboard)/overview/layout.tsx
+++ b/apps/dashboard/src/app/(dashboard)/overview/layout.tsx
@@ -4,14 +4,16 @@ import {
AppHeaderContent,
} from "@/components/nav/app-header";
import { AppSidebarTrigger } from "@/components/nav/app-sidebar";
-
import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";
+
import { Breadcrumb } from "./breadcrumb";
import { NavActions } from "./nav-actions";
export default async function Layout({
children,
-}: { children: React.ReactNode }) {
+}: {
+ children: React.ReactNode;
+}) {
const queryClient = getQueryClient();
await queryClient.prefetchQuery(trpc.monitor.list.queryOptions());
diff --git a/apps/dashboard/src/app/(dashboard)/overview/page.tsx b/apps/dashboard/src/app/(dashboard)/overview/page.tsx
index d329e2685..8bf22cc3a 100644
--- a/apps/dashboard/src/app/(dashboard)/overview/page.tsx
+++ b/apps/dashboard/src/app/(dashboard)/overview/page.tsx
@@ -1,17 +1,21 @@
"use client";
-import {
- SectionDescription,
- SectionGroup,
- SectionHeader,
- SectionTitle,
-} from "@/components/content/section";
+import { useQuery } from "@tanstack/react-query";
+import { formatDistanceToNowStrict } from "date-fns";
+import { Bot, List, Search } from "lucide-react";
+import Link from "next/link";
import { Note, NoteButton } from "@/components/common/note";
import {
EmptyStateContainer,
EmptyStateTitle,
} from "@/components/content/empty-state";
+import {
+ SectionDescription,
+ SectionGroup,
+ SectionHeader,
+ SectionTitle,
+} from "@/components/content/section";
import { Section } from "@/components/content/section";
import { columns as incidentsColumns } from "@/components/data-table/incidents/columns";
import { columns as maintenancesColumns } from "@/components/data-table/maintenances/columns";
@@ -25,10 +29,7 @@ import {
import { DataTable } from "@/components/ui/data-table/data-table";
import { useTRPC } from "@/lib/trpc/client";
import { cn } from "@/lib/utils";
-import { useQuery } from "@tanstack/react-query";
-import { formatDistanceToNowStrict } from "date-fns";
-import { Bot, List, Search } from "lucide-react";
-import Link from "next/link";
+
import { DataTableStatusReports } from "./data-table-status-reports";
// FIXME: the page is server side
diff --git a/apps/dashboard/src/app/(dashboard)/settings/(list)/layout.tsx b/apps/dashboard/src/app/(dashboard)/settings/(list)/layout.tsx
index 8aa952cdb..760733fe0 100644
--- a/apps/dashboard/src/app/(dashboard)/settings/(list)/layout.tsx
+++ b/apps/dashboard/src/app/(dashboard)/settings/(list)/layout.tsx
@@ -4,8 +4,8 @@ import {
AppHeaderContent,
} from "@/components/nav/app-header";
import { AppSidebarTrigger } from "@/components/nav/app-sidebar";
-
import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";
+
import { NavActions } from "./nav-actions";
export default function Layout({ children }: { children: React.ReactNode }) {
diff --git a/apps/dashboard/src/app/(dashboard)/settings/account/breadcrumb.tsx b/apps/dashboard/src/app/(dashboard)/settings/account/breadcrumb.tsx
index fbc255b62..3c4d88bb3 100644
--- a/apps/dashboard/src/app/(dashboard)/settings/account/breadcrumb.tsx
+++ b/apps/dashboard/src/app/(dashboard)/settings/account/breadcrumb.tsx
@@ -1,8 +1,9 @@
"use client";
-import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";
import { Cog, User } from "lucide-react";
+import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";
+
export function Breadcrumb() {
return (
<NavBreadcrumb
diff --git a/apps/dashboard/src/app/(dashboard)/settings/account/layout.tsx b/apps/dashboard/src/app/(dashboard)/settings/account/layout.tsx
index 32eadc0bd..e69321a72 100644
--- a/apps/dashboard/src/app/(dashboard)/settings/account/layout.tsx
+++ b/apps/dashboard/src/app/(dashboard)/settings/account/layout.tsx
@@ -4,8 +4,8 @@ import {
AppHeaderContent,
} from "@/components/nav/app-header";
import { AppSidebarTrigger } from "@/components/nav/app-sidebar";
-
import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";
+
import { Tabs } from "../tabs";
import { Breadcrumb } from "./breadcrumb";
import { NavActions } from "./nav-actions";
diff --git a/apps/dashboard/src/app/(dashboard)/settings/account/page.tsx b/apps/dashboard/src/app/(dashboard)/settings/account/page.tsx
index d937462ac..aabf78079 100644
--- a/apps/dashboard/src/app/(dashboard)/settings/account/page.tsx
+++ b/apps/dashboard/src/app/(dashboard)/settings/account/page.tsx
@@ -1,5 +1,11 @@
"use client";
+import { Button } from "@openstatus/ui/components/ui/button";
+import { Input } from "@openstatus/ui/components/ui/input";
+import { Label } from "@openstatus/ui/components/ui/label";
+import { useMutation, useQuery } from "@tanstack/react-query";
+import { signOut } from "next-auth/react";
+
import { Link } from "@/components/common/link";
import {
Section,
@@ -22,11 +28,6 @@ import {
} from "@/components/forms/form-card";
import { ThemeToggle } from "@/components/theme-toggle";
import { useTRPC } from "@/lib/trpc/client";
-import { Button } from "@openstatus/ui/components/ui/button";
-import { Input } from "@openstatus/ui/components/ui/input";
-import { Label } from "@openstatus/ui/components/ui/label";
-import { useMutation, useQuery } from "@tanstack/react-query";
-import { signOut } from "next-auth/react";
export default function Page() {
const trpc = useTRPC();
diff --git a/apps/dashboard/src/app/(dashboard)/settings/audit-logs/breadcrumb.tsx b/apps/dashboard/src/app/(dashboard)/settings/audit-logs/breadcrumb.tsx
index 3bbb81cd2..cf300c8c5 100644
--- a/apps/dashboard/src/app/(dashboard)/settings/audit-logs/breadcrumb.tsx
+++ b/apps/dashboard/src/app/(dashboard)/settings/audit-logs/breadcrumb.tsx
@@ -1,8 +1,9 @@
"use client";
-import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";
import { Cog, ScanEye } from "lucide-react";
+import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";
+
export function Breadcrumb() {
return (
<NavBreadcrumb
diff --git a/apps/dashboard/src/app/(dashboard)/settings/audit-logs/client.tsx b/apps/dashboard/src/app/(dashboard)/settings/audit-logs/client.tsx
index fe849a2a6..338798bdd 100644
--- a/apps/dashboard/src/app/(dashboard)/settings/audit-logs/client.tsx
+++ b/apps/dashboard/src/app/(dashboard)/settings/audit-logs/client.tsx
@@ -1,5 +1,10 @@
"use client";
+import type { RouterOutputs } from "@openstatus/api";
+import { useQuery } from "@tanstack/react-query";
+import { Lock } from "lucide-react";
+import { useState } from "react";
+
import { Link } from "@/components/common/link";
import {
BillingOverlay,
@@ -26,10 +31,6 @@ import { UpgradeDialog } from "@/components/dialogs/upgrade";
import { DataTable } from "@/components/ui/data-table/data-table";
import { DataTablePaginationSimple } from "@/components/ui/data-table/data-table-pagination";
import { useTRPC } from "@/lib/trpc/client";
-import type { RouterOutputs } from "@openstatus/api";
-import { useQuery } from "@tanstack/react-query";
-import { Lock } from "lucide-react";
-import { useState } from "react";
type AuditLog = RouterOutputs["auditLog"]["list"]["items"][number];
diff --git a/apps/dashboard/src/app/(dashboard)/settings/audit-logs/layout.tsx b/apps/dashboard/src/app/(dashboard)/settings/audit-logs/layout.tsx
index 6548c6ff5..9b7c7686d 100644
--- a/apps/dashboard/src/app/(dashboard)/settings/audit-logs/layout.tsx
+++ b/apps/dashboard/src/app/(dashboard)/settings/audit-logs/layout.tsx
@@ -5,6 +5,7 @@ import {
} from "@/components/nav/app-header";
import { AppSidebarTrigger } from "@/components/nav/app-sidebar";
import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";
+
import { Tabs } from "../tabs";
import { Breadcrumb } from "./breadcrumb";
import { NavActions } from "./nav-actions";
diff --git a/apps/dashboard/src/app/(dashboard)/settings/billing/breadcrumb.tsx b/apps/dashboard/src/app/(dashboard)/settings/billing/breadcrumb.tsx
index 6037d2851..74d92d24d 100644
--- a/apps/dashboard/src/app/(dashboard)/settings/billing/breadcrumb.tsx
+++ b/apps/dashboard/src/app/(dashboard)/settings/billing/breadcrumb.tsx
@@ -1,8 +1,9 @@
"use client";
-import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";
import { Cog, CreditCard } from "lucide-react";
+import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";
+
export function Breadcrumb() {
return (
<NavBreadcrumb
diff --git a/apps/dashboard/src/app/(dashboard)/settings/billing/client.tsx b/apps/dashboard/src/app/(dashboard)/settings/billing/client.tsx
index cc363bc8b..be65811f9 100644
--- a/apps/dashboard/src/app/(dashboard)/settings/billing/client.tsx
+++ b/apps/dashboard/src/app/(dashboard)/settings/billing/client.tsx
@@ -1,5 +1,14 @@
"use client";
+import { allPlans } from "@openstatus/db/src/schema/plan/config";
+import type { Limits } from "@openstatus/db/src/schema/plan/schema";
+import { Button } from "@openstatus/ui/components/ui/button";
+import { useMutation, useQuery } from "@tanstack/react-query";
+import { useRouter } from "next/navigation";
+import { useQueryStates } from "nuqs";
+import { useEffect, useMemo, useTransition } from "react";
+import { toast } from "sonner";
+
import { BillingAddons } from "@/components/content/billing-addons";
import { BillingProgress } from "@/components/content/billing-progress";
import {
@@ -26,14 +35,7 @@ import {
FormCardTitle,
} from "@/components/forms/form-card";
import { useTRPC } from "@/lib/trpc/client";
-import { allPlans } from "@openstatus/db/src/schema/plan/config";
-import type { Limits } from "@openstatus/db/src/schema/plan/schema";
-import { Button } from "@openstatus/ui/components/ui/button";
-import { useMutation, useQuery } from "@tanstack/react-query";
-import { useRouter } from "next/navigation";
-import { useQueryStates } from "nuqs";
-import { useEffect, useMemo, useTransition } from "react";
-import { toast } from "sonner";
+
import { searchParamsParsers } from "./search-params";
const BASE_URL =
diff --git a/apps/dashboard/src/app/(dashboard)/settings/billing/page.tsx b/apps/dashboard/src/app/(dashboard)/settings/billing/page.tsx
index 72bc20a78..150289b75 100644
--- a/apps/dashboard/src/app/(dashboard)/settings/billing/page.tsx
+++ b/apps/dashboard/src/app/(dashboard)/settings/billing/page.tsx
@@ -1,4 +1,5 @@
import type { SearchParams } from "nuqs";
+
import { Client } from "./client";
import { searchParamsCache } from "./search-params";
diff --git a/apps/dashboard/src/app/(dashboard)/settings/general/breadcrumb.tsx b/apps/dashboard/src/app/(dashboard)/settings/general/breadcrumb.tsx
index aa6d60309..a79f3eb9f 100644
--- a/apps/dashboard/src/app/(dashboard)/settings/general/breadcrumb.tsx
+++ b/apps/dashboard/src/app/(dashboard)/settings/general/breadcrumb.tsx
@@ -1,8 +1,9 @@
"use client";
-import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";
import { Cog, SlidersHorizontal } from "lucide-react";
+import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";
+
export function Breadcrumb() {
return (
<NavBreadcrumb
diff --git a/apps/dashboard/src/app/(dashboard)/settings/general/layout.tsx b/apps/dashboard/src/app/(dashboard)/settings/general/layout.tsx
index 9a4e2a860..e2e98630f 100644
--- a/apps/dashboard/src/app/(dashboard)/settings/general/layout.tsx
+++ b/apps/dashboard/src/app/(dashboard)/settings/general/layout.tsx
@@ -4,8 +4,8 @@ import {
AppHeaderContent,
} from "@/components/nav/app-header";
import { AppSidebarTrigger } from "@/components/nav/app-sidebar";
-
import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";
+
import { Tabs } from "../tabs";
import { Breadcrumb } from "./breadcrumb";
import { NavActions } from "./nav-actions";
diff --git a/apps/dashboard/src/app/(dashboard)/settings/general/page.tsx b/apps/dashboard/src/app/(dashboard)/settings/general/page.tsx
index cc3514624..409119b41 100644
--- a/apps/dashboard/src/app/(dashboard)/settings/general/page.tsx
+++ b/apps/dashboard/src/app/(dashboard)/settings/general/page.tsx
@@ -1,5 +1,7 @@
"use client";
+import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
+
import {
Section,
SectionDescription,
@@ -13,7 +15,6 @@ import { FormMembers } from "@/components/forms/settings/form-members";
import { FormSlug } from "@/components/forms/settings/form-slug";
import { FormWorkspace } from "@/components/forms/settings/form-workspace";
import { useTRPC } from "@/lib/trpc/client";
-import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
const BASE_URL = "https://app.openstatus.dev/invite";
diff --git a/apps/dashboard/src/app/(dashboard)/settings/integrations/breadcrumb.tsx b/apps/dashboard/src/app/(dashboard)/settings/integrations/breadcrumb.tsx
index d891fb604..6c448ebbb 100644
--- a/apps/dashboard/src/app/(dashboard)/settings/integrations/breadcrumb.tsx
+++ b/apps/dashboard/src/app/(dashboard)/settings/integrations/breadcrumb.tsx
@@ -1,8 +1,9 @@
"use client";
-import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";
import { Blocks, Cog } from "lucide-react";
+import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";
+
export function Breadcrumb() {
return (
<NavBreadcrumb
diff --git a/apps/dashboard/src/app/(dashboard)/settings/integrations/layout.tsx b/apps/dashboard/src/app/(dashboard)/settings/integrations/layout.tsx
index 6712a9f05..d3bddd0dc 100644
--- a/apps/dashboard/src/app/(dashboard)/settings/integrations/layout.tsx
+++ b/apps/dashboard/src/app/(dashboard)/settings/integrations/layout.tsx
@@ -4,8 +4,8 @@ import {
AppHeaderContent,
} from "@/components/nav/app-header";
import { AppSidebarTrigger } from "@/components/nav/app-sidebar";
-
import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";
+
import { Tabs } from "../tabs";
import { Breadcrumb } from "./breadcrumb";
import { NavActions } from "./nav-actions";
diff --git a/apps/dashboard/src/app/(dashboard)/settings/integrations/page.tsx b/apps/dashboard/src/app/(dashboard)/settings/integrations/page.tsx
index b87949ce5..0d6ae200b 100644
--- a/apps/dashboard/src/app/(dashboard)/settings/integrations/page.tsx
+++ b/apps/dashboard/src/app/(dashboard)/settings/integrations/page.tsx
@@ -1,5 +1,7 @@
"use client";
+import { useQuery } from "@tanstack/react-query";
+
import {
Section,
SectionDescription,
@@ -9,7 +11,7 @@ import {
} from "@/components/content/section";
import { FormCardGroup } from "@/components/forms/form-card";
import { useTRPC } from "@/lib/trpc/client";
-import { useQuery } from "@tanstack/react-query";
+
import { SlackIntegrationCard } from "./slack-card";
export default function Page() {
diff --git a/apps/dashboard/src/app/(dashboard)/settings/integrations/slack-card.tsx b/apps/dashboard/src/app/(dashboard)/settings/integrations/slack-card.tsx
index e8d89cda4..6206e52d3 100644
--- a/apps/dashboard/src/app/(dashboard)/settings/integrations/slack-card.tsx
+++ b/apps/dashboard/src/app/(dashboard)/settings/integrations/slack-card.tsx
@@ -1,5 +1,11 @@
"use client";
+import { Badge } from "@openstatus/ui/components/ui/badge";
+import { Button } from "@openstatus/ui/components/ui/button";
+import { useMutation, useQueryClient } from "@tanstack/react-query";
+import { Lock } from "lucide-react";
+import { useRouter } from "next/navigation";
+
import { Link } from "@/components/common/link";
import {
FormCard,
@@ -12,11 +18,6 @@ import {
FormCardUpgrade,
} from "@/components/forms/form-card";
import { useTRPC } from "@/lib/trpc/client";
-import { Badge } from "@openstatus/ui/components/ui/badge";
-import { Button } from "@openstatus/ui/components/ui/button";
-import { useMutation, useQueryClient } from "@tanstack/react-query";
-import { Lock } from "lucide-react";
-import { useRouter } from "next/navigation";
const SERVER_URL =
process.env.NODE_ENV === "production"
diff --git a/apps/dashboard/src/app/(dashboard)/settings/private-locations/breadcrumb.tsx b/apps/dashboard/src/app/(dashboard)/settings/private-locations/breadcrumb.tsx
index 7b14f3796..104b96b16 100644
--- a/apps/dashboard/src/app/(dashboard)/settings/private-locations/breadcrumb.tsx
+++ b/apps/dashboard/src/app/(dashboard)/settings/private-locations/breadcrumb.tsx
@@ -1,8 +1,9 @@
"use client";
-import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";
import { Cog, Globe } from "lucide-react";
+import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";
+
export function Breadcrumb() {
return (
<NavBreadcrumb
diff --git a/apps/dashboard/src/app/(dashboard)/settings/private-locations/client.tsx b/apps/dashboard/src/app/(dashboard)/settings/private-locations/client.tsx
index 97d3c6e68..231f1d473 100644
--- a/apps/dashboard/src/app/(dashboard)/settings/private-locations/client.tsx
+++ b/apps/dashboard/src/app/(dashboard)/settings/private-locations/client.tsx
@@ -1,4 +1,9 @@
"use client";
+import type { RouterOutputs } from "@openstatus/api";
+import { useQuery } from "@tanstack/react-query";
+import { Lock } from "lucide-react";
+import { useState } from "react";
+
import { Link } from "@/components/common/link";
import {
BillingOverlay,
@@ -17,10 +22,6 @@ import { columns } from "@/components/data-table/private-locations/columns";
import { UpgradeDialog } from "@/components/dialogs/upgrade";
import { DataTable } from "@/components/ui/data-table/data-table";
import { useTRPC } from "@/lib/trpc/client";
-import type { RouterOutputs } from "@openstatus/api";
-import { useQuery } from "@tanstack/react-query";
-import { Lock } from "lucide-react";
-import { useState } from "react";
const EXAMPLES = [
{
diff --git a/apps/dashboard/src/app/(dashboard)/settings/private-locations/layout.tsx b/apps/dashboard/src/app/(dashboard)/settings/private-locations/layout.tsx
index 041118d94..e35c2cc20 100644
--- a/apps/dashboard/src/app/(dashboard)/settings/private-locations/layout.tsx
+++ b/apps/dashboard/src/app/(dashboard)/settings/private-locations/layout.tsx
@@ -5,6 +5,7 @@ import {
} from "@/components/nav/app-header";
import { AppSidebarTrigger } from "@/components/nav/app-sidebar";
import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";
+
import { Tabs } from "../tabs";
import { Breadcrumb } from "./breadcrumb";
import { NavActions } from "./nav-actions";
diff --git a/apps/dashboard/src/app/(dashboard)/settings/private-locations/nav-actions.tsx b/apps/dashboard/src/app/(dashboard)/settings/private-locations/nav-actions.tsx
index 56a9e7b9e..ee8def266 100644
--- a/apps/dashboard/src/app/(dashboard)/settings/private-locations/nav-actions.tsx
+++ b/apps/dashboard/src/app/(dashboard)/settings/private-locations/nav-actions.tsx
@@ -1,12 +1,13 @@
"use client";
+import { Button } from "@openstatus/ui/components/ui/button";
+import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
+import { useState } from "react";
+
import { UpgradeDialog } from "@/components/dialogs/upgrade";
import { FormSheetPrivateLocation } from "@/components/forms/private-location/sheet";
import { NavFeedback } from "@/components/nav/nav-feedback";
import { useTRPC } from "@/lib/trpc/client";
-import { Button } from "@openstatus/ui/components/ui/button";
-import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
-import { useState } from "react";
export function NavActions() {
const trpc = useTRPC();
diff --git a/apps/dashboard/src/app/(dashboard)/settings/tabs.tsx b/apps/dashboard/src/app/(dashboard)/settings/tabs.tsx
index b5fc528d8..80f92c3be 100644
--- a/apps/dashboard/src/app/(dashboard)/settings/tabs.tsx
+++ b/apps/dashboard/src/app/(dashboard)/settings/tabs.tsx
@@ -1,8 +1,9 @@
"use client";
-import { NavTabs } from "@/components/nav/nav-tabs";
import { Blocks, Cog, CreditCard, Globe, ScanEye, User } from "lucide-react";
+import { NavTabs } from "@/components/nav/nav-tabs";
+
export function Tabs() {
return (
<NavTabs
diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/(list)/breadcrumb.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/(list)/breadcrumb.tsx
index fba8e757b..141c700a0 100644
--- a/apps/dashboard/src/app/(dashboard)/status-pages/(list)/breadcrumb.tsx
+++ b/apps/dashboard/src/app/(dashboard)/status-pages/(list)/breadcrumb.tsx
@@ -1,8 +1,9 @@
"use client";
-import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";
import { PanelTop } from "lucide-react";
+import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";
+
export function Breadcrumb() {
return (
<NavBreadcrumb
diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/(list)/client.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/(list)/client.tsx
index 3de41e65a..341666e30 100644
--- a/apps/dashboard/src/app/(dashboard)/status-pages/(list)/client.tsx
+++ b/apps/dashboard/src/app/(dashboard)/status-pages/(list)/client.tsx
@@ -1,5 +1,9 @@
"use client";
+import { useQuery } from "@tanstack/react-query";
+import { Palette } from "lucide-react";
+import Link from "next/link";
+
import { Note, NoteButton } from "@/components/common/note";
import {
SectionDescription,
@@ -11,9 +15,6 @@ import { columns } from "@/components/data-table/status-pages/columns";
import { DataTable } from "@/components/ui/data-table/data-table";
import { DataTablePaginationSimple } from "@/components/ui/data-table/data-table-pagination";
import { useTRPC } from "@/lib/trpc/client";
-import { useQuery } from "@tanstack/react-query";
-import { Palette } from "lucide-react";
-import Link from "next/link";
export function Client() {
const trpc = useTRPC();
diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/(list)/nav-actions.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/(list)/nav-actions.tsx
index 6967c4916..d13779c0d 100644
--- a/apps/dashboard/src/app/(dashboard)/status-pages/(list)/nav-actions.tsx
+++ b/apps/dashboard/src/app/(dashboard)/status-pages/(list)/nav-actions.tsx
@@ -1,13 +1,14 @@
"use client";
-import { UpgradeDialog } from "@/components/dialogs/upgrade";
-import { NavFeedback } from "@/components/nav/nav-feedback";
-import { useTRPC } from "@/lib/trpc/client";
import { Button } from "@openstatus/ui/components/ui/button";
import { useQuery } from "@tanstack/react-query";
import Link from "next/link";
import { useState } from "react";
+import { UpgradeDialog } from "@/components/dialogs/upgrade";
+import { NavFeedback } from "@/components/nav/nav-feedback";
+import { useTRPC } from "@/lib/trpc/client";
+
export function NavActions() {
const [openDialog, setOpenDialog] = useState(false);
const trpc = useTRPC();
diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/(list)/page.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/(list)/page.tsx
index 1fa143634..fc3e62a68 100644
--- a/apps/dashboard/src/app/(dashboard)/status-pages/(list)/page.tsx
+++ b/apps/dashboard/src/app/(dashboard)/status-pages/(list)/page.tsx
@@ -1,4 +1,5 @@
import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";
+
import { Client } from "./client";
export default async function Page() {
diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/breadcrumb.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/breadcrumb.tsx
index df36572aa..dadb8783e 100644
--- a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/breadcrumb.tsx
+++ b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/breadcrumb.tsx
@@ -1,10 +1,12 @@
"use client";
-import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";
-import { useTRPC } from "@/lib/trpc/client";
import { useQuery } from "@tanstack/react-query";
import { PanelTop } from "lucide-react";
import { useParams, usePathname } from "next/navigation";
+
+import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";
+import { useTRPC } from "@/lib/trpc/client";
+
import { STATUS_PAGE_TABS } from "./constants";
export function Breadcrumb() {
diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/components/layout.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/components/layout.tsx
index 527f0f846..9b18b101d 100644
--- a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/components/layout.tsx
+++ b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/components/layout.tsx
@@ -1,9 +1,11 @@
+import { SidebarProvider } from "@openstatus/ui/components/ui/sidebar";
+
import {
RIGHT_SIDEBAR_COOKIE,
getSidebarDefaultOpen,
} from "@/lib/sidebar-cookie";
import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";
-import { SidebarProvider } from "@openstatus/ui/components/ui/sidebar";
+
import { Sidebar } from "../sidebar";
export default async function Layout({
diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/components/page.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/components/page.tsx
index 66782cd8e..81f842196 100644
--- a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/components/page.tsx
+++ b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/components/page.tsx
@@ -1,5 +1,8 @@
"use client";
+import { useQuery } from "@tanstack/react-query";
+import { useParams } from "next/navigation";
+
import {
Section,
SectionDescription,
@@ -9,8 +12,6 @@ import {
} from "@/components/content/section";
import { FormComponentsUpdate } from "@/components/forms/components/update";
import { useTRPC } from "@/lib/trpc/client";
-import { useQuery } from "@tanstack/react-query";
-import { useParams } from "next/navigation";
export default function Page() {
const { id } = useParams<{ id: string }>();
diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/edit/page.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/edit/page.tsx
index 494659239..b3079ce11 100644
--- a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/edit/page.tsx
+++ b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/edit/page.tsx
@@ -1,5 +1,8 @@
"use client";
+import { useQuery } from "@tanstack/react-query";
+import { useParams } from "next/navigation";
+
import {
Section,
SectionDescription,
@@ -9,8 +12,6 @@ import {
} from "@/components/content/section";
import { FormStatusPageUpdate } from "@/components/forms/status-page/update";
import { useTRPC } from "@/lib/trpc/client";
-import { useQuery } from "@tanstack/react-query";
-import { useParams } from "next/navigation";
export default function Page() {
const { id } = useParams<{ id: string }>();
diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/layout.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/layout.tsx
index c972c8c4b..eb9eac213 100644
--- a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/layout.tsx
+++ b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/layout.tsx
@@ -4,13 +4,13 @@ import {
AppHeaderContent,
} from "@/components/nav/app-header";
import { AppSidebarTrigger } from "@/components/nav/app-sidebar";
-
import {
HydrateClient,
fetchQueryOrNotFound,
getQueryClient,
trpc,
} from "@/lib/trpc/server";
+
import { Breadcrumb } from "./breadcrumb";
import { NavActions } from "./nav-actions";
import { Tabs } from "./tabs";
diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/maintenances/layout.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/maintenances/layout.tsx
index 3b4a23ed9..3b65d74b6 100644
--- a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/maintenances/layout.tsx
+++ b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/maintenances/layout.tsx
@@ -1,9 +1,11 @@
+import { SidebarProvider } from "@openstatus/ui/components/ui/sidebar";
+
import {
RIGHT_SIDEBAR_COOKIE,
getSidebarDefaultOpen,
} from "@/lib/sidebar-cookie";
import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";
-import { SidebarProvider } from "@openstatus/ui/components/ui/sidebar";
+
import { Sidebar } from "../sidebar";
export default async function Layout({
diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/maintenances/page.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/maintenances/page.tsx
index 38c4b1925..46d930921 100644
--- a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/maintenances/page.tsx
+++ b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/maintenances/page.tsx
@@ -1,5 +1,10 @@
"use client";
+import { Button } from "@openstatus/ui/components/ui/button";
+import { useMutation, useQuery } from "@tanstack/react-query";
+import { Plus } from "lucide-react";
+import { useParams } from "next/navigation";
+
import { Link } from "@/components/common/link";
import {
Section,
@@ -14,10 +19,6 @@ import { FormSheetMaintenance } from "@/components/forms/maintenance/sheet";
import { toCheckboxTreeItems } from "@/components/ui/checkbox-tree";
import { DataTable } from "@/components/ui/data-table/data-table";
import { useTRPC } from "@/lib/trpc/client";
-import { Button } from "@openstatus/ui/components/ui/button";
-import { useMutation, useQuery } from "@tanstack/react-query";
-import { Plus } from "lucide-react";
-import { useParams } from "next/navigation";
export default function Page() {
const { id } = useParams<{ id: string }>();
diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/nav-actions.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/nav-actions.tsx
index 5f41de8e5..372f16377 100644
--- a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/nav-actions.tsx
+++ b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/nav-actions.tsx
@@ -1,9 +1,5 @@
"use client";
-import { QuickActions } from "@/components/dropdowns/quick-actions";
-import { NavFeedback } from "@/components/nav/nav-feedback";
-import { getActions } from "@/data/status-pages.client";
-import { useTRPC } from "@/lib/trpc/client";
import { Button } from "@openstatus/ui/components/ui/button";
import {
Tooltip,
@@ -16,6 +12,11 @@ import { Globe } from "lucide-react";
import { useParams, usePathname, useRouter } from "next/navigation";
import { toast } from "sonner";
+import { QuickActions } from "@/components/dropdowns/quick-actions";
+import { NavFeedback } from "@/components/nav/nav-feedback";
+import { getActions } from "@/data/status-pages.client";
+import { useTRPC } from "@/lib/trpc/client";
+
export function NavActions() {
const { id } = useParams<{ id: string }>();
const router = useRouter();
@@ -64,7 +65,7 @@ export function NavActions() {
target="_blank"
rel="noreferrer"
>
- <Globe className="h-4 w-4 text-muted-foreground group-hover:text-foreground" />
+ <Globe className="text-muted-foreground group-hover:text-foreground h-4 w-4" />
</a>
</Button>
</TooltipTrigger>
diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/sidebar.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/sidebar.tsx
index f58bab63f..153da5bd8 100644
--- a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/sidebar.tsx
+++ b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/sidebar.tsx
@@ -1,9 +1,5 @@
"use client";
-import { Link } from "@/components/common/link";
-import { TableCellLink } from "@/components/data-table/table-cell-link";
-import { SidebarRight } from "@/components/nav/sidebar-right";
-import { useTRPC } from "@/lib/trpc/client";
import {
Tooltip,
TooltipContent,
@@ -15,6 +11,11 @@ import { useQuery } from "@tanstack/react-query";
import { ExternalLink } from "lucide-react";
import { useParams } from "next/navigation";
+import { Link } from "@/components/common/link";
+import { TableCellLink } from "@/components/data-table/table-cell-link";
+import { SidebarRight } from "@/components/nav/sidebar-right";
+import { useTRPC } from "@/lib/trpc/client";
+
export function Sidebar() {
const { id } = useParams<{ id: string }>();
const trpc = useTRPC();
@@ -56,7 +57,7 @@ export function Sidebar() {
{
label: "Favicon",
value: statusPage.icon ? (
- <div className="size-4 overflow-hidden rounded border bg-muted">
+ <div className="bg-muted size-4 overflow-hidden rounded border">
<img src={statusPage.icon} alt="favicon" />
</div>
) : (
diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/status-reports/[reportId]/page.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/status-reports/[reportId]/page.tsx
index 4e2d01e39..6c53f2847 100644
--- a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/status-reports/[reportId]/page.tsx
+++ b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/status-reports/[reportId]/page.tsx
@@ -1,5 +1,10 @@
"use client";
+import { Button } from "@openstatus/ui/components/ui/button";
+import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
+import { Plus } from "lucide-react";
+import { useParams } from "next/navigation";
+
import {
EmptyStateContainer,
EmptyStateDescription,
@@ -19,10 +24,6 @@ import { FormStatusReportUpdateCard } from "@/components/forms/status-report-upd
import { FormSheetStatusReportUpdate } from "@/components/forms/status-report-update/sheet";
import { getNextStatus } from "@/data/status-report-updates.client";
import { useTRPC } from "@/lib/trpc/client";
-import { Button } from "@openstatus/ui/components/ui/button";
-import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
-import { Plus } from "lucide-react";
-import { useParams } from "next/navigation";
export default function Page() {
const { reportId } = useParams<{ id: string; reportId: string }>();
diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/status-reports/layout.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/status-reports/layout.tsx
index 267bfbaa9..9a6eb9926 100644
--- a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/status-reports/layout.tsx
+++ b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/status-reports/layout.tsx
@@ -1,9 +1,11 @@
+import { SidebarProvider } from "@openstatus/ui/components/ui/sidebar";
+
import {
RIGHT_SIDEBAR_COOKIE,
getSidebarDefaultOpen,
} from "@/lib/sidebar-cookie";
import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";
-import { SidebarProvider } from "@openstatus/ui/components/ui/sidebar";
+
import { Sidebar } from "../sidebar";
export default async function Layout({
diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/status-reports/page.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/status-reports/page.tsx
index 74294c8a1..e8e0d9947 100644
--- a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/status-reports/page.tsx
+++ b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/status-reports/page.tsx
@@ -1,5 +1,10 @@
"use client";
+import { Button } from "@openstatus/ui/components/ui/button";
+import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
+import { Plus } from "lucide-react";
+import { useParams } from "next/navigation";
+
import { Link } from "@/components/common/link";
import {
Section,
@@ -15,10 +20,6 @@ import { FormSheetStatusReport } from "@/components/forms/status-report/sheet";
import { toCheckboxTreeItems } from "@/components/ui/checkbox-tree";
import { DataTable } from "@/components/ui/data-table/data-table";
import { useTRPC } from "@/lib/trpc/client";
-import { Button } from "@openstatus/ui/components/ui/button";
-import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
-import { Plus } from "lucide-react";
-import { useParams } from "next/navigation";
export default function Page() {
const { id } = useParams<{ id: string }>();
diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/subscribers/page.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/subscribers/page.tsx
index 4fda4f6e0..1b335b32e 100644
--- a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/subscribers/page.tsx
+++ b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/subscribers/page.tsx
@@ -1,5 +1,12 @@
"use client";
+import type { RouterOutputs } from "@openstatus/api";
+import { Button } from "@openstatus/ui/components/ui/button";
+import { useMutation, useQuery } from "@tanstack/react-query";
+import { Lock, Plus } from "lucide-react";
+import { notFound, useParams } from "next/navigation";
+import { useState } from "react";
+
import { Link } from "@/components/common/link";
import {
BillingOverlay,
@@ -19,7 +26,6 @@ import {
SectionHeaderRow,
SectionTitle,
} from "@/components/content/section";
-
import { Section } from "@/components/content/section";
import { columns } from "@/components/data-table/subscribers/columns";
import { SubscribersDataTableToolbar } from "@/components/data-table/subscribers/data-table-toolbar";
@@ -29,12 +35,6 @@ import { toCheckboxTreeItems } from "@/components/ui/checkbox-tree";
import { DataTable } from "@/components/ui/data-table/data-table";
import { DataTablePaginationSimple } from "@/components/ui/data-table/data-table-pagination";
import { useTRPC } from "@/lib/trpc/client";
-import type { RouterOutputs } from "@openstatus/api";
-import { Button } from "@openstatus/ui/components/ui/button";
-import { useMutation, useQuery } from "@tanstack/react-query";
-import { Lock, Plus } from "lucide-react";
-import { notFound, useParams } from "next/navigation";
-import { useState } from "react";
type Subscriber = RouterOutputs["pageSubscriber"]["list"][number];
diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/tabs.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/tabs.tsx
index 216e7ed87..ccdc3bd4c 100644
--- a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/tabs.tsx
+++ b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/tabs.tsx
@@ -1,7 +1,9 @@
"use client";
-import { NavTabs } from "@/components/nav/nav-tabs";
import { useParams } from "next/navigation";
+
+import { NavTabs } from "@/components/nav/nav-tabs";
+
import { STATUS_PAGE_TABS } from "./constants";
export function Tabs() {
diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/create/breadcrumb.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/create/breadcrumb.tsx
index 5028e591e..5c75011b3 100644
--- a/apps/dashboard/src/app/(dashboard)/status-pages/create/breadcrumb.tsx
+++ b/apps/dashboard/src/app/(dashboard)/status-pages/create/breadcrumb.tsx
@@ -1,8 +1,9 @@
"use client";
-import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";
import { PanelTop } from "lucide-react";
+import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";
+
export function Breadcrumb() {
return (
<NavBreadcrumb
diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/create/client.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/create/client.tsx
index 2d3b555f5..b26448ff0 100644
--- a/apps/dashboard/src/app/(dashboard)/status-pages/create/client.tsx
+++ b/apps/dashboard/src/app/(dashboard)/status-pages/create/client.tsx
@@ -1,5 +1,9 @@
"use client";
+import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
+import { useRouter } from "next/navigation";
+import { useTransition } from "react";
+
import {
EmptyStateDescription,
EmptyStateTitle,
@@ -13,9 +17,6 @@ import {
} from "@/components/content/section";
import { FormGeneral } from "@/components/forms/status-page/form-general";
import { useTRPC } from "@/lib/trpc/client";
-import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
-import { useRouter } from "next/navigation";
-import { useTransition } from "react";
export function Client() {
const [isPending, startTransition] = useTransition();
diff --git a/apps/dashboard/src/app/api/chat/route.ts b/apps/dashboard/src/app/api/chat/route.ts
index 2a41ba2ce..8b9730f2f 100644
--- a/apps/dashboard/src/app/api/chat/route.ts
+++ b/apps/dashboard/src/app/api/chat/route.ts
@@ -1,6 +1,3 @@
-import { cookies } from "next/headers";
-import { type NextRequest, NextResponse } from "next/server";
-
import {
type ChatStoredMessage,
storedMessageSchema,
@@ -20,6 +17,8 @@ import {
stepCountIs,
streamText,
} from "ai";
+import { cookies } from "next/headers";
+import { type NextRequest, NextResponse } from "next/server";
import { z } from "zod";
import { toAiSdkTools } from "@/lib/agent-tools/adapter";
diff --git a/apps/dashboard/src/app/api/onboarding/checks/route.ts b/apps/dashboard/src/app/api/onboarding/checks/route.ts
index e8b5b8fdf..eb01a9aba 100644
--- a/apps/dashboard/src/app/api/onboarding/checks/route.ts
+++ b/apps/dashboard/src/app/api/onboarding/checks/route.ts
@@ -1,4 +1,3 @@
-import { getServiceContextFromRequest } from "@/lib/edge-context";
import { ServiceError, type ServiceErrorCode } from "@openstatus/services";
import {
type CheckResult,
@@ -7,6 +6,8 @@ import {
import { iteratorToStream } from "@openstatus/utils";
import { z } from "zod";
+import { getServiceContextFromRequest } from "@/lib/edge-context";
+
export const runtime = "edge";
const SERVICE_ERROR_STATUS: Record<ServiceErrorCode, number> = {
diff --git a/apps/dashboard/src/app/api/trpc/edge/[trpc]/route.ts b/apps/dashboard/src/app/api/trpc/edge/[trpc]/route.ts
index 215b24ce3..9dd8225ba 100644
--- a/apps/dashboard/src/app/api/trpc/edge/[trpc]/route.ts
+++ b/apps/dashboard/src/app/api/trpc/edge/[trpc]/route.ts
@@ -1,10 +1,10 @@
+import { createTRPCContext } from "@openstatus/api";
+import { edgeRouter } from "@openstatus/api/src/edge";
import { fetchRequestHandler } from "@trpc/server/adapters/fetch";
import type { NextRequest } from "next/server";
import { auth } from "@/lib/auth";
import { createOnError, guardTRPCSource } from "@/lib/trpc/shared";
-import { createTRPCContext } from "@openstatus/api";
-import { edgeRouter } from "@openstatus/api/src/edge";
export const runtime = "edge";
diff --git a/apps/dashboard/src/app/api/trpc/lambda/[trpc]/route.ts b/apps/dashboard/src/app/api/trpc/lambda/[trpc]/route.ts
index de648a3b4..944ea4af4 100644
--- a/apps/dashboard/src/app/api/trpc/lambda/[trpc]/route.ts
+++ b/apps/dashboard/src/app/api/trpc/lambda/[trpc]/route.ts
@@ -1,10 +1,10 @@
+import { createTRPCContext } from "@openstatus/api";
+import { lambdaRouter } from "@openstatus/api/src/lambda";
import { fetchRequestHandler } from "@trpc/server/adapters/fetch";
import type { NextRequest } from "next/server";
import { auth } from "@/lib/auth";
import { createOnError, guardTRPCSource } from "@/lib/trpc/shared";
-import { createTRPCContext } from "@openstatus/api";
-import { lambdaRouter } from "@openstatus/api/src/lambda";
// Stripe is incompatible with Edge runtimes due to using Node.js events
// export const runtime = "edge";
diff --git a/apps/dashboard/src/app/global-error.tsx b/apps/dashboard/src/app/global-error.tsx
index f9babe1cf..eede9cec6 100644
--- a/apps/dashboard/src/app/global-error.tsx
+++ b/apps/dashboard/src/app/global-error.tsx
@@ -17,7 +17,7 @@ export default function GlobalError({
<html lang="en">
<body>
{/* This is the default Next.js error component but it doesn't allow omitting the statusCode property yet. */}
- {/* biome-ignore lint/suspicious/noExplicitAny: <explanation> */}
+ {/* oxlint-disable-next-line typescript/no-explicit-any */}
<NextError statusCode={undefined as any} />
</body>
</html>
diff --git a/apps/dashboard/src/app/layout.tsx b/apps/dashboard/src/app/layout.tsx
index a0d95329b..df18a14d1 100644
--- a/apps/dashboard/src/app/layout.tsx
+++ b/apps/dashboard/src/app/layout.tsx
@@ -1,16 +1,19 @@
-import type { Metadata } from "next";
-import { Geist, Geist_Mono, Inter } from "next/font/google";
-import "./globals.css";
-import { TailwindIndicator } from "@/components/tailwind-indicator";
-import { ThemeProvider } from "@/components/theme-provider";
-import { auth } from "@/lib/auth";
-import { TRPCReactProvider } from "@/lib/trpc/client";
import { OpenPanelComponent } from "@openpanel/nextjs";
import { Toaster } from "@openstatus/ui/components/ui/sonner";
+
+import "./globals.css";
import { cn } from "@openstatus/ui/lib/utils";
+import type { Metadata } from "next";
import { SessionProvider } from "next-auth/react";
+import { Geist, Geist_Mono, Inter } from "next/font/google";
import LocalFont from "next/font/local";
import { NuqsAdapter } from "nuqs/adapters/next/app";
+
+import { TailwindIndicator } from "@/components/tailwind-indicator";
+import { ThemeProvider } from "@/components/theme-provider";
+import { auth } from "@/lib/auth";
+import { TRPCReactProvider } from "@/lib/trpc/client";
+
import { ogMetadata, twitterMetadata } from "./metadata";
import { defaultMetadata } from "./metadata";
@@ -88,7 +91,7 @@ export default async function RootLayout({
cal.variable,
commitMono.variable,
inter.variable,
- "font-sans antialiased ",
+ "font-sans antialiased",
)}
>
<SessionProvider session={session}>
diff --git a/apps/dashboard/src/app/login/_components/login-button.tsx b/apps/dashboard/src/app/login/_components/login-button.tsx
index 4ada8b5b0..2d3a213bc 100644
--- a/apps/dashboard/src/app/login/_components/login-button.tsx
+++ b/apps/dashboard/src/app/login/_components/login-button.tsx
@@ -30,7 +30,7 @@ export function LoginButton({
variant="secondary"
className={cn(
"relative w-full",
- isLastUsed && "border border-primary",
+ isLastUsed && "border-primary border",
className,
)}
onClick={(e) => {
@@ -43,7 +43,7 @@ export function LoginButton({
{isLastUsed ? (
<Badge
variant="secondary"
- className="-top-2.5 -right-2.5 absolute border border-primary bg-background text-[10px]"
+ className="border-primary bg-background absolute -top-2.5 -right-2.5 border text-[10px]"
>
Last used
</Badge>
diff --git a/apps/dashboard/src/app/login/_components/magic-link-form.tsx b/apps/dashboard/src/app/login/_components/magic-link-form.tsx
index 29388fe14..866d552e8 100644
--- a/apps/dashboard/src/app/login/_components/magic-link-form.tsx
+++ b/apps/dashboard/src/app/login/_components/magic-link-form.tsx
@@ -1,10 +1,10 @@
"use client";
-import { useFormStatus } from "react-dom";
-
import { Input } from "@openstatus/ui/components/ui/input";
import { Label } from "@openstatus/ui/components/ui/label";
+import { useFormStatus } from "react-dom";
import { toast } from "sonner";
+
import { signInWithResendAction } from "./actions";
import { LoginButton } from "./login-button";
diff --git a/apps/dashboard/src/app/login/page.tsx b/apps/dashboard/src/app/login/page.tsx
index 3bc658e89..96a30e007 100644
--- a/apps/dashboard/src/app/login/page.tsx
+++ b/apps/dashboard/src/app/login/page.tsx
@@ -1,11 +1,12 @@
-import type { Metadata } from "next";
-import Link from "next/link";
-
-import { signIn } from "@/lib/auth";
import { GitHubIcon } from "@openstatus/icons";
import { GoogleIcon } from "@openstatus/icons";
import { Separator } from "@openstatus/ui/components/ui/separator";
+import type { Metadata } from "next";
+import Link from "next/link";
import type { SearchParams } from "nuqs/server";
+
+import { signIn } from "@/lib/auth";
+
import { LoginButton } from "./_components/login-button";
import MagicLinkForm from "./_components/magic-link-form";
import { searchParamsCache } from "./search-params";
@@ -33,7 +34,7 @@ export default async function Page(props: {
<div className="my-16 grid w-full max-w-lg gap-6">
<div className="flex flex-col gap-1 text-center">
<h1 className="font-cal text-3xl tracking-tight">Sign In</h1>
- <p className="text-pretty font-commit-mono text-muted-foreground text-sm">
+ <p className="font-commit-mono text-muted-foreground text-sm text-pretty">
Get started now. No credit card required.
</p>
</div>
@@ -68,18 +69,18 @@ export default async function Page(props: {
</LoginButton>
</form>
</div>
- <p className="mx-auto max-w-md text-pretty px-8 text-center text-muted-foreground text-xs">
+ <p className="text-muted-foreground mx-auto max-w-md px-8 text-center text-xs text-pretty">
By clicking continue, you agree to our{" "}
<Link
href="https://openstatus.dev/legal/terms"
- className="underline underline-offset-4 hover:text-primary hover:no-underline"
+ className="hover:text-primary underline underline-offset-4 hover:no-underline"
>
Terms of Service
</Link>{" "}
and{" "}
<Link
href="https://openstatus.dev/legal/privacy"
- className="underline underline-offset-4 hover:text-primary hover:no-underline"
+ className="hover:text-primary underline underline-offset-4 hover:no-underline"
>
Privacy Policy
</Link>
diff --git a/apps/dashboard/src/app/not-found.tsx b/apps/dashboard/src/app/not-found.tsx
index da114012e..306d7d229 100644
--- a/apps/dashboard/src/app/not-found.tsx
+++ b/apps/dashboard/src/app/not-found.tsx
@@ -1,21 +1,20 @@
"use client";
+import { Button } from "@openstatus/ui/components/ui/button";
import Link from "next/link";
import { useRouter } from "next/navigation";
-import { Button } from "@openstatus/ui/components/ui/button";
-
export default function NotFound() {
const router = useRouter();
return (
- <main className="flex min-h-screen w-full flex-col space-y-6 bg-background p-4 md:p-8">
+ <main className="bg-background 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 rounded-lg border bg-card text-center">
+ <div className="bg-card mx-auto max-w-xl rounded-lg border text-center">
<div className="flex flex-col gap-4 p-6 sm:p-12">
<div className="flex flex-col gap-1">
- <p className="font-mono text-foreground">404 Page not found</p>
- <h2 className="font-cal text-2xl text-foreground">
+ <p className="text-foreground font-mono">404 Page not found</p>
+ <h2 className="font-cal text-foreground text-2xl">
Oops, something went wrong.
</h2>
<p className="text-muted-foreground text-sm sm:text-base">
diff --git a/apps/dashboard/src/app/onboarding/_steps/step-1.tsx b/apps/dashboard/src/app/onboarding/_steps/step-1.tsx
index 31fa21aeb..03314132c 100644
--- a/apps/dashboard/src/app/onboarding/_steps/step-1.tsx
+++ b/apps/dashboard/src/app/onboarding/_steps/step-1.tsx
@@ -1,5 +1,10 @@
"use client";
+import { AVAILABLE_REGIONS } from "@openstatus/regions";
+import { Button } from "@openstatus/ui/components/ui/button";
+import { ArrowRight } from "lucide-react";
+import { useMemo } from "react";
+
import { CreateMonitorForm } from "@/components/forms/onboarding/create-monitor";
import {
OnboardingActions,
@@ -25,10 +30,7 @@ import { checkResultToResponseLog } from "@/components/onboarding/checks-table-a
import type { useStreamChecks } from "@/components/onboarding/use-stream-checks";
import { exampleChecks } from "@/data/onboarding-checks";
import { cn } from "@/lib/utils";
-import { AVAILABLE_REGIONS } from "@openstatus/regions";
-import { Button } from "@openstatus/ui/components/ui/button";
-import { ArrowRight } from "lucide-react";
-import { useMemo } from "react";
+
import type { OnboardingMonitor } from "../client";
const TOTAL_REGIONS = AVAILABLE_REGIONS.length;
diff --git a/apps/dashboard/src/app/onboarding/_steps/step-2.tsx b/apps/dashboard/src/app/onboarding/_steps/step-2.tsx
index 79250f6fa..3187fdd37 100644
--- a/apps/dashboard/src/app/onboarding/_steps/step-2.tsx
+++ b/apps/dashboard/src/app/onboarding/_steps/step-2.tsx
@@ -1,5 +1,10 @@
"use client";
+import type { ThemeKey } from "@openstatus/theme-store";
+import { Button } from "@openstatus/ui/components/ui/button";
+import { ArrowRight } from "lucide-react";
+import { useState } from "react";
+
import {
CreatePageForm,
type FormValues as CreatePageFormValues,
@@ -17,10 +22,7 @@ import {
OnboardingStepper,
} from "@/components/layout/onboarding-layout";
import { OnboardingStatusPagePreview } from "@/components/onboarding/status-page-preview";
-import type { ThemeKey } from "@openstatus/theme-store";
-import { Button } from "@openstatus/ui/components/ui/button";
-import { ArrowRight } from "lucide-react";
-import { useState } from "react";
+
import type { OnboardingPage } from "../client";
export function Step2({
@@ -118,10 +120,12 @@ export function Step2({
<div className="flex h-[calc(100dvh-13rem)] flex-1 overflow-hidden md:h-auto md:min-h-0">
<OnboardingStatusPagePreview
slug={
- isLocked ? createdPageData?.slug ?? "" : lockedPreviewValues.slug
+ isLocked
+ ? (createdPageData?.slug ?? "")
+ : lockedPreviewValues.slug
}
title={(isLocked
- ? createdPageData?.title ?? ""
+ ? (createdPageData?.title ?? "")
: lockedPreviewValues.slug
).replace(/-/g, " ")}
components={lockedPreviewValues.components ?? []}
diff --git a/apps/dashboard/src/app/onboarding/_steps/step-3.tsx b/apps/dashboard/src/app/onboarding/_steps/step-3.tsx
index 1611815f9..4fbe2b212 100644
--- a/apps/dashboard/src/app/onboarding/_steps/step-3.tsx
+++ b/apps/dashboard/src/app/onboarding/_steps/step-3.tsx
@@ -1,5 +1,19 @@
"use client";
+import { Button } from "@openstatus/ui/components/ui/button";
+import {
+ Activity,
+ ArrowRight,
+ Bell,
+ Calendar,
+ CreditCard,
+ LayoutGrid,
+ PanelTop,
+ UserPlus,
+} from "lucide-react";
+import Link from "next/link";
+import { useMemo } from "react";
+
import {
OnboardingActions,
OnboardingFormColumn,
@@ -14,19 +28,6 @@ import {
FeatureBadgeWall,
QuestionPanel,
} from "@/components/onboarding/feature-badges";
-import { Button } from "@openstatus/ui/components/ui/button";
-import {
- Activity,
- ArrowRight,
- Bell,
- Calendar,
- CreditCard,
- LayoutGrid,
- PanelTop,
- UserPlus,
-} from "lucide-react";
-import Link from "next/link";
-import { useMemo } from "react";
export function Step3({
stepperSteps,
@@ -87,7 +88,7 @@ export function Step3({
<Link
key={link.name}
href={link.href}
- className="flex items-center gap-2 rounded-md border border-border bg-background px-4 py-2 font-commit-mono text-muted-foreground text-sm transition-colors hover:bg-accent hover:text-accent-foreground"
+ className="border-border bg-background font-commit-mono text-muted-foreground hover:bg-accent hover:text-accent-foreground flex items-center gap-2 rounded-md border px-4 py-2 text-sm transition-colors"
>
<link.icon className="h-4 w-4" />
{link.name}
diff --git a/apps/dashboard/src/app/onboarding/client.tsx b/apps/dashboard/src/app/onboarding/client.tsx
index e648ffac2..cd8687bcb 100644
--- a/apps/dashboard/src/app/onboarding/client.tsx
+++ b/apps/dashboard/src/app/onboarding/client.tsx
@@ -1,12 +1,5 @@
"use client";
-import {
- OnboardingLayout,
- OnboardingShell,
-} from "@/components/layout/onboarding-layout";
-import { useStreamChecks } from "@/components/onboarding/use-stream-checks";
-import { getCompanyDomainFromEmail } from "@/lib/onboarding/email-domain";
-import { useTRPC } from "@/lib/trpc/client";
import type { RouterOutputs } from "@openstatus/api";
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
import { Activity, PanelTop, Rocket } from "lucide-react";
@@ -14,6 +7,15 @@ import { usePathname } from "next/navigation";
import { useQueryStates } from "nuqs";
import { generateSlug } from "random-word-slugs";
import { useEffect, useMemo, useRef } from "react";
+
+import {
+ OnboardingLayout,
+ OnboardingShell,
+} from "@/components/layout/onboarding-layout";
+import { useStreamChecks } from "@/components/onboarding/use-stream-checks";
+import { getCompanyDomainFromEmail } from "@/lib/onboarding/email-domain";
+import { useTRPC } from "@/lib/trpc/client";
+
import { Step1 } from "./_steps/step-1";
import { Step2 } from "./_steps/step-2";
import { Step3 } from "./_steps/step-3";
diff --git a/apps/dashboard/src/app/onboarding/page.tsx b/apps/dashboard/src/app/onboarding/page.tsx
index 371c3901a..2d30beb0c 100644
--- a/apps/dashboard/src/app/onboarding/page.tsx
+++ b/apps/dashboard/src/app/onboarding/page.tsx
@@ -1,7 +1,9 @@
-import { getQueryClient, trpc } from "@/lib/trpc/server";
import { cookies } from "next/headers";
import { redirect } from "next/navigation";
import type { SearchParams } from "nuqs";
+
+import { getQueryClient, trpc } from "@/lib/trpc/server";
+
import { Client } from "./client";
import { searchParamsCache } from "./search-params";
diff --git a/apps/dashboard/src/components/chart/chart-area-latency.tsx b/apps/dashboard/src/components/chart/chart-area-latency.tsx
index 8ca92fd9e..98cb3d706 100644
--- a/apps/dashboard/src/components/chart/chart-area-latency.tsx
+++ b/apps/dashboard/src/components/chart/chart-area-latency.tsx
@@ -1,5 +1,15 @@
"use client";
+import {
+ type ChartConfig,
+ ChartContainer,
+ ChartLegend,
+ ChartLegendContent,
+ ChartTooltip,
+ ChartTooltipContent,
+} from "@openstatus/ui/components/ui/chart";
+import { useQuery } from "@tanstack/react-query";
+import { endOfDay } from "date-fns";
import {
Area,
AreaChart,
@@ -17,16 +27,7 @@ import {
} from "@/data/metrics.client";
import { periodToFromDate } from "@/data/metrics.client";
import { useTRPC } from "@/lib/trpc/client";
-import {
- type ChartConfig,
- ChartContainer,
- ChartLegend,
- ChartLegendContent,
- ChartTooltip,
- ChartTooltipContent,
-} from "@openstatus/ui/components/ui/chart";
-import { useQuery } from "@tanstack/react-query";
-import { endOfDay } from "date-fns";
+
import { ChartTooltipNumber } from "./chart-tooltip-number";
const chartConfig = {
diff --git a/apps/dashboard/src/components/chart/chart-area-timing-phases.tsx b/apps/dashboard/src/components/chart/chart-area-timing-phases.tsx
index 1b039f383..3902e2682 100644
--- a/apps/dashboard/src/components/chart/chart-area-timing-phases.tsx
+++ b/apps/dashboard/src/components/chart/chart-area-timing-phases.tsx
@@ -1,5 +1,14 @@
"use client";
+import {
+ type ChartConfig,
+ ChartContainer,
+ ChartLegend,
+ ChartLegendContent,
+ ChartTooltip,
+ ChartTooltipContent,
+} from "@openstatus/ui/components/ui/chart";
+import { useQuery } from "@tanstack/react-query";
import {
Area,
AreaChart,
@@ -17,15 +26,7 @@ import {
mapTimingPhases,
} from "@/data/metrics.client";
import { useTRPC } from "@/lib/trpc/client";
-import {
- type ChartConfig,
- ChartContainer,
- ChartLegend,
- ChartLegendContent,
- ChartTooltip,
- ChartTooltipContent,
-} from "@openstatus/ui/components/ui/chart";
-import { useQuery } from "@tanstack/react-query";
+
import {
ChartTooltipNumber,
ChartTooltipNumberRaw,
@@ -133,7 +134,7 @@ export function ChartAreaTimingPhases({
<ChartTooltipNumberRaw
value={total}
label="Total"
- className="flex h-0 basis-full items-center border-t font-medium text-foreground text-xs"
+ className="text-foreground flex h-0 basis-full items-center border-t text-xs font-medium"
/>
</>
);
diff --git a/apps/dashboard/src/components/chart/chart-bar-uptime-light.tsx b/apps/dashboard/src/components/chart/chart-bar-uptime-light.tsx
index 7d432a6b6..7f8493fc5 100644
--- a/apps/dashboard/src/components/chart/chart-bar-uptime-light.tsx
+++ b/apps/dashboard/src/components/chart/chart-bar-uptime-light.tsx
@@ -1,10 +1,5 @@
"use client";
-import { Skeleton } from "@openstatus/ui/components/ui/skeleton";
-import { Bar, BarChart, XAxis } from "recharts";
-
-import { mapUptime } from "@/data/metrics.client";
-import { useTRPC } from "@/lib/trpc/client";
import type { Region } from "@openstatus/db/src/schema/constants";
import {
type ChartConfig,
@@ -12,7 +7,12 @@ import {
ChartTooltip,
ChartTooltipContent,
} from "@openstatus/ui/components/ui/chart";
+import { Skeleton } from "@openstatus/ui/components/ui/skeleton";
import { useQuery } from "@tanstack/react-query";
+import { Bar, BarChart, XAxis } from "recharts";
+
+import { mapUptime } from "@/data/metrics.client";
+import { useTRPC } from "@/lib/trpc/client";
// import { startOfDay, subDays } from "date-fns";
const chartConfig = {
@@ -53,7 +53,7 @@ export function ChartBarUptimeLight({
);
if (isLoading) {
- return <Skeleton className=" my-auto h-5 w-full" />;
+ return <Skeleton className="my-auto h-5 w-full" />;
}
const refinedUptime = uptime ? mapUptime(uptime) : [];
diff --git a/apps/dashboard/src/components/chart/chart-bar-uptime.tsx b/apps/dashboard/src/components/chart/chart-bar-uptime.tsx
index cc421991d..f408334ae 100644
--- a/apps/dashboard/src/components/chart/chart-bar-uptime.tsx
+++ b/apps/dashboard/src/components/chart/chart-bar-uptime.tsx
@@ -1,14 +1,5 @@
"use client";
-import { Bar, BarChart, CartesianGrid, XAxis, YAxis } from "recharts";
-
-import {
- type PERIODS,
- mapUptime,
- periodToFromDate,
- periodToInterval,
-} from "@/data/metrics.client";
-import { useTRPC } from "@/lib/trpc/client";
import {
type ChartConfig,
ChartContainer,
@@ -20,6 +11,15 @@ import {
import { useIsMobile } from "@openstatus/ui/hooks/use-mobile";
import { useQuery } from "@tanstack/react-query";
import { endOfDay } from "date-fns";
+import { Bar, BarChart, CartesianGrid, XAxis, YAxis } from "recharts";
+
+import {
+ type PERIODS,
+ mapUptime,
+ periodToFromDate,
+ periodToInterval,
+} from "@/data/metrics.client";
+import { useTRPC } from "@/lib/trpc/client";
const chartConfig = {
ok: {
diff --git a/apps/dashboard/src/components/chart/chart-line-region.tsx b/apps/dashboard/src/components/chart/chart-line-region.tsx
index fd52ced86..f8ab945db 100644
--- a/apps/dashboard/src/components/chart/chart-line-region.tsx
+++ b/apps/dashboard/src/components/chart/chart-line-region.tsx
@@ -1,7 +1,5 @@
"use client";
-import { CartesianGrid, Line, LineChart, XAxis, YAxis } from "recharts";
-
import {
type ChartConfig,
ChartContainer,
@@ -9,6 +7,8 @@ import {
ChartTooltipContent,
} from "@openstatus/ui/components/ui/chart";
import { cn } from "@openstatus/ui/lib/utils";
+import { CartesianGrid, Line, LineChart, XAxis, YAxis } from "recharts";
+
import { ChartTooltipNumber } from "./chart-tooltip-number";
const chartConfig = {
diff --git a/apps/dashboard/src/components/chart/chart-line-regions.tsx b/apps/dashboard/src/components/chart/chart-line-regions.tsx
index 71e19f2ae..40d97b184 100644
--- a/apps/dashboard/src/components/chart/chart-line-regions.tsx
+++ b/apps/dashboard/src/components/chart/chart-line-regions.tsx
@@ -1,9 +1,5 @@
"use client";
-import { CartesianGrid, Line, LineChart, XAxis, YAxis } from "recharts";
-
-import { getRegionColor } from "@/data/regions";
-import { cn } from "@/lib/utils";
import type { PrivateLocation } from "@openstatus/db/src/schema";
import { monitorRegions } from "@openstatus/db/src/schema/constants";
import { getRegionInfo } from "@openstatus/regions";
@@ -16,6 +12,11 @@ import {
ChartTooltipContent,
} from "@openstatus/ui/components/ui/chart";
import { useIsMobile } from "@openstatus/ui/hooks/use-mobile";
+import { CartesianGrid, Line, LineChart, XAxis, YAxis } from "recharts";
+
+import { getRegionColor } from "@/data/regions";
+import { cn } from "@/lib/utils";
+
import { ChartTooltipNumber } from "./chart-tooltip-number";
function getChartConfig(privateLocations?: PrivateLocation[]) {
diff --git a/apps/dashboard/src/components/chart/chart-tooltip-number.tsx b/apps/dashboard/src/components/chart/chart-tooltip-number.tsx
index 8ee2db5da..998315d5a 100644
--- a/apps/dashboard/src/components/chart/chart-tooltip-number.tsx
+++ b/apps/dashboard/src/components/chart/chart-tooltip-number.tsx
@@ -50,9 +50,9 @@ export function ChartTooltipNumberRaw({
style={style}
/>
<span>{label}</span>
- <div className="ml-auto flex items-baseline gap-0.5 font-medium font-mono text-foreground tabular-nums">
+ <div className="text-foreground ml-auto flex items-baseline gap-0.5 font-mono font-medium tabular-nums">
{value}
- <span className="font-normal text-muted-foreground">ms</span>
+ <span className="text-muted-foreground font-normal">ms</span>
</div>
</>
);
diff --git a/apps/dashboard/src/components/chat/chat-conversation.tsx b/apps/dashboard/src/components/chat/chat-conversation.tsx
index 0314be216..03dc644e1 100644
--- a/apps/dashboard/src/components/chat/chat-conversation.tsx
+++ b/apps/dashboard/src/components/chat/chat-conversation.tsx
@@ -12,7 +12,6 @@ type Props = {
export function ChatConversation({ messages, status }: Props) {
// No inner overflow container — pin the window itself.
- // biome-ignore lint/correctness/useExhaustiveDependencies: deps are change triggers, not reads
useEffect(() => {
if (typeof window === "undefined") return;
window.scrollTo({ top: document.body.scrollHeight });
diff --git a/apps/dashboard/src/components/chat/chat-error-banner.tsx b/apps/dashboard/src/components/chat/chat-error-banner.tsx
index b265fe56b..fdf8f5e9d 100644
--- a/apps/dashboard/src/components/chat/chat-error-banner.tsx
+++ b/apps/dashboard/src/components/chat/chat-error-banner.tsx
@@ -8,7 +8,7 @@ export function ChatErrorBanner({ error }: Props) {
const message = error.message ?? "";
const isRateLimit = /Rate limit/i.test(message);
return (
- <div className="border-t bg-destructive/10 px-4 py-2 text-destructive text-sm">
+ <div className="bg-destructive/10 text-destructive border-t px-4 py-2 text-sm">
{isRateLimit
? `You've hit the daily message cap${formatResetSuffix(message)}.`
: "The assistant encountered an error. Try again."}
diff --git a/apps/dashboard/src/components/chat/chat-error-boundary.tsx b/apps/dashboard/src/components/chat/chat-error-boundary.tsx
index d1d21eb1d..c0cb0e5bc 100644
--- a/apps/dashboard/src/components/chat/chat-error-boundary.tsx
+++ b/apps/dashboard/src/components/chat/chat-error-boundary.tsx
@@ -25,7 +25,7 @@ export class ChatErrorBoundary extends Component<Props, State> {
if (this.state.error) {
return (
<div className="mx-auto max-w-3xl p-6 text-sm">
- <div className="rounded-md border bg-destructive/10 p-4 text-destructive">
+ <div className="bg-destructive/10 text-destructive rounded-md border p-4">
The conversation failed to render. Reload to recover.
</div>
</div>
diff --git a/apps/dashboard/src/components/chat/chat-history.tsx b/apps/dashboard/src/components/chat/chat-history.tsx
index 313e32076..01b0c8d30 100644
--- a/apps/dashboard/src/components/chat/chat-history.tsx
+++ b/apps/dashboard/src/components/chat/chat-history.tsx
@@ -1,10 +1,10 @@
"use client";
-import { Link } from "@/components/common/link";
import { useSidebar } from "@openstatus/ui/components/ui/sidebar";
import { useQuery } from "@tanstack/react-query";
import { formatDistanceToNow } from "date-fns";
+import { Link } from "@/components/common/link";
import { useTRPC } from "@/lib/trpc/client";
const MAX_VISIBLE = 5;
@@ -22,7 +22,7 @@ export function ChatHistory() {
return (
<div className="flex w-full max-w-xl flex-col gap-2">
<div className="flex items-center justify-between">
- <span className="font-mono text-muted-foreground text-xs uppercase tracking-wide">
+ <span className="text-muted-foreground font-mono text-xs tracking-wide uppercase">
Recent
</span>
</div>
@@ -31,10 +31,10 @@ export function ChatHistory() {
<li key={s.id}>
<Link
href={`/chat/${s.id}`}
- className="flex items-center justify-between gap-3 text-muted-foreground text-sm hover:text-foreground"
+ className="text-muted-foreground hover:text-foreground flex items-center justify-between gap-3 text-sm"
>
<span className="truncate">{s.title}</span>
- <span className="shrink-0 font-commit-mono text-muted-foreground text-xs">
+ <span className="font-commit-mono text-muted-foreground shrink-0 text-xs">
{formatDistanceToNow(new Date(s.updatedAt), {
addSuffix: true,
})}
@@ -47,7 +47,7 @@ export function ChatHistory() {
<button
type="button"
onClick={() => setOpen(true)}
- className="self-start font-mono text-muted-foreground text-xs hover:text-foreground"
+ className="text-muted-foreground hover:text-foreground self-start font-mono text-xs"
>
{extra} more {extra === 1 ? "conversation" : "conversations"}
</button>
diff --git a/apps/dashboard/src/components/chat/chat-message.tsx b/apps/dashboard/src/components/chat/chat-message.tsx
index 9ab2b5ad4..f207101db 100644
--- a/apps/dashboard/src/components/chat/chat-message.tsx
+++ b/apps/dashboard/src/components/chat/chat-message.tsx
@@ -41,7 +41,7 @@ export function MessageContent({
<div
className={cn(
"flex max-w-full flex-col gap-2 overflow-hidden text-sm",
- "group-data-[from=user]:rounded-xl group-data-[from=user]:bg-secondary group-data-[from=user]:px-4 group-data-[from=user]:py-3",
+ "group-data-[from=user]:bg-secondary group-data-[from=user]:rounded-xl group-data-[from=user]:px-4 group-data-[from=user]:py-3",
"group-data-[from=assistant]:w-full",
className,
)}
@@ -78,13 +78,13 @@ const processor = unified()
},
code: (props: HTMLAttributes<HTMLElement>) => (
<code
- className="rounded bg-muted px-1 py-0.5 font-mono text-[0.9em]"
+ className="bg-muted rounded px-1 py-0.5 font-mono text-[0.9em]"
{...props}
/>
),
pre: (props: HTMLAttributes<HTMLPreElement>) => (
<pre
- className="overflow-x-auto rounded-md border bg-muted p-3 text-xs"
+ className="bg-muted overflow-x-auto rounded-md border p-3 text-xs"
{...props}
/>
),
@@ -107,7 +107,7 @@ export function MessageMarkdown({ children }: { children: string }) {
"[&_li]:ml-4 [&_li]:list-disc [&_ol]:list-decimal",
"[&_strong]:font-semibold",
"[&_table]:my-2 [&_table]:w-full [&_table]:border-collapse [&_table]:text-xs",
- "[&_th]:border [&_th]:bg-muted/50 [&_th]:px-2 [&_th]:py-1 [&_th]:text-left [&_th]:font-medium",
+ "[&_th]:bg-muted/50 [&_th]:border [&_th]:px-2 [&_th]:py-1 [&_th]:text-left [&_th]:font-medium",
"[&_td]:border [&_td]:px-2 [&_td]:py-1",
)}
>
diff --git a/apps/dashboard/src/components/chat/chat-prompt-input.tsx b/apps/dashboard/src/components/chat/chat-prompt-input.tsx
index 05c3d79dd..967a7c9ff 100644
--- a/apps/dashboard/src/components/chat/chat-prompt-input.tsx
+++ b/apps/dashboard/src/components/chat/chat-prompt-input.tsx
@@ -59,7 +59,7 @@ export function ChatPromptInput({ onSubmit, onStop, status }: Props) {
}, [isGenerating, onStop]);
return (
- <div className="sticky bottom-0 z-10 border-t bg-background px-3 pt-3 pb-2">
+ <div className="bg-background sticky bottom-0 z-10 border-t px-3 pt-3 pb-2">
<div className="mx-auto flex max-w-3xl flex-col gap-1">
<form onSubmit={handleSubmit}>
<InputGroup>
@@ -95,7 +95,7 @@ export function ChatPromptInput({ onSubmit, onStop, status }: Props) {
</InputGroupAddon>
</InputGroup>
</form>
- <p className="text-center text-muted-foreground text-xs">
+ <p className="text-muted-foreground text-center text-xs">
Powered by Claude. AI responses may contain errors, double-check
results.
</p>
diff --git a/apps/dashboard/src/components/chat/chat-suggestions.tsx b/apps/dashboard/src/components/chat/chat-suggestions.tsx
index 55b62adc2..c8fb6d3ec 100644
--- a/apps/dashboard/src/components/chat/chat-suggestions.tsx
+++ b/apps/dashboard/src/components/chat/chat-suggestions.tsx
@@ -1,3 +1,4 @@
+import { Badge } from "@openstatus/ui/components/ui/badge";
import { Button } from "@openstatus/ui/components/ui/button";
import {
@@ -6,7 +7,6 @@ import {
SectionHeader,
SectionTitle,
} from "@/components/content/section";
-import { Badge } from "@openstatus/ui/components/ui/badge";
const SUGGESTIONS = [
"List all my monitors",
diff --git a/apps/dashboard/src/components/chat/chat-tool-part.tsx b/apps/dashboard/src/components/chat/chat-tool-part.tsx
index db8b5b756..c7efc34de 100644
--- a/apps/dashboard/src/components/chat/chat-tool-part.tsx
+++ b/apps/dashboard/src/components/chat/chat-tool-part.tsx
@@ -88,7 +88,7 @@ function ApprovalCard({
ref={cardRef}
tabIndex={-1}
onKeyDown={onKeyDown}
- className="not-prose w-full overflow-hidden rounded-xl border bg-background outline-none"
+ className="not-prose bg-background w-full overflow-hidden rounded-xl border outline-none"
>
<div className="flex items-center gap-2 p-3 text-sm">
<ToolStateDot state="approval-requested" />
@@ -98,16 +98,16 @@ function ApprovalCard({
{draft ? (
<ChangesTable changes={draft} />
) : (
- <pre className="max-h-64 overflow-auto rounded bg-muted/50 p-2 text-xs">
+ <pre className="bg-muted/50 max-h-64 overflow-auto rounded p-2 text-xs">
{JSON.stringify(input, null, 2)}
</pre>
)}
</div>
- <div className="flex items-center justify-end gap-3 border-t bg-muted/30 p-3">
+ <div className="bg-muted/30 flex items-center justify-end gap-3 border-t p-3">
<span className="text-muted-foreground text-xs">
- <kbd className="rounded border bg-background px-1 font-mono">Esc</kbd>{" "}
+ <kbd className="bg-background rounded border px-1 font-mono">Esc</kbd>{" "}
to cancel ·{" "}
- <kbd className="rounded border bg-background px-1 font-mono">⌘ ↵</kbd>{" "}
+ <kbd className="bg-background rounded border px-1 font-mono">⌘ ↵</kbd>{" "}
to apply
</span>
<div className="flex gap-2">
@@ -170,7 +170,7 @@ function ToolDisclosure({
>
<ToolStateDot state={state} />
<span className="font-commit-mono font-medium">{toolName}</span>
- <span className="flex-1 truncate text-muted-foreground">
+ <span className="text-muted-foreground flex-1 truncate">
{summary ? `· ${summary}` : null}
</span>
{rich !== undefined ? (
@@ -207,7 +207,7 @@ function ToolDisclosure({
) : null}
<ChevronDownIcon
className={cn(
- "size-4 shrink-0 text-muted-foreground transition-transform",
+ "text-muted-foreground size-4 shrink-0 transition-transform",
open && "rotate-180",
)}
/>
@@ -234,12 +234,12 @@ function ToolDisclosure({
</>
)}
{part.state === "output-error" && part.errorText ? (
- <div className="rounded-md bg-destructive/10 p-2 text-destructive text-xs">
+ <div className="bg-destructive/10 text-destructive rounded-md p-2 text-xs">
{part.errorText}
</div>
) : null}
{state === "output-denied" && part.approval?.reason ? (
- <div className="rounded-md bg-muted/50 p-2 text-muted-foreground text-xs">
+ <div className="bg-muted/50 text-muted-foreground rounded-md p-2 text-xs">
{part.approval.reason}
</div>
) : null}
@@ -252,10 +252,10 @@ function ToolDisclosure({
function ToolPanel({ label, body }: { label: string; body: unknown }) {
return (
<div className="space-y-1">
- <h4 className="font-medium text-muted-foreground text-xs uppercase tracking-wide">
+ <h4 className="text-muted-foreground text-xs font-medium tracking-wide uppercase">
{label}
</h4>
- <pre className="overflow-x-auto rounded-md bg-muted/50 p-2 text-xs">
+ <pre className="bg-muted/50 overflow-x-auto rounded-md p-2 text-xs">
{typeof body === "string" ? body : JSON.stringify(body, null, 2)}
</pre>
</div>
diff --git a/apps/dashboard/src/components/chat/tool-renderers/details-table.tsx b/apps/dashboard/src/components/chat/tool-renderers/details-table.tsx
index 354d6192d..4fede7e36 100644
--- a/apps/dashboard/src/components/chat/tool-renderers/details-table.tsx
+++ b/apps/dashboard/src/components/chat/tool-renderers/details-table.tsx
@@ -26,13 +26,13 @@ export function DetailsTable({ sections, empty }: DetailsTableData) {
const total = sections.reduce((acc, s) => acc + s.rows.length, 0);
if (total === 0) {
return (
- <div className="rounded-md border bg-background p-3 text-muted-foreground text-sm">
+ <div className="bg-background text-muted-foreground rounded-md border p-3 text-sm">
{empty ?? "No details to show."}
</div>
);
}
return (
- <div className="overflow-hidden rounded-md border bg-background">
+ <div className="bg-background overflow-hidden rounded-md border">
<Table>
<TableBody>
{sections.map((section, sIdx) => (
@@ -47,10 +47,10 @@ export function DetailsTable({ sections, empty }: DetailsTableData) {
key={`${sIdx}-${row.label}`}
className="hover:bg-transparent"
>
- <TableHead className="w-1/3 border-r bg-muted/40 font-mono text-muted-foreground">
+ <TableHead className="bg-muted/40 text-muted-foreground w-1/3 border-r font-mono">
{row.label}
</TableHead>
- <TableCell className="whitespace-normal break-words font-mono">
+ <TableCell className="font-mono break-words whitespace-normal">
{row.value}
</TableCell>
</TableRow>
diff --git a/apps/dashboard/src/components/chat/tool-renderers/get-response-log.tsx b/apps/dashboard/src/components/chat/tool-renderers/get-response-log.tsx
index 68ad5a15a..faef295b7 100644
--- a/apps/dashboard/src/components/chat/tool-renderers/get-response-log.tsx
+++ b/apps/dashboard/src/components/chat/tool-renderers/get-response-log.tsx
@@ -56,7 +56,7 @@ export function getResponseLogDetails(
{
label: "Headers",
value: (
- <pre className="whitespace-pre-wrap break-all text-foreground">
+ <pre className="text-foreground break-all whitespace-pre-wrap">
{JSON.stringify(output.headers, null, 2)}
</pre>
),
@@ -106,7 +106,7 @@ function timingRows(timing: Timing, latency: number): DetailsRow[] {
%
</span>
<div className="flex flex-1 items-center justify-end gap-1">
- <span className="text-nowrap text-muted-foreground">{value} ms</span>
+ <span className="text-muted-foreground text-nowrap">{value} ms</span>
<div
className="h-3"
style={{
diff --git a/apps/dashboard/src/components/chat/tool-renderers/list-audit-logs.tsx b/apps/dashboard/src/components/chat/tool-renderers/list-audit-logs.tsx
index cf887d20a..ea3fad4d8 100644
--- a/apps/dashboard/src/components/chat/tool-renderers/list-audit-logs.tsx
+++ b/apps/dashboard/src/components/chat/tool-renderers/list-audit-logs.tsx
@@ -47,13 +47,13 @@ export function listAuditLogsTable(
entity: (
<TableCellText
value={`${item.entityType}#${item.entityId}`}
- className="font-mono text-muted-foreground"
+ className="text-muted-foreground font-mono"
/>
),
actor: (
<TableCellText
value={item.actor}
- className="font-mono text-muted-foreground"
+ className="text-muted-foreground font-mono"
/>
),
createdAt: (
diff --git a/apps/dashboard/src/components/chat/tool-renderers/list-monitors.tsx b/apps/dashboard/src/components/chat/tool-renderers/list-monitors.tsx
index ca3da48cc..41e42e3d0 100644
--- a/apps/dashboard/src/components/chat/tool-renderers/list-monitors.tsx
+++ b/apps/dashboard/src/components/chat/tool-renderers/list-monitors.tsx
@@ -34,19 +34,19 @@ export function listMonitorsTable(
jobType: (
<TableCellText
value={m.jobType.toUpperCase()}
- className="font-mono text-muted-foreground"
+ className="text-muted-foreground font-mono"
/>
),
periodicity: (
<TableCellText
value={m.periodicity}
- className="font-mono text-muted-foreground"
+ className="text-muted-foreground font-mono"
/>
),
regions: (
<TableCellText
value={m.regions.join(", ") || "—"}
- className="font-mono text-muted-foreground"
+ className="text-muted-foreground font-mono"
/>
),
active: <TableCellBoolean value={m.active} />,
diff --git a/apps/dashboard/src/components/chat/tool-renderers/list-notifications.tsx b/apps/dashboard/src/components/chat/tool-renderers/list-notifications.tsx
index 5139c7320..358eacf01 100644
--- a/apps/dashboard/src/components/chat/tool-renderers/list-notifications.tsx
+++ b/apps/dashboard/src/components/chat/tool-renderers/list-notifications.tsx
@@ -27,7 +27,7 @@ export function listNotificationsTable(
provider: (
<TableCellText
value={n.provider}
- className="font-mono text-muted-foreground"
+ className="text-muted-foreground font-mono"
/>
),
monitors: (
@@ -37,7 +37,7 @@ export function listNotificationsTable(
? "none"
: `${n.monitorIds.length} (${n.monitorIds.join(", ")})`
}
- className="font-mono text-muted-foreground"
+ className="text-muted-foreground font-mono"
/>
),
id: <TableCellNumber value={n.id} />,
diff --git a/apps/dashboard/src/components/chat/tool-renderers/list-page-components.tsx b/apps/dashboard/src/components/chat/tool-renderers/list-page-components.tsx
index cfcd8fcb2..09dba5e84 100644
--- a/apps/dashboard/src/components/chat/tool-renderers/list-page-components.tsx
+++ b/apps/dashboard/src/components/chat/tool-renderers/list-page-components.tsx
@@ -33,7 +33,7 @@ export function listPageComponentsTable(
type: (
<TableCellText
value={c.type}
- className="font-mono text-muted-foreground"
+ className="text-muted-foreground font-mono"
/>
),
page: <TableCellNumber value={c.pageId} />,
diff --git a/apps/dashboard/src/components/chat/tool-renderers/list-response-logs.tsx b/apps/dashboard/src/components/chat/tool-renderers/list-response-logs.tsx
index 10e8d8fa9..bbdade044 100644
--- a/apps/dashboard/src/components/chat/tool-renderers/list-response-logs.tsx
+++ b/apps/dashboard/src/components/chat/tool-renderers/list-response-logs.tsx
@@ -52,7 +52,7 @@ export function listResponseLogsTable(
timestamp: (
<TableCellDate
value={new Date(log.timestamp)}
- className="font-mono text-foreground"
+ className="text-foreground font-mono"
/>
),
region: <TableCellRegion value={log.region} className="font-mono" />,
@@ -74,7 +74,7 @@ export function listResponseLogsTable(
id: (
<TableCellText
value={log.id ?? "—"}
- className="font-mono text-muted-foreground"
+ className="text-muted-foreground font-mono"
/>
),
},
diff --git a/apps/dashboard/src/components/chat/tool-renderers/list-status-pages.tsx b/apps/dashboard/src/components/chat/tool-renderers/list-status-pages.tsx
index 31cb04489..b573c70ed 100644
--- a/apps/dashboard/src/components/chat/tool-renderers/list-status-pages.tsx
+++ b/apps/dashboard/src/components/chat/tool-renderers/list-status-pages.tsx
@@ -31,7 +31,7 @@ export function listStatusPagesTable(
slug: (
<TableCellText
value={p.slug}
- className="font-mono text-muted-foreground"
+ className="text-muted-foreground font-mono"
/>
),
id: <TableCellNumber value={p.id} />,
diff --git a/apps/dashboard/src/components/chat/tool-renderers/result-table.tsx b/apps/dashboard/src/components/chat/tool-renderers/result-table.tsx
index a871100b8..f785f1402 100644
--- a/apps/dashboard/src/components/chat/tool-renderers/result-table.tsx
+++ b/apps/dashboard/src/components/chat/tool-renderers/result-table.tsx
@@ -42,20 +42,20 @@ export function ResultTable<K extends string>({
}: ResultTableData<K>) {
if (rows.length === 0) {
return (
- <div className="rounded-md border bg-background p-3 text-muted-foreground text-sm">
+ <div className="bg-background text-muted-foreground rounded-md border p-3 text-sm">
{empty}
</div>
);
}
return (
- <div className="overflow-hidden rounded-md border bg-background">
+ <div className="bg-background overflow-hidden rounded-md border">
<Table>
<TableHeader>
<TableRow className="bg-muted/40 hover:bg-muted/40">
{columns.map((col) => (
<TableHead
key={col.key}
- className="font-mono text-muted-foreground"
+ className="text-muted-foreground font-mono"
>
{col.header}
</TableHead>
diff --git a/apps/dashboard/src/components/common/changes-table.tsx b/apps/dashboard/src/components/common/changes-table.tsx
index 804366342..25f8bd806 100644
--- a/apps/dashboard/src/components/common/changes-table.tsx
+++ b/apps/dashboard/src/components/common/changes-table.tsx
@@ -21,7 +21,7 @@ export type ChangeRow = {
export function ChangesTable({ changes }: { changes: ChangeRow[] }) {
if (changes.length === 0) return null;
return (
- <div className="overflow-hidden rounded-md border bg-background text-sm">
+ <div className="bg-background overflow-hidden rounded-md border text-sm">
{changes.map((change, idx) => (
<div
key={change.field}
@@ -30,7 +30,7 @@ export function ChangesTable({ changes }: { changes: ChangeRow[] }) {
idx > 0 && "border-t",
)}
>
- <div className="truncate border-r bg-muted/40 px-3 py-2 font-mono text-muted-foreground md:col-span-1">
+ <div className="bg-muted/40 text-muted-foreground truncate border-r px-3 py-2 font-mono md:col-span-1">
{change.field}
</div>
<div className="grid truncate md:col-span-3">
@@ -60,10 +60,10 @@ function DiffLine({
className="group flex items-start gap-2 px-3 py-2 font-mono has-[+[data-kind=added]]:pb-0"
data-kind={kind}
>
- <span className="select-none text-muted-foreground group-data-[kind=added]:text-success group-data-[kind=removed]:text-destructive">
+ <span className="text-muted-foreground group-data-[kind=added]:text-success group-data-[kind=removed]:text-destructive select-none">
{sign}
</span>
- <span className="whitespace-pre-wrap break-all group-data-[kind=added]:text-foreground group-data-[kind=removed]:text-muted-foreground group-data-[kind=removed]:line-through">
+ <span className="group-data-[kind=added]:text-foreground group-data-[kind=removed]:text-muted-foreground break-all whitespace-pre-wrap group-data-[kind=removed]:line-through">
{formatValue(value)}
</span>
</div>
diff --git a/apps/dashboard/src/components/common/code.tsx b/apps/dashboard/src/components/common/code.tsx
index 593a4d4fc..4cea2f3ab 100644
--- a/apps/dashboard/src/components/common/code.tsx
+++ b/apps/dashboard/src/components/common/code.tsx
@@ -16,7 +16,7 @@ export function Code({
<div className="relative">
<pre
className={cn(
- "overflow-x-auto rounded-md border bg-muted p-2 text-xs",
+ "bg-muted overflow-x-auto rounded-md border p-2 text-xs",
className,
)}
{...props}
diff --git a/apps/dashboard/src/components/common/copy-row.tsx b/apps/dashboard/src/components/common/copy-row.tsx
index 8b23829a7..62f40f231 100644
--- a/apps/dashboard/src/components/common/copy-row.tsx
+++ b/apps/dashboard/src/components/common/copy-row.tsx
@@ -1,9 +1,10 @@
"use client";
-import { cn } from "@/lib/utils";
import { useCopyToClipboard } from "@openstatus/ui/hooks/use-copy-to-clipboard";
import { Check, Copy } from "lucide-react";
+import { cn } from "@/lib/utils";
+
export function CopyRow({
label,
value,
diff --git a/apps/dashboard/src/components/common/hover-card-timestamp.tsx b/apps/dashboard/src/components/common/hover-card-timestamp.tsx
index ac0cf15e4..9417a0a6d 100644
--- a/apps/dashboard/src/components/common/hover-card-timestamp.tsx
+++ b/apps/dashboard/src/components/common/hover-card-timestamp.tsx
@@ -8,6 +8,7 @@ import {
} from "@openstatus/ui/components/ui/hover-card";
import { format, formatDistanceToNowStrict } from "date-fns";
import type { ComponentPropsWithoutRef } from "react";
+
import { CopyRow } from "./copy-row";
// TODO: move to TableCellDate?
diff --git a/apps/dashboard/src/components/common/hover-card-timing.tsx b/apps/dashboard/src/components/common/hover-card-timing.tsx
index 4039a0a18..d8dfd4237 100644
--- a/apps/dashboard/src/components/common/hover-card-timing.tsx
+++ b/apps/dashboard/src/components/common/hover-card-timing.tsx
@@ -65,12 +65,12 @@ export function HoverCardTimingContent({
className={cn("h-2 w-2 rounded-full")}
style={{ backgroundColor: `var(--chart-${index + 1})` }}
/>
- <div className="font-mono text-accent-foreground uppercase">
+ <div className="text-accent-foreground font-mono uppercase">
{key}
</div>
</div>
<div className="flex items-center justify-between gap-4">
- <div className="font-mono text-muted-foreground">
+ <div className="text-muted-foreground font-mono">
{`${new Intl.NumberFormat("en-US", {
maximumFractionDigits: 2,
}).format((value / (latency || 1)) * 100)}%`}
diff --git a/apps/dashboard/src/components/common/icon-cloud-provider.tsx b/apps/dashboard/src/components/common/icon-cloud-provider.tsx
index 4a88c2c98..a1357480e 100644
--- a/apps/dashboard/src/components/common/icon-cloud-provider.tsx
+++ b/apps/dashboard/src/components/common/icon-cloud-provider.tsx
@@ -34,7 +34,7 @@ export function IconCloudProviderTooltip(
<Tooltip delayDuration={0}>
<TooltipTrigger
type="button"
- className="rounded-sm outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:ring-offset-2"
+ className="focus-visible:border-ring focus-visible:ring-ring/50 rounded-sm outline-none focus-visible:ring-[3px] focus-visible:ring-offset-2"
>
<IconCloudProvider {...props} />
</TooltipTrigger>
diff --git a/apps/dashboard/src/components/common/input-with-addons.tsx b/apps/dashboard/src/components/common/input-with-addons.tsx
index b77aa263a..5719a5806 100644
--- a/apps/dashboard/src/components/common/input-with-addons.tsx
+++ b/apps/dashboard/src/components/common/input-with-addons.tsx
@@ -1,10 +1,8 @@
-import * as React from "react";
-
import { Input } from "@openstatus/ui/components/ui/input";
import { cn } from "@openstatus/ui/lib/utils";
+import * as React from "react";
-export interface InputWithAddonsProps
- extends React.InputHTMLAttributes<HTMLInputElement> {
+export interface InputWithAddonsProps extends React.InputHTMLAttributes<HTMLInputElement> {
leading?: React.ReactNode;
trailing?: React.ReactNode;
}
@@ -20,7 +18,7 @@ const InputWithAddons = React.forwardRef<
return (
<div className={cn("flex rounded-md shadow-xs", className)}>
{leading ? (
- <span className="inline-flex items-center rounded-s-md border border-input bg-muted px-3 text-muted-foreground text-sm">
+ <span className="border-input bg-muted text-muted-foreground inline-flex items-center rounded-s-md border px-3 text-sm">
{leading}
</span>
) : null}
@@ -35,7 +33,7 @@ const InputWithAddons = React.forwardRef<
{...props}
/>
{trailing ? (
- <span className="inline-flex items-center rounded-e-md border border-input bg-muted px-3 text-muted-foreground text-sm">
+ <span className="border-input bg-muted text-muted-foreground inline-flex items-center rounded-e-md border px-3 text-sm">
{trailing}
</span>
) : null}
diff --git a/apps/dashboard/src/components/common/kbd.tsx b/apps/dashboard/src/components/common/kbd.tsx
index 92724c885..4aafb2697 100644
--- a/apps/dashboard/src/components/common/kbd.tsx
+++ b/apps/dashboard/src/components/common/kbd.tsx
@@ -1,9 +1,10 @@
-import { cn } from "@/lib/utils";
import { type VariantProps, cva } from "class-variance-authority";
import type * as React from "react";
+import { cn } from "@/lib/utils";
+
const kbdVariants = cva(
- "-me-1 ms-2 inline-flex h-5 max-h-full items-center rounded border px-1 font-[inherit] font-medium text-[0.625rem]",
+ "ms-2 -me-1 inline-flex h-5 max-h-full items-center rounded border px-1 font-[inherit] text-[0.625rem] font-medium",
{
variants: {
variant: {
diff --git a/apps/dashboard/src/components/common/link.tsx b/apps/dashboard/src/components/common/link.tsx
index b36aa2854..6feb80f40 100644
--- a/apps/dashboard/src/components/common/link.tsx
+++ b/apps/dashboard/src/components/common/link.tsx
@@ -1,6 +1,7 @@
-import { cn } from "@/lib/utils";
import NextLink from "next/link";
+import { cn } from "@/lib/utils";
+
// TODO: we could add cva variants for the link
export function Link({
@@ -15,7 +16,7 @@ export function Link({
return (
<NextLink
- className={cn("font-medium text-foreground", className)}
+ className={cn("text-foreground font-medium", className)}
{...externalProps}
{...props}
>
diff --git a/apps/dashboard/src/components/common/note.tsx b/apps/dashboard/src/components/common/note.tsx
index 07f6fd62e..a00947e11 100644
--- a/apps/dashboard/src/components/common/note.tsx
+++ b/apps/dashboard/src/components/common/note.tsx
@@ -3,7 +3,7 @@ import { cn } from "@openstatus/ui/lib/utils";
import { type VariantProps, cva } from "class-variance-authority";
const noteVariants = cva(
- "flex items-center gap-2 rounded-xl border [&>svg]:text-current [&>svg]:shrink-0",
+ "flex items-center gap-2 rounded-xl border [&>svg]:shrink-0 [&>svg]:text-current",
{
variants: {
variant: {
diff --git a/apps/dashboard/src/components/common/pill.tsx b/apps/dashboard/src/components/common/pill.tsx
index b9f8a3bfe..5492ecf8c 100644
--- a/apps/dashboard/src/components/common/pill.tsx
+++ b/apps/dashboard/src/components/common/pill.tsx
@@ -19,13 +19,13 @@ export function Pill({ label, value, className, variant = "default" }: Props) {
return (
<div
className={cn(
- "inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden whitespace-nowrap rounded-md border font-medium text-xs transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3",
+ "focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-md border text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] [&>svg]:pointer-events-none [&>svg]:size-3",
className,
)}
>
<div
className={cn(
- "border-r py-0.5 pr-1 pl-2 text-foreground/70",
+ "text-foreground/70 border-r py-0.5 pr-1 pl-2",
variant === "default" && "bg-muted",
)}
>
diff --git a/apps/dashboard/src/components/common/wheel-picker.tsx b/apps/dashboard/src/components/common/wheel-picker.tsx
index a61eb0282..681234d86 100644
--- a/apps/dashboard/src/components/common/wheel-picker.tsx
+++ b/apps/dashboard/src/components/common/wheel-picker.tsx
@@ -1,8 +1,9 @@
"use client";
-import { cn } from "@/lib/utils";
import * as React from "react";
+import { cn } from "@/lib/utils";
+
// ---------------------------------------------------------------------------------------------------------------------
// Context -------------------------------------------------------------------------------------------------------------
// ---------------------------------------------------------------------------------------------------------------------
@@ -148,7 +149,7 @@ const WheelPickerSelect = React.forwardRef<
aria-activedescendant={`wheel-option-${currentIndex}`}
tabIndex={0}
className={cn(
- "relative h-6 w-full rounded-md border border-transparent text-left focus:border-ring focus:outline-none focus:ring-2 focus:ring-ring/50",
+ "focus:border-ring focus:ring-ring/50 relative h-6 w-full rounded-md border border-transparent text-left focus:ring-2 focus:outline-none",
className,
)}
onKeyDown={handleKeyDown}
@@ -208,7 +209,7 @@ const WheelPickerOptions = React.forwardRef<
role="option"
aria-selected={isSelected}
className={cn(
- "absolute inset-0 flex cursor-pointer select-none items-center justify-start transition-transform duration-500 ease-out [backface-visibility:hidden]",
+ "absolute inset-0 flex cursor-pointer items-center justify-start transition-transform duration-500 ease-out select-none [backface-visibility:hidden]",
)}
style={{
transform: `rotateX(${angle}rad) translateZ(${radius}px)`,
@@ -248,8 +249,7 @@ WheelPickerOptions.displayName = "WheelPickerOptions";
type PlaceholderPosition = "first" | "last";
-export interface WheelPickerEmptyProps
- extends React.HTMLAttributes<HTMLDivElement> {
+export interface WheelPickerEmptyProps extends React.HTMLAttributes<HTMLDivElement> {
position: PlaceholderPosition;
}
diff --git a/apps/dashboard/src/components/content/billing-addons.tsx b/apps/dashboard/src/components/content/billing-addons.tsx
index ed64df277..848994e21 100644
--- a/apps/dashboard/src/components/content/billing-addons.tsx
+++ b/apps/dashboard/src/components/content/billing-addons.tsx
@@ -1,3 +1,7 @@
+import type { RouterOutputs } from "@openstatus/api";
+import { allPlans } from "@openstatus/db/src/schema/plan/config";
+import type { Addons } from "@openstatus/db/src/schema/plan/schema";
+import { getAddonPriceConfig } from "@openstatus/db/src/schema/plan/utils";
import {
AlertDialog,
AlertDialogAction,
@@ -10,22 +14,18 @@ import {
AlertDialogTrigger,
} from "@openstatus/ui/components/ui/alert-dialog";
import { Button } from "@openstatus/ui/components/ui/button";
-import { Label } from "@openstatus/ui/components/ui/label";
-import { useCookieState } from "@openstatus/ui/hooks/use-cookie-state";
-
-import { useTRPC } from "@/lib/trpc/client";
-import type { RouterOutputs } from "@openstatus/api";
-import { allPlans } from "@openstatus/db/src/schema/plan/config";
-import type { Addons } from "@openstatus/db/src/schema/plan/schema";
-import { getAddonPriceConfig } from "@openstatus/db/src/schema/plan/utils";
import { ButtonGroup } from "@openstatus/ui/components/ui/button-group";
import { Input } from "@openstatus/ui/components/ui/input";
+import { Label } from "@openstatus/ui/components/ui/label";
+import { useCookieState } from "@openstatus/ui/hooks/use-cookie-state";
import { useMutation, useQueryClient } from "@tanstack/react-query";
import { isTRPCClientError } from "@trpc/client";
import { Check, MinusIcon, PlusIcon } from "lucide-react";
import { useEffect, useState, useTransition } from "react";
import { toast } from "sonner";
+import { useTRPC } from "@/lib/trpc/client";
+
type Workspace = RouterOutputs["workspace"]["get"];
interface BillingAddonsProps {
@@ -123,15 +123,15 @@ export function BillingAddons({
<div className="text-muted-foreground">{description}</div>
</div>
<div className="flex items-center gap-1.5">
- <span className="font-mono text-foreground text-sm">
+ <span className="text-foreground font-mono text-sm">
{formatPrice(price)}
{isQuantity ? "/mo./each" : "/mo."}
</span>
{hasAddon && !isQuantity ? (
- <Check className="size-4 text-success" />
+ <Check className="text-success size-4" />
) : null}
{hasAddon && isQuantity ? (
- <span className="font-mono text-success">+{defaultValue}</span>
+ <span className="text-success font-mono">+{defaultValue}</span>
) : null}
</div>
<div className="col-span-2 flex items-center justify-end gap-1.5 lg:col-span-1">
diff --git a/apps/dashboard/src/components/content/billing-overlay.tsx b/apps/dashboard/src/components/content/billing-overlay.tsx
index dd5fa365f..7303642df 100644
--- a/apps/dashboard/src/components/content/billing-overlay.tsx
+++ b/apps/dashboard/src/components/content/billing-overlay.tsx
@@ -21,7 +21,7 @@ export function BillingOverlay({
return (
<div
className={cn(
- "absolute inset-0 flex flex-col items-center justify-center gap-2 bg-gradient-to-b from-transparent to-50% to-background p-2",
+ "to-background absolute inset-0 flex flex-col items-center justify-center gap-2 bg-gradient-to-b from-transparent to-50% p-2",
className,
)}
{...props}
@@ -50,7 +50,7 @@ export function BillingOverlayDescription({
return (
<p
className={cn(
- "max-w-xs text-center text-muted-foreground text-sm",
+ "text-muted-foreground max-w-xs text-center text-sm",
className,
)}
{...props}
diff --git a/apps/dashboard/src/components/content/billing-progress.tsx b/apps/dashboard/src/components/content/billing-progress.tsx
index 3203ad5ec..2da04e921 100644
--- a/apps/dashboard/src/components/content/billing-progress.tsx
+++ b/apps/dashboard/src/components/content/billing-progress.tsx
@@ -10,7 +10,7 @@ export function BillingProgress({ label, value, max }: BillingProgressProps) {
return (
<div className="flex flex-col gap-2">
<div className="flex flex-col gap-0.5">
- <div className="flex justify-between text-muted-foreground text-sm">
+ <div className="text-muted-foreground flex justify-between text-sm">
<div className="font-medium">{label}</div>
<div className="font-mono">
<span className="text-foreground">
diff --git a/apps/dashboard/src/components/content/block-wrapper.tsx b/apps/dashboard/src/components/content/block-wrapper.tsx
index 2782fdde9..dde345cdc 100644
--- a/apps/dashboard/src/components/content/block-wrapper.tsx
+++ b/apps/dashboard/src/components/content/block-wrapper.tsx
@@ -1,7 +1,5 @@
"use client";
-import * as React from "react";
-
import { Button } from "@openstatus/ui/components/ui/button";
import {
Collapsible,
@@ -9,6 +7,7 @@ import {
CollapsibleTrigger,
} from "@openstatus/ui/components/ui/collapsible";
import { cn } from "@openstatus/ui/lib/utils";
+import * as React from "react";
export function BlockWrapper({
className,
@@ -44,7 +43,7 @@ export function BlockWrapper({
{!isOpened ? (
<div
className={cn(
- "absolute flex items-center justify-center bg-gradient-to-b from-transparent to-90% to-background p-2",
+ "to-background absolute flex items-center justify-center bg-gradient-to-b from-transparent to-90% p-2",
isOpened ? "inset-x-0 bottom-0 h-12" : "inset-0",
)}
>
diff --git a/apps/dashboard/src/components/content/empty-state.tsx b/apps/dashboard/src/components/content/empty-state.tsx
index 38bb2a838..76710b56e 100644
--- a/apps/dashboard/src/components/content/empty-state.tsx
+++ b/apps/dashboard/src/components/content/empty-state.tsx
@@ -8,7 +8,7 @@ export function EmptyStateContainer({
return (
<div
className={cn(
- "flex h-full flex-col items-center justify-center gap-2 rounded-lg border border-border border-dashed p-4",
+ "border-border flex h-full flex-col items-center justify-center gap-2 rounded-lg border border-dashed p-4",
className,
)}
{...props}
@@ -37,7 +37,7 @@ export function EmptyStateDescription({
}: React.ComponentProps<"p">) {
return (
<p
- className={cn("text-center text-muted-foreground text-sm", className)}
+ className={cn("text-muted-foreground text-center text-sm", className)}
{...props}
>
{children}
diff --git a/apps/dashboard/src/components/content/section.tsx b/apps/dashboard/src/components/content/section.tsx
index 20b1bf157..96530c592 100644
--- a/apps/dashboard/src/components/content/section.tsx
+++ b/apps/dashboard/src/components/content/section.tsx
@@ -66,7 +66,7 @@ export function SectionTitle({
...props
}: React.ComponentProps<"p">) {
return (
- <p className={cn("font-medium text-lg", className)} {...props}>
+ <p className={cn("text-lg font-medium", className)} {...props}>
{children}
</p>
);
@@ -105,7 +105,7 @@ export function SectionGroupTitle({
...props
}: React.ComponentProps<"p">) {
return (
- <p className={cn("font-bold text-4xl", className)} {...props}>
+ <p className={cn("text-4xl font-bold", className)} {...props}>
{children}
</p>
);
diff --git a/apps/dashboard/src/components/controls-search/command-region.tsx b/apps/dashboard/src/components/controls-search/command-region.tsx
index 36d7bdab6..8a6fdebc2 100644
--- a/apps/dashboard/src/components/controls-search/command-region.tsx
+++ b/apps/dashboard/src/components/controls-search/command-region.tsx
@@ -1,14 +1,5 @@
"use client";
-import { IconCloudProvider } from "@/components/common/icon-cloud-provider";
-import { Link } from "@/components/common/link";
-import {
- BillingOverlay,
- BillingOverlayButton,
- BillingOverlayDescription,
-} from "@/components/content/billing-overlay";
-import type { REGIONS } from "@/data/metrics.client";
-import { useTRPC } from "@/lib/trpc/client";
import { formatRegionCode, groupByContinent } from "@openstatus/regions";
import { Button } from "@openstatus/ui/components/ui/button";
import {
@@ -30,6 +21,16 @@ import { useQuery } from "@tanstack/react-query";
import { Check, Globe, Lock } from "lucide-react";
import { parseAsArrayOf, parseAsString, useQueryState } from "nuqs";
+import { IconCloudProvider } from "@/components/common/icon-cloud-provider";
+import { Link } from "@/components/common/link";
+import {
+ BillingOverlay,
+ BillingOverlayButton,
+ BillingOverlayDescription,
+} from "@/components/content/billing-overlay";
+import type { REGIONS } from "@/data/metrics.client";
+import { useTRPC } from "@/lib/trpc/client";
+
export function CommandRegion({
regions,
privateLocations,
@@ -131,7 +132,7 @@ export function CommandRegion({
<span className="font-mono">
{formatRegionCode(region.code)}
</span>
- <span className="truncate text-muted-foreground text-xs">
+ <span className="text-muted-foreground truncate text-xs">
{region.location}
</span>
<Check
diff --git a/apps/dashboard/src/components/controls-search/command-tags.tsx b/apps/dashboard/src/components/controls-search/command-tags.tsx
index 3b9ec5389..6a89a333d 100644
--- a/apps/dashboard/src/components/controls-search/command-tags.tsx
+++ b/apps/dashboard/src/components/controls-search/command-tags.tsx
@@ -1,6 +1,5 @@
"use client";
-import { useTRPC } from "@/lib/trpc/client";
import { Button } from "@openstatus/ui/components/ui/button";
import {
Command,
@@ -20,6 +19,8 @@ import { useQuery } from "@tanstack/react-query";
import { Check } from "lucide-react";
import { parseAsArrayOf, parseAsString, useQueryState } from "nuqs";
+import { useTRPC } from "@/lib/trpc/client";
+
export function CommandTags() {
const trpc = useTRPC();
const { data: tags } = useQuery(trpc.monitorTag.list.queryOptions());
diff --git a/apps/dashboard/src/components/controls-search/dropdown-interval.tsx b/apps/dashboard/src/components/controls-search/dropdown-interval.tsx
index e16b1b80a..58950c94e 100644
--- a/apps/dashboard/src/components/controls-search/dropdown-interval.tsx
+++ b/apps/dashboard/src/components/controls-search/dropdown-interval.tsx
@@ -1,6 +1,5 @@
"use client";
-import { INTERVALS, PERIODS, periodToMinInterval } from "@/data/metrics.client";
import { Button } from "@openstatus/ui/components/ui/button";
import {
DropdownMenu,
@@ -18,6 +17,8 @@ import {
} from "nuqs";
import { useEffect } from "react";
+import { INTERVALS, PERIODS, periodToMinInterval } from "@/data/metrics.client";
+
const MAPPING = {
5: "5 minutes",
15: "15 minutes",
@@ -56,7 +57,7 @@ export function DropdownInterval() {
</DropdownMenuTrigger>
<DropdownMenuContent align="start">
<DropdownMenuGroup>
- <DropdownMenuLabel className="font-medium text-muted-foreground text-xs">
+ <DropdownMenuLabel className="text-muted-foreground text-xs font-medium">
Resolution
</DropdownMenuLabel>
{options.map((item) => (
diff --git a/apps/dashboard/src/components/controls-search/dropdown-percentile.tsx b/apps/dashboard/src/components/controls-search/dropdown-percentile.tsx
index 1c26d72b5..38bac274b 100644
--- a/apps/dashboard/src/components/controls-search/dropdown-percentile.tsx
+++ b/apps/dashboard/src/components/controls-search/dropdown-percentile.tsx
@@ -1,6 +1,5 @@
"use client";
-import { PERCENTILES } from "@/data/metrics.client";
import { Button } from "@openstatus/ui/components/ui/button";
import {
DropdownMenu,
@@ -14,6 +13,8 @@ import { cn } from "@openstatus/ui/lib/utils";
import { Check } from "lucide-react";
import { parseAsStringLiteral, useQueryState } from "nuqs";
+import { PERCENTILES } from "@/data/metrics.client";
+
const parsePercentile = parseAsStringLiteral(PERCENTILES).withDefault("p50");
export function DropdownPercentile() {
@@ -31,7 +32,7 @@ export function DropdownPercentile() {
</DropdownMenuTrigger>
<DropdownMenuContent align="start">
<DropdownMenuGroup>
- <DropdownMenuLabel className="font-medium text-muted-foreground text-xs">
+ <DropdownMenuLabel className="text-muted-foreground text-xs font-medium">
Percentile
</DropdownMenuLabel>
{PERCENTILES.map((item) => (
diff --git a/apps/dashboard/src/components/controls-search/dropdown-period.tsx b/apps/dashboard/src/components/controls-search/dropdown-period.tsx
index a14e2d6c8..88e0904dd 100644
--- a/apps/dashboard/src/components/controls-search/dropdown-period.tsx
+++ b/apps/dashboard/src/components/controls-search/dropdown-period.tsx
@@ -1,8 +1,5 @@
"use client";
-import { UpgradeDialog } from "@/components/dialogs/upgrade";
-import { PERIODS, isPaidPeriod } from "@/data/metrics.client";
-import { useTRPC } from "@/lib/trpc/client";
import { Button } from "@openstatus/ui/components/ui/button";
import {
DropdownMenu,
@@ -17,6 +14,10 @@ import { Check, Lock } from "lucide-react";
import { parseAsStringLiteral, useQueryState } from "nuqs";
import { useState } from "react";
+import { UpgradeDialog } from "@/components/dialogs/upgrade";
+import { PERIODS, isPaidPeriod } from "@/data/metrics.client";
+import { useTRPC } from "@/lib/trpc/client";
+
// TODO: where to move it?
export const PERIOD_VALUES = [
{
@@ -60,7 +61,7 @@ export function DropdownPeriod() {
</DropdownMenuTrigger>
<DropdownMenuContent align="start">
<DropdownMenuGroup>
- <DropdownMenuLabel className="font-medium text-muted-foreground text-xs">
+ <DropdownMenuLabel className="text-muted-foreground text-xs font-medium">
Period
</DropdownMenuLabel>
{PERIOD_VALUES.map(({ value, label }) => {
diff --git a/apps/dashboard/src/components/controls-search/dropdown-status.tsx b/apps/dashboard/src/components/controls-search/dropdown-status.tsx
index 3af916ec4..9b9dc62c4 100644
--- a/apps/dashboard/src/components/controls-search/dropdown-status.tsx
+++ b/apps/dashboard/src/components/controls-search/dropdown-status.tsx
@@ -1,6 +1,5 @@
"use client";
-import { STATUS } from "@/data/metrics.client";
import { Button } from "@openstatus/ui/components/ui/button";
import {
DropdownMenu,
@@ -14,6 +13,8 @@ import { cn } from "@openstatus/ui/lib/utils";
import { Check } from "lucide-react";
import { parseAsStringLiteral, useQueryState } from "nuqs";
+import { STATUS } from "@/data/metrics.client";
+
const parseStatus = parseAsStringLiteral(STATUS);
export function DropdownStatus() {
@@ -28,7 +29,7 @@ export function DropdownStatus() {
</DropdownMenuTrigger>
<DropdownMenuContent align="start">
<DropdownMenuGroup>
- <DropdownMenuLabel className="font-medium text-muted-foreground text-xs">
+ <DropdownMenuLabel className="text-muted-foreground text-xs font-medium">
Request Status
</DropdownMenuLabel>
{STATUS.map((item) => (
diff --git a/apps/dashboard/src/components/controls-search/dropdown-trigger.tsx b/apps/dashboard/src/components/controls-search/dropdown-trigger.tsx
index fe22efaf2..707e3abe6 100644
--- a/apps/dashboard/src/components/controls-search/dropdown-trigger.tsx
+++ b/apps/dashboard/src/components/controls-search/dropdown-trigger.tsx
@@ -1,6 +1,5 @@
"use client";
-import { TRIGGER } from "@/data/metrics.client";
import { Button } from "@openstatus/ui/components/ui/button";
import {
DropdownMenu,
@@ -14,6 +13,8 @@ import { cn } from "@openstatus/ui/lib/utils";
import { Check } from "lucide-react";
import { parseAsStringLiteral, useQueryState } from "nuqs";
+import { TRIGGER } from "@/data/metrics.client";
+
const parseTrigger = parseAsStringLiteral(TRIGGER);
export function DropdownTrigger() {
@@ -28,7 +29,7 @@ export function DropdownTrigger() {
</DropdownMenuTrigger>
<DropdownMenuContent align="start">
<DropdownMenuGroup>
- <DropdownMenuLabel className="font-medium text-muted-foreground text-xs">
+ <DropdownMenuLabel className="text-muted-foreground text-xs font-medium">
Trigger
</DropdownMenuLabel>
{TRIGGER.map((item) => (
diff --git a/apps/dashboard/src/components/controls-search/popover-date.tsx b/apps/dashboard/src/components/controls-search/popover-date.tsx
index 75774c898..27bafc4cc 100644
--- a/apps/dashboard/src/components/controls-search/popover-date.tsx
+++ b/apps/dashboard/src/components/controls-search/popover-date.tsx
@@ -1,5 +1,3 @@
-import { DatePicker } from "@/components/date-picker";
-import { formatDateRange } from "@/lib/formatter";
import { Button } from "@openstatus/ui/components/ui/button";
import {
Popover,
@@ -11,6 +9,9 @@ import { parseAsIsoDateTime, useQueryState } from "nuqs";
import { useEffect, useMemo, useRef, useState } from "react";
import type { DateRange } from "react-day-picker";
+import { DatePicker } from "@/components/date-picker";
+import { formatDateRange } from "@/lib/formatter";
+
export function PopoverDate() {
const [open, setOpen] = useState(false);
const today = useRef(new Date());
@@ -24,7 +25,6 @@ export function PopoverDate() {
);
const [range, setRange] = useState<DateRange>({ from, to });
- // biome-ignore lint/correctness/useExhaustiveDependencies: <explanation>
const presets = useMemo(
() => [
{
@@ -102,7 +102,6 @@ export function PopoverDate() {
);
});
- // biome-ignore lint/correctness/useExhaustiveDependencies: <explanation>
useEffect(() => {
if (!open) {
setFrom(range.from ?? null);
diff --git a/apps/dashboard/src/components/data-table/audit-logs-workspace/columns.tsx b/apps/dashboard/src/components/data-table/audit-logs-workspace/columns.tsx
index 6abb2ba36..6bf77ee02 100644
--- a/apps/dashboard/src/components/data-table/audit-logs-workspace/columns.tsx
+++ b/apps/dashboard/src/components/data-table/audit-logs-workspace/columns.tsx
@@ -1,6 +1,5 @@
"use client";
-import { cn } from "@/lib/utils";
import type { RouterOutputs } from "@openstatus/api";
import { ModelContextProtocolIcon, SlackIcon } from "@openstatus/icons";
import {
@@ -11,6 +10,9 @@ import {
import { Badge } from "@openstatus/ui/components/ui/badge";
import type { ColumnDef } from "@tanstack/react-table";
import { KeyIcon, MailIcon, ServerIcon } from "lucide-react";
+
+import { cn } from "@/lib/utils";
+
import { TableCellDate } from "../table-cell-date";
type AuditLog = RouterOutputs["auditLog"]["list"]["items"][number];
@@ -52,8 +54,8 @@ export const columns: ColumnDef<AuditLog>[] = [
if (type === "apiKey") {
return (
<div className="flex items-center gap-2">
- <div className="flex size-6 items-center justify-center rounded-md bg-muted-foreground/10">
- <KeyIcon className="size-4 text-muted-foreground" />
+ <div className="bg-muted-foreground/10 flex size-6 items-center justify-center rounded-md">
+ <KeyIcon className="text-muted-foreground size-4" />
</div>
<span className="text-muted-foreground">API Key</span>
</div>
@@ -62,8 +64,8 @@ export const columns: ColumnDef<AuditLog>[] = [
if (type === "slack") {
return (
<div className="flex items-center gap-2">
- <div className="flex size-6 items-center justify-center rounded-md bg-muted-foreground/10">
- <SlackIcon className="size-4 text-muted-foreground" />
+ <div className="bg-muted-foreground/10 flex size-6 items-center justify-center rounded-md">
+ <SlackIcon className="text-muted-foreground size-4" />
</div>
<span className="text-muted-foreground">Slack</span>
</div>
@@ -72,8 +74,8 @@ export const columns: ColumnDef<AuditLog>[] = [
if (type === "mcp") {
return (
<div className="flex items-center gap-2">
- <div className="flex size-6 items-center justify-center rounded-md bg-muted-foreground/10">
- <ModelContextProtocolIcon className="size-4 text-muted-foreground" />
+ <div className="bg-muted-foreground/10 flex size-6 items-center justify-center rounded-md">
+ <ModelContextProtocolIcon className="text-muted-foreground size-4" />
</div>
<span className="text-muted-foreground">MCP Server</span>
</div>
@@ -82,8 +84,8 @@ export const columns: ColumnDef<AuditLog>[] = [
if (type === "system") {
return (
<div className="flex items-center gap-2">
- <div className="flex size-6 items-center justify-center rounded-md bg-muted-foreground/10">
- <ServerIcon className="size-4 text-muted-foreground" />
+ <div className="bg-muted-foreground/10 flex size-6 items-center justify-center rounded-md">
+ <ServerIcon className="text-muted-foreground size-4" />
</div>
<span className="text-muted-foreground">System</span>
</div>
@@ -92,8 +94,8 @@ export const columns: ColumnDef<AuditLog>[] = [
if (type === "subscriber") {
return (
<div className="flex items-center gap-2">
- <div className="flex size-6 items-center justify-center rounded-md bg-muted-foreground/10">
- <MailIcon className="size-4 text-muted-foreground" />
+ <div className="bg-muted-foreground/10 flex size-6 items-center justify-center rounded-md">
+ <MailIcon className="text-muted-foreground size-4" />
</div>
<span className="text-muted-foreground">Subscriber</span>
</div>
@@ -117,7 +119,7 @@ export const columns: ColumnDef<AuditLog>[] = [
{user?.name?.slice(0, 2)}
</AvatarFallback>
</Avatar>
- <span className="truncate font-commit-mono text-xs tracking-tight">
+ <span className="font-commit-mono truncate text-xs tracking-tight">
{user.name ?? user.email ?? "—"}
</span>
</div>
diff --git a/apps/dashboard/src/components/data-table/audit-logs-workspace/data-table-row-details.tsx b/apps/dashboard/src/components/data-table/audit-logs-workspace/data-table-row-details.tsx
index be22dd484..83ca297fa 100644
--- a/apps/dashboard/src/components/data-table/audit-logs-workspace/data-table-row-details.tsx
+++ b/apps/dashboard/src/components/data-table/audit-logs-workspace/data-table-row-details.tsx
@@ -1,11 +1,12 @@
"use client";
+import type { RouterOutputs } from "@openstatus/api";
+
import {
ChangesTable,
buildAuditLogChangeRows,
} from "@/components/common/changes-table";
import { CopyRow } from "@/components/common/copy-row";
-import type { RouterOutputs } from "@openstatus/api";
type AuditLog = RouterOutputs["auditLog"]["list"]["items"][number];
@@ -17,13 +18,13 @@ export function DataTableRowDetails({ row }: { row: AuditLog }) {
{changes.length ? (
<div className="grid grid-cols-1 gap-4 md:grid-cols-3">
<div className="col-span-2 flex flex-col gap-2">
- <div className="font-medium text-muted-foreground text-xs uppercase tracking-wider">
+ <div className="text-muted-foreground text-xs font-medium tracking-wider uppercase">
Changes
</div>
<ChangesTable changes={changes} />
</div>
<div className="flex flex-col gap-2">
- <div className="font-medium text-muted-foreground text-xs uppercase tracking-wider">
+ <div className="text-muted-foreground text-xs font-medium tracking-wider uppercase">
Entry
</div>
<dl className="flex flex-col gap-1.5">
diff --git a/apps/dashboard/src/components/data-table/audit-logs-workspace/data-table-toolbar.tsx b/apps/dashboard/src/components/data-table/audit-logs-workspace/data-table-toolbar.tsx
index 165c56d07..15f72f438 100644
--- a/apps/dashboard/src/components/data-table/audit-logs-workspace/data-table-toolbar.tsx
+++ b/apps/dashboard/src/components/data-table/audit-logs-workspace/data-table-toolbar.tsx
@@ -1,11 +1,12 @@
"use client";
-import { DataTableFacetedFilter } from "@/components/ui/data-table/data-table-faceted-filter";
import type { RouterOutputs } from "@openstatus/api";
import { Button } from "@openstatus/ui/components/ui/button";
import type { Table } from "@tanstack/react-table";
import { Database, User, X, Zap } from "lucide-react";
+import { DataTableFacetedFilter } from "@/components/ui/data-table/data-table-faceted-filter";
+
type AuditLog = RouterOutputs["auditLog"]["list"]["items"][number];
const ACTOR_TYPE_LABELS: Record<string, string> = {
diff --git a/apps/dashboard/src/components/data-table/audit-logs/columns.tsx b/apps/dashboard/src/components/data-table/audit-logs/columns.tsx
index 417c24ae8..dc5961de5 100644
--- a/apps/dashboard/src/components/data-table/audit-logs/columns.tsx
+++ b/apps/dashboard/src/components/data-table/audit-logs/columns.tsx
@@ -1,13 +1,14 @@
"use client";
+import type { RouterOutputs } from "@openstatus/api";
+import type { PrivateLocation } from "@openstatus/db/src/schema";
+import type { ColumnDef } from "@tanstack/react-table";
+
import { HoverCardTimestamp } from "@/components/common/hover-card-timestamp";
import { Pill } from "@/components/common/pill";
import { TableCellDate } from "@/components/data-table/table-cell-date";
import { config, getMetadata } from "@/data/audit-logs.client";
import { cn } from "@/lib/utils";
-import type { RouterOutputs } from "@openstatus/api";
-import type { PrivateLocation } from "@openstatus/db/src/schema";
-import type { ColumnDef } from "@tanstack/react-table";
type AuditLog = RouterOutputs["tinybird"]["auditLog"]["data"][number];
diff --git a/apps/dashboard/src/components/data-table/audit-logs/wrapper.tsx b/apps/dashboard/src/components/data-table/audit-logs/wrapper.tsx
index 0cbeb6ce9..b161f08c8 100644
--- a/apps/dashboard/src/components/data-table/audit-logs/wrapper.tsx
+++ b/apps/dashboard/src/components/data-table/audit-logs/wrapper.tsx
@@ -1,5 +1,9 @@
"use client";
+import { Skeleton } from "@openstatus/ui/components/ui/skeleton";
+import { useQuery } from "@tanstack/react-query";
+import { useMemo } from "react";
+
import { BlockWrapper } from "@/components/content/block-wrapper";
import {
EmptyStateContainer,
@@ -9,10 +13,7 @@ import {
import { DataTable } from "@/components/ui/data-table/data-table";
import { DataTablePaginationSimple } from "@/components/ui/data-table/data-table-pagination";
import { useTRPC } from "@/lib/trpc/client";
-import { Skeleton } from "@openstatus/ui/components/ui/skeleton";
-import { useQuery } from "@tanstack/react-query";
-import { useMemo } from "react";
import { getColumns } from "./columns";
export function AuditLogsWrapper({
diff --git a/apps/dashboard/src/components/data-table/billing/data-table.tsx b/apps/dashboard/src/components/data-table/billing/data-table.tsx
index e5b378d89..69d966839 100644
--- a/apps/dashboard/src/components/data-table/billing/data-table.tsx
+++ b/apps/dashboard/src/components/data-table/billing/data-table.tsx
@@ -1,8 +1,12 @@
"use client";
-import { Check } from "lucide-react";
-import { Fragment, useState, useTransition } from "react";
-
+import type { WorkspacePlan } from "@openstatus/db/src/schema";
+import type { BillingInterval } from "@openstatus/db/src/schema/plan/schema";
+import {
+ getAddonPriceConfig,
+ getPriceConfig,
+} from "@openstatus/db/src/schema/plan/utils";
+import { Badge } from "@openstatus/ui/components/ui/badge";
import { Button } from "@openstatus/ui/components/ui/button";
import {
Table,
@@ -14,21 +18,16 @@ import {
TableRow,
} from "@openstatus/ui/components/ui/table";
import { Tabs, TabsList, TabsTrigger } from "@openstatus/ui/components/ui/tabs";
+import { useCookieState } from "@openstatus/ui/hooks/use-cookie-state";
+import { useMutation, useQuery } from "@tanstack/react-query";
+import { Check } from "lucide-react";
+import { useRouter } from "next/navigation";
+import { Fragment, useState, useTransition } from "react";
import { config as featureGroups, plans } from "@/data/plans";
import { getStripe } from "@/lib/stripe";
import { useTRPC } from "@/lib/trpc/client";
import { cn } from "@/lib/utils";
-import type { WorkspacePlan } from "@openstatus/db/src/schema";
-import type { BillingInterval } from "@openstatus/db/src/schema/plan/schema";
-import {
- getAddonPriceConfig,
- getPriceConfig,
-} from "@openstatus/db/src/schema/plan/utils";
-import { Badge } from "@openstatus/ui/components/ui/badge";
-import { useCookieState } from "@openstatus/ui/hooks/use-cookie-state";
-import { useMutation, useQuery } from "@tanstack/react-query";
-import { useRouter } from "next/navigation";
const BASE_URL =
process.env.NODE_ENV === "production"
@@ -99,14 +98,14 @@ export function DataTable({ restrictTo }: { restrictTo?: WorkspacePlan[] }) {
<TableHead
key={id}
className={cn(
- "h-auto p-2 align-bottom text-foreground",
+ "text-foreground h-auto p-2 align-bottom",
id === "starter" ? "bg-muted/30" : "",
)}
>
<div className="flex h-full flex-col justify-between gap-1">
<div className="flex flex-1 flex-col gap-1">
<p className="font-cal text-lg">{plan.title}</p>
- <p className="text-wrap font-normal text-muted-foreground text-xs">
+ <p className="text-muted-foreground text-xs font-normal text-wrap">
{plan.description}
</p>
</div>
@@ -227,7 +226,7 @@ export function DataTable({ restrictTo }: { restrictTo?: WorkspacePlan[] }) {
}
if (typeof limitValue === "boolean") {
return limitValue ? (
- <Check className="h-4 w-4 text-foreground" />
+ <Check className="text-foreground h-4 w-4" />
) : (
<span className="text-muted-foreground/50">
&#8208;
diff --git a/apps/dashboard/src/components/data-table/data-table-sheet.tsx b/apps/dashboard/src/components/data-table/data-table-sheet.tsx
index 64c09d7e7..8f2b9f2a0 100644
--- a/apps/dashboard/src/components/data-table/data-table-sheet.tsx
+++ b/apps/dashboard/src/components/data-table/data-table-sheet.tsx
@@ -32,7 +32,7 @@ export function DataTableSheetHeader({
}: React.ComponentProps<typeof SheetHeader>) {
return (
<SheetHeader
- className={cn("sticky top-0 border-b bg-background", className)}
+ className={cn("bg-background sticky top-0 border-b", className)}
{...props}
>
{children}
@@ -47,7 +47,7 @@ export function DataTableSheetFooter({
}: React.ComponentProps<typeof SheetFooter>) {
return (
<SheetFooter
- className={cn("sticky bottom-0 border-t bg-background", className)}
+ className={cn("bg-background sticky bottom-0 border-t", className)}
{...props}
>
{children}
diff --git a/apps/dashboard/src/components/data-table/incidents/columns.tsx b/apps/dashboard/src/components/data-table/incidents/columns.tsx
index e6f8a9a04..c97958779 100644
--- a/apps/dashboard/src/components/data-table/incidents/columns.tsx
+++ b/apps/dashboard/src/components/data-table/incidents/columns.tsx
@@ -1,12 +1,14 @@
"use client";
+import type { RouterOutputs } from "@openstatus/api";
+import type { ColumnDef } from "@tanstack/react-table";
+import { formatDistanceStrict } from "date-fns";
+
import { TableCellDate } from "@/components/data-table/table-cell-date";
import { TableCellLink } from "@/components/data-table/table-cell-link";
import { TableCellNumber } from "@/components/data-table/table-cell-number";
import { DataTableColumnHeader } from "@/components/ui/data-table/data-table-column-header";
-import type { RouterOutputs } from "@openstatus/api";
-import type { ColumnDef } from "@tanstack/react-table";
-import { formatDistanceStrict } from "date-fns";
+
import { DataTableRowActions } from "./data-table-row-actions";
type Incident = RouterOutputs["incident"]["list"][number];
diff --git a/apps/dashboard/src/components/data-table/incidents/data-table-row-actions.tsx b/apps/dashboard/src/components/data-table/incidents/data-table-row-actions.tsx
index 02c236d03..490c5c61e 100644
--- a/apps/dashboard/src/components/data-table/incidents/data-table-row-actions.tsx
+++ b/apps/dashboard/src/components/data-table/incidents/data-table-row-actions.tsx
@@ -1,10 +1,5 @@
"use client";
-import type { Row } from "@tanstack/react-table";
-
-import { QuickActions } from "@/components/dropdowns/quick-actions";
-import { getActions } from "@/data/incidents.client";
-import { useTRPC } from "@/lib/trpc/client";
import type { RouterOutputs } from "@openstatus/api";
import {
AlertDialog,
@@ -17,10 +12,15 @@ import {
AlertDialogTitle,
} from "@openstatus/ui/components/ui/alert-dialog";
import { useMutation, useQueryClient } from "@tanstack/react-query";
+import type { Row } from "@tanstack/react-table";
import { isTRPCClientError } from "@trpc/client";
import { useMemo, useState, useTransition } from "react";
import { toast } from "sonner";
+import { QuickActions } from "@/components/dropdowns/quick-actions";
+import { getActions } from "@/data/incidents.client";
+import { useTRPC } from "@/lib/trpc/client";
+
type Incident = RouterOutputs["incident"]["list"][number];
interface DataTableRowActionsProps {
diff --git a/apps/dashboard/src/components/data-table/maintenances/columns.tsx b/apps/dashboard/src/components/data-table/maintenances/columns.tsx
index 839181c19..2de5d98d0 100644
--- a/apps/dashboard/src/components/data-table/maintenances/columns.tsx
+++ b/apps/dashboard/src/components/data-table/maintenances/columns.tsx
@@ -1,12 +1,14 @@
"use client";
+import type { RouterOutputs } from "@openstatus/api";
+import type { ColumnDef } from "@tanstack/react-table";
+import { formatDistanceStrict } from "date-fns";
+
import { ProcessMessage } from "@/components/content/process-message";
import { TableCellDate } from "@/components/data-table/table-cell-date";
import { TableCellNumber } from "@/components/data-table/table-cell-number";
import { DataTableColumnHeader } from "@/components/ui/data-table/data-table-column-header";
-import type { RouterOutputs } from "@openstatus/api";
-import type { ColumnDef } from "@tanstack/react-table";
-import { formatDistanceStrict } from "date-fns";
+
import { DataTableRowActions } from "./data-table-row-actions";
type Maintenance = RouterOutputs["maintenance"]["list"][number];
@@ -29,7 +31,7 @@ export const columns: ColumnDef<Maintenance>[] = [
cell: ({ row }) => {
const value = String(row.getValue("message"));
return (
- <div className="prose dark:prose-invert prose-sm line-clamp-3 max-w-[200px] truncate text-muted-foreground">
+ <div className="prose dark:prose-invert prose-sm text-muted-foreground line-clamp-3 max-w-[200px] truncate">
<ProcessMessage value={value} />
</div>
);
diff --git a/apps/dashboard/src/components/data-table/maintenances/data-table-row-actions.tsx b/apps/dashboard/src/components/data-table/maintenances/data-table-row-actions.tsx
index 589baf539..d6288cd57 100644
--- a/apps/dashboard/src/components/data-table/maintenances/data-table-row-actions.tsx
+++ b/apps/dashboard/src/components/data-table/maintenances/data-table-row-actions.tsx
@@ -1,16 +1,17 @@
"use client";
-import { QuickActions } from "@/components/dropdowns/quick-actions";
-import { FormSheetMaintenance } from "@/components/forms/maintenance/sheet";
-import { toCheckboxTreeItems } from "@/components/ui/checkbox-tree";
-import { getActions } from "@/data/maintenances.client";
-import { useTRPC } from "@/lib/trpc/client";
import type { RouterOutputs } from "@openstatus/api";
import { useMutation, useQueryClient } from "@tanstack/react-query";
import { useQuery } from "@tanstack/react-query";
import type { Row } from "@tanstack/react-table";
import { useRef } from "react";
+import { QuickActions } from "@/components/dropdowns/quick-actions";
+import { FormSheetMaintenance } from "@/components/forms/maintenance/sheet";
+import { toCheckboxTreeItems } from "@/components/ui/checkbox-tree";
+import { getActions } from "@/data/maintenances.client";
+import { useTRPC } from "@/lib/trpc/client";
+
type Maintenance = RouterOutputs["maintenance"]["list"][number];
interface DataTableRowActionsProps {
diff --git a/apps/dashboard/src/components/data-table/monitors/columns.tsx b/apps/dashboard/src/components/data-table/monitors/columns.tsx
index 020081d03..1a1d1afca 100644
--- a/apps/dashboard/src/components/data-table/monitors/columns.tsx
+++ b/apps/dashboard/src/components/data-table/monitors/columns.tsx
@@ -1,18 +1,19 @@
"use client";
-import { TableCellLink } from "@/components/data-table/table-cell-link";
+import type { RouterOutputs } from "@openstatus/api";
import { Badge } from "@openstatus/ui/components/ui/badge";
import { Checkbox } from "@openstatus/ui/components/ui/checkbox";
import type { ColumnDef } from "@tanstack/react-table";
-import { DataTableRowActions } from "./data-table-row-actions";
+import { formatDistanceToNow } from "date-fns";
+import { TableCellLink } from "@/components/data-table/table-cell-link";
import { DataTableColumnHeader } from "@/components/ui/data-table/data-table-column-header";
-import type { RouterOutputs } from "@openstatus/api";
-import { formatDistanceToNow } from "date-fns";
+
import { TableCellSkeleton } from "../dable-cell-skeleton";
import { TableCellDate } from "../table-cell-date";
import { TableCellNumber } from "../table-cell-number";
import { TableCellUnavailable } from "../table-cell-unavailable";
+import { DataTableRowActions } from "./data-table-row-actions";
type Monitor = RouterOutputs["monitor"]["list"][number] & {
globalMetrics?:
@@ -94,13 +95,13 @@ export const columns: ColumnDef<Monitor>[] = [
switch (value) {
case "active":
- return <div className="font-mono text-success">{value}</div>;
+ return <div className="text-success font-mono">{value}</div>;
case "degraded":
- return <div className="font-mono text-warning">{value}</div>;
+ return <div className="text-warning font-mono">{value}</div>;
case "error":
- return <div className="font-mono text-destructive">{value}</div>;
+ return <div className="text-destructive font-mono">{value}</div>;
default:
- return <div className="font-mono text-muted-foreground">{value}</div>;
+ return <div className="text-muted-foreground font-mono">{value}</div>;
}
},
filterFn: (row, _, value) => {
@@ -134,12 +135,12 @@ export const columns: ColumnDef<Monitor>[] = [
return <div className="text-muted-foreground">-</div>;
}
return (
- <div className="group/badges -space-x-2 flex flex-wrap">
+ <div className="group/badges flex flex-wrap -space-x-2">
{value.map((tag) => (
<Badge
key={tag.id}
variant="outline"
- className="relative flex translate-x-0 items-center gap-1.5 rounded-full bg-background transition-transform hover:z-10 hover:translate-x-1"
+ className="bg-background relative flex translate-x-0 items-center gap-1.5 rounded-full transition-transform hover:z-10 hover:translate-x-1"
>
<div
className="size-2.5 rounded-full"
diff --git a/apps/dashboard/src/components/data-table/monitors/data-table-action-bar.tsx b/apps/dashboard/src/components/data-table/monitors/data-table-action-bar.tsx
index ea8df7fc4..e06223f98 100644
--- a/apps/dashboard/src/components/data-table/monitors/data-table-action-bar.tsx
+++ b/apps/dashboard/src/components/data-table/monitors/data-table-action-bar.tsx
@@ -1,28 +1,6 @@
"use client";
-import { SelectTrigger } from "@radix-ui/react-select";
-import type { Table } from "@tanstack/react-table";
-import { Check, CheckCircle2, Copy, Trash2 } from "lucide-react";
-import * as React from "react";
-
-import {
- DataTableActionBar,
- DataTableActionBarAction,
- DataTableActionBarSelection,
-} from "@/components/ui/data-table/data-table-action-bar";
-import { useTRPC } from "@/lib/trpc/client";
import type { RouterOutputs } from "@openstatus/api";
-import {
- Select,
- SelectContent,
- SelectGroup,
- SelectItem,
-} from "@openstatus/ui/components/ui/select";
-import { Separator } from "@openstatus/ui/components/ui/separator";
-import { useMutation, useQueryClient } from "@tanstack/react-query";
-import { isTRPCClientError } from "@trpc/client";
-import { toast } from "sonner";
-
import {
AlertDialog,
AlertDialogAction,
@@ -36,7 +14,28 @@ import {
} from "@openstatus/ui/components/ui/alert-dialog";
import { Button } from "@openstatus/ui/components/ui/button";
import { Input } from "@openstatus/ui/components/ui/input";
+import {
+ Select,
+ SelectContent,
+ SelectGroup,
+ SelectItem,
+} from "@openstatus/ui/components/ui/select";
+import { Separator } from "@openstatus/ui/components/ui/separator";
import { useCopyToClipboard } from "@openstatus/ui/hooks/use-copy-to-clipboard";
+import { SelectTrigger } from "@radix-ui/react-select";
+import { useMutation, useQueryClient } from "@tanstack/react-query";
+import type { Table } from "@tanstack/react-table";
+import { isTRPCClientError } from "@trpc/client";
+import { Check, CheckCircle2, Copy, Trash2 } from "lucide-react";
+import * as React from "react";
+import { toast } from "sonner";
+
+import {
+ DataTableActionBar,
+ DataTableActionBarAction,
+ DataTableActionBarSelection,
+} from "@/components/ui/data-table/data-table-action-bar";
+import { useTRPC } from "@/lib/trpc/client";
type Monitor = RouterOutputs["monitor"]["list"][number];
@@ -208,7 +207,7 @@ export function MonitorDataTableActionBar({
Cancel
</AlertDialogCancel>
<AlertDialogAction
- className="bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40"
+ className="bg-destructive hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 text-white shadow-xs"
disabled={value !== confirmationValue || isPending}
form="form-alert-dialog"
type="submit"
diff --git a/apps/dashboard/src/components/data-table/monitors/data-table-row-actions.tsx b/apps/dashboard/src/components/data-table/monitors/data-table-row-actions.tsx
index 60ee554fe..3a8200898 100644
--- a/apps/dashboard/src/components/data-table/monitors/data-table-row-actions.tsx
+++ b/apps/dashboard/src/components/data-table/monitors/data-table-row-actions.tsx
@@ -1,9 +1,5 @@
"use client";
-import { ExportCodeDialog } from "@/components/dialogs/export-code";
-import { QuickActions } from "@/components/dropdowns/quick-actions";
-import { getActions } from "@/data/monitors.client";
-import { useTRPC } from "@/lib/trpc/client";
import type { RouterOutputs } from "@openstatus/api";
import { useMutation, useQueryClient } from "@tanstack/react-query";
import type { Row } from "@tanstack/react-table";
@@ -11,6 +7,11 @@ import { useRouter } from "next/navigation";
import { useState } from "react";
import { toast } from "sonner";
+import { ExportCodeDialog } from "@/components/dialogs/export-code";
+import { QuickActions } from "@/components/dropdowns/quick-actions";
+import { getActions } from "@/data/monitors.client";
+import { useTRPC } from "@/lib/trpc/client";
+
type Monitor = RouterOutputs["monitor"]["list"][number];
interface DataTableRowActionsProps {
row: Row<Monitor>;
diff --git a/apps/dashboard/src/components/data-table/monitors/data-table-toolbar.tsx b/apps/dashboard/src/components/data-table/monitors/data-table-toolbar.tsx
index 6e3f6541e..a76c48d21 100644
--- a/apps/dashboard/src/components/data-table/monitors/data-table-toolbar.tsx
+++ b/apps/dashboard/src/components/data-table/monitors/data-table-toolbar.tsx
@@ -1,13 +1,12 @@
"use client";
-import type { Table } from "@tanstack/react-table";
-import { Tag, X } from "lucide-react";
-
+import type { RouterOutputs } from "@openstatus/api";
import { Button } from "@openstatus/ui/components/ui/button";
import { Input } from "@openstatus/ui/components/ui/input";
+import type { Table } from "@tanstack/react-table";
+import { Tag, X } from "lucide-react";
import { DataTableFacetedFilter } from "@/components/ui/data-table/data-table-faceted-filter";
-import type { RouterOutputs } from "@openstatus/api";
type Monitor = RouterOutputs["monitor"]["list"][number];
type MonitorTag = RouterOutputs["monitorTag"]["list"][number];
diff --git a/apps/dashboard/src/components/data-table/notifications/columns.tsx b/apps/dashboard/src/components/data-table/notifications/columns.tsx
index 8e7b18779..acb007084 100644
--- a/apps/dashboard/src/components/data-table/notifications/columns.tsx
+++ b/apps/dashboard/src/components/data-table/notifications/columns.tsx
@@ -1,11 +1,13 @@
"use client";
-import { DataTableColumnHeader } from "@/components/ui/data-table/data-table-column-header";
-import { type NotifierProvider, config } from "@/data/notifications.client";
import type { RouterOutputs } from "@openstatus/api";
import { Badge } from "@openstatus/ui/components/ui/badge";
import type { ColumnDef } from "@tanstack/react-table";
import Link from "next/link";
+
+import { DataTableColumnHeader } from "@/components/ui/data-table/data-table-column-header";
+import { type NotifierProvider, config } from "@/data/notifications.client";
+
import { TableCellBadge } from "../table-cell-badge";
import { DataTableRowActions } from "./data-table-row-actions";
diff --git a/apps/dashboard/src/components/data-table/notifications/data-table-row-actions.tsx b/apps/dashboard/src/components/data-table/notifications/data-table-row-actions.tsx
index 96b69868b..e38394cca 100644
--- a/apps/dashboard/src/components/data-table/notifications/data-table-row-actions.tsx
+++ b/apps/dashboard/src/components/data-table/notifications/data-table-row-actions.tsx
@@ -1,14 +1,15 @@
"use client";
-import { QuickActions } from "@/components/dropdowns/quick-actions";
-import { FormSheetNotifier } from "@/components/forms/notifications/sheet";
-import { getActions } from "@/data/notifications.client";
-import { useTRPC } from "@/lib/trpc/client";
import type { RouterOutputs } from "@openstatus/api";
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
import type { Row } from "@tanstack/react-table";
import { useRef } from "react";
+import { QuickActions } from "@/components/dropdowns/quick-actions";
+import { FormSheetNotifier } from "@/components/forms/notifications/sheet";
+import { getActions } from "@/data/notifications.client";
+import { useTRPC } from "@/lib/trpc/client";
+
type Notifier = RouterOutputs["notification"]["list"][number];
interface DataTableRowActionsProps {
diff --git a/apps/dashboard/src/components/data-table/page-components/columns.tsx b/apps/dashboard/src/components/data-table/page-components/columns.tsx
index ccc6fbfaf..686d34db6 100644
--- a/apps/dashboard/src/components/data-table/page-components/columns.tsx
+++ b/apps/dashboard/src/components/data-table/page-components/columns.tsx
@@ -1,8 +1,10 @@
"use client";
-import { DataTableColumnHeader } from "@/components/ui/data-table/data-table-column-header";
import type { RouterOutputs } from "@openstatus/api";
import type { ColumnDef } from "@tanstack/react-table";
+
+import { DataTableColumnHeader } from "@/components/ui/data-table/data-table-column-header";
+
import { DataTableRowActions } from "./data-table-row-actions";
type PageComponent = RouterOutputs["pageComponent"]["list"][number];
@@ -21,7 +23,7 @@ export const columns: ColumnDef<PageComponent>[] = [
cell: ({ row }) => {
const value = row.getValue("description");
return (
- <span className="max-w-[200px] truncate text-muted-foreground">
+ <span className="text-muted-foreground max-w-[200px] truncate">
{value ? String(value) : "-"}
</span>
);
diff --git a/apps/dashboard/src/components/data-table/page-components/data-table-row-actions.tsx b/apps/dashboard/src/components/data-table/page-components/data-table-row-actions.tsx
index e1e794fbf..c637e9398 100644
--- a/apps/dashboard/src/components/data-table/page-components/data-table-row-actions.tsx
+++ b/apps/dashboard/src/components/data-table/page-components/data-table-row-actions.tsx
@@ -1,12 +1,13 @@
"use client";
-import { QuickActions } from "@/components/dropdowns/quick-actions";
-import { getActions } from "@/data/page-components.client";
-import { useTRPC } from "@/lib/trpc/client";
import type { RouterOutputs } from "@openstatus/api";
import { useMutation, useQueryClient } from "@tanstack/react-query";
import type { Row } from "@tanstack/react-table";
+import { QuickActions } from "@/components/dropdowns/quick-actions";
+import { getActions } from "@/data/page-components.client";
+import { useTRPC } from "@/lib/trpc/client";
+
type PageComponent = RouterOutputs["pageComponent"]["list"][number];
interface DataTableRowActionsProps {
diff --git a/apps/dashboard/src/components/data-table/private-locations/columns.tsx b/apps/dashboard/src/components/data-table/private-locations/columns.tsx
index 465131868..19feb6dd6 100644
--- a/apps/dashboard/src/components/data-table/private-locations/columns.tsx
+++ b/apps/dashboard/src/components/data-table/private-locations/columns.tsx
@@ -1,9 +1,11 @@
"use client";
-import { DataTableColumnHeader } from "@/components/ui/data-table/data-table-column-header";
import type { RouterOutputs } from "@openstatus/api";
import type { ColumnDef } from "@tanstack/react-table";
import Link from "next/link";
+
+import { DataTableColumnHeader } from "@/components/ui/data-table/data-table-column-header";
+
import { TableCellBadge } from "../table-cell-badge";
import { TableCellDate } from "../table-cell-date";
import { DataTableRowActions } from "./data-table-row-actions";
diff --git a/apps/dashboard/src/components/data-table/private-locations/data-table-row-actions.tsx b/apps/dashboard/src/components/data-table/private-locations/data-table-row-actions.tsx
index 5b6d5a935..c7c7f229f 100644
--- a/apps/dashboard/src/components/data-table/private-locations/data-table-row-actions.tsx
+++ b/apps/dashboard/src/components/data-table/private-locations/data-table-row-actions.tsx
@@ -1,14 +1,15 @@
"use client";
-import { QuickActions } from "@/components/dropdowns/quick-actions";
-import { FormSheetPrivateLocation } from "@/components/forms/private-location/sheet";
-import { getActions } from "@/data/notifications.client";
-import { useTRPC } from "@/lib/trpc/client";
import type { RouterOutputs } from "@openstatus/api";
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
import type { Row } from "@tanstack/react-table";
import { useRef } from "react";
+import { QuickActions } from "@/components/dropdowns/quick-actions";
+import { FormSheetPrivateLocation } from "@/components/forms/private-location/sheet";
+import { getActions } from "@/data/notifications.client";
+import { useTRPC } from "@/lib/trpc/client";
+
type PrivateLocation = RouterOutputs["privateLocation"]["list"][number];
interface DataTableRowActionsProps {
diff --git a/apps/dashboard/src/components/data-table/response-logs/columns.tsx b/apps/dashboard/src/components/data-table/response-logs/columns.tsx
index 29f85de37..4e4e65154 100644
--- a/apps/dashboard/src/components/data-table/response-logs/columns.tsx
+++ b/apps/dashboard/src/components/data-table/response-logs/columns.tsx
@@ -1,11 +1,5 @@
"use client";
-import { HoverCardTimestamp } from "@/components/common/hover-card-timestamp";
-import { HoverCardTiming } from "@/components/common/hover-card-timing";
-import { TableCellDate } from "@/components/data-table/table-cell-date";
-import { TableCellNumber } from "@/components/data-table/table-cell-number";
-import { TableCellRegion } from "@/components/data-table/table-cell-region";
-import { getStatusCodeVariant, textColors } from "@/data/status-codes";
import type { RouterOutputs } from "@openstatus/api";
import type { PrivateLocation } from "@openstatus/db/src/schema";
import {
@@ -17,6 +11,13 @@ import {
import type { ColumnDef } from "@tanstack/react-table";
import { Clock, Workflow } from "lucide-react";
+import { HoverCardTimestamp } from "@/components/common/hover-card-timestamp";
+import { HoverCardTiming } from "@/components/common/hover-card-timing";
+import { TableCellDate } from "@/components/data-table/table-cell-date";
+import { TableCellNumber } from "@/components/data-table/table-cell-number";
+import { TableCellRegion } from "@/components/data-table/table-cell-region";
+import { getStatusCodeVariant, textColors } from "@/data/status-codes";
+
type ResponseLog = RouterOutputs["tinybird"]["list"]["data"][number];
// export const columns: ColumnDef<ResponseLog>[] =
@@ -32,13 +33,13 @@ export function getColumns(
cell: ({ row }) => {
const value = row.getValue("requestStatus");
if (value === "error") {
- return <div className="h-2.5 w-2.5 rounded-[2px] bg-destructive" />;
+ return <div className="bg-destructive h-2.5 w-2.5 rounded-[2px]" />;
}
if (value === "degraded") {
- return <div className="h-2.5 w-2.5 rounded-[2px] bg-warning" />;
+ return <div className="bg-warning h-2.5 w-2.5 rounded-[2px]" />;
}
if (value === "success") {
- return <div className="h-2.5 w-2.5 rounded-[2px] bg-success" />;
+ return <div className="bg-success h-2.5 w-2.5 rounded-[2px]" />;
}
return <div className="text-muted-foreground">-</div>;
},
@@ -54,7 +55,7 @@ export function getColumns(
<HoverCardTimestamp date={value}>
<TableCellDate
value={value}
- className="font-mono text-foreground"
+ className="text-foreground font-mono"
/>
</HoverCardTimestamp>
);
@@ -127,7 +128,7 @@ export function getColumns(
<TooltipProvider>
<Tooltip>
<TooltipTrigger>
- <Icon className="size-3 text-muted-foreground" />
+ <Icon className="text-muted-foreground size-3" />
</TooltipTrigger>
<TooltipContent side="right">
<p>{label}</p>
diff --git a/apps/dashboard/src/components/data-table/response-logs/data-table-basics.tsx b/apps/dashboard/src/components/data-table/response-logs/data-table-basics.tsx
index 3649efeba..2516c162f 100644
--- a/apps/dashboard/src/components/data-table/response-logs/data-table-basics.tsx
+++ b/apps/dashboard/src/components/data-table/response-logs/data-table-basics.tsx
@@ -1,11 +1,5 @@
"use client";
-import { IconCloudProvider } from "@/components/common/icon-cloud-provider";
-import { BlockWrapper } from "@/components/content/block-wrapper";
-import { TableCellDate } from "@/components/data-table/table-cell-date";
-import { TableCellNumber } from "@/components/data-table/table-cell-number";
-import { getStatusCodeVariant, textColors } from "@/data/status-codes";
-import { formatMilliseconds, formatPercentage } from "@/lib/formatter";
import type { RouterOutputs } from "@openstatus/api";
import type { PrivateLocation } from "@openstatus/db/src/schema";
import { getRegionInfo } from "@openstatus/regions";
@@ -25,6 +19,13 @@ import {
import { cn } from "@openstatus/ui/lib/utils";
import { Braces, TableProperties } from "lucide-react";
+import { IconCloudProvider } from "@/components/common/icon-cloud-provider";
+import { BlockWrapper } from "@/components/content/block-wrapper";
+import { TableCellDate } from "@/components/data-table/table-cell-date";
+import { TableCellNumber } from "@/components/data-table/table-cell-number";
+import { getStatusCodeVariant, textColors } from "@/data/status-codes";
+import { formatMilliseconds, formatPercentage } from "@/lib/formatter";
+
type ResponseLog = RouterOutputs["tinybird"]["get"]["data"][number];
export function DataTableBasics({
@@ -78,14 +79,14 @@ export function DataTableBasicsHTTP({
<TableHead colSpan={2}>Request</TableHead>
</TableRow>
<TableRow className="[&>:not(:last-child)]:border-r">
- <TableHead className="bg-muted/50 font-normal text-muted-foreground">
+ <TableHead className="bg-muted/50 text-muted-foreground font-normal">
Result
</TableHead>
{/* TODO: add colored square like list (see columns) */}
- <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">
+ <TableCell className="max-w-full overflow-x-auto font-mono whitespace-normal">
<div className="flex items-center gap-2">
<div
- className={cn("h-2.5 w-2.5 rounded-[2px] bg-muted", {
+ className={cn("bg-muted h-2.5 w-2.5 rounded-[2px]", {
"bg-destructive": data?.requestStatus === "error",
"bg-warning": data?.requestStatus === "degraded",
"bg-success": data?.requestStatus === "success",
@@ -99,19 +100,19 @@ export function DataTableBasicsHTTP({
</TableRow>
{data.id ? (
<TableRow className="[&>:not(:last-child)]:border-r">
- <TableHead className="bg-muted/50 font-normal text-muted-foreground">
+ <TableHead className="bg-muted/50 text-muted-foreground font-normal">
ID
</TableHead>
- <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">
+ <TableCell className="max-w-full overflow-x-auto font-mono whitespace-normal">
{data.id}
</TableCell>
</TableRow>
) : null}
<TableRow className="[&>:not(:last-child)]:border-r">
- <TableHead className="bg-muted/50 font-normal text-muted-foreground">
+ <TableHead className="bg-muted/50 text-muted-foreground font-normal">
Timestamp
</TableHead>
- <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">
+ <TableCell className="max-w-full overflow-x-auto font-mono whitespace-normal">
<TableCellDate
value={new Date(data.cronTimestamp)}
className="text-foreground"
@@ -119,10 +120,10 @@ export function DataTableBasicsHTTP({
</TableCell>
</TableRow>
<TableRow className="[&>:not(:last-child)]:border-r">
- <TableHead className="bg-muted/50 font-normal text-muted-foreground">
+ <TableHead className="bg-muted/50 text-muted-foreground font-normal">
URL
</TableHead>
- <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">
+ <TableCell className="max-w-full overflow-x-auto font-mono whitespace-normal">
{data.url}
</TableCell>
</TableRow>
@@ -136,10 +137,10 @@ export function DataTableBasicsHTTP({
</TableCell>
</TableRow> */}
<TableRow className="[&>:not(:last-child)]:border-r">
- <TableHead className="bg-muted/50 font-normal text-muted-foreground">
+ <TableHead className="bg-muted/50 text-muted-foreground font-normal">
Status
</TableHead>
- <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">
+ <TableCell className="max-w-full overflow-x-auto font-mono whitespace-normal">
<TableCellNumber
value={data.statusCode}
className={textColors[getStatusCodeVariant(data.statusCode)]}
@@ -147,18 +148,18 @@ export function DataTableBasicsHTTP({
</TableCell>
</TableRow>
<TableRow className="[&>:not(:last-child)]:border-r">
- <TableHead className="bg-muted/50 font-normal text-muted-foreground">
+ <TableHead className="bg-muted/50 text-muted-foreground font-normal">
Latency
</TableHead>
- <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">
+ <TableCell className="max-w-full overflow-x-auto font-mono whitespace-normal">
<TableCellNumber value={data?.latency} unit="ms" />
</TableCell>
</TableRow>
<TableRow className="[&>:not(:last-child)]:border-r">
- <TableHead className="bg-muted/50 font-normal text-muted-foreground">
+ <TableHead className="bg-muted/50 text-muted-foreground font-normal">
Region
</TableHead>
- <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">
+ <TableCell className="max-w-full overflow-x-auto font-mono whitespace-normal">
{regionConfig?.code}{" "}
<span className="text-muted-foreground text-xs">
{regionConfig?.location} {regionConfig?.flag}
@@ -166,25 +167,25 @@ export function DataTableBasicsHTTP({
</TableCell>
</TableRow>
<TableRow className="[&>:not(:last-child)]:border-r">
- <TableHead className="bg-muted/50 font-normal text-muted-foreground">
+ <TableHead className="bg-muted/50 text-muted-foreground font-normal">
Cloud Provider
</TableHead>
- <TableCell className="inline-flex max-w-full overflow-x-auto whitespace-normal font-mono">
+ <TableCell className="inline-flex max-w-full overflow-x-auto font-mono whitespace-normal">
<IconCloudProvider
provider={regionConfig?.provider}
className="mt-0.5"
/>
- <span className="ml-1 text-muted-foreground">
+ <span className="text-muted-foreground ml-1">
{regionConfig?.provider}
</span>
</TableCell>
</TableRow>
{data.trigger ? (
<TableRow className="[&>:not(:last-child)]:border-r">
- <TableHead className="bg-muted/50 font-normal text-muted-foreground">
+ <TableHead className="bg-muted/50 text-muted-foreground font-normal">
Trigger
</TableHead>
- <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">
+ <TableCell className="max-w-full overflow-x-auto font-mono whitespace-normal">
{data?.trigger}
</TableCell>
</TableRow>
@@ -218,10 +219,10 @@ export function DataTableBasicsHTTP({
key={key}
className="[&>:not(:last-child)]:border-r"
>
- <TableHead className="overflow-x-auto bg-muted/50 font-normal text-muted-foreground">
+ <TableHead className="bg-muted/50 text-muted-foreground overflow-x-auto font-normal">
{key}
</TableHead>
- <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">
+ <TableCell className="max-w-full overflow-x-auto font-mono whitespace-normal">
{value}
</TableCell>
</TableRow>
@@ -231,7 +232,7 @@ export function DataTableBasicsHTTP({
</Table>
</TabsContent>
<TabsContent value="raw">
- <pre className="max-w-full overflow-x-auto whitespace-pre-wrap rounded-none bg-muted/50 p-4 font-mono text-sm">
+ <pre className="bg-muted/50 max-w-full overflow-x-auto rounded-none p-4 font-mono text-sm whitespace-pre-wrap">
{JSON.stringify(data?.headers, null, 2)}
</pre>
</TabsContent>
@@ -247,10 +248,10 @@ export function DataTableBasicsHTTP({
</TableRow>
{Object.entries(data?.timing ?? {}).map(([key, value], index) => (
<TableRow key={key} className="[&>:not(:last-child)]:border-r">
- <TableHead className="bg-muted/50 font-normal text-muted-foreground">
+ <TableHead className="bg-muted/50 text-muted-foreground font-normal">
<span className="uppercase">{key}</span>
</TableHead>
- <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">
+ <TableCell className="max-w-full overflow-x-auto font-mono whitespace-normal">
<div className="flex items-center justify-between gap-2">
<div className="flex-1">
<span className="text-muted-foreground">
@@ -258,7 +259,7 @@ export function DataTableBasicsHTTP({
</span>
</div>
<div className="flex w-full flex-1 items-center justify-end gap-2">
- <span className="text-nowrap text-muted-foreground">
+ <span className="text-muted-foreground text-nowrap">
{formatMilliseconds(value)}
</span>
<div
@@ -282,7 +283,7 @@ export function DataTableBasicsHTTP({
</TableRow>
<TableRow>
<TableCell colSpan={2} className="p-0">
- <pre className="max-w-full overflow-x-auto whitespace-pre-wrap rounded-none bg-muted/50 p-2 font-mono text-sm">
+ <pre className="bg-muted/50 max-w-full overflow-x-auto rounded-none p-2 font-mono text-sm whitespace-pre-wrap">
{data.message}
</pre>
</TableCell>
@@ -297,7 +298,7 @@ export function DataTableBasicsHTTP({
<TableRow>
<TableCell colSpan={2} className="p-0">
<BlockWrapper autoOpen>
- <pre className="max-w-full overflow-x-auto whitespace-pre-wrap rounded-none bg-muted/50 p-2 font-mono text-sm">
+ <pre className="bg-muted/50 max-w-full overflow-x-auto rounded-none p-2 font-mono text-sm whitespace-pre-wrap">
{data.body}
</pre>
</BlockWrapper>
@@ -313,11 +314,11 @@ export function DataTableBasicsHTTP({
<TableRow>
<TableCell colSpan={2} className="p-0">
{!data.assertions || data.assertions === "[]" ? (
- <div className="p-2 font-mono text-muted-foreground text-sm">
+ <div className="text-muted-foreground p-2 font-mono text-sm">
Default status code 2xx assertion
</div>
) : (
- <pre className="max-w-full overflow-x-auto whitespace-pre-wrap rounded-none bg-muted/50 p-2 font-mono text-sm">
+ <pre className="bg-muted/50 max-w-full overflow-x-auto rounded-none p-2 font-mono text-sm whitespace-pre-wrap">
{JSON.stringify(data.assertions, null, 2)}
</pre>
)}
@@ -356,14 +357,14 @@ export function DataTableBasicsTCP({
<TableHead colSpan={2}>Request</TableHead>
</TableRow>
<TableRow className="[&>:not(:last-child)]:border-r">
- <TableHead className="bg-muted/50 font-normal text-muted-foreground">
+ <TableHead className="bg-muted/50 text-muted-foreground font-normal">
Result
</TableHead>
{/* TODO: add colored square like list (see columns) */}
- <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">
+ <TableCell className="max-w-full overflow-x-auto font-mono whitespace-normal">
<div className="flex items-center gap-2">
<div
- className={cn("h-2.5 w-2.5 rounded-[2px] bg-muted", {
+ className={cn("bg-muted h-2.5 w-2.5 rounded-[2px]", {
"bg-destructive": data?.requestStatus === "error",
"bg-warning": data?.requestStatus === "degraded",
"bg-success": data?.requestStatus === "success",
@@ -377,19 +378,19 @@ export function DataTableBasicsTCP({
</TableRow>
{data.id ? (
<TableRow className="[&>:not(:last-child)]:border-r">
- <TableHead className="bg-muted/50 font-normal text-muted-foreground">
+ <TableHead className="bg-muted/50 text-muted-foreground font-normal">
ID
</TableHead>
- <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">
+ <TableCell className="max-w-full overflow-x-auto font-mono whitespace-normal">
{data.id}
</TableCell>
</TableRow>
) : null}
<TableRow className="[&>:not(:last-child)]:border-r">
- <TableHead className="bg-muted/50 font-normal text-muted-foreground">
+ <TableHead className="bg-muted/50 text-muted-foreground font-normal">
Timestamp
</TableHead>
- <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">
+ <TableCell className="max-w-full overflow-x-auto font-mono whitespace-normal">
<TableCellDate
value={new Date(data.cronTimestamp)}
className="text-foreground"
@@ -397,26 +398,26 @@ export function DataTableBasicsTCP({
</TableCell>
</TableRow>
<TableRow className="[&>:not(:last-child)]:border-r">
- <TableHead className="bg-muted/50 font-normal text-muted-foreground">
+ <TableHead className="bg-muted/50 text-muted-foreground font-normal">
URI
</TableHead>
- <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">
+ <TableCell className="max-w-full overflow-x-auto font-mono whitespace-normal">
{data.uri}
</TableCell>
</TableRow>
<TableRow className="[&>:not(:last-child)]:border-r">
- <TableHead className="bg-muted/50 font-normal text-muted-foreground">
+ <TableHead className="bg-muted/50 text-muted-foreground font-normal">
Latency
</TableHead>
- <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">
+ <TableCell className="max-w-full overflow-x-auto font-mono whitespace-normal">
<TableCellNumber value={data?.latency} unit="ms" />
</TableCell>
</TableRow>
<TableRow className="[&>:not(:last-child)]:border-r">
- <TableHead className="bg-muted/50 font-normal text-muted-foreground">
+ <TableHead className="bg-muted/50 text-muted-foreground font-normal">
Region
</TableHead>
- <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">
+ <TableCell className="max-w-full overflow-x-auto font-mono whitespace-normal">
{regionConfig?.flag} {regionConfig?.code}{" "}
<span className="text-muted-foreground">
{regionConfig?.location}
@@ -424,25 +425,25 @@ export function DataTableBasicsTCP({
</TableCell>
</TableRow>
<TableRow className="[&>:not(:last-child)]:border-r">
- <TableHead className="bg-muted/50 font-normal text-muted-foreground">
+ <TableHead className="bg-muted/50 text-muted-foreground font-normal">
Cloud Provider
</TableHead>
- <TableCell className="inline-flex max-w-full overflow-x-auto whitespace-normal font-mono">
+ <TableCell className="inline-flex max-w-full overflow-x-auto font-mono whitespace-normal">
<IconCloudProvider
provider={regionConfig?.provider}
className="mt-0.5"
/>
- <span className="ml-1 text-muted-foreground">
+ <span className="text-muted-foreground ml-1">
{regionConfig?.provider}
</span>
</TableCell>
</TableRow>
{data.trigger ? (
<TableRow className="[&>:not(:last-child)]:border-r">
- <TableHead className="bg-muted/50 font-normal text-muted-foreground">
+ <TableHead className="bg-muted/50 text-muted-foreground font-normal">
Trigger
</TableHead>
- <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">
+ <TableCell className="max-w-full overflow-x-auto font-mono whitespace-normal">
{data?.trigger}
</TableCell>
</TableRow>
@@ -454,7 +455,7 @@ export function DataTableBasicsTCP({
</TableRow>
<TableRow>
<TableCell colSpan={2} className="p-0">
- <pre className="max-w-full overflow-x-auto whitespace-pre-wrap rounded-none bg-muted/50 p-2 font-mono text-sm">
+ <pre className="bg-muted/50 max-w-full overflow-x-auto rounded-none p-2 font-mono text-sm whitespace-pre-wrap">
{data.errorMessage}
</pre>
</TableCell>
@@ -492,14 +493,14 @@ export function DataTableBasicsDNS({
<TableHead colSpan={2}>Request</TableHead>
</TableRow>
<TableRow className="[&>:not(:last-child)]:border-r">
- <TableHead className="bg-muted/50 font-normal text-muted-foreground">
+ <TableHead className="bg-muted/50 text-muted-foreground font-normal">
Result
</TableHead>
{/* TODO: add colored square like list (see columns) */}
- <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">
+ <TableCell className="max-w-full overflow-x-auto font-mono whitespace-normal">
<div className="flex items-center gap-2">
<div
- className={cn("h-2.5 w-2.5 rounded-[2px] bg-muted", {
+ className={cn("bg-muted h-2.5 w-2.5 rounded-[2px]", {
"bg-destructive": data?.requestStatus === "error",
"bg-warning": data?.requestStatus === "degraded",
"bg-success": data?.requestStatus === "success",
@@ -513,19 +514,19 @@ export function DataTableBasicsDNS({
</TableRow>
{data.id ? (
<TableRow className="[&>:not(:last-child)]:border-r">
- <TableHead className="bg-muted/50 font-normal text-muted-foreground">
+ <TableHead className="bg-muted/50 text-muted-foreground font-normal">
ID
</TableHead>
- <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">
+ <TableCell className="max-w-full overflow-x-auto font-mono whitespace-normal">
{data.id}
</TableCell>
</TableRow>
) : null}
<TableRow className="[&>:not(:last-child)]:border-r">
- <TableHead className="bg-muted/50 font-normal text-muted-foreground">
+ <TableHead className="bg-muted/50 text-muted-foreground font-normal">
Timestamp
</TableHead>
- <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">
+ <TableCell className="max-w-full overflow-x-auto font-mono whitespace-normal">
<TableCellDate
value={new Date(data.cronTimestamp)}
className="text-foreground"
@@ -533,26 +534,26 @@ export function DataTableBasicsDNS({
</TableCell>
</TableRow>
<TableRow className="[&>:not(:last-child)]:border-r">
- <TableHead className="bg-muted/50 font-normal text-muted-foreground">
+ <TableHead className="bg-muted/50 text-muted-foreground font-normal">
URI
</TableHead>
- <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">
+ <TableCell className="max-w-full overflow-x-auto font-mono whitespace-normal">
{data.uri}
</TableCell>
</TableRow>
<TableRow className="[&>:not(:last-child)]:border-r">
- <TableHead className="bg-muted/50 font-normal text-muted-foreground">
+ <TableHead className="bg-muted/50 text-muted-foreground font-normal">
Latency
</TableHead>
- <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">
+ <TableCell className="max-w-full overflow-x-auto font-mono whitespace-normal">
<TableCellNumber value={data?.latency} unit="ms" />
</TableCell>
</TableRow>
<TableRow className="[&>:not(:last-child)]:border-r">
- <TableHead className="bg-muted/50 font-normal text-muted-foreground">
+ <TableHead className="bg-muted/50 text-muted-foreground font-normal">
Region
</TableHead>
- <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">
+ <TableCell className="max-w-full overflow-x-auto font-mono whitespace-normal">
{regionConfig?.flag} {regionConfig?.code}{" "}
<span className="text-muted-foreground">
{regionConfig?.location}
@@ -560,25 +561,25 @@ export function DataTableBasicsDNS({
</TableCell>
</TableRow>
<TableRow className="[&>:not(:last-child)]:border-r">
- <TableHead className="bg-muted/50 font-normal text-muted-foreground">
+ <TableHead className="bg-muted/50 text-muted-foreground font-normal">
Cloud Provider
</TableHead>
- <TableCell className="inline-flex max-w-full overflow-x-auto whitespace-normal font-mono">
+ <TableCell className="inline-flex max-w-full overflow-x-auto font-mono whitespace-normal">
<IconCloudProvider
provider={regionConfig?.provider}
className="mt-0.5"
/>
- <span className="ml-1 text-muted-foreground">
+ <span className="text-muted-foreground ml-1">
{regionConfig?.provider}
</span>
</TableCell>
</TableRow>
{data.trigger ? (
<TableRow className="[&>:not(:last-child)]:border-r">
- <TableHead className="bg-muted/50 font-normal text-muted-foreground">
+ <TableHead className="bg-muted/50 text-muted-foreground font-normal">
Trigger
</TableHead>
- <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">
+ <TableCell className="max-w-full overflow-x-auto font-mono whitespace-normal">
{data?.trigger}
</TableCell>
</TableRow>
@@ -612,10 +613,10 @@ export function DataTableBasicsDNS({
key={key}
className="[&>:not(:last-child)]:border-r"
>
- <TableHead className="overflow-x-auto bg-muted/50 font-normal text-muted-foreground">
+ <TableHead className="bg-muted/50 text-muted-foreground overflow-x-auto font-normal">
{key.toUpperCase()}
</TableHead>
- <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">
+ <TableCell className="max-w-full overflow-x-auto font-mono whitespace-normal">
{Array.isArray(value)
? value.join(", ")
: value}
@@ -627,7 +628,7 @@ export function DataTableBasicsDNS({
</Table>
</TabsContent>
<TabsContent value="raw">
- <pre className="max-w-full overflow-x-auto whitespace-pre-wrap rounded-none bg-muted/50 p-4 font-mono text-sm">
+ <pre className="bg-muted/50 max-w-full overflow-x-auto rounded-none p-4 font-mono text-sm whitespace-pre-wrap">
{JSON.stringify(data?.records, null, 2)}
</pre>
</TabsContent>
@@ -643,7 +644,7 @@ export function DataTableBasicsDNS({
</TableRow>
<TableRow>
<TableCell colSpan={2} className="p-0">
- <pre className="max-w-full overflow-x-auto whitespace-pre-wrap rounded-none bg-muted/50 p-2 font-mono text-sm">
+ <pre className="bg-muted/50 max-w-full overflow-x-auto rounded-none p-2 font-mono text-sm whitespace-pre-wrap">
{data.errorMessage}
</pre>
</TableCell>
@@ -658,11 +659,11 @@ export function DataTableBasicsDNS({
<TableRow>
<TableCell colSpan={2} className="p-0">
{!data.assertions || data.assertions === "[]" ? (
- <div className="p-2 font-mono text-muted-foreground text-sm">
+ <div className="text-muted-foreground p-2 font-mono text-sm">
No assertions
</div>
) : (
- <pre className="max-w-full overflow-x-auto whitespace-pre-wrap rounded-none bg-muted/50 p-2 font-mono text-sm">
+ <pre className="bg-muted/50 max-w-full overflow-x-auto rounded-none p-2 font-mono text-sm whitespace-pre-wrap">
{JSON.stringify(data.assertions, null, 2)}
</pre>
)}
diff --git a/apps/dashboard/src/components/data-table/response-logs/data-table-sheet-test.tsx b/apps/dashboard/src/components/data-table/response-logs/data-table-sheet-test.tsx
index 44cf1b194..fc9a22227 100644
--- a/apps/dashboard/src/components/data-table/response-logs/data-table-sheet-test.tsx
+++ b/apps/dashboard/src/components/data-table/response-logs/data-table-sheet-test.tsx
@@ -1,12 +1,14 @@
"use client";
+import type { RouterOutputs } from "@openstatus/api";
+
import {
DataTableSheet,
DataTableSheetContent,
DataTableSheetHeader,
DataTableSheetTitle,
} from "@/components/data-table/data-table-sheet";
-import type { RouterOutputs } from "@openstatus/api";
+
import { DataTableBasics } from "./data-table-basics";
type TestTCP = RouterOutputs["checker"]["testTcp"];
diff --git a/apps/dashboard/src/components/data-table/response-logs/data-table-sheet.tsx b/apps/dashboard/src/components/data-table/response-logs/data-table-sheet.tsx
index d41d625ec..76f6f24d5 100644
--- a/apps/dashboard/src/components/data-table/response-logs/data-table-sheet.tsx
+++ b/apps/dashboard/src/components/data-table/response-logs/data-table-sheet.tsx
@@ -1,5 +1,12 @@
"use client";
+import type { RouterOutputs } from "@openstatus/api";
+import type { PrivateLocation } from "@openstatus/db/src/schema";
+import { Button } from "@openstatus/ui/components/ui/button";
+import { Separator } from "@openstatus/ui/components/ui/separator";
+import { useCopyToClipboard } from "@openstatus/ui/hooks/use-copy-to-clipboard";
+import { Check, Copy } from "lucide-react";
+
import {
DataTableSheet,
DataTableSheetContent,
@@ -7,12 +14,7 @@ import {
DataTableSheetHeader,
DataTableSheetTitle,
} from "@/components/data-table/data-table-sheet";
-import type { RouterOutputs } from "@openstatus/api";
-import type { PrivateLocation } from "@openstatus/db/src/schema";
-import { Button } from "@openstatus/ui/components/ui/button";
-import { Separator } from "@openstatus/ui/components/ui/separator";
-import { useCopyToClipboard } from "@openstatus/ui/hooks/use-copy-to-clipboard";
-import { Check, Copy } from "lucide-react";
+
import { DataTableBasics } from "./data-table-basics";
type ResponseLog = RouterOutputs["tinybird"]["get"]["data"][number];
diff --git a/apps/dashboard/src/components/data-table/response-logs/data-table-toolbar.tsx b/apps/dashboard/src/components/data-table/response-logs/data-table-toolbar.tsx
index 4aea3508c..c1700b337 100644
--- a/apps/dashboard/src/components/data-table/response-logs/data-table-toolbar.tsx
+++ b/apps/dashboard/src/components/data-table/response-logs/data-table-toolbar.tsx
@@ -1,14 +1,13 @@
"use client";
+import type { RouterOutputs } from "@openstatus/api";
+import { Button } from "@openstatus/ui/components/ui/button";
import type { Table } from "@tanstack/react-table";
import { Activity, MapPin, TriangleAlert, X } from "lucide-react";
-import { Button } from "@openstatus/ui/components/ui/button";
-
import { DataTableFacetedFilter } from "@/components/ui/data-table/data-table-faceted-filter";
import { regions } from "@/data/regions";
import { statusCodes } from "@/data/status-codes";
-import type { RouterOutputs } from "@openstatus/api";
type ResponseLog = RouterOutputs["tinybird"]["list"]["data"][number];
@@ -23,7 +22,7 @@ export function ResponseLogsDataTableToolbar({
return (
<div className="flex items-center justify-between">
- <div className="flex flex-1 flex-warp flex-wrap items-center gap-2">
+ <div className="flex-warp flex flex-1 flex-wrap items-center gap-2">
{table.getColumn("status") && (
<DataTableFacetedFilter
column={table.getColumn("status")}
diff --git a/apps/dashboard/src/components/data-table/response-logs/regions/columns.tsx b/apps/dashboard/src/components/data-table/response-logs/regions/columns.tsx
index 59839a170..e79350c40 100644
--- a/apps/dashboard/src/components/data-table/response-logs/regions/columns.tsx
+++ b/apps/dashboard/src/components/data-table/response-logs/regions/columns.tsx
@@ -1,11 +1,5 @@
"use client";
-import { ChartLineRegion } from "@/components/chart/chart-line-region";
-import { TableCellNumber } from "@/components/data-table/table-cell-number";
-import { QuickActions } from "@/components/dropdowns/quick-actions";
-import { DataTableColumnHeader } from "@/components/ui/data-table/data-table-column-header";
-import type { RegionMetric } from "@/data/region-metrics";
-import { getActions } from "@/data/region-metrics.client";
import type { PrivateLocation } from "@openstatus/db/src/schema";
import { formatRegionCode, getRegionInfo } from "@openstatus/regions";
import {
@@ -18,6 +12,13 @@ import type { ColumnDef } from "@tanstack/react-table";
// import { toast } from "sonner";
import { useRouter } from "next/navigation";
+import { ChartLineRegion } from "@/components/chart/chart-line-region";
+import { TableCellNumber } from "@/components/data-table/table-cell-number";
+import { QuickActions } from "@/components/dropdowns/quick-actions";
+import { DataTableColumnHeader } from "@/components/ui/data-table/data-table-column-header";
+import type { RegionMetric } from "@/data/region-metrics";
+import { getActions } from "@/data/region-metrics.client";
+
function TrendCell({ trend }: { trend: RegionMetric["trend"] }) {
return <ChartLineRegion className="h-[50px]" data={trend} />;
}
diff --git a/apps/dashboard/src/components/data-table/settings/api-key/data-table.tsx b/apps/dashboard/src/components/data-table/settings/api-key/data-table.tsx
index 7575e742c..079ac235e 100644
--- a/apps/dashboard/src/components/data-table/settings/api-key/data-table.tsx
+++ b/apps/dashboard/src/components/data-table/settings/api-key/data-table.tsx
@@ -1,6 +1,3 @@
-import { QuickActions } from "@/components/dropdowns/quick-actions";
-import { formatDate } from "@/lib/formatter";
-import { useTRPC } from "@/lib/trpc/client";
import type { RouterOutputs } from "@openstatus/api";
import { Badge } from "@openstatus/ui/components/ui/badge";
import {
@@ -13,6 +10,10 @@ import {
} from "@openstatus/ui/components/ui/table";
import { useMutation } from "@tanstack/react-query";
+import { QuickActions } from "@/components/dropdowns/quick-actions";
+import { formatDate } from "@/lib/formatter";
+import { useTRPC } from "@/lib/trpc/client";
+
type ApiKey = RouterOutputs["apiKeyRouter"]["getAll"][number];
/**
@@ -70,7 +71,7 @@ export function DataTable({
{apiKeys.map((apiKey) => (
<TableRow key={apiKey.id}>
<TableCell className="font-medium">{apiKey.name}</TableCell>
- <TableCell className="max-w-[200px] truncate text-muted-foreground">
+ <TableCell className="text-muted-foreground max-w-[200px] truncate">
{apiKey.description ?? "-"}
</TableCell>
<TableCell>
diff --git a/apps/dashboard/src/components/data-table/settings/invitations/data-table.tsx b/apps/dashboard/src/components/data-table/settings/invitations/data-table.tsx
index 498027367..9edcdf3ad 100644
--- a/apps/dashboard/src/components/data-table/settings/invitations/data-table.tsx
+++ b/apps/dashboard/src/components/data-table/settings/invitations/data-table.tsx
@@ -1,11 +1,3 @@
-import {
- EmptyStateContainer,
- EmptyStateDescription,
- EmptyStateTitle,
-} from "@/components/content/empty-state";
-import { QuickActions } from "@/components/dropdowns/quick-actions";
-import { formatDate } from "@/lib/formatter";
-import { useTRPC } from "@/lib/trpc/client";
import {
Table,
TableBody,
@@ -16,6 +8,15 @@ import {
} from "@openstatus/ui/components/ui/table";
import { useMutation, useQuery } from "@tanstack/react-query";
+import {
+ EmptyStateContainer,
+ EmptyStateDescription,
+ EmptyStateTitle,
+} from "@/components/content/empty-state";
+import { QuickActions } from "@/components/dropdowns/quick-actions";
+import { formatDate } from "@/lib/formatter";
+import { useTRPC } from "@/lib/trpc/client";
+
export function DataTable() {
const trpc = useTRPC();
const { data: invitations, refetch } = useQuery(
diff --git a/apps/dashboard/src/components/data-table/settings/members/data-table.tsx b/apps/dashboard/src/components/data-table/settings/members/data-table.tsx
index 8bf2c3fde..1950d1b05 100644
--- a/apps/dashboard/src/components/data-table/settings/members/data-table.tsx
+++ b/apps/dashboard/src/components/data-table/settings/members/data-table.tsx
@@ -1,6 +1,3 @@
-import { QuickActions } from "@/components/dropdowns/quick-actions";
-import { formatDate } from "@/lib/formatter";
-import { useTRPC } from "@/lib/trpc/client";
import {
Table,
TableBody,
@@ -11,6 +8,10 @@ import {
} from "@openstatus/ui/components/ui/table";
import { useMutation, useQuery } from "@tanstack/react-query";
+import { QuickActions } from "@/components/dropdowns/quick-actions";
+import { formatDate } from "@/lib/formatter";
+import { useTRPC } from "@/lib/trpc/client";
+
export function DataTable() {
const trpc = useTRPC();
const { data: members, refetch } = useQuery(trpc.member.list.queryOptions());
diff --git a/apps/dashboard/src/components/data-table/status-pages/columns.tsx b/apps/dashboard/src/components/data-table/status-pages/columns.tsx
index e86b64b86..053f7214a 100644
--- a/apps/dashboard/src/components/data-table/status-pages/columns.tsx
+++ b/apps/dashboard/src/components/data-table/status-pages/columns.tsx
@@ -1,9 +1,11 @@
"use client";
-import { Link } from "@/components/common/link";
-import { TableCellLink } from "@/components/data-table/table-cell-link";
import type { RouterOutputs } from "@openstatus/api";
import type { ColumnDef } from "@tanstack/react-table";
+
+import { Link } from "@/components/common/link";
+import { TableCellLink } from "@/components/data-table/table-cell-link";
+
import { DataTableRowActions } from "./data-table-row-actions";
type StatusPage = RouterOutputs["page"]["list"][number];
@@ -37,7 +39,7 @@ export const columns: ColumnDef<StatusPage>[] = [
<img
src={`${value}`}
alt={`Favicon for ${row.getValue("title")}`}
- className="h-4 w-4 rounded border bg-muted"
+ className="bg-muted h-4 w-4 rounded border"
/>
);
},
diff --git a/apps/dashboard/src/components/data-table/status-pages/data-table-row-actions.tsx b/apps/dashboard/src/components/data-table/status-pages/data-table-row-actions.tsx
index 59363bcb5..e2e7a7161 100644
--- a/apps/dashboard/src/components/data-table/status-pages/data-table-row-actions.tsx
+++ b/apps/dashboard/src/components/data-table/status-pages/data-table-row-actions.tsx
@@ -1,14 +1,15 @@
"use client";
-import { QuickActions } from "@/components/dropdowns/quick-actions";
-import { getActions } from "@/data/status-pages.client";
-import { useTRPC } from "@/lib/trpc/client";
import type { RouterOutputs } from "@openstatus/api";
import { useMutation, useQueryClient } from "@tanstack/react-query";
import type { Row } from "@tanstack/react-table";
import { useRouter } from "next/navigation";
import { toast } from "sonner";
+import { QuickActions } from "@/components/dropdowns/quick-actions";
+import { getActions } from "@/data/status-pages.client";
+import { useTRPC } from "@/lib/trpc/client";
+
type StatusPage = RouterOutputs["page"]["list"][number];
interface DataTableRowActionsProps {
diff --git a/apps/dashboard/src/components/data-table/status-report-updates/data-table-row-actions.tsx b/apps/dashboard/src/components/data-table/status-report-updates/data-table-row-actions.tsx
index ed270db24..73fc207e4 100644
--- a/apps/dashboard/src/components/data-table/status-report-updates/data-table-row-actions.tsx
+++ b/apps/dashboard/src/components/data-table/status-report-updates/data-table-row-actions.tsx
@@ -1,14 +1,15 @@
"use client";
-import { QuickActions } from "@/components/dropdowns/quick-actions";
-import { FormSheetStatusReportUpdate } from "@/components/forms/status-report-update/sheet";
-import { getActions } from "@/data/status-report-updates.client";
-import { useTRPC } from "@/lib/trpc/client";
import type { RouterOutputs } from "@openstatus/api";
import { useMutation, useQueryClient } from "@tanstack/react-query";
import { useParams } from "next/navigation";
import { useRef } from "react";
+import { QuickActions } from "@/components/dropdowns/quick-actions";
+import { FormSheetStatusReportUpdate } from "@/components/forms/status-report-update/sheet";
+import { getActions } from "@/data/status-report-updates.client";
+import { useTRPC } from "@/lib/trpc/client";
+
type StatusReportUpdate =
RouterOutputs["statusReport"]["list"][number]["updates"][number];
diff --git a/apps/dashboard/src/components/data-table/status-report-updates/data-table.tsx b/apps/dashboard/src/components/data-table/status-report-updates/data-table.tsx
index 4876b7cae..983139c2a 100644
--- a/apps/dashboard/src/components/data-table/status-report-updates/data-table.tsx
+++ b/apps/dashboard/src/components/data-table/status-report-updates/data-table.tsx
@@ -1,12 +1,5 @@
"use client";
-import { ProcessMessage } from "@/components/content/process-message";
-import { TableCellDate } from "@/components/data-table/table-cell-date";
-import { FormSheetStatusReportUpdate } from "@/components/forms/status-report-update/sheet";
-import { icons } from "@/data/icons";
-import { colors, getNextStatus } from "@/data/status-report-updates.client";
-import { useTRPC } from "@/lib/trpc/client";
-import { cn } from "@/lib/utils";
import type { RouterOutputs } from "@openstatus/api";
import { Button } from "@openstatus/ui/components/ui/button";
import {
@@ -26,6 +19,15 @@ import {
import { useMutation, useQueryClient } from "@tanstack/react-query";
import { Plus } from "lucide-react";
import { useParams } from "next/navigation";
+
+import { ProcessMessage } from "@/components/content/process-message";
+import { TableCellDate } from "@/components/data-table/table-cell-date";
+import { FormSheetStatusReportUpdate } from "@/components/forms/status-report-update/sheet";
+import { icons } from "@/data/icons";
+import { colors, getNextStatus } from "@/data/status-report-updates.client";
+import { useTRPC } from "@/lib/trpc/client";
+import { cn } from "@/lib/utils";
+
import { DataTableRowActions } from "./data-table-row-actions";
type StatusReportUpdates =
@@ -123,11 +125,11 @@ export function DataTable({
</div>
</TableCell>
<TableCell>
- <div className="prose dark:prose-invert prose-sm line-clamp-3 text-wrap text-muted-foreground">
+ <div className="prose dark:prose-invert prose-sm text-muted-foreground line-clamp-3 text-wrap">
<ProcessMessage value={update.message} />
</div>
</TableCell>
- <TableCell className="w-[170px] text-muted-foreground">
+ <TableCell className="text-muted-foreground w-[170px]">
<TableCellDate value={update.date} />
</TableCell>
<TableCell className="w-8">
diff --git a/apps/dashboard/src/components/data-table/status-reports/columns.tsx b/apps/dashboard/src/components/data-table/status-reports/columns.tsx
index b93c6458c..7650f5987 100644
--- a/apps/dashboard/src/components/data-table/status-reports/columns.tsx
+++ b/apps/dashboard/src/components/data-table/status-reports/columns.tsx
@@ -1,17 +1,19 @@
"use client";
-import { TableCellBadge } from "@/components/data-table/table-cell-badge";
-import { TableCellDate } from "@/components/data-table/table-cell-date";
-import { TableCellLink } from "@/components/data-table/table-cell-link";
-import { TableCellNumber } from "@/components/data-table/table-cell-number";
-import { DataTableColumnHeader } from "@/components/ui/data-table/data-table-column-header";
-import { colors } from "@/data/status-report-updates.client";
import type { RouterOutputs } from "@openstatus/api";
import { Button } from "@openstatus/ui/components/ui/button";
import { cn } from "@openstatus/ui/lib/utils";
import type { ColumnDef } from "@tanstack/react-table";
import { ChevronDown, ChevronUp } from "lucide-react";
import Link from "next/link";
+
+import { TableCellBadge } from "@/components/data-table/table-cell-badge";
+import { TableCellDate } from "@/components/data-table/table-cell-date";
+import { TableCellLink } from "@/components/data-table/table-cell-link";
+import { TableCellNumber } from "@/components/data-table/table-cell-number";
+import { DataTableColumnHeader } from "@/components/ui/data-table/data-table-column-header";
+import { colors } from "@/data/status-report-updates.client";
+
import { DataTableRowActions } from "./data-table-row-actions";
type StatusReport = RouterOutputs["statusReport"]["list"][number];
diff --git a/apps/dashboard/src/components/data-table/status-reports/data-table-row-actions.tsx b/apps/dashboard/src/components/data-table/status-reports/data-table-row-actions.tsx
index e57b46764..a554d39cb 100644
--- a/apps/dashboard/src/components/data-table/status-reports/data-table-row-actions.tsx
+++ b/apps/dashboard/src/components/data-table/status-reports/data-table-row-actions.tsx
@@ -1,5 +1,10 @@
"use client";
+import type { RouterOutputs } from "@openstatus/api";
+import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
+import type { Row } from "@tanstack/react-table";
+import { useRef } from "react";
+
import { QuickActions } from "@/components/dropdowns/quick-actions";
import { FormSheetStatusReportUpdate } from "@/components/forms/status-report-update/sheet";
import { FormSheetStatusReport } from "@/components/forms/status-report/sheet";
@@ -7,10 +12,6 @@ import { toCheckboxTreeItems } from "@/components/ui/checkbox-tree";
import { getNextStatus } from "@/data/status-report-updates.client";
import { getActions } from "@/data/status-reports.client";
import { useTRPC } from "@/lib/trpc/client";
-import type { RouterOutputs } from "@openstatus/api";
-import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
-import type { Row } from "@tanstack/react-table";
-import { useRef } from "react";
type StatusReport = RouterOutputs["statusReport"]["list"][number];
diff --git a/apps/dashboard/src/components/data-table/subscribers/columns.tsx b/apps/dashboard/src/components/data-table/subscribers/columns.tsx
index 05396fbfc..f011edf23 100644
--- a/apps/dashboard/src/components/data-table/subscribers/columns.tsx
+++ b/apps/dashboard/src/components/data-table/subscribers/columns.tsx
@@ -1,6 +1,5 @@
"use client";
-import { formatDate } from "@/lib/formatter";
import type { RouterOutputs } from "@openstatus/api";
import { detectWebhookFlavor } from "@openstatus/subscriptions/client";
import { Badge } from "@openstatus/ui/components/ui/badge";
@@ -10,6 +9,9 @@ import {
TooltipTrigger,
} from "@openstatus/ui/components/ui/tooltip";
import type { ColumnDef } from "@tanstack/react-table";
+
+import { formatDate } from "@/lib/formatter";
+
import { DataTableRowActions } from "./data-table-row-actions";
type Subscriber = RouterOutputs["pageSubscriber"]["list"][number];
diff --git a/apps/dashboard/src/components/data-table/subscribers/data-table-row-actions.tsx b/apps/dashboard/src/components/data-table/subscribers/data-table-row-actions.tsx
index 3e7505ff3..25c6a4304 100644
--- a/apps/dashboard/src/components/data-table/subscribers/data-table-row-actions.tsx
+++ b/apps/dashboard/src/components/data-table/subscribers/data-table-row-actions.tsx
@@ -1,9 +1,5 @@
"use client";
-import { QuickActions } from "@/components/dropdowns/quick-actions";
-import { FormSheetSubscriber } from "@/components/forms/subscriber/sheet";
-import { toCheckboxTreeItems } from "@/components/ui/checkbox-tree";
-import { useTRPC } from "@/lib/trpc/client";
import type { RouterOutputs } from "@openstatus/api";
import { useMutation, useQuery } from "@tanstack/react-query";
import type { Row } from "@tanstack/react-table";
@@ -12,6 +8,11 @@ import { Pencil, Send } from "lucide-react";
import { useState } from "react";
import { toast } from "sonner";
+import { QuickActions } from "@/components/dropdowns/quick-actions";
+import { FormSheetSubscriber } from "@/components/forms/subscriber/sheet";
+import { toCheckboxTreeItems } from "@/components/ui/checkbox-tree";
+import { useTRPC } from "@/lib/trpc/client";
+
type Subscriber = RouterOutputs["pageSubscriber"]["list"][number];
interface DataTableRowActionsProps {
diff --git a/apps/dashboard/src/components/data-table/subscribers/data-table-toolbar.tsx b/apps/dashboard/src/components/data-table/subscribers/data-table-toolbar.tsx
index b64c793c1..1ffcddc7a 100644
--- a/apps/dashboard/src/components/data-table/subscribers/data-table-toolbar.tsx
+++ b/apps/dashboard/src/components/data-table/subscribers/data-table-toolbar.tsx
@@ -1,11 +1,12 @@
"use client";
-import { DataTableFacetedFilter } from "@/components/ui/data-table/data-table-faceted-filter";
import type { RouterOutputs } from "@openstatus/api";
import { Button } from "@openstatus/ui/components/ui/button";
import type { Table } from "@tanstack/react-table";
import { CircleCheck, Globe, X } from "lucide-react";
+import { DataTableFacetedFilter } from "@/components/ui/data-table/data-table-faceted-filter";
+
type Subscriber = RouterOutputs["pageSubscriber"]["list"][number];
const STATUS_OPTIONS = [
diff --git a/apps/dashboard/src/components/data-table/table-cell-badge.tsx b/apps/dashboard/src/components/data-table/table-cell-badge.tsx
index 98fc50eb4..738d2dd83 100644
--- a/apps/dashboard/src/components/data-table/table-cell-badge.tsx
+++ b/apps/dashboard/src/components/data-table/table-cell-badge.tsx
@@ -1,4 +1,3 @@
-import { cn } from "@/lib/utils";
import { Badge } from "@openstatus/ui/components/ui/badge";
import {
Tooltip,
@@ -8,6 +7,8 @@ import {
} from "@openstatus/ui/components/ui/tooltip";
import { useEffect, useRef, useState } from "react";
+import { cn } from "@/lib/utils";
+
export function TableCellBadge({
value,
className,
@@ -17,7 +18,6 @@ export function TableCellBadge({
const [isTruncated, setIsTruncated] = useState(false);
const [open, setOpen] = useState(false);
- // biome-ignore lint/correctness/useExhaustiveDependencies: <explanation>
useEffect(() => {
if (ref.current) {
setIsTruncated(ref.current.scrollWidth > ref.current.clientWidth);
diff --git a/apps/dashboard/src/components/data-table/table-cell-date.tsx b/apps/dashboard/src/components/data-table/table-cell-date.tsx
index e105ec8cf..bb84a7853 100644
--- a/apps/dashboard/src/components/data-table/table-cell-date.tsx
+++ b/apps/dashboard/src/components/data-table/table-cell-date.tsx
@@ -1,6 +1,7 @@
+import { format } from "date-fns";
+
import { HoverCardTimestamp } from "@/components/common/hover-card-timestamp";
import { cn } from "@/lib/utils";
-import { format } from "date-fns";
export function TableCellDate({
value,
diff --git a/apps/dashboard/src/components/data-table/table-cell-link.tsx b/apps/dashboard/src/components/data-table/table-cell-link.tsx
index 0f3bbc7de..1f9d13b32 100644
--- a/apps/dashboard/src/components/data-table/table-cell-link.tsx
+++ b/apps/dashboard/src/components/data-table/table-cell-link.tsx
@@ -1,6 +1,7 @@
+import { ArrowUpRight, ChevronRight } from "lucide-react";
+
import { Link } from "@/components/common/link";
import { cn } from "@/lib/utils";
-import { ArrowUpRight, ChevronRight } from "lucide-react";
export function TableCellLink({
value,
@@ -25,7 +26,7 @@ export function TableCellLink({
{...props}
>
<span className="truncate">{value}</span>
- <Icon className="size-4 flex-shrink-0 text-muted-foreground group-hover/link:text-foreground" />
+ <Icon className="text-muted-foreground group-hover/link:text-foreground size-4 flex-shrink-0" />
</Link>
);
}
diff --git a/apps/dashboard/src/components/data-table/table-cell-number.tsx b/apps/dashboard/src/components/data-table/table-cell-number.tsx
index bf1b96138..2dcffc267 100644
--- a/apps/dashboard/src/components/data-table/table-cell-number.tsx
+++ b/apps/dashboard/src/components/data-table/table-cell-number.tsx
@@ -8,13 +8,13 @@ export function TableCellNumber({
}: React.ComponentProps<"div"> & { value: unknown; unit?: string }) {
const _value = Number(value);
if (Number.isNaN(_value)) {
- return <div className="font-mono text-muted-foreground">N/A</div>;
+ return <div className="text-muted-foreground font-mono">N/A</div>;
}
return (
- <div className={cn("font-mono text-foreground", className)} {...props}>
+ <div className={cn("text-foreground font-mono", className)} {...props}>
{_value}
- {unit && <span className="p-0.5 text-muted-foreground">{unit}</span>}
+ {unit && <span className="text-muted-foreground p-0.5">{unit}</span>}
</div>
);
}
diff --git a/apps/dashboard/src/components/date-picker.tsx b/apps/dashboard/src/components/date-picker.tsx
index 8f4f09fc6..6830ba4b5 100644
--- a/apps/dashboard/src/components/date-picker.tsx
+++ b/apps/dashboard/src/components/date-picker.tsx
@@ -1,16 +1,16 @@
"use client";
-import { useState } from "react";
-import type { DateRange } from "react-day-picker";
-
-import { Kbd } from "@/components/common/kbd";
-import { formatDateForInput } from "@/lib/formatter";
import { Button } from "@openstatus/ui/components/ui/button";
import { Calendar } from "@openstatus/ui/components/ui/calendar";
import { Input } from "@openstatus/ui/components/ui/input";
import { Label } from "@openstatus/ui/components/ui/label";
import { Separator } from "@openstatus/ui/components/ui/separator";
import { endOfDay } from "date-fns";
+import { useState } from "react";
+import type { DateRange } from "react-day-picker";
+
+import { Kbd } from "@/components/common/kbd";
+import { formatDateForInput } from "@/lib/formatter";
type DatePickerProps = {
range: DateRange;
@@ -28,7 +28,7 @@ export function DatePicker({ range, onSelect, presets }: DatePickerProps) {
<div className="relative py-4">
<div className="h-full">
<div className="flex flex-col px-1">
- <div className="px-3 py-1 font-medium text-muted-foreground text-xs">
+ <div className="text-muted-foreground px-3 py-1 text-xs font-medium">
Presets
</div>
{presets.map((preset) => {
@@ -77,7 +77,7 @@ export function DatePicker({ range, onSelect, presets }: DatePickerProps) {
</div>
<Separator />
<div className="flex flex-col gap-2 px-3 py-4">
- <p className="px-1 font-medium text-muted-foreground text-xs">
+ <p className="text-muted-foreground px-1 text-xs font-medium">
Custom Range
</p>
<div className="grid gap-2 sm:grid-cols-2">
diff --git a/apps/dashboard/src/components/development-indicator.tsx b/apps/dashboard/src/components/development-indicator.tsx
index 9448eacb1..d76af66e3 100644
--- a/apps/dashboard/src/components/development-indicator.tsx
+++ b/apps/dashboard/src/components/development-indicator.tsx
@@ -17,20 +17,20 @@ export function DevelopmentIndicator() {
return (
<Portal.Root>
- <div className="pointer-events-none fixed inset-0 z-[9999] border-2 border-destructive" />
+ <div className="border-destructive pointer-events-none fixed inset-0 z-[9999] border-2" />
<div className="fixed inset-x-0 bottom-0 z-[9999] select-none">
<div className="flex items-center justify-center">
<TooltipProvider delayDuration={0}>
<Tooltip>
<TooltipTrigger>
- <div className="w-fit rounded-t bg-destructive px-2 py-1 font-mono text-background text-xs">
+ <div className="bg-destructive text-background w-fit rounded-t px-2 py-1 font-mono text-xs">
In Beta
</div>
</TooltipTrigger>
<TooltipContent side="top">
{!isMobile ? (
<p>
- Press <Kbd className="-me-0 ms-0">F</Kbd> key to provide
+ Press <Kbd className="ms-0 -me-0">F</Kbd> key to provide
feedback.
</p>
) : (
diff --git a/apps/dashboard/src/components/dialogs/export-code.tsx b/apps/dashboard/src/components/dialogs/export-code.tsx
index 8e3559ef1..671a31f91 100644
--- a/apps/dashboard/src/components/dialogs/export-code.tsx
+++ b/apps/dashboard/src/components/dialogs/export-code.tsx
@@ -1,4 +1,3 @@
-import { Link } from "@/components/common/link";
import { Button } from "@openstatus/ui/components/ui/button";
import {
Dialog,
@@ -17,6 +16,8 @@ import { useCopyToClipboard } from "@openstatus/ui/hooks/use-copy-to-clipboard";
import type { DialogProps } from "@radix-ui/react-dialog";
import { Check, Copy } from "lucide-react";
+import { Link } from "@/components/common/link";
+
// TODL: make it dynamic
const YML = `openstatus-marketing:
name: OpenStatus Marketing
@@ -48,7 +49,7 @@ export function ExportCodeDialog(props: DialogProps) {
<TabsTrigger value="terraform">Terraform</TabsTrigger>
</TabsList>
<TabsContent value="yml" className="space-y-2">
- <pre className="relative rounded border bg-muted p-2 text-xs">
+ <pre className="bg-muted relative rounded border p-2 text-xs">
{YML}
<Button
variant="outline"
@@ -69,7 +70,7 @@ export function ExportCodeDialog(props: DialogProps) {
</p>
</TabsContent>
<TabsContent value="terraform" className="space-y-2">
- <pre className="relative rounded border bg-muted p-2 text-xs">
+ <pre className="bg-muted relative rounded border p-2 text-xs">
TODO:
</pre>
{/* TODO: only showcase if there are any assertions */}
diff --git a/apps/dashboard/src/components/dialogs/upgrade.tsx b/apps/dashboard/src/components/dialogs/upgrade.tsx
index 85726ab1a..9d9e497d8 100644
--- a/apps/dashboard/src/components/dialogs/upgrade.tsx
+++ b/apps/dashboard/src/components/dialogs/upgrade.tsx
@@ -1,8 +1,3 @@
-import { Link } from "@/components/common/link";
-import { Note, NoteButton } from "@/components/common/note";
-import { BillingAddons } from "@/components/content/billing-addons";
-import { DataTable } from "@/components/data-table/billing/data-table";
-import { useTRPC } from "@/lib/trpc/client";
import type { WorkspacePlan } from "@openstatus/db/src/schema";
import { allPlans } from "@openstatus/db/src/schema/plan/config";
import type { Addons, Limits } from "@openstatus/db/src/schema/plan/schema";
@@ -19,6 +14,12 @@ import type { DialogProps } from "@radix-ui/react-dialog";
import { useQuery } from "@tanstack/react-query";
import { CalendarClock } from "lucide-react";
+import { Link } from "@/components/common/link";
+import { Note, NoteButton } from "@/components/common/note";
+import { BillingAddons } from "@/components/content/billing-addons";
+import { DataTable } from "@/components/data-table/billing/data-table";
+import { useTRPC } from "@/lib/trpc/client";
+
const PLANS = {
free: ["starter", "team", "scale"],
starter: ["team", "scale"],
diff --git a/apps/dashboard/src/components/domains/domain-configuration.tsx b/apps/dashboard/src/components/domains/domain-configuration.tsx
index 27cd3b4fe..fabd0c2f7 100644
--- a/apps/dashboard/src/components/domains/domain-configuration.tsx
+++ b/apps/dashboard/src/components/domains/domain-configuration.tsx
@@ -1,5 +1,14 @@
"use client";
+import { Badge } from "@openstatus/ui/components/ui/badge";
+import {
+ Tabs,
+ TabsContent,
+ TabsList,
+ TabsTrigger,
+} from "@openstatus/ui/components/ui/tabs";
+import { cn } from "@openstatus/ui/lib/utils";
+
import {
StepCard,
StepCardBadge,
@@ -9,14 +18,7 @@ import {
StepCardTitle,
} from "@/components/forms/step-card";
import { getSubdomain } from "@/lib/domains";
-import { Badge } from "@openstatus/ui/components/ui/badge";
-import {
- Tabs,
- TabsContent,
- TabsList,
- TabsTrigger,
-} from "@openstatus/ui/components/ui/tabs";
-import { cn } from "@openstatus/ui/lib/utils";
+
import { DomainStatusIcon } from "./domain-status-icon";
import { DomainTroubleshooting } from "./domain-troubleshooting";
import { useDomainStatus } from "./use-domain-status";
@@ -31,7 +33,7 @@ export const InlineSnippet = ({
return (
<span
className={cn(
- "inline-block rounded-md bg-muted px-1 py-0.5 font-mono",
+ "bg-muted inline-block rounded-md px-1 py-0.5 font-mono",
className,
)}
>
@@ -65,7 +67,7 @@ export default function DomainConfiguration({ domain }: { domain: string }) {
<div className="space-y-3">
<div className="flex items-center gap-3 border border-transparent px-4">
<DomainStatusIcon status={status} loading={isLoading} />
- <p className="font-semibold text-sm">{status}</p>
+ <p className="text-sm font-semibold">{status}</p>
<Badge variant="secondary">{domain}</Badge>
</div>
@@ -96,49 +98,49 @@ export default function DomainConfiguration({ domain }: { domain: string }) {
<InlineSnippet>{domainJson.apexName}</InlineSnippet>
), set the following A record on your DNS provider:
</p>
- <div className="flex items-center justify-start space-x-10 rounded-md bg-muted p-2">
+ <div className="bg-muted flex items-center justify-start space-x-10 rounded-md p-2">
<div>
- <p className="font-bold text-sm">Type</p>
+ <p className="text-sm font-bold">Type</p>
<p className="mt-2 font-mono text-sm">A</p>
</div>
<div>
- <p className="font-bold text-sm">Name</p>
+ <p className="text-sm font-bold">Name</p>
<p className="mt-2 font-mono text-sm">@</p>
</div>
<div>
- <p className="font-bold text-sm">Value</p>
+ <p className="text-sm font-bold">Value</p>
<p className="mt-2 font-mono text-sm">{A_RECORD_VALUE}</p>
</div>
<div>
- <p className="font-bold text-sm">TTL</p>
+ <p className="text-sm font-bold">TTL</p>
<p className="mt-2 font-mono text-sm">86400</p>
</div>
</div>
</TabsContent>
<TabsContent value="CNAME">
- <div className="flex items-center justify-start space-x-10 rounded-md bg-muted p-2">
+ <div className="bg-muted flex items-center justify-start space-x-10 rounded-md p-2">
<div>
- <p className="font-bold text-sm">Type</p>
+ <p className="text-sm font-bold">Type</p>
<p className="mt-2 font-mono text-sm">CNAME</p>
</div>
<div>
- <p className="font-bold text-sm">Name</p>
+ <p className="text-sm font-bold">Name</p>
<p className="mt-2 font-mono text-sm">
{subdomain ?? "www"}
</p>
</div>
<div>
- <p className="font-bold text-sm">Value</p>
+ <p className="text-sm font-bold">Value</p>
<p className="mt-2 font-mono text-sm">{CNAME_VALUE}</p>
</div>
<div>
- <p className="font-bold text-sm">TTL</p>
+ <p className="text-sm font-bold">TTL</p>
<p className="mt-2 font-mono text-sm">86400</p>
</div>
</div>
</TabsContent>
</Tabs>
- <p className="mt-3 text-muted-foreground text-sm">
+ <p className="text-muted-foreground mt-3 text-sm">
Note: for TTL, if <InlineSnippet>86400</InlineSnippet> is not
available, set the highest value possible. Domain propagation
can take up to an hour.
@@ -163,15 +165,15 @@ export default function DomainConfiguration({ domain }: { domain: string }) {
<InlineSnippet>{domainJson.apexName}</InlineSnippet> to prove
ownership of <InlineSnippet>{domainJson.name}</InlineSnippet>:
</p>
- <div className="my-3 flex items-start justify-start space-x-10 rounded-md bg-muted p-2">
+ <div className="bg-muted my-3 flex items-start justify-start space-x-10 rounded-md p-2">
<div>
- <p className="font-bold text-sm">Type</p>
+ <p className="text-sm font-bold">Type</p>
<p className="mt-2 font-mono text-sm">
{txtVerification.type}
</p>
</div>
<div>
- <p className="font-bold text-sm">Name</p>
+ <p className="text-sm font-bold">Name</p>
<p className="mt-2 font-mono text-sm">
{txtVerification.domain.slice(
0,
@@ -182,8 +184,8 @@ export default function DomainConfiguration({ domain }: { domain: string }) {
</p>
</div>
<div>
- <p className="font-bold text-sm">Value</p>
- <p className="mt-2 break-all font-mono text-sm">
+ <p className="text-sm font-bold">Value</p>
+ <p className="mt-2 font-mono text-sm break-all">
{txtVerification.value}
</p>
</div>
diff --git a/apps/dashboard/src/components/domains/domain-status-icon.tsx b/apps/dashboard/src/components/domains/domain-status-icon.tsx
index 65f8a5ae7..185b92c4a 100644
--- a/apps/dashboard/src/components/domains/domain-status-icon.tsx
+++ b/apps/dashboard/src/components/domains/domain-status-icon.tsx
@@ -1,8 +1,7 @@
"use client";
-import { AlertTriangle, Check, LoaderCircle, X } from "lucide-react";
-
import type { DomainVerificationStatusProps } from "@openstatus/api/src/router/domain";
+import { AlertTriangle, Check, LoaderCircle, X } from "lucide-react";
export function DomainStatusIcon({
status,
@@ -13,20 +12,20 @@ export function DomainStatusIcon({
}) {
return loading ? (
<LoaderCircle
- className="size-6 animate-spin text-muted-foreground"
+ className="text-muted-foreground size-6 animate-spin"
stroke="currentColor"
/>
) : status === "Valid Configuration" ? (
- <div className="flex size-6 items-center justify-center rounded-full bg-success">
- <Check className="size-3 text-background" />
+ <div className="bg-success flex size-6 items-center justify-center rounded-full">
+ <Check className="text-background size-3" />
</div>
) : status === "Pending Verification" ? (
- <div className="flex size-6 items-center justify-center rounded-full bg-warning">
- <AlertTriangle className="size-3 text-background" />
+ <div className="bg-warning flex size-6 items-center justify-center rounded-full">
+ <AlertTriangle className="text-background size-3" />
</div>
) : (
- <div className="flex size-6 items-center justify-center rounded-full bg-destructive">
- <X className="size-3 text-background" />
+ <div className="bg-destructive flex size-6 items-center justify-center rounded-full">
+ <X className="text-background size-3" />
</div>
);
}
diff --git a/apps/dashboard/src/components/domains/domain-troubleshooting.tsx b/apps/dashboard/src/components/domains/domain-troubleshooting.tsx
index 6bb0e15df..6cb2c84fc 100644
--- a/apps/dashboard/src/components/domains/domain-troubleshooting.tsx
+++ b/apps/dashboard/src/components/domains/domain-troubleshooting.tsx
@@ -1,6 +1,5 @@
"use client";
-import { Link } from "@/components/common/link";
import { Button } from "@openstatus/ui/components/ui/button";
import {
Card,
@@ -16,6 +15,9 @@ import {
} from "@openstatus/ui/components/ui/collapsible";
import { ExternalLink } from "lucide-react";
import { useState } from "react";
+
+import { Link } from "@/components/common/link";
+
import { InlineSnippet } from "./domain-configuration";
const tools = [
@@ -51,7 +53,7 @@ export function DomainTroubleshooting({ domain }: { domain: string }) {
<Collapsible open={open} onOpenChange={setOpen}>
<CollapsibleTrigger className="w-full cursor-pointer rounded-xl">
<Card className="gap-0 border-dashed py-0 text-left shadow-none">
- <CardHeader className="select-none px-4 py-3">
+ <CardHeader className="px-4 py-3 select-none">
<CardTitle className="text-sm">Troubleshooting</CardTitle>
<CardDescription>
If the configuration stays pending or invalid for more than a few
@@ -114,7 +116,7 @@ export function DomainTroubleshooting({ domain }: { domain: string }) {
</li>
</ul>
<div className="space-y-2">
- <p className="font-medium text-sm">Run external diagnostics</p>
+ <p className="text-sm font-medium">Run external diagnostics</p>
<div className="flex flex-wrap gap-2">
{tools.map((tool) => (
<Button
diff --git a/apps/dashboard/src/components/domains/use-domain-status.ts b/apps/dashboard/src/components/domains/use-domain-status.ts
index 9fdaf75d9..ef7959e3b 100644
--- a/apps/dashboard/src/components/domains/use-domain-status.ts
+++ b/apps/dashboard/src/components/domains/use-domain-status.ts
@@ -1,9 +1,9 @@
import type { DomainVerificationStatusProps } from "@openstatus/api/src/router/domain";
+import { useQuery } from "@tanstack/react-query";
+import { useCallback } from "react";
import type { StepCardVariant } from "@/components/forms/step-card";
import { useTRPC } from "@/lib/trpc/client";
-import { useQuery } from "@tanstack/react-query";
-import { useCallback } from "react";
export function useDomainStatus(domain?: string) {
const trpc = useTRPC();
diff --git a/apps/dashboard/src/components/dropdowns/quick-actions.tsx b/apps/dashboard/src/components/dropdowns/quick-actions.tsx
index e600275c9..80b8eb220 100644
--- a/apps/dashboard/src/components/dropdowns/quick-actions.tsx
+++ b/apps/dashboard/src/components/dropdowns/quick-actions.tsx
@@ -1,16 +1,5 @@
"use client";
-import type * as React from "react";
-import { useState, useTransition } from "react";
-
-import {
- Check,
- Copy,
- type LucideIcon,
- MoreHorizontal,
- Trash2,
-} from "lucide-react";
-
import {
AlertDialog,
AlertDialogAction,
@@ -36,6 +25,15 @@ import { Input } from "@openstatus/ui/components/ui/input";
import { useCopyToClipboard } from "@openstatus/ui/hooks/use-copy-to-clipboard";
import type { DropdownMenuContentProps } from "@radix-ui/react-dropdown-menu";
import { isTRPCClientError } from "@trpc/client";
+import {
+ Check,
+ Copy,
+ type LucideIcon,
+ MoreHorizontal,
+ Trash2,
+} from "lucide-react";
+import type * as React from "react";
+import { useState, useTransition } from "react";
import { toast } from "sonner";
interface QuickActionsProps extends React.ComponentProps<typeof Button> {
@@ -104,7 +102,7 @@ export function QuickActions({
<Button
variant="ghost"
size="icon"
- className={className ?? "h-7 w-7 data-[state=open]:bg-accent"}
+ className={className ?? "data-[state=open]:bg-accent h-7 w-7"}
{...props}
>
<MoreHorizontal />
@@ -192,7 +190,7 @@ export function QuickActions({
Cancel
</AlertDialogCancel>
<AlertDialogAction
- className="bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40"
+ className="bg-destructive hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 text-white shadow-xs"
disabled={
(deleteAction?.confirmationValue &&
value !== deleteAction?.confirmationValue) ||
diff --git a/apps/dashboard/src/components/forms/components/form-components.tsx b/apps/dashboard/src/components/forms/components/form-components.tsx
index 1ecd9fbe9..ad44d3d5c 100644
--- a/apps/dashboard/src/components/forms/components/form-components.tsx
+++ b/apps/dashboard/src/components/forms/components/form-components.tsx
@@ -1,30 +1,5 @@
"use client";
-import { Link } from "@/components/common/link";
-import {
- EmptyStateContainer,
- EmptyStateTitle,
-} from "@/components/content/empty-state";
-import { UpgradeDialog } from "@/components/dialogs/upgrade";
-import {
- FormCard,
- FormCardContent,
- FormCardDescription,
- FormCardFooter,
- FormCardFooterInfo,
- FormCardHeader,
- FormCardSeparator,
- FormCardTitle,
-} from "@/components/forms/form-card";
-import { STATUS } from "@/components/nav/nav-monitors";
-import {
- Sortable,
- SortableContent,
- SortableItem,
- SortableItemHandle,
- SortableOverlay,
-} from "@/components/ui/sortable";
-import { cn } from "@/lib/utils";
import type { UniqueIdentifier } from "@dnd-kit/core";
import { zodResolver } from "@hookform/resolvers/zod";
import type { RouterOutputs } from "@openstatus/api";
@@ -91,6 +66,32 @@ import { type UseFormReturn, useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+import { Link } from "@/components/common/link";
+import {
+ EmptyStateContainer,
+ EmptyStateTitle,
+} from "@/components/content/empty-state";
+import { UpgradeDialog } from "@/components/dialogs/upgrade";
+import {
+ FormCard,
+ FormCardContent,
+ FormCardDescription,
+ FormCardFooter,
+ FormCardFooterInfo,
+ FormCardHeader,
+ FormCardSeparator,
+ FormCardTitle,
+} from "@/components/forms/form-card";
+import { STATUS } from "@/components/nav/nav-monitors";
+import {
+ Sortable,
+ SortableContent,
+ SortableItem,
+ SortableItemHandle,
+ SortableOverlay,
+} from "@/components/ui/sortable";
+import { cn } from "@/lib/utils";
+
type PageComponent = RouterOutputs["pageComponent"]["list"][number];
type Monitor = RouterOutputs["monitor"]["list"][number];
type Workspace = RouterOutputs["workspace"]["get"];
@@ -438,7 +439,7 @@ export function FormComponents({
<ComponentRow
component={item}
form={form}
- className="border-transparent border-x px-2"
+ className="border-x border-transparent px-2"
onDelete={handleDeleteComponent}
// FIXME: this is used to show an input instead of the name when dragging a component
// fieldNamePrefix={`components.${index}`}
@@ -545,7 +546,7 @@ export function FormComponents({
Add Static Component
</DropdownMenuItem>
<DropdownMenuSub>
- <DropdownMenuSubTrigger className="gap-2 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0">
+ <DropdownMenuSubTrigger className="[&_svg:not([class*='text-'])]:text-muted-foreground gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4">
<Link2 className="text-muted-foreground" />
Add Monitor Component
</DropdownMenuSubTrigger>
@@ -649,7 +650,7 @@ export function FormComponents({
return (
<ComponentRow
key={`${item.id}-component`}
- className="border-transparent border-x px-2"
+ className="border-x border-transparent px-2"
component={item}
form={form}
onDelete={handleDeleteComponent}
@@ -711,8 +712,10 @@ export function FormComponents({
);
}
-interface ComponentRowProps
- extends Omit<React.ComponentPropsWithoutRef<typeof SortableItem>, "value"> {
+interface ComponentRowProps extends Omit<
+ React.ComponentPropsWithoutRef<typeof SortableItem>,
+ "value"
+> {
component: PageComponent;
form: UseFormReturn<FormValues>;
onDelete: (componentId: number) => void;
@@ -755,7 +758,7 @@ function ComponentRow({
<FormControl>
<Input
placeholder="Name"
- className="w-full bg-background"
+ className="bg-background w-full"
{...field}
/>
</FormControl>
@@ -785,7 +788,7 @@ function ComponentRow({
<FormControl>
<Input
placeholder="Description"
- className="w-full bg-background"
+ className="bg-background w-full"
{...field}
/>
</FormControl>
@@ -799,7 +802,7 @@ function ComponentRow({
</span>
)}
</div>
- <div className="flex items-center gap-2 self-center text-muted-foreground text-sm">
+ <div className="text-muted-foreground flex items-center gap-2 self-center text-sm">
{component.monitor && component.type === "monitor" ? (
<Link
href={`/monitors/${component.monitorId}/overview`}
@@ -810,7 +813,7 @@ function ComponentRow({
<span className="truncate">{component.monitor.name}</span>
</Link>
) : (
- <span className="flex items-center gap-2 text-muted-foreground text-sm">
+ <span className="text-muted-foreground flex items-center gap-2 text-sm">
<Link2Off className="size-4 shrink-0" />{" "}
<span className="truncate">Static Component</span>
</span>
@@ -824,14 +827,14 @@ function ComponentRow({
{component.monitor.public ? (
<Tooltip>
<TooltipTrigger>
- <Eye className="size-4 text-muted-foreground" />
+ <Eye className="text-muted-foreground size-4" />
</TooltipTrigger>
<TooltipContent>Public</TooltipContent>
</Tooltip>
) : (
<Tooltip>
<TooltipTrigger>
- <EyeOff className="size-4 text-muted-foreground" />
+ <EyeOff className="text-muted-foreground size-4" />
</TooltipTrigger>
<TooltipContent>Private</TooltipContent>
</Tooltip>
@@ -858,7 +861,7 @@ function ComponentRow({
type="button"
variant="ghost"
size="icon"
- className="text-destructive hover:bg-destructive/10 hover:text-destructive dark:hover:bg-destructive/20 [&_svg]:size-4 [&_svg]:text-destructive"
+ className="text-destructive hover:bg-destructive/10 hover:text-destructive dark:hover:bg-destructive/20 [&_svg]:text-destructive [&_svg]:size-4"
>
<Trash2 />
</Button>
@@ -878,7 +881,7 @@ function ComponentRow({
<AlertDialogFooter>
<AlertDialogCancel>Cancel</AlertDialogCancel>
<AlertDialogAction
- className="bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40"
+ className="bg-destructive hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 text-white shadow-xs"
onClick={() => onDelete(component.id)}
>
Remove
@@ -892,8 +895,10 @@ function ComponentRow({
);
}
-interface ComponentGroupRowProps
- extends Omit<React.ComponentPropsWithoutRef<typeof SortableItem>, "value"> {
+interface ComponentGroupRowProps extends Omit<
+ React.ComponentPropsWithoutRef<typeof SortableItem>,
+ "value"
+> {
group: ComponentGroup;
groupIndex: number;
onDeleteGroup: (groupId: number) => void;
@@ -992,7 +997,7 @@ function ComponentGroupRow({
);
return (
- <SortableItem value={group.id} className="rounded-md border bg-muted">
+ <SortableItem value={group.id} className="bg-muted rounded-md border">
<div className="grid grid-cols-4 gap-2 px-2 pt-2">
<div className="flex flex-row items-center gap-1 self-center">
<SortableItemHandle>
@@ -1012,7 +1017,7 @@ function ComponentGroupRow({
<FormControl>
<Input
placeholder="Group Name"
- className="w-full bg-background"
+ className="bg-background w-full"
{...field}
/>
</FormControl>
@@ -1060,7 +1065,7 @@ function ComponentGroupRow({
Add Static Component
</DropdownMenuItem>
<DropdownMenuSub>
- <DropdownMenuSubTrigger className="gap-2 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0">
+ <DropdownMenuSubTrigger className="[&_svg:not([class*='text-'])]:text-muted-foreground gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4">
<Link2 className="text-muted-foreground" />
Add Monitor Component
</DropdownMenuSubTrigger>
@@ -1156,7 +1161,7 @@ function ComponentGroupRow({
onCheckedChange={field.onChange}
/>
</FormControl>
- <FormLabel className="!mt-0 font-normal text-muted-foreground text-sm">
+ <FormLabel className="text-muted-foreground !mt-0 text-sm font-normal">
Open by default
</FormLabel>
</FormItem>
@@ -1169,7 +1174,7 @@ function ComponentGroupRow({
type="button"
variant="ghost"
size="icon"
- className="text-destructive hover:bg-destructive/10 hover:text-destructive dark:hover:bg-destructive/20 [&_svg]:size-4 [&_svg]:text-destructive"
+ className="text-destructive hover:bg-destructive/10 hover:text-destructive dark:hover:bg-destructive/20 [&_svg]:text-destructive [&_svg]:size-4"
// NOTE: delete directly if no components are in the group
{...(data.length === 0
? { onClick: () => onDeleteGroup(group.id) }
@@ -1205,7 +1210,7 @@ function ComponentGroupRow({
<AlertDialogFooter>
<AlertDialogCancel>Cancel</AlertDialogCancel>
<AlertDialogAction
- className="bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40"
+ className="bg-destructive hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 text-white shadow-xs"
onClick={() => onDeleteGroup(group.id)}
>
Remove
@@ -1286,7 +1291,7 @@ function ComponentAttachments({
const remainingCount = allItems.length - displayLimit;
return (
- <ul className="list-inside list-disc space-y-1 text-foreground text-sm">
+ <ul className="text-foreground list-inside list-disc space-y-1 text-sm">
{displayedItems.map((item) => (
<li key={item.id}>
{item.title}{" "}
diff --git a/apps/dashboard/src/components/forms/components/form-import.tsx b/apps/dashboard/src/components/forms/components/form-import.tsx
index d0bf03951..6dcb5a9f7 100644
--- a/apps/dashboard/src/components/forms/components/form-import.tsx
+++ b/apps/dashboard/src/components/forms/components/form-import.tsx
@@ -1,17 +1,5 @@
"use client";
-import { Link } from "@/components/common/link";
-import { Note } from "@/components/common/note";
-import {
- FormCard,
- FormCardContent,
- FormCardDescription,
- FormCardFooter,
- FormCardHeader,
- FormCardSeparator,
- FormCardTitle,
-} from "@/components/forms/form-card";
-import { useTRPC } from "@/lib/trpc/client";
import { zodResolver } from "@hookform/resolvers/zod";
import {
BetterstackIcon,
@@ -44,6 +32,19 @@ import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+import { Link } from "@/components/common/link";
+import { Note } from "@/components/common/note";
+import {
+ FormCard,
+ FormCardContent,
+ FormCardDescription,
+ FormCardFooter,
+ FormCardHeader,
+ FormCardSeparator,
+ FormCardTitle,
+} from "@/components/forms/form-card";
+import { useTRPC } from "@/lib/trpc/client";
+
const schema = z.object({
provider: z.enum(["statuspage", "betterstack", "instatus"]),
apiKey: z.string().min(1, "API key is required"),
@@ -190,7 +191,7 @@ export function FormImport({
defaultValue={field.value}
className="grid grid-cols-2 gap-4 sm:grid-cols-4"
>
- <FormItem className="relative flex cursor-pointer flex-row items-center gap-3 rounded-md border border-input px-2 py-3 text-center shadow-xs outline-none transition-[color,box-shadow] has-data-[state=checked]:border-primary/50 has-focus-visible:border-ring has-focus-visible:ring-[3px] has-focus-visible:ring-ring/50">
+ <FormItem className="border-input has-data-[state=checked]:border-primary/50 has-focus-visible:border-ring has-focus-visible:ring-ring/50 relative flex cursor-pointer flex-row items-center gap-3 rounded-md border px-2 py-3 text-center shadow-xs transition-[color,box-shadow] outline-none has-focus-visible:ring-[3px]">
<FormControl>
<RadioGroupItem
value="statuspage"
@@ -198,14 +199,14 @@ export function FormImport({
/>
</FormControl>
<StatuspageIcon
- className="size-4 shrink-0 text-foreground"
+ className="text-foreground size-4 shrink-0"
aria-hidden="true"
/>
- <FormLabel className="cursor-pointer font-medium text-foreground text-xs leading-none after:absolute after:inset-0">
+ <FormLabel className="text-foreground cursor-pointer text-xs leading-none font-medium after:absolute after:inset-0">
Atlassian Statuspage
</FormLabel>
</FormItem>
- <FormItem className="relative flex cursor-pointer flex-row items-center gap-3 rounded-md border border-input px-2 py-3 text-center shadow-xs outline-none transition-[color,box-shadow] has-data-[state=checked]:border-primary/50 has-focus-visible:border-ring has-focus-visible:ring-[3px] has-focus-visible:ring-ring/50">
+ <FormItem className="border-input has-data-[state=checked]:border-primary/50 has-focus-visible:border-ring has-focus-visible:ring-ring/50 relative flex cursor-pointer flex-row items-center gap-3 rounded-md border px-2 py-3 text-center shadow-xs transition-[color,box-shadow] outline-none has-focus-visible:ring-[3px]">
<FormControl>
<RadioGroupItem
value="betterstack"
@@ -213,14 +214,14 @@ export function FormImport({
/>
</FormControl>
<BetterstackIcon
- className="size-4 shrink-0 text-foreground"
+ className="text-foreground size-4 shrink-0"
aria-hidden="true"
/>
- <FormLabel className="cursor-pointer font-medium text-foreground text-xs leading-none after:absolute after:inset-0">
+ <FormLabel className="text-foreground cursor-pointer text-xs leading-none font-medium after:absolute after:inset-0">
Better Stack
</FormLabel>
</FormItem>
- <FormItem className="relative flex cursor-pointer flex-row items-center gap-3 rounded-md border border-input px-2 py-3 text-center shadow-xs outline-none transition-[color,box-shadow] has-data-[state=checked]:border-primary/50 has-focus-visible:border-ring has-focus-visible:ring-[3px] has-focus-visible:ring-ring/50">
+ <FormItem className="border-input has-data-[state=checked]:border-primary/50 has-focus-visible:border-ring has-focus-visible:ring-ring/50 relative flex cursor-pointer flex-row items-center gap-3 rounded-md border px-2 py-3 text-center shadow-xs transition-[color,box-shadow] outline-none has-focus-visible:ring-[3px]">
<FormControl>
<RadioGroupItem
value="instatus"
@@ -228,14 +229,14 @@ export function FormImport({
/>
</FormControl>
<InstatusIcon
- className="size-4 shrink-0 text-foreground"
+ className="text-foreground size-4 shrink-0"
aria-hidden="true"
/>
- <FormLabel className="cursor-pointer font-medium text-foreground text-xs leading-none after:absolute after:inset-0">
+ <FormLabel className="text-foreground cursor-pointer text-xs leading-none font-medium after:absolute after:inset-0">
Instatus
</FormLabel>
</FormItem>
- <div className="col-span-1 self-end text-muted-foreground text-xs sm:place-self-end">
+ <div className="text-muted-foreground col-span-1 self-end text-xs sm:place-self-end">
Missing a provider?{" "}
<a href="mailto:[email protected]">Contact us</a>
</div>
diff --git a/apps/dashboard/src/components/forms/components/telegram-connection-flow.tsx b/apps/dashboard/src/components/forms/components/telegram-connection-flow.tsx
index 9b923db3e..93b3a53b8 100644
--- a/apps/dashboard/src/components/forms/components/telegram-connection-flow.tsx
+++ b/apps/dashboard/src/components/forms/components/telegram-connection-flow.tsx
@@ -1,6 +1,5 @@
"use client";
-import { useTelegramConnection } from "@/hooks/use-telegram-connection";
import {
Tabs,
TabsContent,
@@ -8,6 +7,9 @@ import {
TabsTrigger,
} from "@openstatus/ui/components/ui/tabs";
import type { UseFormReturn } from "react-hook-form";
+
+import { useTelegramConnection } from "@/hooks/use-telegram-connection";
+
import type { FormValues } from "../notifications/form-telegram";
import { TelegramManualInput } from "./telegram-manual-input";
import { TelegramQRConnection } from "./telegram-qr-connection";
diff --git a/apps/dashboard/src/components/forms/components/telegram-form-actions.tsx b/apps/dashboard/src/components/forms/components/telegram-form-actions.tsx
index a34b0bab2..6e715ed9c 100644
--- a/apps/dashboard/src/components/forms/components/telegram-form-actions.tsx
+++ b/apps/dashboard/src/components/forms/components/telegram-form-actions.tsx
@@ -1,12 +1,14 @@
"use client";
-import { useTRPC } from "@/lib/trpc/client";
import { Button } from "@openstatus/ui/components/ui/button";
import { useMutation } from "@tanstack/react-query";
import { isTRPCClientError } from "@trpc/client";
import { useTransition } from "react";
import type { UseFormReturn } from "react-hook-form";
import { toast } from "sonner";
+
+import { useTRPC } from "@/lib/trpc/client";
+
import type { FormValues } from "../notifications/form-telegram";
interface TelegramFormActionsProps {
diff --git a/apps/dashboard/src/components/forms/components/telegram-manual-input.tsx b/apps/dashboard/src/components/forms/components/telegram-manual-input.tsx
index 94adbf762..88de01dcc 100644
--- a/apps/dashboard/src/components/forms/components/telegram-manual-input.tsx
+++ b/apps/dashboard/src/components/forms/components/telegram-manual-input.tsx
@@ -1,6 +1,5 @@
"use client";
-import { Link } from "@/components/common/link";
import {
FormControl,
FormDescription,
@@ -11,6 +10,9 @@ import {
} from "@openstatus/ui/components/ui/form";
import { Input } from "@openstatus/ui/components/ui/input";
import type { UseFormReturn } from "react-hook-form";
+
+import { Link } from "@/components/common/link";
+
import type { FormValues } from "../notifications/form-telegram";
interface TelegramManualInputProps {
@@ -36,7 +38,7 @@ export function TelegramManualInput({
</FormControl>
<FormMessage />
{successMsg && (
- <div className="font-medium text-green-600 text-sm">
+ <div className="text-sm font-medium text-green-600">
{successMsg}
</div>
)}
diff --git a/apps/dashboard/src/components/forms/components/telegram-qr-connection.tsx b/apps/dashboard/src/components/forms/components/telegram-qr-connection.tsx
index 989a71a0c..f5bea846b 100644
--- a/apps/dashboard/src/components/forms/components/telegram-qr-connection.tsx
+++ b/apps/dashboard/src/components/forms/components/telegram-qr-connection.tsx
@@ -2,6 +2,7 @@ import { Button } from "@openstatus/ui/components/ui/button";
import { Input } from "@openstatus/ui/components/ui/input";
import { Label } from "@openstatus/ui/components/ui/label";
import type { UseFormReturn } from "react-hook-form";
+
import type { FormValues } from "../notifications/form-telegram";
import { TelegramManualInput } from "./telegram-manual-input";
import TelegramQRCode from "./telegram-qrcode";
@@ -68,7 +69,7 @@ export function TelegramQRConnection({
<Label>Private Chat ID</Label>
<Input value={privateChatId} readOnly className="bg-muted" />
{userName && (
- <div className="font-medium text-green-600 text-sm">
+ <div className="text-sm font-medium text-green-600">
{`Connected to: ${userName}`}
</div>
)}
diff --git a/apps/dashboard/src/components/forms/components/telegram-qrcode.tsx b/apps/dashboard/src/components/forms/components/telegram-qrcode.tsx
index a671cd537..0cf86d872 100644
--- a/apps/dashboard/src/components/forms/components/telegram-qrcode.tsx
+++ b/apps/dashboard/src/components/forms/components/telegram-qrcode.tsx
@@ -30,7 +30,7 @@ export default function TelegramQRCode({
) : token ? (
<QRCode data={qrURL} className="overflow-hidden rounded-md" />
) : null}
- <div className="flex items-center gap-2 text-muted-foreground text-sm">
+ <div className="text-muted-foreground flex items-center gap-2 text-sm">
{isLoading ? (
"Generating QR Code..."
) : isPolling ? (
diff --git a/apps/dashboard/src/components/forms/components/update.tsx b/apps/dashboard/src/components/forms/components/update.tsx
index 9bdc6f5a4..ffd66522d 100644
--- a/apps/dashboard/src/components/forms/components/update.tsx
+++ b/apps/dashboard/src/components/forms/components/update.tsx
@@ -1,11 +1,13 @@
"use client";
-import { FormComponents } from "@/components/forms/components/form-components";
-import { useTRPC } from "@/lib/trpc/client";
import type { PageConfiguration } from "@openstatus/db/src/schema";
import { useMutation, useQuery } from "@tanstack/react-query";
import { useParams } from "next/navigation";
import { useState } from "react";
+
+import { FormComponents } from "@/components/forms/components/form-components";
+import { useTRPC } from "@/lib/trpc/client";
+
import { FormCardGroup } from "../form-card";
import { FormConfiguration } from "../status-page/form-configuration";
import { FormImport, type ImportFormValues } from "./form-import";
diff --git a/apps/dashboard/src/components/forms/form-alert-dialog.tsx b/apps/dashboard/src/components/forms/form-alert-dialog.tsx
index 537aa1232..c1a248530 100644
--- a/apps/dashboard/src/components/forms/form-alert-dialog.tsx
+++ b/apps/dashboard/src/components/forms/form-alert-dialog.tsx
@@ -95,7 +95,7 @@ export function FormAlertDialog({
<AlertDialogFooter>
<AlertDialogCancel>Cancel</AlertDialogCancel>
<AlertDialogAction
- className="bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40"
+ className="bg-destructive hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 text-white shadow-xs"
disabled={value !== confirmationValue || isPending}
form="form-alert-dialog"
type="submit"
diff --git a/apps/dashboard/src/components/forms/form-card.tsx b/apps/dashboard/src/components/forms/form-card.tsx
index 05f0508bb..b20c9b525 100644
--- a/apps/dashboard/src/components/forms/form-card.tsx
+++ b/apps/dashboard/src/components/forms/form-card.tsx
@@ -8,12 +8,11 @@ import {
} from "@openstatus/ui/components/ui/card";
import { Separator } from "@openstatus/ui/components/ui/separator";
import { cn } from "@openstatus/ui/lib/utils";
-
import { type VariantProps, cva } from "class-variance-authority";
// py-0
const formCardVariants = cva(
- "group relative w-full overflow-hidden py-0 shadow-none gap-4",
+ "group relative w-full gap-4 overflow-hidden py-0 shadow-none",
{
variants: {
variant: {
@@ -99,7 +98,7 @@ export function FormCardSeparator({
}
const formCardFooterVariants = cva(
- "border-t flex items-center gap-2 pb-4 px-4 [&>:last-child]:ml-auto [.border-t]:pt-4",
+ "flex items-center gap-2 border-t px-4 pb-4 [.border-t]:pt-4 [&>:last-child]:ml-auto",
{
variants: {
variant: {
@@ -205,7 +204,7 @@ export function FormCardEmpty({
<div
data-slot="card-empty"
className={cn(
- "pointer-events-none absolute inset-0 z-10 bg-background opacity-70 blur",
+ "bg-background pointer-events-none absolute inset-0 z-10 opacity-70 blur",
className,
)}
{...props}
diff --git a/apps/dashboard/src/components/forms/form-sheet.tsx b/apps/dashboard/src/components/forms/form-sheet.tsx
index 6ba661bdb..720d058f3 100644
--- a/apps/dashboard/src/components/forms/form-sheet.tsx
+++ b/apps/dashboard/src/components/forms/form-sheet.tsx
@@ -47,7 +47,7 @@ export function FormSheetHeader({
}: React.ComponentProps<typeof SheetHeader>) {
return (
<SheetHeader
- className={cn("sticky top-0 border-b bg-background", className)}
+ className={cn("bg-background sticky top-0 border-b", className)}
{...props}
>
{children}
@@ -62,7 +62,7 @@ export function FormSheetFooter({
}: React.ComponentProps<typeof SheetFooter>) {
return (
<SheetFooter
- className={cn("sticky bottom-0 border-t bg-background", className)}
+ className={cn("bg-background sticky bottom-0 border-t", className)}
{...props}
>
{children}
diff --git a/apps/dashboard/src/components/forms/maintenance/form.tsx b/apps/dashboard/src/components/forms/maintenance/form.tsx
index aad3c6bc3..c9e59df2f 100644
--- a/apps/dashboard/src/components/forms/maintenance/form.tsx
+++ b/apps/dashboard/src/components/forms/maintenance/form.tsx
@@ -1,20 +1,5 @@
"use client";
-import {
- EmptyStateContainer,
- EmptyStateTitle,
-} from "@/components/content/empty-state";
-import { ProcessMessage } from "@/components/content/process-message";
-import {
- FormCardContent,
- FormCardSeparator,
-} from "@/components/forms/form-card";
-import { useFormSheetDirty } from "@/components/forms/form-sheet";
-import {
- CheckboxTree,
- type CheckboxTreeItem,
-} from "@/components/ui/checkbox-tree";
-import { useTRPC } from "@/lib/trpc/client";
import { zodResolver } from "@hookform/resolvers/zod";
import { Button } from "@openstatus/ui/components/ui/button";
import { Calendar } from "@openstatus/ui/components/ui/calendar";
@@ -50,6 +35,22 @@ import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+import {
+ EmptyStateContainer,
+ EmptyStateTitle,
+} from "@/components/content/empty-state";
+import { ProcessMessage } from "@/components/content/process-message";
+import {
+ FormCardContent,
+ FormCardSeparator,
+} from "@/components/forms/form-card";
+import { useFormSheetDirty } from "@/components/forms/form-sheet";
+import {
+ CheckboxTree,
+ type CheckboxTreeItem,
+} from "@/components/ui/checkbox-tree";
+import { useTRPC } from "@/lib/trpc/client";
+
const schema = z
.object({
title: z.string().min(1, "Title is required"),
@@ -245,7 +246,7 @@ export function FormMaintenance({
}
}}
/>
- <div className="pointer-events-none absolute inset-y-0 start-0 flex items-center justify-center ps-3 text-muted-foreground/80 peer-disabled:opacity-50">
+ <div className="text-muted-foreground/80 pointer-events-none absolute inset-y-0 start-0 flex items-center justify-center ps-3 peer-disabled:opacity-50">
<ClockIcon size={16} aria-hidden="true" />
</div>
</div>
@@ -359,7 +360,7 @@ export function FormMaintenance({
}
}}
/>
- <div className="pointer-events-none absolute inset-y-0 start-0 flex items-center justify-center ps-3 text-muted-foreground/80 peer-disabled:opacity-50">
+ <div className="text-muted-foreground/80 pointer-events-none absolute inset-y-0 start-0 flex items-center justify-center ps-3 peer-disabled:opacity-50">
<ClockIcon size={16} aria-hidden="true" />
</div>
</div>
@@ -409,7 +410,7 @@ export function FormMaintenance({
<TabsContent value="tab-2">
<div className="grid gap-2">
<Label>Preview</Label>
- <div className="prose dark:prose-invert prose-sm rounded-md border px-3 py-2 text-foreground text-sm">
+ <div className="prose dark:prose-invert prose-sm text-foreground rounded-md border px-3 py-2 text-sm">
<ProcessMessage value={watchMessage} />
</div>
</div>
diff --git a/apps/dashboard/src/components/forms/maintenance/sheet.tsx b/apps/dashboard/src/components/forms/maintenance/sheet.tsx
index bfe2e0c2a..f178a0a09 100644
--- a/apps/dashboard/src/components/forms/maintenance/sheet.tsx
+++ b/apps/dashboard/src/components/forms/maintenance/sheet.tsx
@@ -1,5 +1,8 @@
"use client";
+import { Button } from "@openstatus/ui/components/ui/button";
+import { useState } from "react";
+
import { FormCard, FormCardGroup } from "@/components/forms/form-card";
import {
FormSheetContent,
@@ -16,8 +19,6 @@ import {
type FormValues,
} from "@/components/forms/maintenance/form";
import type { CheckboxTreeItem } from "@/components/ui/checkbox-tree";
-import { Button } from "@openstatus/ui/components/ui/button";
-import { useState } from "react";
export function FormSheetMaintenance({
children,
diff --git a/apps/dashboard/src/components/forms/monitor-tag/form-monitor-tag.tsx b/apps/dashboard/src/components/forms/monitor-tag/form-monitor-tag.tsx
index 67334e124..741c72d64 100644
--- a/apps/dashboard/src/components/forms/monitor-tag/form-monitor-tag.tsx
+++ b/apps/dashboard/src/components/forms/monitor-tag/form-monitor-tag.tsx
@@ -1,7 +1,5 @@
"use client";
-import { useFormSheetDirty } from "@/components/forms/form-sheet";
-import { useTRPC } from "@/lib/trpc/client";
import { zodResolver } from "@hookform/resolvers/zod";
import { Button } from "@openstatus/ui/components/ui/button";
import {
@@ -21,6 +19,9 @@ import { useFieldArray, useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+import { useFormSheetDirty } from "@/components/forms/form-sheet";
+import { useTRPC } from "@/lib/trpc/client";
+
const tagSchema = z.object({
id: z.number().optional(),
name: z.string().min(1, "Name is required"),
diff --git a/apps/dashboard/src/components/forms/monitor-tag/sheet.tsx b/apps/dashboard/src/components/forms/monitor-tag/sheet.tsx
index 85fea7e24..3442c4992 100644
--- a/apps/dashboard/src/components/forms/monitor-tag/sheet.tsx
+++ b/apps/dashboard/src/components/forms/monitor-tag/sheet.tsx
@@ -1,5 +1,8 @@
"use client";
+import { Button } from "@openstatus/ui/components/ui/button";
+import { useState } from "react";
+
import {
FormCard,
FormCardContent,
@@ -18,8 +21,6 @@ import {
FormMonitorTag,
type FormValues,
} from "@/components/forms/monitor-tag/form-monitor-tag";
-import { Button } from "@openstatus/ui/components/ui/button";
-import { useState } from "react";
export function FormSheetMonitorTag({
children,
diff --git a/apps/dashboard/src/components/forms/monitor/form-follow-redirect.tsx b/apps/dashboard/src/components/forms/monitor/form-follow-redirect.tsx
index 3fa4d827e..8c783e303 100644
--- a/apps/dashboard/src/components/forms/monitor/form-follow-redirect.tsx
+++ b/apps/dashboard/src/components/forms/monitor/form-follow-redirect.tsx
@@ -1,15 +1,5 @@
"use client";
-import { Link } from "@/components/common/link";
-import {
- FormCard,
- FormCardContent,
- FormCardDescription,
- FormCardFooter,
- FormCardFooterInfo,
- FormCardHeader,
- FormCardTitle,
-} from "@/components/forms/form-card";
import { zodResolver } from "@hookform/resolvers/zod";
import { Button } from "@openstatus/ui/components/ui/button";
import {
@@ -26,6 +16,17 @@ import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+import { Link } from "@/components/common/link";
+import {
+ FormCard,
+ FormCardContent,
+ FormCardDescription,
+ FormCardFooter,
+ FormCardFooterInfo,
+ FormCardHeader,
+ FormCardTitle,
+} from "@/components/forms/form-card";
+
export const FOLLOW_REDIRECTS_DEFAULT = true;
const schema = z.object({
diff --git a/apps/dashboard/src/components/forms/monitor/form-general.tsx b/apps/dashboard/src/components/forms/monitor/form-general.tsx
index a2ff12e23..aeb4ae5e9 100644
--- a/apps/dashboard/src/components/forms/monitor/form-general.tsx
+++ b/apps/dashboard/src/components/forms/monitor/form-general.tsx
@@ -1,16 +1,5 @@
"use client";
-import { Link } from "@/components/common/link";
-import {
- FormCard,
- FormCardContent,
- FormCardDescription,
- FormCardFooter,
- FormCardFooterInfo,
- FormCardHeader,
- FormCardSeparator,
- FormCardTitle,
-} from "@/components/forms/form-card";
import { zodResolver } from "@hookform/resolvers/zod";
import {
dnsRecords,
@@ -71,6 +60,18 @@ import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+import { Link } from "@/components/common/link";
+import {
+ FormCard,
+ FormCardContent,
+ FormCardDescription,
+ FormCardFooter,
+ FormCardFooterInfo,
+ FormCardHeader,
+ FormCardSeparator,
+ FormCardTitle,
+} from "@/components/forms/form-card";
+
const TYPES = ["http", "tcp", "dns"] as const;
const HTTP_ASSERTION_TYPES = ["status", "header", "textBody"] as const;
const DNS_ASSERTION_TYPES = dnsRecords;
@@ -284,7 +285,7 @@ export function FormGeneral({
<TooltipTrigger asChild>
<FormItem
className={cn(
- "relative flex cursor-pointer flex-row items-center gap-3 rounded-md border border-input px-2 py-3 text-center shadow-xs outline-none transition-[color,box-shadow] has-aria-[invalid=true]:border-destructive has-data-[state=checked]:border-primary/50 has-focus-visible:border-ring has-focus-visible:ring-[3px] has-focus-visible:ring-ring/50",
+ "border-input has-aria-[invalid=true]:border-destructive has-data-[state=checked]:border-primary/50 has-focus-visible:border-ring has-focus-visible:ring-ring/50 relative flex cursor-pointer flex-row items-center gap-3 rounded-md border px-2 py-3 text-center shadow-xs transition-[color,box-shadow] outline-none has-focus-visible:ring-[3px]",
defaultValues &&
defaultValues.type !== type.value &&
"pointer-events-none opacity-50",
@@ -298,11 +299,11 @@ export function FormGeneral({
/>
</FormControl>
<type.icon
- className="shrink-0 text-muted-foreground"
+ className="text-muted-foreground shrink-0"
size={16}
aria-hidden="true"
/>
- <FormLabel className="cursor-pointer font-medium text-foreground text-xs leading-none after:absolute after:inset-0">
+ <FormLabel className="text-foreground cursor-pointer text-xs leading-none font-medium after:absolute after:inset-0">
{type.label}
</FormLabel>
</FormItem>
@@ -315,7 +316,7 @@ export function FormGeneral({
})}
<div
className={cn(
- "col-span-1 self-end text-muted-foreground text-xs sm:place-self-end",
+ "text-muted-foreground col-span-1 self-end text-xs sm:place-self-end",
)}
>
Missing a type?{" "}
@@ -697,24 +698,24 @@ export function FormGeneral({
</FormItem>
)}
/>
- <div className="col-span-full text-muted-foreground text-sm">
+ <div className="text-muted-foreground col-span-full text-sm">
Examples:
<ul className="list-inside list-disc">
<li>
Domain:{" "}
- <span className="font-mono text-foreground">
+ <span className="text-foreground font-mono">
openstatus.dev:443
</span>
</li>
<li>
IPv4:{" "}
- <span className="font-mono text-foreground">
+ <span className="text-foreground font-mono">
192.168.1.1:443
</span>
</li>
<li>
IPv6:{" "}
- <span className="font-mono text-foreground">
+ <span className="text-foreground font-mono">
[2001:db8:85a3:8d3:1319:8a2e:370:7348]:443
</span>
</li>
@@ -957,8 +958,8 @@ export function FormGeneral({
failed. Do you want to save the monitor anyway?
</AlertDialogDescription>
</AlertDialogHeader>
- <div className="max-h-48 overflow-auto whitespace-pre rounded-md border border-destructive/20 bg-destructive/10 p-2">
- <p className="font-mono text-destructive text-sm">{error}</p>
+ <div className="border-destructive/20 bg-destructive/10 max-h-48 overflow-auto rounded-md border p-2 whitespace-pre">
+ <p className="text-destructive font-mono text-sm">{error}</p>
</div>
<AlertDialogFooter>
<AlertDialogCancel type="button">Cancel</AlertDialogCancel>
diff --git a/apps/dashboard/src/components/forms/monitor/form-notifiers.tsx b/apps/dashboard/src/components/forms/monitor/form-notifiers.tsx
index b68b9457f..12718319b 100644
--- a/apps/dashboard/src/components/forms/monitor/form-notifiers.tsx
+++ b/apps/dashboard/src/components/forms/monitor/form-notifiers.tsx
@@ -1,18 +1,5 @@
"use client";
-import {
- EmptyStateContainer,
- EmptyStateTitle,
-} from "@/components/content/empty-state";
-import {
- FormCard,
- FormCardContent,
- FormCardDescription,
- FormCardFooter,
- FormCardHeader,
- FormCardTitle,
-} from "@/components/forms/form-card";
-import { config } from "@/data/notifications.client";
import { zodResolver } from "@hookform/resolvers/zod";
import type { NotificationProvider } from "@openstatus/db/src/schema";
import { Badge } from "@openstatus/ui/components/ui/badge";
@@ -33,6 +20,20 @@ import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+import {
+ EmptyStateContainer,
+ EmptyStateTitle,
+} from "@/components/content/empty-state";
+import {
+ FormCard,
+ FormCardContent,
+ FormCardDescription,
+ FormCardFooter,
+ FormCardHeader,
+ FormCardTitle,
+} from "@/components/forms/form-card";
+import { config } from "@/data/notifications.client";
+
const schema = z.object({
notifiers: z.array(z.number()),
});
@@ -160,7 +161,7 @@ export function FormNotifiers({
}}
/>
</FormControl>
- <FormLabel className="font-normal text-sm">
+ <FormLabel className="text-sm font-normal">
{item.name}{" "}
<Badge
variant="secondary"
diff --git a/apps/dashboard/src/components/forms/monitor/form-otel.tsx b/apps/dashboard/src/components/forms/monitor/form-otel.tsx
index df4108682..b5a431eff 100644
--- a/apps/dashboard/src/components/forms/monitor/form-otel.tsx
+++ b/apps/dashboard/src/components/forms/monitor/form-otel.tsx
@@ -1,16 +1,5 @@
"use client";
-import { Link } from "@/components/common/link";
-import {
- FormCard,
- FormCardContent,
- FormCardDescription,
- FormCardFooter,
- FormCardFooterInfo,
- FormCardHeader,
- FormCardTitle,
- FormCardUpgrade,
-} from "@/components/forms/form-card";
import { zodResolver } from "@hookform/resolvers/zod";
import { Button } from "@openstatus/ui/components/ui/button";
import {
@@ -29,6 +18,18 @@ import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+import { Link } from "@/components/common/link";
+import {
+ FormCard,
+ FormCardContent,
+ FormCardDescription,
+ FormCardFooter,
+ FormCardFooterInfo,
+ FormCardHeader,
+ FormCardTitle,
+ FormCardUpgrade,
+} from "@/components/forms/form-card";
+
// TODO: add headers
const schema = z.object({
diff --git a/apps/dashboard/src/components/forms/monitor/form-response-time.tsx b/apps/dashboard/src/components/forms/monitor/form-response-time.tsx
index 77a8ac25a..94e438b59 100644
--- a/apps/dashboard/src/components/forms/monitor/form-response-time.tsx
+++ b/apps/dashboard/src/components/forms/monitor/form-response-time.tsx
@@ -1,5 +1,7 @@
"use client";
+import { zodResolver } from "@hookform/resolvers/zod";
+import { Button } from "@openstatus/ui/components/ui/button";
import {
FormControl,
FormDescription,
@@ -8,6 +10,12 @@ import {
FormLabel,
FormMessage,
} from "@openstatus/ui/components/ui/form";
+import { Form } from "@openstatus/ui/components/ui/form";
+import { Input } from "@openstatus/ui/components/ui/input";
+import { useTransition } from "react";
+import { useForm } from "react-hook-form";
+import { toast } from "sonner";
+import { z } from "zod";
import {
FormCard,
@@ -17,14 +25,6 @@ import {
FormCardHeader,
FormCardTitle,
} from "@/components/forms/form-card";
-import { zodResolver } from "@hookform/resolvers/zod";
-import { Button } from "@openstatus/ui/components/ui/button";
-import { Form } from "@openstatus/ui/components/ui/form";
-import { Input } from "@openstatus/ui/components/ui/input";
-import { useTransition } from "react";
-import { useForm } from "react-hook-form";
-import { toast } from "sonner";
-import { z } from "zod";
const DEGRADED = 30_000;
const TIMEOUT = 45_000;
diff --git a/apps/dashboard/src/components/forms/monitor/form-retry.tsx b/apps/dashboard/src/components/forms/monitor/form-retry.tsx
index b336b71e8..e0543f950 100644
--- a/apps/dashboard/src/components/forms/monitor/form-retry.tsx
+++ b/apps/dashboard/src/components/forms/monitor/form-retry.tsx
@@ -1,15 +1,5 @@
"use client";
-import { Link } from "@/components/common/link";
-import {
- FormCard,
- FormCardContent,
- FormCardDescription,
- FormCardFooter,
- FormCardFooterInfo,
- FormCardHeader,
- FormCardTitle,
-} from "@/components/forms/form-card";
import { zodResolver } from "@hookform/resolvers/zod";
import { Button } from "@openstatus/ui/components/ui/button";
import {
@@ -27,6 +17,17 @@ import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+import { Link } from "@/components/common/link";
+import {
+ FormCard,
+ FormCardContent,
+ FormCardDescription,
+ FormCardFooter,
+ FormCardFooterInfo,
+ FormCardHeader,
+ FormCardTitle,
+} from "@/components/forms/form-card";
+
const RETRY_MIN = 1;
const RETRY_MAX = 10;
export const RETRY_DEFAULT = 3;
diff --git a/apps/dashboard/src/components/forms/monitor/form-scheduling-regions.tsx b/apps/dashboard/src/components/forms/monitor/form-scheduling-regions.tsx
index 22446c7a6..bf2322db0 100644
--- a/apps/dashboard/src/components/forms/monitor/form-scheduling-regions.tsx
+++ b/apps/dashboard/src/components/forms/monitor/form-scheduling-regions.tsx
@@ -1,21 +1,15 @@
"use client";
-import { Link } from "@/components/common/link";
-import {
- FormCard,
- FormCardContent,
- FormCardDescription,
- FormCardFooter,
- FormCardFooterInfo,
- FormCardHeader,
- FormCardSeparator,
- FormCardTitle,
-} from "@/components/forms/form-card";
import { zodResolver } from "@hookform/resolvers/zod";
import {
type Region,
monitorPeriodicity,
} from "@openstatus/db/src/schema/constants";
+import {
+ formatRegionCode,
+ groupByContinent,
+ regionDict,
+} from "@openstatus/regions";
import { Button } from "@openstatus/ui/components/ui/button";
import { Checkbox } from "@openstatus/ui/components/ui/checkbox";
import {
@@ -28,23 +22,29 @@ import {
} from "@openstatus/ui/components/ui/form";
import { Slider } from "@openstatus/ui/components/ui/slider";
import { cn } from "@openstatus/ui/lib/utils";
+import { useQuery } from "@tanstack/react-query";
+import { isTRPCClientError } from "@trpc/client";
+import { CircleX, Globe, Info } from "lucide-react";
import { useState, useTransition } from "react";
import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
import { IconCloudProviderTooltip } from "@/components/common/icon-cloud-provider";
+import { Link } from "@/components/common/link";
import { Note, NoteButton } from "@/components/common/note";
import { UpgradeDialog } from "@/components/dialogs/upgrade";
-import { useTRPC } from "@/lib/trpc/client";
import {
- formatRegionCode,
- groupByContinent,
- regionDict,
-} from "@openstatus/regions";
-import { useQuery } from "@tanstack/react-query";
-import { isTRPCClientError } from "@trpc/client";
-import { CircleX, Globe, Info } from "lucide-react";
+ FormCard,
+ FormCardContent,
+ FormCardDescription,
+ FormCardFooter,
+ FormCardFooterInfo,
+ FormCardHeader,
+ FormCardSeparator,
+ FormCardTitle,
+} from "@/components/forms/form-card";
+import { useTRPC } from "@/lib/trpc/client";
const DEFAULT_PERIODICITY = "10m";
const DEFAULT_REGIONS = ["ams", "fra", "iad", "syd", "jnb", "gru"];
@@ -151,7 +151,7 @@ export function FormSchedulingRegions({
)}
/>
<span
- className="mt-3 flex w-full items-center justify-between gap-1 px-2.5 font-medium text-muted-foreground text-xs"
+ className="text-muted-foreground mt-3 flex w-full items-center justify-between gap-1 px-2.5 text-xs font-medium"
aria-hidden="true"
>
{PERIODICITY.map((period) => (
@@ -160,7 +160,7 @@ export function FormSchedulingRegions({
className="flex w-0 flex-col items-center justify-center gap-2"
>
<span
- className={cn("h-1 w-px bg-muted-foreground/70")}
+ className={cn("bg-muted-foreground/70 h-1 w-px")}
/>
{period}
</span>
@@ -220,7 +220,7 @@ export function FormSchedulingRegions({
<div className="flex items-center justify-between">
<FormLabel>
{continent}{" "}
- <span className="align-baseline font-mono font-normal text-muted-foreground/70 text-xs tabular-nums">
+ <span className="text-muted-foreground/70 align-baseline font-mono text-xs font-normal tabular-nums">
({selected}/{r.length})
</span>
</FormLabel>
@@ -307,13 +307,13 @@ export function FormSchedulingRegions({
/>
<FormLabel
htmlFor={region.code}
- className="w-full truncate font-mono font-normal text-sm"
+ className="w-full truncate font-mono text-sm font-normal"
>
<span className="text-nowrap">
{formatRegionCode(region.code)}{" "}
{region.flag}
</span>
- <span className="truncate font-normal text-muted-foreground text-xs leading-[inherit]">
+ <span className="text-muted-foreground truncate text-xs leading-[inherit] font-normal">
{region.location}
</span>
<IconCloudProviderTooltip
@@ -357,7 +357,7 @@ export function FormSchedulingRegions({
<div className="flex items-center justify-between">
<FormLabel>
Private Locations{" "}
- <span className="align-baseline font-mono font-normal text-muted-foreground/70 text-xs tabular-nums">
+ <span className="text-muted-foreground/70 align-baseline font-mono text-xs font-normal tabular-nums">
({watchPrivateLocations.length}/
{privateLocations.length})
</span>
@@ -419,7 +419,7 @@ export function FormSchedulingRegions({
}}
/>
</FormControl>
- <FormLabel className="w-full truncate font-mono font-normal text-sm">
+ <FormLabel className="w-full truncate font-mono text-sm font-normal">
{item.name}
<Globe className="size-3" />
</FormLabel>
@@ -438,9 +438,9 @@ export function FormSchedulingRegions({
<FormCardFooter>
<FormCardFooterInfo>
Your plan allows you to run{" "}
- <span className="font-medium text-foreground">{maxRegions}</span>{" "}
+ <span className="text-foreground font-medium">{maxRegions}</span>{" "}
out of{" "}
- <span className="font-medium text-foreground">
+ <span className="text-foreground font-medium">
{allowedRegions.length}
</span>{" "}
regions. Learn more about{" "}
diff --git a/apps/dashboard/src/components/forms/monitor/form-status-pages.tsx b/apps/dashboard/src/components/forms/monitor/form-status-pages.tsx
index 2b2ca403c..652a21ad7 100644
--- a/apps/dashboard/src/components/forms/monitor/form-status-pages.tsx
+++ b/apps/dashboard/src/components/forms/monitor/form-status-pages.tsx
@@ -1,18 +1,5 @@
"use client";
-import {
- EmptyStateContainer,
- EmptyStateTitle,
-} from "@/components/content/empty-state";
-import {
- FormCard,
- FormCardContent,
- FormCardDescription,
- FormCardFooter,
- FormCardHeader,
- FormCardSeparator,
- FormCardTitle,
-} from "@/components/forms/form-card";
import { zodResolver } from "@hookform/resolvers/zod";
import { Badge } from "@openstatus/ui/components/ui/badge";
import { Button } from "@openstatus/ui/components/ui/button";
@@ -34,6 +21,20 @@ import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+import {
+ EmptyStateContainer,
+ EmptyStateTitle,
+} from "@/components/content/empty-state";
+import {
+ FormCard,
+ FormCardContent,
+ FormCardDescription,
+ FormCardFooter,
+ FormCardHeader,
+ FormCardSeparator,
+ FormCardTitle,
+} from "@/components/forms/form-card";
+
const schema = z.object({
description: z.string().optional(),
externalName: z.string().optional(),
@@ -202,7 +203,7 @@ export function FormStatusPages({
}}
/>
</FormControl>
- <FormLabel className="font-normal text-sm">
+ <FormLabel className="text-sm font-normal">
{item.title}{" "}
<Badge
variant="secondary"
diff --git a/apps/dashboard/src/components/forms/monitor/form-tags.tsx b/apps/dashboard/src/components/forms/monitor/form-tags.tsx
index 2c88d8741..b44901feb 100644
--- a/apps/dashboard/src/components/forms/monitor/form-tags.tsx
+++ b/apps/dashboard/src/components/forms/monitor/form-tags.tsx
@@ -1,16 +1,5 @@
"use client";
-import { Link } from "@/components/common/link";
-import {
- FormCard,
- FormCardContent,
- FormCardDescription,
- FormCardFooter,
- FormCardFooterInfo,
- FormCardHeader,
- FormCardTitle,
-} from "@/components/forms/form-card";
-import { useTRPC } from "@/lib/trpc/client";
import { zodResolver } from "@hookform/resolvers/zod";
import { Badge } from "@openstatus/ui/components/ui/badge";
import { Button } from "@openstatus/ui/components/ui/button";
@@ -42,6 +31,19 @@ import { useEffect, useTransition } from "react";
import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+
+import { Link } from "@/components/common/link";
+import {
+ FormCard,
+ FormCardContent,
+ FormCardDescription,
+ FormCardFooter,
+ FormCardFooterInfo,
+ FormCardHeader,
+ FormCardTitle,
+} from "@/components/forms/form-card";
+import { useTRPC } from "@/lib/trpc/client";
+
import { FormSheetMonitorTag } from "../monitor-tag/sheet";
const schema = z.object({
@@ -151,13 +153,13 @@ export function FormTags({
!field.value?.length && "text-muted-foreground",
)}
>
- <div className="group/badges -space-x-2 flex flex-wrap">
+ <div className="group/badges flex flex-wrap -space-x-2">
{field.value.length ? (
field.value.map((tag) => (
<Badge
key={tag.id}
variant="outline"
- className="relative flex translate-x-0 items-center gap-1.5 rounded-full bg-background transition-transform hover:z-10 hover:translate-x-1"
+ className="bg-background relative flex translate-x-0 items-center gap-1.5 rounded-full transition-transform hover:z-10 hover:translate-x-1"
>
<div
className={cn("size-2.5 rounded-full")}
diff --git a/apps/dashboard/src/components/forms/monitor/form-visibility.tsx b/apps/dashboard/src/components/forms/monitor/form-visibility.tsx
index 3f2e0a389..d90dc0a4f 100644
--- a/apps/dashboard/src/components/forms/monitor/form-visibility.tsx
+++ b/apps/dashboard/src/components/forms/monitor/form-visibility.tsx
@@ -1,16 +1,5 @@
"use client";
-import { Link } from "@/components/common/link";
-import {
- FormCard,
- FormCardContent,
- FormCardDescription,
- FormCardFooter,
- FormCardFooterInfo,
- FormCardHeader,
- FormCardTitle,
- FormCardUpgrade,
-} from "@/components/forms/form-card";
import { zodResolver } from "@hookform/resolvers/zod";
import { Button } from "@openstatus/ui/components/ui/button";
import {
@@ -29,6 +18,18 @@ import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+import { Link } from "@/components/common/link";
+import {
+ FormCard,
+ FormCardContent,
+ FormCardDescription,
+ FormCardFooter,
+ FormCardFooterInfo,
+ FormCardHeader,
+ FormCardTitle,
+ FormCardUpgrade,
+} from "@/components/forms/form-card";
+
const schema = z.object({
visibility: z.boolean(),
});
diff --git a/apps/dashboard/src/components/forms/monitor/update.tsx b/apps/dashboard/src/components/forms/monitor/update.tsx
index 3bdc2733b..7a23f94e9 100644
--- a/apps/dashboard/src/components/forms/monitor/update.tsx
+++ b/apps/dashboard/src/components/forms/monitor/update.tsx
@@ -1,10 +1,12 @@
"use client";
-import { FormCardGroup } from "@/components/forms/form-card";
-import { useTRPC } from "@/lib/trpc/client";
import { deserialize } from "@openstatus/assertions";
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
import { useParams, useRouter } from "next/navigation";
+
+import { FormCardGroup } from "@/components/forms/form-card";
+import { useTRPC } from "@/lib/trpc/client";
+
import { FormDangerZone } from "./form-danger-zone";
import {
FOLLOW_REDIRECTS_DEFAULT,
diff --git a/apps/dashboard/src/components/forms/notifications/form-discord.tsx b/apps/dashboard/src/components/forms/notifications/form-discord.tsx
index 62ad73156..b3273fd3e 100644
--- a/apps/dashboard/src/components/forms/notifications/form-discord.tsx
+++ b/apps/dashboard/src/components/forms/notifications/form-discord.tsx
@@ -1,6 +1,7 @@
"use client";
-import { CheckboxTree } from "@/components/ui/checkbox-tree";
+import { zodResolver } from "@hookform/resolvers/zod";
+import { Button } from "@openstatus/ui/components/ui/button";
import {
FormControl,
FormDescription,
@@ -9,16 +10,6 @@ import {
FormLabel,
FormMessage,
} from "@openstatus/ui/components/ui/form";
-
-import { Link } from "@/components/common/link";
-import {
- FormCardContent,
- FormCardSeparator,
-} from "@/components/forms/form-card";
-import { useFormSheetDirty } from "@/components/forms/form-sheet";
-import { useTRPC } from "@/lib/trpc/client";
-import { zodResolver } from "@hookform/resolvers/zod";
-import { Button } from "@openstatus/ui/components/ui/button";
import { Form } from "@openstatus/ui/components/ui/form";
import { Input } from "@openstatus/ui/components/ui/input";
import { cn } from "@openstatus/ui/lib/utils";
@@ -29,6 +20,15 @@ import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+import { Link } from "@/components/common/link";
+import {
+ FormCardContent,
+ FormCardSeparator,
+} from "@/components/forms/form-card";
+import { useFormSheetDirty } from "@/components/forms/form-sheet";
+import { CheckboxTree } from "@/components/ui/checkbox-tree";
+import { useTRPC } from "@/lib/trpc/client";
+
const schema = z.object({
name: z.string(),
provider: z.literal("discord"),
diff --git a/apps/dashboard/src/components/forms/notifications/form-email.tsx b/apps/dashboard/src/components/forms/notifications/form-email.tsx
index 4d6876dde..a6c1d6815 100644
--- a/apps/dashboard/src/components/forms/notifications/form-email.tsx
+++ b/apps/dashboard/src/components/forms/notifications/form-email.tsx
@@ -1,6 +1,6 @@
"use client";
-import { CheckboxTree } from "@/components/ui/checkbox-tree";
+import { zodResolver } from "@hookform/resolvers/zod";
import {
FormControl,
FormDescription,
@@ -9,13 +9,6 @@ import {
FormLabel,
FormMessage,
} from "@openstatus/ui/components/ui/form";
-
-import {
- FormCardContent,
- FormCardSeparator,
-} from "@/components/forms/form-card";
-import { useFormSheetDirty } from "@/components/forms/form-sheet";
-import { zodResolver } from "@hookform/resolvers/zod";
import { Form } from "@openstatus/ui/components/ui/form";
import { Input } from "@openstatus/ui/components/ui/input";
import { cn } from "@openstatus/ui/lib/utils";
@@ -25,6 +18,13 @@ import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+import {
+ FormCardContent,
+ FormCardSeparator,
+} from "@/components/forms/form-card";
+import { useFormSheetDirty } from "@/components/forms/form-sheet";
+import { CheckboxTree } from "@/components/ui/checkbox-tree";
+
const schema = z.object({
name: z.string(),
provider: z.literal("email"),
diff --git a/apps/dashboard/src/components/forms/notifications/form-google-chat.tsx b/apps/dashboard/src/components/forms/notifications/form-google-chat.tsx
index f20e7c168..cdfa882c7 100644
--- a/apps/dashboard/src/components/forms/notifications/form-google-chat.tsx
+++ b/apps/dashboard/src/components/forms/notifications/form-google-chat.tsx
@@ -1,6 +1,7 @@
"use client";
-import { CheckboxTree } from "@/components/ui/checkbox-tree";
+import { zodResolver } from "@hookform/resolvers/zod";
+import { Button } from "@openstatus/ui/components/ui/button";
import {
FormControl,
FormDescription,
@@ -9,18 +10,8 @@ import {
FormLabel,
FormMessage,
} from "@openstatus/ui/components/ui/form";
-
-import {
- FormCardContent,
- FormCardSeparator,
-} from "@/components/forms/form-card";
-import { useFormSheetDirty } from "@/components/forms/form-sheet";
-import { Button } from "@openstatus/ui/components/ui/button";
import { Form } from "@openstatus/ui/components/ui/form";
import { Input } from "@openstatus/ui/components/ui/input";
-
-import { useTRPC } from "@/lib/trpc/client";
-import { zodResolver } from "@hookform/resolvers/zod";
import { cn } from "@openstatus/ui/lib/utils";
import { useMutation } from "@tanstack/react-query";
import { isTRPCClientError } from "@trpc/client";
@@ -29,6 +20,14 @@ import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+import {
+ FormCardContent,
+ FormCardSeparator,
+} from "@/components/forms/form-card";
+import { useFormSheetDirty } from "@/components/forms/form-sheet";
+import { CheckboxTree } from "@/components/ui/checkbox-tree";
+import { useTRPC } from "@/lib/trpc/client";
+
const schema = z.object({
name: z.string(),
provider: z.literal("google-chat"),
diff --git a/apps/dashboard/src/components/forms/notifications/form-grafana-oncall.tsx b/apps/dashboard/src/components/forms/notifications/form-grafana-oncall.tsx
index 9fb55321c..0de2ba85b 100644
--- a/apps/dashboard/src/components/forms/notifications/form-grafana-oncall.tsx
+++ b/apps/dashboard/src/components/forms/notifications/form-grafana-oncall.tsx
@@ -1,6 +1,7 @@
"use client";
-import { CheckboxTree } from "@/components/ui/checkbox-tree";
+import { zodResolver } from "@hookform/resolvers/zod";
+import { Button } from "@openstatus/ui/components/ui/button";
import {
FormControl,
FormDescription,
@@ -9,14 +10,6 @@ import {
FormLabel,
FormMessage,
} from "@openstatus/ui/components/ui/form";
-
-import {
- FormCardContent,
- FormCardSeparator,
-} from "@/components/forms/form-card";
-import { useTRPC } from "@/lib/trpc/client";
-import { zodResolver } from "@hookform/resolvers/zod";
-import { Button } from "@openstatus/ui/components/ui/button";
import { Form } from "@openstatus/ui/components/ui/form";
import { Input } from "@openstatus/ui/components/ui/input";
import { cn } from "@openstatus/ui/lib/utils";
@@ -27,6 +20,14 @@ import React from "react";
import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+
+import {
+ FormCardContent,
+ FormCardSeparator,
+} from "@/components/forms/form-card";
+import { CheckboxTree } from "@/components/ui/checkbox-tree";
+import { useTRPC } from "@/lib/trpc/client";
+
import { useFormSheetDirty } from "../form-sheet";
const schema = z.object({
diff --git a/apps/dashboard/src/components/forms/notifications/form-ms-teams.tsx b/apps/dashboard/src/components/forms/notifications/form-ms-teams.tsx
index edce21c8a..087aec7fb 100644
--- a/apps/dashboard/src/components/forms/notifications/form-ms-teams.tsx
+++ b/apps/dashboard/src/components/forms/notifications/form-ms-teams.tsx
@@ -1,6 +1,7 @@
"use client";
-import { CheckboxTree } from "@/components/ui/checkbox-tree";
+import { zodResolver } from "@hookform/resolvers/zod";
+import { Button } from "@openstatus/ui/components/ui/button";
import {
FormControl,
FormDescription,
@@ -9,14 +10,6 @@ import {
FormLabel,
FormMessage,
} from "@openstatus/ui/components/ui/form";
-
-import {
- FormCardContent,
- FormCardSeparator,
-} from "@/components/forms/form-card";
-import { useTRPC } from "@/lib/trpc/client";
-import { zodResolver } from "@hookform/resolvers/zod";
-import { Button } from "@openstatus/ui/components/ui/button";
import { Form } from "@openstatus/ui/components/ui/form";
import { Input } from "@openstatus/ui/components/ui/input";
import { cn } from "@openstatus/ui/lib/utils";
@@ -27,6 +20,14 @@ import React, { useTransition } from "react";
import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+
+import {
+ FormCardContent,
+ FormCardSeparator,
+} from "@/components/forms/form-card";
+import { CheckboxTree } from "@/components/ui/checkbox-tree";
+import { useTRPC } from "@/lib/trpc/client";
+
import { useFormSheetDirty } from "../form-sheet";
const schema = z.object({
diff --git a/apps/dashboard/src/components/forms/notifications/form-ntfy.tsx b/apps/dashboard/src/components/forms/notifications/form-ntfy.tsx
index 15b294a90..fab7874e6 100644
--- a/apps/dashboard/src/components/forms/notifications/form-ntfy.tsx
+++ b/apps/dashboard/src/components/forms/notifications/form-ntfy.tsx
@@ -1,6 +1,7 @@
"use client";
-import { CheckboxTree } from "@/components/ui/checkbox-tree";
+import { zodResolver } from "@hookform/resolvers/zod";
+import { Button } from "@openstatus/ui/components/ui/button";
import {
FormControl,
FormDescription,
@@ -9,15 +10,6 @@ import {
FormLabel,
FormMessage,
} from "@openstatus/ui/components/ui/form";
-
-import {
- FormCardContent,
- FormCardSeparator,
-} from "@/components/forms/form-card";
-import { useFormSheetDirty } from "@/components/forms/form-sheet";
-import { useTRPC } from "@/lib/trpc/client";
-import { zodResolver } from "@hookform/resolvers/zod";
-import { Button } from "@openstatus/ui/components/ui/button";
import { Form } from "@openstatus/ui/components/ui/form";
import { Input } from "@openstatus/ui/components/ui/input";
import { cn } from "@openstatus/ui/lib/utils";
@@ -28,6 +20,14 @@ import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+import {
+ FormCardContent,
+ FormCardSeparator,
+} from "@/components/forms/form-card";
+import { useFormSheetDirty } from "@/components/forms/form-sheet";
+import { CheckboxTree } from "@/components/ui/checkbox-tree";
+import { useTRPC } from "@/lib/trpc/client";
+
const schema = z.object({
name: z.string(),
provider: z.literal("ntfy"),
diff --git a/apps/dashboard/src/components/forms/notifications/form-opsgenie.tsx b/apps/dashboard/src/components/forms/notifications/form-opsgenie.tsx
index bb963ee14..afd5c3206 100644
--- a/apps/dashboard/src/components/forms/notifications/form-opsgenie.tsx
+++ b/apps/dashboard/src/components/forms/notifications/form-opsgenie.tsx
@@ -1,6 +1,7 @@
"use client";
-import { CheckboxTree } from "@/components/ui/checkbox-tree";
+import { zodResolver } from "@hookform/resolvers/zod";
+import { Button } from "@openstatus/ui/components/ui/button";
import {
FormControl,
FormDescription,
@@ -9,14 +10,6 @@ import {
FormLabel,
FormMessage,
} from "@openstatus/ui/components/ui/form";
-
-import {
- FormCardContent,
- FormCardSeparator,
-} from "@/components/forms/form-card";
-import { useTRPC } from "@/lib/trpc/client";
-import { zodResolver } from "@hookform/resolvers/zod";
-import { Button } from "@openstatus/ui/components/ui/button";
import { Form } from "@openstatus/ui/components/ui/form";
import { Input } from "@openstatus/ui/components/ui/input";
import {
@@ -34,6 +27,13 @@ import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+import {
+ FormCardContent,
+ FormCardSeparator,
+} from "@/components/forms/form-card";
+import { CheckboxTree } from "@/components/ui/checkbox-tree";
+import { useTRPC } from "@/lib/trpc/client";
+
const schema = z.object({
name: z.string(),
provider: z.literal("opsgenie"),
diff --git a/apps/dashboard/src/components/forms/notifications/form-pagerduty.tsx b/apps/dashboard/src/components/forms/notifications/form-pagerduty.tsx
index 37d563633..d51c9f666 100644
--- a/apps/dashboard/src/components/forms/notifications/form-pagerduty.tsx
+++ b/apps/dashboard/src/components/forms/notifications/form-pagerduty.tsx
@@ -1,6 +1,8 @@
"use client";
-import { CheckboxTree } from "@/components/ui/checkbox-tree";
+import { zodResolver } from "@hookform/resolvers/zod";
+import { PagerDutySchema } from "@openstatus/notification-pagerduty";
+import { Button } from "@openstatus/ui/components/ui/button";
import {
FormControl,
FormDescription,
@@ -9,16 +11,6 @@ import {
FormLabel,
FormMessage,
} from "@openstatus/ui/components/ui/form";
-
-import {
- FormCardContent,
- FormCardSeparator,
-} from "@/components/forms/form-card";
-import { useFormSheetDirty } from "@/components/forms/form-sheet";
-import { useTRPC } from "@/lib/trpc/client";
-import { zodResolver } from "@hookform/resolvers/zod";
-import { PagerDutySchema } from "@openstatus/notification-pagerduty";
-import { Button } from "@openstatus/ui/components/ui/button";
import { Form } from "@openstatus/ui/components/ui/form";
import { Input } from "@openstatus/ui/components/ui/input";
import { cn } from "@openstatus/ui/lib/utils";
@@ -30,6 +22,14 @@ import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+import {
+ FormCardContent,
+ FormCardSeparator,
+} from "@/components/forms/form-card";
+import { useFormSheetDirty } from "@/components/forms/form-sheet";
+import { CheckboxTree } from "@/components/ui/checkbox-tree";
+import { useTRPC } from "@/lib/trpc/client";
+
const schema = z.object({
name: z.string(),
provider: z.literal("pagerduty"),
diff --git a/apps/dashboard/src/components/forms/notifications/form-slack.tsx b/apps/dashboard/src/components/forms/notifications/form-slack.tsx
index dc62729b0..8dcf0446b 100644
--- a/apps/dashboard/src/components/forms/notifications/form-slack.tsx
+++ b/apps/dashboard/src/components/forms/notifications/form-slack.tsx
@@ -1,6 +1,7 @@
"use client";
-import { CheckboxTree } from "@/components/ui/checkbox-tree";
+import { zodResolver } from "@hookform/resolvers/zod";
+import { Button } from "@openstatus/ui/components/ui/button";
import {
FormControl,
FormDescription,
@@ -9,16 +10,6 @@ import {
FormLabel,
FormMessage,
} from "@openstatus/ui/components/ui/form";
-
-import { Link } from "@/components/common/link";
-import {
- FormCardContent,
- FormCardSeparator,
-} from "@/components/forms/form-card";
-import { useFormSheetDirty } from "@/components/forms/form-sheet";
-import { useTRPC } from "@/lib/trpc/client";
-import { zodResolver } from "@hookform/resolvers/zod";
-import { Button } from "@openstatus/ui/components/ui/button";
import { Form } from "@openstatus/ui/components/ui/form";
import { Input } from "@openstatus/ui/components/ui/input";
import { cn } from "@openstatus/ui/lib/utils";
@@ -29,6 +20,15 @@ import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+import { Link } from "@/components/common/link";
+import {
+ FormCardContent,
+ FormCardSeparator,
+} from "@/components/forms/form-card";
+import { useFormSheetDirty } from "@/components/forms/form-sheet";
+import { CheckboxTree } from "@/components/ui/checkbox-tree";
+import { useTRPC } from "@/lib/trpc/client";
+
const schema = z.object({
name: z.string(),
provider: z.literal("slack"),
diff --git a/apps/dashboard/src/components/forms/notifications/form-sms.tsx b/apps/dashboard/src/components/forms/notifications/form-sms.tsx
index 8086937c4..dad393b62 100644
--- a/apps/dashboard/src/components/forms/notifications/form-sms.tsx
+++ b/apps/dashboard/src/components/forms/notifications/form-sms.tsx
@@ -1,6 +1,6 @@
"use client";
-import { CheckboxTree } from "@/components/ui/checkbox-tree";
+import { zodResolver } from "@hookform/resolvers/zod";
import {
FormControl,
FormDescription,
@@ -9,13 +9,6 @@ import {
FormLabel,
FormMessage,
} from "@openstatus/ui/components/ui/form";
-
-import {
- FormCardContent,
- FormCardSeparator,
-} from "@/components/forms/form-card";
-import { useFormSheetDirty } from "@/components/forms/form-sheet";
-import { zodResolver } from "@hookform/resolvers/zod";
import { Form } from "@openstatus/ui/components/ui/form";
import { Input } from "@openstatus/ui/components/ui/input";
import { cn } from "@openstatus/ui/lib/utils";
@@ -24,6 +17,13 @@ import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+import {
+ FormCardContent,
+ FormCardSeparator,
+} from "@/components/forms/form-card";
+import { useFormSheetDirty } from "@/components/forms/form-sheet";
+import { CheckboxTree } from "@/components/ui/checkbox-tree";
+
const schema = z.object({
name: z.string(),
provider: z.literal("sms"),
diff --git a/apps/dashboard/src/components/forms/notifications/form-telegram.tsx b/apps/dashboard/src/components/forms/notifications/form-telegram.tsx
index 11b248f3c..a005f2a3e 100644
--- a/apps/dashboard/src/components/forms/notifications/form-telegram.tsx
+++ b/apps/dashboard/src/components/forms/notifications/form-telegram.tsx
@@ -1,6 +1,6 @@
"use client";
-import { CheckboxTree } from "@/components/ui/checkbox-tree";
+import { zodResolver } from "@hookform/resolvers/zod";
import {
FormControl,
FormDescription,
@@ -9,13 +9,6 @@ import {
FormLabel,
FormMessage,
} from "@openstatus/ui/components/ui/form";
-
-import {
- FormCardContent,
- FormCardSeparator,
-} from "@/components/forms/form-card";
-import { useFormSheetDirty } from "@/components/forms/form-sheet";
-import { zodResolver } from "@hookform/resolvers/zod";
import { Form } from "@openstatus/ui/components/ui/form";
import { Input } from "@openstatus/ui/components/ui/input";
import { cn } from "@openstatus/ui/lib/utils";
@@ -24,6 +17,14 @@ import React, { useTransition } from "react";
import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+
+import {
+ FormCardContent,
+ FormCardSeparator,
+} from "@/components/forms/form-card";
+import { useFormSheetDirty } from "@/components/forms/form-sheet";
+import { CheckboxTree } from "@/components/ui/checkbox-tree";
+
import { TelegramConnectionFlow } from "../components/telegram-connection-flow";
import { TelegramFormActions } from "../components/telegram-form-actions";
import { TelegramManualInput } from "../components/telegram-manual-input";
diff --git a/apps/dashboard/src/components/forms/notifications/form-webhook.tsx b/apps/dashboard/src/components/forms/notifications/form-webhook.tsx
index 7f1f31fd1..30b7c1ddc 100644
--- a/apps/dashboard/src/components/forms/notifications/form-webhook.tsx
+++ b/apps/dashboard/src/components/forms/notifications/form-webhook.tsx
@@ -1,6 +1,7 @@
"use client";
-import { CheckboxTree } from "@/components/ui/checkbox-tree";
+import { zodResolver } from "@hookform/resolvers/zod";
+import { Button } from "@openstatus/ui/components/ui/button";
import {
FormControl,
FormDescription,
@@ -9,16 +10,6 @@ import {
FormLabel,
FormMessage,
} from "@openstatus/ui/components/ui/form";
-
-import { Link } from "@/components/common/link";
-import {
- FormCardContent,
- FormCardSeparator,
-} from "@/components/forms/form-card";
-import { useFormSheetDirty } from "@/components/forms/form-sheet";
-import { useTRPC } from "@/lib/trpc/client";
-import { zodResolver } from "@hookform/resolvers/zod";
-import { Button } from "@openstatus/ui/components/ui/button";
import { Form } from "@openstatus/ui/components/ui/form";
import { Input } from "@openstatus/ui/components/ui/input";
import { cn } from "@openstatus/ui/lib/utils";
@@ -30,6 +21,15 @@ import { useFieldArray, useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+import { Link } from "@/components/common/link";
+import {
+ FormCardContent,
+ FormCardSeparator,
+} from "@/components/forms/form-card";
+import { useFormSheetDirty } from "@/components/forms/form-sheet";
+import { CheckboxTree } from "@/components/ui/checkbox-tree";
+import { useTRPC } from "@/lib/trpc/client";
+
const schema = z.object({
name: z.string(),
provider: z.literal("webhook"),
diff --git a/apps/dashboard/src/components/forms/notifications/form-whatsapp.tsx b/apps/dashboard/src/components/forms/notifications/form-whatsapp.tsx
index a628dc86b..025030d8e 100644
--- a/apps/dashboard/src/components/forms/notifications/form-whatsapp.tsx
+++ b/apps/dashboard/src/components/forms/notifications/form-whatsapp.tsx
@@ -1,6 +1,7 @@
"use client";
-import { CheckboxTree } from "@/components/ui/checkbox-tree";
+import { zodResolver } from "@hookform/resolvers/zod";
+import { Button } from "@openstatus/ui/components/ui/button";
import {
FormControl,
FormDescription,
@@ -9,18 +10,8 @@ import {
FormLabel,
FormMessage,
} from "@openstatus/ui/components/ui/form";
-
-import {
- FormCardContent,
- FormCardSeparator,
-} from "@/components/forms/form-card";
-import { useFormSheetDirty } from "@/components/forms/form-sheet";
-import { Button } from "@openstatus/ui/components/ui/button";
import { Form } from "@openstatus/ui/components/ui/form";
import { Input } from "@openstatus/ui/components/ui/input";
-
-import { useTRPC } from "@/lib/trpc/client";
-import { zodResolver } from "@hookform/resolvers/zod";
import { cn } from "@openstatus/ui/lib/utils";
import { useMutation } from "@tanstack/react-query";
import { isTRPCClientError } from "@trpc/client";
@@ -29,6 +20,14 @@ import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+import {
+ FormCardContent,
+ FormCardSeparator,
+} from "@/components/forms/form-card";
+import { useFormSheetDirty } from "@/components/forms/form-sheet";
+import { CheckboxTree } from "@/components/ui/checkbox-tree";
+import { useTRPC } from "@/lib/trpc/client";
+
const schema = z.object({
name: z.string(),
provider: z.literal("whatsapp"),
diff --git a/apps/dashboard/src/components/forms/notifications/form.tsx b/apps/dashboard/src/components/forms/notifications/form.tsx
index dbe198b3f..a35341458 100644
--- a/apps/dashboard/src/components/forms/notifications/form.tsx
+++ b/apps/dashboard/src/components/forms/notifications/form.tsx
@@ -1,6 +1,6 @@
"use client";
-import { CheckboxTree } from "@/components/ui/checkbox-tree";
+import { zodResolver } from "@hookform/resolvers/zod";
import {
FormControl,
FormDescription,
@@ -9,8 +9,6 @@ import {
FormLabel,
FormMessage,
} from "@openstatus/ui/components/ui/form";
-
-import { zodResolver } from "@hookform/resolvers/zod";
import { Form } from "@openstatus/ui/components/ui/form";
import { Input } from "@openstatus/ui/components/ui/input";
import { cn } from "@openstatus/ui/lib/utils";
@@ -19,6 +17,8 @@ import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+import { CheckboxTree } from "@/components/ui/checkbox-tree";
+
const schema = z.object({
name: z.string(),
provider: z.enum([
diff --git a/apps/dashboard/src/components/forms/notifications/sheet.tsx b/apps/dashboard/src/components/forms/notifications/sheet.tsx
index e44d3a00a..cb6399ed3 100644
--- a/apps/dashboard/src/components/forms/notifications/sheet.tsx
+++ b/apps/dashboard/src/components/forms/notifications/sheet.tsx
@@ -1,5 +1,8 @@
"use client";
+import { Button } from "@openstatus/ui/components/ui/button";
+import { useState } from "react";
+
import { FormCard, FormCardGroup } from "@/components/forms/form-card";
import {
FormSheetContent,
@@ -11,8 +14,7 @@ import {
FormSheetWithDirtyProtection,
} from "@/components/forms/form-sheet";
import { config } from "@/data/notifications.client";
-import { Button } from "@openstatus/ui/components/ui/button";
-import { useState } from "react";
+
import type { FormValues } from "./form";
export function FormSheetNotifier({
diff --git a/apps/dashboard/src/components/forms/onboarding/create-page.tsx b/apps/dashboard/src/components/forms/onboarding/create-page.tsx
index 2f25832fa..2ff4c0af4 100644
--- a/apps/dashboard/src/components/forms/onboarding/create-page.tsx
+++ b/apps/dashboard/src/components/forms/onboarding/create-page.tsx
@@ -1,9 +1,5 @@
"use client";
-// FIXME: use input-group instead
-import { InputWithAddons } from "@/components/common/input-with-addons";
-import { ThemePickerPopover } from "@/components/forms/status-page/theme-picker";
-import { useTRPC } from "@/lib/trpc/client";
import { zodResolver } from "@hookform/resolvers/zod";
import { THEME_KEYS, type ThemeKey } from "@openstatus/theme-store";
import { Button } from "@openstatus/ui/components/ui/button";
@@ -34,6 +30,11 @@ import { useFieldArray, useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+// FIXME: use input-group instead
+import { InputWithAddons } from "@/components/common/input-with-addons";
+import { ThemePickerPopover } from "@/components/forms/status-page/theme-picker";
+import { useTRPC } from "@/lib/trpc/client";
+
const SLUG_UNIQUE_ERROR_MESSAGE =
"This slug is already taken. Please choose another one.";
diff --git a/apps/dashboard/src/components/forms/onboarding/question.tsx b/apps/dashboard/src/components/forms/onboarding/question.tsx
index 25f5d1f59..b24117ad2 100644
--- a/apps/dashboard/src/components/forms/onboarding/question.tsx
+++ b/apps/dashboard/src/components/forms/onboarding/question.tsx
@@ -1,6 +1,5 @@
"use client";
-import { Note } from "@/components/common/note";
import { zodResolver } from "@hookform/resolvers/zod";
import {
BlueskyIcon,
@@ -38,6 +37,8 @@ import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+import { Note } from "@/components/common/note";
+
const sources = [
{ id: "search-engine", title: "Search Engine", icon: Search },
{ id: "github", title: "GitHub", icon: GitHubIcon },
diff --git a/apps/dashboard/src/components/forms/private-location/form.tsx b/apps/dashboard/src/components/forms/private-location/form.tsx
index 0b01ef69a..b2bce7302 100644
--- a/apps/dashboard/src/components/forms/private-location/form.tsx
+++ b/apps/dashboard/src/components/forms/private-location/form.tsx
@@ -1,15 +1,5 @@
"use client";
-import {
- EmptyStateContainer,
- EmptyStateTitle,
-} from "@/components/content/empty-state";
-import {
- FormCardContent,
- FormCardSeparator,
-} from "@/components/forms/form-card";
-import { useFormSheetDirty } from "@/components/forms/form-sheet";
-import { CheckboxTree } from "@/components/ui/checkbox-tree";
import { zodResolver } from "@hookform/resolvers/zod";
import {
Form,
@@ -36,6 +26,17 @@ import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+import {
+ EmptyStateContainer,
+ EmptyStateTitle,
+} from "@/components/content/empty-state";
+import {
+ FormCardContent,
+ FormCardSeparator,
+} from "@/components/forms/form-card";
+import { useFormSheetDirty } from "@/components/forms/form-sheet";
+import { CheckboxTree } from "@/components/ui/checkbox-tree";
+
const schema = z.object({
name: z.string().min(1, "Name is required"),
token: z.string(),
diff --git a/apps/dashboard/src/components/forms/private-location/sheet.tsx b/apps/dashboard/src/components/forms/private-location/sheet.tsx
index bb44e24d4..3604bb538 100644
--- a/apps/dashboard/src/components/forms/private-location/sheet.tsx
+++ b/apps/dashboard/src/components/forms/private-location/sheet.tsx
@@ -1,5 +1,8 @@
"use client";
+import { Button } from "@openstatus/ui/components/ui/button";
+import { useState } from "react";
+
import { FormCard, FormCardGroup } from "@/components/forms/form-card";
import {
FormSheetContent,
@@ -14,8 +17,6 @@ import {
FormPrivateLocation,
type FormValues,
} from "@/components/forms/private-location/form";
-import { Button } from "@openstatus/ui/components/ui/button";
-import { useState } from "react";
export function FormSheetPrivateLocation({
children,
diff --git a/apps/dashboard/src/components/forms/settings/form-api-key.tsx b/apps/dashboard/src/components/forms/settings/form-api-key.tsx
index 579d91c5b..0873fce9a 100644
--- a/apps/dashboard/src/components/forms/settings/form-api-key.tsx
+++ b/apps/dashboard/src/components/forms/settings/form-api-key.tsx
@@ -1,22 +1,5 @@
"use client";
-import { Link } from "@/components/common/link";
-import {
- EmptyStateDescription,
- EmptyStateTitle,
-} from "@/components/content/empty-state";
-import { EmptyStateContainer } from "@/components/content/empty-state";
-import { DataTable } from "@/components/data-table/settings/api-key/data-table";
-import {
- FormCard,
- FormCardContent,
- FormCardDescription,
- FormCardFooter,
- FormCardFooterInfo,
- FormCardHeader,
- FormCardTitle,
-} from "@/components/forms/form-card";
-import { useTRPC } from "@/lib/trpc/client";
import { zodResolver } from "@hookform/resolvers/zod";
import {
AlertDialog,
@@ -67,6 +50,24 @@ import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+import { Link } from "@/components/common/link";
+import {
+ EmptyStateDescription,
+ EmptyStateTitle,
+} from "@/components/content/empty-state";
+import { EmptyStateContainer } from "@/components/content/empty-state";
+import { DataTable } from "@/components/data-table/settings/api-key/data-table";
+import {
+ FormCard,
+ FormCardContent,
+ FormCardDescription,
+ FormCardFooter,
+ FormCardFooterInfo,
+ FormCardHeader,
+ FormCardTitle,
+} from "@/components/forms/form-card";
+import { useTRPC } from "@/lib/trpc/client";
+
// we should prefetch the api key on the server (layout)
const schema = z.object({
@@ -258,10 +259,10 @@ export function FormApiKey() {
onValueChange={field.onChange}
className="gap-3 sm:grid-cols-2"
>
- <label className="flex cursor-pointer items-start gap-3 rounded-md border p-3 hover:bg-muted/40 has-[[aria-checked=true]]:border-primary">
+ <label className="hover:bg-muted/40 has-[[aria-checked=true]]:border-primary flex cursor-pointer items-start gap-3 rounded-md border p-3">
<RadioGroupItem value="read" className="mt-1" />
<div className="space-y-0.5">
- <div className="font-medium text-sm">
+ <div className="text-sm font-medium">
Read-only
</div>
<div className="text-muted-foreground text-xs">
@@ -270,10 +271,10 @@ export function FormApiKey() {
</div>
</div>
</label>
- <label className="flex cursor-pointer items-start gap-3 rounded-md border p-3 hover:bg-muted/40 has-[[aria-checked=true]]:border-primary">
+ <label className="hover:bg-muted/40 has-[[aria-checked=true]]:border-primary flex cursor-pointer items-start gap-3 rounded-md border p-3">
<RadioGroupItem value="write" className="mt-1" />
<div className="space-y-0.5">
- <div className="font-medium text-sm">
+ <div className="text-sm font-medium">
Read &amp; write
</div>
<div className="text-muted-foreground text-xs">
diff --git a/apps/dashboard/src/components/forms/settings/form-members.tsx b/apps/dashboard/src/components/forms/settings/form-members.tsx
index 304a05f16..fc2bf439c 100644
--- a/apps/dashboard/src/components/forms/settings/form-members.tsx
+++ b/apps/dashboard/src/components/forms/settings/form-members.tsx
@@ -1,11 +1,31 @@
"use client";
+import { zodResolver } from "@hookform/resolvers/zod";
+import { Button } from "@openstatus/ui/components/ui/button";
+import {
+ Form,
+ FormControl,
+ FormField,
+ FormItem,
+ FormLabel,
+ FormMessage,
+} from "@openstatus/ui/components/ui/form";
+import { Input } from "@openstatus/ui/components/ui/input";
import {
TabsContent,
TabsList,
TabsTrigger,
} from "@openstatus/ui/components/ui/tabs";
+import { Tabs } from "@openstatus/ui/components/ui/tabs";
+import { Lock } from "lucide-react";
+import { useTransition } from "react";
+import { useForm } from "react-hook-form";
+import { toast } from "sonner";
+import { z } from "zod";
+import { Link } from "@/components/common/link";
+import { DataTable as InvitationsDataTable } from "@/components/data-table/settings/invitations/data-table";
+import { DataTable as MembersDataTable } from "@/components/data-table/settings/members/data-table";
import {
FormCardContent,
FormCardDescription,
@@ -14,31 +34,9 @@ import {
FormCardTitle,
FormCardUpgrade,
} from "@/components/forms/form-card";
-
-import { Button } from "@openstatus/ui/components/ui/button";
-import { FormCardFooter, FormCardFooterInfo } from "../form-card";
-
-import { Link } from "@/components/common/link";
import { FormCard } from "@/components/forms/form-card";
-import { Tabs } from "@openstatus/ui/components/ui/tabs";
-import { Lock } from "lucide-react";
-import { DataTable as InvitationsDataTable } from "@/components/data-table/settings/invitations/data-table";
-import { DataTable as MembersDataTable } from "@/components/data-table/settings/members/data-table";
-import { zodResolver } from "@hookform/resolvers/zod";
-import {
- Form,
- FormControl,
- FormField,
- FormItem,
- FormLabel,
- FormMessage,
-} from "@openstatus/ui/components/ui/form";
-import { Input } from "@openstatus/ui/components/ui/input";
-import { useTransition } from "react";
-import { useForm } from "react-hook-form";
-import { toast } from "sonner";
-import { z } from "zod";
+import { FormCardFooter, FormCardFooterInfo } from "../form-card";
const schema = z.object({
email: z.email(),
diff --git a/apps/dashboard/src/components/forms/settings/form-slug.tsx b/apps/dashboard/src/components/forms/settings/form-slug.tsx
index 5b2e8832f..74282de8b 100644
--- a/apps/dashboard/src/components/forms/settings/form-slug.tsx
+++ b/apps/dashboard/src/components/forms/settings/form-slug.tsx
@@ -1,5 +1,10 @@
"use client";
+import { Button } from "@openstatus/ui/components/ui/button";
+import { useCopyToClipboard } from "@openstatus/ui/hooks/use-copy-to-clipboard";
+import { Check, Copy } from "lucide-react";
+import { z } from "zod";
+
import {
FormCard,
FormCardContent,
@@ -9,12 +14,7 @@ import {
FormCardHeader,
FormCardTitle,
} from "@/components/forms/form-card";
-import { Button } from "@openstatus/ui/components/ui/button";
-
import { FormDialogSupportContact } from "@/components/forms/support-contact/dialog";
-import { useCopyToClipboard } from "@openstatus/ui/hooks/use-copy-to-clipboard";
-import { Check, Copy } from "lucide-react";
-import { z } from "zod";
const schema = z.object({
slug: z.string().min(1),
@@ -59,7 +59,7 @@ export function FormSlug({ defaultValues }: { defaultValues?: FormValues }) {
<Button
variant="ghost"
size="sm"
- className="px-0 py-0 text-accent-foreground hover:bg-transparent dark:hover:bg-transparent"
+ className="text-accent-foreground px-0 py-0 hover:bg-transparent dark:hover:bg-transparent"
>
Let us know
</Button>
diff --git a/apps/dashboard/src/components/forms/settings/form-workspace.tsx b/apps/dashboard/src/components/forms/settings/form-workspace.tsx
index 0bec900ab..985039c4c 100644
--- a/apps/dashboard/src/components/forms/settings/form-workspace.tsx
+++ b/apps/dashboard/src/components/forms/settings/form-workspace.tsx
@@ -1,13 +1,5 @@
"use client";
-import {
- FormCard,
- FormCardContent,
- FormCardDescription,
- FormCardFooter,
- FormCardHeader,
- FormCardTitle,
-} from "@/components/forms/form-card";
import { zodResolver } from "@hookform/resolvers/zod";
import { Button } from "@openstatus/ui/components/ui/button";
import {
@@ -24,6 +16,15 @@ import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+import {
+ FormCard,
+ FormCardContent,
+ FormCardDescription,
+ FormCardFooter,
+ FormCardHeader,
+ FormCardTitle,
+} from "@/components/forms/form-card";
+
const schema = z.object({
name: z.string(),
});
diff --git a/apps/dashboard/src/components/forms/status-page/form-appearance.tsx b/apps/dashboard/src/components/forms/status-page/form-appearance.tsx
index 31f8be51d..e7a294209 100644
--- a/apps/dashboard/src/components/forms/status-page/form-appearance.tsx
+++ b/apps/dashboard/src/components/forms/status-page/form-appearance.tsx
@@ -1,17 +1,3 @@
-import { useTransition } from "react";
-import { z } from "zod";
-
-import { Link } from "@/components/common/link";
-import {
- FormCard,
- FormCardContent,
- FormCardDescription,
- FormCardFooter,
- FormCardFooterInfo,
- FormCardHeader,
- FormCardTitle,
-} from "@/components/forms/form-card";
-import { ThemePickerPopover } from "@/components/forms/status-page/theme-picker";
import { zodResolver } from "@hookform/resolvers/zod";
import type { ThemeKey } from "@openstatus/theme-store";
import { Button } from "@openstatus/ui/components/ui/button";
@@ -33,8 +19,22 @@ import {
} from "@openstatus/ui/components/ui/select";
import { isTRPCClientError } from "@trpc/client";
import { ArrowUpRight, Laptop, Moon, Sun } from "lucide-react";
+import { useTransition } from "react";
import { useForm } from "react-hook-form";
import { toast } from "sonner";
+import { z } from "zod";
+
+import { Link } from "@/components/common/link";
+import {
+ FormCard,
+ FormCardContent,
+ FormCardDescription,
+ FormCardFooter,
+ FormCardFooterInfo,
+ FormCardHeader,
+ FormCardTitle,
+} from "@/components/forms/form-card";
+import { ThemePickerPopover } from "@/components/forms/status-page/theme-picker";
const schema = z.object({
forceTheme: z.enum(["light", "dark", "system"]),
diff --git a/apps/dashboard/src/components/forms/status-page/form-configuration.tsx b/apps/dashboard/src/components/forms/status-page/form-configuration.tsx
index 320b6222e..ac6c5e5f9 100644
--- a/apps/dashboard/src/components/forms/status-page/form-configuration.tsx
+++ b/apps/dashboard/src/components/forms/status-page/form-configuration.tsx
@@ -1,18 +1,3 @@
-import { useEffect, useState, useTransition } from "react";
-import { z } from "zod";
-
-import { Link } from "@/components/common/link";
-import { Note } from "@/components/common/note";
-import {
- FormCard,
- FormCardContent,
- FormCardDescription,
- FormCardFooter,
- FormCardFooterInfo,
- FormCardHeader,
- FormCardSeparator,
- FormCardTitle,
-} from "@/components/forms/form-card";
import { zodResolver } from "@hookform/resolvers/zod";
import { THEMES, THEME_KEYS } from "@openstatus/theme-store";
import { Button } from "@openstatus/ui/components/ui/button";
@@ -43,8 +28,23 @@ import {
import { isTRPCClientError } from "@trpc/client";
import { ArrowUpRight } from "lucide-react";
import { parseAsStringLiteral, useQueryStates } from "nuqs";
+import { useEffect, useState, useTransition } from "react";
import { type UseFormReturn, useForm } from "react-hook-form";
import { toast } from "sonner";
+import { z } from "zod";
+
+import { Link } from "@/components/common/link";
+import { Note } from "@/components/common/note";
+import {
+ FormCard,
+ FormCardContent,
+ FormCardDescription,
+ FormCardFooter,
+ FormCardFooterInfo,
+ FormCardHeader,
+ FormCardSeparator,
+ FormCardTitle,
+} from "@/components/forms/form-card";
const schema = z.object({
configuration: z.record(
@@ -242,7 +242,7 @@ export function FormConfiguration({
</FormItem>
)}
/>
- <p className="col-span-full text-foreground/70 text-sm">
+ <p className="text-foreground/70 col-span-full text-sm">
*Configuration settings only apply to monitor components.
</p>
<Note className="col-span-full">
@@ -417,7 +417,7 @@ function FormConfigurationDialog({
</DialogDescription>
</DialogHeader>
<div className="flex flex-col gap-2">
- <pre className="rounded-md border bg-muted/50 px-3 py-2 font-commit-mono text-sm">
+ <pre className="bg-muted/50 font-commit-mono rounded-md border px-3 py-2 text-sm">
{JSON.stringify({ type, value, uptime, theme }, null, 2)}
</pre>
</div>
diff --git a/apps/dashboard/src/components/forms/status-page/form-custom-domain.tsx b/apps/dashboard/src/components/forms/status-page/form-custom-domain.tsx
index ee6f93621..08184dc82 100644
--- a/apps/dashboard/src/components/forms/status-page/form-custom-domain.tsx
+++ b/apps/dashboard/src/components/forms/status-page/form-custom-domain.tsx
@@ -1,40 +1,38 @@
"use client";
-import {
- FormCard,
- FormCardContent,
- FormCardDescription,
- FormCardFooter,
- FormCardFooterInfo,
- FormCardHeader,
- FormCardSeparator,
- FormCardTitle,
- FormCardUpgrade,
-} from "@/components/forms/form-card";
-
-import { Label } from "@openstatus/ui/components/ui/label";
-
-// FIXME: use input-group instead
-import { InputWithAddons } from "@/components/common/input-with-addons";
import { zodResolver } from "@hookform/resolvers/zod";
import { Button } from "@openstatus/ui/components/ui/button";
-import { Lock } from "lucide-react";
-import { useForm } from "react-hook-form";
-import { z } from "zod";
-
-import { Link } from "@/components/common/link";
-import DomainConfiguration from "@/components/domains/domain-configuration";
-import { useDomainStatus } from "@/components/domains/use-domain-status";
import {
Form,
FormField,
FormItem,
FormMessage,
} from "@openstatus/ui/components/ui/form";
+import { Label } from "@openstatus/ui/components/ui/label";
import { isTRPCClientError } from "@trpc/client";
+import { Lock } from "lucide-react";
import type React from "react";
import { useEffect, useTransition } from "react";
+import { useForm } from "react-hook-form";
import { toast } from "sonner";
+import { z } from "zod";
+
+// FIXME: use input-group instead
+import { InputWithAddons } from "@/components/common/input-with-addons";
+import { Link } from "@/components/common/link";
+import DomainConfiguration from "@/components/domains/domain-configuration";
+import { useDomainStatus } from "@/components/domains/use-domain-status";
+import {
+ FormCard,
+ FormCardContent,
+ FormCardDescription,
+ FormCardFooter,
+ FormCardFooterInfo,
+ FormCardHeader,
+ FormCardSeparator,
+ FormCardTitle,
+ FormCardUpgrade,
+} from "@/components/forms/form-card";
const schema = z.object({
domain: z.string(),
diff --git a/apps/dashboard/src/components/forms/status-page/form-general.tsx b/apps/dashboard/src/components/forms/status-page/form-general.tsx
index 37083fb38..dd50c7f24 100644
--- a/apps/dashboard/src/components/forms/status-page/form-general.tsx
+++ b/apps/dashboard/src/components/forms/status-page/form-general.tsx
@@ -1,7 +1,7 @@
"use client";
-// FIXME: use input-group instead
-import { InputWithAddons } from "@/components/common/input-with-addons";
+import { zodResolver } from "@hookform/resolvers/zod";
+import { Button } from "@openstatus/ui/components/ui/button";
import {
FormControl,
FormDescription,
@@ -10,19 +10,6 @@ import {
FormLabel,
FormMessage,
} from "@openstatus/ui/components/ui/form";
-
-import {
- FormCard,
- FormCardContent,
- FormCardDescription,
- FormCardFooter,
- FormCardHeader,
- FormCardSeparator,
- FormCardTitle,
-} from "@/components/forms/form-card";
-import { useTRPC } from "@/lib/trpc/client";
-import { zodResolver } from "@hookform/resolvers/zod";
-import { Button } from "@openstatus/ui/components/ui/button";
import { Form } from "@openstatus/ui/components/ui/form";
import { Input } from "@openstatus/ui/components/ui/input";
import { Textarea } from "@openstatus/ui/components/ui/textarea";
@@ -35,6 +22,19 @@ import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+// FIXME: use input-group instead
+import { InputWithAddons } from "@/components/common/input-with-addons";
+import {
+ FormCard,
+ FormCardContent,
+ FormCardDescription,
+ FormCardFooter,
+ FormCardHeader,
+ FormCardSeparator,
+ FormCardTitle,
+} from "@/components/forms/form-card";
+import { useTRPC } from "@/lib/trpc/client";
+
const SLUG_UNIQUE_ERROR_MESSAGE =
"This slug is already taken. Please choose another one.";
@@ -217,7 +217,7 @@ export function FormGeneral({
<div className="flex items-center space-x-2">
{watchIcon ? (
<>
- <div className="size-[36px] overflow-hidden rounded-md border bg-muted">
+ <div className="bg-muted size-[36px] overflow-hidden rounded-md border">
<Image
src={watchIcon}
width={36}
diff --git a/apps/dashboard/src/components/forms/status-page/form-links.tsx b/apps/dashboard/src/components/forms/status-page/form-links.tsx
index 2e919b9da..b7ebd77a0 100644
--- a/apps/dashboard/src/components/forms/status-page/form-links.tsx
+++ b/apps/dashboard/src/components/forms/status-page/form-links.tsx
@@ -1,16 +1,3 @@
-import { useTransition } from "react";
-import { z } from "zod";
-
-import { Link } from "@/components/common/link";
-import {
- FormCard,
- FormCardContent,
- FormCardDescription,
- FormCardFooter,
- FormCardFooterInfo,
- FormCardHeader,
- FormCardTitle,
-} from "@/components/forms/form-card";
import { zodResolver } from "@hookform/resolvers/zod";
import { Button } from "@openstatus/ui/components/ui/button";
import {
@@ -24,8 +11,21 @@ import {
} from "@openstatus/ui/components/ui/form";
import { Input } from "@openstatus/ui/components/ui/input";
import { isTRPCClientError } from "@trpc/client";
+import { useTransition } from "react";
import { useForm } from "react-hook-form";
import { toast } from "sonner";
+import { z } from "zod";
+
+import { Link } from "@/components/common/link";
+import {
+ FormCard,
+ FormCardContent,
+ FormCardDescription,
+ FormCardFooter,
+ FormCardFooterInfo,
+ FormCardHeader,
+ FormCardTitle,
+} from "@/components/forms/form-card";
const schema = z.object({
homepageUrl: z.string().optional(),
@@ -112,7 +112,7 @@ export function FormLinks({
<FormMessage />
<FormDescription>
Enter the URL for your contact page. Or start with{" "}
- <code className="rounded-md bg-muted px-1 py-0.5">
+ <code className="bg-muted rounded-md px-1 py-0.5">
mailto:
</code>{" "}
to open the email client. Leave empty to hide.
diff --git a/apps/dashboard/src/components/forms/status-page/form-locale.tsx b/apps/dashboard/src/components/forms/status-page/form-locale.tsx
index e25d1371e..05067c8e4 100644
--- a/apps/dashboard/src/components/forms/status-page/form-locale.tsx
+++ b/apps/dashboard/src/components/forms/status-page/form-locale.tsx
@@ -1,19 +1,5 @@
-import { useTransition } from "react";
-import { z } from "zod";
-
-import { Link } from "@/components/common/link";
-import {
- FormCard,
- FormCardContent,
- FormCardDescription,
- FormCardFooter,
- FormCardFooterInfo,
- FormCardHeader,
- FormCardSeparator,
- FormCardTitle,
- FormCardUpgrade,
-} from "@/components/forms/form-card";
import { zodResolver } from "@hookform/resolvers/zod";
+import { type Locale, localeDetails, locales } from "@openstatus/locales";
import { Button } from "@openstatus/ui/components/ui/button";
import { Checkbox } from "@openstatus/ui/components/ui/checkbox";
import {
@@ -34,10 +20,23 @@ import {
} from "@openstatus/ui/components/ui/select";
import { isTRPCClientError } from "@trpc/client";
import { Lock } from "lucide-react";
+import { useTransition } from "react";
import { useForm } from "react-hook-form";
import { toast } from "sonner";
+import { z } from "zod";
-import { type Locale, localeDetails, locales } from "@openstatus/locales";
+import { Link } from "@/components/common/link";
+import {
+ FormCard,
+ FormCardContent,
+ FormCardDescription,
+ FormCardFooter,
+ FormCardFooterInfo,
+ FormCardHeader,
+ FormCardSeparator,
+ FormCardTitle,
+ FormCardUpgrade,
+} from "@/components/forms/form-card";
const AVAILABLE_LOCALES = locales.map((code) => ({
value: code,
@@ -189,7 +188,7 @@ export function FormLocale({
/>
<label
htmlFor="multi-locale"
- className="font-medium text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
+ className="text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
>
Enable locale switcher
</label>
diff --git a/apps/dashboard/src/components/forms/status-page/form-monitors.tsx b/apps/dashboard/src/components/forms/status-page/form-monitors.tsx
index b7918c4a2..a5ce18a71 100644
--- a/apps/dashboard/src/components/forms/status-page/form-monitors.tsx
+++ b/apps/dashboard/src/components/forms/status-page/form-monitors.tsx
@@ -1,27 +1,5 @@
"use client";
-import { Link } from "@/components/common/link";
-import {
- EmptyStateContainer,
- EmptyStateTitle,
-} from "@/components/content/empty-state";
-import {
- FormCard,
- FormCardContent,
- FormCardDescription,
- FormCardFooter,
- FormCardFooterInfo,
- FormCardHeader,
- FormCardSeparator,
- FormCardTitle,
-} from "@/components/forms/form-card";
-import {
- Sortable,
- SortableContent,
- SortableItem,
- SortableItemHandle,
- SortableOverlay,
-} from "@/components/ui/sortable";
import type { UniqueIdentifier } from "@dnd-kit/core";
import { zodResolver } from "@hookform/resolvers/zod";
import {
@@ -76,6 +54,29 @@ import { type UseFormReturn, useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+import { Link } from "@/components/common/link";
+import {
+ EmptyStateContainer,
+ EmptyStateTitle,
+} from "@/components/content/empty-state";
+import {
+ FormCard,
+ FormCardContent,
+ FormCardDescription,
+ FormCardFooter,
+ FormCardFooterInfo,
+ FormCardHeader,
+ FormCardSeparator,
+ FormCardTitle,
+} from "@/components/forms/form-card";
+import {
+ Sortable,
+ SortableContent,
+ SortableItem,
+ SortableItemHandle,
+ SortableOverlay,
+} from "@/components/ui/sortable";
+
type Monitor = {
id: number;
name: string;
@@ -296,7 +297,7 @@ export function FormMonitors({
<MonitorRow
monitor={monitor}
form={form}
- className="border-transparent border-x px-2"
+ className="border-x border-transparent px-2"
/>
);
}
@@ -485,7 +486,7 @@ export function FormMonitors({
return (
<MonitorRow
key={`${item.id}-monitor`}
- className="border-transparent border-x px-2"
+ className="border-x border-transparent px-2"
monitor={item}
form={form}
/>
@@ -529,8 +530,10 @@ export function FormMonitors({
);
}
-interface MonitorRowProps
- extends Omit<React.ComponentPropsWithoutRef<typeof SortableItem>, "value"> {
+interface MonitorRowProps extends Omit<
+ React.ComponentPropsWithoutRef<typeof SortableItem>,
+ "value"
+> {
monitor: Monitor;
form: UseFormReturn<FormValues>;
}
@@ -559,10 +562,10 @@ function MonitorRow({ monitor, className, ...props }: MonitorRowProps) {
</span>
</span>
</div>
- <div className="self-center truncate text-muted-foreground text-sm">
+ <div className="text-muted-foreground self-center truncate text-sm">
{monitor.url}
</div>
- <div className="self-center truncate text-muted-foreground text-sm">
+ <div className="text-muted-foreground self-center truncate text-sm">
{monitor.active ? "Active" : "Inactive"}
</div>
</div>
@@ -570,8 +573,10 @@ function MonitorRow({ monitor, className, ...props }: MonitorRowProps) {
);
}
-interface MonitorGroupProps
- extends Omit<React.ComponentPropsWithoutRef<typeof SortableItem>, "value"> {
+interface MonitorGroupProps extends Omit<
+ React.ComponentPropsWithoutRef<typeof SortableItem>,
+ "value"
+> {
group: MonitorGroup;
groupIndex: number;
onDeleteGroup: (groupId: number) => void;
@@ -632,7 +637,7 @@ function MonitorGroup({
);
return (
- <SortableItem value={group.id} className="rounded-md border bg-muted">
+ <SortableItem value={group.id} className="bg-muted rounded-md border">
<div className="grid grid-cols-3 gap-2 px-2 pt-2">
<div className="flex flex-row items-center gap-1 self-center">
<SortableItemHandle>
@@ -652,7 +657,7 @@ function MonitorGroup({
<FormControl>
<Input
placeholder="Group Name"
- className="w-full bg-background"
+ className="bg-background w-full"
{...field}
/>
</FormControl>
@@ -753,7 +758,7 @@ function MonitorGroup({
type="button"
variant="ghost"
size="icon"
- className="text-destructive hover:bg-destructive/10 hover:text-destructive dark:hover:bg-destructive/20 [&_svg]:size-4 [&_svg]:text-destructive"
+ className="text-destructive hover:bg-destructive/10 hover:text-destructive dark:hover:bg-destructive/20 [&_svg]:text-destructive [&_svg]:size-4"
// NOTE: delete directly if no monitors are in the group
{...(data.length === 0
? { onClick: () => onDeleteGroup(group.id) }
@@ -772,7 +777,7 @@ function MonitorGroup({
<AlertDialogFooter>
<AlertDialogCancel>Cancel</AlertDialogCancel>
<AlertDialogAction
- className="bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40"
+ className="bg-destructive hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 text-white shadow-xs"
onClick={() => onDeleteGroup(group.id)}
>
Delete
diff --git a/apps/dashboard/src/components/forms/status-page/form-page-access.tsx b/apps/dashboard/src/components/forms/status-page/form-page-access.tsx
index 1e422ecbb..8dcae8193 100644
--- a/apps/dashboard/src/components/forms/status-page/form-page-access.tsx
+++ b/apps/dashboard/src/components/forms/status-page/form-page-access.tsx
@@ -1,17 +1,5 @@
"use client";
-import { Link } from "@/components/common/link";
-import {
- FormCard,
- FormCardContent,
- FormCardContentUpgrade,
- FormCardDescription,
- FormCardFooter,
- FormCardFooterInfo,
- FormCardHeader,
- FormCardSeparator,
- FormCardTitle,
-} from "@/components/forms/form-card";
import { zodResolver } from "@hookform/resolvers/zod";
import { Button } from "@openstatus/ui/components/ui/button";
import {
@@ -37,6 +25,19 @@ import { type Resolver, useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+import { Link } from "@/components/common/link";
+import {
+ FormCard,
+ FormCardContent,
+ FormCardContentUpgrade,
+ FormCardDescription,
+ FormCardFooter,
+ FormCardFooterInfo,
+ FormCardHeader,
+ FormCardSeparator,
+ FormCardTitle,
+} from "@/components/forms/form-card";
+
const accessTypeSchema = z.enum([
"public",
"password",
@@ -173,7 +174,7 @@ export function FormPageAccess({
<FormItem
key={type.value}
className={cn(
- "relative flex cursor-pointer flex-row items-center gap-3 rounded-md border border-input px-2 py-3 text-center shadow-xs outline-none transition-[color,box-shadow] has-aria-[invalid=true]:border-destructive has-data-[state=checked]:border-primary/50 has-focus-visible:border-ring has-focus-visible:ring-[3px] has-focus-visible:ring-ring/50",
+ "border-input has-aria-[invalid=true]:border-destructive has-data-[state=checked]:border-primary/50 has-focus-visible:border-ring has-focus-visible:ring-ring/50 relative flex cursor-pointer flex-row items-center gap-3 rounded-md border px-2 py-3 text-center shadow-xs transition-[color,box-shadow] outline-none has-focus-visible:ring-[3px]",
)}
>
<FormControl>
@@ -183,11 +184,11 @@ export function FormPageAccess({
/>
</FormControl>
<type.icon
- className="shrink-0 text-muted-foreground"
+ className="text-muted-foreground shrink-0"
size={16}
aria-hidden="true"
/>
- <FormLabel className="cursor-pointer font-medium text-foreground text-xs leading-none after:absolute after:inset-0">
+ <FormLabel className="text-foreground cursor-pointer text-xs leading-none font-medium after:absolute after:inset-0">
{type.label}
</FormLabel>
</FormItem>
diff --git a/apps/dashboard/src/components/forms/status-page/theme-picker.tsx b/apps/dashboard/src/components/forms/status-page/theme-picker.tsx
index f6ae5fb14..d145a9905 100644
--- a/apps/dashboard/src/components/forms/status-page/theme-picker.tsx
+++ b/apps/dashboard/src/components/forms/status-page/theme-picker.tsx
@@ -1,6 +1,5 @@
"use client";
-import { Link } from "@/components/common/link";
import { THEMES, THEME_KEYS, type ThemeKey } from "@openstatus/theme-store";
import { Button } from "@openstatus/ui/components/ui/button";
import {
@@ -22,6 +21,8 @@ import { Check, ChevronsUpDown } from "lucide-react";
import { useTheme } from "next-themes";
import { useEffect, useState } from "react";
+import { Link } from "@/components/common/link";
+
// Color swatches shown next to each theme option. Mirrors the playground
// convention at `apps/status-page/.../public/client.tsx`.
const SWATCH_VARS = [
@@ -44,12 +45,12 @@ export function ThemeSwatches({ themeKey }: { themeKey: ThemeKey }) {
const palette =
mounted && resolvedTheme === "dark" ? theme.dark : theme.light;
return (
- <div className="-space-x-1 flex shrink-0 items-center">
+ <div className="flex shrink-0 items-center -space-x-1">
{SWATCH_VARS.map((cssVar) => (
<span
key={cssVar}
aria-hidden
- className="size-3 rounded-full border border-border ring-1 ring-background"
+ className="border-border ring-background size-3 rounded-full border ring-1"
style={{ background: palette[cssVar] }}
/>
))}
diff --git a/apps/dashboard/src/components/forms/status-page/update.tsx b/apps/dashboard/src/components/forms/status-page/update.tsx
index 2cc590459..665c64862 100644
--- a/apps/dashboard/src/components/forms/status-page/update.tsx
+++ b/apps/dashboard/src/components/forms/status-page/update.tsx
@@ -1,11 +1,13 @@
-import { Link } from "@/components/common/link";
-import { Note } from "@/components/common/note";
-import { FormCardGroup } from "@/components/forms/form-card";
-import { useTRPC } from "@/lib/trpc/client";
import type { ThemeKey } from "@openstatus/theme-store";
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
import { Info } from "lucide-react";
import { useParams, useRouter } from "next/navigation";
+
+import { Link } from "@/components/common/link";
+import { Note } from "@/components/common/note";
+import { FormCardGroup } from "@/components/forms/form-card";
+import { useTRPC } from "@/lib/trpc/client";
+
import { FormAppearance } from "./form-appearance";
import { FormCustomDomain } from "./form-custom-domain";
import { FormDangerZone } from "./form-danger-zone";
@@ -199,7 +201,7 @@ export function FormStatusPageUpdate() {
authEmailDomains: values.authEmailDomains,
allowedIpRanges:
values.accessType === "ip-restriction"
- ? values.allowedIpRanges ?? null
+ ? (values.allowedIpRanges ?? null)
: null,
allowIndex: values.allowIndex,
});
diff --git a/apps/dashboard/src/components/forms/status-report-update/form-status-report.tsx b/apps/dashboard/src/components/forms/status-report-update/form-status-report.tsx
index 3baeb753c..b2127bb59 100644
--- a/apps/dashboard/src/components/forms/status-report-update/form-status-report.tsx
+++ b/apps/dashboard/src/components/forms/status-report-update/form-status-report.tsx
@@ -1,20 +1,5 @@
"use client";
-import { ProcessMessage } from "@/components/content/process-message";
-import { FormAlertDialog } from "@/components/forms/form-alert-dialog";
-import {
- FormCardContent,
- FormCardSeparator,
-} from "@/components/forms/form-card";
-import {
- FormCard,
- FormCardFooter,
- FormCardHeader,
- FormCardTitle,
-} from "@/components/forms/form-card";
-import { useFormSheetDirty } from "@/components/forms/form-sheet";
-import { colors } from "@/data/status-report-updates.client";
-import { useTRPC } from "@/lib/trpc/client";
import { zodResolver } from "@hookform/resolvers/zod";
import {
type StatusReportUpdate,
@@ -62,6 +47,22 @@ import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+import { ProcessMessage } from "@/components/content/process-message";
+import { FormAlertDialog } from "@/components/forms/form-alert-dialog";
+import {
+ FormCardContent,
+ FormCardSeparator,
+} from "@/components/forms/form-card";
+import {
+ FormCard,
+ FormCardFooter,
+ FormCardHeader,
+ FormCardTitle,
+} from "@/components/forms/form-card";
+import { useFormSheetDirty } from "@/components/forms/form-sheet";
+import { colors } from "@/data/status-report-updates.client";
+import { useTRPC } from "@/lib/trpc/client";
+
const schema = z.object({
status: z.enum(statusReportStatus),
message: z.string(),
@@ -287,7 +288,7 @@ export function FormStatusReportUpdateCard({
}
}}
/>
- <div className="pointer-events-none absolute inset-y-0 start-0 flex items-center justify-center ps-3 text-muted-foreground/80 peer-disabled:opacity-50">
+ <div className="text-muted-foreground/80 pointer-events-none absolute inset-y-0 start-0 flex items-center justify-center ps-3 peer-disabled:opacity-50">
<ClockIcon size={16} aria-hidden="true" />
</div>
</div>
@@ -337,7 +338,7 @@ export function FormStatusReportUpdateCard({
<TabsContent value="tab-2">
<div className="grid gap-2">
<Label>Preview</Label>
- <div className="prose prose-sm dark:prose-invert rounded-md border px-3 py-2 text-foreground text-sm">
+ <div className="prose prose-sm dark:prose-invert text-foreground rounded-md border px-3 py-2 text-sm">
<ProcessMessage value={watchMessage} />
</div>
</div>
diff --git a/apps/dashboard/src/components/forms/status-report-update/form.tsx b/apps/dashboard/src/components/forms/status-report-update/form.tsx
index ad2c8bebe..d7932cd14 100644
--- a/apps/dashboard/src/components/forms/status-report-update/form.tsx
+++ b/apps/dashboard/src/components/forms/status-report-update/form.tsx
@@ -1,13 +1,5 @@
"use client";
-import { ProcessMessage } from "@/components/content/process-message";
-import {
- FormCardContent,
- FormCardSeparator,
-} from "@/components/forms/form-card";
-import { useFormSheetDirty } from "@/components/forms/form-sheet";
-import { colors } from "@/data/status-report-updates.client";
-import { useTRPC } from "@/lib/trpc/client";
import { zodResolver } from "@hookform/resolvers/zod";
import { statusReportStatus } from "@openstatus/db/src/schema";
import { Button } from "@openstatus/ui/components/ui/button";
@@ -51,6 +43,15 @@ import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+import { ProcessMessage } from "@/components/content/process-message";
+import {
+ FormCardContent,
+ FormCardSeparator,
+} from "@/components/forms/form-card";
+import { useFormSheetDirty } from "@/components/forms/form-sheet";
+import { colors } from "@/data/status-report-updates.client";
+import { useTRPC } from "@/lib/trpc/client";
+
const schema = z.object({
status: z.enum(statusReportStatus),
message: z.string(),
@@ -249,7 +250,7 @@ export function FormStatusReportUpdate({
}
}}
/>
- <div className="pointer-events-none absolute inset-y-0 start-0 flex items-center justify-center ps-3 text-muted-foreground/80 peer-disabled:opacity-50">
+ <div className="text-muted-foreground/80 pointer-events-none absolute inset-y-0 start-0 flex items-center justify-center ps-3 peer-disabled:opacity-50">
<ClockIcon size={16} aria-hidden="true" />
</div>
</div>
@@ -299,7 +300,7 @@ export function FormStatusReportUpdate({
<TabsContent value="tab-2">
<div className="grid gap-2">
<Label>Preview</Label>
- <div className="prose prose-sm dark:prose-invert rounded-md border px-3 py-2 text-foreground text-sm">
+ <div className="prose prose-sm dark:prose-invert text-foreground rounded-md border px-3 py-2 text-sm">
<ProcessMessage value={watchMessage} />
</div>
</div>
diff --git a/apps/dashboard/src/components/forms/status-report-update/sheet.tsx b/apps/dashboard/src/components/forms/status-report-update/sheet.tsx
index 871c11f72..f16d61fa1 100644
--- a/apps/dashboard/src/components/forms/status-report-update/sheet.tsx
+++ b/apps/dashboard/src/components/forms/status-report-update/sheet.tsx
@@ -1,5 +1,8 @@
"use client";
+import { Button } from "@openstatus/ui/components/ui/button";
+import { useState } from "react";
+
import { FormCard, FormCardGroup } from "@/components/forms/form-card";
import {
FormSheetContent,
@@ -14,8 +17,6 @@ import {
FormStatusReportUpdate,
type FormValues,
} from "@/components/forms/status-report-update/form";
-import { Button } from "@openstatus/ui/components/ui/button";
-import { useState } from "react";
export function FormSheetStatusReportUpdate({
children,
diff --git a/apps/dashboard/src/components/forms/status-report/form.tsx b/apps/dashboard/src/components/forms/status-report/form.tsx
index 1049d51f0..955b59e7e 100644
--- a/apps/dashboard/src/components/forms/status-report/form.tsx
+++ b/apps/dashboard/src/components/forms/status-report/form.tsx
@@ -1,21 +1,5 @@
"use client";
-import {
- EmptyStateContainer,
- EmptyStateTitle,
-} from "@/components/content/empty-state";
-import { ProcessMessage } from "@/components/content/process-message";
-import {
- FormCardContent,
- FormCardSeparator,
-} from "@/components/forms/form-card";
-import { useFormSheetDirty } from "@/components/forms/form-sheet";
-import {
- CheckboxTree,
- type CheckboxTreeItem,
-} from "@/components/ui/checkbox-tree";
-import { colors } from "@/data/status-report-updates.client";
-import { useTRPC } from "@/lib/trpc/client";
import { zodResolver } from "@hookform/resolvers/zod";
import { statusReportStatus } from "@openstatus/db/src/schema";
import { Button } from "@openstatus/ui/components/ui/button";
@@ -59,6 +43,23 @@ import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+import {
+ EmptyStateContainer,
+ EmptyStateTitle,
+} from "@/components/content/empty-state";
+import { ProcessMessage } from "@/components/content/process-message";
+import {
+ FormCardContent,
+ FormCardSeparator,
+} from "@/components/forms/form-card";
+import { useFormSheetDirty } from "@/components/forms/form-sheet";
+import {
+ CheckboxTree,
+ type CheckboxTreeItem,
+} from "@/components/ui/checkbox-tree";
+import { colors } from "@/data/status-report-updates.client";
+import { useTRPC } from "@/lib/trpc/client";
+
const schema = z.object({
status: z.enum(statusReportStatus),
title: z.string(),
@@ -289,7 +290,7 @@ export function FormStatusReport({
}
}}
/>
- <div className="pointer-events-none absolute inset-y-0 start-0 flex items-center justify-center ps-3 text-muted-foreground/80 peer-disabled:opacity-50">
+ <div className="text-muted-foreground/80 pointer-events-none absolute inset-y-0 start-0 flex items-center justify-center ps-3 peer-disabled:opacity-50">
<ClockIcon size={16} aria-hidden="true" />
</div>
</div>
@@ -340,7 +341,7 @@ export function FormStatusReport({
<TabsContent value="tab-2">
<div className="grid gap-2">
<Label>Preview</Label>
- <div className="prose dark:prose-invert prose-sm rounded-md border px-3 py-2 text-foreground text-sm">
+ <div className="prose dark:prose-invert prose-sm text-foreground rounded-md border px-3 py-2 text-sm">
<ProcessMessage value={watchMessage} />
</div>
</div>
diff --git a/apps/dashboard/src/components/forms/status-report/sheet.tsx b/apps/dashboard/src/components/forms/status-report/sheet.tsx
index 7553adb2a..226d77045 100644
--- a/apps/dashboard/src/components/forms/status-report/sheet.tsx
+++ b/apps/dashboard/src/components/forms/status-report/sheet.tsx
@@ -1,5 +1,9 @@
"use client";
+import { Button } from "@openstatus/ui/components/ui/button";
+import { Separator } from "@openstatus/ui/components/ui/separator";
+import { useState } from "react";
+
import { FormCard, FormCardGroup } from "@/components/forms/form-card";
import {
FormSheetContent,
@@ -15,9 +19,6 @@ import {
type FormValues,
} from "@/components/forms/status-report/form";
import type { CheckboxTreeItem } from "@/components/ui/checkbox-tree";
-import { Button } from "@openstatus/ui/components/ui/button";
-import { Separator } from "@openstatus/ui/components/ui/separator";
-import { useState } from "react";
export function FormSheetStatusReport({
children,
@@ -45,7 +46,7 @@ export function FormSheetStatusReport({
</FormSheetHeader>
{warning ? (
<>
- <p className="px-4 py-4 text-sm text-warning">{warning}</p>
+ <p className="text-warning px-4 py-4 text-sm">{warning}</p>
<Separator />
</>
) : null}
diff --git a/apps/dashboard/src/components/forms/step-card.tsx b/apps/dashboard/src/components/forms/step-card.tsx
index 764b1c7fc..4cbcce0d1 100644
--- a/apps/dashboard/src/components/forms/step-card.tsx
+++ b/apps/dashboard/src/components/forms/step-card.tsx
@@ -1,3 +1,4 @@
+import { Badge } from "@openstatus/ui/components/ui/badge";
import {
Card,
CardContent,
@@ -5,8 +6,6 @@ import {
CardTitle,
} from "@openstatus/ui/components/ui/card";
import { cn } from "@openstatus/ui/lib/utils";
-
-import { Badge } from "@openstatus/ui/components/ui/badge";
import { type VariantProps, cva } from "class-variance-authority";
import { Check } from "lucide-react";
@@ -15,7 +14,7 @@ export type StepCardVariant = NonNullable<
>;
const stepCardVariants = cva(
- "group relative w-full overflow-hidden py-0 gap-0 shadow-none",
+ "group relative w-full gap-0 overflow-hidden py-0 shadow-none",
{
variants: {
variant: {
@@ -74,10 +73,10 @@ export function StepCardIndicator({
role="img"
aria-label={`Step ${step}`}
className={cn(
- "flex h-6 w-6 shrink-0 items-center justify-center rounded-full font-medium text-xs",
+ "flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-xs font-medium",
"group-data-[variant=completed]:bg-success group-data-[variant=completed]:text-white",
- "group-data-[variant=active]:border group-data-[variant=active]:border-foreground group-data-[variant=active]:bg-background group-data-[variant=active]:text-foreground",
- "group-data-[variant=upcoming]:border group-data-[variant=upcoming]:border-border group-data-[variant=upcoming]:bg-muted group-data-[variant=upcoming]:text-muted-foreground",
+ "group-data-[variant=active]:border-foreground group-data-[variant=active]:bg-background group-data-[variant=active]:text-foreground group-data-[variant=active]:border",
+ "group-data-[variant=upcoming]:border-border group-data-[variant=upcoming]:bg-muted group-data-[variant=upcoming]:text-muted-foreground group-data-[variant=upcoming]:border",
className,
)}
{...props}
@@ -149,7 +148,7 @@ export function StepCardContent({
className={cn(
"px-4 pb-4",
"group-data-[variant=completed]:hidden",
- "group-data-[variant=upcoming]:select-none group-data-[variant=upcoming]:opacity-50",
+ "group-data-[variant=upcoming]:opacity-50 group-data-[variant=upcoming]:select-none",
className,
)}
{...props}
diff --git a/apps/dashboard/src/components/forms/subscriber/form.tsx b/apps/dashboard/src/components/forms/subscriber/form.tsx
index 96bfcb7d8..a9af16238 100644
--- a/apps/dashboard/src/components/forms/subscriber/form.tsx
+++ b/apps/dashboard/src/components/forms/subscriber/form.tsx
@@ -1,18 +1,5 @@
"use client";
-import {
- EmptyStateContainer,
- EmptyStateTitle,
-} from "@/components/content/empty-state";
-import {
- FormCardContent,
- FormCardSeparator,
-} from "@/components/forms/form-card";
-import { useFormSheetDirty } from "@/components/forms/form-sheet";
-import {
- CheckboxTree,
- type CheckboxTreeItem,
-} from "@/components/ui/checkbox-tree";
import { zodResolver } from "@hookform/resolvers/zod";
import { detectWebhookFlavor } from "@openstatus/subscriptions/client";
import { Button } from "@openstatus/ui/components/ui/button";
@@ -35,6 +22,20 @@ import { useFieldArray, useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+import {
+ EmptyStateContainer,
+ EmptyStateTitle,
+} from "@/components/content/empty-state";
+import {
+ FormCardContent,
+ FormCardSeparator,
+} from "@/components/forms/form-card";
+import { useFormSheetDirty } from "@/components/forms/form-sheet";
+import {
+ CheckboxTree,
+ type CheckboxTreeItem,
+} from "@/components/ui/checkbox-tree";
+
const headerSchema = z.object({
key: z.string().min(1, "Key is required"),
value: z.string(),
diff --git a/apps/dashboard/src/components/forms/subscriber/sheet.tsx b/apps/dashboard/src/components/forms/subscriber/sheet.tsx
index 25cb5685a..b0137b639 100644
--- a/apps/dashboard/src/components/forms/subscriber/sheet.tsx
+++ b/apps/dashboard/src/components/forms/subscriber/sheet.tsx
@@ -1,5 +1,8 @@
"use client";
+import { Button } from "@openstatus/ui/components/ui/button";
+import { useState } from "react";
+
import { FormCard, FormCardGroup } from "@/components/forms/form-card";
import {
FormSheetContent,
@@ -16,8 +19,6 @@ import {
type SubscriberFormValues,
} from "@/components/forms/subscriber/form";
import type { CheckboxTreeItem } from "@/components/ui/checkbox-tree";
-import { Button } from "@openstatus/ui/components/ui/button";
-import { useState } from "react";
type FormSheetSubscriberProps = {
children?: React.ReactNode;
diff --git a/apps/dashboard/src/components/forms/support-contact/dialog.tsx b/apps/dashboard/src/components/forms/support-contact/dialog.tsx
index 36e91cb04..bab020f44 100644
--- a/apps/dashboard/src/components/forms/support-contact/dialog.tsx
+++ b/apps/dashboard/src/components/forms/support-contact/dialog.tsx
@@ -1,5 +1,3 @@
-import { Link } from "@/components/common/link";
-import { useTRPC } from "@/lib/trpc/client";
import {
Dialog,
DialogContent,
@@ -11,6 +9,10 @@ import {
import { useIsMobile } from "@openstatus/ui/hooks/use-mobile";
import { useMutation, useQuery } from "@tanstack/react-query";
import { useState } from "react";
+
+import { Link } from "@/components/common/link";
+import { useTRPC } from "@/lib/trpc/client";
+
import { ContactForm, type FormValues } from "./form";
export function FormDialogSupportContact({
diff --git a/apps/dashboard/src/components/forms/support-contact/form.tsx b/apps/dashboard/src/components/forms/support-contact/form.tsx
index 91d7fd91a..a96bb5141 100644
--- a/apps/dashboard/src/components/forms/support-contact/form.tsx
+++ b/apps/dashboard/src/components/forms/support-contact/form.tsx
@@ -1,10 +1,8 @@
"use client";
import { zodResolver } from "@hookform/resolvers/zod";
-import { useTransition } from "react";
-import { useForm } from "react-hook-form";
-import { z } from "zod";
-
+import { Button } from "@openstatus/ui/components/ui/button";
+import { Checkbox } from "@openstatus/ui/components/ui/checkbox";
import {
Form,
FormControl,
@@ -13,9 +11,6 @@ import {
FormLabel,
FormMessage,
} from "@openstatus/ui/components/ui/form";
-
-import { Button } from "@openstatus/ui/components/ui/button";
-import { Checkbox } from "@openstatus/ui/components/ui/checkbox";
import { Input } from "@openstatus/ui/components/ui/input";
import { SelectItem } from "@openstatus/ui/components/ui/select";
import {
@@ -26,7 +21,10 @@ import { SelectTrigger } from "@openstatus/ui/components/ui/select";
import { Select } from "@openstatus/ui/components/ui/select";
import { Textarea } from "@openstatus/ui/components/ui/textarea";
import { cn } from "@openstatus/ui/lib/utils";
+import { useTransition } from "react";
+import { useForm } from "react-hook-form";
import { toast } from "sonner";
+import { z } from "zod";
export const types = [
{
@@ -192,7 +190,7 @@ export function ContactForm({
onCheckedChange={field.onChange}
/>
</FormControl>
- <FormLabel className="font-normal leading-none">
+ <FormLabel className="leading-none font-normal">
This bug prevents me from using the product.
</FormLabel>
</FormItem>
diff --git a/apps/dashboard/src/components/layout/auth-layout.tsx b/apps/dashboard/src/components/layout/auth-layout.tsx
index 1b67c7e7d..9311a23c4 100644
--- a/apps/dashboard/src/components/layout/auth-layout.tsx
+++ b/apps/dashboard/src/components/layout/auth-layout.tsx
@@ -1,11 +1,12 @@
+import { Button } from "@openstatus/ui/components/ui/button";
+import { BookOpen } from "lucide-react";
+
import {
SHELL_CONTENT_COLUMN,
SHELL_FORM_COLUMN,
} from "@/components/layout/shell-columns";
import { Wordmark } from "@/components/layout/wordmark";
import { cn } from "@/lib/utils";
-import { Button } from "@openstatus/ui/components/ui/button";
-import { BookOpen } from "lucide-react";
export function AuthLayout({ children }: { children: React.ReactNode }) {
return (
@@ -36,7 +37,7 @@ export function AuthLayout({ children }: { children: React.ReactNode }) {
*/}
<main
className={cn(
- "container col-span-1 mx-auto flex items-center justify-center md:col-span-1",
+ "col-span-1 container mx-auto flex items-center justify-center md:col-span-1",
SHELL_FORM_COLUMN,
)}
>
@@ -44,13 +45,13 @@ export function AuthLayout({ children }: { children: React.ReactNode }) {
</main>
<aside
className={cn(
- "col-span-1 flex w-full flex-col gap-4 border border-border bg-sidebar p-4 backdrop-blur-[2px] md:p-8",
+ "border-border bg-sidebar col-span-1 flex w-full flex-col gap-4 border p-4 backdrop-blur-[2px] md:p-8",
SHELL_CONTENT_COLUMN,
)}
>
<div className="mx-auto flex w-full max-w-2xl flex-1 flex-col justify-center gap-8 text-center md:text-left">
<div className="mx-auto grid gap-3">
- <h1 className="font-cal text-3xl text-foreground">
+ <h1 className="font-cal text-foreground text-3xl">
Your status page, live in minutes.
</h1>
<p className="font-commit-mono text-muted-foreground">
diff --git a/apps/dashboard/src/components/layout/onboarding-layout.tsx b/apps/dashboard/src/components/layout/onboarding-layout.tsx
index 2c1d5df83..f37f4b5f4 100644
--- a/apps/dashboard/src/components/layout/onboarding-layout.tsx
+++ b/apps/dashboard/src/components/layout/onboarding-layout.tsx
@@ -1,5 +1,13 @@
"use client";
+import { Button } from "@openstatus/ui/components/ui/button";
+import {
+ ButtonGroup,
+ ButtonGroupText,
+} from "@openstatus/ui/components/ui/button-group";
+import { useCopyToClipboard } from "@openstatus/ui/hooks/use-copy-to-clipboard";
+import { ArrowUpRight, Check, Copy } from "lucide-react";
+
import {
SHELL_CONTENT_COLUMN,
SHELL_FORM_COLUMN,
@@ -8,13 +16,6 @@ import { Wordmark } from "@/components/layout/wordmark";
import { NavFeedback } from "@/components/nav/nav-feedback";
import { NavLogout } from "@/components/nav/nav-logout";
import { cn } from "@/lib/utils";
-import { Button } from "@openstatus/ui/components/ui/button";
-import {
- ButtonGroup,
- ButtonGroupText,
-} from "@openstatus/ui/components/ui/button-group";
-import { useCopyToClipboard } from "@openstatus/ui/hooks/use-copy-to-clipboard";
-import { ArrowUpRight, Check, Copy } from "lucide-react";
type StepStatus = "current" | "completed" | "upcoming";
@@ -33,12 +34,12 @@ export function OnboardingLayout({
return (
<div
className={cn(
- "flex min-h-dvh flex-col bg-background md:h-dvh md:min-h-0 md:overflow-hidden",
+ "bg-background flex min-h-dvh flex-col md:h-dvh md:min-h-0 md:overflow-hidden",
className,
)}
{...props}
>
- <header className="flex h-14 shrink-0 items-center justify-between border-border border-b px-4 md:px-6">
+ <header className="border-border flex h-14 shrink-0 items-center justify-between border-b px-4 md:px-6">
<Wordmark size={24} showText />
<div className="flex items-center gap-2">
<NavFeedback />
@@ -80,7 +81,7 @@ export function OnboardingStepper({
/>
<div
className={cn(
- "flex items-center gap-1.5 font-commit-mono text-xs tracking-tight transition-colors [&>svg]:size-3 [&>svg]:shrink-0",
+ "font-commit-mono flex items-center gap-1.5 text-xs tracking-tight transition-colors [&>svg]:size-3 [&>svg]:shrink-0",
active ? "text-foreground" : "text-muted-foreground/70",
)}
>
@@ -133,7 +134,7 @@ export function OnboardingResultColumn({
return (
<section
className={cn(
- "col-span-1 flex w-full flex-col gap-3 border-border border-t bg-sidebar p-4 md:min-h-0 md:overflow-hidden md:border-t-0 md:border-l md:p-8",
+ "border-border bg-sidebar col-span-1 flex w-full flex-col gap-3 border-t p-4 md:min-h-0 md:overflow-hidden md:border-t-0 md:border-l md:p-8",
SHELL_CONTENT_COLUMN,
className,
)}
@@ -162,7 +163,7 @@ export function OnboardingStepTitle({
return (
<h1
className={cn(
- "font-cal text-2xl text-foreground tracking-tight",
+ "font-cal text-foreground text-2xl tracking-tight",
className,
)}
{...props}
@@ -177,7 +178,7 @@ export function OnboardingStepDescription({
return (
<p
className={cn(
- "text-pretty font-commit-mono text-muted-foreground text-sm",
+ "font-commit-mono text-muted-foreground text-sm text-pretty",
className,
)}
{...props}
@@ -192,7 +193,7 @@ export function OnboardingResultHeading({
return (
<h2
className={cn(
- "font-commit-mono font-medium text-foreground text-sm uppercase",
+ "font-commit-mono text-foreground text-sm font-medium uppercase",
className,
)}
{...props}
@@ -230,7 +231,7 @@ export function OnboardingPreviewPlaceholder({
return (
<div
className={cn(
- "relative overflow-hidden rounded-md border border-border bg-background md:min-h-0 md:flex-1",
+ "border-border bg-background relative overflow-hidden rounded-md border md:min-h-0 md:flex-1",
className,
)}
{...props}
@@ -260,7 +261,7 @@ export function OnboardingPreviewPlaceholderOverlay({
return (
<div
className={cn(
- "absolute inset-0 flex flex-col items-center justify-center gap-2 bg-gradient-to-b from-0% from-transparent to-90% to-background p-2",
+ "to-background absolute inset-0 flex flex-col items-center justify-center gap-2 bg-gradient-to-b from-transparent from-0% to-90% p-2",
className,
)}
{...props}
@@ -275,7 +276,7 @@ export function OnboardingPreviewPlaceholderText({
return (
<p
className={cn(
- "max-w-xs text-pretty rounded-md border border-border p-2 text-center text-foreground text-sm backdrop-blur-sm",
+ "border-border text-foreground max-w-xs rounded-md border p-2 text-center text-sm text-pretty backdrop-blur-sm",
className,
)}
{...props}
@@ -306,10 +307,10 @@ export function OnboardingLockedSummary({
<div className={cn("space-y-3", className)} {...props}>
<ButtonGroup className="w-full">
<ButtonGroupText className="min-w-0 flex-1 justify-start">
- <code className="truncate font-mono text-foreground text-sm">
+ <code className="text-foreground truncate font-mono text-sm">
{value}
</code>
- <Check className="size-3 shrink-0 text-success" />
+ <Check className="text-success size-3 shrink-0" />
</ButtonGroupText>
<Button
variant="outline"
diff --git a/apps/dashboard/src/components/layout/wordmark.tsx b/apps/dashboard/src/components/layout/wordmark.tsx
index 087045f3f..dbbfc1fbe 100644
--- a/apps/dashboard/src/components/layout/wordmark.tsx
+++ b/apps/dashboard/src/components/layout/wordmark.tsx
@@ -1,6 +1,7 @@
-import { cn } from "@/lib/utils";
import Image from "next/image";
+import { cn } from "@/lib/utils";
+
export function Wordmark({
size = 24,
showText = false,
@@ -27,7 +28,7 @@ export function Wordmark({
alt="openstatus"
height={size}
width={size}
- className="rounded-full border border-border"
+ className="border-border rounded-full border"
/>
</span>
{showText ? (
diff --git a/apps/dashboard/src/components/metric/global-uptime/section.tsx b/apps/dashboard/src/components/metric/global-uptime/section.tsx
index 32f5b29d5..9c533941c 100644
--- a/apps/dashboard/src/components/metric/global-uptime/section.tsx
+++ b/apps/dashboard/src/components/metric/global-uptime/section.tsx
@@ -1,5 +1,8 @@
"use client";
+import { useQuery } from "@tanstack/react-query";
+import { formatDistanceToNow } from "date-fns";
+
import {
MetricCard,
MetricCardBadge,
@@ -9,16 +12,13 @@ import {
MetricCardTitle,
MetricCardValue,
} from "@/components/metric/metric-card";
-import { useTRPC } from "@/lib/trpc/client";
-import { useQuery } from "@tanstack/react-query";
-
import { type PERIODS, mapMetrics, metricsCards } from "@/data/metrics.client";
import {
formatMilliseconds,
formatNumber,
formatPercentage,
} from "@/lib/formatter";
-import { formatDistanceToNow } from "date-fns";
+import { useTRPC } from "@/lib/trpc/client";
type Metric = {
label: string;
diff --git a/apps/dashboard/src/components/metric/metric-card.tsx b/apps/dashboard/src/components/metric/metric-card.tsx
index 13f9b9b9b..c838f6016 100644
--- a/apps/dashboard/src/components/metric/metric-card.tsx
+++ b/apps/dashboard/src/components/metric/metric-card.tsx
@@ -1,15 +1,13 @@
-import type { VariantProps } from "class-variance-authority";
-import { cva } from "class-variance-authority";
-import { ChevronDown, ChevronUp } from "lucide-react";
-
import { Badge } from "@openstatus/ui/components/ui/badge";
import { Skeleton } from "@openstatus/ui/components/ui/skeleton";
-
import { cn } from "@openstatus/ui/lib/utils";
+import type { VariantProps } from "class-variance-authority";
+import { cva } from "class-variance-authority";
+import { ChevronDown, ChevronUp } from "lucide-react";
import type React from "react";
const metricCardVariants = cva(
- "flex flex-col gap-1 border rounded-lg px-3 py-2 text-card-foreground",
+ "text-card-foreground flex flex-col gap-1 rounded-lg border px-3 py-2",
{
variants: {
variant: {
@@ -51,7 +49,7 @@ export function MetricCardTitle({
return (
<p
className={cn(
- "font-commit-mono font-medium text-sm tracking-tight ",
+ "font-commit-mono text-sm font-medium tracking-tight",
className,
)}
{...props}
@@ -88,7 +86,7 @@ export function MetricCardValue({
...props
}: React.ComponentProps<"p">) {
return (
- <p className={cn("font-medium text-foreground", className)} {...props}>
+ <p className={cn("text-foreground font-medium", className)} {...props}>
{children}
</p>
);
@@ -160,7 +158,7 @@ export function MetricCardBadge({
}
const metricCardButtonVariants = cva(
- "group w-full text-left transition-all rounded-md outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 cursor-pointer",
+ "group focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 w-full cursor-pointer rounded-md text-left transition-all outline-none focus-visible:ring-[3px]",
// TODO: discuss if we want rings
);
diff --git a/apps/dashboard/src/components/nav/app-header.tsx b/apps/dashboard/src/components/nav/app-header.tsx
index 6bbbf0e12..a66e29d12 100644
--- a/apps/dashboard/src/components/nav/app-header.tsx
+++ b/apps/dashboard/src/components/nav/app-header.tsx
@@ -8,7 +8,7 @@ export function AppHeader({
return (
<header
className={cn(
- "sticky top-0 z-10 flex h-14 shrink-0 items-center gap-2 border-b bg-background px-2",
+ "bg-background sticky top-0 z-10 flex h-14 shrink-0 items-center gap-2 border-b px-2",
className,
)}
{...props}
diff --git a/apps/dashboard/src/components/nav/app-sidebar.tsx b/apps/dashboard/src/components/nav/app-sidebar.tsx
index 454656e4b..570f8a8e9 100644
--- a/apps/dashboard/src/components/nav/app-sidebar.tsx
+++ b/apps/dashboard/src/components/nav/app-sidebar.tsx
@@ -1,5 +1,20 @@
"use client";
+import {
+ Sidebar,
+ SidebarContent,
+ SidebarFooter,
+ SidebarHeader,
+ SidebarRail,
+ SidebarTrigger,
+ useSidebar,
+} from "@openstatus/ui/components/ui/sidebar";
+import {
+ Tooltip,
+ TooltipContent,
+ TooltipProvider,
+ TooltipTrigger,
+} from "@openstatus/ui/components/ui/tooltip";
import {
Activity,
Bell,
@@ -17,21 +32,7 @@ import { NavOverview } from "@/components/nav/nav-overview";
import { NavStatusPages } from "@/components/nav/nav-status-pages";
import { NavUser } from "@/components/nav/nav-user";
import { WorkspaceSwitcher } from "@/components/nav/workspace-switcher";
-import {
- Sidebar,
- SidebarContent,
- SidebarFooter,
- SidebarHeader,
- SidebarRail,
- SidebarTrigger,
- useSidebar,
-} from "@openstatus/ui/components/ui/sidebar";
-import {
- Tooltip,
- TooltipContent,
- TooltipProvider,
- TooltipTrigger,
-} from "@openstatus/ui/components/ui/tooltip";
+
import { NavBanner } from "./nav-banner";
import { NavHelp } from "./nav-help";
@@ -134,10 +135,10 @@ export function AppSidebarTrigger() {
<TooltipContent side="right">
<p className="mr-px inline-flex items-center">
Toggle Sidebar{" "}
- <Kbd className="border-muted-foreground bg-primary font-mono text-background">
+ <Kbd className="border-muted-foreground bg-primary text-background font-mono">
⌘
</Kbd>
- <Kbd className="border-muted-foreground bg-primary font-mono text-background">
+ <Kbd className="border-muted-foreground bg-primary text-background font-mono">
{SIDEBAR_KEYBOARD_SHORTCUT}
</Kbd>
</p>
diff --git a/apps/dashboard/src/components/nav/nav-banner-checklist.tsx b/apps/dashboard/src/components/nav/nav-banner-checklist.tsx
index 8d81727a6..4bbef8ab3 100644
--- a/apps/dashboard/src/components/nav/nav-banner-checklist.tsx
+++ b/apps/dashboard/src/components/nav/nav-banner-checklist.tsx
@@ -1,7 +1,5 @@
"use client";
-import { Link } from "@/components/common/link";
-import { useTRPC } from "@/lib/trpc/client";
import {
SidebarGroup,
SidebarGroupLabel,
@@ -12,6 +10,9 @@ import {
import { useQuery } from "@tanstack/react-query";
import { CircleCheck, CircleDashed, X } from "lucide-react";
+import { Link } from "@/components/common/link";
+import { useTRPC } from "@/lib/trpc/client";
+
export function NavBannerChecklist({
handleClose,
}: {
@@ -47,7 +48,7 @@ export function NavBannerChecklist({
];
return (
- <SidebarGroup className="rounded-lg border bg-background group-data-[collapsible=icon]:hidden">
+ <SidebarGroup className="bg-background rounded-lg border group-data-[collapsible=icon]:hidden">
<SidebarGroupLabel className="flex items-center justify-between pr-1">
<span>Getting Started</span>
<SidebarMenuAction
@@ -65,13 +66,13 @@ export function NavBannerChecklist({
>
{item.checked ? (
<>
- <CircleCheck className="shrink-0 text-success" size={12} />
+ <CircleCheck className="text-success shrink-0" size={12} />
<span>{item.title}</span>
</>
) : (
<>
<CircleDashed
- className="shrink-0 text-muted-foreground/50"
+ className="text-muted-foreground/50 shrink-0"
size={12}
/>
<Link href={item.href}>{item.title}</Link>
diff --git a/apps/dashboard/src/components/nav/nav-banner-upgrade.tsx b/apps/dashboard/src/components/nav/nav-banner-upgrade.tsx
index f00e9fe9a..b729b121b 100644
--- a/apps/dashboard/src/components/nav/nav-banner-upgrade.tsx
+++ b/apps/dashboard/src/components/nav/nav-banner-upgrade.tsx
@@ -1,6 +1,5 @@
"use client";
-import { useTRPC } from "@/lib/trpc/client";
import {
SidebarGroup,
SidebarGroupLabel,
@@ -12,6 +11,9 @@ import {
import { useQuery } from "@tanstack/react-query";
import { Rocket, X } from "lucide-react";
import { useState } from "react";
+
+import { useTRPC } from "@/lib/trpc/client";
+
import { UpgradeDialog } from "../dialogs/upgrade";
export function NavBannerUpgrade({ handleClose }: { handleClose: () => void }) {
@@ -22,7 +24,7 @@ export function NavBannerUpgrade({ handleClose }: { handleClose: () => void }) {
if (!workspace) return null;
return (
- <SidebarGroup className="rounded-lg border bg-background group-data-[collapsible=icon]:hidden">
+ <SidebarGroup className="bg-background rounded-lg border group-data-[collapsible=icon]:hidden">
<SidebarGroupLabel className="flex items-center justify-between pr-1">
<span>OpenStatus Pro</span>
<SidebarMenuAction
@@ -34,7 +36,7 @@ export function NavBannerUpgrade({ handleClose }: { handleClose: () => void }) {
</SidebarGroupLabel>
<SidebarMenu>
<SidebarMenuItem className="flex items-center gap-2 text-sm">
- <Rocket className="shrink-0 text-info" size={12} />
+ <Rocket className="text-info shrink-0" size={12} />
<span>
Unlock custom domains, teams, 1 min. checks, subscriptions and more.
</span>
diff --git a/apps/dashboard/src/components/nav/nav-banner.tsx b/apps/dashboard/src/components/nav/nav-banner.tsx
index f994e4afa..4522d28d5 100644
--- a/apps/dashboard/src/components/nav/nav-banner.tsx
+++ b/apps/dashboard/src/components/nav/nav-banner.tsx
@@ -1,8 +1,10 @@
"use client";
-import { useTRPC } from "@/lib/trpc/client";
import { useCookieState } from "@openstatus/ui/hooks/use-cookie-state";
import { useQuery } from "@tanstack/react-query";
+
+import { useTRPC } from "@/lib/trpc/client";
+
import { NavBannerChecklist } from "./nav-banner-checklist";
import { NavBannerUpgrade } from "./nav-banner-upgrade";
diff --git a/apps/dashboard/src/components/nav/nav-breadcrumb.tsx b/apps/dashboard/src/components/nav/nav-breadcrumb.tsx
index 150f94eab..33b544d66 100644
--- a/apps/dashboard/src/components/nav/nav-breadcrumb.tsx
+++ b/apps/dashboard/src/components/nav/nav-breadcrumb.tsx
@@ -57,7 +57,7 @@ export function NavBreadcrumb({ items }: NavBreadcrumbProps) {
</BreadcrumbLink>
) : null}
{item.type === "page" ? (
- <BreadcrumbPage className=" hidden max-w-[120px] font-commit-mono tracking-tight md:block lg:max-w-[200px] ">
+ <BreadcrumbPage className="font-commit-mono hidden max-w-[120px] tracking-tight md:block lg:max-w-[200px]">
<span className="flex min-w-0 items-center gap-1.5">
{item.icon && (
<item.icon
diff --git a/apps/dashboard/src/components/nav/nav-feedback.tsx b/apps/dashboard/src/components/nav/nav-feedback.tsx
index e5bdeca23..1ad0cfdd1 100644
--- a/apps/dashboard/src/components/nav/nav-feedback.tsx
+++ b/apps/dashboard/src/components/nav/nav-feedback.tsx
@@ -1,6 +1,5 @@
"use client";
-import { useTRPC } from "@/lib/trpc/client";
import { zodResolver } from "@hookform/resolvers/zod";
import { Button } from "@openstatus/ui/components/ui/button";
import {
@@ -25,6 +24,8 @@ import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+import { useTRPC } from "@/lib/trpc/client";
+
const schema = z.object({
message: z.string().min(1),
});
@@ -53,9 +54,9 @@ export function NavFeedback() {
}
const SpeechRecognitionCtor =
- // biome-ignore lint/suspicious/noExplicitAny: <explanation>
+ // oxlint-disable-next-line typescript/no-explicit-any
(window as any).webkitSpeechRecognition ||
- // biome-ignore lint/suspicious/noExplicitAny: <explanation>
+ // oxlint-disable-next-line typescript/no-explicit-any
(window as any).SpeechRecognition;
// Browser not supported
@@ -166,20 +167,20 @@ export function NavFeedback() {
<Button
variant="ghost"
size="sm"
- className="group gap-0 px-2 text-muted-foreground text-sm hover:bg-transparent hover:text-foreground data-[state=open]:text-foreground"
+ className="group text-muted-foreground hover:text-foreground data-[state=open]:text-foreground gap-0 px-2 text-sm hover:bg-transparent"
>
Feedback{" "}
- <Kbd className="ml-1 font-mono group-hover:text-foreground group-data-[state=open]:text-foreground">
+ <Kbd className="group-hover:text-foreground group-data-[state=open]:text-foreground ml-1 font-mono">
F
</Kbd>
</Button>
</PopoverTrigger>
<PopoverContent align="end" className="relative border-none p-0">
{feedbackMutation.isSuccess ? (
- <div className="flex h-[110px] flex-col items-center justify-center gap-1 rounded-md border border-input p-3 text-base shadow-xs">
+ <div className="border-input flex h-[110px] flex-col items-center justify-center gap-1 rounded-md border p-3 text-base shadow-xs">
<Inbox className="size-4 shrink-0" />
<p className="text-center font-medium">Thanks for sharing!</p>
- <p className="text-center text-muted-foreground text-sm">
+ <p className="text-muted-foreground text-center text-sm">
We&apos;ll get in touch if there&apos;s a follow-up.
</p>
</div>
@@ -230,10 +231,10 @@ export function NavFeedback() {
) : (
<>
Send
- <Kbd className="ml-1 font-mono group-hover:text-foreground">
+ <Kbd className="group-hover:text-foreground ml-1 font-mono">
⌘
</Kbd>
- <Kbd className="ml-1 font-mono group-hover:text-foreground">
+ <Kbd className="group-hover:text-foreground ml-1 font-mono">
↵
</Kbd>
</>
diff --git a/apps/dashboard/src/components/nav/nav-help.tsx b/apps/dashboard/src/components/nav/nav-help.tsx
index 27f2bb216..a8469dd26 100644
--- a/apps/dashboard/src/components/nav/nav-help.tsx
+++ b/apps/dashboard/src/components/nav/nav-help.tsx
@@ -1,6 +1,5 @@
"use client";
-import { FormDialogSupportContact } from "@/components/forms/support-contact/dialog";
import { DiscordIcon } from "@openstatus/icons";
import { GitHubIcon } from "@openstatus/icons";
import {
@@ -27,6 +26,8 @@ import {
} from "lucide-react";
import Link from "next/link";
+import { FormDialogSupportContact } from "@/components/forms/support-contact/dialog";
+
export function NavHelp() {
const { isMobile } = useSidebar();
return (
diff --git a/apps/dashboard/src/components/nav/nav-main.tsx b/apps/dashboard/src/components/nav/nav-main.tsx
index 960ed6ab5..1055de01b 100644
--- a/apps/dashboard/src/components/nav/nav-main.tsx
+++ b/apps/dashboard/src/components/nav/nav-main.tsx
@@ -1,7 +1,5 @@
"use client";
-import { ChevronRight, type LucideIcon } from "lucide-react";
-
import {
Collapsible,
CollapsibleContent,
@@ -18,6 +16,7 @@ import {
SidebarMenuSubItem,
useSidebar,
} from "@openstatus/ui/components/ui/sidebar";
+import { ChevronRight, type LucideIcon } from "lucide-react";
import Link from "next/link";
export function NavMain({
items,
diff --git a/apps/dashboard/src/components/nav/nav-monitors.tsx b/apps/dashboard/src/components/nav/nav-monitors.tsx
index 560c4c6d2..74c6d4011 100644
--- a/apps/dashboard/src/components/nav/nav-monitors.tsx
+++ b/apps/dashboard/src/components/nav/nav-monitors.tsx
@@ -1,14 +1,5 @@
"use client";
-import { useState } from "react";
-
-import { MoreHorizontal, Plus } from "lucide-react";
-
-import { ExportCodeDialog } from "@/components/dialogs/export-code";
-import { UpgradeDialog } from "@/components/dialogs/upgrade";
-import { QuickActions } from "@/components/dropdowns/quick-actions";
-import { getActions } from "@/data/monitors.client";
-import { useTRPC } from "@/lib/trpc/client";
import {
SidebarGroup,
SidebarGroupLabel,
@@ -29,10 +20,18 @@ import {
import { cn } from "@openstatus/ui/lib/utils";
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
import { isTRPCClientError } from "@trpc/client";
+import { MoreHorizontal, Plus } from "lucide-react";
import Link from "next/link";
import { usePathname, useRouter } from "next/navigation";
+import { useState } from "react";
import { toast } from "sonner";
+import { ExportCodeDialog } from "@/components/dialogs/export-code";
+import { UpgradeDialog } from "@/components/dialogs/upgrade";
+import { QuickActions } from "@/components/dropdowns/quick-actions";
+import { getActions } from "@/data/monitors.client";
+import { useTRPC } from "@/lib/trpc/client";
+
export const STATUS = {
degraded: "bg-warning border border-warning",
error: "bg-destructive border border-destructive",
@@ -177,7 +176,7 @@ export function NavMonitors() {
<div className="relative flex items-center justify-center">
<div
className={cn(
- "-translate-x-1/2 -translate-y-1/2 absolute top-1/2 left-1/2 h-2 w-2 rounded-full",
+ "absolute top-1/2 left-1/2 h-2 w-2 -translate-x-1/2 -translate-y-1/2 rounded-full",
STATUS[item.active ? item.status : "inactive"],
)}
>
diff --git a/apps/dashboard/src/components/nav/nav-overview.tsx b/apps/dashboard/src/components/nav/nav-overview.tsx
index 4083e2ca4..fe131bacf 100644
--- a/apps/dashboard/src/components/nav/nav-overview.tsx
+++ b/apps/dashboard/src/components/nav/nav-overview.tsx
@@ -1,7 +1,5 @@
"use client";
-import type { LucideIcon } from "lucide-react";
-
import {
SidebarGroup,
SidebarGroupLabel,
@@ -10,6 +8,7 @@ import {
SidebarMenuItem,
useSidebar,
} from "@openstatus/ui/components/ui/sidebar";
+import type { LucideIcon } from "lucide-react";
import Link from "next/link";
import { usePathname } from "next/navigation";
diff --git a/apps/dashboard/src/components/nav/nav-status-pages.tsx b/apps/dashboard/src/components/nav/nav-status-pages.tsx
index 4f2a1d882..b7ed58345 100644
--- a/apps/dashboard/src/components/nav/nav-status-pages.tsx
+++ b/apps/dashboard/src/components/nav/nav-status-pages.tsx
@@ -1,9 +1,5 @@
"use client";
-import { MoreHorizontal, Plus } from "lucide-react";
-
-import { QuickActions } from "@/components/dropdowns/quick-actions";
-import { getActions } from "@/data/status-pages.client";
import {
SidebarGroup,
SidebarGroupLabel,
@@ -14,22 +10,25 @@ import {
SidebarMenuSkeleton,
useSidebar,
} from "@openstatus/ui/components/ui/sidebar";
+import { Skeleton } from "@openstatus/ui/components/ui/skeleton";
import {
Tooltip,
TooltipContent,
TooltipProvider,
TooltipTrigger,
} from "@openstatus/ui/components/ui/tooltip";
+import { cn } from "@openstatus/ui/lib/utils";
+import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
+import { MoreHorizontal, Plus } from "lucide-react";
import Link from "next/link";
import { usePathname, useRouter } from "next/navigation";
+import { useState } from "react";
import { toast } from "sonner";
import { UpgradeDialog } from "@/components/dialogs/upgrade";
+import { QuickActions } from "@/components/dropdowns/quick-actions";
+import { getActions } from "@/data/status-pages.client";
import { useTRPC } from "@/lib/trpc/client";
-import { Skeleton } from "@openstatus/ui/components/ui/skeleton";
-import { cn } from "@openstatus/ui/lib/utils";
-import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
-import { useState } from "react";
const STATUS = {
operational: "bg-success border border-success",
@@ -149,7 +148,7 @@ export function NavStatusPages() {
<div className="relative flex items-center justify-center">
<div
className={cn(
- "-translate-x-1/2 -translate-y-1/2 absolute top-1/2 left-1/2 h-2 w-2 rounded-full",
+ "absolute top-1/2 left-1/2 h-2 w-2 -translate-x-1/2 -translate-y-1/2 rounded-full",
STATUS[
hasActiveStatusReport ? "degraded" : "operational"
],
diff --git a/apps/dashboard/src/components/nav/nav-tabs.tsx b/apps/dashboard/src/components/nav/nav-tabs.tsx
index bc86c5654..019d53463 100644
--- a/apps/dashboard/src/components/nav/nav-tabs.tsx
+++ b/apps/dashboard/src/components/nav/nav-tabs.tsx
@@ -20,7 +20,7 @@ export function NavTabs({ items }: NavTabsProps) {
const normalizedPath = pathname.replace(/\/+$/, "") || "/";
return (
- <nav className="sticky top-14 z-10 h-[41px] w-full overflow-x-auto border-b bg-background px-2">
+ <nav className="bg-background sticky top-14 z-10 h-[41px] w-full overflow-x-auto border-b px-2">
<ul className="inline-flex h-full items-center gap-1 px-3 text-sm">
{items.map((item) => {
const normalizedHref = item.href.replace(/\/+$/, "") || "/";
@@ -33,14 +33,14 @@ export function NavTabs({ items }: NavTabsProps) {
className={cn(
"relative flex h-full items-center",
isActive &&
- "after:absolute after:inset-x-0 after:bottom-0 after:h-px after:bg-foreground",
+ "after:bg-foreground after:absolute after:inset-x-0 after:bottom-0 after:h-px",
)}
>
<Link
href={item.href}
aria-current={isActive ? "page" : undefined}
className={cn(
- "relative inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-md px-2 py-1 font-commit-mono tracking-tight focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
+ "font-commit-mono focus-visible:ring-ring relative inline-flex items-center justify-center gap-1.5 rounded-md px-2 py-1 tracking-tight whitespace-nowrap focus-visible:ring-2 focus-visible:outline-none",
isActive
? "text-foreground"
: "text-muted-foreground hover:text-foreground",
diff --git a/apps/dashboard/src/components/nav/nav-user.tsx b/apps/dashboard/src/components/nav/nav-user.tsx
index 8ff6c7b96..b818653b5 100644
--- a/apps/dashboard/src/components/nav/nav-user.tsx
+++ b/apps/dashboard/src/components/nav/nav-user.tsx
@@ -1,17 +1,5 @@
"use client";
-import {
- ChevronsUpDown,
- CreditCard,
- Laptop,
- LogOut,
- Moon,
- Sparkles,
- Sun,
- User,
-} from "lucide-react";
-
-import { useTRPC } from "@/lib/trpc/client";
import {
Avatar,
AvatarFallback,
@@ -37,10 +25,22 @@ import {
useSidebar,
} from "@openstatus/ui/components/ui/sidebar";
import { useQuery } from "@tanstack/react-query";
+import {
+ ChevronsUpDown,
+ CreditCard,
+ Laptop,
+ LogOut,
+ Moon,
+ Sparkles,
+ Sun,
+ User,
+} from "lucide-react";
import { signOut } from "next-auth/react";
import { useTheme } from "next-themes";
import Link from "next/link";
+import { useTRPC } from "@/lib/trpc/client";
+
export function NavUser() {
const { isMobile, setOpenMobile } = useSidebar();
const { theme, setTheme } = useTheme();
@@ -59,7 +59,7 @@ export function NavUser() {
<DropdownMenuTrigger asChild>
<SidebarMenuButton
size="lg"
- className="h-14 rounded-none px-4 ring-inset data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground group-data-[collapsible=icon]:mx-2! group-data-[collapsible=icon]:rounded-lg! group-data-[collapsible=icon]:px-0!"
+ className="data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground h-14 rounded-none px-4 ring-inset group-data-[collapsible=icon]:mx-2! group-data-[collapsible=icon]:rounded-lg! group-data-[collapsible=icon]:px-0!"
>
<Avatar className="h-8 w-8 rounded-lg">
<AvatarImage src={user?.photoUrl ?? undefined} alt={userName} />
@@ -74,7 +74,7 @@ export function NavUser() {
</Avatar>
<div className="grid flex-1 text-left text-sm leading-tight">
<span className="truncate font-medium">{userName}</span>
- <span className="truncate font-commit-mono text-xs tracking-tight">
+ <span className="font-commit-mono truncate text-xs tracking-tight">
{user?.email}
</span>
</div>
@@ -100,7 +100,7 @@ export function NavUser() {
</Avatar>
<div className="grid flex-1 text-left text-sm leading-tight">
<span className="truncate font-medium">{userName}</span>
- <span className="truncate font-commit-mono text-xs tracking-tight">
+ <span className="font-commit-mono truncate text-xs tracking-tight">
{user?.email}
</span>
</div>
@@ -133,7 +133,7 @@ export function NavUser() {
</Link>
</DropdownMenuItem>
<DropdownMenuSub>
- <DropdownMenuSubTrigger className="gap-2 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0">
+ <DropdownMenuSubTrigger className="[&_svg:not([class*='text-'])]:text-muted-foreground gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4">
{theme === "dark" ? (
<Moon />
) : theme === "light" ? (
diff --git a/apps/dashboard/src/components/nav/sidebar-metadata.tsx b/apps/dashboard/src/components/nav/sidebar-metadata.tsx
index a3c58342d..15386c16a 100644
--- a/apps/dashboard/src/components/nav/sidebar-metadata.tsx
+++ b/apps/dashboard/src/components/nav/sidebar-metadata.tsx
@@ -1,9 +1,3 @@
-import type { LucideIcon } from "lucide-react";
-import { ChevronRight, MoreHorizontal } from "lucide-react";
-import Link from "next/link";
-import * as React from "react";
-
-import { QuickActions } from "@/components/dropdowns/quick-actions";
import {
Collapsible,
CollapsibleContent,
@@ -34,6 +28,12 @@ import {
import { useCopyToClipboard } from "@openstatus/ui/hooks/use-copy-to-clipboard";
import { cn } from "@openstatus/ui/lib/utils";
import { TooltipProvider } from "@radix-ui/react-tooltip";
+import type { LucideIcon } from "lucide-react";
+import { ChevronRight, MoreHorizontal } from "lucide-react";
+import Link from "next/link";
+import * as React from "react";
+
+import { QuickActions } from "@/components/dropdowns/quick-actions";
export type SidebarMetadataItem = {
label: string;
@@ -97,7 +97,7 @@ export function SidebarMetadata(props: SidebarMetadataProps) {
<Collapsible defaultOpen className="group/collapsible border-b">
<SidebarGroupLabel
asChild
- className="group/label h-9 w-full rounded-none text-sidebar-foreground text-sm hover:bg-sidebar-accent hover:text-sidebar-accent-foreground"
+ className="group/label text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground h-9 w-full rounded-none text-sm"
>
<CollapsibleTrigger>
{label}{" "}
@@ -125,7 +125,7 @@ export function SidebarMetadata(props: SidebarMetadataProps) {
}
function SidebarMetadataEmpty({ message }: { message: string }) {
- return <p className="px-2 py-2 text-muted-foreground text-sm">{message}</p>;
+ return <p className="text-muted-foreground px-2 py-2 text-sm">{message}</p>;
}
function SidebarMetadataTable({
@@ -154,8 +154,8 @@ function SidebarMetadataTable({
<TableBody>
{items.map((item, index) => (
<TableRow key={`${item.label}-${index}`}>
- <TableCell className="w-26 border-r text-muted-foreground">
- <div className="min-w-[90px] max-w-[90px] truncate">
+ <TableCell className="text-muted-foreground w-26 border-r">
+ <div className="max-w-[90px] min-w-[90px] truncate">
{item.isNested ? "└ " : ""}
{item.label}
</div>
@@ -189,7 +189,7 @@ function SidebarMetadataList({
{item.icon ? <item.icon className="size-3.5 shrink-0" /> : null}
<span className="flex-1 truncate">{item.label}</span>
{item.meta != null ? (
- <span className="ml-auto shrink-0 font-mono text-muted-foreground text-xs">
+ <span className="text-muted-foreground ml-auto shrink-0 font-mono text-xs">
{item.meta}
</span>
) : null}
@@ -229,7 +229,7 @@ function SidebarMetadataList({
// `peer-data-[size=...]/menu-button` variant tuned for
// the shorter button sizes; we use a taller `h-9` row,
// so override the variant directly and re-anchor at 50%.
- className="before:-left-6 -translate-y-1/2 bg-sidebar-accent before:absolute before:inset-y-0 before:right-full before:bg-gradient-to-l before:from-sidebar-accent before:to-transparent focus-visible:ring-inset peer-data-[size=default]/menu-button:top-1/2"
+ className="bg-sidebar-accent before:from-sidebar-accent -translate-y-1/2 peer-data-[size=default]/menu-button:top-1/2 before:absolute before:inset-y-0 before:right-full before:-left-6 before:bg-gradient-to-l before:to-transparent focus-visible:ring-inset"
>
<MoreHorizontal />
<span className="sr-only">More</span>
@@ -253,7 +253,6 @@ function SidebarMetadataTableCell({
const { copy, isCopied } = useCopyToClipboard();
const [open, setOpen] = React.useState(false);
- // biome-ignore lint/correctness/useExhaustiveDependencies: <explanation>
React.useEffect(() => {
if (ref.current) {
setIsTruncated(ref.current.scrollWidth > ref.current.clientWidth);
diff --git a/apps/dashboard/src/components/nav/sidebar-right.tsx b/apps/dashboard/src/components/nav/sidebar-right.tsx
index 08655e6a4..5a0beafc5 100644
--- a/apps/dashboard/src/components/nav/sidebar-right.tsx
+++ b/apps/dashboard/src/components/nav/sidebar-right.tsx
@@ -1,7 +1,5 @@
"use client";
-import * as React from "react";
-
import { Button } from "@openstatus/ui/components/ui/button";
import {
Sidebar,
@@ -22,6 +20,8 @@ import {
} from "@openstatus/ui/components/ui/tooltip";
import { cn } from "@openstatus/ui/lib/utils";
import { PanelRight } from "lucide-react";
+import * as React from "react";
+
import { Kbd } from "../common/kbd";
import { SidebarMetadata, type SidebarMetadataProps } from "./sidebar-metadata";
@@ -46,9 +46,9 @@ export function SidebarRight({
className="top-14 flex h-[calc(100svh_-_56px)]"
{...props}
>
- <SidebarHeader className="relative border-sidebar-border border-b">
+ <SidebarHeader className="border-sidebar-border relative border-b">
{header}
- <div className="-left-9 absolute inset-y-0 z-10 flex items-center justify-center">
+ <div className="absolute inset-y-0 -left-9 z-10 flex items-center justify-center">
<TooltipProvider>
<Tooltip>
<TooltipTrigger asChild>
@@ -57,10 +57,10 @@ export function SidebarRight({
<TooltipContent side="left">
<p className="mr-px inline-flex items-center">
Toggle Sidebar{" "}
- <Kbd className="border-muted-foreground bg-primary font-mono text-background">
+ <Kbd className="border-muted-foreground bg-primary text-background font-mono">
⌘
</Kbd>
- <Kbd className="border-muted-foreground bg-primary font-mono text-background">
+ <Kbd className="border-muted-foreground bg-primary text-background font-mono">
{SIDEBAR_KEYBOARD_SHORTCUT}
</Kbd>
</p>
diff --git a/apps/dashboard/src/components/nav/workspace-switcher.tsx b/apps/dashboard/src/components/nav/workspace-switcher.tsx
index 849003b7d..3b423b83c 100644
--- a/apps/dashboard/src/components/nav/workspace-switcher.tsx
+++ b/apps/dashboard/src/components/nav/workspace-switcher.tsx
@@ -1,9 +1,5 @@
"use client";
-import { ChevronsUpDown, Plus } from "lucide-react";
-
-import { Link } from "@/components/common/link";
-import { useTRPC } from "@/lib/trpc/client";
import {
DropdownMenu,
DropdownMenuContent,
@@ -20,6 +16,10 @@ import {
} from "@openstatus/ui/components/ui/sidebar";
import { cn } from "@openstatus/ui/lib/utils";
import { useQuery } from "@tanstack/react-query";
+import { ChevronsUpDown, Plus } from "lucide-react";
+
+import { Link } from "@/components/common/link";
+import { useTRPC } from "@/lib/trpc/client";
interface WorkspaceSwitcherProps {
className?: string;
@@ -47,11 +47,11 @@ export function WorkspaceSwitcher({ className, side }: WorkspaceSwitcherProps) {
<SidebarMenuButton
size="lg"
className={cn(
- "h-14 rounded-none px-4 ring-inset data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground group-data-[collapsible=icon]:mx-2! group-data-[collapsible=icon]:rounded-lg! group-data-[collapsible=icon]:px-0!",
+ "data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground h-14 rounded-none px-4 ring-inset group-data-[collapsible=icon]:mx-2! group-data-[collapsible=icon]:rounded-lg! group-data-[collapsible=icon]:px-0!",
className,
)}
>
- <div className="flex aspect-square size-8 items-center justify-center rounded-lg bg-sidebar-primary">
+ <div className="bg-sidebar-primary flex aspect-square size-8 items-center justify-center rounded-lg">
<div className="size-8 overflow-hidden rounded-lg">
<img
src={`https://api.dicebear.com/9.x/glass/svg?seed=${workspace.slug}`}
@@ -96,7 +96,7 @@ export function WorkspaceSwitcher({ className, side }: WorkspaceSwitcherProps) {
<span className="truncate">
{workspace.name || "Untitled Workspace"}
</span>
- <span className="truncate font-mono text-muted-foreground text-xs">
+ <span className="text-muted-foreground truncate font-mono text-xs">
{workspace.slug}
</span>
</DropdownMenuItem>
diff --git a/apps/dashboard/src/components/onboarding/checks-table.tsx b/apps/dashboard/src/components/onboarding/checks-table.tsx
index 686c6429c..ea19ebebf 100644
--- a/apps/dashboard/src/components/onboarding/checks-table.tsx
+++ b/apps/dashboard/src/components/onboarding/checks-table.tsx
@@ -1,8 +1,5 @@
"use client";
-import { getColumns } from "@/components/data-table/response-logs/columns";
-import { Sheet } from "@/components/data-table/response-logs/data-table-sheet";
-import { DataTableSkeleton } from "@/components/ui/data-table/data-table-skeleton";
import type { RouterOutputs } from "@openstatus/api";
import { Button } from "@openstatus/ui/components/ui/button";
import {
@@ -22,6 +19,10 @@ import {
import { AlertTriangle, RefreshCw } from "lucide-react";
import { useState } from "react";
+import { getColumns } from "@/components/data-table/response-logs/columns";
+import { Sheet } from "@/components/data-table/response-logs/data-table-sheet";
+import { DataTableSkeleton } from "@/components/ui/data-table/data-table-skeleton";
+
// Use the wider `get`-shape so the row also satisfies the Sheet's input.
// The column defs are typed against `list` shape, but every list field
// is also present on `get`, so casting is safe.
@@ -61,20 +62,20 @@ export function OnboardingChecksTable({
});
const selected =
- selectedId == null ? null : rows.find((r) => r.id === selectedId) ?? null;
+ selectedId == null ? null : (rows.find((r) => r.id === selectedId) ?? null);
if (allFailed) {
return (
<div
className={cn(
- "flex flex-col items-center gap-3 rounded-md border border-border bg-muted/30 p-6 text-center",
+ "border-border bg-muted/30 flex flex-col items-center gap-3 rounded-md border p-6 text-center",
className,
)}
{...props}
>
- <AlertTriangle className="size-5 text-destructive" />
+ <AlertTriangle className="text-destructive size-5" />
<div className="space-y-1">
- <p className="font-medium text-foreground text-sm">
+ <p className="text-foreground text-sm font-medium">
Couldn&apos;t reach {url ? <code>{url}</code> : "your URL"}
</p>
<p className="text-muted-foreground text-xs">
@@ -94,7 +95,7 @@ export function OnboardingChecksTable({
return (
<div
className={cn(
- "overflow-auto rounded-md border border-border bg-background md:min-h-0 md:flex-1",
+ "border-border bg-background overflow-auto rounded-md border md:min-h-0 md:flex-1",
className,
)}
{...props}
@@ -108,13 +109,13 @@ export function OnboardingChecksTable({
<>
<div
className={cn(
- "overflow-auto rounded-md border border-border bg-background md:min-h-0 md:flex-1",
+ "border-border bg-background overflow-auto rounded-md border md:min-h-0 md:flex-1",
className,
)}
{...props}
>
<table className="w-full caption-bottom text-sm">
- <TableHeader className="sticky top-0 z-10 bg-muted">
+ <TableHeader className="bg-muted sticky top-0 z-10">
{table.getHeaderGroups().map((headerGroup) => (
<TableRow key={headerGroup.id} className="hover:bg-transparent">
{headerGroup.headers.map((header) => (
@@ -157,7 +158,7 @@ export function OnboardingChecksTable({
<TableRow className="hover:bg-transparent">
<TableCell
colSpan={table.getVisibleLeafColumns().length}
- className="text-center text-muted-foreground text-xs"
+ className="text-muted-foreground text-center text-xs"
>
Streaming results from {totalRegions - rows.length} more
region{totalRegions - rows.length === 1 ? "" : "s"}…
diff --git a/apps/dashboard/src/components/onboarding/feature-badges.tsx b/apps/dashboard/src/components/onboarding/feature-badges.tsx
index 588e39b3c..c880a2d42 100644
--- a/apps/dashboard/src/components/onboarding/feature-badges.tsx
+++ b/apps/dashboard/src/components/onboarding/feature-badges.tsx
@@ -1,8 +1,5 @@
"use client";
-import { QuestionForm } from "@/components/forms/onboarding/question";
-import { OnboardingResultHeading } from "@/components/layout/onboarding-layout";
-import { cn } from "@/lib/utils";
import { ModelContextProtocolIcon, SlackIcon } from "@openstatus/icons";
import {
ArrowUpRight,
@@ -23,6 +20,10 @@ import {
} from "lucide-react";
import Link from "next/link";
+import { QuestionForm } from "@/components/forms/onboarding/question";
+import { OnboardingResultHeading } from "@/components/layout/onboarding-layout";
+import { cn } from "@/lib/utils";
+
type FeatureLinkItem = {
name: string;
href: string;
@@ -154,11 +155,11 @@ export function FeatureBadgeWall({
<OnboardingResultHeading>
What else openstatus can do
</OnboardingResultHeading>
- <div className="rounded-md border border-border bg-background p-4 md:min-h-0 md:flex-1 md:overflow-y-auto">
+ <div className="border-border bg-background rounded-md border p-4 md:min-h-0 md:flex-1 md:overflow-y-auto">
<div className="flex flex-col gap-4">
{FEATURE_CATEGORIES.map((category) => (
<section key={category.label} className="flex flex-col gap-2">
- <p className="font-commit-mono text-muted-foreground text-xs uppercase tracking-wide">
+ <p className="font-commit-mono text-muted-foreground text-xs tracking-wide uppercase">
{category.label}
</p>
<div className="flex flex-wrap gap-x-4 gap-y-1.5">
@@ -186,7 +187,7 @@ export function QuestionPanel({
<OnboardingResultHeading>
How did you hear about openstatus?
</OnboardingResultHeading>
- <div className="rounded-md border border-border bg-background p-4">
+ <div className="border-border bg-background rounded-md border p-4">
<QuestionForm onSubmit={onSubmit} />
</div>
</div>
@@ -206,7 +207,7 @@ function FeatureLink({
return (
<Link
className={cn(
- "group inline-flex items-center gap-1.5 font-commit-mono text-muted-foreground text-sm transition-colors hover:text-foreground",
+ "group font-commit-mono text-muted-foreground hover:text-foreground inline-flex items-center gap-1.5 text-sm transition-colors",
className,
)}
href={item.href}
@@ -216,7 +217,7 @@ function FeatureLink({
<item.icon className="size-3" />
<span>{item.name}</span>
{item.external ? (
- <ArrowUpRight className="size-3 text-muted-foreground/70 group-hover:text-foreground" />
+ <ArrowUpRight className="text-muted-foreground/70 group-hover:text-foreground size-3" />
) : null}
</Link>
);
diff --git a/apps/dashboard/src/components/onboarding/status-page-preview.tsx b/apps/dashboard/src/components/onboarding/status-page-preview.tsx
index 976994ded..45888f9d1 100644
--- a/apps/dashboard/src/components/onboarding/status-page-preview.tsx
+++ b/apps/dashboard/src/components/onboarding/status-page-preview.tsx
@@ -13,7 +13,6 @@
// canonical composition reshuffles, update this file by hand against the
// reference above.
-import { cn } from "@/lib/utils";
import {
THEMES,
type ThemeKey,
@@ -57,6 +56,8 @@ import { Skeleton } from "@openstatus/ui/components/ui/skeleton";
import { useTheme } from "next-themes";
import { useEffect, useMemo, useRef, useState } from "react";
+import { cn } from "@/lib/utils";
+
// 45 days of all-green placeholder data so the bars render solid instead of
// loading-skeleton on first paint. The user has no real history yet — this is
// "what the page will look like once data flows in," matching what every demo
@@ -122,7 +123,7 @@ export function OnboardingStatusPagePreview({
if (!mounted) {
return (
- <Skeleton className={cn("rounded-md border border-border", className)} />
+ <Skeleton className={cn("border-border rounded-md border", className)} />
);
}
@@ -132,15 +133,15 @@ export function OnboardingStatusPagePreview({
data-status-preview
style={themeStyle}
className={cn(
- "flex flex-col overflow-y-auto rounded-md border border-border bg-background text-foreground",
+ "border-border bg-background text-foreground flex flex-col overflow-y-auto rounded-md border",
className,
)}
>
<StatusPageShell className="min-h-0 shrink-0">
- <StatusPageHeader className="w-full border-border border-b">
+ <StatusPageHeader className="border-border w-full border-b">
<StatusPageHeaderContent>
<StatusPageHeaderBrand>
- <div className="flex size-8 items-center justify-center overflow-hidden rounded-md border border-border bg-background">
+ <div className="border-border bg-background flex size-8 items-center justify-center overflow-hidden rounded-md border">
<StatusPageHeaderBrandFallback title={displayTitle} />
</div>
</StatusPageHeaderBrand>
diff --git a/apps/dashboard/src/components/popovers/popover-quantile.tsx b/apps/dashboard/src/components/popovers/popover-quantile.tsx
index 798d035fd..afdb48841 100644
--- a/apps/dashboard/src/components/popovers/popover-quantile.tsx
+++ b/apps/dashboard/src/components/popovers/popover-quantile.tsx
@@ -15,7 +15,7 @@ export function PopoverQuantile({
<Popover>
<PopoverTrigger
className={cn(
- "shrink-0 rounded-md p-0 underline decoration-muted-foreground/70 decoration-dotted underline-offset-2 outline-none transition-all hover:decoration-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=open]:decoration-foreground dark:aria-invalid:ring-destructive/40",
+ "decoration-muted-foreground/70 hover:decoration-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=open]:decoration-foreground dark:aria-invalid:ring-destructive/40 shrink-0 rounded-md p-0 underline decoration-dotted underline-offset-2 transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50",
className,
)}
{...props}
@@ -27,7 +27,7 @@ export function PopoverQuantile({
A quantile represents a specific percentile in your dataset.
</p>
<Separator />
- <p className="px-3 py-2 text-muted-foreground">
+ <p className="text-muted-foreground px-3 py-2">
For example, p50 is the 50th percentile - the point below which 50% of
data falls. Higher percentiles include more data and highlight the
upper range.
diff --git a/apps/dashboard/src/components/popovers/popover-resolution.tsx b/apps/dashboard/src/components/popovers/popover-resolution.tsx
index 13a5f26ed..94897a088 100644
--- a/apps/dashboard/src/components/popovers/popover-resolution.tsx
+++ b/apps/dashboard/src/components/popovers/popover-resolution.tsx
@@ -15,7 +15,7 @@ export function PopoverResolution({
<Popover>
<PopoverTrigger
className={cn(
- "shrink-0 rounded-md p-0 underline decoration-muted-foreground/70 decoration-dotted underline-offset-2 outline-none transition-all hover:decoration-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=open]:decoration-foreground dark:aria-invalid:ring-destructive/40",
+ "decoration-muted-foreground/70 hover:decoration-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=open]:decoration-foreground dark:aria-invalid:ring-destructive/40 shrink-0 rounded-md p-0 underline decoration-dotted underline-offset-2 transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50",
className,
)}
{...props}
@@ -27,7 +27,7 @@ export function PopoverResolution({
Run data aggregation on fixed time boundaries.
</p>
<Separator />
- <p className="px-3 py-2 text-muted-foreground">
+ <p className="text-muted-foreground px-3 py-2">
A 30-minute resolution aligns to the top or bottom of the hour (e.g.,
00:00, 00:30) so all intervals are consistent for analysis.
</p>
diff --git a/apps/dashboard/src/components/tailwind-indicator.tsx b/apps/dashboard/src/components/tailwind-indicator.tsx
index ab3464364..a9967cb30 100644
--- a/apps/dashboard/src/components/tailwind-indicator.tsx
+++ b/apps/dashboard/src/components/tailwind-indicator.tsx
@@ -2,7 +2,7 @@ export function TailwindIndicator() {
if (process.env.NODE_ENV === "production") return null;
return (
- <div className="fixed bottom-1 left-1 z-50 flex h-6 w-6 items-center justify-center rounded-full bg-foreground p-3 font-mono text-background text-xs">
+ <div className="bg-foreground text-background fixed bottom-1 left-1 z-50 flex h-6 w-6 items-center justify-center rounded-full p-3 font-mono text-xs">
<div className="block sm:hidden">xs</div>
<div className="hidden sm:block md:hidden">sm</div>
<div className="hidden md:block lg:hidden">md</div>
diff --git a/apps/dashboard/src/components/theme-toggle.tsx b/apps/dashboard/src/components/theme-toggle.tsx
index 26b9b609d..238cfd8f6 100644
--- a/apps/dashboard/src/components/theme-toggle.tsx
+++ b/apps/dashboard/src/components/theme-toggle.tsx
@@ -1,8 +1,5 @@
"use client";
-import { useTheme } from "next-themes";
-import type * as React from "react";
-
import {
Select,
SelectContent,
@@ -12,6 +9,8 @@ import {
} from "@openstatus/ui/components/ui/select";
import { cn } from "@openstatus/ui/lib/utils";
import { Laptop, Moon, Sun } from "lucide-react";
+import { useTheme } from "next-themes";
+import type * as React from "react";
import { useState } from "react";
import { useEffect } from "react";
diff --git a/apps/dashboard/src/components/ui/data-table/data-table-action-bar.tsx b/apps/dashboard/src/components/ui/data-table/data-table-action-bar.tsx
index 5dc21fb7a..7fc78b9d6 100644
--- a/apps/dashboard/src/components/ui/data-table/data-table-action-bar.tsx
+++ b/apps/dashboard/src/components/ui/data-table/data-table-action-bar.tsx
@@ -13,8 +13,9 @@ import { Loader, X } from "lucide-react";
import * as React from "react";
import * as ReactDOM from "react-dom";
-export interface DataTableActionBarProps<TData>
- extends React.ComponentProps<"div"> {
+export interface DataTableActionBarProps<
+ TData,
+> extends React.ComponentProps<"div"> {
table: Table<TData>;
visible?: boolean;
container?: Element | DocumentFragment | null;
@@ -60,7 +61,7 @@ function DataTableActionBar<TData>({
role="toolbar"
aria-orientation="horizontal"
className={cn(
- "fixed inset-x-0 bottom-6 z-50 mx-auto flex w-fit flex-wrap items-center justify-center gap-2 rounded-md border bg-background p-2 text-foreground shadow-sm",
+ "bg-background text-foreground fixed inset-x-0 bottom-6 z-50 mx-auto flex w-fit flex-wrap items-center justify-center gap-2 rounded-md border p-2 shadow-sm",
className,
)}
{...props}
@@ -73,8 +74,9 @@ function DataTableActionBar<TData>({
);
}
-interface DataTableActionBarActionProps
- extends React.ComponentProps<typeof Button> {
+interface DataTableActionBarActionProps extends React.ComponentProps<
+ typeof Button
+> {
tooltip?: string;
isPending?: boolean;
}
@@ -93,7 +95,7 @@ function DataTableActionBarAction({
variant="secondary"
size={size}
className={cn(
- "gap-1.5 border border-secondary bg-secondary/50 hover:bg-secondary/70 [&>svg]:size-3.5",
+ "border-secondary bg-secondary/50 hover:bg-secondary/70 gap-1.5 border [&>svg]:size-3.5",
size === "icon" ? "size-7" : "h-7",
className,
)}
@@ -111,7 +113,7 @@ function DataTableActionBarAction({
<TooltipTrigger asChild>{trigger}</TooltipTrigger>
<TooltipContent
sideOffset={6}
- className="border bg-accent font-semibold text-foreground dark:bg-zinc-900 [&>span]:hidden"
+ className="bg-accent text-foreground border font-semibold dark:bg-zinc-900 [&>span]:hidden"
>
<p>{tooltip}</p>
</TooltipContent>
@@ -132,7 +134,7 @@ function DataTableActionBarSelection<TData>({
return (
<div className="flex h-7 items-center rounded-md border pr-1 pl-2.5">
- <span className="whitespace-nowrap text-xs">
+ <span className="text-xs whitespace-nowrap">
{table.getFilteredSelectedRowModel().rows.length} selected
</span>
<Separator
@@ -152,10 +154,10 @@ function DataTableActionBarSelection<TData>({
</TooltipTrigger>
<TooltipContent
sideOffset={10}
- className="flex items-center gap-2 border bg-accent px-2 py-1 font-semibold text-foreground dark:bg-zinc-900 [&>span]:hidden"
+ className="bg-accent text-foreground flex items-center gap-2 border px-2 py-1 font-semibold dark:bg-zinc-900 [&>span]:hidden"
>
<p>Clear selection</p>
- <kbd className="select-none rounded border bg-background px-1.5 py-px font-mono font-normal text-[0.7rem] text-foreground shadow-xs">
+ <kbd className="bg-background text-foreground rounded border px-1.5 py-px font-mono text-[0.7rem] font-normal shadow-xs select-none">
<abbr title="Escape" className="no-underline">
Esc
</abbr>
diff --git a/apps/dashboard/src/components/ui/data-table/data-table-column-header.tsx b/apps/dashboard/src/components/ui/data-table/data-table-column-header.tsx
index 0c8259bff..b7068d88d 100644
--- a/apps/dashboard/src/components/ui/data-table/data-table-column-header.tsx
+++ b/apps/dashboard/src/components/ui/data-table/data-table-column-header.tsx
@@ -1,12 +1,12 @@
-import type { Column } from "@tanstack/react-table";
-import { ChevronDown, ChevronUp } from "lucide-react";
-
import { Button } from "@openstatus/ui/components/ui/button";
-
import { cn } from "@openstatus/ui/lib/utils";
+import type { Column } from "@tanstack/react-table";
+import { ChevronDown, ChevronUp } from "lucide-react";
-interface DataTableColumnHeaderProps<TData, TValue>
- extends React.ComponentProps<"button"> {
+interface DataTableColumnHeaderProps<
+ TData,
+ TValue,
+> extends React.ComponentProps<"button"> {
column: Column<TData, TValue>;
title: string;
}
diff --git a/apps/dashboard/src/components/ui/data-table/data-table-faceted-filter.tsx b/apps/dashboard/src/components/ui/data-table/data-table-faceted-filter.tsx
index c4ca10738..8c4863d3c 100644
--- a/apps/dashboard/src/components/ui/data-table/data-table-faceted-filter.tsx
+++ b/apps/dashboard/src/components/ui/data-table/data-table-faceted-filter.tsx
@@ -1,7 +1,3 @@
-import type { Column } from "@tanstack/react-table";
-import { Check, PlusCircle } from "lucide-react";
-import type * as React from "react";
-
import { Badge } from "@openstatus/ui/components/ui/badge";
import { Button } from "@openstatus/ui/components/ui/button";
import {
@@ -19,6 +15,9 @@ import {
PopoverTrigger,
} from "@openstatus/ui/components/ui/popover";
import { cn } from "@openstatus/ui/lib/utils";
+import type { Column } from "@tanstack/react-table";
+import { Check, PlusCircle } from "lucide-react";
+import type * as React from "react";
interface DataTableFacetedFilterProps<TData, TValue> {
column?: Column<TData, TValue>;
@@ -114,7 +113,7 @@ export function DataTableFacetedFilter<TData, TValue>({
>
<div
className={cn(
- "mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",
+ "border-primary mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",
isSelected
? "bg-primary text-primary-foreground"
: "opacity-50 [&_svg]:invisible",
@@ -127,7 +126,7 @@ export function DataTableFacetedFilter<TData, TValue>({
/>
</div>
{option.icon && (
- <option.icon className="mr-2 h-4 w-4 text-muted-foreground" />
+ <option.icon className="text-muted-foreground mr-2 h-4 w-4" />
)}
<span className="truncate">{option.label}</span>
{facets?.get(option.value) && (
diff --git a/apps/dashboard/src/components/ui/data-table/data-table-pagination.tsx b/apps/dashboard/src/components/ui/data-table/data-table-pagination.tsx
index 988c0cce4..fded59948 100644
--- a/apps/dashboard/src/components/ui/data-table/data-table-pagination.tsx
+++ b/apps/dashboard/src/components/ui/data-table/data-table-pagination.tsx
@@ -1,11 +1,3 @@
-import type { Table } from "@tanstack/react-table";
-import {
- ChevronLeft,
- ChevronRight,
- ChevronsLeft,
- ChevronsRight,
-} from "lucide-react";
-
import { Button } from "@openstatus/ui/components/ui/button";
import {
Select,
@@ -14,6 +6,13 @@ import {
SelectTrigger,
SelectValue,
} from "@openstatus/ui/components/ui/select";
+import type { Table } from "@tanstack/react-table";
+import {
+ ChevronLeft,
+ ChevronRight,
+ ChevronsLeft,
+ ChevronsRight,
+} from "lucide-react";
export interface DataTablePaginationProps<TData> {
table: Table<TData>;
@@ -24,13 +23,13 @@ export function DataTablePagination<TData>({
}: DataTablePaginationProps<TData>) {
return (
<div className="flex flex-wrap items-center justify-between gap-2">
- <div className="flex-1 text-muted-foreground text-sm">
+ <div className="text-muted-foreground flex-1 text-sm">
{table.getFilteredSelectedRowModel().rows.length} of{" "}
{table.getFilteredRowModel().rows.length} row(s) selected.
</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>
+ <p className="text-sm font-medium">Rows per page</p>
<Select
value={`${table.getState().pagination.pageSize}`}
onValueChange={(value) => {
@@ -49,7 +48,7 @@ export function DataTablePagination<TData>({
</SelectContent>
</Select>
</div>
- <div className="flex items-center justify-center font-medium text-sm">
+ <div className="flex items-center justify-center text-sm font-medium">
Page {table.getState().pagination.pageIndex + 1} of{" "}
{table.getPageCount()}
</div>
@@ -101,7 +100,7 @@ export function DataTablePaginationSimple<TData>({
}: DataTablePaginationProps<TData>) {
return (
<div className="flex items-center justify-between">
- <div className="flex-1 text-muted-foreground text-sm">
+ <div className="text-muted-foreground flex-1 text-sm">
{table.getFilteredRowModel().rows.length} of{" "}
{table.getPreFilteredRowModel().rows.length} row(s) filtered.
</div>
diff --git a/apps/dashboard/src/components/ui/data-table/data-table-toobar.tsx b/apps/dashboard/src/components/ui/data-table/data-table-toobar.tsx
index a511548e8..bb18066f8 100644
--- a/apps/dashboard/src/components/ui/data-table/data-table-toobar.tsx
+++ b/apps/dashboard/src/components/ui/data-table/data-table-toobar.tsx
@@ -1,13 +1,12 @@
"use client";
-import type { Table } from "@tanstack/react-table";
-import { X } from "lucide-react";
-
-import { DataTableViewOptions } from "@/components/ui/data-table/data-table-view-options";
import { Button } from "@openstatus/ui/components/ui/button";
import { Input } from "@openstatus/ui/components/ui/input";
+import type { Table } from "@tanstack/react-table";
+import { X } from "lucide-react";
import { DataTableFacetedFilter } from "@/components/ui/data-table/data-table-faceted-filter";
+import { DataTableViewOptions } from "@/components/ui/data-table/data-table-view-options";
export interface DataTableToolbarProps<TData> {
table: Table<TData>;
diff --git a/apps/dashboard/src/components/ui/data-table/data-table-view-options.tsx b/apps/dashboard/src/components/ui/data-table/data-table-view-options.tsx
index 10cf8fe10..9331814d3 100644
--- a/apps/dashboard/src/components/ui/data-table/data-table-view-options.tsx
+++ b/apps/dashboard/src/components/ui/data-table/data-table-view-options.tsx
@@ -1,9 +1,5 @@
"use client";
-import { DropdownMenuTrigger } from "@radix-ui/react-dropdown-menu";
-import type { Table } from "@tanstack/react-table";
-import { Settings2 } from "lucide-react";
-
import { Button } from "@openstatus/ui/components/ui/button";
import {
DropdownMenu,
@@ -12,6 +8,9 @@ import {
DropdownMenuLabel,
DropdownMenuSeparator,
} from "@openstatus/ui/components/ui/dropdown-menu";
+import { DropdownMenuTrigger } from "@radix-ui/react-dropdown-menu";
+import type { Table } from "@tanstack/react-table";
+import { Settings2 } from "lucide-react";
interface DataTableViewOptionsProps<TData> {
table: Table<TData>;
diff --git a/apps/dashboard/src/components/ui/data-table/data-table.tsx b/apps/dashboard/src/components/ui/data-table/data-table.tsx
index 8809739a7..084bb62a5 100644
--- a/apps/dashboard/src/components/ui/data-table/data-table.tsx
+++ b/apps/dashboard/src/components/ui/data-table/data-table.tsx
@@ -1,5 +1,13 @@
"use client";
+import {
+ Table,
+ TableBody,
+ TableCell,
+ TableHead,
+ TableHeader,
+ TableRow,
+} from "@openstatus/ui/components/ui/table";
import {
type ColumnDef,
type ColumnFiltersState,
@@ -18,16 +26,8 @@ import {
useReactTable,
} from "@tanstack/react-table";
import * as React from "react";
-
-import {
- Table,
- TableBody,
- TableCell,
- TableHead,
- TableHeader,
- TableRow,
-} from "@openstatus/ui/components/ui/table";
import { Fragment } from "react";
+
import type { DataTableActionBarProps } from "./data-table-action-bar";
import type { DataTablePaginationProps } from "./data-table-pagination";
import type { DataTableToolbarProps } from "./data-table-toobar";
@@ -75,7 +75,7 @@ export function DataTable<TData, TValue>({
pagination,
setPagination,
}: DataTableProps<TData, TValue>) {
- // biome-ignore lint/suspicious/noExplicitAny: <explanation>
+ // oxlint-disable-next-line typescript/no-explicit-any
const [globalFilter, setGlobalFilter] = React.useState<any>();
const [rowSelection, setRowSelection] = React.useState({});
const [columnVisibility, setColumnVisibility] =
diff --git a/apps/dashboard/src/components/ui/sortable.tsx b/apps/dashboard/src/components/ui/sortable.tsx
index 9b6ee53a2..624c18a14 100644
--- a/apps/dashboard/src/components/ui/sortable.tsx
+++ b/apps/dashboard/src/components/ui/sortable.tsx
@@ -443,7 +443,7 @@ const SortableItem = React.forwardRef<HTMLDivElement, SortableItemProps>(
ref={composedRef}
style={composedStyle}
className={cn(
- "focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1",
+ "focus-visible:ring-ring focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden",
{
"touch-none select-none": asHandle,
"cursor-default": context.flatCursor,
@@ -461,8 +461,7 @@ const SortableItem = React.forwardRef<HTMLDivElement, SortableItemProps>(
);
SortableItem.displayName = ITEM_NAME;
-interface SortableItemHandleProps
- extends React.ComponentPropsWithoutRef<"button"> {
+interface SortableItemHandleProps extends React.ComponentPropsWithoutRef<"button"> {
asChild?: boolean;
}
@@ -521,8 +520,10 @@ const dropAnimation: DropAnimation = {
}),
};
-interface SortableOverlayProps
- extends Omit<React.ComponentPropsWithoutRef<typeof DragOverlay>, "children"> {
+interface SortableOverlayProps extends Omit<
+ React.ComponentPropsWithoutRef<typeof DragOverlay>,
+ "children"
+> {
container?: Element | DocumentFragment | null;
children?:
| ((params: { value: UniqueIdentifier }) => React.ReactNode)
diff --git a/apps/dashboard/src/data/audit-logs.client.ts b/apps/dashboard/src/data/audit-logs.client.ts
index 561e6ec07..99bec32a0 100644
--- a/apps/dashboard/src/data/audit-logs.client.ts
+++ b/apps/dashboard/src/data/audit-logs.client.ts
@@ -1,4 +1,3 @@
-import { formatMilliseconds } from "@/lib/formatter";
import type { PrivateLocation } from "@openstatus/db/src/schema";
import { getRegionInfo } from "@openstatus/regions";
import {
@@ -9,6 +8,8 @@ import {
Siren,
} from "lucide-react";
+import { formatMilliseconds } from "@/lib/formatter";
+
export const config = {
"incident.created": {
icon: Siren,
diff --git a/apps/dashboard/src/data/metrics.client.ts b/apps/dashboard/src/data/metrics.client.ts
index 252c33aa0..f7a4149a2 100644
--- a/apps/dashboard/src/data/metrics.client.ts
+++ b/apps/dashboard/src/data/metrics.client.ts
@@ -1,10 +1,12 @@
"use client";
-import type { MetricCard } from "@/components/metric/metric-card";
-import { formatDateTime, formatMilliseconds } from "@/lib/formatter";
import type { RouterOutputs } from "@openstatus/api";
import { monitorRegions } from "@openstatus/db/src/schema/constants";
import { startOfDay, subDays } from "date-fns";
+
+import type { MetricCard } from "@/components/metric/metric-card";
+import { formatDateTime, formatMilliseconds } from "@/lib/formatter";
+
import type { RegionMetric } from "./region-metrics";
export const STATUS = ["success", "error", "degraded"] as const;
diff --git a/apps/dashboard/src/data/notifications.client.ts b/apps/dashboard/src/data/notifications.client.ts
index bbccee1fe..638e28a94 100644
--- a/apps/dashboard/src/data/notifications.client.ts
+++ b/apps/dashboard/src/data/notifications.client.ts
@@ -1,16 +1,3 @@
-import { FormDiscord } from "@/components/forms/notifications/form-discord";
-import { FormEmail } from "@/components/forms/notifications/form-email";
-import { FormGoogleChat } from "@/components/forms/notifications/form-google-chat";
-import { FormGrafanaOncall } from "@/components/forms/notifications/form-grafana-oncall";
-import { FormMsTeams } from "@/components/forms/notifications/form-ms-teams";
-import { FormNtfy } from "@/components/forms/notifications/form-ntfy";
-import { FormOpsGenie } from "@/components/forms/notifications/form-opsgenie";
-import { FormPagerDuty } from "@/components/forms/notifications/form-pagerduty";
-import { FormSlack } from "@/components/forms/notifications/form-slack";
-import { FormSms } from "@/components/forms/notifications/form-sms";
-import { FormTelegram } from "@/components/forms/notifications/form-telegram";
-import { FormWebhook } from "@/components/forms/notifications/form-webhook";
-import { FormWhatsApp } from "@/components/forms/notifications/form-whatsapp";
import {
DiscordIcon,
GoogleIcon,
@@ -31,6 +18,20 @@ import {
Webhook,
} from "lucide-react";
+import { FormDiscord } from "@/components/forms/notifications/form-discord";
+import { FormEmail } from "@/components/forms/notifications/form-email";
+import { FormGoogleChat } from "@/components/forms/notifications/form-google-chat";
+import { FormGrafanaOncall } from "@/components/forms/notifications/form-grafana-oncall";
+import { FormMsTeams } from "@/components/forms/notifications/form-ms-teams";
+import { FormNtfy } from "@/components/forms/notifications/form-ntfy";
+import { FormOpsGenie } from "@/components/forms/notifications/form-opsgenie";
+import { FormPagerDuty } from "@/components/forms/notifications/form-pagerduty";
+import { FormSlack } from "@/components/forms/notifications/form-slack";
+import { FormSms } from "@/components/forms/notifications/form-sms";
+import { FormTelegram } from "@/components/forms/notifications/form-telegram";
+import { FormWebhook } from "@/components/forms/notifications/form-webhook";
+import { FormWhatsApp } from "@/components/forms/notifications/form-whatsapp";
+
export const actions = [
{
id: "edit",
diff --git a/apps/dashboard/src/hooks/use-feature.ts b/apps/dashboard/src/hooks/use-feature.ts
index d48b0bcd3..ba6654a84 100644
--- a/apps/dashboard/src/hooks/use-feature.ts
+++ b/apps/dashboard/src/hooks/use-feature.ts
@@ -1,6 +1,7 @@
-import { useTRPC } from "@/lib/trpc/client";
import { useQuery } from "@tanstack/react-query";
+import { useTRPC } from "@/lib/trpc/client";
+
/**
* Record<feature, [workspaceId, ...]>
*/
diff --git a/apps/dashboard/src/hooks/use-telegram-connection.ts b/apps/dashboard/src/hooks/use-telegram-connection.ts
index 1c27e0202..4cbf6fa91 100644
--- a/apps/dashboard/src/hooks/use-telegram-connection.ts
+++ b/apps/dashboard/src/hooks/use-telegram-connection.ts
@@ -1,12 +1,13 @@
"use client";
-import type { FormValues } from "@/components/forms/notifications/form-telegram";
-import { useTRPC } from "@/lib/trpc/client";
import { useQuery } from "@tanstack/react-query";
import React, { useReducer, useTransition } from "react";
import type { UseFormReturn } from "react-hook-form";
import { toast } from "sonner";
+import type { FormValues } from "@/components/forms/notifications/form-telegram";
+import { useTRPC } from "@/lib/trpc/client";
+
interface UseTelegramConnectionProps {
form: UseFormReturn<FormValues>;
mode: "qr" | "manual" | null;
@@ -119,7 +120,7 @@ export function useTelegramConnection({
...trpc.notification.getTelegramUpdates.queryOptions({
privateChatId:
state.flowStep === "group"
- ? state.privateChatId ?? undefined
+ ? (state.privateChatId ?? undefined)
: undefined,
since: state.sessionStartTime ?? undefined,
}),
diff --git a/apps/dashboard/src/lib/auth/adapter.ts b/apps/dashboard/src/lib/auth/adapter.ts
index 552e5a251..5ca66ef16 100644
--- a/apps/dashboard/src/lib/auth/adapter.ts
+++ b/apps/dashboard/src/lib/auth/adapter.ts
@@ -1,6 +1,4 @@
import { DrizzleAdapter } from "@auth/drizzle-adapter";
-import type { Adapter } from "next-auth/adapters";
-
import { db } from "@openstatus/db";
import {
account,
@@ -8,6 +6,7 @@ import {
user,
verificationToken,
} from "@openstatus/db/src/schema";
+import type { Adapter } from "next-auth/adapters";
import { createUser, getUser } from "./helpers";
diff --git a/apps/dashboard/src/lib/auth/helpers.ts b/apps/dashboard/src/lib/auth/helpers.ts
index d5831e818..367e21550 100644
--- a/apps/dashboard/src/lib/auth/helpers.ts
+++ b/apps/dashboard/src/lib/auth/helpers.ts
@@ -1,8 +1,7 @@
-import type { AdapterUser } from "next-auth/adapters";
-import * as randomWordSlugs from "random-word-slugs";
-
import { db, eq } from "@openstatus/db";
import { user, usersToWorkspaces, workspace } from "@openstatus/db/src/schema";
+import type { AdapterUser } from "next-auth/adapters";
+import * as randomWordSlugs from "random-word-slugs";
export async function createUser(data: AdapterUser) {
const newUser = await db
diff --git a/apps/dashboard/src/lib/auth/index.ts b/apps/dashboard/src/lib/auth/index.ts
index 53dbf225d..a34f1bbb9 100644
--- a/apps/dashboard/src/lib/auth/index.ts
+++ b/apps/dashboard/src/lib/auth/index.ts
@@ -1,12 +1,11 @@
-import type { DefaultSession } from "next-auth";
-import NextAuth from "next-auth";
-
import { Events, setupAnalytics } from "@openstatus/analytics";
import { db, eq } from "@openstatus/db";
import { user } from "@openstatus/db/src/schema";
-
import { WelcomeEmail, sendEmail } from "@openstatus/emails";
+import type { DefaultSession } from "next-auth";
+import NextAuth from "next-auth";
import { headers } from "next/headers";
+
import { adapter } from "./adapter";
import { GitHubProvider, GoogleProvider, ResendProvider } from "./providers";
diff --git a/apps/dashboard/src/lib/edge-context.ts b/apps/dashboard/src/lib/edge-context.ts
index 0a42b2036..60e5a5e35 100644
--- a/apps/dashboard/src/lib/edge-context.ts
+++ b/apps/dashboard/src/lib/edge-context.ts
@@ -1,7 +1,8 @@
-import { auth } from "@/lib/auth";
import { asc, db, eq, schema } from "@openstatus/db";
import type { ServiceContext } from "@openstatus/services";
+import { auth } from "@/lib/auth";
+
/**
* Build a `ServiceContext` from a Next.js Edge Route Handler request.
* Resolves session → user → workspace from the request, mirroring the
@@ -50,9 +51,9 @@ export async function getServiceContextFromRequest(
// Fall back to first workspace when the cookie is stale (slug renamed,
// user removed) — matches `enforceUserIsAuthed` in tRPC.
const activeWorkspace = workspaceSlugCookie
- ? userAndWorkspace.usersToWorkspaces?.find(
+ ? (userAndWorkspace.usersToWorkspaces?.find(
({ workspace }) => workspace.slug === workspaceSlugCookie,
- )?.workspace ?? userAndWorkspace.usersToWorkspaces?.[0]?.workspace
+ )?.workspace ?? userAndWorkspace.usersToWorkspaces?.[0]?.workspace)
: userAndWorkspace.usersToWorkspaces?.[0]?.workspace;
if (!activeWorkspace) return null;
diff --git a/apps/dashboard/src/lib/trpc/client.tsx b/apps/dashboard/src/lib/trpc/client.tsx
index 9d1609037..296c0c426 100644
--- a/apps/dashboard/src/lib/trpc/client.tsx
+++ b/apps/dashboard/src/lib/trpc/client.tsx
@@ -1,12 +1,12 @@
"use client";
-import { endingLink } from "@/lib/trpc/shared";
+import type { AppRouter } from "@openstatus/api";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { createTRPCClient, loggerLink } from "@trpc/client";
import { createTRPCContext } from "@trpc/tanstack-react-query";
import { useState } from "react";
-import type { AppRouter } from "@openstatus/api";
+import { endingLink } from "@/lib/trpc/shared";
export const { TRPCProvider, useTRPC, useTRPCClient } =
createTRPCContext<AppRouter>();
diff --git a/apps/dashboard/src/lib/trpc/server.tsx b/apps/dashboard/src/lib/trpc/server.tsx
index 91aebb40f..689df6964 100644
--- a/apps/dashboard/src/lib/trpc/server.tsx
+++ b/apps/dashboard/src/lib/trpc/server.tsx
@@ -1,7 +1,5 @@
import "server-only";
-
import type { AppRouter } from "@openstatus/api";
-
import { HydrationBoundary } from "@tanstack/react-query";
import { dehydrate } from "@tanstack/react-query";
import { TRPCClientError, createTRPCClient, loggerLink } from "@trpc/client";
@@ -13,6 +11,7 @@ import {
import { cookies } from "next/headers";
import { notFound } from "next/navigation";
import { cache } from "react";
+
import { makeQueryClient } from "./query-client";
import { endingLink } from "./shared";
@@ -66,21 +65,21 @@ export function HydrateClient(props: { children: React.ReactNode }) {
);
}
-// biome-ignore lint/suspicious/noExplicitAny: FIXME: remove any
+// oxlint-disable-next-line typescript/no-explicit-any -- FIXME: remove any
export function prefetch<T extends ReturnType<TRPCQueryOptions<any>>>(
queryOptions: T,
) {
const queryClient = getQueryClient();
if (queryOptions.queryKey[1]?.type === "infinite") {
- // biome-ignore lint/suspicious/noExplicitAny: FIXME: remove any
+ // oxlint-disable-next-line typescript/no-explicit-any -- FIXME: remove any
void queryClient.prefetchInfiniteQuery(queryOptions as any);
} else {
void queryClient.prefetchQuery(queryOptions);
}
}
-// biome-ignore lint/suspicious/noExplicitAny: FIXME: remove any
+// oxlint-disable-next-line typescript/no-explicit-any -- FIXME: remove any
export function batchPrefetch<T extends ReturnType<TRPCQueryOptions<any>>>(
queryOptionsArray: T[],
) {
@@ -88,7 +87,7 @@ export function batchPrefetch<T extends ReturnType<TRPCQueryOptions<any>>>(
for (const queryOptions of queryOptionsArray) {
if (queryOptions.queryKey[1]?.type === "infinite") {
- // biome-ignore lint/suspicious/noExplicitAny: FIXME: remove any
+ // oxlint-disable-next-line typescript/no-explicit-any -- FIXME: remove any
void queryClient.prefetchInfiniteQuery(queryOptions as any);
} else {
void queryClient.prefetchQuery(queryOptions);
diff --git a/apps/dashboard/src/lib/trpc/shared.ts b/apps/dashboard/src/lib/trpc/shared.ts
index 4dd4694df..7d94f8fee 100644
--- a/apps/dashboard/src/lib/trpc/shared.ts
+++ b/apps/dashboard/src/lib/trpc/shared.ts
@@ -1,7 +1,6 @@
+import type { AppRouter } from "@openstatus/api";
import type { HTTPBatchLinkOptions, HTTPHeaders, TRPCLink } from "@trpc/client";
import { httpBatchLink } from "@trpc/client";
-
-import type { AppRouter } from "@openstatus/api";
import superjson from "superjson";
/**
@@ -52,7 +51,7 @@ export const endingLink = (opts?: {
headers: opts?.headers,
fetch: opts?.fetch,
transformer: superjson,
- // biome-ignore lint/suspicious/noExplicitAny: FIXME: remove any
+ // oxlint-disable-next-line typescript/no-explicit-any -- FIXME: remove any
} satisfies Partial<HTTPBatchLinkOptions<any>>;
const edgeLink = httpBatchLink({
diff --git a/apps/dashboard/src/proxy.ts b/apps/dashboard/src/proxy.ts
index b7d90a8f0..2e5254bc8 100644
--- a/apps/dashboard/src/proxy.ts
+++ b/apps/dashboard/src/proxy.ts
@@ -1,10 +1,9 @@
-import { NextResponse } from "next/server";
-
-import { auth } from "@/lib/auth";
-
import { db, eq } from "@openstatus/db";
import { user, usersToWorkspaces, workspace } from "@openstatus/db/src/schema";
import { getCurrency } from "@openstatus/db/src/schema/plan/utils";
+import { NextResponse } from "next/server";
+
+import { auth } from "@/lib/auth";
export default auth(async (req) => {
const url = req.nextUrl.clone();
diff --git a/apps/screenshot-service/src/index.ts b/apps/screenshot-service/src/index.ts
index d5f0b98be..e0818636b 100644
--- a/apps/screenshot-service/src/index.ts
+++ b/apps/screenshot-service/src/index.ts
@@ -1,12 +1,11 @@
import { PutObjectCommand, S3Client } from "@aws-sdk/client-s3";
import { zValidator } from "@hono/zod-validator";
-import { Hono } from "hono";
-import playwright from "playwright";
-import { z } from "zod";
-
import { db, eq } from "@openstatus/db";
import { incidentTable } from "@openstatus/db/src/schema/incidents/incident";
import { Receiver } from "@upstash/qstash";
+import { Hono } from "hono";
+import playwright from "playwright";
+import { z } from "zod";
import { env } from "./env";
diff --git a/apps/server/package.json b/apps/server/package.json
index 76e282c21..818f415d3 100644
--- a/apps/server/package.json
+++ b/apps/server/package.json
@@ -13,6 +13,7 @@
"eval:mcp": "bun run src/routes/mcp/evals/run.ts"
},
"dependencies": {
+ "@ai-sdk/anthropic": "catalog:",
"@bufbuild/protobuf": "catalog:",
"@bufbuild/protovalidate": "catalog:",
"@connectrpc/connect": "catalog:",
@@ -22,13 +23,16 @@
"@hono/sentry": "catalog:",
"@hono/zod-openapi": "catalog:",
"@hono/zod-validator": "catalog:",
- "@modelcontextprotocol/sdk": "catalog:",
"@logtape/logtape": "catalog:",
"@logtape/otel": "catalog:",
"@logtape/sentry": "catalog:",
+ "@modelcontextprotocol/sdk": "catalog:",
"@openstatus/analytics": "workspace:*",
- "@openstatus/services": "workspace:*",
- "@openstatus/subscriptions": "workspace:*",
+ "@openstatus/assertions": "workspace:*",
+ "@openstatus/db": "workspace:*",
+ "@openstatus/emails": "workspace:*",
+ "@openstatus/error": "workspace:*",
+ "@openstatus/notification-bird-whatsapp": "workspace:*",
"@openstatus/notification-discord": "workspace:*",
"@openstatus/notification-google-chat": "workspace:*",
"@openstatus/notification-grafana-oncall": "workspace:*",
@@ -38,14 +42,11 @@
"@openstatus/notification-pagerduty": "workspace:*",
"@openstatus/notification-slack": "workspace:*",
"@openstatus/notification-telegram": "workspace:*",
- "@openstatus/notification-bird-whatsapp": "workspace:*",
"@openstatus/notification-webhook": "workspace:*",
- "@openstatus/assertions": "workspace:*",
- "@openstatus/db": "workspace:*",
- "@openstatus/emails": "workspace:*",
- "@openstatus/error": "workspace:*",
"@openstatus/proto": "workspace:*",
"@openstatus/regions": "workspace:*",
+ "@openstatus/services": "workspace:*",
+ "@openstatus/subscriptions": "workspace:*",
"@openstatus/theme-store": "workspace:*",
"@openstatus/tinybird": "workspace:*",
"@openstatus/tracker": "workspace:*",
@@ -54,17 +55,16 @@
"@opentelemetry/resources": "catalog:",
"@opentelemetry/semantic-conventions": "catalog:",
"@scalar/hono-api-reference": "catalog:",
+ "@slack/web-api": "catalog:",
"@t3-oss/env-core": "catalog:",
"@unkey/api": "catalog:",
"@upstash/qstash": "catalog:",
+ "ai": "catalog:",
"hono": "catalog:",
"hono-rate-limiter": "catalog:",
"nanoid": "catalog:",
"percentile": "catalog:",
"validator": "catalog:",
- "@slack/web-api": "catalog:",
- "@ai-sdk/anthropic": "catalog:",
- "ai": "catalog:",
"zod": "catalog:"
},
"devDependencies": {
diff --git a/apps/server/src/index.ts b/apps/server/src/index.ts
index b4e1aa53c..8c6dc0fa6 100644
--- a/apps/server/src/index.ts
+++ b/apps/server/src/index.ts
@@ -10,14 +10,14 @@ import {
withContext,
} from "@logtape/logtape";
import { getOpenTelemetrySink } from "@logtape/otel";
-import { Hono } from "hono";
-import { showRoutes } from "hono/dev";
-
import { resourceFromAttributes } from "@opentelemetry/resources";
import { ATTR_DEPLOYMENT_ENVIRONMENT_NAME } from "@opentelemetry/semantic-conventions/incubating";
import { Scalar } from "@scalar/hono-api-reference";
+import { Hono } from "hono";
+import { showRoutes } from "hono/dev";
import { prettyJSON } from "hono/pretty-json";
import { requestId } from "hono/request-id";
+
import openapiV1Json from "../static/openapi-v1.json" with { type: "json" };
import openapiYaml from "../static/openapi.yaml" with { type: "text" };
import { env } from "./env";
@@ -86,7 +86,7 @@ await configure({
contextLocalStorage: new AsyncLocalStorage(),
});
-/* biome-ignore lint/suspicious/noExplicitAny: <explanation> */
+/* oxlint-disable-next-line typescript/no-explicit-any */
function shouldSample(event: Record<string, any>): boolean {
// Always keep errors
if (event.status_code >= 500) return true;
diff --git a/apps/server/src/libs/checker/utils.ts b/apps/server/src/libs/checker/utils.ts
index ecff4b3a1..66c37f990 100644
--- a/apps/server/src/libs/checker/utils.ts
+++ b/apps/server/src/libs/checker/utils.ts
@@ -1,4 +1,3 @@
-import { OpenStatusApiError } from "@/libs/errors";
import type { z } from "@hono/zod-openapi";
import type { selectMonitorSchema } from "@openstatus/db/src/schema";
import {
@@ -7,6 +6,8 @@ import {
transformHeaders,
} from "@openstatus/utils";
+import { OpenStatusApiError } from "@/libs/errors";
+
export function getCheckerPayload(
monitor: z.infer<typeof selectMonitorSchema>,
status: z.infer<typeof selectMonitorSchema>["status"],
diff --git a/apps/server/src/libs/clients.ts b/apps/server/src/libs/clients.ts
index cf5bc2787..d777a8fb3 100644
--- a/apps/server/src/libs/clients.ts
+++ b/apps/server/src/libs/clients.ts
@@ -1,7 +1,8 @@
-import { env } from "@/env";
import { OSTinybird } from "@openstatus/tinybird";
import { Redis } from "@openstatus/upstash";
+import { env } from "@/env";
+
/**
* Shared singleton instances for external services.
* Using singletons prevents memory leaks from creating multiple instances
diff --git a/apps/server/src/libs/errors/openapi-error-responses.ts b/apps/server/src/libs/errors/openapi-error-responses.ts
index c19bc57f3..ec233d988 100644
--- a/apps/server/src/libs/errors/openapi-error-responses.ts
+++ b/apps/server/src/libs/errors/openapi-error-responses.ts
@@ -1,4 +1,5 @@
import type { RouteConfig } from "@hono/zod-openapi";
+
import { createErrorSchema } from "./utils";
export const openApiErrorResponses = {
diff --git a/apps/server/src/libs/errors/utils.ts b/apps/server/src/libs/errors/utils.ts
index 26442243f..57e2767d3 100644
--- a/apps/server/src/libs/errors/utils.ts
+++ b/apps/server/src/libs/errors/utils.ts
@@ -1,7 +1,5 @@
-// Props to Unkey: https://github.com/unkeyed/unkey/blob/main/apps/api/src/pkg/errors/http.ts
-import type { Context } from "hono";
-import { HTTPException } from "hono/http-exception";
-
+import { z } from "@hono/zod-openapi";
+import { getLogger } from "@logtape/logtape";
import type { ErrorCode } from "@openstatus/error";
import {
ErrorCodes,
@@ -9,9 +7,9 @@ import {
codeToStatus,
statusToCode,
} from "@openstatus/error";
-
-import { z } from "@hono/zod-openapi";
-import { getLogger } from "@logtape/logtape";
+// Props to Unkey: https://github.com/unkeyed/unkey/blob/main/apps/api/src/pkg/errors/http.ts
+import type { Context } from "hono";
+import { HTTPException } from "hono/http-exception";
import { ZodError } from "zod";
const logger = getLogger("api-server");
diff --git a/apps/server/src/libs/middlewares/auth.ts b/apps/server/src/libs/middlewares/auth.ts
index 198d5bd65..7d38448ba 100644
--- a/apps/server/src/libs/middlewares/auth.ts
+++ b/apps/server/src/libs/middlewares/auth.ts
@@ -1,10 +1,3 @@
-import { UnkeyCore } from "@unkey/api/core";
-import { keysVerifyKey } from "@unkey/api/funcs/keysVerifyKey";
-import type { Context, Next } from "hono";
-
-import { env } from "@/env";
-import { OpenStatusApiError } from "@/libs/errors";
-import type { Variables } from "@/types";
import { getLogger } from "@logtape/logtape";
import { db, eq } from "@openstatus/db";
import {
@@ -17,6 +10,13 @@ import {
shouldUpdateLastUsed,
verifyApiKeyHash,
} from "@openstatus/db/src/utils/api-key";
+import { UnkeyCore } from "@unkey/api/core";
+import { keysVerifyKey } from "@unkey/api/funcs/keysVerifyKey";
+import type { Context, Next } from "hono";
+
+import { env } from "@/env";
+import { OpenStatusApiError } from "@/libs/errors";
+import type { Variables } from "@/types";
const logger = getLogger("api-server");
diff --git a/apps/server/src/libs/middlewares/plan.ts b/apps/server/src/libs/middlewares/plan.ts
index f70abf40c..37efd42d3 100644
--- a/apps/server/src/libs/middlewares/plan.ts
+++ b/apps/server/src/libs/middlewares/plan.ts
@@ -1,9 +1,11 @@
-import type { Variables } from "@/types";
import {
type Workspace,
workspacePlanHierarchy,
} from "@openstatus/db/src/schema";
import type { Context, Next } from "hono";
+
+import type { Variables } from "@/types";
+
import { OpenStatusApiError } from "../errors";
/**
diff --git a/apps/server/src/libs/middlewares/require-scope.test.ts b/apps/server/src/libs/middlewares/require-scope.test.ts
index 7f5386866..05818307b 100644
--- a/apps/server/src/libs/middlewares/require-scope.test.ts
+++ b/apps/server/src/libs/middlewares/require-scope.test.ts
@@ -1,8 +1,10 @@
import { describe, expect, test } from "bun:test";
+
+import type { Scope } from "@openstatus/db/src/schema";
import { Hono } from "hono";
import type { Variables } from "@/types";
-import type { Scope } from "@openstatus/db/src/schema";
+
import { requireWriteScope } from "./require-scope";
/**
diff --git a/apps/server/src/libs/middlewares/track.ts b/apps/server/src/libs/middlewares/track.ts
index 38672af48..2d882cf78 100644
--- a/apps/server/src/libs/middlewares/track.ts
+++ b/apps/server/src/libs/middlewares/track.ts
@@ -1,4 +1,3 @@
-import type { Variables } from "@/types";
import { getLogger } from "@logtape/logtape";
import {
type EventProps,
@@ -7,6 +6,8 @@ import {
} from "@openstatus/analytics";
import type { Context, Next } from "hono";
+import type { Variables } from "@/types";
+
const logger = getLogger("api-server");
export function trackMiddleware(event: EventProps, eventProps?: string[]) {
diff --git a/apps/server/src/libs/test/preload.ts b/apps/server/src/libs/test/preload.ts
index b1a4761c8..a2efeadb6 100644
--- a/apps/server/src/libs/test/preload.ts
+++ b/apps/server/src/libs/test/preload.ts
@@ -1,4 +1,5 @@
import { mock } from "bun:test";
+
// Import the real module BEFORE mock.module runs so we can spread real
// service functions (createSubscription, updateChannel, etc.) into the
// replacement while still stubbing the dispatch-side spies.
diff --git a/apps/server/src/routes/mcp/handler.test.ts b/apps/server/src/routes/mcp/handler.test.ts
index a59128c54..baa6efc00 100644
--- a/apps/server/src/routes/mcp/handler.test.ts
+++ b/apps/server/src/routes/mcp/handler.test.ts
@@ -1,13 +1,14 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
-import { sentry } from "@hono/sentry";
-import { Hono } from "hono";
-import { requestId } from "hono/request-id";
+import { sentry } from "@hono/sentry";
import { db, desc, eq } from "@openstatus/db";
import { auditLog, page, statusReport } from "@openstatus/db/src/schema";
import { SEEDED_WORKSPACE_TEAM_ID } from "@openstatus/services/test/fixtures";
+import { Hono } from "hono";
+import { requestId } from "hono/request-id";
import { handleError } from "@/libs/errors";
+
import { mcpRoute } from "./index";
/**
diff --git a/apps/server/src/routes/mcp/tools/register-scoped.test.ts b/apps/server/src/routes/mcp/tools/register-scoped.test.ts
index dd8676882..f853a8f7a 100644
--- a/apps/server/src/routes/mcp/tools/register-scoped.test.ts
+++ b/apps/server/src/routes/mcp/tools/register-scoped.test.ts
@@ -1,4 +1,5 @@
import { describe, expect, test } from "bun:test";
+
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import type { Workspace } from "@openstatus/db/src/schema";
import type { ServiceContext } from "@openstatus/services";
diff --git a/apps/server/src/routes/mcp/tools/register-scoped.ts b/apps/server/src/routes/mcp/tools/register-scoped.ts
index 5da506840..668d0d22a 100644
--- a/apps/server/src/routes/mcp/tools/register-scoped.ts
+++ b/apps/server/src/routes/mcp/tools/register-scoped.ts
@@ -69,9 +69,9 @@ function actorScopes(ctx: ServiceContext): Scope[] {
* RegisteredTool>` for tests / debugging).
*/
export function registerScopedTool<
- // biome-ignore lint/suspicious/noExplicitAny: SDK uses `any` here too
+ // oxlint-disable-next-line typescript/no-explicit-any -- SDK uses `any` here too
InputArgs extends ZodRawShape | undefined = any,
- // biome-ignore lint/suspicious/noExplicitAny: SDK uses `any` here too
+ // oxlint-disable-next-line typescript/no-explicit-any -- SDK uses `any` here too
OutputArgs extends ZodRawShape | undefined = any,
>(
server: McpServer,
@@ -103,6 +103,6 @@ export function registerScopedTool<
// exports the canonical config + handler types. The generic plumbing
// around `registerTool` doesn't currently let us thread our narrowed
// `ScopedToolDefinition` through without a cast at the boundary.
- // biome-ignore lint/suspicious/noExplicitAny: pass-through to SDK
+ // oxlint-disable-next-line typescript/no-explicit-any -- pass-through to SDK
return server.registerTool(name, merged as any, handler as any);
}
diff --git a/apps/server/src/routes/mcp/tools/tools.test.ts b/apps/server/src/routes/mcp/tools/tools.test.ts
index c0fe9b0b6..0d64855af 100644
--- a/apps/server/src/routes/mcp/tools/tools.test.ts
+++ b/apps/server/src/routes/mcp/tools/tools.test.ts
@@ -143,9 +143,7 @@ async function callTool(
requestId: "test-req",
sendNotification: async () => undefined,
sendRequest: async () => undefined as never,
- // biome-ignore lint/suspicious/noExplicitAny: SDK types not relevant for unit test
} as any;
- // biome-ignore lint/suspicious/noExplicitAny: handler is dynamically typed by the SDK
return (tool.handler as any)(args, extra);
}
diff --git a/apps/server/src/routes/public/status.test.ts b/apps/server/src/routes/public/status.test.ts
index 750ca03c4..49c71237c 100644
--- a/apps/server/src/routes/public/status.test.ts
+++ b/apps/server/src/routes/public/status.test.ts
@@ -6,9 +6,11 @@ import {
expect,
test,
} from "bun:test";
-import { app } from "@/index";
+
import { db, eq } from "@openstatus/db";
+import { app } from "@/index";
+
const testRedisStore = (globalThis as Record<string, unknown>)
.__testRedisStore as Map<string, string> | undefined;
import {
diff --git a/apps/server/src/routes/public/status.ts b/apps/server/src/routes/public/status.ts
index 0c3b60837..049416034 100644
--- a/apps/server/src/routes/public/status.ts
+++ b/apps/server/src/routes/public/status.ts
@@ -1,9 +1,8 @@
import { getLogger } from "@logtape/logtape";
-import { Hono } from "hono";
-import { endTime, setMetric, startTime } from "hono/timing";
-
import { db, eq } from "@openstatus/db";
import { page } from "@openstatus/db/src/schema";
+import { Hono } from "hono";
+import { endTime, setMetric, startTime } from "hono/timing";
const logger = getLogger("api-server");
import { Status, Tracker } from "@openstatus/tracker";
diff --git a/apps/server/src/routes/public/unsubscribe.ts b/apps/server/src/routes/public/unsubscribe.ts
index 644cd1988..ad61618e5 100644
--- a/apps/server/src/routes/public/unsubscribe.ts
+++ b/apps/server/src/routes/public/unsubscribe.ts
@@ -1,8 +1,7 @@
import { getLogger } from "@logtape/logtape";
-import { Hono } from "hono";
-
import { db, eq } from "@openstatus/db";
import { pageSubscriber } from "@openstatus/db/src/schema";
+import { Hono } from "hono";
const logger = getLogger("api-server");
diff --git a/apps/server/src/routes/rpc/adapter.test.ts b/apps/server/src/routes/rpc/adapter.test.ts
index b65bc3a53..d5f02493c 100644
--- a/apps/server/src/routes/rpc/adapter.test.ts
+++ b/apps/server/src/routes/rpc/adapter.test.ts
@@ -1,6 +1,6 @@
import { beforeAll, describe, expect, test } from "bun:test";
-import { Code, ConnectError } from "@connectrpc/connect";
+import { Code, ConnectError } from "@connectrpc/connect";
import type { Workspace } from "@openstatus/db/src/schema";
import {
ForbiddenError,
diff --git a/apps/server/src/routes/rpc/handlers/maintenance/__tests__/maintenance.test.ts b/apps/server/src/routes/rpc/handlers/maintenance/__tests__/maintenance.test.ts
index 96e885dbb..874d96f6c 100644
--- a/apps/server/src/routes/rpc/handlers/maintenance/__tests__/maintenance.test.ts
+++ b/apps/server/src/routes/rpc/handlers/maintenance/__tests__/maintenance.test.ts
@@ -1,4 +1,5 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
+
import { db, eq } from "@openstatus/db";
import {
maintenance,
diff --git a/apps/server/src/routes/rpc/handlers/monitor/__tests__/monitor.test.ts b/apps/server/src/routes/rpc/handlers/monitor/__tests__/monitor.test.ts
index 3875da6de..7b9e19d92 100644
--- a/apps/server/src/routes/rpc/handlers/monitor/__tests__/monitor.test.ts
+++ b/apps/server/src/routes/rpc/handlers/monitor/__tests__/monitor.test.ts
@@ -6,6 +6,7 @@ import {
expect,
test,
} from "bun:test";
+
import { and, db, eq } from "@openstatus/db";
import {
auditLog,
diff --git a/apps/server/src/routes/rpc/handlers/monitor/converters/enums.ts b/apps/server/src/routes/rpc/handlers/monitor/converters/enums.ts
index 5193c4429..82ac27c3e 100644
--- a/apps/server/src/routes/rpc/handlers/monitor/converters/enums.ts
+++ b/apps/server/src/routes/rpc/handlers/monitor/converters/enums.ts
@@ -1,11 +1,10 @@
+import type { monitorPeriodicitySchema } from "@openstatus/db/src/schema/constants";
import {
HTTPMethod,
MonitorStatus,
Periodicity,
TimeRange,
} from "@openstatus/proto/monitor/v1";
-
-import type { monitorPeriodicitySchema } from "@openstatus/db/src/schema/constants";
import type { z } from "zod";
// ============================================================
diff --git a/apps/server/src/routes/rpc/handlers/monitor/index.ts b/apps/server/src/routes/rpc/handlers/monitor/index.ts
index 01a5c7cbb..3e7fda8aa 100644
--- a/apps/server/src/routes/rpc/handlers/monitor/index.ts
+++ b/apps/server/src/routes/rpc/handlers/monitor/index.ts
@@ -1,5 +1,3 @@
-import { env } from "@/env";
-import { getCheckerPayload, getCheckerUrl } from "@/libs/checker";
import type { ServiceImpl } from "@connectrpc/connect";
import { and, db, eq, gte, isNull, sql } from "@openstatus/db";
import { monitor, monitorRun } from "@openstatus/db/src/schema";
@@ -32,6 +30,9 @@ import {
listResponseLogs,
} from "@openstatus/services/monitor";
+import { env } from "@/env";
+import { getCheckerPayload, getCheckerUrl } from "@/libs/checker";
+
import { toConnectError, toServiceCtx } from "../../adapter";
import { getRpcContext } from "../../interceptors";
import {
diff --git a/apps/server/src/routes/rpc/handlers/monitor/response-logs.ts b/apps/server/src/routes/rpc/handlers/monitor/response-logs.ts
index 90a4b3268..22938e039 100644
--- a/apps/server/src/routes/rpc/handlers/monitor/response-logs.ts
+++ b/apps/server/src/routes/rpc/handlers/monitor/response-logs.ts
@@ -5,6 +5,7 @@ import {
type HTTPResponseLogTiming,
HTTPResponseLogTrigger,
} from "@openstatus/proto/monitor/v1";
+
import { stringToRegion } from "./converters";
type TinybirdTiming = {
diff --git a/apps/server/src/routes/rpc/handlers/monitor/validators.ts b/apps/server/src/routes/rpc/handlers/monitor/validators.ts
index adad80218..d01b008e3 100644
--- a/apps/server/src/routes/rpc/handlers/monitor/validators.ts
+++ b/apps/server/src/routes/rpc/handlers/monitor/validators.ts
@@ -45,9 +45,7 @@ export function toValidMethod(value: string | undefined): MonitorMethod {
* Note: name, url/uri, and periodicity are validated by protovalidate interceptor.
* Throws ConnectError if validation fails.
*/
-export function validateCommonMonitorFields(mon: {
- regions?: Region[];
-}): void {
+export function validateCommonMonitorFields(mon: { regions?: Region[] }): void {
if (mon.regions && mon.regions.length > 0) {
const regionStrings = regionsToStrings(mon.regions);
const invalidRegions = validateRegions(regionStrings);
diff --git a/apps/server/src/routes/rpc/handlers/notification/__tests__/notification.test.ts b/apps/server/src/routes/rpc/handlers/notification/__tests__/notification.test.ts
index 2053d0dbc..87c9dde4e 100644
--- a/apps/server/src/routes/rpc/handlers/notification/__tests__/notification.test.ts
+++ b/apps/server/src/routes/rpc/handlers/notification/__tests__/notification.test.ts
@@ -1,4 +1,5 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
+
import { db, eq } from "@openstatus/db";
import {
notification,
diff --git a/apps/server/src/routes/rpc/handlers/notification/index.ts b/apps/server/src/routes/rpc/handlers/notification/index.ts
index c370eb7df..72c37365f 100644
--- a/apps/server/src/routes/rpc/handlers/notification/index.ts
+++ b/apps/server/src/routes/rpc/handlers/notification/index.ts
@@ -1,5 +1,6 @@
import type { ServiceImpl } from "@connectrpc/connect";
import type { NotificationService } from "@openstatus/proto/notification/v1";
+import { ForbiddenError } from "@openstatus/services";
import {
createNotification,
deleteNotification,
@@ -8,8 +9,6 @@ import {
updateNotification,
} from "@openstatus/services/notification";
-import { ForbiddenError } from "@openstatus/services";
-
import { toConnectError, toServiceCtx } from "../../adapter";
import { getRpcContext } from "../../interceptors";
import {
diff --git a/apps/server/src/routes/rpc/handlers/notification/limits.ts b/apps/server/src/routes/rpc/handlers/notification/limits.ts
index b8e052267..e286aab25 100644
--- a/apps/server/src/routes/rpc/handlers/notification/limits.ts
+++ b/apps/server/src/routes/rpc/handlers/notification/limits.ts
@@ -2,6 +2,7 @@ import { count, db, eq } from "@openstatus/db";
import { notification } from "@openstatus/db/src/schema";
import type { Limits } from "@openstatus/db/src/schema/plan/schema";
import { NotificationProvider } from "@openstatus/proto/notification/v1";
+
import {
notificationLimitReachedError,
providerNotAllowedError,
diff --git a/apps/server/src/routes/rpc/handlers/notification/test-providers.ts b/apps/server/src/routes/rpc/handlers/notification/test-providers.ts
index 76dc24ffd..98be82464 100644
--- a/apps/server/src/routes/rpc/handlers/notification/test-providers.ts
+++ b/apps/server/src/routes/rpc/handlers/notification/test-providers.ts
@@ -14,6 +14,7 @@ import {
NotificationProvider,
OpsgenieRegion,
} from "@openstatus/proto/notification/v1";
+
import {
invalidNotificationDataError,
providerNotSupportedError,
diff --git a/apps/server/src/routes/rpc/handlers/status-page/__tests__/status-page.test.ts b/apps/server/src/routes/rpc/handlers/status-page/__tests__/status-page.test.ts
index 98331043c..14b3950e1 100644
--- a/apps/server/src/routes/rpc/handlers/status-page/__tests__/status-page.test.ts
+++ b/apps/server/src/routes/rpc/handlers/status-page/__tests__/status-page.test.ts
@@ -1,4 +1,5 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
+
import { and, db, eq, isNull, sql } from "@openstatus/db";
import {
auditLog,
diff --git a/apps/server/src/routes/rpc/handlers/status-page/converters.ts b/apps/server/src/routes/rpc/handlers/status-page/converters.ts
index b287dd66f..2dbb4bccb 100644
--- a/apps/server/src/routes/rpc/handlers/status-page/converters.ts
+++ b/apps/server/src/routes/rpc/handlers/status-page/converters.ts
@@ -365,7 +365,9 @@ export function dbSubscriberToProto(
name: subscriber.name ?? undefined,
channelType: subscriber.channelType,
webhookUrl: webhookUrlForProto(subscriber.source, subscriber.webhookUrl),
- channelConfig: isVendor ? subscriber.channelConfig ?? undefined : undefined,
+ channelConfig: isVendor
+ ? (subscriber.channelConfig ?? undefined)
+ : undefined,
componentIds: (subscriber.componentIds ?? []).map(String),
};
}
diff --git a/apps/server/src/routes/rpc/handlers/status-report/__tests__/status-report.test.ts b/apps/server/src/routes/rpc/handlers/status-report/__tests__/status-report.test.ts
index 591bb4e17..d0be78394 100644
--- a/apps/server/src/routes/rpc/handlers/status-report/__tests__/status-report.test.ts
+++ b/apps/server/src/routes/rpc/handlers/status-report/__tests__/status-report.test.ts
@@ -1,4 +1,5 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
+
import { db, eq } from "@openstatus/db";
import {
page,
@@ -11,6 +12,7 @@ import {
import { StatusReportStatus } from "@openstatus/proto/status_report/v1";
import { app } from "@/index";
+
import { protoStatusToDb } from "../converters";
const subscriptionSpies = (globalThis as Record<string, unknown>)
diff --git a/apps/server/src/routes/rpc/handlers/status-report/converters.ts b/apps/server/src/routes/rpc/handlers/status-report/converters.ts
index 50981dd4b..bc8104982 100644
--- a/apps/server/src/routes/rpc/handlers/status-report/converters.ts
+++ b/apps/server/src/routes/rpc/handlers/status-report/converters.ts
@@ -4,6 +4,7 @@ import type {
StatusReportUpdate,
} from "@openstatus/proto/status_report/v1";
import { StatusReportStatus } from "@openstatus/proto/status_report/v1";
+
import { invalidStatusError } from "./errors";
type DBStatusReport = {
diff --git a/apps/server/src/routes/rpc/interceptors/__tests__/tracking.test.ts b/apps/server/src/routes/rpc/interceptors/__tests__/tracking.test.ts
index 4a2541826..d79ebb00b 100644
--- a/apps/server/src/routes/rpc/interceptors/__tests__/tracking.test.ts
+++ b/apps/server/src/routes/rpc/interceptors/__tests__/tracking.test.ts
@@ -1,6 +1,7 @@
// @ts-nocheck — ConnectRPC's deep generic types (AnyFn, UnaryResponse, etc.)
// are incompatible with bun:test mocks. All runtime behavior is correct.
import { beforeEach, describe, expect, mock, test } from "bun:test";
+
import type { Interceptor } from "@connectrpc/connect";
import { Events } from "@openstatus/analytics";
diff --git a/apps/server/src/routes/rpc/interceptors/error.ts b/apps/server/src/routes/rpc/interceptors/error.ts
index 9f69eced4..82e448175 100644
--- a/apps/server/src/routes/rpc/interceptors/error.ts
+++ b/apps/server/src/routes/rpc/interceptors/error.ts
@@ -3,6 +3,7 @@ import { getLogger } from "@logtape/logtape";
import type { ErrorCode } from "@openstatus/error";
import { OpenStatusApiError } from "@/libs/errors";
+
import { RPC_CONTEXT_KEY } from "./auth";
const logger = getLogger("api-server");
diff --git a/apps/server/src/routes/rpc/interceptors/logging.ts b/apps/server/src/routes/rpc/interceptors/logging.ts
index 910bb6717..6fba086bf 100644
--- a/apps/server/src/routes/rpc/interceptors/logging.ts
+++ b/apps/server/src/routes/rpc/interceptors/logging.ts
@@ -2,6 +2,7 @@ import type { Interceptor } from "@connectrpc/connect";
import { getLogger, withContext } from "@logtape/logtape";
import { env } from "@/env";
+
import { RPC_CONTEXT_KEY } from "./auth";
const logger = getLogger("api-server-otel");
diff --git a/apps/server/src/routes/slack/agent.test.ts b/apps/server/src/routes/slack/agent.test.ts
index c0d6df997..078d031fa 100644
--- a/apps/server/src/routes/slack/agent.test.ts
+++ b/apps/server/src/routes/slack/agent.test.ts
@@ -1,4 +1,5 @@
import { describe, expect, test } from "bun:test";
+
import { buildSystemPrompt } from "./agent";
describe("buildSystemPrompt", () => {
@@ -12,7 +13,7 @@ describe("buildSystemPrompt", () => {
);
expect(match).not.toBeNull();
- // biome-ignore lint/style/noNonNullAssertion: <explanation>
+ // oxlint-disable-next-line typescript/no-non-null-assertion
const promptDate = new Date(match![1]);
expect(promptDate.getTime()).toBeGreaterThanOrEqual(before.getTime());
expect(promptDate.getTime()).toBeLessThanOrEqual(after.getTime());
diff --git a/apps/server/src/routes/slack/blocks.test.ts b/apps/server/src/routes/slack/blocks.test.ts
index 2c296e5a4..29526a0af 100644
--- a/apps/server/src/routes/slack/blocks.test.ts
+++ b/apps/server/src/routes/slack/blocks.test.ts
@@ -1,4 +1,5 @@
import { describe, expect, test } from "bun:test";
+
import { agentTools } from "@openstatus/services/agent-tools";
import {
diff --git a/apps/server/src/routes/slack/confirmation-store.test.ts b/apps/server/src/routes/slack/confirmation-store.test.ts
index 5af0d8a10..4964d3931 100644
--- a/apps/server/src/routes/slack/confirmation-store.test.ts
+++ b/apps/server/src/routes/slack/confirmation-store.test.ts
@@ -1,4 +1,5 @@
import { beforeEach, describe, expect, test } from "bun:test";
+
import {
consume,
findByThread,
diff --git a/apps/server/src/routes/slack/confirmation-store.ts b/apps/server/src/routes/slack/confirmation-store.ts
index a47835cf3..1f17f7c73 100644
--- a/apps/server/src/routes/slack/confirmation-store.ts
+++ b/apps/server/src/routes/slack/confirmation-store.ts
@@ -1,7 +1,8 @@
-import { redis } from "@/libs/clients";
import { nanoid } from "nanoid";
import { z } from "zod";
+import { redis } from "@/libs/clients";
+
const pendingPayloadSchema = z.object({
toolName: z.string(),
// Validated downstream against the registry tool's inputSchema.
diff --git a/apps/server/src/routes/slack/handler.test.ts b/apps/server/src/routes/slack/handler.test.ts
index b65932764..5d18ce21e 100644
--- a/apps/server/src/routes/slack/handler.test.ts
+++ b/apps/server/src/routes/slack/handler.test.ts
@@ -1,5 +1,6 @@
import { beforeEach, describe, expect, mock, test } from "bun:test";
import crypto from "node:crypto";
+
import { Hono } from "hono";
const SIGNING_SECRET = "test-signing-secret";
diff --git a/apps/server/src/routes/slack/handler.ts b/apps/server/src/routes/slack/handler.ts
index 6de76ca48..d78434105 100644
--- a/apps/server/src/routes/slack/handler.ts
+++ b/apps/server/src/routes/slack/handler.ts
@@ -4,6 +4,7 @@ import { integration } from "@openstatus/db/src/schema";
import { WebClient } from "@slack/web-api";
import type { Context } from "hono";
import { z } from "zod";
+
import { runAgent } from "./agent";
import { buildConfirmationBlocks, getConfirmationText } from "./blocks";
import { findByThread, replace, store } from "./confirmation-store";
diff --git a/apps/server/src/routes/slack/index.test.ts b/apps/server/src/routes/slack/index.test.ts
index f2ee52bfb..54983660b 100644
--- a/apps/server/src/routes/slack/index.test.ts
+++ b/apps/server/src/routes/slack/index.test.ts
@@ -1,5 +1,6 @@
import { beforeEach, describe, expect, test } from "bun:test";
import crypto from "node:crypto";
+
import { Hono } from "hono";
const SIGNING_SECRET = "test-signing-secret";
diff --git a/apps/server/src/routes/slack/index.ts b/apps/server/src/routes/slack/index.ts
index ea01c11d5..74dbde0d3 100644
--- a/apps/server/src/routes/slack/index.ts
+++ b/apps/server/src/routes/slack/index.ts
@@ -1,5 +1,7 @@
-import { env } from "@/env";
import { Hono } from "hono";
+
+import { env } from "@/env";
+
import { handleSlackEvent } from "./handler";
import { handleSlackInteraction } from "./interactions";
import { handleSlackInstall, handleSlackOAuthCallback } from "./oauth";
diff --git a/apps/server/src/routes/slack/interactions.test.ts b/apps/server/src/routes/slack/interactions.test.ts
index 8b91f31b7..a056ce6d3 100644
--- a/apps/server/src/routes/slack/interactions.test.ts
+++ b/apps/server/src/routes/slack/interactions.test.ts
@@ -1,5 +1,6 @@
import { beforeEach, describe, expect, mock, test } from "bun:test";
import crypto from "node:crypto";
+
import { Hono } from "hono";
const SIGNING_SECRET = "test-signing-secret";
diff --git a/apps/server/src/routes/slack/interactions.ts b/apps/server/src/routes/slack/interactions.ts
index ce2252b12..7503cd3dc 100644
--- a/apps/server/src/routes/slack/interactions.ts
+++ b/apps/server/src/routes/slack/interactions.ts
@@ -140,7 +140,7 @@ async function runAndPresent(args: {
// honest if a future tool breaks the convention.
const notified =
flagId === "notify"
- ? (output as { notified?: boolean }).notified ?? false
+ ? ((output as { notified?: boolean }).notified ?? false)
: false;
const text = await renderToolResult({
tool,
diff --git a/apps/server/src/routes/slack/oauth.test.ts b/apps/server/src/routes/slack/oauth.test.ts
index 8225a809a..8d6bc8477 100644
--- a/apps/server/src/routes/slack/oauth.test.ts
+++ b/apps/server/src/routes/slack/oauth.test.ts
@@ -1,6 +1,8 @@
import { describe, expect, test } from "bun:test";
import crypto from "node:crypto";
+
import { Hono } from "hono";
+
import { handleSlackInstall, handleSlackOAuthCallback } from "./oauth";
const SIGNING_SECRET =
diff --git a/apps/server/src/routes/slack/oauth.ts b/apps/server/src/routes/slack/oauth.ts
index 761003e58..ae88c3ed3 100644
--- a/apps/server/src/routes/slack/oauth.ts
+++ b/apps/server/src/routes/slack/oauth.ts
@@ -1,5 +1,5 @@
import crypto from "node:crypto";
-import { env } from "@/env";
+
import { getLogger } from "@logtape/logtape";
import { db, eq } from "@openstatus/db";
import {
@@ -9,6 +9,8 @@ import {
import { installSlackAgent } from "@openstatus/services/integration";
import type { Context } from "hono";
+import { env } from "@/env";
+
const logger = getLogger(["api-server", "slack", "oauth"]);
const SLACK_OAUTH_URL = "https://slack.com/oauth/v2/authorize";
diff --git a/apps/server/src/routes/slack/presenters/presenters.test.ts b/apps/server/src/routes/slack/presenters/presenters.test.ts
index e689be5be..4161a12ea 100644
--- a/apps/server/src/routes/slack/presenters/presenters.test.ts
+++ b/apps/server/src/routes/slack/presenters/presenters.test.ts
@@ -1,4 +1,5 @@
import { describe, expect, mock, test } from "bun:test";
+
import type { ServiceContext } from "@openstatus/services";
import { agentTools } from "@openstatus/services/agent-tools";
import type { AnyAgentTool } from "@openstatus/services/agent-tools";
diff --git a/apps/server/src/routes/slack/registry-runner.test.ts b/apps/server/src/routes/slack/registry-runner.test.ts
index f55efa569..50071cae9 100644
--- a/apps/server/src/routes/slack/registry-runner.test.ts
+++ b/apps/server/src/routes/slack/registry-runner.test.ts
@@ -1,4 +1,5 @@
import { describe, expect, test } from "bun:test";
+
import type { ServiceContext } from "@openstatus/services";
import { agentTools } from "@openstatus/services/agent-tools";
import type { AnyAgentTool } from "@openstatus/services/agent-tools";
diff --git a/apps/server/src/routes/slack/verify.test.ts b/apps/server/src/routes/slack/verify.test.ts
index 31ab030bb..83b0650cd 100644
--- a/apps/server/src/routes/slack/verify.test.ts
+++ b/apps/server/src/routes/slack/verify.test.ts
@@ -1,6 +1,8 @@
import { describe, expect, test } from "bun:test";
import crypto from "node:crypto";
+
import { Hono } from "hono";
+
import { verifySlackSignature } from "./verify";
const SIGNING_SECRET = "test-signing-secret";
diff --git a/apps/server/src/routes/slack/verify.ts b/apps/server/src/routes/slack/verify.ts
index 273ea1038..3b1d3fa23 100644
--- a/apps/server/src/routes/slack/verify.ts
+++ b/apps/server/src/routes/slack/verify.ts
@@ -1,6 +1,7 @@
-import { env } from "@/env";
import { createMiddleware } from "hono/factory";
+import { env } from "@/env";
+
export const verifySlackSignature = createMiddleware<{
Variables: { slackBody: unknown };
}>(async (c, next) => {
diff --git a/apps/server/src/routes/v1/check/http/post.test.ts b/apps/server/src/routes/v1/check/http/post.test.ts
index 4d1f8880e..586b84543 100644
--- a/apps/server/src/routes/v1/check/http/post.test.ts
+++ b/apps/server/src/routes/v1/check/http/post.test.ts
@@ -1,6 +1,6 @@
import { expect, test } from "bun:test";
-
import { afterEach, mock } from "bun:test";
+
import { app } from "@/index";
const mockFetch = mock();
diff --git a/apps/server/src/routes/v1/check/http/post.ts b/apps/server/src/routes/v1/check/http/post.ts
index 2d6e0b685..1bf0b3716 100644
--- a/apps/server/src/routes/v1/check/http/post.ts
+++ b/apps/server/src/routes/v1/check/http/post.ts
@@ -1,11 +1,12 @@
import { createRoute, type z } from "@hono/zod-openapi";
import { getLogger } from "@logtape/logtape";
-
-import { env } from "@/env";
-import { openApiErrorResponses } from "@/libs/errors";
import { db } from "@openstatus/db";
import { check } from "@openstatus/db/src/schema/check";
import percentile from "percentile";
+
+import { env } from "@/env";
+import { openApiErrorResponses } from "@/libs/errors";
+
import type { checkApi } from "../index";
const logger = getLogger("api-server");
@@ -85,7 +86,6 @@ export function registerHTTPPostCheck(api: typeof checkApi) {
if (!key) return acc; // key === "" is an invalid header
return {
- // biome-ignore lint/performance/noAccumulatingSpread: <explanation>
...acc,
[key]: value,
};
diff --git a/apps/server/src/routes/v1/check/http/schema.ts b/apps/server/src/routes/v1/check/http/schema.ts
index 5033a15e8..fa68b9d0d 100644
--- a/apps/server/src/routes/v1/check/http/schema.ts
+++ b/apps/server/src/routes/v1/check/http/schema.ts
@@ -1,4 +1,5 @@
import { z } from "@hono/zod-openapi";
+
import { MonitorSchema } from "../../monitors/schema";
export const CheckSchema = MonitorSchema.pick({
diff --git a/apps/server/src/routes/v1/check/index.ts b/apps/server/src/routes/v1/check/index.ts
index 3f1e1db0a..448f28192 100644
--- a/apps/server/src/routes/v1/check/index.ts
+++ b/apps/server/src/routes/v1/check/index.ts
@@ -1,8 +1,8 @@
import { OpenAPIHono } from "@hono/zod-openapi";
-import type { Variables } from "../index";
-
import { handleZodError } from "@/libs/errors";
+
+import type { Variables } from "../index";
import { registerHTTPPostCheck } from "./http/post";
const checkApi = new OpenAPIHono<{ Variables: Variables }>({
diff --git a/apps/server/src/routes/v1/incidents/get.test.ts b/apps/server/src/routes/v1/incidents/get.test.ts
index 62d068595..c7f23e001 100644
--- a/apps/server/src/routes/v1/incidents/get.test.ts
+++ b/apps/server/src/routes/v1/incidents/get.test.ts
@@ -1,6 +1,7 @@
import { expect, test } from "bun:test";
import { app } from "@/index";
+
import { IncidentSchema } from "./schema";
test("return the incident", async () => {
diff --git a/apps/server/src/routes/v1/incidents/get.ts b/apps/server/src/routes/v1/incidents/get.ts
index 43c48e17d..7d34bf9df 100644
--- a/apps/server/src/routes/v1/incidents/get.ts
+++ b/apps/server/src/routes/v1/incidents/get.ts
@@ -1,9 +1,9 @@
import { createRoute } from "@hono/zod-openapi";
-
import { and, db, eq } from "@openstatus/db";
import { incidentTable } from "@openstatus/db/src/schema/incidents";
import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
+
import type { incidentsApi } from "./index";
import { IncidentSchema, ParamsSchema } from "./schema";
diff --git a/apps/server/src/routes/v1/incidents/get_all.test.ts b/apps/server/src/routes/v1/incidents/get_all.test.ts
index 1d298e8d6..618ff95b1 100644
--- a/apps/server/src/routes/v1/incidents/get_all.test.ts
+++ b/apps/server/src/routes/v1/incidents/get_all.test.ts
@@ -1,8 +1,10 @@
import { afterAll, beforeAll, expect, test } from "bun:test";
+
import { db, eq } from "@openstatus/db";
import { incidentTable, monitor } from "@openstatus/db/src/schema";
import { app } from "@/index";
+
import { IncidentSchema } from "./schema";
const TEST_PREFIX = "v1-incident-getall-test";
diff --git a/apps/server/src/routes/v1/incidents/get_all.ts b/apps/server/src/routes/v1/incidents/get_all.ts
index 5f8e16bfe..97c6fe4e6 100644
--- a/apps/server/src/routes/v1/incidents/get_all.ts
+++ b/apps/server/src/routes/v1/incidents/get_all.ts
@@ -1,9 +1,9 @@
import { createRoute } from "@hono/zod-openapi";
-
import { db, eq } from "@openstatus/db";
import { incidentTable } from "@openstatus/db/src/schema/incidents";
import { openApiErrorResponses } from "@/libs/errors";
+
import type { incidentsApi } from "./index";
import { IncidentSchema } from "./schema";
diff --git a/apps/server/src/routes/v1/incidents/index.ts b/apps/server/src/routes/v1/incidents/index.ts
index 59f276337..e0be4122f 100644
--- a/apps/server/src/routes/v1/incidents/index.ts
+++ b/apps/server/src/routes/v1/incidents/index.ts
@@ -1,6 +1,7 @@
import { OpenAPIHono } from "@hono/zod-openapi";
import { handleZodError } from "@/libs/errors";
+
import type { Variables } from "../index";
import { registerGetIncident } from "./get";
import { registerGetAllIncidents } from "./get_all";
diff --git a/apps/server/src/routes/v1/incidents/put.test.ts b/apps/server/src/routes/v1/incidents/put.test.ts
index 536134b10..309e41d58 100644
--- a/apps/server/src/routes/v1/incidents/put.test.ts
+++ b/apps/server/src/routes/v1/incidents/put.test.ts
@@ -1,6 +1,7 @@
import { expect, test } from "bun:test";
import { app } from "@/index";
+
import { IncidentSchema } from "./schema";
test("acknlowledge the incident", async () => {
diff --git a/apps/server/src/routes/v1/incidents/put.ts b/apps/server/src/routes/v1/incidents/put.ts
index 4035dceec..feda8de56 100644
--- a/apps/server/src/routes/v1/incidents/put.ts
+++ b/apps/server/src/routes/v1/incidents/put.ts
@@ -1,11 +1,11 @@
import { createRoute } from "@hono/zod-openapi";
-
+import { Events } from "@openstatus/analytics";
import { and, db, eq } from "@openstatus/db";
import { incidentTable } from "@openstatus/db/src/schema/incidents";
import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
import { trackMiddleware } from "@/libs/middlewares";
-import { Events } from "@openstatus/analytics";
+
import type { incidentsApi } from "./index";
import { IncidentSchema, ParamsSchema } from "./schema";
diff --git a/apps/server/src/routes/v1/index.ts b/apps/server/src/routes/v1/index.ts
index 0013ebc4b..fe453af7c 100644
--- a/apps/server/src/routes/v1/index.ts
+++ b/apps/server/src/routes/v1/index.ts
@@ -1,20 +1,21 @@
import { OpenAPIHono } from "@hono/zod-openapi";
+import type { Scope, Workspace } from "@openstatus/db/src/schema";
import { Scalar } from "@scalar/hono-api-reference";
import { cors } from "hono/cors";
import type { RequestIdVariables } from "hono/request-id";
import { handleZodError } from "@/libs/errors";
import { authMiddleware, requireWriteScope } from "@/libs/middlewares";
-import type { Scope, Workspace } from "@openstatus/db/src/schema";
+
import { checkApi } from "./check";
import { incidentsApi } from "./incidents";
import { maintenancesApi } from "./maintenances";
import { monitorsApi } from "./monitors";
import { notificationsApi } from "./notifications";
-import { pageSubscribersApi } from "./pageSubscribers";
import { pagesApi } from "./pages";
-import { statusReportUpdatesApi } from "./statusReportUpdates";
+import { pageSubscribersApi } from "./pageSubscribers";
import { statusReportsApi } from "./statusReports";
+import { statusReportUpdatesApi } from "./statusReportUpdates";
import { whoamiApi } from "./whoami";
export type Variables = RequestIdVariables & {
diff --git a/apps/server/src/routes/v1/maintenances/get.test.ts b/apps/server/src/routes/v1/maintenances/get.test.ts
index f239d61cb..c7927a237 100644
--- a/apps/server/src/routes/v1/maintenances/get.test.ts
+++ b/apps/server/src/routes/v1/maintenances/get.test.ts
@@ -1,5 +1,7 @@
import { expect, test } from "bun:test";
+
import { app } from "@/index";
+
import { MaintenanceSchema } from "./schema";
test("return the maintenance", async () => {
diff --git a/apps/server/src/routes/v1/maintenances/get.ts b/apps/server/src/routes/v1/maintenances/get.ts
index 170f6cc1e..5e57e7f23 100644
--- a/apps/server/src/routes/v1/maintenances/get.ts
+++ b/apps/server/src/routes/v1/maintenances/get.ts
@@ -1,8 +1,10 @@
-import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
-import { notEmpty } from "@/utils/not-empty";
import { createRoute } from "@hono/zod-openapi";
import { and, db, eq } from "@openstatus/db";
import { maintenance } from "@openstatus/db/src/schema/maintenances";
+
+import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
+import { notEmpty } from "@/utils/not-empty";
+
import type { maintenancesApi } from "./index";
import { MaintenanceSchema, ParamsSchema } from "./schema";
diff --git a/apps/server/src/routes/v1/maintenances/get_all.test.ts b/apps/server/src/routes/v1/maintenances/get_all.test.ts
index 2841437c0..b5682afdc 100644
--- a/apps/server/src/routes/v1/maintenances/get_all.test.ts
+++ b/apps/server/src/routes/v1/maintenances/get_all.test.ts
@@ -1,4 +1,5 @@
import { afterAll, beforeAll, expect, test } from "bun:test";
+
import { db, eq } from "@openstatus/db";
import {
maintenance,
@@ -8,6 +9,7 @@ import {
} from "@openstatus/db/src/schema";
import { app } from "@/index";
+
import { MaintenanceSchema } from "./schema";
const TEST_PREFIX = "v1-maint-getall-test";
diff --git a/apps/server/src/routes/v1/maintenances/get_all.ts b/apps/server/src/routes/v1/maintenances/get_all.ts
index fd9a13744..cc0e166c5 100644
--- a/apps/server/src/routes/v1/maintenances/get_all.ts
+++ b/apps/server/src/routes/v1/maintenances/get_all.ts
@@ -1,8 +1,10 @@
-import { openApiErrorResponses } from "@/libs/errors";
-import { notEmpty } from "@/utils/not-empty";
import { createRoute } from "@hono/zod-openapi";
import { db, desc, eq } from "@openstatus/db";
import { maintenance } from "@openstatus/db/src/schema/maintenances";
+
+import { openApiErrorResponses } from "@/libs/errors";
+import { notEmpty } from "@/utils/not-empty";
+
import type { maintenancesApi } from "./index";
import { MaintenanceSchema } from "./schema";
diff --git a/apps/server/src/routes/v1/maintenances/index.ts b/apps/server/src/routes/v1/maintenances/index.ts
index 8e1bfe35f..2fb160a6c 100644
--- a/apps/server/src/routes/v1/maintenances/index.ts
+++ b/apps/server/src/routes/v1/maintenances/index.ts
@@ -1,5 +1,7 @@
-import { handleZodError } from "@/libs/errors";
import { OpenAPIHono } from "@hono/zod-openapi";
+
+import { handleZodError } from "@/libs/errors";
+
import type { Variables } from "../index";
import { registerGetMaintenance } from "./get";
import { registerGetAllMaintenances } from "./get_all";
diff --git a/apps/server/src/routes/v1/maintenances/post.test.ts b/apps/server/src/routes/v1/maintenances/post.test.ts
index 8080c1075..dbb51799b 100644
--- a/apps/server/src/routes/v1/maintenances/post.test.ts
+++ b/apps/server/src/routes/v1/maintenances/post.test.ts
@@ -1,10 +1,12 @@
import { beforeEach, expect, test } from "bun:test";
-import { app } from "@/index";
+
import { db, eq } from "@openstatus/db";
import { maintenance } from "@openstatus/db/src/schema";
+
+import { app } from "@/index";
+
import { MaintenanceSchema } from "./schema";
-// biome-ignore lint/suspicious/noExplicitAny: test utility
const spies = (globalThis as any).__subscriptionSpies as {
dispatchMaintenanceUpdate: {
mockClear: () => void;
diff --git a/apps/server/src/routes/v1/maintenances/post.ts b/apps/server/src/routes/v1/maintenances/post.ts
index 413549848..78ae6676b 100644
--- a/apps/server/src/routes/v1/maintenances/post.ts
+++ b/apps/server/src/routes/v1/maintenances/post.ts
@@ -1,5 +1,3 @@
-import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
-import { trackMiddleware } from "@/libs/middlewares";
import { createRoute } from "@hono/zod-openapi";
import { Events } from "@openstatus/analytics";
import { and, db, eq, inArray, isNull } from "@openstatus/db";
@@ -10,6 +8,10 @@ import {
pageComponent,
} from "@openstatus/db/src/schema/page_components";
import { dispatchMaintenanceUpdate } from "@openstatus/subscriptions";
+
+import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
+import { trackMiddleware } from "@/libs/middlewares";
+
import type { maintenancesApi } from "./index";
import {
MaintenanceObjectSchema,
diff --git a/apps/server/src/routes/v1/maintenances/put.test.ts b/apps/server/src/routes/v1/maintenances/put.test.ts
index 0d2541ca1..bf4624247 100644
--- a/apps/server/src/routes/v1/maintenances/put.test.ts
+++ b/apps/server/src/routes/v1/maintenances/put.test.ts
@@ -1,5 +1,7 @@
import { expect, test } from "bun:test";
+
import { app } from "@/index";
+
import { MaintenanceSchema } from "./schema";
test("update the maintenance", async () => {
@@ -118,27 +120,24 @@ test.todo("update only the dates", async () => {
expect(result.data?.to).toEqual(to);
});
-test.todo(
- "update maintenance with `from` date after `to` date should return 400",
- async () => {
- const to = new Date();
- const from = new Date(to.getTime() + 3600000); // from is 1 hour after to
-
- const res = await app.request("/v1/maintenance/1", {
- method: "PUT",
- headers: {
- "x-openstatus-key": "1",
- "Content-Type": "application/json",
- },
- body: JSON.stringify({
- from: from.toISOString(),
- to: to.toISOString(),
- }),
- });
-
- expect(res.status).toBe(400);
- },
-);
+test.todo("update maintenance with `from` date after `to` date should return 400", async () => {
+ const to = new Date();
+ const from = new Date(to.getTime() + 3600000); // from is 1 hour after to
+
+ const res = await app.request("/v1/maintenance/1", {
+ method: "PUT",
+ headers: {
+ "x-openstatus-key": "1",
+ "Content-Type": "application/json",
+ },
+ body: JSON.stringify({
+ from: from.toISOString(),
+ to: to.toISOString(),
+ }),
+ });
+
+ expect(res.status).toBe(400);
+});
test("remove all maintenance monitors", async () => {
const res = await app.request("/v1/maintenance/1", {
diff --git a/apps/server/src/routes/v1/maintenances/put.ts b/apps/server/src/routes/v1/maintenances/put.ts
index 44b84b91a..2e67a4cf3 100644
--- a/apps/server/src/routes/v1/maintenances/put.ts
+++ b/apps/server/src/routes/v1/maintenances/put.ts
@@ -1,5 +1,3 @@
-import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
-import { trackMiddleware } from "@/libs/middlewares";
import { createRoute } from "@hono/zod-openapi";
import { Events } from "@openstatus/analytics";
import { and, db, eq, inArray, isNull } from "@openstatus/db";
@@ -9,6 +7,10 @@ import {
maintenancesToPageComponents,
pageComponent,
} from "@openstatus/db/src/schema/page_components";
+
+import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
+import { trackMiddleware } from "@/libs/middlewares";
+
import type { maintenancesApi } from "./index";
import {
MaintenanceObjectSchema,
diff --git a/apps/server/src/routes/v1/monitors/delete.test.ts b/apps/server/src/routes/v1/monitors/delete.test.ts
index 28834f8fe..503883c0c 100644
--- a/apps/server/src/routes/v1/monitors/delete.test.ts
+++ b/apps/server/src/routes/v1/monitors/delete.test.ts
@@ -1,5 +1,7 @@
import { expect, test } from "bun:test";
+
import { app } from "@/index";
+
import { MonitorSchema } from "./schema";
test("delete the monitor", async () => {
diff --git a/apps/server/src/routes/v1/monitors/delete.ts b/apps/server/src/routes/v1/monitors/delete.ts
index 9a7e84d32..6ff6e0dfa 100644
--- a/apps/server/src/routes/v1/monitors/delete.ts
+++ b/apps/server/src/routes/v1/monitors/delete.ts
@@ -1,11 +1,11 @@
import { createRoute, z } from "@hono/zod-openapi";
-
+import { Events } from "@openstatus/analytics";
import { and, db, eq, isNull } from "@openstatus/db";
import { monitor } from "@openstatus/db/src/schema";
import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
import { trackMiddleware } from "@/libs/middlewares";
-import { Events } from "@openstatus/analytics";
+
import type { monitorsApi } from "./index";
import { ParamsSchema } from "./schema";
diff --git a/apps/server/src/routes/v1/monitors/get.test.ts b/apps/server/src/routes/v1/monitors/get.test.ts
index 11fb719e9..9a26b26ae 100644
--- a/apps/server/src/routes/v1/monitors/get.test.ts
+++ b/apps/server/src/routes/v1/monitors/get.test.ts
@@ -1,6 +1,7 @@
import { expect, test } from "bun:test";
import { app } from "@/index";
+
import { MonitorSchema } from "./schema";
test("return the monitor", async () => {
diff --git a/apps/server/src/routes/v1/monitors/get.ts b/apps/server/src/routes/v1/monitors/get.ts
index 5fc2019c9..88ea43ce6 100644
--- a/apps/server/src/routes/v1/monitors/get.ts
+++ b/apps/server/src/routes/v1/monitors/get.ts
@@ -1,9 +1,9 @@
import { createRoute, z } from "@hono/zod-openapi";
-
import { and, db, eq, isNull } from "@openstatus/db";
import { monitor } from "@openstatus/db/src/schema";
import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
+
import type { monitorsApi } from "./index";
import { MonitorSchema, ParamsSchema } from "./schema";
@@ -60,7 +60,6 @@ export function registerGetMonitor(api: typeof monitorsApi) {
}),
)
.parse(JSON.parse(_monitor.otelHeaders))
- // biome-ignore lint/performance/noAccumulatingSpread: <explanation>
.reduce((a, v) => ({ ...a, [v.key]: v.value }), {})
: undefined;
diff --git a/apps/server/src/routes/v1/monitors/get_all.test.ts b/apps/server/src/routes/v1/monitors/get_all.test.ts
index 9a01c7254..f7b286dc8 100644
--- a/apps/server/src/routes/v1/monitors/get_all.test.ts
+++ b/apps/server/src/routes/v1/monitors/get_all.test.ts
@@ -1,6 +1,7 @@
import { expect, test } from "bun:test";
import { app } from "@/index";
+
import { MonitorSchema } from "./schema";
test("return all monitors", async () => {
diff --git a/apps/server/src/routes/v1/monitors/get_all.ts b/apps/server/src/routes/v1/monitors/get_all.ts
index 7eb06f356..23a50c656 100644
--- a/apps/server/src/routes/v1/monitors/get_all.ts
+++ b/apps/server/src/routes/v1/monitors/get_all.ts
@@ -1,9 +1,9 @@
import { createRoute, z } from "@hono/zod-openapi";
-
import { and, db, eq, isNull } from "@openstatus/db";
import { monitor } from "@openstatus/db/src/schema";
import { openApiErrorResponses } from "@/libs/errors";
+
import type { monitorsApi } from "./index";
import { MonitorSchema } from "./schema";
@@ -49,7 +49,6 @@ export function registerGetAllMonitors(app: typeof monitorsApi) {
}),
)
.parse(JSON.parse(monitor.otelHeaders))
- // biome-ignore lint/performance/noAccumulatingSpread: <explanation>
.reduce((a, v) => ({ ...a, [v.key]: v.value }), {})
: undefined;
return {
diff --git a/apps/server/src/routes/v1/monitors/index.ts b/apps/server/src/routes/v1/monitors/index.ts
index 6788b91db..f7dd4dc4c 100644
--- a/apps/server/src/routes/v1/monitors/index.ts
+++ b/apps/server/src/routes/v1/monitors/index.ts
@@ -1,6 +1,7 @@
import { OpenAPIHono } from "@hono/zod-openapi";
import { handleZodError } from "@/libs/errors";
+
import type { Variables } from "../index";
import { registerDeleteMonitor } from "./delete";
import { registerGetMonitor } from "./get";
diff --git a/apps/server/src/routes/v1/monitors/post.test.ts b/apps/server/src/routes/v1/monitors/post.test.ts
index c5261b758..235329cf5 100644
--- a/apps/server/src/routes/v1/monitors/post.test.ts
+++ b/apps/server/src/routes/v1/monitors/post.test.ts
@@ -2,6 +2,7 @@ import { expect, test } from "bun:test";
import { app } from "@/index";
import { createErrorSchema } from "@/libs/errors";
+
import { MonitorSchema } from "./schema";
test("create a valid monitor", async () => {
diff --git a/apps/server/src/routes/v1/monitors/post.ts b/apps/server/src/routes/v1/monitors/post.ts
index 0a37fc548..733774eb1 100644
--- a/apps/server/src/routes/v1/monitors/post.ts
+++ b/apps/server/src/routes/v1/monitors/post.ts
@@ -1,13 +1,12 @@
import { createRoute, z } from "@hono/zod-openapi";
-
import { Events } from "@openstatus/analytics";
+import { serialize } from "@openstatus/assertions";
import { and, db, eq, isNull, sql } from "@openstatus/db";
import { monitor } from "@openstatus/db/src/schema";
-import { serialize } from "@openstatus/assertions";
-
import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
import { trackMiddleware } from "@/libs/middlewares";
+
import type { monitorsApi } from "./index";
import { MonitorSchema } from "./schema";
import { getAssertions } from "./utils";
@@ -121,7 +120,6 @@ export function registerPostMonitor(api: typeof monitorsApi) {
}),
)
.parse(JSON.parse(_newMonitor.otelHeaders))
- // biome-ignore lint/performance/noAccumulatingSpread: <explanation>
.reduce((a, v) => ({ ...a, [v.key]: v.value }), {})
: undefined;
diff --git a/apps/server/src/routes/v1/monitors/post_dns.test.ts b/apps/server/src/routes/v1/monitors/post_dns.test.ts
index 3fcb6f5dd..70223677f 100644
--- a/apps/server/src/routes/v1/monitors/post_dns.test.ts
+++ b/apps/server/src/routes/v1/monitors/post_dns.test.ts
@@ -1,6 +1,7 @@
import { expect, test } from "bun:test";
import { app } from "@/index";
+
import { MonitorSchema } from "./schema";
test("create a valid monitor", async () => {
diff --git a/apps/server/src/routes/v1/monitors/post_dns.ts b/apps/server/src/routes/v1/monitors/post_dns.ts
index d7ceb9dd4..39de8e666 100644
--- a/apps/server/src/routes/v1/monitors/post_dns.ts
+++ b/apps/server/src/routes/v1/monitors/post_dns.ts
@@ -1,13 +1,12 @@
import { createRoute, z } from "@hono/zod-openapi";
-
import { Events } from "@openstatus/analytics";
import { and, db, eq, isNull, sql } from "@openstatus/db";
import { monitor } from "@openstatus/db/src/schema";
-
// import { serialize } from "@openstatus/assertions";
import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
import { trackMiddleware } from "@/libs/middlewares";
+
import type { monitorsApi } from "./index";
import { DNSMonitorSchema, MonitorSchema } from "./schema";
// import { getAssertionNew } from "./utils";
@@ -125,7 +124,6 @@ export function registerPostMonitorDNS(api: typeof monitorsApi) {
}),
)
.parse(JSON.parse(_newMonitor.otelHeaders))
- // biome-ignore lint/performance/noAccumulatingSpread: <explanation>
.reduce((a, v) => ({ ...a, [v.key]: v.value }), {})
: undefined;
diff --git a/apps/server/src/routes/v1/monitors/post_http.test.ts b/apps/server/src/routes/v1/monitors/post_http.test.ts
index 0295abc71..9caa0befd 100644
--- a/apps/server/src/routes/v1/monitors/post_http.test.ts
+++ b/apps/server/src/routes/v1/monitors/post_http.test.ts
@@ -1,6 +1,7 @@
import { expect, test } from "bun:test";
import { app } from "@/index";
+
import { MonitorSchema } from "./schema";
test("create a valid monitor", async () => {
diff --git a/apps/server/src/routes/v1/monitors/post_http.ts b/apps/server/src/routes/v1/monitors/post_http.ts
index 93d674d32..d4747cb93 100644
--- a/apps/server/src/routes/v1/monitors/post_http.ts
+++ b/apps/server/src/routes/v1/monitors/post_http.ts
@@ -1,13 +1,12 @@
import { createRoute, z } from "@hono/zod-openapi";
-
import { Events } from "@openstatus/analytics";
+import { serialize } from "@openstatus/assertions";
import { and, db, eq, isNull, sql } from "@openstatus/db";
import { monitor } from "@openstatus/db/src/schema";
-import { serialize } from "@openstatus/assertions";
-
import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
import { trackMiddleware } from "@/libs/middlewares";
+
import type { monitorsApi } from "./index";
import { HTTPMonitorSchema, MonitorSchema } from "./schema";
import { getAssertionNew } from "./utils";
@@ -134,7 +133,6 @@ export function registerPostMonitorHTTP(api: typeof monitorsApi) {
}),
)
.parse(JSON.parse(_newMonitor.otelHeaders))
- // biome-ignore lint/performance/noAccumulatingSpread: <explanation>
.reduce((a, v) => ({ ...a, [v.key]: v.value }), {})
: undefined;
diff --git a/apps/server/src/routes/v1/monitors/post_tcp.test.ts b/apps/server/src/routes/v1/monitors/post_tcp.test.ts
index 2fcca2783..7958913b5 100644
--- a/apps/server/src/routes/v1/monitors/post_tcp.test.ts
+++ b/apps/server/src/routes/v1/monitors/post_tcp.test.ts
@@ -1,6 +1,7 @@
import { expect, test } from "bun:test";
import { app } from "@/index";
+
import { MonitorSchema } from "./schema";
test("create a valid monitor", async () => {
diff --git a/apps/server/src/routes/v1/monitors/post_tcp.ts b/apps/server/src/routes/v1/monitors/post_tcp.ts
index 4e835c80b..13200bfb6 100644
--- a/apps/server/src/routes/v1/monitors/post_tcp.ts
+++ b/apps/server/src/routes/v1/monitors/post_tcp.ts
@@ -1,11 +1,11 @@
import { createRoute, z } from "@hono/zod-openapi";
-
import { Events } from "@openstatus/analytics";
import { and, db, eq, isNull, sql } from "@openstatus/db";
import { monitor } from "@openstatus/db/src/schema";
import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
import { trackMiddleware } from "@/libs/middlewares";
+
import type { monitorsApi } from "./index";
import { MonitorSchema, TCPMonitorSchema } from "./schema";
@@ -120,7 +120,6 @@ export function registerPostMonitorTCP(api: typeof monitorsApi) {
}),
)
.parse(JSON.parse(_newMonitor.otelHeaders))
- // biome-ignore lint/performance/noAccumulatingSpread: <explanation>
.reduce((a, v) => ({ ...a, [v.key]: v.value }), {})
: undefined;
diff --git a/apps/server/src/routes/v1/monitors/put.test.ts b/apps/server/src/routes/v1/monitors/put.test.ts
index 23bab7ccc..5b0357ded 100644
--- a/apps/server/src/routes/v1/monitors/put.test.ts
+++ b/apps/server/src/routes/v1/monitors/put.test.ts
@@ -1,6 +1,7 @@
import { expect, test } from "bun:test";
import { app } from "@/index";
+
import { MonitorSchema } from "./schema";
test("update the monitor", async () => {
diff --git a/apps/server/src/routes/v1/monitors/put.ts b/apps/server/src/routes/v1/monitors/put.ts
index acf45b8d3..15b913951 100644
--- a/apps/server/src/routes/v1/monitors/put.ts
+++ b/apps/server/src/routes/v1/monitors/put.ts
@@ -1,12 +1,12 @@
import { createRoute, z } from "@hono/zod-openapi";
-
+import { Events } from "@openstatus/analytics";
+import { serialize } from "@openstatus/assertions";
import { and, db, eq, isNull } from "@openstatus/db";
import { monitor } from "@openstatus/db/src/schema";
import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
import { trackMiddleware } from "@/libs/middlewares";
-import { Events } from "@openstatus/analytics";
-import { serialize } from "@openstatus/assertions";
+
import type { monitorsApi } from "./index";
import { MonitorSchema, ParamsSchema } from "./schema";
import { getAssertions } from "./utils";
@@ -128,7 +128,6 @@ export function registerPutMonitor(api: typeof monitorsApi) {
}),
)
.parse(JSON.parse(_newMonitor.otelHeaders))
- // biome-ignore lint/performance/noAccumulatingSpread: <explanation>
.reduce((a, v) => ({ ...a, [v.key]: v.value }), {})
: undefined;
diff --git a/apps/server/src/routes/v1/monitors/put_dns.ts b/apps/server/src/routes/v1/monitors/put_dns.ts
index fd533cf08..df202a5b2 100644
--- a/apps/server/src/routes/v1/monitors/put_dns.ts
+++ b/apps/server/src/routes/v1/monitors/put_dns.ts
@@ -1,11 +1,11 @@
import { createRoute, z } from "@hono/zod-openapi";
-
+import { Events } from "@openstatus/analytics";
import { and, db, eq, isNull } from "@openstatus/db";
import { monitor } from "@openstatus/db/src/schema";
import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
import { trackMiddleware } from "@/libs/middlewares";
-import { Events } from "@openstatus/analytics";
+
import type { monitorsApi } from "./index";
import { DNSMonitorSchema, MonitorSchema, ParamsSchema } from "./schema";
@@ -125,7 +125,6 @@ export function registerPutDNSMonitor(api: typeof monitorsApi) {
}),
)
.parse(JSON.parse(_newMonitor.otelHeaders))
- // biome-ignore lint/performance/noAccumulatingSpread: <explanation>
.reduce((a, v) => ({ ...a, [v.key]: v.value }), {})
: undefined;
diff --git a/apps/server/src/routes/v1/monitors/put_http.test.ts b/apps/server/src/routes/v1/monitors/put_http.test.ts
index ba452e6b8..f042b7d2d 100644
--- a/apps/server/src/routes/v1/monitors/put_http.test.ts
+++ b/apps/server/src/routes/v1/monitors/put_http.test.ts
@@ -1,6 +1,7 @@
import { expect, test } from "bun:test";
import { app } from "@/index";
+
import { MonitorSchema } from "./schema";
test("update the monitor", async () => {
diff --git a/apps/server/src/routes/v1/monitors/put_http.ts b/apps/server/src/routes/v1/monitors/put_http.ts
index 0143275d5..5d6f6842e 100644
--- a/apps/server/src/routes/v1/monitors/put_http.ts
+++ b/apps/server/src/routes/v1/monitors/put_http.ts
@@ -1,12 +1,12 @@
import { createRoute, z } from "@hono/zod-openapi";
-
+import { Events } from "@openstatus/analytics";
+import { serialize } from "@openstatus/assertions";
import { and, db, eq, isNull } from "@openstatus/db";
import { monitor } from "@openstatus/db/src/schema";
import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
import { trackMiddleware } from "@/libs/middlewares";
-import { Events } from "@openstatus/analytics";
-import { serialize } from "@openstatus/assertions";
+
import type { monitorsApi } from "./index";
import { HTTPMonitorSchema, MonitorSchema, ParamsSchema } from "./schema";
import { getAssertionNew } from "./utils";
@@ -140,7 +140,6 @@ export function registerPutHTTPMonitor(api: typeof monitorsApi) {
}),
)
.parse(JSON.parse(_newMonitor.otelHeaders))
- // biome-ignore lint/performance/noAccumulatingSpread: <explanation>
.reduce((a, v) => ({ ...a, [v.key]: v.value }), {})
: undefined;
diff --git a/apps/server/src/routes/v1/monitors/put_tcp.ts b/apps/server/src/routes/v1/monitors/put_tcp.ts
index 853b36a45..07fa029f4 100644
--- a/apps/server/src/routes/v1/monitors/put_tcp.ts
+++ b/apps/server/src/routes/v1/monitors/put_tcp.ts
@@ -1,11 +1,11 @@
import { createRoute, z } from "@hono/zod-openapi";
-
+import { Events } from "@openstatus/analytics";
import { and, db, eq, isNull } from "@openstatus/db";
import { monitor } from "@openstatus/db/src/schema";
import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
import { trackMiddleware } from "@/libs/middlewares";
-import { Events } from "@openstatus/analytics";
+
import type { monitorsApi } from "./index";
import { MonitorSchema, ParamsSchema, TCPMonitorSchema } from "./schema";
@@ -125,7 +125,6 @@ export function registerPutTCPMonitor(api: typeof monitorsApi) {
}),
)
.parse(JSON.parse(_newMonitor.otelHeaders))
- // biome-ignore lint/performance/noAccumulatingSpread: <explanation>
.reduce((a, v) => ({ ...a, [v.key]: v.value }), {})
: undefined;
diff --git a/apps/server/src/routes/v1/monitors/results/get.test.ts b/apps/server/src/routes/v1/monitors/results/get.test.ts
index 8af4d060b..67ea10dc9 100644
--- a/apps/server/src/routes/v1/monitors/results/get.test.ts
+++ b/apps/server/src/routes/v1/monitors/results/get.test.ts
@@ -1,6 +1,7 @@
import { expect, test } from "bun:test";
import { app } from "@/index";
+
import { ResultRun } from "../schema";
test.todo("get monitor result with valid id should return 200", async () => {
@@ -59,23 +60,20 @@ test("get monitor result from different workspace should return 404", async () =
expect(res.status).toBe(404);
});
-test.todo(
- "get monitor result with valid TCP monitor should return 200",
- async () => {
- const res = await app.request("/v1/monitor/4/result/2", {
- method: "GET",
- headers: {
- "x-openstatus-key": "1",
- },
- });
-
- expect(res.status).toBe(200);
-
- const json = await res.json();
- const result = ResultRun.array().safeParse(json);
- expect(result.success).toBe(true);
- },
-);
+test.todo("get monitor result with valid TCP monitor should return 200", async () => {
+ const res = await app.request("/v1/monitor/4/result/2", {
+ method: "GET",
+ headers: {
+ "x-openstatus-key": "1",
+ },
+ });
+
+ expect(res.status).toBe(200);
+
+ const json = await res.json();
+ const result = ResultRun.array().safeParse(json);
+ expect(result.success).toBe(true);
+});
test("get monitor result with non-matching result id should return 404", async () => {
const res = await app.request("/v1/monitor/1/result/999998", {
diff --git a/apps/server/src/routes/v1/monitors/results/get.ts b/apps/server/src/routes/v1/monitors/results/get.ts
index 6d3df3cfd..d132b409a 100644
--- a/apps/server/src/routes/v1/monitors/results/get.ts
+++ b/apps/server/src/routes/v1/monitors/results/get.ts
@@ -1,10 +1,10 @@
import { createRoute, z } from "@hono/zod-openapi";
-
import { and, db, eq } from "@openstatus/db";
import { monitor, monitorRun } from "@openstatus/db/src/schema";
import { tb } from "@/libs/clients";
import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
+
import type { monitorsApi } from "../index";
import { ParamsSchema, ResultRun } from "../schema";
diff --git a/apps/server/src/routes/v1/monitors/run/post.test.ts b/apps/server/src/routes/v1/monitors/run/post.test.ts
index 0f68ed0a9..26547105b 100644
--- a/apps/server/src/routes/v1/monitors/run/post.test.ts
+++ b/apps/server/src/routes/v1/monitors/run/post.test.ts
@@ -1,7 +1,8 @@
import { expect, test } from "bun:test";
-
import { afterEach, mock } from "bun:test";
+
import { app } from "@/index";
+
import { TriggerResult } from "../schema";
const mockFetch = mock();
@@ -143,47 +144,44 @@ test("run TCP monitor with valid id should return 200", async () => {
}
});
-test.todo(
- "run monitor with multiple regions should return array of results",
- async () => {
- mockFetch.mockReturnValue(
- Promise.resolve(
- new Response(
- JSON.stringify({
- jobType: "http",
- status: 200,
- latency: 100,
- region: "ams",
- timestamp: 1234567890,
- timing: {
- dnsStart: 1,
- dnsDone: 2,
- connectStart: 3,
- connectDone: 4,
- tlsHandshakeStart: 5,
- tlsHandshakeDone: 6,
- firstByteStart: 7,
- firstByteDone: 8,
- transferStart: 9,
- transferDone: 10,
- },
- }),
- { status: 200, headers: { "content-type": "application/json" } },
- ),
+test.todo("run monitor with multiple regions should return array of results", async () => {
+ mockFetch.mockReturnValue(
+ Promise.resolve(
+ new Response(
+ JSON.stringify({
+ jobType: "http",
+ status: 200,
+ latency: 100,
+ region: "ams",
+ timestamp: 1234567890,
+ timing: {
+ dnsStart: 1,
+ dnsDone: 2,
+ connectStart: 3,
+ connectDone: 4,
+ tlsHandshakeStart: 5,
+ tlsHandshakeDone: 6,
+ firstByteStart: 7,
+ firstByteDone: 8,
+ transferStart: 9,
+ transferDone: 10,
+ },
+ }),
+ { status: 200, headers: { "content-type": "application/json" } },
),
- );
-
- const res = await app.request("/v1/monitor/5/run", {
- method: "POST",
- headers: {
- "x-openstatus-key": "1",
- "content-type": "application/json",
- },
- });
-
- expect(res.status).toBe(200);
-
- const json = await res.json();
- expect(Array.isArray(json)).toBe(true);
- },
-);
+ ),
+ );
+
+ const res = await app.request("/v1/monitor/5/run", {
+ method: "POST",
+ headers: {
+ "x-openstatus-key": "1",
+ "content-type": "application/json",
+ },
+ });
+
+ expect(res.status).toBe(200);
+
+ const json = await res.json();
+ expect(Array.isArray(json)).toBe(true);
+});
diff --git a/apps/server/src/routes/v1/monitors/run/post.ts b/apps/server/src/routes/v1/monitors/run/post.ts
index fb6b4a77c..fe88b8443 100644
--- a/apps/server/src/routes/v1/monitors/run/post.ts
+++ b/apps/server/src/routes/v1/monitors/run/post.ts
@@ -1,10 +1,11 @@
-import { env } from "@/env";
-import { getCheckerPayload, getCheckerUrl } from "@/libs/checker";
-import { openApiErrorResponses } from "@/libs/errors";
import { createRoute } from "@hono/zod-openapi";
import { getLogger } from "@logtape/logtape";
import { and, eq, gte, isNull, sql } from "@openstatus/db";
+import { env } from "@/env";
+import { getCheckerPayload, getCheckerUrl } from "@/libs/checker";
+import { openApiErrorResponses } from "@/libs/errors";
+
const logger = getLogger("api-server");
import { db } from "@openstatus/db/src/db";
import { monitorRun } from "@openstatus/db/src/schema";
@@ -13,6 +14,7 @@ import { selectMonitorStatusSchema } from "@openstatus/db/src/schema/monitor_sta
import { monitor } from "@openstatus/db/src/schema/monitors/monitor";
import { selectMonitorSchema } from "@openstatus/db/src/schema/monitors/validation";
import { HTTPException } from "hono/http-exception";
+
import type { monitorsApi } from "..";
import { ParamsSchema, TriggerResult } from "../schema";
import { QuerySchema } from "./schema";
diff --git a/apps/server/src/routes/v1/monitors/schema.ts b/apps/server/src/routes/v1/monitors/schema.ts
index a04fc24cf..bc24a6a89 100644
--- a/apps/server/src/routes/v1/monitors/schema.ts
+++ b/apps/server/src/routes/v1/monitors/schema.ts
@@ -1,5 +1,4 @@
import { z } from "@hono/zod-openapi";
-
import {
numberCompare,
recordCompare,
diff --git a/apps/server/src/routes/v1/monitors/summary/get.test.ts b/apps/server/src/routes/v1/monitors/summary/get.test.ts
index cd72a9455..4bf601d2b 100644
--- a/apps/server/src/routes/v1/monitors/summary/get.test.ts
+++ b/apps/server/src/routes/v1/monitors/summary/get.test.ts
@@ -1,7 +1,9 @@
import { expect, test } from "bun:test";
+
import { z } from "@hono/zod-openapi";
import { app } from "@/index";
+
import { SummarySchema } from "./schema";
test.todo("return the summary of the monitor", async () => {
diff --git a/apps/server/src/routes/v1/monitors/summary/get.ts b/apps/server/src/routes/v1/monitors/summary/get.ts
index 907ac6b91..6ae9cba33 100644
--- a/apps/server/src/routes/v1/monitors/summary/get.ts
+++ b/apps/server/src/routes/v1/monitors/summary/get.ts
@@ -1,10 +1,10 @@
import { createRoute, z } from "@hono/zod-openapi";
-
import { and, db, eq, isNull } from "@openstatus/db";
import { monitor } from "@openstatus/db/src/schema";
import { redis, tb } from "@/libs/clients";
import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
+
import type { monitorsApi } from "../index";
import { ParamsSchema, SummarySchema } from "./schema";
diff --git a/apps/server/src/routes/v1/monitors/summary/schema.ts b/apps/server/src/routes/v1/monitors/summary/schema.ts
index edb5f007c..64c865437 100644
--- a/apps/server/src/routes/v1/monitors/summary/schema.ts
+++ b/apps/server/src/routes/v1/monitors/summary/schema.ts
@@ -1,4 +1,5 @@
import { z } from "@hono/zod-openapi";
+
import { ParamsSchema } from "../schema";
export { ParamsSchema };
diff --git a/apps/server/src/routes/v1/monitors/trigger/post.test.ts b/apps/server/src/routes/v1/monitors/trigger/post.test.ts
index 15a449ad3..7442da5b4 100644
--- a/apps/server/src/routes/v1/monitors/trigger/post.test.ts
+++ b/apps/server/src/routes/v1/monitors/trigger/post.test.ts
@@ -1,7 +1,8 @@
import { expect, test } from "bun:test";
-
import { afterEach, mock } from "bun:test";
+
import { app } from "@/index";
+
import { TriggerSchema } from "./schema";
const mockFetch = mock();
diff --git a/apps/server/src/routes/v1/monitors/trigger/post.ts b/apps/server/src/routes/v1/monitors/trigger/post.ts
index f7c289d3c..4bdba9e3f 100644
--- a/apps/server/src/routes/v1/monitors/trigger/post.ts
+++ b/apps/server/src/routes/v1/monitors/trigger/post.ts
@@ -1,6 +1,3 @@
-import { env } from "@/env";
-import { getCheckerPayload, getCheckerUrl } from "@/libs/checker";
-import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
import { createRoute, z } from "@hono/zod-openapi";
import { and, eq, gte, isNull, sql } from "@openstatus/db";
import { db } from "@openstatus/db/src/db";
@@ -10,6 +7,11 @@ import { selectMonitorStatusSchema } from "@openstatus/db/src/schema/monitor_sta
import { monitor } from "@openstatus/db/src/schema/monitors/monitor";
import { selectMonitorSchema } from "@openstatus/db/src/schema/monitors/validation";
import { HTTPException } from "hono/http-exception";
+
+import { env } from "@/env";
+import { getCheckerPayload, getCheckerUrl } from "@/libs/checker";
+import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
+
import type { monitorsApi } from "..";
import { ParamsSchema, TriggerSchema } from "./schema";
diff --git a/apps/server/src/routes/v1/monitors/trigger/schema.ts b/apps/server/src/routes/v1/monitors/trigger/schema.ts
index 4d111ee88..97e73e961 100644
--- a/apps/server/src/routes/v1/monitors/trigger/schema.ts
+++ b/apps/server/src/routes/v1/monitors/trigger/schema.ts
@@ -1,4 +1,5 @@
import { z } from "@hono/zod-openapi";
+
import { ParamsSchema } from "../schema";
export { ParamsSchema };
diff --git a/apps/server/src/routes/v1/monitors/utils.ts b/apps/server/src/routes/v1/monitors/utils.ts
index abb4b223a..119dd29c2 100644
--- a/apps/server/src/routes/v1/monitors/utils.ts
+++ b/apps/server/src/routes/v1/monitors/utils.ts
@@ -5,6 +5,7 @@ import {
TextBodyAssertion,
} from "@openstatus/assertions";
import type { z } from "zod";
+
import type { assertion, assertionsSchema } from "./schema";
export const getAssertions = (
diff --git a/apps/server/src/routes/v1/notifications/get.test.ts b/apps/server/src/routes/v1/notifications/get.test.ts
index 5517e5b97..3e967ba55 100644
--- a/apps/server/src/routes/v1/notifications/get.test.ts
+++ b/apps/server/src/routes/v1/notifications/get.test.ts
@@ -1,6 +1,7 @@
import { expect, test } from "bun:test";
import { app } from "@/index";
+
import { NotificationSchema } from "./schema";
test("return the notification", async () => {
diff --git a/apps/server/src/routes/v1/notifications/get.ts b/apps/server/src/routes/v1/notifications/get.ts
index d4ee5135a..89fd00a5e 100644
--- a/apps/server/src/routes/v1/notifications/get.ts
+++ b/apps/server/src/routes/v1/notifications/get.ts
@@ -1,11 +1,12 @@
import { createRoute } from "@hono/zod-openapi";
-
-import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
import { and, db, eq } from "@openstatus/db";
import {
notification,
notificationsToMonitors,
} from "@openstatus/db/src/schema";
+
+import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
+
import type { notificationsApi } from "./index";
import { NotificationSchema, ParamsSchema } from "./schema";
diff --git a/apps/server/src/routes/v1/notifications/get_all.test.ts b/apps/server/src/routes/v1/notifications/get_all.test.ts
index 4b88ec431..0c92e23f0 100644
--- a/apps/server/src/routes/v1/notifications/get_all.test.ts
+++ b/apps/server/src/routes/v1/notifications/get_all.test.ts
@@ -1,8 +1,10 @@
import { afterAll, beforeAll, expect, test } from "bun:test";
+
import { db, eq } from "@openstatus/db";
import { notification } from "@openstatus/db/src/schema";
import { app } from "@/index";
+
import { NotificationSchema } from "./schema";
const TEST_PREFIX = "v1-notif-getall-test";
diff --git a/apps/server/src/routes/v1/notifications/get_all.ts b/apps/server/src/routes/v1/notifications/get_all.ts
index 36972f092..79a3dfa47 100644
--- a/apps/server/src/routes/v1/notifications/get_all.ts
+++ b/apps/server/src/routes/v1/notifications/get_all.ts
@@ -1,11 +1,12 @@
import { createRoute } from "@hono/zod-openapi";
-
-import { openApiErrorResponses } from "@/libs/errors";
import { db, eq, inArray } from "@openstatus/db";
import {
notification,
notificationsToMonitors,
} from "@openstatus/db/src/schema";
+
+import { openApiErrorResponses } from "@/libs/errors";
+
import type { notificationsApi } from "./index";
import { NotificationSchema } from "./schema";
diff --git a/apps/server/src/routes/v1/notifications/index.ts b/apps/server/src/routes/v1/notifications/index.ts
index a2ced08be..b1bf7c834 100644
--- a/apps/server/src/routes/v1/notifications/index.ts
+++ b/apps/server/src/routes/v1/notifications/index.ts
@@ -1,6 +1,7 @@
import { OpenAPIHono } from "@hono/zod-openapi";
import { handleZodError } from "@/libs/errors";
+
import type { Variables } from "../index";
import { registerGetNotification } from "./get";
import { registerGetAllNotifications } from "./get_all";
diff --git a/apps/server/src/routes/v1/notifications/post.test.ts b/apps/server/src/routes/v1/notifications/post.test.ts
index cb02e90b6..5208aec5a 100644
--- a/apps/server/src/routes/v1/notifications/post.test.ts
+++ b/apps/server/src/routes/v1/notifications/post.test.ts
@@ -1,8 +1,10 @@
import { expect, test } from "bun:test";
-import { app } from "@/index";
import { db, eq } from "@openstatus/db";
import { notification } from "@openstatus/db/src/schema";
+
+import { app } from "@/index";
+
import { NotificationSchema } from "./schema";
test("create a notification", async () => {
diff --git a/apps/server/src/routes/v1/notifications/post.ts b/apps/server/src/routes/v1/notifications/post.ts
index a622d436b..cc063cb01 100644
--- a/apps/server/src/routes/v1/notifications/post.ts
+++ b/apps/server/src/routes/v1/notifications/post.ts
@@ -1,7 +1,4 @@
import { createRoute } from "@hono/zod-openapi";
-
-import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
-import { trackMiddleware } from "@/libs/middlewares";
import { Events } from "@openstatus/analytics";
import { and, db, eq, inArray, isNull, sql } from "@openstatus/db";
import {
@@ -11,6 +8,10 @@ import {
notificationsToMonitors,
selectNotificationSchema,
} from "@openstatus/db/src/schema";
+
+import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
+import { trackMiddleware } from "@/libs/middlewares";
+
import type { notificationsApi } from "./index";
import { NotificationSchema } from "./schema";
diff --git a/apps/server/src/routes/v1/notifications/schema.ts b/apps/server/src/routes/v1/notifications/schema.ts
index ec19e5c8e..5ade48ac3 100644
--- a/apps/server/src/routes/v1/notifications/schema.ts
+++ b/apps/server/src/routes/v1/notifications/schema.ts
@@ -1,5 +1,4 @@
import { z } from "@hono/zod-openapi";
-
import { notificationProvider } from "@openstatus/db/src/schema/notifications/constants";
export const ParamsSchema = z.object({
diff --git a/apps/server/src/routes/v1/pageSubscribers/index.ts b/apps/server/src/routes/v1/pageSubscribers/index.ts
index ce15ce2e6..e556e7d15 100644
--- a/apps/server/src/routes/v1/pageSubscribers/index.ts
+++ b/apps/server/src/routes/v1/pageSubscribers/index.ts
@@ -1,6 +1,7 @@
import { OpenAPIHono } from "@hono/zod-openapi";
import { handleZodError } from "@/libs/errors";
+
import type { Variables } from "../index";
import { registerPostPageSubscriber } from "./post";
diff --git a/apps/server/src/routes/v1/pageSubscribers/post.test.ts b/apps/server/src/routes/v1/pageSubscribers/post.test.ts
index 92111b759..7d1bc085c 100644
--- a/apps/server/src/routes/v1/pageSubscribers/post.test.ts
+++ b/apps/server/src/routes/v1/pageSubscribers/post.test.ts
@@ -1,8 +1,10 @@
import { expect, test } from "bun:test";
-import { app } from "@/index";
import { and, db, eq, isNull } from "@openstatus/db";
import { pageSubscriber } from "@openstatus/db/src/schema";
+
+import { app } from "@/index";
+
import { PageSubscriberSchema } from "./schema";
test("create a page subscription", async () => {
diff --git a/apps/server/src/routes/v1/pageSubscribers/post.ts b/apps/server/src/routes/v1/pageSubscribers/post.ts
index bec3fb7fd..b9ae75ed2 100644
--- a/apps/server/src/routes/v1/pageSubscribers/post.ts
+++ b/apps/server/src/routes/v1/pageSubscribers/post.ts
@@ -1,12 +1,13 @@
import { createRoute } from "@hono/zod-openapi";
-
-import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
-import { trackMiddleware } from "@/libs/middlewares";
import { Events } from "@openstatus/analytics";
import { and, eq, isNull, sql } from "@openstatus/db";
import { db } from "@openstatus/db/src/db";
import { page, pageSubscriber } from "@openstatus/db/src/schema";
import { SubscribeEmail, sendEmail } from "@openstatus/emails";
+
+import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
+import { trackMiddleware } from "@/libs/middlewares";
+
import type { pageSubscribersApi } from "./index";
import { PageSubscriberSchema, ParamsSchema } from "./schema";
diff --git a/apps/server/src/routes/v1/pages/get.test.ts b/apps/server/src/routes/v1/pages/get.test.ts
index 6aac697ad..2c197d624 100644
--- a/apps/server/src/routes/v1/pages/get.test.ts
+++ b/apps/server/src/routes/v1/pages/get.test.ts
@@ -1,6 +1,7 @@
import { expect, test } from "bun:test";
import { app } from "@/index";
+
import { PageSchema } from "./schema";
test("return the page", async () => {
diff --git a/apps/server/src/routes/v1/pages/get.ts b/apps/server/src/routes/v1/pages/get.ts
index 73e3face5..5389e9931 100644
--- a/apps/server/src/routes/v1/pages/get.ts
+++ b/apps/server/src/routes/v1/pages/get.ts
@@ -1,10 +1,11 @@
import { createRoute } from "@hono/zod-openapi";
-
-import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
-import { notEmpty } from "@/utils/not-empty";
import { and, eq } from "@openstatus/db";
import { db } from "@openstatus/db/src/db";
import { page } from "@openstatus/db/src/schema";
+
+import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
+import { notEmpty } from "@/utils/not-empty";
+
import type { pagesApi } from "./index";
import { PageSchema, ParamsSchema, transformPageData } from "./schema";
diff --git a/apps/server/src/routes/v1/pages/get_all.test.ts b/apps/server/src/routes/v1/pages/get_all.test.ts
index 842755822..155ed2cbb 100644
--- a/apps/server/src/routes/v1/pages/get_all.test.ts
+++ b/apps/server/src/routes/v1/pages/get_all.test.ts
@@ -1,8 +1,10 @@
import { afterAll, beforeAll, expect, test } from "bun:test";
+
import { db, eq } from "@openstatus/db";
import { monitor, page, pageComponent } from "@openstatus/db/src/schema";
import { app } from "@/index";
+
import { PageSchema } from "./schema";
const TEST_PREFIX = "v1-page-getall-test";
diff --git a/apps/server/src/routes/v1/pages/get_all.ts b/apps/server/src/routes/v1/pages/get_all.ts
index 47d884d54..74ea1582a 100644
--- a/apps/server/src/routes/v1/pages/get_all.ts
+++ b/apps/server/src/routes/v1/pages/get_all.ts
@@ -1,9 +1,10 @@
import { createRoute } from "@hono/zod-openapi";
+import { db, eq } from "@openstatus/db";
+import { page } from "@openstatus/db/src/schema";
import { openApiErrorResponses } from "@/libs/errors";
import { notEmpty } from "@/utils/not-empty";
-import { db, eq } from "@openstatus/db";
-import { page } from "@openstatus/db/src/schema";
+
import type { pagesApi } from "./index";
import { PageSchema, transformPageData } from "./schema";
diff --git a/apps/server/src/routes/v1/pages/index.ts b/apps/server/src/routes/v1/pages/index.ts
index bfacfcb70..2fa59a9d6 100644
--- a/apps/server/src/routes/v1/pages/index.ts
+++ b/apps/server/src/routes/v1/pages/index.ts
@@ -1,6 +1,7 @@
import { OpenAPIHono } from "@hono/zod-openapi";
import { handleZodError } from "@/libs/errors";
+
import type { Variables } from "../index";
import { registerGetPage } from "./get";
import { registerGetAllPages } from "./get_all";
diff --git a/apps/server/src/routes/v1/pages/post.test.ts b/apps/server/src/routes/v1/pages/post.test.ts
index 5d3e4c70b..ec8999c6a 100644
--- a/apps/server/src/routes/v1/pages/post.test.ts
+++ b/apps/server/src/routes/v1/pages/post.test.ts
@@ -1,8 +1,10 @@
import { expect, test } from "bun:test";
-import { app } from "@/index";
import { db, eq } from "@openstatus/db";
import { monitor, page, pageComponent } from "@openstatus/db/src/schema";
+
+import { app } from "@/index";
+
import { PageSchema } from "./schema";
test("create a valid page", async () => {
diff --git a/apps/server/src/routes/v1/pages/post.ts b/apps/server/src/routes/v1/pages/post.ts
index c4e01cb78..c128e8d37 100644
--- a/apps/server/src/routes/v1/pages/post.ts
+++ b/apps/server/src/routes/v1/pages/post.ts
@@ -1,5 +1,5 @@
import { createRoute } from "@hono/zod-openapi";
-
+import { Events } from "@openstatus/analytics";
import { and, eq, inArray, isNull, sql } from "@openstatus/db";
import { db } from "@openstatus/db/src/db";
import {
@@ -11,7 +11,7 @@ import {
import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
import { trackMiddleware } from "@/libs/middlewares";
-import { Events } from "@openstatus/analytics";
+
import { isNumberArray } from "../utils";
import type { pagesApi } from "./index";
import { PageSchema, transformPageData } from "./schema";
diff --git a/apps/server/src/routes/v1/pages/put.test.ts b/apps/server/src/routes/v1/pages/put.test.ts
index d6f5e6b96..3d327ca1b 100644
--- a/apps/server/src/routes/v1/pages/put.test.ts
+++ b/apps/server/src/routes/v1/pages/put.test.ts
@@ -1,6 +1,7 @@
import { expect, test } from "bun:test";
import { app } from "@/index";
+
import { PageSchema } from "./schema";
test("update the page with monitor ids", async () => {
diff --git a/apps/server/src/routes/v1/pages/put.ts b/apps/server/src/routes/v1/pages/put.ts
index ae009d113..5514ba6e9 100644
--- a/apps/server/src/routes/v1/pages/put.ts
+++ b/apps/server/src/routes/v1/pages/put.ts
@@ -1,8 +1,4 @@
import { createRoute } from "@hono/zod-openapi";
-
-import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
-import { trackMiddleware } from "@/libs/middlewares";
-import { notEmpty } from "@/utils/not-empty";
import { Events } from "@openstatus/analytics";
import { and, eq, inArray, isNull, sql } from "@openstatus/db";
import { db } from "@openstatus/db/src/db";
@@ -12,6 +8,11 @@ import {
pageComponent,
subdomainSafeList,
} from "@openstatus/db/src/schema";
+
+import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
+import { trackMiddleware } from "@/libs/middlewares";
+import { notEmpty } from "@/utils/not-empty";
+
import { isNumberArray } from "../utils";
import type { pagesApi } from "./index";
import { PageSchema, ParamsSchema, transformPageData } from "./schema";
diff --git a/apps/server/src/routes/v1/pages/schema.ts b/apps/server/src/routes/v1/pages/schema.ts
index 4e5ae5c5f..6c85e5297 100644
--- a/apps/server/src/routes/v1/pages/schema.ts
+++ b/apps/server/src/routes/v1/pages/schema.ts
@@ -129,6 +129,6 @@ export function transformPageData<
return {
...data,
passwordProtected:
- data.accessType === "password" ? true : data.passwordProtected ?? false,
+ data.accessType === "password" ? true : (data.passwordProtected ?? false),
};
}
diff --git a/apps/server/src/routes/v1/statusReportUpdates/get.test.ts b/apps/server/src/routes/v1/statusReportUpdates/get.test.ts
index 92674f2c3..2a90e6bfe 100644
--- a/apps/server/src/routes/v1/statusReportUpdates/get.test.ts
+++ b/apps/server/src/routes/v1/statusReportUpdates/get.test.ts
@@ -1,6 +1,7 @@
import { expect, test } from "bun:test";
import { app } from "@/index";
+
import { StatusReportUpdateSchema } from "./schema";
test("return the status report update", async () => {
diff --git a/apps/server/src/routes/v1/statusReportUpdates/get.ts b/apps/server/src/routes/v1/statusReportUpdates/get.ts
index 51b10ae61..42e012c46 100644
--- a/apps/server/src/routes/v1/statusReportUpdates/get.ts
+++ b/apps/server/src/routes/v1/statusReportUpdates/get.ts
@@ -1,9 +1,9 @@
import { createRoute } from "@hono/zod-openapi";
-
import { and, db, eq } from "@openstatus/db";
import { statusReport, statusReportUpdate } from "@openstatus/db/src/schema";
import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
+
import type { statusReportUpdatesApi } from "./index";
import { ParamsSchema, StatusReportUpdateSchema } from "./schema";
diff --git a/apps/server/src/routes/v1/statusReportUpdates/index.ts b/apps/server/src/routes/v1/statusReportUpdates/index.ts
index daa8de716..83917f829 100644
--- a/apps/server/src/routes/v1/statusReportUpdates/index.ts
+++ b/apps/server/src/routes/v1/statusReportUpdates/index.ts
@@ -1,6 +1,7 @@
import { OpenAPIHono } from "@hono/zod-openapi";
import { handleZodError } from "@/libs/errors";
+
import type { Variables } from "../index";
import { registerGetStatusReportUpdate } from "./get";
import { registerPostStatusReportUpdate } from "./post";
diff --git a/apps/server/src/routes/v1/statusReportUpdates/post.test.ts b/apps/server/src/routes/v1/statusReportUpdates/post.test.ts
index 0ab372730..575b169e3 100644
--- a/apps/server/src/routes/v1/statusReportUpdates/post.test.ts
+++ b/apps/server/src/routes/v1/statusReportUpdates/post.test.ts
@@ -1,9 +1,9 @@
import { beforeEach, expect, test } from "bun:test";
import { app } from "@/index";
+
import { StatusReportUpdateSchema } from "./schema";
-// biome-ignore lint/suspicious/noExplicitAny: test utility
const spies = (globalThis as any).__subscriptionSpies as {
dispatchStatusReportUpdate: {
mockClear: () => void;
diff --git a/apps/server/src/routes/v1/statusReportUpdates/post.ts b/apps/server/src/routes/v1/statusReportUpdates/post.ts
index a452c1725..c90552282 100644
--- a/apps/server/src/routes/v1/statusReportUpdates/post.ts
+++ b/apps/server/src/routes/v1/statusReportUpdates/post.ts
@@ -1,10 +1,10 @@
import { createRoute } from "@hono/zod-openapi";
-
import { and, db, eq } from "@openstatus/db";
import { statusReport, statusReportUpdate } from "@openstatus/db/src/schema";
+import { dispatchStatusReportUpdate } from "@openstatus/subscriptions";
import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
-import { dispatchStatusReportUpdate } from "@openstatus/subscriptions";
+
import type { statusReportUpdatesApi } from "./index";
import { StatusReportUpdateSchema } from "./schema";
diff --git a/apps/server/src/routes/v1/statusReportUpdates/schema.ts b/apps/server/src/routes/v1/statusReportUpdates/schema.ts
index 47c75b2d4..a27316317 100644
--- a/apps/server/src/routes/v1/statusReportUpdates/schema.ts
+++ b/apps/server/src/routes/v1/statusReportUpdates/schema.ts
@@ -1,5 +1,4 @@
import { z } from "@hono/zod-openapi";
-
import { statusReportStatus } from "@openstatus/db/src/schema";
export const ParamsSchema = z.object({
diff --git a/apps/server/src/routes/v1/statusReports/delete.test.ts b/apps/server/src/routes/v1/statusReports/delete.test.ts
index 2e17b9374..2532be018 100644
--- a/apps/server/src/routes/v1/statusReports/delete.test.ts
+++ b/apps/server/src/routes/v1/statusReports/delete.test.ts
@@ -1,6 +1,7 @@
import { expect, test } from "bun:test";
import { app } from "@/index";
+
import { StatusReportSchema } from "./schema";
test("delete the status report", async () => {
diff --git a/apps/server/src/routes/v1/statusReports/delete.ts b/apps/server/src/routes/v1/statusReports/delete.ts
index 46eb0e06f..6dc6ae82b 100644
--- a/apps/server/src/routes/v1/statusReports/delete.ts
+++ b/apps/server/src/routes/v1/statusReports/delete.ts
@@ -1,9 +1,9 @@
import { createRoute, z } from "@hono/zod-openapi";
-
import { and, db, eq } from "@openstatus/db";
import { statusReport } from "@openstatus/db/src/schema";
import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
+
import type { statusReportsApi } from "./index";
import { ParamsSchema } from "./schema";
diff --git a/apps/server/src/routes/v1/statusReports/get.test.ts b/apps/server/src/routes/v1/statusReports/get.test.ts
index 39c380745..a833c20ae 100644
--- a/apps/server/src/routes/v1/statusReports/get.test.ts
+++ b/apps/server/src/routes/v1/statusReports/get.test.ts
@@ -1,6 +1,7 @@
import { expect, test } from "bun:test";
import { app } from "@/index";
+
import { StatusReportSchema } from "./schema";
test("return the status report", async () => {
diff --git a/apps/server/src/routes/v1/statusReports/get.ts b/apps/server/src/routes/v1/statusReports/get.ts
index 2018053f8..c9c5a1c34 100644
--- a/apps/server/src/routes/v1/statusReports/get.ts
+++ b/apps/server/src/routes/v1/statusReports/get.ts
@@ -1,10 +1,10 @@
import { createRoute } from "@hono/zod-openapi";
-
import { and, db, eq } from "@openstatus/db";
import { statusReport } from "@openstatus/db/src/schema";
import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
import { notEmpty } from "@/utils/not-empty";
+
import type { statusReportsApi } from "./index";
import { ParamsSchema, StatusReportSchema } from "./schema";
diff --git a/apps/server/src/routes/v1/statusReports/get_all.test.ts b/apps/server/src/routes/v1/statusReports/get_all.test.ts
index daa698ce3..221354713 100644
--- a/apps/server/src/routes/v1/statusReports/get_all.test.ts
+++ b/apps/server/src/routes/v1/statusReports/get_all.test.ts
@@ -1,4 +1,5 @@
import { afterAll, beforeAll, expect, test } from "bun:test";
+
import { db, eq } from "@openstatus/db";
import {
monitor,
@@ -9,6 +10,7 @@ import {
} from "@openstatus/db/src/schema";
import { app } from "@/index";
+
import { StatusReportSchema } from "./schema";
const TEST_PREFIX = "v1-sr-getall-test";
diff --git a/apps/server/src/routes/v1/statusReports/get_all.ts b/apps/server/src/routes/v1/statusReports/get_all.ts
index 1e56bb1f8..7f37b36a3 100644
--- a/apps/server/src/routes/v1/statusReports/get_all.ts
+++ b/apps/server/src/routes/v1/statusReports/get_all.ts
@@ -1,10 +1,10 @@
import { createRoute, z } from "@hono/zod-openapi";
-
import { db, eq } from "@openstatus/db";
import { statusReport } from "@openstatus/db/src/schema";
import { openApiErrorResponses } from "@/libs/errors";
import { notEmpty } from "@/utils/not-empty";
+
import type { statusReportsApi } from "./index";
import { StatusReportSchema } from "./schema";
diff --git a/apps/server/src/routes/v1/statusReports/index.ts b/apps/server/src/routes/v1/statusReports/index.ts
index 64e7d5a88..d475aa954 100644
--- a/apps/server/src/routes/v1/statusReports/index.ts
+++ b/apps/server/src/routes/v1/statusReports/index.ts
@@ -1,6 +1,7 @@
import { OpenAPIHono } from "@hono/zod-openapi";
import { handleZodError } from "@/libs/errors";
+
import type { Variables } from "../index";
import { registerDeleteStatusReport } from "./delete";
import { regsiterGetStatusReport } from "./get";
diff --git a/apps/server/src/routes/v1/statusReports/post.test.ts b/apps/server/src/routes/v1/statusReports/post.test.ts
index ad66cb01f..77154186a 100644
--- a/apps/server/src/routes/v1/statusReports/post.test.ts
+++ b/apps/server/src/routes/v1/statusReports/post.test.ts
@@ -1,15 +1,16 @@
import { beforeEach, expect, test } from "bun:test";
-import { app } from "@/index";
import { db, eq } from "@openstatus/db";
import {
pageComponent,
statusReport,
statusReportsToPageComponents,
} from "@openstatus/db/src/schema";
+
+import { app } from "@/index";
+
import { StatusReportSchema } from "./schema";
-// biome-ignore lint/suspicious/noExplicitAny: test utility
const spies = (globalThis as any).__subscriptionSpies as {
dispatchStatusReportUpdate: {
mockClear: () => void;
diff --git a/apps/server/src/routes/v1/statusReports/post.ts b/apps/server/src/routes/v1/statusReports/post.ts
index cc940c68d..37bde8b86 100644
--- a/apps/server/src/routes/v1/statusReports/post.ts
+++ b/apps/server/src/routes/v1/statusReports/post.ts
@@ -1,5 +1,4 @@
import { createRoute, z } from "@hono/zod-openapi";
-
import { and, db, eq, inArray, isNull } from "@openstatus/db";
import {
monitor,
@@ -9,9 +8,10 @@ import {
statusReportUpdate,
statusReportsToPageComponents,
} from "@openstatus/db/src/schema";
+import { dispatchStatusReportUpdate } from "@openstatus/subscriptions";
import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
-import { dispatchStatusReportUpdate } from "@openstatus/subscriptions";
+
import type { statusReportsApi } from "./index";
import { StatusReportSchema } from "./schema";
diff --git a/apps/server/src/routes/v1/statusReports/schema.ts b/apps/server/src/routes/v1/statusReports/schema.ts
index f17c11769..ecfcbbf4f 100644
--- a/apps/server/src/routes/v1/statusReports/schema.ts
+++ b/apps/server/src/routes/v1/statusReports/schema.ts
@@ -1,5 +1,4 @@
import { z } from "@hono/zod-openapi";
-
import { statusReportStatus } from "@openstatus/db/src/schema/status_reports/status_reports";
export const ParamsSchema = z.object({
diff --git a/apps/server/src/routes/v1/statusReports/subscriber-filtering.integration.test.ts b/apps/server/src/routes/v1/statusReports/subscriber-filtering.integration.test.ts
index 034b33fcf..743cfd1c1 100644
--- a/apps/server/src/routes/v1/statusReports/subscriber-filtering.integration.test.ts
+++ b/apps/server/src/routes/v1/statusReports/subscriber-filtering.integration.test.ts
@@ -1,4 +1,5 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
+
import { and, db, eq, isNotNull, isNull } from "@openstatus/db";
import { page, pageSubscriber } from "@openstatus/db/src/schema";
diff --git a/apps/server/src/routes/v1/statusReports/update/post.test.ts b/apps/server/src/routes/v1/statusReports/update/post.test.ts
index 17ad4bb8f..2ec28acad 100644
--- a/apps/server/src/routes/v1/statusReports/update/post.test.ts
+++ b/apps/server/src/routes/v1/statusReports/update/post.test.ts
@@ -1,6 +1,7 @@
import { expect, test } from "bun:test";
import { app } from "@/index";
+
import { StatusReportSchema } from "../schema";
test("create status report update with valid data should return 200", async () => {
diff --git a/apps/server/src/routes/v1/statusReports/update/post.ts b/apps/server/src/routes/v1/statusReports/update/post.ts
index 96df7e439..5c19a0aad 100644
--- a/apps/server/src/routes/v1/statusReports/update/post.ts
+++ b/apps/server/src/routes/v1/statusReports/update/post.ts
@@ -1,6 +1,3 @@
-import { env } from "@/env";
-import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
-import { notEmpty } from "@/utils/not-empty";
import { createRoute } from "@hono/zod-openapi";
import { and, db, eq, isNotNull } from "@openstatus/db";
import {
@@ -9,6 +6,11 @@ import {
statusReportUpdate,
} from "@openstatus/db/src/schema";
import { EmailClient } from "@openstatus/emails/src/client";
+
+import { env } from "@/env";
+import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
+import { notEmpty } from "@/utils/not-empty";
+
import { StatusReportUpdateSchema } from "../../statusReportUpdates/schema";
import type { statusReportsApi } from "../index";
import { ParamsSchema, StatusReportSchema } from "../schema";
diff --git a/apps/server/src/routes/v1/whoami/get.test.ts b/apps/server/src/routes/v1/whoami/get.test.ts
index 05cd0b986..91f49c789 100644
--- a/apps/server/src/routes/v1/whoami/get.test.ts
+++ b/apps/server/src/routes/v1/whoami/get.test.ts
@@ -1,6 +1,7 @@
import { expect, test } from "bun:test";
import { app } from "@/index";
+
import { WorkspaceSchema } from "./schema";
test("return the whoami", async () => {
diff --git a/apps/server/src/routes/v1/whoami/get.ts b/apps/server/src/routes/v1/whoami/get.ts
index ddcec6959..8bab7d9fe 100644
--- a/apps/server/src/routes/v1/whoami/get.ts
+++ b/apps/server/src/routes/v1/whoami/get.ts
@@ -1,8 +1,10 @@
-import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
import { createRoute } from "@hono/zod-openapi";
import { eq } from "@openstatus/db";
import { db } from "@openstatus/db/src/db";
import { workspace } from "@openstatus/db/src/schema/workspaces";
+
+import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
+
import type { whoamiApi } from ".";
import { WorkspaceSchema } from "./schema";
diff --git a/apps/server/src/routes/v1/whoami/index.ts b/apps/server/src/routes/v1/whoami/index.ts
index 329744be1..a574ab2a7 100644
--- a/apps/server/src/routes/v1/whoami/index.ts
+++ b/apps/server/src/routes/v1/whoami/index.ts
@@ -1,5 +1,7 @@
-import { handleZodError } from "@/libs/errors";
import { OpenAPIHono } from "@hono/zod-openapi";
+
+import { handleZodError } from "@/libs/errors";
+
import type { Variables } from "..";
import { registerGetWhoami } from "./get";
diff --git a/apps/server/src/routes/v1/whoami/schema.ts b/apps/server/src/routes/v1/whoami/schema.ts
index 19b321ff4..1fb9c8a7c 100644
--- a/apps/server/src/routes/v1/whoami/schema.ts
+++ b/apps/server/src/routes/v1/whoami/schema.ts
@@ -1,5 +1,4 @@
import { z } from "@hono/zod-openapi";
-
import { apiKeySettableScopes } from "@openstatus/db/src/schema/api-keys/constants";
import { workspacePlans } from "@openstatus/db/src/schema/workspaces/constants";
diff --git a/apps/status-page/next.config.ts b/apps/status-page/next.config.ts
index 8c51b2799..4e4d402cb 100644
--- a/apps/status-page/next.config.ts
+++ b/apps/status-page/next.config.ts
@@ -1,6 +1,7 @@
import { withSentryConfig } from "@sentry/nextjs";
import type { NextConfig } from "next";
import createNextIntlPlugin from "next-intl/plugin";
+
import { defaultLocale, locales } from "./src/i18n/config";
const isDev = process.env.NODE_ENV === "development";
diff --git a/apps/status-page/src/app/(public)/client.tsx b/apps/status-page/src/app/(public)/client.tsx
index 7641ef06e..38d02ffd0 100644
--- a/apps/status-page/src/app/(public)/client.tsx
+++ b/apps/status-page/src/app/(public)/client.tsx
@@ -1,20 +1,5 @@
"use client";
-import { Link } from "@/components/common/link";
-import {
- Section,
- SectionDescription,
- SectionGroup,
- SectionGroupHeader,
- SectionHeader,
- SectionTitle,
-} from "@/components/content/section";
-import { recomputeStyles } from "@/components/status-page/floating-button";
-import { StatusComponentStatic } from "@/components/status-page/static/status-component-static";
-import { ThemePalettePicker } from "@/components/themes/theme-palette-picker";
-import { ThemeSelect } from "@/components/themes/theme-select";
-import { monitors } from "@/data/monitors";
-import { useTRPC } from "@/lib/trpc/client";
import { THEMES, THEME_KEYS } from "@openstatus/theme-store";
import { StatusBanner } from "@openstatus/ui/components/blocks/status-banner";
import {
@@ -40,6 +25,23 @@ import { useQuery } from "@tanstack/react-query";
import { useTheme } from "next-themes";
import { useQueryStates } from "nuqs";
import { useEffect, useState } from "react";
+
+import { Link } from "@/components/common/link";
+import {
+ Section,
+ SectionDescription,
+ SectionGroup,
+ SectionGroupHeader,
+ SectionHeader,
+ SectionTitle,
+} from "@/components/content/section";
+import { recomputeStyles } from "@/components/status-page/floating-button";
+import { StatusComponentStatic } from "@/components/status-page/static/status-component-static";
+import { ThemePalettePicker } from "@/components/themes/theme-palette-picker";
+import { ThemeSelect } from "@/components/themes/theme-select";
+import { monitors } from "@/data/monitors";
+import { useTRPC } from "@/lib/trpc/client";
+
import { searchParamsParsers } from "./search-params";
const MAIN_COLORS = [
@@ -72,10 +74,10 @@ export function Client() {
return (
<SectionGroup>
<SectionGroupHeader>
- <h1 className="font-bold text-2xl md:text-4xl">
+ <h1 className="text-2xl font-bold md:text-4xl">
Status Page Theme Explorer
</h1>
- <h2 className="font-medium text-muted-foreground md:text-lg">
+ <h2 className="text-muted-foreground font-medium md:text-lg">
View all the openstatus themes for your status page and learn how to
create your own theme.
</h2>
@@ -88,9 +90,9 @@ export function Client() {
<Link href="#contribute-theme">Contribute your own?</Link>
</SectionDescription>
</SectionHeader>
- <div className="sticky top-0 z-10 overflow-hidden rounded-lg border border-border bg-background outline-[3px] outline-background sm:relative">
+ <div className="border-border bg-background outline-background sticky top-0 z-10 overflow-hidden rounded-lg border outline-[3px] sm:relative">
<div className="relative">
- <div className="absolute top-0 right-0 rounded-bl-lg border-border border-b border-l bg-muted/50 px-2 py-0.5 text-[10px]">
+ <div className="border-border bg-muted/50 absolute top-0 right-0 rounded-bl-lg border-b border-l px-2 py-0.5 text-[10px]">
{theme?.name}
</div>
<div className="sm:p-8">
@@ -99,7 +101,7 @@ export function Client() {
</div>
</div>
<div className="flex gap-3">
- <ThemeSelect className="min-w-[125px] max-w-[125px]" />
+ <ThemeSelect className="max-w-[125px] min-w-[125px]" />
<Input
placeholder={`Search from ${THEME_KEYS.length} themes`}
value={q ?? ""}
@@ -133,7 +135,7 @@ export function Client() {
data-active={k === t}
data-slot="theme-card"
data-theme={k}
- className="relative h-40 cursor-pointer overflow-hidden rounded-md border border-border outline-none transition-all focus:outline-ring/50 focus:ring-2 focus:ring-ring/50 data-[active=true]:border-ring data-[active=true]:outline-[3px] data-[active=true]:outline-ring/50"
+ className="border-border focus:outline-ring/50 focus:ring-ring/50 data-[active=true]:border-ring data-[active=true]:outline-ring/50 relative h-40 cursor-pointer overflow-hidden rounded-md border transition-all outline-none focus:ring-2 data-[active=true]:outline-[3px]"
onClick={() => setSearchParams({ t: k })}
role="button"
tabIndex={0}
@@ -145,7 +147,7 @@ export function Client() {
>
{isMounted ? (
<div
- className="absolute h-full w-full bg-background text-foreground"
+ className="bg-background text-foreground absolute h-full w-full"
style={style as React.CSSProperties}
inert
>
@@ -157,7 +159,7 @@ export function Client() {
</div>
<div className="flex items-start justify-between gap-2">
<div className="space-y-0.5 truncate">
- <div className="truncate font-medium text-foreground text-sm leading-none">
+ <div className="text-foreground truncate text-sm leading-none font-medium">
{theme.name}
</div>
<div className="font-mono text-xs">
@@ -190,7 +192,7 @@ export function Client() {
<Tooltip>
<TooltipTrigger>
<div
- className="size-3.5 rounded-sm border bg-muted-foreground"
+ className="bg-muted-foreground size-3.5 rounded-sm border"
style={{ backgroundColor }}
/>
</TooltipTrigger>
diff --git a/apps/status-page/src/app/(public)/layout.tsx b/apps/status-page/src/app/(public)/layout.tsx
index b91dd433c..9297bb8a5 100644
--- a/apps/status-page/src/app/(public)/layout.tsx
+++ b/apps/status-page/src/app/(public)/layout.tsx
@@ -1,9 +1,3 @@
-import { Link } from "@/components/common/link";
-import { ThemeProvider } from "@/components/themes/theme-provider";
-import {
- SidebarTrigger,
- ThemeSidebar,
-} from "@/components/themes/theme-sidebar";
import { generateThemeStyles } from "@openstatus/theme-store";
import {
SidebarInset,
@@ -14,6 +8,13 @@ import { NextIntlClientProvider } from "next-intl";
import PlausibleProvider from "next-plausible";
import { Suspense } from "react";
+import { Link } from "@/components/common/link";
+import { ThemeProvider } from "@/components/themes/theme-provider";
+import {
+ SidebarTrigger,
+ ThemeSidebar,
+} from "@/components/themes/theme-sidebar";
+
const SIDEBAR_WIDTH = "20rem";
const SIDEBAR_WIDTH_MOBILE = "18rem";
@@ -29,7 +30,7 @@ export default async function Layout({
<PlausibleProvider domain="themes.openstatus.dev">
<style
id="theme-styles"
- // biome-ignore lint/security/noDangerouslySetInnerHtml: <explanation>
+ // oxlint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{ __html: generateThemeStyles() }}
/>
<NextIntlClientProvider locale={locale} messages={messages}>
@@ -46,7 +47,7 @@ export default async function Layout({
<SidebarInset className="relative">
<SidebarTrigger className="absolute top-2 right-2" />
<main className="mx-auto">{children}</main>
- <footer className="flex items-center justify-center gap-4 p-4 text-center font-mono text-muted-foreground text-sm">
+ <footer className="text-muted-foreground flex items-center justify-center gap-4 p-4 text-center font-mono text-sm">
<p>
powered by{" "}
<Link href="https://openstatus.dev">openstatus</Link>
diff --git a/apps/status-page/src/app/(public)/page.tsx b/apps/status-page/src/app/(public)/page.tsx
index b7f03f9a8..3598b76a1 100644
--- a/apps/status-page/src/app/(public)/page.tsx
+++ b/apps/status-page/src/app/(public)/page.tsx
@@ -1,4 +1,5 @@
import type { SearchParams } from "nuqs";
+
import { Client } from "./client";
import { searchParamsCache } from "./search-params";
diff --git a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(auth)/layout.tsx b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(auth)/layout.tsx
index 1d777d8c3..62448552d 100644
--- a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(auth)/layout.tsx
+++ b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(auth)/layout.tsx
@@ -1,8 +1,9 @@
+import { cn } from "@openstatus/ui/lib/utils";
+import { Suspense } from "react";
+
import { EmbedShell } from "@/components/layout/embed-shell";
import { Footer } from "@/components/nav/footer";
import { getQueryClient, trpc } from "@/lib/trpc/server";
-import { cn } from "@openstatus/ui/lib/utils";
-import { Suspense } from "react";
export default async function Layout({
children,
diff --git a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(auth)/login/_components/section-magic-link.tsx b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(auth)/login/_components/section-magic-link.tsx
index 6064b32d6..6da92191a 100644
--- a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(auth)/login/_components/section-magic-link.tsx
+++ b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(auth)/login/_components/section-magic-link.tsx
@@ -1,5 +1,12 @@
"use client";
+import { Button } from "@openstatus/ui/components/ui/button";
+import { Inbox } from "lucide-react";
+import { useExtracted } from "next-intl";
+import { useParams } from "next/navigation";
+import { useState } from "react";
+import { flushSync } from "react-dom";
+
import {
EmptyStateContainer,
EmptyStateDescription,
@@ -13,12 +20,7 @@ import {
} from "@/components/content/section";
import { FormEmail, type FormValues } from "@/components/forms/form-email";
import { generateServerActionPromise } from "@/lib/server-actions";
-import { Button } from "@openstatus/ui/components/ui/button";
-import { Inbox } from "lucide-react";
-import { useExtracted } from "next-intl";
-import { useParams } from "next/navigation";
-import { useState } from "react";
-import { flushSync } from "react-dom";
+
import { signInWithResendAction } from "../actions";
export function SectionMagicLink() {
@@ -54,7 +56,7 @@ export function SectionMagicLink() {
}
return (
- <Section className="m-auto w-full max-w-lg rounded-lg border bg-card p-4">
+ <Section className="bg-card m-auto w-full max-w-lg rounded-lg border p-4">
<SectionHeader>
<SectionTitle>{t("Authenticate")}</SectionTitle>
<SectionDescription>
diff --git a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(auth)/login/_components/section-password.tsx b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(auth)/login/_components/section-password.tsx
index 94cf6196d..32b13e977 100644
--- a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(auth)/login/_components/section-password.tsx
+++ b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(auth)/login/_components/section-password.tsx
@@ -1,5 +1,11 @@
"use client";
+import { Button } from "@openstatus/ui/components/ui/button";
+import { useCookieState } from "@openstatus/ui/hooks/use-cookie-state";
+import { useMutation } from "@tanstack/react-query";
+import { useExtracted } from "next-intl";
+import { useParams, useRouter, useSearchParams } from "next/navigation";
+
import {
Section,
SectionDescription,
@@ -9,11 +15,6 @@ import {
import { FormPassword } from "@/components/forms/form-password";
import { createProtectedCookieKey } from "@/lib/protected";
import { useTRPC } from "@/lib/trpc/client";
-import { Button } from "@openstatus/ui/components/ui/button";
-import { useCookieState } from "@openstatus/ui/hooks/use-cookie-state";
-import { useMutation } from "@tanstack/react-query";
-import { useExtracted } from "next-intl";
-import { useParams, useRouter, useSearchParams } from "next/navigation";
export function SectionPassword() {
const t = useExtracted();
@@ -27,7 +28,7 @@ export function SectionPassword() {
);
return (
- <Section className="m-auto w-full max-w-lg rounded-lg border bg-card p-4">
+ <Section className="bg-card m-auto w-full max-w-lg rounded-lg border p-4">
<SectionHeader>
<SectionTitle>{t("Protected Page")}</SectionTitle>
<SectionDescription>
diff --git a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(auth)/login/actions.ts b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(auth)/login/actions.ts
index 6f063b5c0..46056921e 100644
--- a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(auth)/login/actions.ts
+++ b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(auth)/login/actions.ts
@@ -1,12 +1,13 @@
"use server";
-import { signIn } from "@/lib/auth";
-import { getQueryClient, trpc } from "@/lib/trpc/server";
import { TRPCClientError } from "@trpc/client";
import { AuthError } from "next-auth";
import { getExtracted } from "next-intl/server";
import { isRedirectError } from "next/dist/client/components/redirect-error";
+import { signIn } from "@/lib/auth";
+import { getQueryClient, trpc } from "@/lib/trpc/server";
+
export async function signInWithResendAction(formData: FormData) {
const t = await getExtracted();
try {
diff --git a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(auth)/login/page.tsx b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(auth)/login/page.tsx
index 2eeec81fb..554c8146b 100644
--- a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(auth)/login/page.tsx
+++ b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(auth)/login/page.tsx
@@ -1,8 +1,10 @@
"use client";
-import { useTRPC } from "@/lib/trpc/client";
import { useQuery } from "@tanstack/react-query";
import { notFound, useParams } from "next/navigation";
+
+import { useTRPC } from "@/lib/trpc/client";
+
import { SectionMagicLink } from "./_components/section-magic-link";
import { SectionPassword } from "./_components/section-password";
diff --git a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(auth)/restricted/page.tsx b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(auth)/restricted/page.tsx
index 45ad75797..2e6e8b909 100644
--- a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(auth)/restricted/page.tsx
+++ b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(auth)/restricted/page.tsx
@@ -1,11 +1,12 @@
"use client";
-import { useTRPC } from "@/lib/trpc/client";
import { useQuery } from "@tanstack/react-query";
import { ShieldAlert } from "lucide-react";
import { useExtracted } from "next-intl";
import { notFound, useParams } from "next/navigation";
+import { useTRPC } from "@/lib/trpc/client";
+
export default function RestrictedPage() {
const { domain } = useParams<{ domain: string }>();
const t = useExtracted();
@@ -20,8 +21,8 @@ export default function RestrictedPage() {
return (
<div className="m-auto flex flex-col items-center justify-center gap-4 p-4 text-center">
- <ShieldAlert className="h-12 w-12 text-muted-foreground" />
- <h1 className="font-semibold text-2xl">{t("Access Restricted")}</h1>
+ <ShieldAlert className="text-muted-foreground h-12 w-12" />
+ <h1 className="text-2xl font-semibold">{t("Access Restricted")}</h1>
<p className="text-muted-foreground">
{t(
"This status page is only accessible from specific IPv4 networks. Reach out to your network administrator to get access.",
diff --git a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/badge/route.tsx b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/badge/route.tsx
index 78254e92c..463daa554 100644
--- a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/badge/route.tsx
+++ b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/badge/route.tsx
@@ -1,8 +1,7 @@
-import { ImageResponse } from "next/og";
-import type { NextRequest } from "next/server";
-
import type { Status } from "@openstatus/react";
import { getStatus } from "@openstatus/react";
+import { ImageResponse } from "next/og";
+import type { NextRequest } from "next/server";
// Keep the `label` size within a maximum of 'Operational' to stay within the `SIZE` restriction
const statusDictionary: Record<Status, { label: string; color: string }> = {
diff --git a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/badge/v2/route.ts b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/badge/v2/route.ts
index 7bd80e6ae..56f8919ce 100644
--- a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/badge/v2/route.ts
+++ b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/badge/v2/route.ts
@@ -1,7 +1,6 @@
-import type { NextRequest } from "next/server";
-
import type { Status } from "@openstatus/react";
import { getStatus } from "@openstatus/react";
+import type { NextRequest } from "next/server";
const statusDictionary: Record<Status, { label: string; hexColor: string }> = {
operational: {
diff --git a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/client.tsx b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/client.tsx
index 8a9075a40..0beafd632 100644
--- a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/client.tsx
+++ b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/client.tsx
@@ -1,31 +1,5 @@
"use client";
-import { Link } from "@/components/common/link";
-import { useStatusPage } from "@/components/status-page/floating-button";
-import {
- StatusBanner,
- StatusBannerContainer,
- StatusBannerContent,
- StatusBannerTabs,
- StatusBannerTabsContent,
- StatusBannerTabsList,
- StatusBannerTabsTrigger,
-} from "@/components/status-page/status-banner";
-import {
- StatusBar,
- StatusBarSkeleton,
-} from "@/components/status-page/status-bar";
-import { StatusComponentGroup } from "@/components/status-page/status-component-group";
-import {
- StatusEventAffected,
- StatusEventAffectedBadge,
- StatusEventTimelineMaintenance,
- StatusEventTimelineReportUpdate,
-} from "@/components/status-page/status-events";
-import { StatusFeed } from "@/components/status-page/status-feed";
-import { useEmbed } from "@/hooks/use-embed";
-import { usePathnamePrefix } from "@/hooks/use-pathname-prefix";
-import { useTRPC } from "@/lib/trpc/client";
import {
StatusComponent,
StatusComponentBody,
@@ -53,6 +27,33 @@ import { skipToken, useQuery } from "@tanstack/react-query";
import { notFound, useParams } from "next/navigation";
import { useMemo } from "react";
+import { Link } from "@/components/common/link";
+import { useStatusPage } from "@/components/status-page/floating-button";
+import {
+ StatusBanner,
+ StatusBannerContainer,
+ StatusBannerContent,
+ StatusBannerTabs,
+ StatusBannerTabsContent,
+ StatusBannerTabsList,
+ StatusBannerTabsTrigger,
+} from "@/components/status-page/status-banner";
+import {
+ StatusBar,
+ StatusBarSkeleton,
+} from "@/components/status-page/status-bar";
+import { StatusComponentGroup } from "@/components/status-page/status-component-group";
+import {
+ StatusEventAffected,
+ StatusEventAffectedBadge,
+ StatusEventTimelineMaintenance,
+ StatusEventTimelineReportUpdate,
+} from "@/components/status-page/status-events";
+import { StatusFeed } from "@/components/status-page/status-feed";
+import { useEmbed } from "@/hooks/use-embed";
+import { usePathnamePrefix } from "@/hooks/use-pathname-prefix";
+import { useTRPC } from "@/lib/trpc/client";
+
export function Client() {
const prefix = usePathnamePrefix();
const { domain } = useParams<{ domain: string }>();
diff --git a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/events/(list)/page.tsx b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/events/(list)/page.tsx
index e93273d37..eff50678e 100644
--- a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/events/(list)/page.tsx
+++ b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/events/(list)/page.tsx
@@ -1,5 +1,17 @@
"use client";
+import {
+ Tabs,
+ TabsContent,
+ TabsList,
+ TabsTrigger,
+} from "@openstatus/ui/components/ui/tabs";
+import { useQuery } from "@tanstack/react-query";
+import { useExtracted } from "next-intl";
+import Link from "next/link";
+import { useParams } from "next/navigation";
+import { useQueryStates } from "nuqs";
+
import { StatusBlankEvents } from "@/components/status-page/status-blank";
import {
StatusEvent,
@@ -15,17 +27,7 @@ import {
StatusEventTitleCheck,
} from "@/components/status-page/status-events";
import { useTRPC } from "@/lib/trpc/client";
-import {
- Tabs,
- TabsContent,
- TabsList,
- TabsTrigger,
-} from "@openstatus/ui/components/ui/tabs";
-import { useQuery } from "@tanstack/react-query";
-import { useExtracted } from "next-intl";
-import Link from "next/link";
-import { useParams } from "next/navigation";
-import { useQueryStates } from "nuqs";
+
import { searchParamsParsers } from "./search-params";
export default function Page() {
diff --git a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/events/(view)/maintenance/[id]/layout.tsx b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/events/(view)/maintenance/[id]/layout.tsx
index a5d972003..8ebac902a 100644
--- a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/events/(view)/maintenance/[id]/layout.tsx
+++ b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/events/(view)/maintenance/[id]/layout.tsx
@@ -1,6 +1,7 @@
-import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";
import { notFound } from "next/navigation";
+import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";
+
export default async function Layout({
children,
params,
diff --git a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/events/(view)/maintenance/[id]/page.tsx b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/events/(view)/maintenance/[id]/page.tsx
index 55dd272d9..a4eafcd52 100644
--- a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/events/(view)/maintenance/[id]/page.tsx
+++ b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/events/(view)/maintenance/[id]/page.tsx
@@ -1,7 +1,8 @@
"use client";
-import { useTRPC } from "@/lib/trpc/client";
import { useQuery } from "@tanstack/react-query";
+import { useExtracted } from "next-intl";
+import { useParams } from "next/navigation";
import { ButtonBack } from "@/components/button/button-back";
import { ButtonCopyLink } from "@/components/button/button-copy-link";
@@ -16,8 +17,7 @@ import {
StatusEventTimelineMaintenance,
StatusEventTitle,
} from "@/components/status-page/status-events";
-import { useExtracted } from "next-intl";
-import { useParams } from "next/navigation";
+import { useTRPC } from "@/lib/trpc/client";
export default function MaintenancePage() {
const t = useExtracted();
diff --git a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/events/(view)/report/[id]/layout.tsx b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/events/(view)/report/[id]/layout.tsx
index f8d85f206..5711e11c4 100644
--- a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/events/(view)/report/[id]/layout.tsx
+++ b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/events/(view)/report/[id]/layout.tsx
@@ -1,6 +1,7 @@
-import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";
import { notFound } from "next/navigation";
+import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";
+
export default async function Layout({
children,
params,
diff --git a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/events/(view)/report/[id]/page.tsx b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/events/(view)/report/[id]/page.tsx
index bd4ad029f..d5dd4b9b4 100644
--- a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/events/(view)/report/[id]/page.tsx
+++ b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/events/(view)/report/[id]/page.tsx
@@ -1,5 +1,9 @@
"use client";
+import { useQuery } from "@tanstack/react-query";
+import { useExtracted } from "next-intl";
+import { useParams } from "next/navigation";
+
import { ButtonBack } from "@/components/button/button-back";
import { ButtonCopyLink } from "@/components/button/button-copy-link";
import { StatusBlankEvents } from "@/components/status-page/status-blank";
@@ -15,9 +19,6 @@ import {
StatusEventTitleCheck,
} from "@/components/status-page/status-events";
import { useTRPC } from "@/lib/trpc/client";
-import { useQuery } from "@tanstack/react-query";
-import { useExtracted } from "next-intl";
-import { useParams } from "next/navigation";
export default function ReportPage() {
const t = useExtracted();
diff --git a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/events/layout.tsx b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/events/layout.tsx
index 052ad1715..faa8e4e07 100644
--- a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/events/layout.tsx
+++ b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/events/layout.tsx
@@ -1,6 +1,5 @@
"use client";
-import { useTRPC } from "@/lib/trpc/client";
import {
Status,
StatusContent,
@@ -11,6 +10,8 @@ import {
import { useQuery } from "@tanstack/react-query";
import { useParams } from "next/navigation";
+import { useTRPC } from "@/lib/trpc/client";
+
export default function EventLayout({
children,
}: {
diff --git a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/feed/[type]/route.ts b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/feed/[type]/route.ts
index c4731fd31..ad5ee407f 100644
--- a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/feed/[type]/route.ts
+++ b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/feed/[type]/route.ts
@@ -1,8 +1,9 @@
+import { Feed } from "feed";
+import { notFound, unauthorized } from "next/navigation";
+
import { auth } from "@/lib/auth";
import { getBaseUrl } from "@/lib/base-url";
import { getQueryClient, trpc } from "@/lib/trpc/server";
-import { Feed } from "feed";
-import { notFound, unauthorized } from "next/navigation";
const STATUS_LABELS = {
investigating: "Investigating",
diff --git a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/feed/json/route.ts b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/feed/json/route.ts
index b842bddf4..3c3a851b0 100644
--- a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/feed/json/route.ts
+++ b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/feed/json/route.ts
@@ -1,6 +1,7 @@
+import { notFound, unauthorized } from "next/navigation";
+
import { auth } from "@/lib/auth";
import { getQueryClient, trpc } from "@/lib/trpc/server";
-import { notFound, unauthorized } from "next/navigation";
export const revalidate = 60;
diff --git a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/layout.tsx b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/layout.tsx
index 5f48d770c..582ebac01 100644
--- a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/layout.tsx
+++ b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/layout.tsx
@@ -1,12 +1,13 @@
-import { EmbedShell } from "@/components/layout/embed-shell";
-import { Footer } from "@/components/nav/footer";
-import { Header } from "@/components/nav/header";
import {
StatusPageMain,
StatusPageShell,
} from "@openstatus/ui/components/blocks/status-page-shell";
import { Suspense } from "react";
+import { EmbedShell } from "@/components/layout/embed-shell";
+import { Footer } from "@/components/nav/footer";
+import { Header } from "@/components/nav/header";
+
export default function Layout({ children }: { children: React.ReactNode }) {
return (
<Suspense>
diff --git a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/manage/[token]/page.tsx b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/manage/[token]/page.tsx
index 13df201ae..9bc7aef7b 100644
--- a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/manage/[token]/page.tsx
+++ b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/manage/[token]/page.tsx
@@ -1,5 +1,23 @@
"use client";
+import {
+ AlertDialog,
+ AlertDialogAction,
+ AlertDialogCancel,
+ AlertDialogContent,
+ AlertDialogDescription,
+ AlertDialogFooter,
+ AlertDialogHeader,
+ AlertDialogTitle,
+ AlertDialogTrigger,
+} from "@openstatus/ui/components/ui/alert-dialog";
+import { Button } from "@openstatus/ui/components/ui/button";
+import { useMutation, useQuery } from "@tanstack/react-query";
+import { isTRPCClientError } from "@trpc/client";
+import { useExtracted, useLocale } from "next-intl";
+import { useParams } from "next/navigation";
+import { toast } from "sonner";
+
import { ButtonBack } from "@/components/button/button-back";
import {
FormCard,
@@ -19,23 +37,6 @@ import {
StatusBlankTitle,
} from "@/components/status-page/status-blank";
import { useTRPC } from "@/lib/trpc/client";
-import {
- AlertDialog,
- AlertDialogAction,
- AlertDialogCancel,
- AlertDialogContent,
- AlertDialogDescription,
- AlertDialogFooter,
- AlertDialogHeader,
- AlertDialogTitle,
- AlertDialogTrigger,
-} from "@openstatus/ui/components/ui/alert-dialog";
-import { Button } from "@openstatus/ui/components/ui/button";
-import { useMutation, useQuery } from "@tanstack/react-query";
-import { isTRPCClientError } from "@trpc/client";
-import { useExtracted, useLocale } from "next-intl";
-import { useParams } from "next/navigation";
-import { toast } from "sonner";
export default function VerifyPage() {
const t = useExtracted();
diff --git a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/manage/layout.tsx b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/manage/layout.tsx
index 052ad1715..faa8e4e07 100644
--- a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/manage/layout.tsx
+++ b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/manage/layout.tsx
@@ -1,6 +1,5 @@
"use client";
-import { useTRPC } from "@/lib/trpc/client";
import {
Status,
StatusContent,
@@ -11,6 +10,8 @@ import {
import { useQuery } from "@tanstack/react-query";
import { useParams } from "next/navigation";
+import { useTRPC } from "@/lib/trpc/client";
+
export default function EventLayout({
children,
}: {
diff --git a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/monitors/[id]/page.tsx b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/monitors/[id]/page.tsx
index a8cbf08c5..5efcc37e6 100644
--- a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/monitors/[id]/page.tsx
+++ b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/monitors/[id]/page.tsx
@@ -1,5 +1,20 @@
"use client";
+import {
+ Status,
+ StatusContent,
+ StatusDescription,
+ StatusHeader,
+ StatusTitle,
+} from "@openstatus/ui/components/blocks/status-layout";
+import { Badge } from "@openstatus/ui/components/ui/badge";
+import { useQuery } from "@tanstack/react-query";
+import { TrendingUp } from "lucide-react";
+import { useExtracted } from "next-intl";
+import { useParams } from "next/navigation";
+import { useQueryStates } from "nuqs";
+import { useMemo } from "react";
+
import { ButtonBack } from "@/components/button/button-back";
import { ButtonCopyLink } from "@/components/button/button-copy-link";
import {
@@ -36,20 +51,7 @@ import {
formatPercentage,
} from "@/lib/formatter";
import { useTRPC } from "@/lib/trpc/client";
-import {
- Status,
- StatusContent,
- StatusDescription,
- StatusHeader,
- StatusTitle,
-} from "@openstatus/ui/components/blocks/status-layout";
-import { Badge } from "@openstatus/ui/components/ui/badge";
-import { useQuery } from "@tanstack/react-query";
-import { TrendingUp } from "lucide-react";
-import { useExtracted } from "next-intl";
-import { useParams } from "next/navigation";
-import { useQueryStates } from "nuqs";
-import { useMemo } from "react";
+
import { searchParamsParsers } from "./search-params";
export default function Page() {
diff --git a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/monitors/page.tsx b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/monitors/page.tsx
index c9797fece..48aef75d6 100644
--- a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/monitors/page.tsx
+++ b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/monitors/page.tsx
@@ -1,11 +1,5 @@
"use client";
-import {
- ChartAreaPercentiles,
- ChartAreaPercentilesSkeleton,
-} from "@/components/chart/chart-area-percentiles";
-import { StatusBlankMonitors } from "@/components/status-page/status-blank";
-import { useTRPC } from "@/lib/trpc/client";
import {
StatusComponentDescription,
StatusComponentTitle,
@@ -21,6 +15,13 @@ import { useQuery } from "@tanstack/react-query";
import Link from "next/link";
import { useParams } from "next/navigation";
+import {
+ ChartAreaPercentiles,
+ ChartAreaPercentilesSkeleton,
+} from "@/components/chart/chart-area-percentiles";
+import { StatusBlankMonitors } from "@/components/status-page/status-blank";
+import { useTRPC } from "@/lib/trpc/client";
+
export default function Page() {
const { domain } = useParams<{ domain: string }>();
const trpc = useTRPC();
@@ -68,7 +69,7 @@ export default function Page() {
href={`./monitors/${monitor.id}`}
className="rounded-lg"
>
- <div className="group -mx-3 -my-2 flex flex-col gap-2 rounded-lg border border-transparent px-3 py-2 hover:border-border/50 hover:bg-muted/50">
+ <div className="group hover:border-border/50 hover:bg-muted/50 -mx-3 -my-2 flex flex-col gap-2 rounded-lg border border-transparent px-3 py-2">
<div className="flex flex-row items-center justify-start gap-2">
<StatusComponentTitle>{monitor.name}</StatusComponentTitle>
<StatusComponentDescription>
diff --git a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/page.tsx b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/page.tsx
index a66ffd221..412d8594f 100644
--- a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/page.tsx
+++ b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/page.tsx
@@ -1,5 +1,6 @@
import type { Metadata } from "next";
import type { SearchParams } from "nuqs/server";
+
import { Client } from "./client";
import { embedSearchParamsCache } from "./search-params";
diff --git a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/search-params.ts b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/search-params.ts
index 6a2ca8ab4..2edef64c1 100644
--- a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/search-params.ts
+++ b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/search-params.ts
@@ -1,6 +1,7 @@
-import { embedParser } from "@/lib/embed-params";
import { createSearchParamsCache } from "nuqs/server";
+import { embedParser } from "@/lib/embed-params";
+
export const embedSearchParamsCache = createSearchParamsCache({
embed: embedParser,
});
diff --git a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/unsubscribe/[token]/layout.tsx b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/unsubscribe/[token]/layout.tsx
index eb69ec81b..c77dbc686 100644
--- a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/unsubscribe/[token]/layout.tsx
+++ b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/unsubscribe/[token]/layout.tsx
@@ -1,6 +1,5 @@
"use client";
-import { useTRPC } from "@/lib/trpc/client";
import {
Status,
StatusContent,
@@ -11,6 +10,8 @@ import {
import { useQuery } from "@tanstack/react-query";
import { useParams } from "next/navigation";
+import { useTRPC } from "@/lib/trpc/client";
+
export default function UnsubscribeLayout({
children,
}: {
diff --git a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/unsubscribe/[token]/page.tsx b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/unsubscribe/[token]/page.tsx
index 3a2fe2aa6..53bea9545 100644
--- a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/unsubscribe/[token]/page.tsx
+++ b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/unsubscribe/[token]/page.tsx
@@ -1,5 +1,10 @@
"use client";
+import { Button } from "@openstatus/ui/components/ui/button";
+import { useMutation, useQuery } from "@tanstack/react-query";
+import { useExtracted } from "next-intl";
+import { useParams } from "next/navigation";
+
import {
StatusBlankContainer,
StatusBlankContent,
@@ -8,10 +13,6 @@ import {
StatusBlankTitle,
} from "@/components/status-page/status-blank";
import { useTRPC } from "@/lib/trpc/client";
-import { Button } from "@openstatus/ui/components/ui/button";
-import { useMutation, useQuery } from "@tanstack/react-query";
-import { useExtracted } from "next-intl";
-import { useParams } from "next/navigation";
export default function UnsubscribePage() {
const t = useExtracted();
diff --git a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/verify/[token]/layout.tsx b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/verify/[token]/layout.tsx
index 052ad1715..faa8e4e07 100644
--- a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/verify/[token]/layout.tsx
+++ b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/verify/[token]/layout.tsx
@@ -1,6 +1,5 @@
"use client";
-import { useTRPC } from "@/lib/trpc/client";
import {
Status,
StatusContent,
@@ -11,6 +10,8 @@ import {
import { useQuery } from "@tanstack/react-query";
import { useParams } from "next/navigation";
+import { useTRPC } from "@/lib/trpc/client";
+
export default function EventLayout({
children,
}: {
diff --git a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/verify/[token]/page.tsx b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/verify/[token]/page.tsx
index 3df8f036d..c27dd0978 100644
--- a/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/verify/[token]/page.tsx
+++ b/apps/status-page/src/app/(status-page)/[domain]/[locale]/(public)/verify/[token]/page.tsx
@@ -1,5 +1,11 @@
"use client";
+import { cn } from "@openstatus/ui/lib/utils";
+import { useMutation } from "@tanstack/react-query";
+import { useExtracted } from "next-intl";
+import { useParams } from "next/navigation";
+import { useEffect } from "react";
+
import {
StatusBlankContainer,
StatusBlankContent,
@@ -7,11 +13,6 @@ import {
StatusBlankTitle,
} from "@/components/status-page/status-blank";
import { useTRPC } from "@/lib/trpc/client";
-import { cn } from "@openstatus/ui/lib/utils";
-import { useMutation } from "@tanstack/react-query";
-import { useExtracted } from "next-intl";
-import { useParams } from "next/navigation";
-import { useEffect } from "react";
export default function VerifyPage() {
const t = useExtracted();
@@ -21,7 +22,6 @@ export default function VerifyPage() {
trpc.statusPage.verifyEmail.mutationOptions({}),
);
- // biome-ignore lint/correctness/useExhaustiveDependencies: <explanation>
useEffect(() => {
verifyEmailMutation.mutate({ slug: domain, token });
}, [domain, token]);
diff --git a/apps/status-page/src/app/(status-page)/[domain]/[locale]/layout.tsx b/apps/status-page/src/app/(status-page)/[domain]/[locale]/layout.tsx
index 59f536abd..79d21b240 100644
--- a/apps/status-page/src/app/(status-page)/[domain]/[locale]/layout.tsx
+++ b/apps/status-page/src/app/(status-page)/[domain]/[locale]/layout.tsx
@@ -1,10 +1,11 @@
-import { DateFnsProvider } from "@/components/date-fns-provider";
-import { StatusBlocksProvider } from "@/components/i18n/status-blocks-provider";
-import { routing } from "@/i18n/routing";
import { NextIntlClientProvider, hasLocale } from "next-intl";
import { setRequestLocale } from "next-intl/server";
import { notFound } from "next/navigation";
+import { DateFnsProvider } from "@/components/date-fns-provider";
+import { StatusBlocksProvider } from "@/components/i18n/status-blocks-provider";
+import { routing } from "@/i18n/routing";
+
export default async function LocaleLayout({
children,
params,
diff --git a/apps/status-page/src/app/(status-page)/[domain]/layout.tsx b/apps/status-page/src/app/(status-page)/[domain]/layout.tsx
index 5d04c18e8..dc3edf0d9 100644
--- a/apps/status-page/src/app/(status-page)/[domain]/layout.tsx
+++ b/apps/status-page/src/app/(status-page)/[domain]/layout.tsx
@@ -1,3 +1,9 @@
+import { pageConfigurationSchema } from "@openstatus/db/src/schema";
+import { generateThemeStyles } from "@openstatus/theme-store";
+import { Toaster } from "@openstatus/ui/components/ui/sonner";
+import type { Metadata } from "next";
+import { notFound } from "next/navigation";
+
import { defaultMetadata, ogMetadata, twitterMetadata } from "@/app/metadata";
import { PasswordWrapper } from "@/components/password-wrapper";
import {
@@ -7,11 +13,6 @@ import {
import { FloatingTheme } from "@/components/status-page/floating-theme";
import { ThemeProvider } from "@/components/themes/theme-provider";
import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";
-import { pageConfigurationSchema } from "@openstatus/db/src/schema";
-import { generateThemeStyles } from "@openstatus/theme-store";
-import { Toaster } from "@openstatus/ui/components/ui/sonner";
-import type { Metadata } from "next";
-import { notFound } from "next/navigation";
// Canonical schema — guarantees concrete enum output (never null/undefined).
@@ -43,7 +44,7 @@ export default async function Layout({
<HydrateClient>
<style
id="theme-styles"
- // biome-ignore lint/security/noDangerouslySetInnerHtml: <explanation>
+ // oxlint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{
__html: generateThemeStyles(cfg.theme),
}}
diff --git a/apps/status-page/src/app/api/trpc/edge/[trpc]/route.ts b/apps/status-page/src/app/api/trpc/edge/[trpc]/route.ts
index 215b24ce3..9dd8225ba 100644
--- a/apps/status-page/src/app/api/trpc/edge/[trpc]/route.ts
+++ b/apps/status-page/src/app/api/trpc/edge/[trpc]/route.ts
@@ -1,10 +1,10 @@
+import { createTRPCContext } from "@openstatus/api";
+import { edgeRouter } from "@openstatus/api/src/edge";
import { fetchRequestHandler } from "@trpc/server/adapters/fetch";
import type { NextRequest } from "next/server";
import { auth } from "@/lib/auth";
import { createOnError, guardTRPCSource } from "@/lib/trpc/shared";
-import { createTRPCContext } from "@openstatus/api";
-import { edgeRouter } from "@openstatus/api/src/edge";
export const runtime = "edge";
diff --git a/apps/status-page/src/app/api/trpc/lambda/[trpc]/route.ts b/apps/status-page/src/app/api/trpc/lambda/[trpc]/route.ts
index de648a3b4..944ea4af4 100644
--- a/apps/status-page/src/app/api/trpc/lambda/[trpc]/route.ts
+++ b/apps/status-page/src/app/api/trpc/lambda/[trpc]/route.ts
@@ -1,10 +1,10 @@
+import { createTRPCContext } from "@openstatus/api";
+import { lambdaRouter } from "@openstatus/api/src/lambda";
import { fetchRequestHandler } from "@trpc/server/adapters/fetch";
import type { NextRequest } from "next/server";
import { auth } from "@/lib/auth";
import { createOnError, guardTRPCSource } from "@/lib/trpc/shared";
-import { createTRPCContext } from "@openstatus/api";
-import { lambdaRouter } from "@openstatus/api/src/lambda";
// Stripe is incompatible with Edge runtimes due to using Node.js events
// export const runtime = "edge";
diff --git a/apps/status-page/src/app/global-error.tsx b/apps/status-page/src/app/global-error.tsx
index f43b4da6c..6d4ad424f 100644
--- a/apps/status-page/src/app/global-error.tsx
+++ b/apps/status-page/src/app/global-error.tsx
@@ -1,10 +1,11 @@
"use client";
-import { Link } from "@/components/common/link";
import { Button } from "@openstatus/ui/components/ui/button";
import * as Sentry from "@sentry/nextjs";
import { useEffect } from "react";
+import { Link } from "@/components/common/link";
+
export default function GlobalError({
error,
reset,
@@ -19,12 +20,12 @@ export default function GlobalError({
return (
<html lang="en">
<body>
- <main className="flex min-h-screen w-full flex-col space-y-6 bg-background p-4 md:p-8">
+ <main className="bg-background 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 border bg-card text-center">
+ <div className="bg-card mx-auto max-w-xl border text-center">
<div className="flex flex-col gap-4 p-6 sm:p-12">
<div className="flex flex-col gap-1">
- <h2 className="font-cal text-2xl text-foreground">
+ <h2 className="font-cal text-foreground text-2xl">
Application Error
</h2>
<p className="text-muted-foreground text-sm sm:text-base">
diff --git a/apps/status-page/src/app/layout.tsx b/apps/status-page/src/app/layout.tsx
index b30e78d0b..600b276d0 100644
--- a/apps/status-page/src/app/layout.tsx
+++ b/apps/status-page/src/app/layout.tsx
@@ -1,11 +1,14 @@
+import { cn } from "@openstatus/ui/lib/utils";
import type { Metadata } from "next";
-import { Geist, Geist_Mono } from "next/font/google";
+
import "./globals.css";
-import { TailwindIndicator } from "@/components/tailwind-indicator";
-import { TRPCReactProvider } from "@/lib/trpc/client";
-import { cn } from "@openstatus/ui/lib/utils";
+import { Geist, Geist_Mono } from "next/font/google";
import LocalFont from "next/font/local";
import { NuqsAdapter } from "nuqs/adapters/next/app";
+
+import { TailwindIndicator } from "@/components/tailwind-indicator";
+import { TRPCReactProvider } from "@/lib/trpc/client";
+
import { ogMetadata, twitterMetadata } from "./metadata";
import { defaultMetadata } from "./metadata";
diff --git a/apps/status-page/src/app/not-found.tsx b/apps/status-page/src/app/not-found.tsx
index 9e1feb329..47cd00e22 100644
--- a/apps/status-page/src/app/not-found.tsx
+++ b/apps/status-page/src/app/not-found.tsx
@@ -1,12 +1,12 @@
"use client";
+import { Button } from "@openstatus/ui/components/ui/button";
import { useRouter } from "next/navigation";
import { NuqsAdapter } from "nuqs/adapters/next/app";
import { Suspense } from "react";
import { Link } from "@/components/common/link";
import { ThemeProvider } from "@/components/themes/theme-provider";
-import { Button } from "@openstatus/ui/components/ui/button";
export default function NotFound() {
return (
@@ -23,13 +23,13 @@ function NotFoundContent() {
return (
<ThemeProvider attribute="class" enableSystem disableTransitionOnChange>
- <main className="flex min-h-screen w-full flex-col space-y-6 bg-background p-4 md:p-8">
+ <main className="bg-background 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 border bg-card text-center">
+ <div className="bg-card mx-auto max-w-xl border text-center">
<div className="flex flex-col gap-4 p-6 sm:p-12">
<div className="flex flex-col gap-1">
- <p className="font-mono text-foreground">404 Page not found</p>
- <h2 className="font-cal text-2xl text-foreground">
+ <p className="text-foreground font-mono">404 Page not found</p>
+ <h2 className="font-cal text-foreground text-2xl">
Oops, something went wrong.
</h2>
<p className="text-muted-foreground text-sm sm:text-base">
diff --git a/apps/status-page/src/components/chart/chart-area-percentiles.tsx b/apps/status-page/src/components/chart/chart-area-percentiles.tsx
index 108b87b3f..78f62b7c5 100644
--- a/apps/status-page/src/components/chart/chart-area-percentiles.tsx
+++ b/apps/status-page/src/components/chart/chart-area-percentiles.tsx
@@ -1,6 +1,5 @@
"use client";
-import { formatMilliseconds } from "@/lib/formatter";
import {
type ChartConfig,
ChartContainer,
@@ -13,6 +12,9 @@ import { cn } from "@openstatus/ui/lib/utils";
import { useState } from "react";
import { Area, AreaChart, CartesianGrid, XAxis, YAxis } from "recharts";
import type { AxisDomain } from "recharts/types/util/types";
+
+import { formatMilliseconds } from "@/lib/formatter";
+
import { ChartLegendBadge } from "./chart-legend-badge";
import { ChartTooltipNumber } from "./chart-tooltip-number";
diff --git a/apps/status-page/src/components/chart/chart-bar-uptime.tsx b/apps/status-page/src/components/chart/chart-bar-uptime.tsx
index 88c9831a9..81df7d41a 100644
--- a/apps/status-page/src/components/chart/chart-bar-uptime.tsx
+++ b/apps/status-page/src/components/chart/chart-bar-uptime.tsx
@@ -1,8 +1,5 @@
"use client";
-import { Bar, BarChart, CartesianGrid, XAxis, YAxis } from "recharts";
-
-import { formatNumber } from "@/lib/formatter";
import {
type ChartConfig,
ChartContainer,
@@ -13,6 +10,10 @@ import {
import { Skeleton } from "@openstatus/ui/components/ui/skeleton";
import { cn } from "@openstatus/ui/lib/utils";
import { useState } from "react";
+import { Bar, BarChart, CartesianGrid, XAxis, YAxis } from "recharts";
+
+import { formatNumber } from "@/lib/formatter";
+
import { ChartLegendBadge } from "./chart-legend-badge";
const chartConfig = {
diff --git a/apps/status-page/src/components/chart/chart-legend-badge.tsx b/apps/status-page/src/components/chart/chart-legend-badge.tsx
index 0907f4ba3..6d6d84c84 100644
--- a/apps/status-page/src/components/chart/chart-legend-badge.tsx
+++ b/apps/status-page/src/components/chart/chart-legend-badge.tsx
@@ -1,4 +1,3 @@
-import { getPayloadConfigFromPayload } from "@/lib/chart";
import { badgeVariants } from "@openstatus/ui/components/ui/badge";
import { useChart } from "@openstatus/ui/components/ui/chart";
import {
@@ -13,6 +12,8 @@ import * as React from "react";
import type * as RechartsPrimitive from "recharts";
import type { Payload } from "recharts/types/component/DefaultLegendContent";
+import { getPayloadConfigFromPayload } from "@/lib/chart";
+
export function ChartLegendBadge({
className,
hideIcon = false,
@@ -94,7 +95,7 @@ export function ChartLegendBadge({
className={cn(
badgeVariants({ variant: "outline" }),
"outline-none",
- "flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground",
+ "[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3",
!isActive && "opacity-60",
!isActive && hasMaxActive && "cursor-not-allowed opacity-40",
)}
@@ -120,7 +121,7 @@ export function ChartLegendBadge({
)}
{itemConfig?.label}
{suffix !== undefined ? (
- <span className="font-mono text-[10px] text-muted-foreground">
+ <span className="text-muted-foreground font-mono text-[10px]">
{suffix}
</span>
) : null}
diff --git a/apps/status-page/src/components/chart/chart-line-region.tsx b/apps/status-page/src/components/chart/chart-line-region.tsx
index fd52ced86..f8ab945db 100644
--- a/apps/status-page/src/components/chart/chart-line-region.tsx
+++ b/apps/status-page/src/components/chart/chart-line-region.tsx
@@ -1,7 +1,5 @@
"use client";
-import { CartesianGrid, Line, LineChart, XAxis, YAxis } from "recharts";
-
import {
type ChartConfig,
ChartContainer,
@@ -9,6 +7,8 @@ import {
ChartTooltipContent,
} from "@openstatus/ui/components/ui/chart";
import { cn } from "@openstatus/ui/lib/utils";
+import { CartesianGrid, Line, LineChart, XAxis, YAxis } from "recharts";
+
import { ChartTooltipNumber } from "./chart-tooltip-number";
const chartConfig = {
diff --git a/apps/status-page/src/components/chart/chart-line-regions.tsx b/apps/status-page/src/components/chart/chart-line-regions.tsx
index 0f877eb38..71c9de48f 100644
--- a/apps/status-page/src/components/chart/chart-line-regions.tsx
+++ b/apps/status-page/src/components/chart/chart-line-regions.tsx
@@ -1,16 +1,5 @@
"use client";
-import {
- CartesianGrid,
- Line,
- LineChart,
- XAxis,
- // XAxis,
- YAxis,
-} from "recharts";
-
-import { regions } from "@/data/regions";
-import { formatMilliseconds } from "@/lib/formatter";
import type { MonitorRegion } from "@openstatus/db/src/schema";
import {
type ChartConfig,
@@ -22,6 +11,18 @@ import {
import { Skeleton } from "@openstatus/ui/components/ui/skeleton";
import { cn } from "@openstatus/ui/lib/utils";
import { useState } from "react";
+import {
+ CartesianGrid,
+ Line,
+ LineChart,
+ XAxis,
+ // XAxis,
+ YAxis,
+} from "recharts";
+
+import { regions } from "@/data/regions";
+import { formatMilliseconds } from "@/lib/formatter";
+
import { ChartLegendBadge } from "./chart-legend-badge";
import { ChartTooltipNumber } from "./chart-tooltip-number";
diff --git a/apps/status-page/src/components/chart/chart-tooltip-number.tsx b/apps/status-page/src/components/chart/chart-tooltip-number.tsx
index 1889d9351..4c2f46d8f 100644
--- a/apps/status-page/src/components/chart/chart-tooltip-number.tsx
+++ b/apps/status-page/src/components/chart/chart-tooltip-number.tsx
@@ -32,9 +32,9 @@ export function ChartTooltipNumber({
}
/>
<span>{label}</span>
- <div className="ml-auto flex items-baseline gap-0.5 font-medium font-mono text-foreground tabular-nums">
+ <div className="text-foreground ml-auto flex items-baseline gap-0.5 font-mono font-medium tabular-nums">
{value}
- <span className="font-normal text-muted-foreground">ms</span>
+ <span className="text-muted-foreground font-normal">ms</span>
</div>
</>
);
diff --git a/apps/status-page/src/components/common/kbd.tsx b/apps/status-page/src/components/common/kbd.tsx
index 9a6010ca7..0562d076a 100644
--- a/apps/status-page/src/components/common/kbd.tsx
+++ b/apps/status-page/src/components/common/kbd.tsx
@@ -8,7 +8,7 @@ export function Kbd({
return (
<kbd
className={cn(
- "-me-1 ms-2 inline-flex h-5 max-h-full items-center rounded border bg-background px-1 font-[inherit] font-medium text-[0.625rem] text-muted-foreground/70",
+ "bg-background text-muted-foreground/70 ms-2 -me-1 inline-flex h-5 max-h-full items-center rounded border px-1 font-[inherit] text-[0.625rem] font-medium",
className,
)}
{...props}
diff --git a/apps/status-page/src/components/common/link.tsx b/apps/status-page/src/components/common/link.tsx
index f7ca6ca62..0d2c16cc5 100644
--- a/apps/status-page/src/components/common/link.tsx
+++ b/apps/status-page/src/components/common/link.tsx
@@ -1,12 +1,13 @@
"use client";
-import { useEmbed } from "@/hooks/use-embed";
import { cn } from "@openstatus/ui/lib/utils";
import { type VariantProps, cva } from "class-variance-authority";
import NextLink from "next/link";
+import { useEmbed } from "@/hooks/use-embed";
+
export const linkVariants = cva(
- "outline-none focus-visible:ring-ring/50 focus-visible:ring-[3px] rounded-sm",
+ "focus-visible:ring-ring/50 rounded-sm outline-none focus-visible:ring-[3px]",
{
variants: {
variant: {
@@ -40,7 +41,7 @@ export function Link({
const isAnchor = href?.startsWith("#");
const shouldOpenNewTab = mode && !isExternal && !isAnchor;
const embedTarget = shouldOpenNewTab ? "_blank" : target;
- const embedRel = shouldOpenNewTab ? rel ?? "noopener noreferrer" : rel;
+ const embedRel = shouldOpenNewTab ? (rel ?? "noopener noreferrer") : rel;
return (
<NextLink
diff --git a/apps/status-page/src/components/content/empty-state.tsx b/apps/status-page/src/components/content/empty-state.tsx
index 2a4dc515b..5c1dbb61e 100644
--- a/apps/status-page/src/components/content/empty-state.tsx
+++ b/apps/status-page/src/components/content/empty-state.tsx
@@ -8,7 +8,7 @@ export function EmptyStateContainer({
return (
<div
className={cn(
- "flex h-full flex-col items-center justify-center gap-2 rounded-lg border border-border border-dashed p-4",
+ "border-border flex h-full flex-col items-center justify-center gap-2 rounded-lg border border-dashed p-4",
className,
)}
{...props}
@@ -37,7 +37,7 @@ export function EmptyStateDescription({
}: React.ComponentProps<"p">) {
return (
<p
- className={cn("text-center text-muted-foreground text-sm", className)}
+ className={cn("text-muted-foreground text-center text-sm", className)}
{...props}
>
{children}
diff --git a/apps/status-page/src/components/content/metric-card.tsx b/apps/status-page/src/components/content/metric-card.tsx
index 4156c2f79..266b40f7b 100644
--- a/apps/status-page/src/components/content/metric-card.tsx
+++ b/apps/status-page/src/components/content/metric-card.tsx
@@ -1,13 +1,11 @@
+import { Badge } from "@openstatus/ui/components/ui/badge";
+import { cn } from "@openstatus/ui/lib/utils";
import type { VariantProps } from "class-variance-authority";
import { cva } from "class-variance-authority";
import { ChevronDown, ChevronUp } from "lucide-react";
-import { Badge } from "@openstatus/ui/components/ui/badge";
-
-import { cn } from "@openstatus/ui/lib/utils";
-
const metricCardVariants = cva(
- "flex flex-col gap-1 border rounded-lg px-3 py-2 text-card-foreground",
+ "text-card-foreground flex flex-col gap-1 rounded-lg border px-3 py-2",
{
variants: {
variant: {
@@ -47,7 +45,7 @@ export function MetricCardTitle({
...props
}: React.ComponentProps<"p">) {
return (
- <p className={cn("font-medium text-sm", className)} {...props}>
+ <p className={cn("text-sm font-medium", className)} {...props}>
{children}
</p>
);
@@ -80,7 +78,7 @@ export function MetricCardValue({
...props
}: React.ComponentProps<"p">) {
return (
- <p className={cn("font-semibold text-foreground", className)} {...props}>
+ <p className={cn("text-foreground font-semibold", className)} {...props}>
{children}
</p>
);
@@ -152,7 +150,7 @@ export function MetricCardBadge({
}
const metricCardButtonVariants = cva(
- "group w-full text-left transition-all rounded-md outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 cursor-pointer",
+ "group focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 w-full cursor-pointer rounded-md text-left transition-all outline-none focus-visible:ring-[3px]",
// TODO: discuss if we want rings
);
diff --git a/apps/status-page/src/components/content/process-message.tsx b/apps/status-page/src/components/content/process-message.tsx
index 951cdc468..5e85d3fae 100644
--- a/apps/status-page/src/components/content/process-message.tsx
+++ b/apps/status-page/src/components/content/process-message.tsx
@@ -19,14 +19,14 @@ export function ProcessMessage({ value }: { value: string }) {
ul: (props: HTMLAttributes<HTMLUListElement>) => {
return (
<ul
- className="list-inside list-disc marker:text-muted-foreground/50"
+ className="marker:text-muted-foreground/50 list-inside list-disc"
{...props}
/>
);
},
ol: (_props: HTMLAttributes<HTMLOListElement>) => {
return (
- <ol className="list-inside list-decimal marker:text-muted-foreground/50" />
+ <ol className="marker:text-muted-foreground/50 list-inside list-decimal" />
);
},
a: (props: AnchorHTMLAttributes<HTMLAnchorElement>) => {
@@ -34,7 +34,7 @@ export function ProcessMessage({ value }: { value: string }) {
<a
target="_blank"
rel="noreferrer"
- className="rounded-sm underline outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50"
+ className="focus-visible:ring-ring/50 rounded-sm underline outline-none focus-visible:ring-[3px]"
{...props}
/>
);
diff --git a/apps/status-page/src/components/content/section.tsx b/apps/status-page/src/components/content/section.tsx
index 4d5f4ced9..cb9875bbe 100644
--- a/apps/status-page/src/components/content/section.tsx
+++ b/apps/status-page/src/components/content/section.tsx
@@ -60,7 +60,7 @@ export function SectionTitle({
...props
}: React.ComponentProps<"p">) {
return (
- <p className={cn("font-medium text-lg", className)} {...props}>
+ <p className={cn("text-lg font-medium", className)} {...props}>
{children}
</p>
);
@@ -99,7 +99,7 @@ export function SectionGroupTitle({
...props
}: React.ComponentProps<"p">) {
return (
- <p className={cn("font-bold text-4xl", className)} {...props}>
+ <p className={cn("text-4xl font-bold", className)} {...props}>
{children}
</p>
);
diff --git a/apps/status-page/src/components/date-fns-provider.tsx b/apps/status-page/src/components/date-fns-provider.tsx
index fa2dfd574..046a51477 100644
--- a/apps/status-page/src/components/date-fns-provider.tsx
+++ b/apps/status-page/src/components/date-fns-provider.tsx
@@ -1,9 +1,10 @@
"use client";
-import type { Locale } from "@/i18n/config";
import { dateFnsLocales } from "@openstatus/locales";
import { setDefaultOptions } from "date-fns";
+import type { Locale } from "@/i18n/config";
+
export function DateFnsProvider({
locale,
children,
diff --git a/apps/status-page/src/components/date-picker.tsx b/apps/status-page/src/components/date-picker.tsx
index 07e5c53b3..751cc1632 100644
--- a/apps/status-page/src/components/date-picker.tsx
+++ b/apps/status-page/src/components/date-picker.tsx
@@ -1,10 +1,5 @@
"use client";
-import { useState } from "react";
-import type { DateRange } from "react-day-picker";
-
-import { Kbd } from "@/components/common/kbd";
-import { formatDateForInput } from "@/lib/formatter";
import { Button } from "@openstatus/ui/components/ui/button";
import { Calendar } from "@openstatus/ui/components/ui/calendar";
import { Input } from "@openstatus/ui/components/ui/input";
@@ -12,6 +7,11 @@ import { Label } from "@openstatus/ui/components/ui/label";
import { Separator } from "@openstatus/ui/components/ui/separator";
import { endOfDay } from "date-fns";
import { useExtracted } from "next-intl";
+import { useState } from "react";
+import type { DateRange } from "react-day-picker";
+
+import { Kbd } from "@/components/common/kbd";
+import { formatDateForInput } from "@/lib/formatter";
type DatePickerProps = {
range: DateRange;
@@ -30,7 +30,7 @@ export function DatePicker({ range, onSelect, presets }: DatePickerProps) {
<div className="relative py-4">
<div className="h-full">
<div className="flex flex-col px-1">
- <div className="px-3 py-1 font-medium text-muted-foreground text-xs">
+ <div className="text-muted-foreground px-3 py-1 text-xs font-medium">
{t("Presets")}
</div>
{presets.map((preset) => {
@@ -79,7 +79,7 @@ export function DatePicker({ range, onSelect, presets }: DatePickerProps) {
</div>
<Separator />
<div className="flex flex-col gap-2 px-3 py-4">
- <p className="px-1 font-medium text-muted-foreground text-xs">
+ <p className="text-muted-foreground px-1 text-xs font-medium">
{t("Custom Range")}
</p>
<div className="grid gap-2 sm:grid-cols-2">
diff --git a/apps/status-page/src/components/forms/form-card.tsx b/apps/status-page/src/components/forms/form-card.tsx
index 65ed888ca..25ad11dd4 100644
--- a/apps/status-page/src/components/forms/form-card.tsx
+++ b/apps/status-page/src/components/forms/form-card.tsx
@@ -8,11 +8,10 @@ import {
} from "@openstatus/ui/components/ui/card";
import { Separator } from "@openstatus/ui/components/ui/separator";
import { cn } from "@openstatus/ui/lib/utils";
-
import { type VariantProps, cva } from "class-variance-authority";
const formCardVariants = cva(
- "group relative w-full overflow-hidden py-0 shadow-none gap-4 rounded-lg",
+ "group relative w-full gap-4 overflow-hidden rounded-lg py-0 shadow-none",
{
variants: {
variant: {
@@ -98,7 +97,7 @@ export function FormCardSeparator({
}
const formCardFooterVariants = cva(
- "border-t flex items-center gap-2 pb-4 px-4 [&>:last-child]:ml-auto [.border-t]:pt-4",
+ "flex items-center gap-2 border-t px-4 pb-4 [.border-t]:pt-4 [&>:last-child]:ml-auto",
{
variants: {
variant: {
@@ -204,7 +203,7 @@ export function FormCardEmpty({
<div
data-slot="card-empty"
className={cn(
- "pointer-events-none absolute inset-0 z-10 bg-background opacity-70 blur",
+ "bg-background pointer-events-none absolute inset-0 z-10 opacity-70 blur",
className,
)}
{...props}
diff --git a/apps/status-page/src/components/forms/form-manage-subscription.tsx b/apps/status-page/src/components/forms/form-manage-subscription.tsx
index 185254539..039398d51 100644
--- a/apps/status-page/src/components/forms/form-manage-subscription.tsx
+++ b/apps/status-page/src/components/forms/form-manage-subscription.tsx
@@ -1,10 +1,5 @@
"use client";
-import {
- StatusBlankContainer,
- StatusBlankDescription,
- StatusBlankTitle,
-} from "@/components/status-page/status-blank";
import { zodResolver } from "@hookform/resolvers/zod";
import type { RouterOutputs } from "@openstatus/api";
import { Checkbox } from "@openstatus/ui/components/ui/checkbox";
@@ -24,6 +19,12 @@ import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+import {
+ StatusBlankContainer,
+ StatusBlankDescription,
+ StatusBlankTitle,
+} from "@/components/status-page/status-blank";
+
type Page = NonNullable<RouterOutputs["statusPage"]["get"]>;
const schema = z.object({
diff --git a/apps/status-page/src/components/forms/form-subscribe-email.tsx b/apps/status-page/src/components/forms/form-subscribe-email.tsx
index 92d73433b..5bc5549ee 100644
--- a/apps/status-page/src/components/forms/form-subscribe-email.tsx
+++ b/apps/status-page/src/components/forms/form-subscribe-email.tsx
@@ -1,10 +1,5 @@
"use client";
-import {
- StatusBlankContainer,
- StatusBlankDescription,
- StatusBlankTitle,
-} from "@/components/status-page/status-blank";
import { zodResolver } from "@hookform/resolvers/zod";
import type { RouterOutputs } from "@openstatus/api";
import { Checkbox } from "@openstatus/ui/components/ui/checkbox";
@@ -24,6 +19,12 @@ import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
+import {
+ StatusBlankContainer,
+ StatusBlankDescription,
+ StatusBlankTitle,
+} from "@/components/status-page/status-blank";
+
type Page = NonNullable<RouterOutputs["statusPage"]["get"]>;
const schema = z.object({
@@ -114,7 +115,7 @@ export function FormSubscribeEmail({
)}
/>
{form.watch("subscribeComponents") && (
- <div className="flex max-h-56 flex-col gap-2 overflow-y-auto rounded-md border border-border bg-muted p-2">
+ <div className="border-border bg-muted flex max-h-56 flex-col gap-2 overflow-y-auto rounded-md border p-2">
{page?.trackers && page.trackers.length > 0 ? (
page.trackers.map((tracker) => {
if (tracker.type === "group") {
diff --git a/apps/status-page/src/components/i18n/status-blocks-provider.tsx b/apps/status-page/src/components/i18n/status-blocks-provider.tsx
index 4fab1c659..ff73c2601 100644
--- a/apps/status-page/src/components/i18n/status-blocks-provider.tsx
+++ b/apps/status-page/src/components/i18n/status-blocks-provider.tsx
@@ -1,11 +1,5 @@
"use client";
-import {
- formatDate,
- formatDateRange,
- formatDateRangeParts,
- formatDateTime,
-} from "@/lib/formatter";
import {
StatusBlocksI18nProvider,
type StatusBlocksLabels,
@@ -13,6 +7,13 @@ import {
import { useExtracted, useLocale } from "next-intl";
import { useMemo } from "react";
+import {
+ formatDate,
+ formatDateRange,
+ formatDateRangeParts,
+ formatDateTime,
+} from "@/lib/formatter";
+
/**
* StatusBlocksProvider
*
diff --git a/apps/status-page/src/components/layout/embed-shell.tsx b/apps/status-page/src/components/layout/embed-shell.tsx
index 37ed3261c..2de6e875c 100644
--- a/apps/status-page/src/components/layout/embed-shell.tsx
+++ b/apps/status-page/src/components/layout/embed-shell.tsx
@@ -1,8 +1,9 @@
"use client";
-import { ALL_EMBED_SECTIONS, useEmbed } from "@/hooks/use-embed";
import { cn } from "@openstatus/ui/lib/utils";
+import { ALL_EMBED_SECTIONS, useEmbed } from "@/hooks/use-embed";
+
export function EmbedShell({
children,
className,
diff --git a/apps/status-page/src/components/locale-switcher.tsx b/apps/status-page/src/components/locale-switcher.tsx
index f6638f2c5..234cd0979 100644
--- a/apps/status-page/src/components/locale-switcher.tsx
+++ b/apps/status-page/src/components/locale-switcher.tsx
@@ -1,10 +1,5 @@
"use client";
-import {
- defaultLocale as globalDefaultLocale,
- localeTranslations,
- locales,
-} from "@/i18n/config";
import {
StatusLocaleSwitcher as BlockLocaleSwitcher,
type StatusLocaleOption,
@@ -14,6 +9,12 @@ import { useLocale } from "next-intl";
import { useParams, useRouter } from "next/navigation";
import { useEffect, useMemo, useState, useTransition } from "react";
+import {
+ defaultLocale as globalDefaultLocale,
+ localeTranslations,
+ locales,
+} from "@/i18n/config";
+
export function LocaleSwitcher({
className,
pageLocales,
diff --git a/apps/status-page/src/components/nav/footer.tsx b/apps/status-page/src/components/nav/footer.tsx
index bc5f91d63..a98cd31b3 100644
--- a/apps/status-page/src/components/nav/footer.tsx
+++ b/apps/status-page/src/components/nav/footer.tsx
@@ -1,11 +1,5 @@
"use client";
-import { Link } from "@/components/common/link";
-import { TimestampHoverCard } from "@/components/content/timestamp-hover-card";
-import { LocaleSwitcher } from "@/components/locale-switcher";
-import { ThemeSwitcher } from "@/components/themes/theme-switcher";
-import { useEmbed } from "@/hooks/use-embed";
-import { useTRPC } from "@/lib/trpc/client";
import {
StatusPageFooter,
StatusPageFooterActions,
@@ -19,6 +13,13 @@ import { Clock } from "lucide-react";
import { useParams } from "next/navigation";
import { useEffect, useState } from "react";
+import { Link } from "@/components/common/link";
+import { TimestampHoverCard } from "@/components/content/timestamp-hover-card";
+import { LocaleSwitcher } from "@/components/locale-switcher";
+import { ThemeSwitcher } from "@/components/themes/theme-switcher";
+import { useEmbed } from "@/hooks/use-embed";
+import { useTRPC } from "@/lib/trpc/client";
+
export function Footer({
className,
...props
@@ -66,7 +67,7 @@ export function Footer({
date={new Date(dataUpdatedAt)}
side="top"
align="end"
- className="mr-2 flex items-center gap-1.5 text-muted-foreground/70"
+ className="text-muted-foreground/70 mr-2 flex items-center gap-1.5"
>
{isMounted ? (
<>
diff --git a/apps/status-page/src/components/nav/header.tsx b/apps/status-page/src/components/nav/header.tsx
index 2ab32c9cc..034394569 100644
--- a/apps/status-page/src/components/nav/header.tsx
+++ b/apps/status-page/src/components/nav/header.tsx
@@ -1,12 +1,5 @@
"use client";
-import { Link } from "@/components/common/link";
-import {
- type StatusUpdateType,
- StatusUpdates,
-} from "@/components/status-page/status-updates";
-import { usePathnamePrefix } from "@/hooks/use-pathname-prefix";
-import { useTRPC } from "@/lib/trpc/client";
import type { RouterOutputs } from "@openstatus/api";
import { StatusPageGetInTouchIcon } from "@openstatus/ui/components/blocks/status-page-get-in-touch";
import {
@@ -37,6 +30,14 @@ import { useParams, usePathname } from "next/navigation";
import { useState } from "react";
import { toast } from "sonner";
+import { Link } from "@/components/common/link";
+import {
+ type StatusUpdateType,
+ StatusUpdates,
+} from "@/components/status-page/status-updates";
+import { usePathnamePrefix } from "@/hooks/use-pathname-prefix";
+import { useTRPC } from "@/lib/trpc/client";
+
type Page = RouterOutputs["statusPage"]["get"];
function useNav() {
diff --git a/apps/status-page/src/components/password-wrapper.tsx b/apps/status-page/src/components/password-wrapper.tsx
index 528c0e28b..41e2eee33 100644
--- a/apps/status-page/src/components/password-wrapper.tsx
+++ b/apps/status-page/src/components/password-wrapper.tsx
@@ -1,10 +1,11 @@
"use client";
-import { createProtectedCookieKey } from "@/lib/protected";
import { useParams } from "next/navigation";
import { parseAsString, useQueryState } from "nuqs";
import { useEffect } from "react";
+import { createProtectedCookieKey } from "@/lib/protected";
+
export function PasswordWrapper({ children }: { children?: React.ReactNode }) {
const [password, setPassword] = useQueryState("pw", parseAsString);
const { domain } = useParams<{ domain: string }>();
diff --git a/apps/status-page/src/components/popover/popover-quantile.tsx b/apps/status-page/src/components/popover/popover-quantile.tsx
index 18645ff4c..06e6f1a6a 100644
--- a/apps/status-page/src/components/popover/popover-quantile.tsx
+++ b/apps/status-page/src/components/popover/popover-quantile.tsx
@@ -19,7 +19,7 @@ export function PopoverQuantile({
<Popover>
<PopoverTrigger
className={cn(
- "shrink-0 rounded-md p-0 underline decoration-muted-foreground/70 decoration-dotted underline-offset-2 outline-none transition-all hover:decoration-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=open]:decoration-foreground dark:aria-invalid:ring-destructive/40",
+ "decoration-muted-foreground/70 hover:decoration-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=open]:decoration-foreground dark:aria-invalid:ring-destructive/40 shrink-0 rounded-md p-0 underline decoration-dotted underline-offset-2 transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50",
className,
)}
{...props}
@@ -31,7 +31,7 @@ export function PopoverQuantile({
{t("A quantile represents a specific percentile in your dataset.")}
</p>
<Separator />
- <p className="px-3 py-2 text-muted-foreground">
+ <p className="text-muted-foreground px-3 py-2">
{t(
"For example, p50 is the 50th percentile - the point below which 50% of data falls. Higher percentiles include more data and highlight the upper range.",
)}
diff --git a/apps/status-page/src/components/status-page/floating-button.tsx b/apps/status-page/src/components/status-page/floating-button.tsx
index e576c0a68..bb4316e82 100644
--- a/apps/status-page/src/components/status-page/floating-button.tsx
+++ b/apps/status-page/src/components/status-page/floating-button.tsx
@@ -1,6 +1,5 @@
"use client";
-import { ThemeSelect } from "@/components/themes/theme-select";
import {
THEMES,
THEME_KEYS,
@@ -36,6 +35,8 @@ import { parseAsString, useQueryState } from "nuqs";
import type React from "react";
import { createContext, useContext, useEffect, useState } from "react";
+import { ThemeSelect } from "@/components/themes/theme-select";
+
export const IS_DEV = process.env.NODE_ENV === "development";
export const VARIANT = ["success", "degraded", "error", "info"] as const;
@@ -145,7 +146,6 @@ export function FloatingButton({
parseAsString,
);
- // biome-ignore lint/correctness/useExhaustiveDependencies: <explanation>
useEffect(() => {
const enabled =
localStorage.getItem("configuration-token") === token ||
@@ -185,7 +185,7 @@ export function FloatingButton({
<PopoverContent className="w-80 p-0" align="end">
<div className="space-y-4 p-4">
<div className="space-y-2">
- <h4 className="font-medium leading-none">Status Page Settings</h4>
+ <h4 className="leading-none font-medium">Status Page Settings</h4>
<p className="text-muted-foreground text-sm">
Configure the status page appearance
</p>
@@ -298,7 +298,7 @@ export function FloatingButton({
<span className="truncate">
{THEMES[theme].name}
</span>
- <span className="truncate font-commit-mono text-muted-foreground text-xs">
+ <span className="font-commit-mono text-muted-foreground truncate text-xs">
by {THEMES[theme].author.name}
</span>
<Check
diff --git a/apps/status-page/src/components/status-page/floating-theme.tsx b/apps/status-page/src/components/status-page/floating-theme.tsx
index 9f502e367..4e68f1657 100644
--- a/apps/status-page/src/components/status-page/floating-theme.tsx
+++ b/apps/status-page/src/components/status-page/floating-theme.tsx
@@ -1,6 +1,5 @@
"use client";
-import { ThemeSelect } from "@/components/themes/theme-select";
import { THEMES, THEME_KEYS } from "@openstatus/theme-store";
import { Button } from "@openstatus/ui/components/ui/button";
import {
@@ -21,6 +20,9 @@ import { cn } from "@openstatus/ui/lib/utils";
import { Check, ChevronsUpDown, Palette } from "lucide-react";
import { useEffect } from "react";
import { useState } from "react";
+
+import { ThemeSelect } from "@/components/themes/theme-select";
+
import { useStatusPage } from "./floating-button";
export const COMMUNITY_THEME = THEME_KEYS;
@@ -60,7 +62,7 @@ export function FloatingTheme({ className }: { className?: string }) {
<PopoverContent className="w-80 p-0" align="end">
<div className="space-y-4 p-4">
<div className="space-y-2">
- <h4 className="font-medium leading-none">Theme Settings</h4>
+ <h4 className="leading-none font-medium">Theme Settings</h4>
<p className="text-muted-foreground text-sm">
Test community themes on the status page.
</p>
@@ -105,7 +107,7 @@ export function FloatingTheme({ className }: { className?: string }) {
<span className="truncate">
{THEMES[theme].name}
</span>
- <span className="truncate font-commit-mono text-muted-foreground text-xs">
+ <span className="font-commit-mono text-muted-foreground truncate text-xs">
by {THEMES[theme].author.name}
</span>
<Check
diff --git a/apps/status-page/src/components/status-page/status-bar.tsx b/apps/status-page/src/components/status-page/status-bar.tsx
index 668d51e59..ab454d230 100644
--- a/apps/status-page/src/components/status-page/status-bar.tsx
+++ b/apps/status-page/src/components/status-page/status-bar.tsx
@@ -1,12 +1,13 @@
"use client";
-import { Link } from "@/components/common/link";
-import { usePathnamePrefix } from "@/hooks/use-pathname-prefix";
import {
StatusBar as BlockStatusBar,
StatusBarEvent,
} from "@openstatus/ui/components/blocks/status-bar";
+import { Link } from "@/components/common/link";
+import { usePathnamePrefix } from "@/hooks/use-pathname-prefix";
+
export { StatusBarSkeleton } from "@openstatus/ui/components/blocks/status-bar";
/**
diff --git a/apps/status-page/src/components/status-page/status-blank.tsx b/apps/status-page/src/components/status-page/status-blank.tsx
index 38c792bd0..e4ea59772 100644
--- a/apps/status-page/src/components/status-page/status-blank.tsx
+++ b/apps/status-page/src/components/status-page/status-blank.tsx
@@ -1,9 +1,10 @@
"use client";
-import { Link } from "@/components/common/link";
import { Button } from "@openstatus/ui/components/ui/button";
import { cn } from "@openstatus/ui/lib/utils";
+import { Link } from "@/components/common/link";
+
export {
StatusBlankContainer,
StatusBlankTitle,
diff --git a/apps/status-page/src/components/status-page/status-calendar.tsx b/apps/status-page/src/components/status-page/status-calendar.tsx
index 211254c7f..9b38d5220 100644
--- a/apps/status-page/src/components/status-page/status-calendar.tsx
+++ b/apps/status-page/src/components/status-page/status-calendar.tsx
@@ -1,5 +1,16 @@
"use client";
+import type { RouterOutputs } from "@openstatus/api";
+import { dateFnsLocales } from "@openstatus/locales";
+import { StatusBarEvent } from "@openstatus/ui/components/blocks/status-bar";
+import {
+ StatusCalendar as BlockStatusCalendar,
+ StatusCalendarSkeleton as BlockStatusCalendarSkeleton,
+ type StatusCalendarMarker,
+ type StatusCalendarProps,
+ type StatusCalendarSkeletonProps,
+} from "@openstatus/ui/components/blocks/status-calendar";
+import { useStatusBlocksLabels } from "@openstatus/ui/components/blocks/status-i18n";
import {
eachDayOfInterval,
max as maxDate,
@@ -12,17 +23,6 @@ import { useCallback, useMemo } from "react";
import { Link } from "@/components/common/link";
import { usePathnamePrefix } from "@/hooks/use-pathname-prefix";
import type { Locale as AppLocale } from "@/i18n/config";
-import type { RouterOutputs } from "@openstatus/api";
-import { dateFnsLocales } from "@openstatus/locales";
-import { StatusBarEvent } from "@openstatus/ui/components/blocks/status-bar";
-import {
- StatusCalendar as BlockStatusCalendar,
- StatusCalendarSkeleton as BlockStatusCalendarSkeleton,
- type StatusCalendarMarker,
- type StatusCalendarProps,
- type StatusCalendarSkeletonProps,
-} from "@openstatus/ui/components/blocks/status-calendar";
-import { useStatusBlocksLabels } from "@openstatus/ui/components/blocks/status-i18n";
type Page = NonNullable<RouterOutputs["statusPage"]["get"]>;
type ReportInput = Page["statusReports"][number];
@@ -149,7 +149,7 @@ export function StatusCalendar({
<Link
variant="unstyled"
href={marker.href}
- className="block cursor-pointer rounded-sm hover:bg-accent/50"
+ className="hover:bg-accent/50 block cursor-pointer rounded-sm"
>
{event}
</Link>
diff --git a/apps/status-page/src/components/status-page/status-charts.tsx b/apps/status-page/src/components/status-page/status-charts.tsx
index 50a75cbb3..fc482e115 100644
--- a/apps/status-page/src/components/status-page/status-charts.tsx
+++ b/apps/status-page/src/components/status-page/status-charts.tsx
@@ -40,7 +40,7 @@ export function StatusChartTitle({
return (
<div
data-slot="status-chart-title"
- className={cn("font-medium text-base text-foreground", className)}
+ className={cn("text-foreground text-base font-medium", className)}
{...props}
>
{children}
diff --git a/apps/status-page/src/components/status-page/status-component-group.tsx b/apps/status-page/src/components/status-page/status-component-group.tsx
index 376b1d585..078545f26 100644
--- a/apps/status-page/src/components/status-page/status-component-group.tsx
+++ b/apps/status-page/src/components/status-page/status-component-group.tsx
@@ -45,13 +45,13 @@ export function StatusComponentGroup({
defaultOpen={defaultOpen}
className={cn(
"-mx-3",
- "rounded-lg border border-transparent bg-muted/50 hover:border-border/50 data-[state=open]:border-border/50 data-[state=open]:bg-muted/50",
+ "bg-muted/50 hover:border-border/50 data-[state=open]:border-border/50 data-[state=open]:bg-muted/50 rounded-lg border border-transparent",
className,
)}
>
<CollapsibleTrigger
className={cn(
- "group/component flex w-full items-center justify-between gap-2 rounded-lg px-3 py-2 font-medium font-mono",
+ "group/component flex w-full items-center justify-between gap-2 rounded-lg px-3 py-2 font-mono font-medium",
"cursor-pointer",
className,
)}
@@ -67,7 +67,7 @@ export function StatusComponentGroup({
<CollapsibleContent
data-animate={mounted}
className={cn(
- "flex flex-col gap-3 border-border/50 border-t px-3 py-2",
+ "border-border/50 flex flex-col gap-3 border-t px-3 py-2",
"overflow-hidden",
"data-[animate=true]:data-[state=closed]:animate-collapsible-up data-[animate=true]:data-[state=open]:animate-collapsible-down",
)}
diff --git a/apps/status-page/src/components/status-page/status-events.tsx b/apps/status-page/src/components/status-page/status-events.tsx
index 92c08f7d8..42ff846ce 100644
--- a/apps/status-page/src/components/status-page/status-events.tsx
+++ b/apps/status-page/src/components/status-page/status-events.tsx
@@ -1,12 +1,13 @@
"use client";
-import { ProcessMessage } from "@/components/content/process-message";
import {
StatusEventTimelineMaintenance as BlockStatusEventTimelineMaintenance,
StatusEventTimelineReport as BlockStatusEventTimelineReport,
StatusEventTimelineReportUpdate as BlockStatusEventTimelineReportUpdate,
} from "@openstatus/ui/components/blocks/status-events";
+import { ProcessMessage } from "@/components/content/process-message";
+
// Re-export pass-through primitives that don't need glue.
export {
StatusEvent,
diff --git a/apps/status-page/src/components/status-page/status-feed.tsx b/apps/status-page/src/components/status-page/status-feed.tsx
index 5f54a21f9..5f21632ed 100644
--- a/apps/status-page/src/components/status-page/status-feed.tsx
+++ b/apps/status-page/src/components/status-page/status-feed.tsx
@@ -1,11 +1,13 @@
"use client";
-import { Link } from "@/components/common/link";
-import { ProcessMessage } from "@/components/content/process-message";
-import { usePathnamePrefix } from "@/hooks/use-pathname-prefix";
import { StatusBlankAction } from "@openstatus/ui/components/blocks/status-blank";
import { StatusFeed as BlockStatusFeed } from "@openstatus/ui/components/blocks/status-feed";
import { useExtracted } from "next-intl";
+
+import { Link } from "@/components/common/link";
+import { ProcessMessage } from "@/components/content/process-message";
+import { usePathnamePrefix } from "@/hooks/use-pathname-prefix";
+
import { StatusBlankLink } from "./status-blank";
const renderMarkdownMessage = (message: string) => (
diff --git a/apps/status-page/src/components/status-page/status-monitor-tabs.tsx b/apps/status-page/src/components/status-page/status-monitor-tabs.tsx
index c11cb3b47..608676ff2 100644
--- a/apps/status-page/src/components/status-page/status-monitor-tabs.tsx
+++ b/apps/status-page/src/components/status-page/status-monitor-tabs.tsx
@@ -33,7 +33,7 @@ export function StatusMonitorTabsTrigger({
return (
<TabsTrigger
className={cn(
- "min-w-0 flex-1 flex-col items-start gap-0.5 text-foreground dark:text-foreground",
+ "text-foreground dark:text-foreground min-w-0 flex-1 flex-col items-start gap-0.5",
className,
)}
{...props}
@@ -57,7 +57,7 @@ export function StatusMonitorTabsTriggerValue({
return (
<div
className={cn(
- "flex min-h-5 flex-row flex-wrap items-center gap-1 text-left text-muted-foreground text-xs",
+ "text-muted-foreground flex min-h-5 flex-row flex-wrap items-center gap-1 text-left text-xs",
className,
)}
{...props}
@@ -79,7 +79,7 @@ export function StatusMonitorTabsContent({
return (
<TabsContent
className={cn(
- "flex flex-col gap-2 rounded-lg focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",
+ "focus-visible:border-ring focus-visible:ring-ring/50 flex flex-col gap-2 rounded-lg focus-visible:ring-[3px]",
className,
)}
{...props}
diff --git a/apps/status-page/src/components/status-page/status-updates.tsx b/apps/status-page/src/components/status-page/status-updates.tsx
index a497518e2..a344e1ab2 100644
--- a/apps/status-page/src/components/status-page/status-updates.tsx
+++ b/apps/status-page/src/components/status-page/status-updates.tsx
@@ -1,10 +1,5 @@
"use client";
-import {
- FormSubscribeEmail,
- type FormValues,
-} from "@/components/forms/form-subscribe-email";
-import { getBaseUrl } from "@/lib/base-url";
import type { RouterOutputs } from "@openstatus/api";
import {
StatusUpdates as BlockStatusUpdates,
@@ -29,6 +24,12 @@ import { Inbox } from "lucide-react";
import { useExtracted } from "next-intl";
import { useState } from "react";
+import {
+ FormSubscribeEmail,
+ type FormValues,
+} from "@/components/forms/form-subscribe-email";
+import { getBaseUrl } from "@/lib/base-url";
+
export type StatusUpdateType = "email" | "rss" | "ssh" | "json" | "slack";
type Page = NonNullable<RouterOutputs["statusPage"]["get"]>;
@@ -142,7 +143,7 @@ function SuccessMessage() {
<div className="flex flex-col items-center justify-center gap-1 p-3">
<Inbox className="size-4 shrink-0" />
<p className="text-center font-medium">{t("Check your inbox!")}</p>
- <p className="text-center text-muted-foreground text-sm">
+ <p className="text-muted-foreground text-center text-sm">
{t("Validate your email to receive updates and you are all set.")}
</p>
</div>
diff --git a/apps/status-page/src/components/status-page/utils.ts b/apps/status-page/src/components/status-page/utils.ts
index d9290e8b8..00e7640a4 100644
--- a/apps/status-page/src/components/status-page/utils.ts
+++ b/apps/status-page/src/components/status-page/utils.ts
@@ -1,4 +1,5 @@
import type { ChartConfig } from "@openstatus/ui/components/ui/chart";
+
import { VARIANT, type VariantType } from "./floating-button";
export const chartData = Array.from({ length: 45 }, (_, i) => {
diff --git a/apps/status-page/src/components/tailwind-indicator.tsx b/apps/status-page/src/components/tailwind-indicator.tsx
index ab3464364..a9967cb30 100644
--- a/apps/status-page/src/components/tailwind-indicator.tsx
+++ b/apps/status-page/src/components/tailwind-indicator.tsx
@@ -2,7 +2,7 @@ export function TailwindIndicator() {
if (process.env.NODE_ENV === "production") return null;
return (
- <div className="fixed bottom-1 left-1 z-50 flex h-6 w-6 items-center justify-center rounded-full bg-foreground p-3 font-mono text-background text-xs">
+ <div className="bg-foreground text-background fixed bottom-1 left-1 z-50 flex h-6 w-6 items-center justify-center rounded-full p-3 font-mono text-xs">
<div className="block sm:hidden">xs</div>
<div className="hidden sm:block md:hidden">sm</div>
<div className="hidden md:block lg:hidden">md</div>
diff --git a/apps/status-page/src/components/themes/theme-provider.tsx b/apps/status-page/src/components/themes/theme-provider.tsx
index 1f254d24c..5c56dc145 100644
--- a/apps/status-page/src/components/themes/theme-provider.tsx
+++ b/apps/status-page/src/components/themes/theme-provider.tsx
@@ -1,11 +1,12 @@
"use client";
-import { useEmbed } from "@/hooks/use-embed";
-import { embedThemeParser } from "@/lib/embed-params";
import { ThemeProvider as NextThemesProvider } from "next-themes";
import { useQueryState } from "nuqs";
import type * as React from "react";
+import { useEmbed } from "@/hooks/use-embed";
+import { embedThemeParser } from "@/lib/embed-params";
+
export function ThemeProvider({
children,
...props
diff --git a/apps/status-page/src/components/themes/theme-select.tsx b/apps/status-page/src/components/themes/theme-select.tsx
index 9bc0dc05d..75f49ea41 100644
--- a/apps/status-page/src/components/themes/theme-select.tsx
+++ b/apps/status-page/src/components/themes/theme-select.tsx
@@ -1,8 +1,5 @@
"use client";
-import { useTheme } from "next-themes";
-import type * as React from "react";
-
import {
Select,
SelectContent,
@@ -13,6 +10,8 @@ import {
import { Skeleton } from "@openstatus/ui/components/ui/skeleton";
import { cn } from "@openstatus/ui/lib/utils";
import { Laptop, Moon, Sun } from "lucide-react";
+import { useTheme } from "next-themes";
+import type * as React from "react";
import { useState } from "react";
import { useEffect } from "react";
@@ -30,7 +29,7 @@ export function ThemeSelect({
if (!mounted) {
return (
<Skeleton
- className={cn("h-9 rounded-md border border-border", className)}
+ className={cn("border-border h-9 rounded-md border", className)}
/>
);
}
diff --git a/apps/status-page/src/components/themes/theme-sidebar.tsx b/apps/status-page/src/components/themes/theme-sidebar.tsx
index bc25de24d..2b43361a3 100644
--- a/apps/status-page/src/components/themes/theme-sidebar.tsx
+++ b/apps/status-page/src/components/themes/theme-sidebar.tsx
@@ -1,7 +1,5 @@
"use client";
-import { searchParamsParsers } from "@/app/(public)/search-params";
-import { recomputeStyles } from "@/components/status-page/floating-button";
import {
THEMES,
type Theme,
@@ -60,6 +58,9 @@ import { useTheme } from "next-themes";
import { useQueryStates } from "nuqs";
import { useEffect, useState } from "react";
+import { searchParamsParsers } from "@/app/(public)/search-params";
+import { recomputeStyles } from "@/components/status-page/floating-button";
+
type ThemeBuilderColor = {
label: string;
type: "color";
@@ -144,7 +145,7 @@ const THEME_STYLE_BUILDER = {
} satisfies Record<string, ThemeBuilderColor | ThemeBuilderCheckbox>;
// Helper function to get nested property value from an object
-// biome-ignore lint/suspicious/noExplicitAny: <explanation>
+// oxlint-disable-next-line typescript/no-explicit-any
function getNestedValue(obj: any, path: string): string | undefined {
const keys = path.split(".");
let value = obj;
@@ -357,14 +358,14 @@ function ThemeValueSelector(props: {
}, 100);
if (!props.isMounted || !resolvedTheme)
- return <Skeleton className="ml-auto size-4 border border-foreground/70" />;
+ return <Skeleton className="border-foreground/70 ml-auto size-4 border" />;
const value = props.theme[resolvedTheme as "light" | "dark"][props.id];
if (props.config.type === "color") {
return (
<label
- className="ml-auto size-4 rounded-full border border-foreground/70"
+ className="border-foreground/70 ml-auto size-4 rounded-full border"
style={{ backgroundColor: value }}
htmlFor={props.id}
>
@@ -386,7 +387,7 @@ function ThemeValueSelector(props: {
options.find((option) => option.value === value)?.label ?? false;
return (
<label htmlFor={props.id} className="ml-auto flex items-center gap-2">
- <span className="font-mono text-muted-foreground text-xs">
+ <span className="text-muted-foreground font-mono text-xs">
{value ??
options.find((option) => option.label === false)?.value ??
""}
@@ -395,16 +396,17 @@ function ThemeValueSelector(props: {
id={props.id}
name={props.id}
checked={checked}
- className="size-4 bg-background"
+ className="bg-background size-4"
onCheckedChange={(checked) =>
props.setTheme({
...props.theme,
[resolvedTheme as "light" | "dark"]: {
...props.theme[resolvedTheme as "light" | "dark"],
[props.id]: checked
- ? options.find((option) => option.label === true)?.value ?? ""
- : options.find((option) => option.label === false)?.value ??
- "",
+ ? (options.find((option) => option.label === true)?.value ??
+ "")
+ : (options.find((option) => option.label === false)?.value ??
+ ""),
},
})
}
@@ -414,7 +416,7 @@ function ThemeValueSelector(props: {
}
return (
- <span className="ml-auto font-mono text-muted-foreground text-xs">
+ <span className="text-muted-foreground ml-auto font-mono text-xs">
{value}
</span>
);
diff --git a/apps/status-page/src/components/ui/data-table/data-table-action-bar.tsx b/apps/status-page/src/components/ui/data-table/data-table-action-bar.tsx
index 5dc21fb7a..7fc78b9d6 100644
--- a/apps/status-page/src/components/ui/data-table/data-table-action-bar.tsx
+++ b/apps/status-page/src/components/ui/data-table/data-table-action-bar.tsx
@@ -13,8 +13,9 @@ import { Loader, X } from "lucide-react";
import * as React from "react";
import * as ReactDOM from "react-dom";
-export interface DataTableActionBarProps<TData>
- extends React.ComponentProps<"div"> {
+export interface DataTableActionBarProps<
+ TData,
+> extends React.ComponentProps<"div"> {
table: Table<TData>;
visible?: boolean;
container?: Element | DocumentFragment | null;
@@ -60,7 +61,7 @@ function DataTableActionBar<TData>({
role="toolbar"
aria-orientation="horizontal"
className={cn(
- "fixed inset-x-0 bottom-6 z-50 mx-auto flex w-fit flex-wrap items-center justify-center gap-2 rounded-md border bg-background p-2 text-foreground shadow-sm",
+ "bg-background text-foreground fixed inset-x-0 bottom-6 z-50 mx-auto flex w-fit flex-wrap items-center justify-center gap-2 rounded-md border p-2 shadow-sm",
className,
)}
{...props}
@@ -73,8 +74,9 @@ function DataTableActionBar<TData>({
);
}
-interface DataTableActionBarActionProps
- extends React.ComponentProps<typeof Button> {
+interface DataTableActionBarActionProps extends React.ComponentProps<
+ typeof Button
+> {
tooltip?: string;
isPending?: boolean;
}
@@ -93,7 +95,7 @@ function DataTableActionBarAction({
variant="secondary"
size={size}
className={cn(
- "gap-1.5 border border-secondary bg-secondary/50 hover:bg-secondary/70 [&>svg]:size-3.5",
+ "border-secondary bg-secondary/50 hover:bg-secondary/70 gap-1.5 border [&>svg]:size-3.5",
size === "icon" ? "size-7" : "h-7",
className,
)}
@@ -111,7 +113,7 @@ function DataTableActionBarAction({
<TooltipTrigger asChild>{trigger}</TooltipTrigger>
<TooltipContent
sideOffset={6}
- className="border bg-accent font-semibold text-foreground dark:bg-zinc-900 [&>span]:hidden"
+ className="bg-accent text-foreground border font-semibold dark:bg-zinc-900 [&>span]:hidden"
>
<p>{tooltip}</p>
</TooltipContent>
@@ -132,7 +134,7 @@ function DataTableActionBarSelection<TData>({
return (
<div className="flex h-7 items-center rounded-md border pr-1 pl-2.5">
- <span className="whitespace-nowrap text-xs">
+ <span className="text-xs whitespace-nowrap">
{table.getFilteredSelectedRowModel().rows.length} selected
</span>
<Separator
@@ -152,10 +154,10 @@ function DataTableActionBarSelection<TData>({
</TooltipTrigger>
<TooltipContent
sideOffset={10}
- className="flex items-center gap-2 border bg-accent px-2 py-1 font-semibold text-foreground dark:bg-zinc-900 [&>span]:hidden"
+ className="bg-accent text-foreground flex items-center gap-2 border px-2 py-1 font-semibold dark:bg-zinc-900 [&>span]:hidden"
>
<p>Clear selection</p>
- <kbd className="select-none rounded border bg-background px-1.5 py-px font-mono font-normal text-[0.7rem] text-foreground shadow-xs">
+ <kbd className="bg-background text-foreground rounded border px-1.5 py-px font-mono text-[0.7rem] font-normal shadow-xs select-none">
<abbr title="Escape" className="no-underline">
Esc
</abbr>
diff --git a/apps/status-page/src/components/ui/data-table/data-table-column-header.tsx b/apps/status-page/src/components/ui/data-table/data-table-column-header.tsx
index 0c8259bff..b7068d88d 100644
--- a/apps/status-page/src/components/ui/data-table/data-table-column-header.tsx
+++ b/apps/status-page/src/components/ui/data-table/data-table-column-header.tsx
@@ -1,12 +1,12 @@
-import type { Column } from "@tanstack/react-table";
-import { ChevronDown, ChevronUp } from "lucide-react";
-
import { Button } from "@openstatus/ui/components/ui/button";
-
import { cn } from "@openstatus/ui/lib/utils";
+import type { Column } from "@tanstack/react-table";
+import { ChevronDown, ChevronUp } from "lucide-react";
-interface DataTableColumnHeaderProps<TData, TValue>
- extends React.ComponentProps<"button"> {
+interface DataTableColumnHeaderProps<
+ TData,
+ TValue,
+> extends React.ComponentProps<"button"> {
column: Column<TData, TValue>;
title: string;
}
diff --git a/apps/status-page/src/components/ui/data-table/data-table-faceted-filter.tsx b/apps/status-page/src/components/ui/data-table/data-table-faceted-filter.tsx
index c4ca10738..8c4863d3c 100644
--- a/apps/status-page/src/components/ui/data-table/data-table-faceted-filter.tsx
+++ b/apps/status-page/src/components/ui/data-table/data-table-faceted-filter.tsx
@@ -1,7 +1,3 @@
-import type { Column } from "@tanstack/react-table";
-import { Check, PlusCircle } from "lucide-react";
-import type * as React from "react";
-
import { Badge } from "@openstatus/ui/components/ui/badge";
import { Button } from "@openstatus/ui/components/ui/button";
import {
@@ -19,6 +15,9 @@ import {
PopoverTrigger,
} from "@openstatus/ui/components/ui/popover";
import { cn } from "@openstatus/ui/lib/utils";
+import type { Column } from "@tanstack/react-table";
+import { Check, PlusCircle } from "lucide-react";
+import type * as React from "react";
interface DataTableFacetedFilterProps<TData, TValue> {
column?: Column<TData, TValue>;
@@ -114,7 +113,7 @@ export function DataTableFacetedFilter<TData, TValue>({
>
<div
className={cn(
- "mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",
+ "border-primary mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",
isSelected
? "bg-primary text-primary-foreground"
: "opacity-50 [&_svg]:invisible",
@@ -127,7 +126,7 @@ export function DataTableFacetedFilter<TData, TValue>({
/>
</div>
{option.icon && (
- <option.icon className="mr-2 h-4 w-4 text-muted-foreground" />
+ <option.icon className="text-muted-foreground mr-2 h-4 w-4" />
)}
<span className="truncate">{option.label}</span>
{facets?.get(option.value) && (
diff --git a/apps/status-page/src/components/ui/data-table/data-table-pagination.tsx b/apps/status-page/src/components/ui/data-table/data-table-pagination.tsx
index 988c0cce4..fded59948 100644
--- a/apps/status-page/src/components/ui/data-table/data-table-pagination.tsx
+++ b/apps/status-page/src/components/ui/data-table/data-table-pagination.tsx
@@ -1,11 +1,3 @@
-import type { Table } from "@tanstack/react-table";
-import {
- ChevronLeft,
- ChevronRight,
- ChevronsLeft,
- ChevronsRight,
-} from "lucide-react";
-
import { Button } from "@openstatus/ui/components/ui/button";
import {
Select,
@@ -14,6 +6,13 @@ import {
SelectTrigger,
SelectValue,
} from "@openstatus/ui/components/ui/select";
+import type { Table } from "@tanstack/react-table";
+import {
+ ChevronLeft,
+ ChevronRight,
+ ChevronsLeft,
+ ChevronsRight,
+} from "lucide-react";
export interface DataTablePaginationProps<TData> {
table: Table<TData>;
@@ -24,13 +23,13 @@ export function DataTablePagination<TData>({
}: DataTablePaginationProps<TData>) {
return (
<div className="flex flex-wrap items-center justify-between gap-2">
- <div className="flex-1 text-muted-foreground text-sm">
+ <div className="text-muted-foreground flex-1 text-sm">
{table.getFilteredSelectedRowModel().rows.length} of{" "}
{table.getFilteredRowModel().rows.length} row(s) selected.
</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>
+ <p className="text-sm font-medium">Rows per page</p>
<Select
value={`${table.getState().pagination.pageSize}`}
onValueChange={(value) => {
@@ -49,7 +48,7 @@ export function DataTablePagination<TData>({
</SelectContent>
</Select>
</div>
- <div className="flex items-center justify-center font-medium text-sm">
+ <div className="flex items-center justify-center text-sm font-medium">
Page {table.getState().pagination.pageIndex + 1} of{" "}
{table.getPageCount()}
</div>
@@ -101,7 +100,7 @@ export function DataTablePaginationSimple<TData>({
}: DataTablePaginationProps<TData>) {
return (
<div className="flex items-center justify-between">
- <div className="flex-1 text-muted-foreground text-sm">
+ <div className="text-muted-foreground flex-1 text-sm">
{table.getFilteredRowModel().rows.length} of{" "}
{table.getPreFilteredRowModel().rows.length} row(s) filtered.
</div>
diff --git a/apps/status-page/src/components/ui/data-table/data-table-toolbar.tsx b/apps/status-page/src/components/ui/data-table/data-table-toolbar.tsx
index a511548e8..bb18066f8 100644
--- a/apps/status-page/src/components/ui/data-table/data-table-toolbar.tsx
+++ b/apps/status-page/src/components/ui/data-table/data-table-toolbar.tsx
@@ -1,13 +1,12 @@
"use client";
-import type { Table } from "@tanstack/react-table";
-import { X } from "lucide-react";
-
-import { DataTableViewOptions } from "@/components/ui/data-table/data-table-view-options";
import { Button } from "@openstatus/ui/components/ui/button";
import { Input } from "@openstatus/ui/components/ui/input";
+import type { Table } from "@tanstack/react-table";
+import { X } from "lucide-react";
import { DataTableFacetedFilter } from "@/components/ui/data-table/data-table-faceted-filter";
+import { DataTableViewOptions } from "@/components/ui/data-table/data-table-view-options";
export interface DataTableToolbarProps<TData> {
table: Table<TData>;
diff --git a/apps/status-page/src/components/ui/data-table/data-table-view-options.tsx b/apps/status-page/src/components/ui/data-table/data-table-view-options.tsx
index 10cf8fe10..9331814d3 100644
--- a/apps/status-page/src/components/ui/data-table/data-table-view-options.tsx
+++ b/apps/status-page/src/components/ui/data-table/data-table-view-options.tsx
@@ -1,9 +1,5 @@
"use client";
-import { DropdownMenuTrigger } from "@radix-ui/react-dropdown-menu";
-import type { Table } from "@tanstack/react-table";
-import { Settings2 } from "lucide-react";
-
import { Button } from "@openstatus/ui/components/ui/button";
import {
DropdownMenu,
@@ -12,6 +8,9 @@ import {
DropdownMenuLabel,
DropdownMenuSeparator,
} from "@openstatus/ui/components/ui/dropdown-menu";
+import { DropdownMenuTrigger } from "@radix-ui/react-dropdown-menu";
+import type { Table } from "@tanstack/react-table";
+import { Settings2 } from "lucide-react";
interface DataTableViewOptionsProps<TData> {
table: Table<TData>;
diff --git a/apps/status-page/src/components/ui/data-table/data-table.tsx b/apps/status-page/src/components/ui/data-table/data-table.tsx
index 1f3dfb624..5e7ef1ef2 100644
--- a/apps/status-page/src/components/ui/data-table/data-table.tsx
+++ b/apps/status-page/src/components/ui/data-table/data-table.tsx
@@ -1,5 +1,13 @@
"use client";
+import {
+ Table,
+ TableBody,
+ TableCell,
+ TableHead,
+ TableHeader,
+ TableRow,
+} from "@openstatus/ui/components/ui/table";
import {
type ColumnDef,
type ColumnFiltersState,
@@ -18,16 +26,8 @@ import {
useReactTable,
} from "@tanstack/react-table";
import * as React from "react";
-
-import {
- Table,
- TableBody,
- TableCell,
- TableHead,
- TableHeader,
- TableRow,
-} from "@openstatus/ui/components/ui/table";
import { Fragment } from "react";
+
import type { DataTableActionBarProps } from "./data-table-action-bar";
import type { DataTablePaginationProps } from "./data-table-pagination";
import type { DataTableToolbarProps } from "./data-table-toolbar";
@@ -75,7 +75,7 @@ export function DataTable<TData, TValue>({
pagination,
setPagination,
}: DataTableProps<TData, TValue>) {
- // biome-ignore lint/suspicious/noExplicitAny: <explanation>
+ // oxlint-disable-next-line typescript/no-explicit-any
const [globalFilter, setGlobalFilter] = React.useState<any>();
const [rowSelection, setRowSelection] = React.useState({});
const [columnVisibility, setColumnVisibility] =
diff --git a/apps/status-page/src/data/metrics.client.ts b/apps/status-page/src/data/metrics.client.ts
index 354b003e6..790dc19ce 100644
--- a/apps/status-page/src/data/metrics.client.ts
+++ b/apps/status-page/src/data/metrics.client.ts
@@ -1,9 +1,11 @@
"use client";
-import type { MetricCard } from "@/components/content/metric-card";
-import { formatDateTime, formatMilliseconds } from "@/lib/formatter";
import type { RouterOutputs } from "@openstatus/api";
import { monitorRegions } from "@openstatus/db/src/schema/constants";
+
+import type { MetricCard } from "@/components/content/metric-card";
+import { formatDateTime, formatMilliseconds } from "@/lib/formatter";
+
import type { RegionMetric } from "./region-metrics";
import type { Region } from "./regions";
diff --git a/apps/status-page/src/hooks/use-embed.ts b/apps/status-page/src/hooks/use-embed.ts
index 64b6e9cf6..2369e961f 100644
--- a/apps/status-page/src/hooks/use-embed.ts
+++ b/apps/status-page/src/hooks/use-embed.ts
@@ -1,8 +1,9 @@
"use client";
-import { embedParser } from "@/lib/embed-params";
import { useQueryState } from "nuqs";
+import { embedParser } from "@/lib/embed-params";
+
export {
ALL_EMBED_SECTIONS,
type EmbedSection,
diff --git a/apps/status-page/src/hooks/use-pathname-prefix.ts b/apps/status-page/src/hooks/use-pathname-prefix.ts
index 65157839f..46a898d38 100644
--- a/apps/status-page/src/hooks/use-pathname-prefix.ts
+++ b/apps/status-page/src/hooks/use-pathname-prefix.ts
@@ -1,13 +1,14 @@
"use client";
-import { defaultLocale as globalDefaultLocale } from "@/i18n/config";
-import { resolvePathnamePrefix } from "@/lib/resolve-pathname-prefix";
-import { useTRPC } from "@/lib/trpc/client";
import { useQuery } from "@tanstack/react-query";
import { useLocale } from "next-intl";
import { useParams } from "next/navigation";
import { useEffect, useState } from "react";
+import { defaultLocale as globalDefaultLocale } from "@/i18n/config";
+import { resolvePathnamePrefix } from "@/lib/resolve-pathname-prefix";
+import { useTRPC } from "@/lib/trpc/client";
+
export function usePathnamePrefix() {
const trpc = useTRPC();
const { domain } = useParams<{ domain: string }>();
diff --git a/apps/status-page/src/i18n/request.ts b/apps/status-page/src/i18n/request.ts
index b59fbdd40..e66dc7867 100644
--- a/apps/status-page/src/i18n/request.ts
+++ b/apps/status-page/src/i18n/request.ts
@@ -1,4 +1,5 @@
import { getRequestConfig } from "next-intl/server";
+
import { routing } from "./routing";
export default getRequestConfig(async ({ requestLocale }) => {
diff --git a/apps/status-page/src/i18n/routing.ts b/apps/status-page/src/i18n/routing.ts
index be6bdc7c2..651acbb91 100644
--- a/apps/status-page/src/i18n/routing.ts
+++ b/apps/status-page/src/i18n/routing.ts
@@ -1,4 +1,5 @@
import { defineRouting } from "next-intl/routing";
+
import { defaultLocale, locales } from "./config";
export const routing = defineRouting({
diff --git a/apps/status-page/src/lib/auth/adapter.ts b/apps/status-page/src/lib/auth/adapter.ts
index 170c4310d..ffa34739d 100644
--- a/apps/status-page/src/lib/auth/adapter.ts
+++ b/apps/status-page/src/lib/auth/adapter.ts
@@ -1,6 +1,4 @@
import { DrizzleAdapter } from "@auth/drizzle-adapter";
-import type { Adapter } from "next-auth/adapters";
-
import { db } from "@openstatus/db";
import {
verificationToken,
@@ -8,6 +6,7 @@ import {
viewerAccounts,
viewerSession,
} from "@openstatus/db/src/schema";
+import type { Adapter } from "next-auth/adapters";
export const adapter: Adapter = {
...DrizzleAdapter(db, {
diff --git a/apps/status-page/src/lib/auth/index.ts b/apps/status-page/src/lib/auth/index.ts
index 8ecba2953..40d655e63 100644
--- a/apps/status-page/src/lib/auth/index.ts
+++ b/apps/status-page/src/lib/auth/index.ts
@@ -1,12 +1,12 @@
-import type { DefaultSession } from "next-auth";
-import NextAuth, { AuthError } from "next-auth";
-
import { db, eq } from "@openstatus/db";
import { viewer } from "@openstatus/db/src/schema";
+import type { DefaultSession } from "next-auth";
+import NextAuth, { AuthError } from "next-auth";
+import { headers } from "next/headers";
import { getValidCustomDomain } from "@/lib/domain";
import { getQueryClient, trpc } from "@/lib/trpc/server";
-import { headers } from "next/headers";
+
import { adapter } from "./adapter";
import { ResendProvider } from "./providers";
diff --git a/apps/status-page/src/lib/auth/providers.ts b/apps/status-page/src/lib/auth/providers.ts
index b18d3bbe1..8ff8d9303 100644
--- a/apps/status-page/src/lib/auth/providers.ts
+++ b/apps/status-page/src/lib/auth/providers.ts
@@ -1,6 +1,8 @@
-import { getQueryClient, trpc } from "@/lib/trpc/server";
import { EmailClient } from "@openstatus/emails";
import Resend from "next-auth/providers/resend";
+
+import { getQueryClient, trpc } from "@/lib/trpc/server";
+
import { getValidCustomDomain } from "../domain";
export const ResendProvider = Resend({
diff --git a/apps/status-page/src/lib/domain.ts b/apps/status-page/src/lib/domain.ts
index cb5f06941..6dbc9351c 100644
--- a/apps/status-page/src/lib/domain.ts
+++ b/apps/status-page/src/lib/domain.ts
@@ -4,7 +4,6 @@ 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;
}
diff --git a/apps/status-page/src/lib/proxy/apply-page-locale-override.test.ts b/apps/status-page/src/lib/proxy/apply-page-locale-override.test.ts
index 6db39ba2e..f6821af11 100644
--- a/apps/status-page/src/lib/proxy/apply-page-locale-override.test.ts
+++ b/apps/status-page/src/lib/proxy/apply-page-locale-override.test.ts
@@ -1,4 +1,5 @@
import { describe, expect, test } from "bun:test";
+
import type { ResolvedRoute } from "../resolve-route";
import { applyPageLocaleOverride } from "./apply-page-locale-override";
diff --git a/apps/status-page/src/lib/proxy/apply-page-locale-override.ts b/apps/status-page/src/lib/proxy/apply-page-locale-override.ts
index b856010d7..f8ebe05c7 100644
--- a/apps/status-page/src/lib/proxy/apply-page-locale-override.ts
+++ b/apps/status-page/src/lib/proxy/apply-page-locale-override.ts
@@ -1,4 +1,5 @@
import type { Page } from "@openstatus/db/src/schema";
+
import type { ResolvedRoute } from "../resolve-route";
/**
diff --git a/apps/status-page/src/lib/proxy/build-external-path.test.ts b/apps/status-page/src/lib/proxy/build-external-path.test.ts
index 06bb1f962..e809f6da9 100644
--- a/apps/status-page/src/lib/proxy/build-external-path.test.ts
+++ b/apps/status-page/src/lib/proxy/build-external-path.test.ts
@@ -1,4 +1,5 @@
import { describe, expect, test } from "bun:test";
+
import { buildExternalPath } from "./build-external-path";
describe("buildExternalPath", () => {
diff --git a/apps/status-page/src/lib/proxy/compose-page-action.test.ts b/apps/status-page/src/lib/proxy/compose-page-action.test.ts
index 8faf69687..92c33732b 100644
--- a/apps/status-page/src/lib/proxy/compose-page-action.test.ts
+++ b/apps/status-page/src/lib/proxy/compose-page-action.test.ts
@@ -1,5 +1,7 @@
import { describe, expect, test } from "bun:test";
+
import type { Page } from "@openstatus/db/src/schema";
+
import type { ResolvedRoute } from "../resolve-route";
import { type ComposeInput, composePageAction } from "./compose-page-action";
diff --git a/apps/status-page/src/lib/proxy/is-ip-allowed.test.ts b/apps/status-page/src/lib/proxy/is-ip-allowed.test.ts
index 8a424dc1f..d96101df9 100644
--- a/apps/status-page/src/lib/proxy/is-ip-allowed.test.ts
+++ b/apps/status-page/src/lib/proxy/is-ip-allowed.test.ts
@@ -1,4 +1,5 @@
import { describe, expect, test } from "bun:test";
+
import { isIpAllowed } from "./is-ip-allowed";
describe("isIpAllowed", () => {
diff --git a/apps/status-page/src/lib/proxy/resolve-custom-domain-rewrite.test.ts b/apps/status-page/src/lib/proxy/resolve-custom-domain-rewrite.test.ts
index c6bb0e6dc..06eec6053 100644
--- a/apps/status-page/src/lib/proxy/resolve-custom-domain-rewrite.test.ts
+++ b/apps/status-page/src/lib/proxy/resolve-custom-domain-rewrite.test.ts
@@ -1,4 +1,5 @@
import { describe, expect, test } from "bun:test";
+
import { resolveCustomDomainRewrite } from "./resolve-custom-domain-rewrite";
const page = {
diff --git a/apps/status-page/src/lib/proxy/resolve-custom-domain-rewrite.ts b/apps/status-page/src/lib/proxy/resolve-custom-domain-rewrite.ts
index 37482ed5d..f72527f0b 100644
--- a/apps/status-page/src/lib/proxy/resolve-custom-domain-rewrite.ts
+++ b/apps/status-page/src/lib/proxy/resolve-custom-domain-rewrite.ts
@@ -1,4 +1,5 @@
import type { Page } from "@openstatus/db/src/schema";
+
import { getValidSubdomain } from "../domain";
import type { Action, ComposeInput } from "./types";
diff --git a/apps/status-page/src/lib/proxy/resolve-default-rewrite.test.ts b/apps/status-page/src/lib/proxy/resolve-default-rewrite.test.ts
index ce3930a47..57f39dd23 100644
--- a/apps/status-page/src/lib/proxy/resolve-default-rewrite.test.ts
+++ b/apps/status-page/src/lib/proxy/resolve-default-rewrite.test.ts
@@ -1,4 +1,5 @@
import { describe, expect, test } from "bun:test";
+
import type { ResolvedRoute } from "../resolve-route";
import { resolveDefaultRewrite } from "./resolve-default-rewrite";
diff --git a/apps/status-page/src/lib/proxy/resolve-email-domain-action.test.ts b/apps/status-page/src/lib/proxy/resolve-email-domain-action.test.ts
index 67687ce0e..b6f878520 100644
--- a/apps/status-page/src/lib/proxy/resolve-email-domain-action.test.ts
+++ b/apps/status-page/src/lib/proxy/resolve-email-domain-action.test.ts
@@ -1,4 +1,5 @@
import { describe, expect, test } from "bun:test";
+
import type { ResolvedRoute } from "../resolve-route";
import { resolveEmailDomainAction } from "./resolve-email-domain-action";
diff --git a/apps/status-page/src/lib/proxy/resolve-email-domain-action.ts b/apps/status-page/src/lib/proxy/resolve-email-domain-action.ts
index 26ba7c817..8ee116d91 100644
--- a/apps/status-page/src/lib/proxy/resolve-email-domain-action.ts
+++ b/apps/status-page/src/lib/proxy/resolve-email-domain-action.ts
@@ -1,4 +1,5 @@
import type { Page } from "@openstatus/db/src/schema";
+
import { buildExternalPath } from "./build-external-path";
import type { Action, ComposeInput } from "./types";
diff --git a/apps/status-page/src/lib/proxy/resolve-ip-restriction-action.test.ts b/apps/status-page/src/lib/proxy/resolve-ip-restriction-action.test.ts
index 9c5f7863c..0405f8128 100644
--- a/apps/status-page/src/lib/proxy/resolve-ip-restriction-action.test.ts
+++ b/apps/status-page/src/lib/proxy/resolve-ip-restriction-action.test.ts
@@ -1,4 +1,5 @@
import { describe, expect, test } from "bun:test";
+
import type { ResolvedRoute } from "../resolve-route";
import { resolveIpRestrictionAction } from "./resolve-ip-restriction-action";
diff --git a/apps/status-page/src/lib/proxy/resolve-ip-restriction-action.ts b/apps/status-page/src/lib/proxy/resolve-ip-restriction-action.ts
index ce24ca6ba..59ffa5b1d 100644
--- a/apps/status-page/src/lib/proxy/resolve-ip-restriction-action.ts
+++ b/apps/status-page/src/lib/proxy/resolve-ip-restriction-action.ts
@@ -1,4 +1,5 @@
import type { Page } from "@openstatus/db/src/schema";
+
import { buildExternalPath } from "./build-external-path";
import { isIpAllowed } from "./is-ip-allowed";
import type { Action, ComposeInput } from "./types";
diff --git a/apps/status-page/src/lib/proxy/resolve-locale-action.test.ts b/apps/status-page/src/lib/proxy/resolve-locale-action.test.ts
index 582acf91e..946ea0b69 100644
--- a/apps/status-page/src/lib/proxy/resolve-locale-action.test.ts
+++ b/apps/status-page/src/lib/proxy/resolve-locale-action.test.ts
@@ -1,4 +1,5 @@
import { describe, expect, test } from "bun:test";
+
import type { ResolvedRoute } from "../resolve-route";
import { resolveLocaleAction } from "./resolve-locale-action";
diff --git a/apps/status-page/src/lib/proxy/resolve-locale-action.ts b/apps/status-page/src/lib/proxy/resolve-locale-action.ts
index c22c92345..37f6e30be 100644
--- a/apps/status-page/src/lib/proxy/resolve-locale-action.ts
+++ b/apps/status-page/src/lib/proxy/resolve-locale-action.ts
@@ -1,4 +1,5 @@
import type { Page } from "@openstatus/db/src/schema";
+
import { stripPrefixForExternal } from "./strip-prefix-for-external";
import type { Action, ComposeInput } from "./types";
diff --git a/apps/status-page/src/lib/proxy/resolve-password-action.test.ts b/apps/status-page/src/lib/proxy/resolve-password-action.test.ts
index bfabf41a1..5904bdf96 100644
--- a/apps/status-page/src/lib/proxy/resolve-password-action.test.ts
+++ b/apps/status-page/src/lib/proxy/resolve-password-action.test.ts
@@ -1,4 +1,5 @@
import { describe, expect, test } from "bun:test";
+
import type { ResolvedRoute } from "../resolve-route";
import { resolvePasswordAction } from "./resolve-password-action";
diff --git a/apps/status-page/src/lib/proxy/resolve-password-action.ts b/apps/status-page/src/lib/proxy/resolve-password-action.ts
index b3812728f..f8357a71f 100644
--- a/apps/status-page/src/lib/proxy/resolve-password-action.ts
+++ b/apps/status-page/src/lib/proxy/resolve-password-action.ts
@@ -1,4 +1,5 @@
import type { Page } from "@openstatus/db/src/schema";
+
import { buildExternalPath } from "./build-external-path";
import type { Action, ComposeInput } from "./types";
diff --git a/apps/status-page/src/lib/proxy/sanitize-redirect-param.test.ts b/apps/status-page/src/lib/proxy/sanitize-redirect-param.test.ts
index c61ace1e2..a50c54ebb 100644
--- a/apps/status-page/src/lib/proxy/sanitize-redirect-param.test.ts
+++ b/apps/status-page/src/lib/proxy/sanitize-redirect-param.test.ts
@@ -1,4 +1,5 @@
import { describe, expect, test } from "bun:test";
+
import { sanitizeRedirectParam } from "./sanitize-redirect-param";
describe("sanitizeRedirectParam", () => {
diff --git a/apps/status-page/src/lib/proxy/strip-prefix-for-external.test.ts b/apps/status-page/src/lib/proxy/strip-prefix-for-external.test.ts
index 0205e2f0c..b44472309 100644
--- a/apps/status-page/src/lib/proxy/strip-prefix-for-external.test.ts
+++ b/apps/status-page/src/lib/proxy/strip-prefix-for-external.test.ts
@@ -1,4 +1,5 @@
import { describe, expect, test } from "bun:test";
+
import { stripPrefixForExternal } from "./strip-prefix-for-external";
describe("stripPrefixForExternal", () => {
diff --git a/apps/status-page/src/lib/proxy/types.ts b/apps/status-page/src/lib/proxy/types.ts
index 31931ce9f..bf1032b12 100644
--- a/apps/status-page/src/lib/proxy/types.ts
+++ b/apps/status-page/src/lib/proxy/types.ts
@@ -8,6 +8,7 @@
*/
import type { Page } from "@openstatus/db/src/schema";
+
import type { ResolvedRoute } from "../resolve-route";
export type ActionType = "rewrite" | "redirect" | "passthrough";
diff --git a/apps/status-page/src/lib/resolve-pathname-prefix.test.ts b/apps/status-page/src/lib/resolve-pathname-prefix.test.ts
index 32231b9a1..867c64cce 100644
--- a/apps/status-page/src/lib/resolve-pathname-prefix.test.ts
+++ b/apps/status-page/src/lib/resolve-pathname-prefix.test.ts
@@ -1,4 +1,5 @@
import { describe, expect, test } from "bun:test";
+
import { resolvePathnamePrefix } from "./resolve-pathname-prefix";
const defaultLocale = "en";
diff --git a/apps/status-page/src/lib/resolve-route.test.ts b/apps/status-page/src/lib/resolve-route.test.ts
index 595b9066d..fa1f8e718 100644
--- a/apps/status-page/src/lib/resolve-route.test.ts
+++ b/apps/status-page/src/lib/resolve-route.test.ts
@@ -1,4 +1,5 @@
import { describe, expect, test } from "bun:test";
+
import { resolveRoute } from "./resolve-route";
describe("resolveRoute", () => {
diff --git a/apps/status-page/src/lib/resolve-route.ts b/apps/status-page/src/lib/resolve-route.ts
index 2e68ca277..88f8760c7 100644
--- a/apps/status-page/src/lib/resolve-route.ts
+++ b/apps/status-page/src/lib/resolve-route.ts
@@ -1,4 +1,5 @@
import { type Locale, defaultLocale, locales } from "@/i18n/config";
+
import { getValidSubdomain } from "./domain";
export type RouteType = "hostname" | "pathname";
diff --git a/apps/status-page/src/lib/trpc/client.tsx b/apps/status-page/src/lib/trpc/client.tsx
index 9d1609037..296c0c426 100644
--- a/apps/status-page/src/lib/trpc/client.tsx
+++ b/apps/status-page/src/lib/trpc/client.tsx
@@ -1,12 +1,12 @@
"use client";
-import { endingLink } from "@/lib/trpc/shared";
+import type { AppRouter } from "@openstatus/api";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { createTRPCClient, loggerLink } from "@trpc/client";
import { createTRPCContext } from "@trpc/tanstack-react-query";
import { useState } from "react";
-import type { AppRouter } from "@openstatus/api";
+import { endingLink } from "@/lib/trpc/shared";
export const { TRPCProvider, useTRPC, useTRPCClient } =
createTRPCContext<AppRouter>();
diff --git a/apps/status-page/src/lib/trpc/server.tsx b/apps/status-page/src/lib/trpc/server.tsx
index 44769136a..dad41dfd8 100644
--- a/apps/status-page/src/lib/trpc/server.tsx
+++ b/apps/status-page/src/lib/trpc/server.tsx
@@ -1,7 +1,5 @@
import "server-only";
-
import type { AppRouter } from "@openstatus/api";
-
import { HydrationBoundary } from "@tanstack/react-query";
import { dehydrate } from "@tanstack/react-query";
import { createTRPCClient, loggerLink } from "@trpc/client";
@@ -11,6 +9,7 @@ import {
} from "@trpc/tanstack-react-query";
import { cookies } from "next/headers";
import { cache } from "react";
+
import { makeQueryClient } from "./query-client";
import { endingLink } from "./shared";
@@ -57,21 +56,21 @@ export function HydrateClient(props: { children: React.ReactNode }) {
);
}
-// biome-ignore lint/suspicious/noExplicitAny: FIXME: remove any
+// oxlint-disable-next-line typescript/no-explicit-any -- FIXME: remove any
export function prefetch<T extends ReturnType<TRPCQueryOptions<any>>>(
queryOptions: T,
) {
const queryClient = getQueryClient();
if (queryOptions.queryKey[1]?.type === "infinite") {
- // biome-ignore lint/suspicious/noExplicitAny: FIXME: remove any
+ // oxlint-disable-next-line typescript/no-explicit-any -- FIXME: remove any
void queryClient.prefetchInfiniteQuery(queryOptions as any);
} else {
void queryClient.prefetchQuery(queryOptions);
}
}
-// biome-ignore lint/suspicious/noExplicitAny: FIXME: remove any
+// oxlint-disable-next-line typescript/no-explicit-any -- FIXME: remove any
export function batchPrefetch<T extends ReturnType<TRPCQueryOptions<any>>>(
queryOptionsArray: T[],
) {
@@ -79,7 +78,7 @@ export function batchPrefetch<T extends ReturnType<TRPCQueryOptions<any>>>(
for (const queryOptions of queryOptionsArray) {
if (queryOptions.queryKey[1]?.type === "infinite") {
- // biome-ignore lint/suspicious/noExplicitAny: FIXME: remove any
+ // oxlint-disable-next-line typescript/no-explicit-any -- FIXME: remove any
void queryClient.prefetchInfiniteQuery(queryOptions as any);
} else {
void queryClient.prefetchQuery(queryOptions);
diff --git a/apps/status-page/src/lib/trpc/shared.ts b/apps/status-page/src/lib/trpc/shared.ts
index 242d7e017..23df75bfd 100644
--- a/apps/status-page/src/lib/trpc/shared.ts
+++ b/apps/status-page/src/lib/trpc/shared.ts
@@ -1,8 +1,7 @@
+import type { AppRouter } from "@openstatus/api";
import type { HTTPBatchLinkOptions, HTTPHeaders, TRPCLink } from "@trpc/client";
import { httpBatchLink } from "@trpc/client";
import type { TRPCError } from "@trpc/server";
-
-import type { AppRouter } from "@openstatus/api";
import superjson from "superjson";
/**
@@ -60,7 +59,7 @@ export const endingLink = (opts?: {
headers: opts?.headers,
fetch: opts?.fetch,
transformer: superjson,
- // biome-ignore lint/suspicious/noExplicitAny: FIXME: remove any
+ // oxlint-disable-next-line typescript/no-explicit-any -- FIXME: remove any
} satisfies Partial<HTTPBatchLinkOptions<any>>;
const edgeLink = httpBatchLink({
diff --git a/apps/status-page/src/proxy.ts b/apps/status-page/src/proxy.ts
index 44bf9493e..cddbab15c 100644
--- a/apps/status-page/src/proxy.ts
+++ b/apps/status-page/src/proxy.ts
@@ -1,9 +1,9 @@
+import { db, sql } from "@openstatus/db";
+import { page, selectPageSchema } from "@openstatus/db/src/schema";
import { NextResponse } from "next/server";
import { auth } from "@/lib/auth";
-import { db, sql } from "@openstatus/db";
-import { page, selectPageSchema } from "@openstatus/db/src/schema";
import { createProtectedCookieKey } from "./lib/protected";
import { applyPageLocaleOverride } from "./lib/proxy/apply-page-locale-override";
import { composePageAction } from "./lib/proxy/compose-page-action";
diff --git a/apps/web/next.config.ts b/apps/web/next.config.ts
index dbc034aa9..e70c786ea 100644
--- a/apps/web/next.config.ts
+++ b/apps/web/next.config.ts
@@ -1,5 +1,6 @@
import { readFileSync } from "node:fs";
import { join } from "node:path";
+
import { withSentryConfig } from "@sentry/nextjs";
import type { NextConfig } from "next";
diff --git a/apps/web/src/app/(docs)/docs/[[...slug]]/page.tsx b/apps/web/src/app/(docs)/docs/[[...slug]]/page.tsx
index a91ecd205..6c22245fc 100644
--- a/apps/web/src/app/(docs)/docs/[[...slug]]/page.tsx
+++ b/apps/web/src/app/(docs)/docs/[[...slug]]/page.tsx
@@ -1,3 +1,6 @@
+import type { Metadata } from "next";
+import { notFound } from "next/navigation";
+
import {
ContentBoxDescription,
ContentBoxLink,
@@ -34,8 +37,6 @@ import {
getJsonLDOrganization,
getJsonLDTechArticle,
} from "@/lib/metadata/structured-data";
-import type { Metadata } from "next";
-import { notFound } from "next/navigation";
export const dynamicParams = false;
@@ -200,12 +201,12 @@ export default async function DocsPage({
<CustomMDX source={doc.content} />
</article>
<div className="space-y-4">
- <div className="flex flex-row flex-wrap justify-between gap-x-4 gap-y-2 text-muted-foreground text-sm">
+ <div className="text-muted-foreground flex flex-row flex-wrap justify-between gap-x-4 gap-y-2 text-sm">
<a
href={`${EDIT_BASE}/${joined}.mdx`}
target="_blank"
rel="noopener noreferrer"
- className="ease transition-colors duration-150 hover:text-foreground motion-reduce:transition-none"
+ className="ease hover:text-foreground transition-colors duration-150 motion-reduce:transition-none"
>
Edit this page on GitHub
</a>
diff --git a/apps/web/src/app/(landing)/[slug]/page.tsx b/apps/web/src/app/(landing)/[slug]/page.tsx
index 369348291..2d7b65cfa 100644
--- a/apps/web/src/app/(landing)/[slug]/page.tsx
+++ b/apps/web/src/app/(landing)/[slug]/page.tsx
@@ -1,3 +1,6 @@
+import type { Metadata } from "next";
+import { notFound } from "next/navigation";
+
import { CustomMDX } from "@/content/mdx";
import { getMainPages } from "@/content/utils";
import { JsonLd } from "@/lib/metadata/json-ld";
@@ -11,8 +14,6 @@ import {
getJsonLDSoftwareApplication,
getJsonLDWebPage,
} from "@/lib/metadata/structured-data";
-import type { Metadata } from "next";
-import { notFound } from "next/navigation";
export const dynamicParams = false;
diff --git a/apps/web/src/app/(landing)/blog/[slug]/page.tsx b/apps/web/src/app/(landing)/blog/[slug]/page.tsx
index 97ec4cea2..6e199160e 100644
--- a/apps/web/src/app/(landing)/blog/[slug]/page.tsx
+++ b/apps/web/src/app/(landing)/blog/[slug]/page.tsx
@@ -1,3 +1,7 @@
+import type { Metadata } from "next";
+import Image from "next/image";
+import { notFound } from "next/navigation";
+
import { CustomMDX } from "@/content/mdx";
import { getBlogPosts } from "@/content/utils";
import { JsonLd } from "@/lib/metadata/json-ld";
@@ -11,9 +15,7 @@ import {
getJsonLDOrganization,
getJsonLDWebPage,
} from "@/lib/metadata/structured-data";
-import type { Metadata } from "next";
-import Image from "next/image";
-import { notFound } from "next/navigation";
+
import { ContentMetadata } from "../../content-metadata";
import { ContentPagination } from "../../content-pagination";
@@ -81,7 +83,7 @@ export default async function Blog({
<h1>{post.metadata.title}</h1>
<ContentMetadata data={post} />
{post.metadata.image ? (
- <div className="relative aspect-video w-full overflow-hidden border border-border">
+ <div className="border-border relative aspect-video w-full overflow-hidden border">
<Image
src={post.metadata.image}
alt={post.metadata.title}
diff --git a/apps/web/src/app/(landing)/blog/category/[slug]/page.tsx b/apps/web/src/app/(landing)/blog/category/[slug]/page.tsx
index 9b12a954f..553c7cf1f 100644
--- a/apps/web/src/app/(landing)/blog/category/[slug]/page.tsx
+++ b/apps/web/src/app/(landing)/blog/category/[slug]/page.tsx
@@ -1,3 +1,5 @@
+import type { Metadata } from "next";
+
import { ContentCategory } from "@/app/(landing)/content-category";
import { ContentList } from "@/app/(landing)/content-list";
import { getBlogPosts } from "@/content/utils";
@@ -14,7 +16,6 @@ import {
getJsonLDItemList,
getJsonLDOrganization,
} from "@/lib/metadata/structured-data";
-import type { Metadata } from "next";
export async function generateMetadata({
params,
diff --git a/apps/web/src/app/(landing)/blog/category/page.tsx b/apps/web/src/app/(landing)/blog/category/page.tsx
index be9615e08..266e29865 100644
--- a/apps/web/src/app/(landing)/blog/category/page.tsx
+++ b/apps/web/src/app/(landing)/blog/category/page.tsx
@@ -1,3 +1,5 @@
+import type { Metadata } from "next";
+
import { components } from "@/content/mdx";
import { getBlogPosts } from "@/content/utils";
import {
@@ -5,7 +7,7 @@ import {
ogMetadata,
twitterMetadata,
} from "@/lib/metadata/shared-metadata";
-import type { Metadata } from "next";
+
import { ContentBoxLink, ContentBoxTitle } from "../../content-box";
const TITLE = "Blog Categories";
diff --git a/apps/web/src/app/(landing)/blog/feed.xml/route.ts b/apps/web/src/app/(landing)/blog/feed.xml/route.ts
index bcb6baf93..e81229429 100644
--- a/apps/web/src/app/(landing)/blog/feed.xml/route.ts
+++ b/apps/web/src/app/(landing)/blog/feed.xml/route.ts
@@ -1,7 +1,8 @@
-import { getBlogPosts } from "@/content/utils";
import { Feed } from "feed";
import { getAuthor } from "src/data/author";
+import { getBlogPosts } from "@/content/utils";
+
export async function GET() {
const feed = new Feed({
id: "https://www.openstatus.dev/blog",
diff --git a/apps/web/src/app/(landing)/blog/page.tsx b/apps/web/src/app/(landing)/blog/page.tsx
index 50519d217..18bd6d31a 100644
--- a/apps/web/src/app/(landing)/blog/page.tsx
+++ b/apps/web/src/app/(landing)/blog/page.tsx
@@ -1,3 +1,6 @@
+import type { Metadata } from "next";
+import Link from "next/link";
+
import { getBlogPosts } from "@/content/utils";
import { JsonLd } from "@/lib/metadata/json-ld";
import {
@@ -12,8 +15,7 @@ import {
getJsonLDItemList,
getJsonLDOrganization,
} from "@/lib/metadata/structured-data";
-import type { Metadata } from "next";
-import Link from "next/link";
+
import { ContentCategory } from "../content-category";
import { ContentList } from "../content-list";
diff --git a/apps/web/src/app/(landing)/changelog/[slug]/page.tsx b/apps/web/src/app/(landing)/changelog/[slug]/page.tsx
index 21347acc1..cecfa11b9 100644
--- a/apps/web/src/app/(landing)/changelog/[slug]/page.tsx
+++ b/apps/web/src/app/(landing)/changelog/[slug]/page.tsx
@@ -1,3 +1,7 @@
+import type { Metadata } from "next";
+import Image from "next/image";
+import { notFound } from "next/navigation";
+
import { CustomMDX } from "@/content/mdx";
import { getChangelogPosts } from "@/content/utils";
import { JsonLd } from "@/lib/metadata/json-ld";
@@ -11,9 +15,7 @@ import {
getJsonLDOrganization,
getJsonLDWebPage,
} from "@/lib/metadata/structured-data";
-import type { Metadata } from "next";
-import Image from "next/image";
-import { notFound } from "next/navigation";
+
import { ContentMetadata } from "../../content-metadata";
import { ContentPagination } from "../../content-pagination";
@@ -81,7 +83,7 @@ export default async function Changelog({
<h1>{post.metadata.title}</h1>
<ContentMetadata data={post} />
{post.metadata.image ? (
- <div className="relative aspect-video w-full overflow-hidden border border-border">
+ <div className="border-border relative aspect-video w-full overflow-hidden border">
<Image
src={post.metadata.image}
alt={post.metadata.title}
diff --git a/apps/web/src/app/(landing)/changelog/category/[slug]/page.tsx b/apps/web/src/app/(landing)/changelog/category/[slug]/page.tsx
index 6f5955b82..d970a69d0 100644
--- a/apps/web/src/app/(landing)/changelog/category/[slug]/page.tsx
+++ b/apps/web/src/app/(landing)/changelog/category/[slug]/page.tsx
@@ -1,3 +1,5 @@
+import type { Metadata } from "next";
+
import { ContentCategory } from "@/app/(landing)/content-category";
import { ContentList } from "@/app/(landing)/content-list";
import { getChangelogPosts } from "@/content/utils";
@@ -14,7 +16,6 @@ import {
getJsonLDItemList,
getJsonLDOrganization,
} from "@/lib/metadata/structured-data";
-import type { Metadata } from "next";
export async function generateMetadata({
params,
diff --git a/apps/web/src/app/(landing)/changelog/category/page.tsx b/apps/web/src/app/(landing)/changelog/category/page.tsx
index 5960d6312..d9472c13a 100644
--- a/apps/web/src/app/(landing)/changelog/category/page.tsx
+++ b/apps/web/src/app/(landing)/changelog/category/page.tsx
@@ -1,3 +1,5 @@
+import type { Metadata } from "next";
+
import { components } from "@/content/mdx";
import { getChangelogPosts } from "@/content/utils";
import {
@@ -5,7 +7,7 @@ import {
ogMetadata,
twitterMetadata,
} from "@/lib/metadata/shared-metadata";
-import type { Metadata } from "next";
+
import { ContentBoxLink, ContentBoxTitle } from "../../content-box";
const TITLE = "Changelog Categories";
diff --git a/apps/web/src/app/(landing)/changelog/feed.xml/route.ts b/apps/web/src/app/(landing)/changelog/feed.xml/route.ts
index 4357e4853..d48b54bcf 100644
--- a/apps/web/src/app/(landing)/changelog/feed.xml/route.ts
+++ b/apps/web/src/app/(landing)/changelog/feed.xml/route.ts
@@ -1,7 +1,8 @@
-import { getChangelogPosts } from "@/content/utils";
import { Feed } from "feed";
import { getAuthor } from "src/data/author";
+import { getChangelogPosts } from "@/content/utils";
+
export async function GET() {
const feed = new Feed({
id: "https://www.openstatus.dev/changelog",
diff --git a/apps/web/src/app/(landing)/changelog/page.tsx b/apps/web/src/app/(landing)/changelog/page.tsx
index 66843364b..ad57acd86 100644
--- a/apps/web/src/app/(landing)/changelog/page.tsx
+++ b/apps/web/src/app/(landing)/changelog/page.tsx
@@ -1,3 +1,6 @@
+import type { Metadata } from "next";
+import Link from "next/link";
+
import { getChangelogPosts } from "@/content/utils";
import { JsonLd } from "@/lib/metadata/json-ld";
import {
@@ -12,8 +15,7 @@ import {
getJsonLDItemList,
getJsonLDOrganization,
} from "@/lib/metadata/structured-data";
-import type { Metadata } from "next";
-import Link from "next/link";
+
import { ContentCategory } from "../content-category";
import { ContentList } from "../content-list";
diff --git a/apps/web/src/app/(landing)/compare/[slug]/page.tsx b/apps/web/src/app/(landing)/compare/[slug]/page.tsx
index 3ddd956e0..a27bb2100 100644
--- a/apps/web/src/app/(landing)/compare/[slug]/page.tsx
+++ b/apps/web/src/app/(landing)/compare/[slug]/page.tsx
@@ -1,3 +1,6 @@
+import type { Metadata } from "next";
+import { notFound } from "next/navigation";
+
import { ContentPagination } from "@/app/(landing)/content-pagination";
import { CustomMDX } from "@/content/mdx";
import { getComparePages } from "@/content/utils";
@@ -12,8 +15,6 @@ import {
getJsonLDOrganization,
getJsonLDWebPage,
} from "@/lib/metadata/structured-data";
-import type { Metadata } from "next";
-import { notFound } from "next/navigation";
export const dynamicParams = false;
diff --git a/apps/web/src/app/(landing)/compare/page.tsx b/apps/web/src/app/(landing)/compare/page.tsx
index 6a13a4898..7bc2f2b1e 100644
--- a/apps/web/src/app/(landing)/compare/page.tsx
+++ b/apps/web/src/app/(landing)/compare/page.tsx
@@ -1,3 +1,5 @@
+import type { Metadata } from "next";
+
import { components } from "@/content/mdx";
import { getComparePages } from "@/content/utils";
import { JsonLd } from "@/lib/metadata/json-ld";
@@ -13,7 +15,7 @@ import {
getJsonLDItemList,
getJsonLDOrganization,
} from "@/lib/metadata/structured-data";
-import type { Metadata } from "next";
+
import {
ContentBoxDescription,
ContentBoxLink,
diff --git a/apps/web/src/app/(landing)/content-box-image.tsx b/apps/web/src/app/(landing)/content-box-image.tsx
index 11e10a4fa..4d1ff74a6 100644
--- a/apps/web/src/app/(landing)/content-box-image.tsx
+++ b/apps/web/src/app/(landing)/content-box-image.tsx
@@ -1,6 +1,7 @@
+import type React from "react";
+
import { CustomImage } from "@/content/mdx-components/custom-image";
import { cn } from "@/lib/utils";
-import type React from "react";
export function ContentBoxImage({
className,
@@ -8,7 +9,7 @@ export function ContentBoxImage({
...props
}: React.ComponentProps<typeof CustomImage>) {
return (
- <div className="-mx-4 mb-3 border-border border-b px-4 pb-3">
+ <div className="border-border -mx-4 mb-3 border-b px-4 pb-3">
<CustomImage
disableZoom={disableZoom}
className={cn("h-8 w-auto", className)}
diff --git a/apps/web/src/app/(landing)/content-box.tsx b/apps/web/src/app/(landing)/content-box.tsx
index c54c166c7..6cfbdea26 100644
--- a/apps/web/src/app/(landing)/content-box.tsx
+++ b/apps/web/src/app/(landing)/content-box.tsx
@@ -1,7 +1,8 @@
-import { cn } from "@/lib/utils";
import Link from "next/link";
import type React from "react";
+import { cn } from "@/lib/utils";
+
export function ContentBoxLink({
href,
children,
@@ -18,7 +19,7 @@ export function ContentBoxLink({
href={href}
target={target ?? (isExternal ? "_blank" : undefined)}
rel={rel ?? (isExternal ? "noopener noreferrer" : undefined)}
- className={cn("group no-underline! hover:bg-muted", className)}
+ className={cn("group hover:bg-muted no-underline!", className)}
{...props}
>
{children}
@@ -34,7 +35,7 @@ export function ContentBoxContainer({
return (
<div
className={cn(
- "border border-border p-4",
+ "border-border border p-4",
"[&>*:first-child]:!mt-0 [&>*:last-child]:!mb-0",
className,
)}
@@ -82,7 +83,7 @@ export function ContentBoxUrl({
return (
<div
className={cn(
- "underline decoration-2 decoration-muted-foreground/50 underline-offset-2 transition-all group-hover:decoration-muted-foreground",
+ "decoration-muted-foreground/50 group-hover:decoration-muted-foreground underline decoration-2 underline-offset-2 transition-all",
className,
)}
{...props}
diff --git a/apps/web/src/app/(landing)/content-category.tsx b/apps/web/src/app/(landing)/content-category.tsx
index e3c290682..826a7c5dc 100644
--- a/apps/web/src/app/(landing)/content-category.tsx
+++ b/apps/web/src/app/(landing)/content-category.tsx
@@ -1,7 +1,8 @@
-import type { MDXData } from "@/content/utils";
import Link from "next/link";
import { Fragment } from "react";
+import type { MDXData } from "@/content/utils";
+
export function ContentCategory({
data,
prefix,
diff --git a/apps/web/src/app/(landing)/content-list.tsx b/apps/web/src/app/(landing)/content-list.tsx
index 251e5e597..1a3e08fb1 100644
--- a/apps/web/src/app/(landing)/content-list.tsx
+++ b/apps/web/src/app/(landing)/content-list.tsx
@@ -1,6 +1,7 @@
+import Link from "next/link";
+
import { type MDXData, formatDate } from "@/content/utils";
import { cn } from "@/lib/utils";
-import Link from "next/link";
export function ContentList({
data,
@@ -83,7 +84,7 @@ export function ContentListLink({
return (
<Link
href={href}
- className={cn("no-underline! flex flex-col hover:bg-muted", className)}
+ className={cn("hover:bg-muted flex flex-col no-underline!", className)}
{...props}
>
{children}
@@ -98,7 +99,7 @@ export function ContentListItemTitle({
}: React.ComponentProps<"span">) {
return (
<span
- className={cn("truncate text-foreground tracking-tight", className)}
+ className={cn("text-foreground truncate tracking-tight", className)}
{...props}
>
{children}
@@ -126,7 +127,7 @@ export function ContentListItemDate({
return (
<span
className={cn(
- "text-nowrap text-muted-foreground tabular-nums",
+ "text-muted-foreground text-nowrap tabular-nums",
className,
)}
{...props}
diff --git a/apps/web/src/app/(landing)/content-metadata.tsx b/apps/web/src/app/(landing)/content-metadata.tsx
index 25c890074..02fd8bea7 100644
--- a/apps/web/src/app/(landing)/content-metadata.tsx
+++ b/apps/web/src/app/(landing)/content-metadata.tsx
@@ -3,7 +3,7 @@ import { getAuthor } from "@/data/author";
export function ContentMetadata({ data }: { data: MDXData }) {
return (
- <p className="flex flex-wrap items-center gap-2.5 divide-x divide-border text-muted-foreground">
+ <p className="divide-border text-muted-foreground flex flex-wrap items-center gap-2.5 divide-x">
{formatDate(data.metadata.publishedAt)} | by{" "}
<Author author={data.metadata.author} /> | [{data.metadata.category}]
</p>
diff --git a/apps/web/src/app/(landing)/content-pagination.tsx b/apps/web/src/app/(landing)/content-pagination.tsx
index 46de294bd..710feed5c 100644
--- a/apps/web/src/app/(landing)/content-pagination.tsx
+++ b/apps/web/src/app/(landing)/content-pagination.tsx
@@ -1,6 +1,7 @@
-import type { MDXData } from "@/content/utils";
import Link from "next/link";
+import type { MDXData } from "@/content/utils";
+
export function ContentPagination({
prev,
next,
@@ -10,11 +11,11 @@ export function ContentPagination({
}) {
if (!prev && !next) return null;
return (
- <div className="[&>a]:ease grid grid-cols-2 gap-px border border-border bg-border [&>*]:bg-background [&>a]:p-4 [&>a]:transition-colors [&>a]:duration-150 [&>a]:hover:bg-muted [&>a]:motion-reduce:transition-none">
+ <div className="[&>a]:ease border-border bg-border [&>*]:bg-background [&>a]:hover:bg-muted grid grid-cols-2 gap-px border [&>a]:p-4 [&>a]:transition-colors [&>a]:duration-150 [&>a]:motion-reduce:transition-none">
{prev ? (
- <Link href={prev.href} className="no-underline! ">
- <span className="block text-muted-foreground">Previous</span>
- <span className="font-medium text-foreground">
+ <Link href={prev.href} className="no-underline!">
+ <span className="text-muted-foreground block">Previous</span>
+ <span className="text-foreground font-medium">
{prev.metadata.title}
</span>
</Link>
@@ -22,9 +23,9 @@ export function ContentPagination({
<span />
)}
{next ? (
- <Link href={next.href} className="no-underline! text-right">
- <span className="block text-muted-foreground">Next</span>
- <span className="font-medium text-foreground">
+ <Link href={next.href} className="text-right no-underline!">
+ <span className="text-muted-foreground block">Next</span>
+ <span className="text-foreground font-medium">
{next.metadata.title}
</span>
</Link>
diff --git a/apps/web/src/app/(landing)/customers/[slug]/page.tsx b/apps/web/src/app/(landing)/customers/[slug]/page.tsx
index 40bfc8557..8b796ffef 100644
--- a/apps/web/src/app/(landing)/customers/[slug]/page.tsx
+++ b/apps/web/src/app/(landing)/customers/[slug]/page.tsx
@@ -1,3 +1,6 @@
+import type { Metadata } from "next";
+import { notFound } from "next/navigation";
+
import { CustomMDX } from "@/content/mdx";
import { CustomImage } from "@/content/mdx-components/custom-image";
import { getCustomerPages } from "@/content/utils";
@@ -10,8 +13,6 @@ import {
getJsonLDOrganization,
getJsonLDWebPage,
} from "@/lib/metadata/structured-data";
-import type { Metadata } from "next";
-import { notFound } from "next/navigation";
export const dynamicParams = false;
diff --git a/apps/web/src/app/(landing)/customers/page.tsx b/apps/web/src/app/(landing)/customers/page.tsx
index 0e0a3f07c..b810b8aa4 100644
--- a/apps/web/src/app/(landing)/customers/page.tsx
+++ b/apps/web/src/app/(landing)/customers/page.tsx
@@ -1,3 +1,5 @@
+import type { Metadata } from "next";
+
import { components } from "@/content/mdx";
import { getCustomerPages } from "@/content/utils";
import { JsonLd } from "@/lib/metadata/json-ld";
@@ -13,7 +15,7 @@ import {
getJsonLDItemList,
getJsonLDOrganization,
} from "@/lib/metadata/structured-data";
-import type { Metadata } from "next";
+
import {
ContentBoxDescription,
ContentBoxLink,
diff --git a/apps/web/src/app/(landing)/guides/[slug]/page.tsx b/apps/web/src/app/(landing)/guides/[slug]/page.tsx
index 2ecaf7660..4e042894b 100644
--- a/apps/web/src/app/(landing)/guides/[slug]/page.tsx
+++ b/apps/web/src/app/(landing)/guides/[slug]/page.tsx
@@ -1,3 +1,7 @@
+import type { Metadata } from "next";
+import Image from "next/image";
+import { notFound } from "next/navigation";
+
import { CustomMDX } from "@/content/mdx";
import { getGuides } from "@/content/utils";
import { JsonLd } from "@/lib/metadata/json-ld";
@@ -11,9 +15,7 @@ import {
getJsonLDOrganization,
getJsonLDWebPage,
} from "@/lib/metadata/structured-data";
-import type { Metadata } from "next";
-import Image from "next/image";
-import { notFound } from "next/navigation";
+
import { ContentMetadata } from "../../content-metadata";
import { ContentPagination } from "../../content-pagination";
@@ -81,7 +83,7 @@ export default async function Guide({
<h1>{post.metadata.title}</h1>
<ContentMetadata data={post} />
{post.metadata.image ? (
- <div className="relative aspect-video w-full overflow-hidden border border-border">
+ <div className="border-border relative aspect-video w-full overflow-hidden border">
<Image
src={post.metadata.image}
alt={post.metadata.title}
diff --git a/apps/web/src/app/(landing)/guides/category/[slug]/page.tsx b/apps/web/src/app/(landing)/guides/category/[slug]/page.tsx
index d7229101f..10f795915 100644
--- a/apps/web/src/app/(landing)/guides/category/[slug]/page.tsx
+++ b/apps/web/src/app/(landing)/guides/category/[slug]/page.tsx
@@ -1,3 +1,5 @@
+import type { Metadata } from "next";
+
import { ContentCategory } from "@/app/(landing)/content-category";
import { ContentList } from "@/app/(landing)/content-list";
import { getGuides } from "@/content/utils";
@@ -14,7 +16,6 @@ import {
getJsonLDItemList,
getJsonLDOrganization,
} from "@/lib/metadata/structured-data";
-import type { Metadata } from "next";
export async function generateMetadata({
params,
diff --git a/apps/web/src/app/(landing)/guides/category/page.tsx b/apps/web/src/app/(landing)/guides/category/page.tsx
index 13f8aa586..9660aa4c9 100644
--- a/apps/web/src/app/(landing)/guides/category/page.tsx
+++ b/apps/web/src/app/(landing)/guides/category/page.tsx
@@ -1,3 +1,5 @@
+import type { Metadata } from "next";
+
import { components } from "@/content/mdx";
import { getGuides } from "@/content/utils";
import {
@@ -5,7 +7,7 @@ import {
ogMetadata,
twitterMetadata,
} from "@/lib/metadata/shared-metadata";
-import type { Metadata } from "next";
+
import { ContentBoxLink, ContentBoxTitle } from "../../content-box";
const TITLE = "Guides Categories";
diff --git a/apps/web/src/app/(landing)/guides/page.tsx b/apps/web/src/app/(landing)/guides/page.tsx
index 53f6d0806..a66d5158b 100644
--- a/apps/web/src/app/(landing)/guides/page.tsx
+++ b/apps/web/src/app/(landing)/guides/page.tsx
@@ -1,3 +1,5 @@
+import type { Metadata } from "next";
+
import { getGuides } from "@/content/utils";
import { JsonLd } from "@/lib/metadata/json-ld";
import {
@@ -12,7 +14,7 @@ import {
getJsonLDItemList,
getJsonLDOrganization,
} from "@/lib/metadata/structured-data";
-import type { Metadata } from "next";
+
import { ContentCategory } from "../content-category";
import { ContentList } from "../content-list";
diff --git a/apps/web/src/app/(landing)/oss-friends/page.tsx b/apps/web/src/app/(landing)/oss-friends/page.tsx
index 948727342..ed2928820 100644
--- a/apps/web/src/app/(landing)/oss-friends/page.tsx
+++ b/apps/web/src/app/(landing)/oss-friends/page.tsx
@@ -1,11 +1,13 @@
+import type { Metadata } from "next";
+import { z } from "zod";
+
import { components } from "@/content/mdx";
import {
defaultMetadata,
ogMetadata,
twitterMetadata,
} from "@/lib/metadata/shared-metadata";
-import type { Metadata } from "next";
-import { z } from "zod";
+
import {
ContentBoxDescription,
ContentBoxLink,
diff --git a/apps/web/src/app/(landing)/page.tsx b/apps/web/src/app/(landing)/page.tsx
index 9aa1584da..2d11430f7 100644
--- a/apps/web/src/app/(landing)/page.tsx
+++ b/apps/web/src/app/(landing)/page.tsx
@@ -1,3 +1,5 @@
+import type { Metadata } from "next";
+
import { CustomMDX } from "@/content/mdx";
import { getHomePage } from "@/content/utils";
import { JsonLd } from "@/lib/metadata/json-ld";
@@ -11,7 +13,6 @@ import {
getJsonLDSoftwareApplication,
getJsonLDWebPage,
} from "@/lib/metadata/structured-data";
-import type { Metadata } from "next";
export const metadata: Metadata = defaultMetadata;
diff --git a/apps/web/src/app/(landing)/play/checker/[slug]/client.tsx b/apps/web/src/app/(landing)/play/checker/[slug]/client.tsx
index 78c7033b2..1f23b6849 100644
--- a/apps/web/src/app/(landing)/play/checker/[slug]/client.tsx
+++ b/apps/web/src/app/(landing)/play/checker/[slug]/client.tsx
@@ -1,13 +1,5 @@
"use client";
-import { IconCloudProvider } from "@/components/icon-cloud-provider";
-import {
- type CachedRegionChecker,
- getTimingPhases,
- regionFormatter,
- timestampFormatter,
-} from "@/lib/checker/utils";
-import { cn } from "@/lib/utils";
import { type Region, regionDict } from "@openstatus/regions";
import { Button } from "@openstatus/ui/components/ui/button";
import {
@@ -26,6 +18,16 @@ import {
TabsTrigger,
} from "@openstatus/ui/components/ui/tabs";
import { useState } from "react";
+
+import { IconCloudProvider } from "@/components/icon-cloud-provider";
+import {
+ type CachedRegionChecker,
+ getTimingPhases,
+ regionFormatter,
+ timestampFormatter,
+} from "@/lib/checker/utils";
+import { cn } from "@/lib/utils";
+
import { handleExportCSV } from "../utils";
const STATUS_CODES = {
@@ -133,7 +135,7 @@ export function Table({ data }: TableProps) {
<tr>
<td
colSpan={8}
- className="border border-border border-dashed text-center"
+ className="border-border border border-dashed text-center"
>
No data available
</td>
@@ -271,14 +273,14 @@ function InfoDialog({
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">
+ <DialogContent className="max-h-[90vh] overflow-x-hidden overflow-y-auto 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">
+ <div className="prose dark:prose-invert max-w-none min-w-0">
<table>
<tbody>
<tr>
@@ -345,7 +347,7 @@ function InfoDialog({
<tbody>
{Object.entries(headers).map(([key, value]) => (
<tr key={key}>
- <td className="whitespace-nowrap font-medium">{key}</td>
+ <td className="font-medium whitespace-nowrap">{key}</td>
<td className="max-w-md break-words">{value}</td>
</tr>
))}
@@ -355,7 +357,7 @@ function InfoDialog({
</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">
+ <pre className="my-0! break-words whitespace-pre-wrap">
{Object.entries(headers).map(([key, value]) => (
<code key={key} className="block break-words">
{key}: {value}
diff --git a/apps/web/src/app/(landing)/play/checker/[slug]/page.tsx b/apps/web/src/app/(landing)/play/checker/[slug]/page.tsx
index 1a2df5209..8cc463d0c 100644
--- a/apps/web/src/app/(landing)/play/checker/[slug]/page.tsx
+++ b/apps/web/src/app/(landing)/play/checker/[slug]/page.tsx
@@ -1,3 +1,6 @@
+import type { Metadata } from "next";
+import { redirect } from "next/navigation";
+
import { CustomMDX } from "@/content/mdx";
import { getToolsPage } from "@/content/utils";
import { mockCheckAllRegions } from "@/lib/checker/mock";
@@ -13,8 +16,7 @@ import {
getJsonLDBreadcrumbList,
getJsonLDWebPage,
} from "@/lib/metadata/structured-data";
-import type { Metadata } from "next";
-import { redirect } from "next/navigation";
+
import { Table } from "./client";
function formatDate(date: Date) {
diff --git a/apps/web/src/app/(landing)/play/checker/api/route.ts b/apps/web/src/app/(landing)/play/checker/api/route.ts
index 07d936e1c..a9ce8c99e 100644
--- a/apps/web/src/app/(landing)/play/checker/api/route.ts
+++ b/apps/web/src/app/(landing)/play/checker/api/route.ts
@@ -1,3 +1,8 @@
+import { Events, setupAnalytics } from "@openstatus/analytics";
+import { AVAILABLE_REGIONS } from "@openstatus/regions";
+import { after } from "next/server";
+import { z } from "zod";
+
import { mockCheckRegion } from "@/lib/checker/mock";
import {
type Method,
@@ -9,10 +14,6 @@ import {
import { getClientIP, ratelimit } from "@/lib/ratelimit";
import { iteratorToStream, yieldMany } from "@/lib/stream";
import { wait } from "@/lib/utils";
-import { Events, setupAnalytics } from "@openstatus/analytics";
-import { AVAILABLE_REGIONS } from "@openstatus/regions";
-import { after } from "next/server";
-import { z } from "zod";
export const runtime = "edge";
diff --git a/apps/web/src/app/(landing)/play/checker/client.tsx b/apps/web/src/app/(landing)/play/checker/client.tsx
index 29600de5c..471ad5795 100644
--- a/apps/web/src/app/(landing)/play/checker/client.tsx
+++ b/apps/web/src/app/(landing)/play/checker/client.tsx
@@ -1,15 +1,5 @@
"use client";
-import { IconCloudProvider } from "@/components/icon-cloud-provider";
-import {
- type Timing,
- is32CharHex,
- latencyFormatter,
- regionCheckerSchema,
- regionFormatter,
-} from "@/lib/checker/utils";
-import { toast } from "@/lib/toast";
-import { cn, notEmpty } from "@/lib/utils";
import {
AVAILABLE_REGIONS,
type Region,
@@ -34,6 +24,18 @@ import {
useState,
useTransition,
} from "react";
+
+import { IconCloudProvider } from "@/components/icon-cloud-provider";
+import {
+ type Timing,
+ is32CharHex,
+ latencyFormatter,
+ regionCheckerSchema,
+ regionFormatter,
+} from "@/lib/checker/utils";
+import { toast } from "@/lib/toast";
+import { cn, notEmpty } from "@/lib/utils";
+
import { searchParamsParsers } from "./search-params";
import { handleExportCSV } from "./utils";
@@ -319,11 +321,11 @@ export function ResultTable() {
<td>
<IconCloudProvider
provider="globe"
- className="size-4 text-muted-foreground"
+ className="text-muted-foreground size-4"
/>
</td>
<td>
- <div className="size-4 bg-muted-foreground" />
+ <div className="bg-muted-foreground size-4" />
</td>
<td>
<br />
@@ -414,7 +416,7 @@ export function DetailsButtonLink() {
>
<Link
href={`/play/checker/${id}`}
- className="no-underline! w-full text-background!"
+ className="text-background! w-full no-underline!"
>
Response details
</Link>
diff --git a/apps/web/src/app/(landing)/play/checker/page.tsx b/apps/web/src/app/(landing)/play/checker/page.tsx
index 6ff25c85c..72a35442a 100644
--- a/apps/web/src/app/(landing)/play/checker/page.tsx
+++ b/apps/web/src/app/(landing)/play/checker/page.tsx
@@ -1,3 +1,5 @@
+import type { Metadata } from "next";
+
import { CustomMDX } from "@/content/mdx";
import { getToolsPage } from "@/content/utils";
import { mockCheckAllRegions } from "@/lib/checker/mock";
@@ -10,7 +12,7 @@ import {
getJsonLDFAQPage,
getJsonLDWebPage,
} from "@/lib/metadata/structured-data";
-import type { Metadata } from "next";
+
import {
CheckerProvider,
DetailsButtonLink,
diff --git a/apps/web/src/app/(landing)/play/checker/utils.ts b/apps/web/src/app/(landing)/play/checker/utils.ts
index d46cc2f83..057b61343 100644
--- a/apps/web/src/app/(landing)/play/checker/utils.ts
+++ b/apps/web/src/app/(landing)/play/checker/utils.ts
@@ -1,6 +1,7 @@
+import { type Region, regionDict } from "@openstatus/regions";
+
import { type Timing, getTimingPhases } from "@/lib/checker/utils";
import { toast } from "@/lib/toast";
-import { type Region, regionDict } from "@openstatus/regions";
export type CheckerRow = {
region: string;
diff --git a/apps/web/src/app/(landing)/play/curl/page.tsx b/apps/web/src/app/(landing)/play/curl/page.tsx
index 02f178318..860cdfdca 100644
--- a/apps/web/src/app/(landing)/play/curl/page.tsx
+++ b/apps/web/src/app/(landing)/play/curl/page.tsx
@@ -1,3 +1,5 @@
+import type { Metadata } from "next";
+
import { CustomMDX } from "@/content/mdx";
import { getToolsPage } from "@/content/utils";
import { JsonLd } from "@/lib/metadata/json-ld";
@@ -8,7 +10,7 @@ import {
getJsonLDFAQPage,
getJsonLDWebPage,
} from "@/lib/metadata/structured-data";
-import type { Metadata } from "next";
+
import { Form } from "./client";
export function generateMetadata(): Metadata {
diff --git a/apps/web/src/app/(landing)/play/mcp-health/[id]/client.tsx b/apps/web/src/app/(landing)/play/mcp-health/[id]/client.tsx
index ed66e54c8..5df37359c 100644
--- a/apps/web/src/app/(landing)/play/mcp-health/[id]/client.tsx
+++ b/apps/web/src/app/(landing)/play/mcp-health/[id]/client.tsx
@@ -1,6 +1,7 @@
"use client";
import type { HealthCheckReport } from "@/lib/mcp/health-check";
+
import { ResultTableStatic, ToolsTableView, VerdictBarStatic } from "../client";
export function Table({ data }: { data: HealthCheckReport }) {
diff --git a/apps/web/src/app/(landing)/play/mcp-health/[id]/page.tsx b/apps/web/src/app/(landing)/play/mcp-health/[id]/page.tsx
index dde1efc7e..d1d9678e1 100644
--- a/apps/web/src/app/(landing)/play/mcp-health/[id]/page.tsx
+++ b/apps/web/src/app/(landing)/play/mcp-health/[id]/page.tsx
@@ -1,3 +1,6 @@
+import type { Metadata } from "next";
+import { redirect } from "next/navigation";
+
import { CustomMDX } from "@/content/mdx";
import { getToolsPage } from "@/content/utils";
import { getHealthReportById } from "@/lib/mcp/health-check";
@@ -8,8 +11,7 @@ import {
getJsonLDBreadcrumbList,
getJsonLDWebPage,
} from "@/lib/metadata/structured-data";
-import type { Metadata } from "next";
-import { redirect } from "next/navigation";
+
import { VERDICT_LABEL, formatTimestamp } from "../utils";
import { Table } from "./client";
diff --git a/apps/web/src/app/(landing)/play/mcp-health/api/route.ts b/apps/web/src/app/(landing)/play/mcp-health/api/route.ts
index 5a33b20b6..fb81a631f 100644
--- a/apps/web/src/app/(landing)/play/mcp-health/api/route.ts
+++ b/apps/web/src/app/(landing)/play/mcp-health/api/route.ts
@@ -1,3 +1,8 @@
+import { Events, setupAnalytics } from "@openstatus/analytics";
+import { assertSafeUrlSync } from "@openstatus/utils";
+import { after } from "next/server";
+import { z } from "zod";
+
import {
type HealthCheckReport,
normalizeUrlForStorage,
@@ -6,10 +11,6 @@ import {
toPersistedReport,
} from "@/lib/mcp/health-check";
import { getClientIP, ratelimit } from "@/lib/ratelimit";
-import { Events, setupAnalytics } from "@openstatus/analytics";
-import { assertSafeUrlSync } from "@openstatus/utils";
-import { after } from "next/server";
-import { z } from "zod";
export const runtime = "edge";
// Worst-case 16s of step time + metadata fetch + analytics; give some slack.
diff --git a/apps/web/src/app/(landing)/play/mcp-health/client.tsx b/apps/web/src/app/(landing)/play/mcp-health/client.tsx
index b3a42c8c1..70efd99d2 100644
--- a/apps/web/src/app/(landing)/play/mcp-health/client.tsx
+++ b/apps/web/src/app/(landing)/play/mcp-health/client.tsx
@@ -1,12 +1,5 @@
"use client";
-import type {
- HealthCheckReport,
- StepResult,
- ToolInfo,
-} from "@/lib/mcp/health-check";
-import { toast } from "@/lib/toast";
-import { cn } from "@/lib/utils";
import { Button } from "@openstatus/ui/components/ui/button";
import {
Dialog,
@@ -34,6 +27,15 @@ import {
useState,
useTransition,
} from "react";
+
+import type {
+ HealthCheckReport,
+ StepResult,
+ ToolInfo,
+} from "@/lib/mcp/health-check";
+import { toast } from "@/lib/toast";
+import { cn } from "@/lib/utils";
+
import { searchParamsParsers } from "./search-params";
import {
STEP_REQUEST_BODIES,
@@ -325,7 +327,7 @@ export function ResultTableStatic({
const row = (
<tr
key={key}
- className={report ? "cursor-pointer hover:bg-muted/50" : ""}
+ className={report ? "hover:bg-muted/50 cursor-pointer" : ""}
>
<td>
<StatusDot input={report ? step : null} />
@@ -384,19 +386,19 @@ function StepDialog({
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">
+ <DialogContent className="max-h-[90vh] overflow-x-hidden overflow-y-auto rounded-none! font-mono sm:max-w-5xl">
<DialogHeader>
<DialogTitle>{label}</DialogTitle>
<DialogDescription>
JSON-RPC request and the response captured during the handshake.
</DialogDescription>
</DialogHeader>
- <div className="prose dark:prose-invert min-w-0 max-w-none">
+ <div className="prose dark:prose-invert max-w-none min-w-0">
<table>
<tbody>
<tr>
<td>Status</td>
- <td>{step.ok ? "OK" : step.error?.code ?? "failed"}</td>
+ <td>{step.ok ? "OK" : (step.error?.code ?? "failed")}</td>
</tr>
<tr>
<td>Latency</td>
@@ -434,14 +436,14 @@ function StepDialog({
</TabsTrigger>
</TabsList>
<TabsContent value="response" className="min-w-0 overflow-x-auto">
- <pre className="my-0! whitespace-pre-wrap break-words">
+ <pre className="my-0! break-words whitespace-pre-wrap">
<code className="block break-words">
{formatResponseBody(step.rawBody) || "(no body captured)"}
</code>
</pre>
</TabsContent>
<TabsContent value="request" className="min-w-0 overflow-x-auto">
- <pre className="my-0! whitespace-pre-wrap break-words">
+ <pre className="my-0! break-words whitespace-pre-wrap">
<code className="block break-words">
{JSON.stringify(requestBody, null, 2)}
</code>
@@ -499,7 +501,7 @@ export function DetailsButtonLink() {
>
<Link
href={`/play/mcp-health/${id}`}
- className="no-underline! w-full text-background!"
+ className="text-background! w-full no-underline!"
>
Share this report
</Link>
@@ -545,7 +547,7 @@ export function ToolsTableView({
</summary>
<p>{t.description ?? "—"}</p>
{hints.length > 0 && (
- <ul className=" text-muted-foreground text-sm">
+ <ul className="text-muted-foreground text-sm">
{hints.map((h: string) => (
<li key={h}>{h}</li>
))}
diff --git a/apps/web/src/app/(landing)/play/mcp-health/page.tsx b/apps/web/src/app/(landing)/play/mcp-health/page.tsx
index af5726429..5e198fe38 100644
--- a/apps/web/src/app/(landing)/play/mcp-health/page.tsx
+++ b/apps/web/src/app/(landing)/play/mcp-health/page.tsx
@@ -1,3 +1,5 @@
+import type { Metadata } from "next";
+
import { CustomMDX } from "@/content/mdx";
import { getToolsPage } from "@/content/utils";
import { getHealthReportById } from "@/lib/mcp/health-check";
@@ -10,7 +12,7 @@ import {
getJsonLDHowTo,
getJsonLDWebPage,
} from "@/lib/metadata/structured-data";
-import type { Metadata } from "next";
+
import {
AuthChallengeCallout,
DetailsButtonLink,
diff --git a/apps/web/src/app/(landing)/play/mcp-health/utils.test.ts b/apps/web/src/app/(landing)/play/mcp-health/utils.test.ts
index 3637e9200..228c78b56 100644
--- a/apps/web/src/app/(landing)/play/mcp-health/utils.test.ts
+++ b/apps/web/src/app/(landing)/play/mcp-health/utils.test.ts
@@ -1,4 +1,5 @@
import { describe, expect, test } from "bun:test";
+
import {
formatResponseBody,
formatTimestamp,
diff --git a/apps/web/src/app/(landing)/play/page.tsx b/apps/web/src/app/(landing)/play/page.tsx
index e552f436b..7f27849d6 100644
--- a/apps/web/src/app/(landing)/play/page.tsx
+++ b/apps/web/src/app/(landing)/play/page.tsx
@@ -1,10 +1,12 @@
+import type { Metadata } from "next";
+
import { components } from "@/content/mdx";
import {
defaultMetadata,
ogMetadata,
twitterMetadata,
} from "@/lib/metadata/shared-metadata";
-import type { Metadata } from "next";
+
import {
ContentBoxDescription,
ContentBoxLink,
diff --git a/apps/web/src/app/(landing)/play/severity-matrix/client.tsx b/apps/web/src/app/(landing)/play/severity-matrix/client.tsx
index f21e0241d..0a794ce8a 100644
--- a/apps/web/src/app/(landing)/play/severity-matrix/client.tsx
+++ b/apps/web/src/app/(landing)/play/severity-matrix/client.tsx
@@ -1,6 +1,5 @@
"use client";
-import { Details } from "@/content/mdx-components/details";
import { Button } from "@openstatus/ui/components/ui/button";
import { Checkbox } from "@openstatus/ui/components/ui/checkbox";
import { Input } from "@openstatus/ui/components/ui/input";
@@ -8,6 +7,8 @@ import { Label } from "@openstatus/ui/components/ui/label";
import { Slider } from "@openstatus/ui/components/ui/slider";
import { useState } from "react";
+import { Details } from "@/content/mdx-components/details";
+
type SeverityLevel = "SEV0" | "SEV1" | "SEV2" | "SEV3";
const SEV_ORDER = ["SEV0", "SEV1", "SEV2", "SEV3"] as const;
@@ -210,7 +211,7 @@ export function SeverityMatrixBuilder() {
{/* Result */}
<div className={`space-y-3 border-2 p-4 ${SEVERITY_BORDER[severity]}`}>
<div className="space-y-1">
- <p className="mt-0! font-medium font-mono text-2xl">
+ <p className="mt-0! font-mono text-2xl font-medium">
{meta.emoji} {severity} – {meta.label}
</p>
<p className="text-muted-foreground text-sm">{reason}</p>
@@ -218,33 +219,33 @@ export function SeverityMatrixBuilder() {
<dl className="grid grid-cols-2 gap-x-4 gap-y-2 text-sm sm:grid-cols-3">
<div>
<dt className="text-muted-foreground">Response time</dt>
- <dd className="font-medium text-foreground">
+ <dd className="text-foreground font-medium">
{meta.responseTime}
</dd>
</div>
<div>
<dt className="text-muted-foreground">Update cadence</dt>
- <dd className="font-medium text-foreground">
+ <dd className="text-foreground font-medium">
{meta.updateCadence}
</dd>
</div>
<div>
<dt className="text-muted-foreground">Postmortem</dt>
- <dd className="font-medium text-foreground">{meta.postmortem}</dd>
+ <dd className="text-foreground font-medium">{meta.postmortem}</dd>
</div>
<div>
<dt className="text-muted-foreground">Status page</dt>
- <dd className="font-medium text-foreground">
+ <dd className="text-foreground font-medium">
{meta.statusPageLabel}
</dd>
</div>
<div>
<dt className="text-muted-foreground">Escalation</dt>
- <dd className="font-medium text-foreground">{meta.escalation}</dd>
+ <dd className="text-foreground font-medium">{meta.escalation}</dd>
</div>
<div>
<dt className="text-muted-foreground">Communication</dt>
- <dd className="font-medium text-foreground">
+ <dd className="text-foreground font-medium">
{meta.communication}
</dd>
</div>
@@ -256,7 +257,7 @@ export function SeverityMatrixBuilder() {
<Label className="text-base" htmlFor="users-affected">
Users affected
</Label>
- <span className="font-medium font-mono text-base text-foreground">
+ <span className="text-foreground font-mono text-base font-medium">
{value.usersAffected}%
</span>
</div>
@@ -372,7 +373,7 @@ export function SeverityMatrixBuilder() {
}
className="h-auto! rounded-none p-4 pr-8 text-base md:text-base"
/>
- <span className="-translate-y-1/2 pointer-events-none absolute top-1/2 right-4 text-muted-foreground">
+ <span className="text-muted-foreground pointer-events-none absolute top-1/2 right-4 -translate-y-1/2">
%
</span>
</div>
@@ -400,7 +401,7 @@ export function SeverityMatrixBuilder() {
}
className="h-auto! rounded-none p-4 pr-8 text-base md:text-base"
/>
- <span className="-translate-y-1/2 pointer-events-none absolute top-1/2 right-4 text-muted-foreground">
+ <span className="text-muted-foreground pointer-events-none absolute top-1/2 right-4 -translate-y-1/2">
%
</span>
</div>
@@ -428,7 +429,7 @@ export function SeverityMatrixBuilder() {
}
className="h-auto! rounded-none p-4 pr-8 text-base md:text-base"
/>
- <span className="-translate-y-1/2 pointer-events-none absolute top-1/2 right-4 text-muted-foreground">
+ <span className="text-muted-foreground pointer-events-none absolute top-1/2 right-4 -translate-y-1/2">
%
</span>
</div>
diff --git a/apps/web/src/app/(landing)/play/severity-matrix/page.tsx b/apps/web/src/app/(landing)/play/severity-matrix/page.tsx
index 8c44da31a..a8b0f92a0 100644
--- a/apps/web/src/app/(landing)/play/severity-matrix/page.tsx
+++ b/apps/web/src/app/(landing)/play/severity-matrix/page.tsx
@@ -1,3 +1,5 @@
+import type { Metadata } from "next";
+
import { CustomMDX } from "@/content/mdx";
import { getToolsPage } from "@/content/utils";
import { JsonLd } from "@/lib/metadata/json-ld";
@@ -8,7 +10,7 @@ import {
getJsonLDFAQPage,
getJsonLDWebPage,
} from "@/lib/metadata/structured-data";
-import type { Metadata } from "next";
+
import { SeverityMatrixBuilder } from "./client";
export function generateMetadata(): Metadata {
diff --git a/apps/web/src/app/(landing)/play/uptime-sla/client.tsx b/apps/web/src/app/(landing)/play/uptime-sla/client.tsx
index e0819f28c..40025d122 100644
--- a/apps/web/src/app/(landing)/play/uptime-sla/client.tsx
+++ b/apps/web/src/app/(landing)/play/uptime-sla/client.tsx
@@ -27,7 +27,6 @@ function parseDowntimeToSeconds(downtime: string): number {
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];
@@ -158,7 +157,7 @@ export function Calculation() {
return (
<li key={period}>
<span className="capitalize">{period} reporting:</span>{" "}
- <span className="font-medium text-foreground">
+ <span className="text-foreground font-medium">
{formatDuration(Math.round(allowedDowntimeSeconds))}
</span>{" "}
<span>downtime</span>
@@ -202,7 +201,7 @@ export function Calculation() {
return (
<li key={period}>
<span className="capitalize">{period} reporting:</span>{" "}
- <span className="font-medium text-foreground">
+ <span className="text-foreground font-medium">
{uptimePercentage.toFixed(5)}%
</span>{" "}
<span>uptime</span>
diff --git a/apps/web/src/app/(landing)/play/uptime-sla/page.tsx b/apps/web/src/app/(landing)/play/uptime-sla/page.tsx
index 8aa2cac12..918fa85bb 100644
--- a/apps/web/src/app/(landing)/play/uptime-sla/page.tsx
+++ b/apps/web/src/app/(landing)/play/uptime-sla/page.tsx
@@ -1,3 +1,5 @@
+import type { Metadata } from "next";
+
import { CustomMDX } from "@/content/mdx";
import { getToolsPage } from "@/content/utils";
import { JsonLd } from "@/lib/metadata/json-ld";
@@ -8,7 +10,7 @@ import {
getJsonLDFAQPage,
getJsonLDWebPage,
} from "@/lib/metadata/structured-data";
-import type { Metadata } from "next";
+
import { Calculation } from "./client";
export function generateMetadata(): Metadata {
diff --git a/apps/web/src/app/(landing)/status/[id]/[component]/component-detail.tsx b/apps/web/src/app/(landing)/status/[id]/[component]/component-detail.tsx
index da5d7dccc..0af5a4d57 100644
--- a/apps/web/src/app/(landing)/status/[id]/[component]/component-detail.tsx
+++ b/apps/web/src/app/(landing)/status/[id]/[component]/component-detail.tsx
@@ -124,7 +124,7 @@ function OtherComponents({
<a
key={c.slug}
href={`/status/${serviceSlug}/${c.slug}`}
- className="inline-flex rounded-none border px-2.5 py-0.5 text-sm hover:bg-muted"
+ className="hover:bg-muted inline-flex rounded-none border px-2.5 py-0.5 text-sm"
>
{c.name}
</a>
@@ -192,7 +192,7 @@ export function ComponentDetail({
<span className="text-muted-foreground text-sm">
Last updated {formatRelative(component.lastFetchedAt)}
{component.stale ? (
- <span className="ml-1 inline-flex px-2 py-0.5 text-warning text-xs">
+ <span className="text-warning ml-1 inline-flex px-2 py-0.5 text-xs">
(stale)
</span>
) : null}
@@ -238,11 +238,11 @@ export function ComponentDetail({
<div className="flex items-center justify-between gap-3">
<ContentBoxTitle className="m-0!">{inc.name}</ContentBoxTitle>
<span
- className={`inline-flex items-center rounded-none border px-2.5 py-0.5 font-medium text-xs ${impactClass(inc.impact)}`}
+ className={`inline-flex items-center rounded-none border px-2.5 py-0.5 text-xs font-medium ${impactClass(inc.impact)}`}
>
{inc.impact === "none"
? "incident"
- : inc.impact ?? "incident"}
+ : (inc.impact ?? "incident")}
</span>
</div>
<ContentBoxDescription className="m-0! text-sm">
diff --git a/apps/web/src/app/(landing)/status/[id]/[component]/page.tsx b/apps/web/src/app/(landing)/status/[id]/[component]/page.tsx
index 5fc77dd1e..6906aeb73 100644
--- a/apps/web/src/app/(landing)/status/[id]/[component]/page.tsx
+++ b/apps/web/src/app/(landing)/status/[id]/[component]/page.tsx
@@ -114,7 +114,7 @@ export default async function Page(args: { params: Promise<RouteParams> }) {
</Suspense>
</HydrateClient>
- <ContentBoxContainer className="not-prose mt-10 flex flex-col items-start gap-3 bg-muted/30">
+ <ContentBoxContainer className="not-prose bg-muted/30 mt-10 flex flex-col items-start gap-3">
<ContentBoxTitle className="m-0! text-lg">
Looking for a status page?
</ContentBoxTitle>
diff --git a/apps/web/src/app/(landing)/status/[id]/history-bars.tsx b/apps/web/src/app/(landing)/status/[id]/history-bars.tsx
index 3ffd46395..a41469c3f 100644
--- a/apps/web/src/app/(landing)/status/[id]/history-bars.tsx
+++ b/apps/web/src/app/(landing)/status/[id]/history-bars.tsx
@@ -118,7 +118,7 @@ export function HistoryBars(props: HistoryBarsProps) {
// radius for this page only (descendant selectors outrank the block's
// single-class utilities) without forking the shared component.
return (
- <div className="[&_[data-slot=status-bar-item]>div>div]:rounded-none [&_[data-slot=status-bar-item]>div]:rounded-none [&_[data-slot=status-bar-item]]:rounded-none">
+ <div className="[&_[data-slot=status-bar-item]]:rounded-none [&_[data-slot=status-bar-item]>div]:rounded-none [&_[data-slot=status-bar-item]>div>div]:rounded-none">
<StatusBar data={data} />
</div>
);
diff --git a/apps/web/src/app/(landing)/status/[id]/incidents.tsx b/apps/web/src/app/(landing)/status/[id]/incidents.tsx
index f447ddc72..4ee5276c8 100644
--- a/apps/web/src/app/(landing)/status/[id]/incidents.tsx
+++ b/apps/web/src/app/(landing)/status/[id]/incidents.tsx
@@ -101,9 +101,11 @@ export function Incidents({
<div className="flex items-center justify-between gap-3">
<ContentBoxTitle className="m-0!">{inc.name}</ContentBoxTitle>
<span
- className={`inline-flex items-center rounded-none border px-2.5 py-0.5 font-medium text-xs ${impactClass(inc.impact)}`}
+ className={`inline-flex items-center rounded-none border px-2.5 py-0.5 text-xs font-medium ${impactClass(inc.impact)}`}
>
- {inc.impact === "none" ? "incident" : inc.impact ?? "incident"}
+ {inc.impact === "none"
+ ? "incident"
+ : (inc.impact ?? "incident")}
</span>
</div>
<ContentBoxDescription className="m-0! text-sm">
diff --git a/apps/web/src/app/(landing)/status/[id]/page.tsx b/apps/web/src/app/(landing)/status/[id]/page.tsx
index 10689ef6a..1f84ec7f5 100644
--- a/apps/web/src/app/(landing)/status/[id]/page.tsx
+++ b/apps/web/src/app/(landing)/status/[id]/page.tsx
@@ -114,7 +114,7 @@ export default async function Page(args: { params: Promise<RouteParams> }) {
</Suspense>
</HydrateClient>
- <ContentBoxContainer className="not-prose mt-10 flex flex-col items-start gap-3 bg-muted/30">
+ <ContentBoxContainer className="not-prose bg-muted/30 mt-10 flex flex-col items-start gap-3">
<ContentBoxTitle className="m-0! text-lg">
Looking for a status page?
</ContentBoxTitle>
diff --git a/apps/web/src/app/(landing)/status/[id]/service-detail.tsx b/apps/web/src/app/(landing)/status/[id]/service-detail.tsx
index eee429af5..a5037b127 100644
--- a/apps/web/src/app/(landing)/status/[id]/service-detail.tsx
+++ b/apps/web/src/app/(landing)/status/[id]/service-detail.tsx
@@ -84,7 +84,7 @@ export function ServiceDetail({ slug, days }: { slug: string; days: number }) {
<span className="text-muted-foreground text-sm">
Last updated {formatRelative(fetchedAt)}
{stale ? (
- <span className="ml-1 inline-flex px-2 py-0.5 text-warning text-xs">
+ <span className="text-warning ml-1 inline-flex px-2 py-0.5 text-xs">
(stale)
</span>
) : null}
diff --git a/apps/web/src/app/(landing)/status/external-service-components.tsx b/apps/web/src/app/(landing)/status/external-service-components.tsx
index c4c9166b3..527488b75 100644
--- a/apps/web/src/app/(landing)/status/external-service-components.tsx
+++ b/apps/web/src/app/(landing)/status/external-service-components.tsx
@@ -14,6 +14,7 @@ import {
import { cn } from "@openstatus/ui/lib/utils";
import { ChevronDownIcon, ChevronRightIcon } from "lucide-react";
import { useState } from "react";
+
import { ExternalServicePill } from "./external-service-pill";
export type ComponentHistoryDay = {
@@ -177,17 +178,17 @@ function ComponentRow({
}) {
const series = buildSeries(component.history, days);
return (
- <div className="flex flex-col gap-1 border-border/50 border-b py-2 last:border-b-0">
+ <div className="border-border/50 flex flex-col gap-1 border-b py-2 last:border-b-0">
<div className="flex flex-wrap items-center justify-between gap-2">
{hrefBase ? (
<a
- className="font-medium text-sm hover:underline"
+ className="text-sm font-medium hover:underline"
href={`${hrefBase}/${component.slug}`}
>
{component.name}
</a>
) : (
- <span className="font-medium text-sm">{component.name}</span>
+ <span className="text-sm font-medium">{component.name}</span>
)}
<ExternalServicePill
indicator={component.indicator}
@@ -195,7 +196,7 @@ function ComponentRow({
statusMessage={component.description ?? undefined}
/>
</div>
- <div className="[&_[data-slot=status-bar-item]>div>div]:rounded-none [&_[data-slot=status-bar-item]>div]:rounded-none [&_[data-slot=status-bar-item]]:rounded-none">
+ <div className="[&_[data-slot=status-bar-item]]:rounded-none [&_[data-slot=status-bar-item]>div]:rounded-none [&_[data-slot=status-bar-item]>div>div]:rounded-none">
<StatusBar data={series} />
</div>
</div>
@@ -224,10 +225,10 @@ function SectionBlock({
<Collapsible
open={open}
onOpenChange={setOpen}
- className="border border-border"
+ className="border-border border"
>
<CollapsibleTrigger className="flex w-full items-center justify-between gap-3 px-3 py-2 text-left">
- <span className="flex items-center gap-2 font-medium text-sm">
+ <span className="flex items-center gap-2 text-sm font-medium">
{open ? (
<ChevronDownIcon className="size-4 shrink-0" />
) : (
diff --git a/apps/web/src/app/(landing)/status/external-service-pill.tsx b/apps/web/src/app/(landing)/status/external-service-pill.tsx
index 99e3a8230..2c23a9ea6 100644
--- a/apps/web/src/app/(landing)/status/external-service-pill.tsx
+++ b/apps/web/src/app/(landing)/status/external-service-pill.tsx
@@ -64,7 +64,7 @@ export function ExternalServicePill({
const body = (
<span
className={cn(
- "inline-flex items-center rounded-none border px-2.5 py-0.5 font-medium text-xs",
+ "inline-flex items-center rounded-none border px-2.5 py-0.5 text-xs font-medium",
pill.className,
className,
)}
diff --git a/apps/web/src/app/(landing)/status/external-status-grid.tsx b/apps/web/src/app/(landing)/status/external-status-grid.tsx
index 660d36161..a4f1a6d0d 100644
--- a/apps/web/src/app/(landing)/status/external-status-grid.tsx
+++ b/apps/web/src/app/(landing)/status/external-status-grid.tsx
@@ -3,12 +3,11 @@
import { useQueryState } from "nuqs";
import { useMemo } from "react";
-import { ExternalServicePill } from "./external-service-pill";
-
import { Grid } from "@/content/mdx-components/grid";
import { api } from "@/trpc/rq-client";
import { ContentBoxLink } from "../content-box";
+import { ExternalServicePill } from "./external-service-pill";
import { filterServices } from "./filter-services";
import { qParser } from "./search-params";
@@ -22,13 +21,13 @@ export function ExternalStatusGrid() {
return (
<>
<p
- className="not-prose my-0! text-muted-foreground text-xs"
+ className="not-prose text-muted-foreground my-0! text-xs"
role="status"
>
Showing {filtered.length} of {services.length} services
</p>
{filtered.length === 0 && hasQuery && (
- <p className="my-0! text-muted-foreground text-sm">
+ <p className="text-muted-foreground my-0! text-sm">
No services match &ldquo;{q}&rdquo;.
</p>
)}
diff --git a/apps/web/src/app/(landing)/status/page.tsx b/apps/web/src/app/(landing)/status/page.tsx
index 9beec23e9..616563516 100644
--- a/apps/web/src/app/(landing)/status/page.tsx
+++ b/apps/web/src/app/(landing)/status/page.tsx
@@ -11,12 +11,12 @@ import {
twitterMetadata,
} from "@/lib/metadata/shared-metadata";
import { HydrateClient, api } from "@/trpc/rq-server";
+
import {
ContentBoxContainer,
ContentBoxDescription,
ContentBoxTitle,
} from "../content-box";
-
import { ExternalStatusGrid } from "./external-status-grid";
import { searchParamsCache } from "./search-params";
import { ServiceSearch } from "./service-search";
@@ -82,7 +82,7 @@ export default async function Page() {
</Suspense>
</HydrateClient>
- <ContentBoxContainer className="not-prose mt-10 flex flex-col items-start gap-3 bg-muted/30">
+ <ContentBoxContainer className="not-prose bg-muted/30 mt-10 flex flex-col items-start gap-3">
<ContentBoxTitle className="m-0! text-lg">
Looking for a status page?
</ContentBoxTitle>
diff --git a/apps/web/src/app/(landing)/status/service-search.tsx b/apps/web/src/app/(landing)/status/service-search.tsx
index 2ad5e83da..eab3ff9a0 100644
--- a/apps/web/src/app/(landing)/status/service-search.tsx
+++ b/apps/web/src/app/(landing)/status/service-search.tsx
@@ -1,14 +1,13 @@
"use client";
-import { SearchIcon } from "lucide-react";
-import { useQueryState } from "nuqs";
-import { useEffect, useRef } from "react";
-
import {
InputGroup,
InputGroupAddon,
InputGroupInput,
} from "@openstatus/ui/components/ui/input-group";
+import { SearchIcon } from "lucide-react";
+import { useQueryState } from "nuqs";
+import { useEffect, useRef } from "react";
import { qParser } from "./search-params";
@@ -58,7 +57,7 @@ export function ServiceSearch() {
}}
/>
<InputGroupAddon align="inline-end">
- <kbd className="hidden rounded-none! border border-border bg-muted px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground sm:inline-block">
+ <kbd className="border-border bg-muted text-muted-foreground hidden rounded-none! border px-1.5 py-0.5 font-mono text-[10px] sm:inline-block">
/
</kbd>
</InputGroupAddon>
diff --git a/apps/web/src/app/(landing)/tooling/[slug]/page.tsx b/apps/web/src/app/(landing)/tooling/[slug]/page.tsx
index fae0695f9..62386993d 100644
--- a/apps/web/src/app/(landing)/tooling/[slug]/page.tsx
+++ b/apps/web/src/app/(landing)/tooling/[slug]/page.tsx
@@ -1,3 +1,6 @@
+import type { Metadata } from "next";
+import { notFound } from "next/navigation";
+
import { CustomMDX } from "@/content/mdx";
import { getToolingPages } from "@/content/utils";
import { JsonLd } from "@/lib/metadata/json-ld";
@@ -10,8 +13,6 @@ import {
getJsonLDOrganization,
getJsonLDWebPage,
} from "@/lib/metadata/structured-data";
-import type { Metadata } from "next";
-import { notFound } from "next/navigation";
export const dynamicParams = false;
diff --git a/apps/web/src/app/(landing)/tooling/page.tsx b/apps/web/src/app/(landing)/tooling/page.tsx
index 5cca2f867..837eae5fa 100644
--- a/apps/web/src/app/(landing)/tooling/page.tsx
+++ b/apps/web/src/app/(landing)/tooling/page.tsx
@@ -1,3 +1,5 @@
+import type { Metadata } from "next";
+
import { components } from "@/content/mdx";
import { getToolingPages } from "@/content/utils";
import { JsonLd } from "@/lib/metadata/json-ld";
@@ -13,7 +15,7 @@ import {
getJsonLDItemList,
getJsonLDOrganization,
} from "@/lib/metadata/structured-data";
-import type { Metadata } from "next";
+
import {
ContentBoxDescription,
ContentBoxLink,
diff --git a/apps/web/src/app/(landing)/use-case/[slug]/page.tsx b/apps/web/src/app/(landing)/use-case/[slug]/page.tsx
index 93b290464..33b275157 100644
--- a/apps/web/src/app/(landing)/use-case/[slug]/page.tsx
+++ b/apps/web/src/app/(landing)/use-case/[slug]/page.tsx
@@ -1,3 +1,7 @@
+import type { Metadata } from "next";
+import Image from "next/image";
+import { notFound } from "next/navigation";
+
import { CustomMDX } from "@/content/mdx";
import { getUseCasePages } from "@/content/utils";
import { JsonLd } from "@/lib/metadata/json-ld";
@@ -11,9 +15,7 @@ import {
getJsonLDOrganization,
getJsonLDWebPage,
} from "@/lib/metadata/structured-data";
-import type { Metadata } from "next";
-import Image from "next/image";
-import { notFound } from "next/navigation";
+
import { ContentMetadata } from "../../content-metadata";
import { ContentPagination } from "../../content-pagination";
@@ -81,7 +83,7 @@ export default async function UseCase({
<h1>{post.metadata.title}</h1>
<ContentMetadata data={post} />
{post.metadata.image ? (
- <div className="relative aspect-video w-full overflow-hidden border border-border">
+ <div className="border-border relative aspect-video w-full overflow-hidden border">
<Image
src={post.metadata.image}
alt={post.metadata.title}
diff --git a/apps/web/src/app/(landing)/use-case/page.tsx b/apps/web/src/app/(landing)/use-case/page.tsx
index b2f99ae3f..f298ea2ca 100644
--- a/apps/web/src/app/(landing)/use-case/page.tsx
+++ b/apps/web/src/app/(landing)/use-case/page.tsx
@@ -1,3 +1,5 @@
+import type { Metadata } from "next";
+
import { getUseCasePages } from "@/content/utils";
import { JsonLd } from "@/lib/metadata/json-ld";
import {
@@ -12,7 +14,7 @@ import {
getJsonLDItemList,
getJsonLDOrganization,
} from "@/lib/metadata/structured-data";
-import type { Metadata } from "next";
+
import { ContentList } from "../content-list";
const TITLE = "Use Cases";
diff --git a/apps/web/src/app/api/checker/cron/_cron.ts b/apps/web/src/app/api/checker/cron/_cron.ts
index d55526e6b..d0385fa7c 100644
--- a/apps/web/src/app/api/checker/cron/_cron.ts
+++ b/apps/web/src/app/api/checker/cron/_cron.ts
@@ -1,7 +1,4 @@
import { CloudTasksClient, type protos } from "@google-cloud/tasks";
-import type { NextRequest } from "next/server";
-import { z } from "zod";
-
import { and, db, eq, gte, isNotNull, lte, notInArray } from "@openstatus/db";
import type { MonitorStatus } from "@openstatus/db/src/schema";
import {
@@ -11,19 +8,21 @@ import {
selectMonitorSchema,
selectMonitorStatusSchema,
} from "@openstatus/db/src/schema";
+import type { Region } from "@openstatus/db/src/schema/constants";
import {
maintenancesToPageComponents,
pageComponent,
} from "@openstatus/db/src/schema/page_components";
-
-import { env } from "@/env";
-import type { Region } from "@openstatus/db/src/schema/constants";
import { regionDict } from "@openstatus/regions";
import {
type httpPayloadSchema,
type tpcPayloadSchema,
transformHeaders,
} from "@openstatus/utils";
+import type { NextRequest } from "next/server";
+import { z } from "zod";
+
+import { env } from "@/env";
const periodicityAvailable = selectMonitorSchema.pick({ periodicity: true });
@@ -40,7 +39,7 @@ export const isAuthorizedDomain = (url: string) => {
export const cron = async ({
periodicity,
- // biome-ignore lint/correctness/noUnusedVariables: <explanation>
+ // oxlint-disable-next-line eslint/no-unused-vars
req,
}: z.infer<typeof periodicityAvailable> & { req: NextRequest }) => {
const client = new CloudTasksClient({
diff --git a/apps/web/src/app/api/checker/test/http/route.ts b/apps/web/src/app/api/checker/test/http/route.ts
index fb55fbf00..5bf9f9618 100644
--- a/apps/web/src/app/api/checker/test/http/route.ts
+++ b/apps/web/src/app/api/checker/test/http/route.ts
@@ -1,10 +1,10 @@
+import { monitorRegionSchema } from "@openstatus/db/src/schema/constants";
+import { httpPayloadSchema } from "@openstatus/utils";
import { NextResponse } from "next/server";
import { z } from "zod";
-import { monitorRegionSchema } from "@openstatus/db/src/schema/constants";
-
import { checkRegion } from "@/lib/checker/utils";
-import { httpPayloadSchema } from "@openstatus/utils";
+
import { isAnInvalidTestUrl } from "../../utils";
export const runtime = "edge";
diff --git a/apps/web/src/app/api/checker/test/tcp/route.ts b/apps/web/src/app/api/checker/test/tcp/route.ts
index 6181b2766..11f89c1dd 100644
--- a/apps/web/src/app/api/checker/test/tcp/route.ts
+++ b/apps/web/src/app/api/checker/test/tcp/route.ts
@@ -1,10 +1,9 @@
-import { NextResponse } from "next/server";
-import { z } from "zod";
-
import {
type Region,
monitorRegionSchema,
} from "@openstatus/db/src/schema/constants";
+import { NextResponse } from "next/server";
+import { z } from "zod";
import { TCPResponse, tcpPayload } from "./schema";
diff --git a/apps/web/src/app/api/checker/test/tcp/schema.ts b/apps/web/src/app/api/checker/test/tcp/schema.ts
index 673d1a2ec..d80936bdf 100644
--- a/apps/web/src/app/api/checker/test/tcp/schema.ts
+++ b/apps/web/src/app/api/checker/test/tcp/schema.ts
@@ -1,6 +1,5 @@
-import { z } from "zod";
-
import { monitorRegionSchema } from "@openstatus/db/src/schema/constants";
+import { z } from "zod";
export const tcpPayload = z.object({
workspaceId: z.string(),
diff --git a/apps/web/src/app/api/internal/email/feedback/route.ts b/apps/web/src/app/api/internal/email/feedback/route.ts
index 9455414f8..07712e900 100644
--- a/apps/web/src/app/api/internal/email/feedback/route.ts
+++ b/apps/web/src/app/api/internal/email/feedback/route.ts
@@ -1,9 +1,8 @@
-import type { NextRequest } from "next/server";
-
import { and, gte, lte } from "@openstatus/db";
import { db } from "@openstatus/db/src/db";
import { user } from "@openstatus/db/src/schema";
import { FeedbackEmail, sendEmail } from "@openstatus/emails";
+import type { NextRequest } from "next/server";
export async function GET(request: NextRequest) {
const authHeader = request.headers.get("authorization");
diff --git a/apps/web/src/app/api/internal/email/route.ts b/apps/web/src/app/api/internal/email/route.ts
index 615d79ef0..5ceefd5e1 100644
--- a/apps/web/src/app/api/internal/email/route.ts
+++ b/apps/web/src/app/api/internal/email/route.ts
@@ -1,5 +1,3 @@
-import type { NextRequest } from "next/server";
-
import { and, eq, gte, inArray, lte } from "@openstatus/db";
import { db } from "@openstatus/db/src/db";
import {
@@ -12,6 +10,7 @@ import {
SlackFeedbackEmail,
sendEmail,
} from "@openstatus/emails";
+import type { NextRequest } from "next/server";
export async function GET(request: NextRequest) {
const authHeader = request.headers.get("authorization");
diff --git a/apps/web/src/app/api/internal/email/team-invite/route.ts b/apps/web/src/app/api/internal/email/team-invite/route.ts
index 0c216ee59..db8571a2a 100644
--- a/apps/web/src/app/api/internal/email/team-invite/route.ts
+++ b/apps/web/src/app/api/internal/email/team-invite/route.ts
@@ -1,9 +1,8 @@
-import type { NextRequest } from "next/server";
-
import { and, count, eq, gte, inArray, lte } from "@openstatus/db";
import { db } from "@openstatus/db/src/db";
import { invitation, user, usersToWorkspaces } from "@openstatus/db/src/schema";
import { TeamInviteReminderEmail, sendEmail } from "@openstatus/emails";
+import type { NextRequest } from "next/server";
export async function GET(request: NextRequest) {
const authHeader = request.headers.get("authorization");
diff --git a/apps/web/src/app/api/markdown/[[...path]]/route.ts b/apps/web/src/app/api/markdown/[[...path]]/route.ts
index 13875ce0c..9a1f41ffd 100644
--- a/apps/web/src/app/api/markdown/[[...path]]/route.ts
+++ b/apps/web/src/app/api/markdown/[[...path]]/route.ts
@@ -1,10 +1,11 @@
+import { type NextRequest, NextResponse } from "next/server";
+
import { convertMdxToMarkdown } from "@/content/convert";
import {
generateStatusDetailMarkdown,
generateStatusIndexMarkdown,
} from "@/content/status-markdown";
import { resolveContent } from "@/content/utils/resolve";
-import { type NextRequest, NextResponse } from "next/server";
export const runtime = "nodejs"; // Need fs access for content loading
diff --git a/apps/web/src/app/api/og/_components/background.tsx b/apps/web/src/app/api/og/_components/background.tsx
index 01cee3cbe..0405b09cb 100644
--- a/apps/web/src/app/api/og/_components/background.tsx
+++ b/apps/web/src/app/api/og/_components/background.tsx
@@ -10,7 +10,7 @@ export function Background({
return (
<div
tw={cn(
- "relative flex flex-col bg-white items-center justify-center w-full h-full",
+ "relative flex h-full w-full flex-col items-center justify-center bg-white",
tw,
)}
>
diff --git a/apps/web/src/app/api/og/_components/basic-layout.tsx b/apps/web/src/app/api/og/_components/basic-layout.tsx
index ac99ea220..9ac367933 100644
--- a/apps/web/src/app/api/og/_components/basic-layout.tsx
+++ b/apps/web/src/app/api/og/_components/basic-layout.tsx
@@ -1,4 +1,5 @@
import { cn } from "@/lib/utils";
+
import { Background } from "./background";
export function BasicLayout({
@@ -32,7 +33,7 @@ export function BasicLayout({
</div>
<div
tw={cn(
- "flex flex-col justify-center shadow-2xl mt-1 bg-white rounded-t-lg border-t-2 border-r-2 border-l-2 border-slate-200 px-12",
+ "mt-1 flex flex-col justify-center rounded-t-lg border-t-2 border-r-2 border-l-2 border-slate-200 bg-white px-12 shadow-2xl",
tw,
)}
>
diff --git a/apps/web/src/app/api/og/_components/status-check.tsx b/apps/web/src/app/api/og/_components/status-check.tsx
index 6ae9f13ce..db63031ec 100644
--- a/apps/web/src/app/api/og/_components/status-check.tsx
+++ b/apps/web/src/app/api/og/_components/status-check.tsx
@@ -43,7 +43,7 @@ export function StatusCheck({ tracker }: { tracker: Tracker }) {
<div tw="flex flex-col justify-center items-center w-full">
<div
tw={cn(
- "flex text-white rounded-full p-3 border-2 mb-2",
+ "mb-2 flex rounded-full border-2 p-3 text-white",
getClassName(),
)}
>
diff --git a/apps/web/src/app/api/og/_components/tracker.tsx b/apps/web/src/app/api/og/_components/tracker.tsx
index 1aed5ab5e..d02580eb3 100644
--- a/apps/web/src/app/api/og/_components/tracker.tsx
+++ b/apps/web/src/app/api/og/_components/tracker.tsx
@@ -36,7 +36,7 @@ export function Tracker({ data }: TrackerProps) {
<div
key={i}
tw={cn(
- "h-16 w-3 rounded-full mr-1",
+ "mr-1 h-16 w-3 rounded-full",
classNames[item.variant],
)}
/>
diff --git a/apps/web/src/app/api/og/checker/route.tsx b/apps/web/src/app/api/og/checker/route.tsx
index 2d8737db3..baeaf2a38 100644
--- a/apps/web/src/app/api/og/checker/route.tsx
+++ b/apps/web/src/app/api/og/checker/route.tsx
@@ -6,6 +6,7 @@ import {
timestampFormatter,
} from "@/lib/checker/utils";
import { cn } from "@/lib/utils";
+
import { BasicLayout } from "../_components/basic-layout";
import {
SIZE,
@@ -90,7 +91,7 @@ export async function GET(req: Request) {
{min?.status && (
<p
tw={cn(
- "text-lg border rounded-full px-3 mb-2",
+ "mb-2 rounded-full border px-3 text-lg",
getStatusColor(min.status),
)}
>
@@ -117,7 +118,7 @@ export async function GET(req: Request) {
{max?.status && (
<p
tw={cn(
- "text-lg border rounded-full px-3 mb-2",
+ "mb-2 rounded-full border px-3 text-lg",
getStatusColor(max.status),
)}
>
diff --git a/apps/web/src/app/api/og/external-service/route.tsx b/apps/web/src/app/api/og/external-service/route.tsx
index 52d494808..e148fb146 100644
--- a/apps/web/src/app/api/og/external-service/route.tsx
+++ b/apps/web/src/app/api/og/external-service/route.tsx
@@ -1,6 +1,5 @@
-import { ImageResponse } from "next/og";
-
import { OSTinybird, safePipeData } from "@openstatus/tinybird";
+import { ImageResponse } from "next/og";
import { isStale } from "@/app/(landing)/status/utils";
import { env } from "@/env";
@@ -10,6 +9,7 @@ import {
cachedListExternalServices,
} from "@/lib/external-service-cache";
import { cn } from "@/lib/utils";
+
import { SIZE } from "../utils";
export const runtime = "edge";
@@ -174,7 +174,7 @@ export async function GET(req: Request) {
<div tw="flex flex-row items-center text-2xl text-slate-700">
[
{categoryDot ? (
- <div tw={cn("rounded-full h-5 w-5 mr-2", categoryDot)} />
+ <div tw={cn("mr-2 h-5 w-5 rounded-full", categoryDot)} />
) : null}
<p>{category}</p>]
{isDetail
diff --git a/apps/web/src/app/api/og/monitor/route.tsx b/apps/web/src/app/api/og/monitor/route.tsx
index c316ae4f0..1fa453ed1 100644
--- a/apps/web/src/app/api/og/monitor/route.tsx
+++ b/apps/web/src/app/api/og/monitor/route.tsx
@@ -1,9 +1,9 @@
-import { ImageResponse } from "next/og";
-
import { OSTinybird } from "@openstatus/tinybird";
+import { ImageResponse } from "next/og";
import { env } from "@/env";
import { DESCRIPTION, TITLE } from "@/lib/metadata/shared-metadata";
+
import { BasicLayout } from "../_components/basic-layout";
import { Tracker } from "../_components/tracker";
import { SIZE, calSemiBold, interLight, interRegular } from "../utils";
diff --git a/apps/web/src/app/api/og/page/route.tsx b/apps/web/src/app/api/og/page/route.tsx
index 629cdfd57..1ea61b35f 100644
--- a/apps/web/src/app/api/og/page/route.tsx
+++ b/apps/web/src/app/api/og/page/route.tsx
@@ -1,9 +1,9 @@
-import { ImageResponse } from "next/og";
-
import { Tracker } from "@openstatus/tracker";
+import { ImageResponse } from "next/og";
import { DESCRIPTION, TITLE } from "@/lib/metadata/shared-metadata";
import { api } from "@/trpc/server";
+
import { BasicLayout } from "../_components/basic-layout";
import { StatusCheck } from "../_components/status-check";
import { SIZE, calSemiBold, interLight, interRegular } from "../utils";
diff --git a/apps/web/src/app/api/og/post/route.tsx b/apps/web/src/app/api/og/post/route.tsx
index 11e0ba3b3..0413f82fd 100644
--- a/apps/web/src/app/api/og/post/route.tsx
+++ b/apps/web/src/app/api/og/post/route.tsx
@@ -2,6 +2,7 @@
import { ImageResponse } from "next/og";
import { TITLE } from "@/lib/metadata/shared-metadata";
+
import { BasicLayout } from "../_components/basic-layout";
import {
DEFAULT_URL,
diff --git a/apps/web/src/app/api/og/route.tsx b/apps/web/src/app/api/og/route.tsx
index 64beb7f8b..73e773328 100644
--- a/apps/web/src/app/api/og/route.tsx
+++ b/apps/web/src/app/api/og/route.tsx
@@ -2,6 +2,7 @@
import { ImageResponse } from "next/og";
import { OG_DESCRIPTION, TITLE } from "@/lib/metadata/shared-metadata";
+
import { SIZE } from "./utils";
export const runtime = "edge";
diff --git a/apps/web/src/app/api/og/status/route.tsx b/apps/web/src/app/api/og/status/route.tsx
index eb4d0f204..988b2154a 100644
--- a/apps/web/src/app/api/og/status/route.tsx
+++ b/apps/web/src/app/api/og/status/route.tsx
@@ -1,10 +1,11 @@
+import type { RouterOutputs } from "@openstatus/api";
+import { format } from "date-fns";
import { ImageResponse } from "next/og";
import { DESCRIPTION, TITLE } from "@/lib/metadata/shared-metadata";
import { cn } from "@/lib/utils";
import { api } from "@/trpc/server";
-import type { RouterOutputs } from "@openstatus/api";
-import { format } from "date-fns";
+
import { SIZE } from "../utils";
export const runtime = "edge";
@@ -80,7 +81,7 @@ export async function GET(req: Request) {
>
<div tw="flex flex-col justify-end flex-1 mb-8">
<div tw={cn("flex flex-row items-center text-2xl", content?.text)}>
- [<div tw={cn("rounded-full h-5 w-5 mr-2", content?.bg)} />
+ [<div tw={cn("mr-2 h-5 w-5 rounded-full", content?.bg)} />
<p>{category}</p>] | {format(new Date(), "MMM d, yyyy HH:mm zzz")}
</div>
<h1
diff --git a/apps/web/src/app/api/search/route.ts b/apps/web/src/app/api/search/route.ts
index 651923cb9..c35f79bd4 100644
--- a/apps/web/src/app/api/search/route.ts
+++ b/apps/web/src/app/api/search/route.ts
@@ -1,6 +1,7 @@
+import { z } from "zod";
+
import { PAGE_TYPES } from "@/content/utils";
import { searchCorpus } from "@/content/utils/search-index";
-import { z } from "zod";
const SearchSchema = z.object({
p: z.enum(PAGE_TYPES).nullish(),
diff --git a/apps/web/src/app/api/trpc/edge/[trpc]/route.ts b/apps/web/src/app/api/trpc/edge/[trpc]/route.ts
index 884b2f623..8ad8edf0b 100644
--- a/apps/web/src/app/api/trpc/edge/[trpc]/route.ts
+++ b/apps/web/src/app/api/trpc/edge/[trpc]/route.ts
@@ -1,9 +1,9 @@
+import { createTRPCContext } from "@openstatus/api";
+import { edgeRouter } from "@openstatus/api/src/edge";
import { fetchRequestHandler } from "@trpc/server/adapters/fetch";
import type { NextRequest } from "next/server";
import { createOnError, guardTRPCSource } from "@/trpc/shared";
-import { createTRPCContext } from "@openstatus/api";
-import { edgeRouter } from "@openstatus/api/src/edge";
export const runtime = "edge";
diff --git a/apps/web/src/app/api/trpc/lambda/[trpc]/route.ts b/apps/web/src/app/api/trpc/lambda/[trpc]/route.ts
index e53fdc4a6..175c51af8 100644
--- a/apps/web/src/app/api/trpc/lambda/[trpc]/route.ts
+++ b/apps/web/src/app/api/trpc/lambda/[trpc]/route.ts
@@ -1,9 +1,9 @@
+import { createTRPCContext } from "@openstatus/api";
+import { lambdaRouter } from "@openstatus/api/src/lambda";
import { fetchRequestHandler } from "@trpc/server/adapters/fetch";
import type { NextRequest } from "next/server";
import { createOnError, guardTRPCSource } from "@/trpc/shared";
-import { createTRPCContext } from "@openstatus/api";
-import { lambdaRouter } from "@openstatus/api/src/lambda";
// Stripe is incompatible with Edge runtimes due to using Node.js events
// export const runtime = "edge";
diff --git a/apps/web/src/app/api/webhook/stripe/route.ts b/apps/web/src/app/api/webhook/stripe/route.ts
index 9d16223c2..630ba2469 100644
--- a/apps/web/src/app/api/webhook/stripe/route.ts
+++ b/apps/web/src/app/api/webhook/stripe/route.ts
@@ -1,10 +1,9 @@
+import { createTRPCContext } from "@openstatus/api";
+import { lambdaRouter, stripe } from "@openstatus/api/src/lambda";
import { TRPCError } from "@trpc/server";
import { getHTTPStatusCodeFromError } from "@trpc/server/http";
import type { NextRequest } from "next/server";
-import { createTRPCContext } from "@openstatus/api";
-import { lambdaRouter, stripe } from "@openstatus/api/src/lambda";
-
import { env } from "@/env";
export async function POST(req: NextRequest) {
diff --git a/apps/web/src/app/global-error.tsx b/apps/web/src/app/global-error.tsx
index f9babe1cf..eede9cec6 100644
--- a/apps/web/src/app/global-error.tsx
+++ b/apps/web/src/app/global-error.tsx
@@ -17,7 +17,7 @@ export default function GlobalError({
<html lang="en">
<body>
{/* This is the default Next.js error component but it doesn't allow omitting the statusCode property yet. */}
- {/* biome-ignore lint/suspicious/noExplicitAny: <explanation> */}
+ {/* oxlint-disable-next-line typescript/no-explicit-any */}
<NextError statusCode={undefined as any} />
</body>
</html>
diff --git a/apps/web/src/app/layout.tsx b/apps/web/src/app/layout.tsx
index 4a7ecfe93..bab21c8c4 100644
--- a/apps/web/src/app/layout.tsx
+++ b/apps/web/src/app/layout.tsx
@@ -1,10 +1,12 @@
import "@/styles/globals.css";
-
import { OpenPanelComponent } from "@openpanel/nextjs";
+import { Toaster } from "@openstatus/ui/components/ui/sonner";
import type { Metadata } from "next";
+import PlausibleProvider from "next-plausible";
import { Inter } from "next/font/google";
import LocalFont from "next/font/local";
import Script from "next/script";
+import { NuqsAdapter } from "nuqs/adapters/next/app";
import { ThemeProvider } from "@/components/theme-provider";
import { WebMcpProvider } from "@/components/webmcp-provider";
@@ -15,9 +17,6 @@ import {
twitterMetadata,
} from "@/lib/metadata/shared-metadata";
import { TRPCReactQueryProvider } from "@/trpc/rq-client";
-import { Toaster } from "@openstatus/ui/components/ui/sonner";
-import PlausibleProvider from "next-plausible";
-import { NuqsAdapter } from "nuqs/adapters/next/app";
const inter = Inter({ subsets: ["latin"], variable: "--font-sans" });
@@ -46,7 +45,6 @@ export default function RootLayout({
<body
className={`${
inter.className
- // biome-ignore lint/nursery/useSortedClasses: <explanation>
} ${inter.variable} ${calSans.variable} antialiased`}
>
<PlausibleProvider domain="openstatus.dev">
diff --git a/apps/web/src/app/sitemap.ts b/apps/web/src/app/sitemap.ts
index d60e58f6f..9d43f572d 100644
--- a/apps/web/src/app/sitemap.ts
+++ b/apps/web/src/app/sitemap.ts
@@ -1,3 +1,5 @@
+import type { MetadataRoute } from "next";
+
import {
getBlogPosts,
getChangelogPosts,
@@ -16,7 +18,6 @@ import {
cachedListExternalComponentsBySlug,
cachedListExternalServices,
} from "@/lib/external-service-cache";
-import type { MetadataRoute } from "next";
export const revalidate = 3600;
diff --git a/apps/web/src/components/dev-mode-container.tsx b/apps/web/src/components/dev-mode-container.tsx
index 906caae65..76eb3a55a 100644
--- a/apps/web/src/components/dev-mode-container.tsx
+++ b/apps/web/src/components/dev-mode-container.tsx
@@ -10,11 +10,11 @@ export default function DevModeContainer({
return (
<div
className={cn(
- "-m-2 relative rounded-lg border-2 border-destructive/80 p-2",
+ "border-destructive/80 relative -m-2 rounded-lg border-2 p-2",
className,
)}
>
- <p className="-top-2 absolute left-3 bg-background px-1 font-medium text-destructive text-xs uppercase">
+ <p className="bg-background text-destructive absolute -top-2 left-3 px-1 text-xs font-medium uppercase">
dev mode
</p>
{children}
diff --git a/apps/web/src/components/icon-cloud-provider.tsx b/apps/web/src/components/icon-cloud-provider.tsx
index 085748495..14db64a17 100644
--- a/apps/web/src/components/icon-cloud-provider.tsx
+++ b/apps/web/src/components/icon-cloud-provider.tsx
@@ -1,4 +1,3 @@
-import { cn } from "@/lib/utils";
import { Fly, Koyeb, Railway } from "@openstatus/icons";
import {
Tooltip,
@@ -8,6 +7,8 @@ import {
} from "@openstatus/ui/components/ui/tooltip";
import { Globe } from "lucide-react";
+import { cn } from "@/lib/utils";
+
export function IconCloudProvider({
provider,
className,
diff --git a/apps/web/src/components/loading-animation.tsx b/apps/web/src/components/loading-animation.tsx
index 2eac0d67f..3142bfd3e 100644
--- a/apps/web/src/components/loading-animation.tsx
+++ b/apps/web/src/components/loading-animation.tsx
@@ -4,7 +4,7 @@ import type { VariantProps } from "class-variance-authority";
import { cn } from "@/lib/utils";
const loadingVariants = cva(
- "animate-pulse rounded-full direction-alternate duration-700",
+ "direction-alternate animate-pulse rounded-full duration-700",
{
variants: {
variant: {
@@ -25,8 +25,7 @@ const loadingVariants = cva(
);
interface Props
- extends React.ComponentProps<"div">,
- VariantProps<typeof loadingVariants> {}
+ extends React.ComponentProps<"div">, VariantProps<typeof loadingVariants> {}
export function LoadingAnimation({
className,
diff --git a/apps/web/src/components/tailwind-indicator.tsx b/apps/web/src/components/tailwind-indicator.tsx
index c5b58f24b..b2ada3c52 100644
--- a/apps/web/src/components/tailwind-indicator.tsx
+++ b/apps/web/src/components/tailwind-indicator.tsx
@@ -2,7 +2,7 @@ export function TailwindIndicator() {
if (process.env.NODE_ENV === "production") return null;
return (
- <div className="fixed bottom-1 left-1 z-50 flex h-6 w-6 items-center justify-center rounded-full bg-gray-800 p-3 font-mono text-white text-xs">
+ <div className="fixed bottom-1 left-1 z-50 flex h-6 w-6 items-center justify-center rounded-full bg-gray-800 p-3 font-mono text-xs text-white">
<div className="block sm:hidden">xs</div>
<div className="hidden sm:block md:hidden">sm</div>
<div className="hidden md:block lg:hidden">md</div>
diff --git a/apps/web/src/content/cmdk.tsx b/apps/web/src/content/cmdk.tsx
index 899552e1c..8a3d7dabb 100644
--- a/apps/web/src/content/cmdk.tsx
+++ b/apps/web/src/content/cmdk.tsx
@@ -1,10 +1,5 @@
"use client";
-import {
- CORPUS_LABELS,
- type Corpus,
- type SearchResult,
-} from "@/content/search-meta";
import {
Command,
CommandEmpty,
@@ -29,6 +24,12 @@ import { useTheme } from "next-themes";
import { useRouter } from "next/navigation";
import * as React from "react";
+import {
+ CORPUS_LABELS,
+ type Corpus,
+ type SearchResult,
+} from "@/content/search-meta";
+
type ConfigItem = {
type: "item";
label: string;
@@ -307,16 +308,16 @@ export function CmdK({
<button
type="button"
className={cn(
- "flex w-full items-center text-left hover:bg-muted",
+ "hover:bg-muted flex w-full items-center text-left",
open && "bg-muted!",
className,
)}
onClick={() => setOpen(true)}
>
- <span className="truncate text-muted-foreground">
+ <span className="text-muted-foreground truncate">
Search<span className="text-xs">...</span>
</span>
- <kbd className="pointer-events-none ml-auto inline-flex h-5 select-none items-center gap-1 border bg-muted px-1.5 font-medium font-mono text-[10px] text-muted-foreground opacity-100">
+ <kbd className="bg-muted text-muted-foreground pointer-events-none ml-auto inline-flex h-5 items-center gap-1 border px-1.5 font-mono text-[10px] font-medium opacity-100 select-none">
<span className="text-xs">⌘</span>K
</kbd>
</button>
@@ -344,7 +345,7 @@ export function CmdK({
<Search className="h-4 w-4 shrink-0 opacity-50" />
)}
{page ? (
- <span className="inline-flex shrink-0 items-center gap-1 border bg-muted px-1.5 py-0.5 text-muted-foreground text-xs">
+ <span className="bg-muted text-muted-foreground inline-flex shrink-0 items-center gap-1 border px-1.5 py-0.5 text-xs">
{CORPUS_LABELS[page as Corpus] ?? page}
<button
type="button"
@@ -356,12 +357,12 @@ export function CmdK({
</button>
</span>
) : scope === "all" ? (
- <span className="inline-flex shrink-0 items-center border bg-muted px-1.5 py-0.5 text-muted-foreground text-xs">
+ <span className="bg-muted text-muted-foreground inline-flex shrink-0 items-center border px-1.5 py-0.5 text-xs">
all
</span>
) : null}
<CommandPrimitive.Input
- className="flex h-11 w-full rounded-none bg-transparent py-3 text-sm outline-hidden placeholder:text-foreground-muted disabled:cursor-not-allowed disabled:opacity-50"
+ className="placeholder:text-foreground-muted flex h-11 w-full rounded-none bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50"
placeholder={
page
? `Search in ${CORPUS_LABELS[page as Corpus] ?? page}…`
@@ -539,15 +540,15 @@ function SearchResults({
<div className="grid min-w-0">
<span
className="block truncate"
- // biome-ignore lint/security/noDangerouslySetInnerHtml: highlight markup, content sanitized server-side
+ // oxlint-disable-next-line react/no-danger -- highlight markup, content sanitized server-side
dangerouslySetInnerHTML={{
__html: highlight(item.metadata.title),
}}
/>
{item.content && search ? (
<span
- className="block truncate text-muted-foreground text-xs"
- // biome-ignore lint/security/noDangerouslySetInnerHtml: highlight markup, content sanitized server-side
+ className="text-muted-foreground block truncate text-xs"
+ // oxlint-disable-next-line react/no-danger -- highlight markup, content sanitized server-side
dangerouslySetInnerHTML={{
__html: highlight(item.content),
}}
diff --git a/apps/web/src/content/component-highlighter.tsx b/apps/web/src/content/component-highlighter.tsx
index 15bd32293..a36da5394 100644
--- a/apps/web/src/content/component-highlighter.tsx
+++ b/apps/web/src/content/component-highlighter.tsx
@@ -140,7 +140,7 @@ export function ComponentHighlighter({
{children}
{hovered && (
<div
- className="pointer-events-none fixed z-[99999] bg-info/5 outline-2 outline-info transition-all duration-100 ease-in-out"
+ className="bg-info/5 outline-info pointer-events-none fixed z-[99999] outline-2 transition-all duration-100 ease-in-out"
style={{
top: hovered.rect.top,
left: hovered.rect.left,
@@ -148,7 +148,7 @@ export function ComponentHighlighter({
height: hovered.rect.height,
}}
>
- <span className="-left-px -top-px absolute whitespace-nowrap bg-info px-2 py-0.5 font-mono font-semibold text-[11px] text-white leading-tight">
+ <span className="bg-info absolute -top-px -left-px px-2 py-0.5 font-mono text-[11px] leading-tight font-semibold whitespace-nowrap text-white">
{hovered.name}
</span>
</div>
diff --git a/apps/web/src/content/copy-button.tsx b/apps/web/src/content/copy-button.tsx
index 2ddbd8d40..061170600 100644
--- a/apps/web/src/content/copy-button.tsx
+++ b/apps/web/src/content/copy-button.tsx
@@ -92,7 +92,7 @@ export function CopyDropdownButton({
aria-label="Copy dropdown"
>
<span
- className="relative top-[1px] shrink-0 origin-center font-sans text-[10px] text-muted-foreground transition duration-300 group-hover:text-foreground group-data-[state=open]:rotate-180 group-data-[state=open]:text-foreground"
+ className="text-muted-foreground group-hover:text-foreground group-data-[state=open]:text-foreground relative top-[1px] shrink-0 origin-center font-sans text-[10px] transition duration-300 group-data-[state=open]:rotate-180"
aria-hidden="true"
>
▲
diff --git a/apps/web/src/content/docs-footer.tsx b/apps/web/src/content/docs-footer.tsx
index 014eecf25..6c3c564e1 100644
--- a/apps/web/src/content/docs-footer.tsx
+++ b/apps/web/src/content/docs-footer.tsx
@@ -1,14 +1,15 @@
import { Link } from "@/content/link";
import { ThemeToggle } from "@/content/theme-toggle";
+
import { FooterStatus } from "./footer-status";
export function DocsFooter() {
return (
<footer className="font-mono">
- <div className="grid gap-px border border-border bg-border sm:grid-cols-2 md:grid-cols-3 [&>*]:bg-background">
+ <div className="border-border bg-border [&>*]:bg-background grid gap-px border sm:grid-cols-2 md:grid-cols-3">
<Link
href="/cal"
- className="flex w-full items-center gap-2 p-4 hover:bg-muted"
+ className="hover:bg-muted flex w-full items-center gap-2 p-4"
>
Talk to the founders
</Link>
diff --git a/apps/web/src/content/docs-header.tsx b/apps/web/src/content/docs-header.tsx
index 23ffd7d66..099e27417 100644
--- a/apps/web/src/content/docs-header.tsx
+++ b/apps/web/src/content/docs-header.tsx
@@ -1,10 +1,11 @@
import Link from "next/link";
+
import { CmdK } from "./cmdk";
import { LogoWithContextMenu } from "./logo-with-context-menu";
export function DocsHeader() {
return (
- <header className="grid grid-cols-3 gap-px border border-border bg-border font-mono lg:grid-cols-5 [&>*]:bg-background [&>*]:px-4 [&>*]:py-4 [&>*]:hover:bg-muted">
+ <header className="border-border bg-border [&>*]:bg-background [&>*]:hover:bg-muted grid grid-cols-3 gap-px border font-mono lg:grid-cols-5 [&>*]:px-4 [&>*]:py-4">
<LogoWithContextMenu />
<CmdK className="lg:col-span-3" defaultPage="docs" />
<Link
diff --git a/apps/web/src/content/docs-sidebar.tsx b/apps/web/src/content/docs-sidebar.tsx
index e98e19b14..a1c8381ac 100644
--- a/apps/web/src/content/docs-sidebar.tsx
+++ b/apps/web/src/content/docs-sidebar.tsx
@@ -1,6 +1,5 @@
"use client";
-import { cn } from "@/lib/utils";
import { Button } from "@openstatus/ui/components/ui/button";
import {
Drawer,
@@ -12,6 +11,9 @@ import { Menu } from "lucide-react";
import Link from "next/link";
import { usePathname } from "next/navigation";
import { useEffect, useState } from "react";
+
+import { cn } from "@/lib/utils";
+
import {
type DocsNavGroup,
type DocsNavItem,
@@ -80,14 +82,14 @@ function NavGroup({
<button
type="button"
onClick={() => setOpen((v) => !v)}
- className="group ease flex w-full items-center justify-between py-2 pr-2 text-foreground transition-colors duration-150 hover:bg-muted motion-reduce:transition-none"
+ className="group ease text-foreground hover:bg-muted flex w-full items-center justify-between py-2 pr-2 transition-colors duration-150 motion-reduce:transition-none"
style={rowIndent(depth)}
>
- <span className="font-medium font-mono">{group.label}</span>
+ <span className="font-mono font-medium">{group.label}</span>
<span
className={cn(
- "relative top-[1px] shrink-0 origin-center text-[10px] text-muted-foreground transition duration-300 group-hover:text-foreground motion-reduce:transition-none",
- open && "rotate-180 text-foreground",
+ "text-muted-foreground group-hover:text-foreground relative top-[1px] shrink-0 origin-center text-[10px] transition duration-300 motion-reduce:transition-none",
+ open && "text-foreground rotate-180",
)}
aria-hidden="true"
>
@@ -127,7 +129,7 @@ function NavItems({
href={item.link}
target="_blank"
rel="noopener noreferrer"
- className="ease block py-2 pr-2 text-muted-foreground transition-colors duration-150 hover:bg-muted hover:text-foreground motion-reduce:transition-none"
+ className="ease text-muted-foreground hover:bg-muted hover:text-foreground block py-2 pr-2 transition-colors duration-150 motion-reduce:transition-none"
style={rowIndent(depth)}
>
{item.label}
@@ -155,7 +157,7 @@ function NavItems({
href={href}
onClick={onNavigate}
className={cn(
- "ease block py-2 pr-2 text-muted-foreground transition-colors duration-150 hover:bg-muted hover:text-foreground motion-reduce:transition-none",
+ "ease text-muted-foreground hover:bg-muted hover:text-foreground block py-2 pr-2 transition-colors duration-150 motion-reduce:transition-none",
active && "bg-muted text-foreground",
)}
style={rowIndent(depth)}
diff --git a/apps/web/src/content/docs-sub-nav.tsx b/apps/web/src/content/docs-sub-nav.tsx
index 89a487aed..7d50c8acc 100644
--- a/apps/web/src/content/docs-sub-nav.tsx
+++ b/apps/web/src/content/docs-sub-nav.tsx
@@ -1,9 +1,11 @@
"use client";
-import { cn } from "@/lib/utils";
import Link from "next/link";
import { usePathname } from "next/navigation";
import { Fragment } from "react";
+
+import { cn } from "@/lib/utils";
+
import { CopyDropdownButton } from "./copy-button";
export function DocsSubNav({
@@ -26,7 +28,7 @@ export function DocsSubNav({
<Fragment key={segment}>
<Link
href={`/${segments.slice(0, index + 1).join("/")}`}
- className="ease transition-colors duration-150 hover:text-foreground motion-reduce:transition-none"
+ className="ease hover:text-foreground transition-colors duration-150 motion-reduce:transition-none"
>
{segment.split("-").join(" ")}
</Link>
diff --git a/apps/web/src/content/docs-toc.tsx b/apps/web/src/content/docs-toc.tsx
index 4f4d41da0..d83a02acd 100644
--- a/apps/web/src/content/docs-toc.tsx
+++ b/apps/web/src/content/docs-toc.tsx
@@ -1,7 +1,9 @@
"use client";
-import { cn } from "@/lib/utils";
import { useEffect, useState } from "react";
+
+import { cn } from "@/lib/utils";
+
import type { TocItem } from "./toc";
function useActiveHeading(items: TocItem[]) {
@@ -52,14 +54,14 @@ export function TableOfContents({ items }: { items: TocItem[] }) {
return (
<nav aria-label="Table of contents" className="text-sm">
- <p className="py-2 font-medium font-mono text-foreground">On this page</p>
+ <p className="text-foreground py-2 font-mono font-medium">On this page</p>
<ul>
{items.map((item) => (
<li key={item.slug}>
<a
href={`#${item.slug}`}
className={cn(
- "ease block py-2 text-muted-foreground transition-colors duration-150 hover:bg-muted hover:text-foreground motion-reduce:transition-none",
+ "ease text-muted-foreground hover:bg-muted hover:text-foreground block py-2 transition-colors duration-150 motion-reduce:transition-none",
item.depth === 2 ? "pl-2" : "pl-4",
active === item.slug && "bg-muted text-foreground",
)}
diff --git a/apps/web/src/content/docs.ts b/apps/web/src/content/docs.ts
index 8ead11204..c2b78a73f 100644
--- a/apps/web/src/content/docs.ts
+++ b/apps/web/src/content/docs.ts
@@ -1,6 +1,7 @@
import { execFileSync } from "node:child_process";
import fs from "node:fs";
import path from "node:path";
+
import {
type DocsSection,
flattenDocsNav,
diff --git a/apps/web/src/content/footer-status.tsx b/apps/web/src/content/footer-status.tsx
index c6893dc98..95e024da2 100644
--- a/apps/web/src/content/footer-status.tsx
+++ b/apps/web/src/content/footer-status.tsx
@@ -1,10 +1,11 @@
"use client";
-import { cn } from "@/lib/utils";
import type { StatusResponse } from "@openstatus/react";
import { useQuery } from "@tanstack/react-query";
import Link from "next/link";
+import { cn } from "@/lib/utils";
+
export function FooterStatus() {
const { data } = useQuery({
queryKey: ["footer-status"],
@@ -25,7 +26,7 @@ export function FooterStatus() {
<Link
href="https://status.openstatus.dev"
className={cn(
- "flex w-full items-center gap-2 p-4 hover:bg-muted",
+ "hover:bg-muted flex w-full items-center gap-2 p-4",
STATUS[status].color,
)}
>
diff --git a/apps/web/src/content/footer.tsx b/apps/web/src/content/footer.tsx
index 2db925e17..1045e551a 100644
--- a/apps/web/src/content/footer.tsx
+++ b/apps/web/src/content/footer.tsx
@@ -1,12 +1,13 @@
import { Link } from "@/content/link";
import { ThemeToggle } from "@/content/theme-toggle";
import { footerLinks } from "@/data/content";
+
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">
+ <div className="border-border bg-border [&>div]:bg-background grid grid-cols-1 gap-px border sm:grid-cols-2 md:grid-cols-3 [&>div]:p-4">
{footerLinks.map((section) => (
<div key={section.label}>
<p className="text-muted-foreground">{section.label}</p>
@@ -15,7 +16,7 @@ export function Footer() {
<li key={item.href}>
<Link
href={item.href}
- className="block w-full truncate hover:bg-muted"
+ className="hover:bg-muted block w-full truncate"
>
{item.label}
</Link>
@@ -25,10 +26,10 @@ export function Footer() {
</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">
+ <div className="border-border bg-border [&>*]:bg-background grid gap-px border border-t-0 sm:grid-cols-2 md:grid-cols-3">
<Link
href="/cal"
- className="flex w-full items-center gap-2 p-4 hover:bg-muted"
+ className="hover:bg-muted flex w-full items-center gap-2 p-4"
>
Talk to the founders
</Link>
diff --git a/apps/web/src/content/header.tsx b/apps/web/src/content/header.tsx
index 36b1770a1..38c6a890f 100644
--- a/apps/web/src/content/header.tsx
+++ b/apps/web/src/content/header.tsx
@@ -1,4 +1,3 @@
-import { headerLinks } from "@/data/content";
import {
DropdownMenu,
DropdownMenuContent,
@@ -6,19 +5,22 @@ import {
DropdownMenuTrigger,
} from "@openstatus/ui/components/ui/dropdown-menu";
import Link from "next/link";
+
+import { headerLinks } from "@/data/content";
+
import { CmdK } from "./cmdk";
import { LogoWithContextMenu } from "./logo-with-context-menu";
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">
+ <header className="border-border bg-border [&>*]:bg-background [&>*]:hover:bg-muted grid grid-cols-3 gap-px border lg:grid-cols-6 [&>*]:px-4 [&>*]:py-4">
<LogoWithContextMenu />
{headerLinks.map((section, _) => (
<DropdownMenu key={section.label}>
- <DropdownMenuTrigger className="group flex items-center gap-1 data-[state=open]:bg-muted">
+ <DropdownMenuTrigger className="group data-[state=open]:bg-muted flex items-center gap-1">
<span className="w-full truncate text-left">{section.label}</span>
<span
- className="relative top-[1px] shrink-0 origin-center font-sans text-[10px] text-muted-foreground transition duration-300 group-hover:text-foreground group-data-[state=open]:rotate-180 group-data-[state=open]:text-foreground"
+ className="text-muted-foreground group-hover:text-foreground group-data-[state=open]:text-foreground relative top-[1px] shrink-0 origin-center font-sans text-[10px] transition duration-300 group-data-[state=open]:rotate-180"
aria-hidden="true"
>
▲
diff --git a/apps/web/src/content/image-zoom.tsx b/apps/web/src/content/image-zoom.tsx
index eb504d781..fa59e93b8 100644
--- a/apps/web/src/content/image-zoom.tsx
+++ b/apps/web/src/content/image-zoom.tsx
@@ -1,6 +1,5 @@
"use client";
-import { cn } from "@/lib/utils";
import { useTheme } from "next-themes";
import Image from "next/image";
import type { ImageProps } from "next/image";
@@ -10,6 +9,8 @@ import Zoom, {
type UncontrolledProps,
} from "react-medium-image-zoom";
+import { cn } from "@/lib/utils";
+
export type ImageZoomProps = UncontrolledProps & {
isZoomed?: ControlledProps["isZoomed"];
onZoomChange?: ControlledProps["onZoomChange"];
@@ -32,8 +33,8 @@ export const ImageZoom = ({
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]]:bg-foreground/70 [&_[data-rmiz-btn-zoom]]:text-background [&_[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]]:p-2 [&_[data-rmiz-btn-zoom]]:outline-offset-2",
+ "[&_[data-rmiz-btn-unzoom]]:bg-foreground/70 [&_[data-rmiz-btn-unzoom]]:text-background [&_[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]]:p-2 [&_[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",
diff --git a/apps/web/src/content/latency-chart-table.tsx b/apps/web/src/content/latency-chart-table.tsx
index 8579f57ee..bce59b84d 100644
--- a/apps/web/src/content/latency-chart-table.tsx
+++ b/apps/web/src/content/latency-chart-table.tsx
@@ -1,6 +1,9 @@
import fs from "node:fs";
-import type { RegionMetricsChartTable } from "@/data/content";
+
import { type Region, regionDict } from "@openstatus/regions";
+
+import type { RegionMetricsChartTable } from "@/data/content";
+
import { SimpleChart } from "./simple-chart";
export interface LatencyChartTableProps {
diff --git a/apps/web/src/content/link.tsx b/apps/web/src/content/link.tsx
index 6749263d8..9043ae77b 100644
--- a/apps/web/src/content/link.tsx
+++ b/apps/web/src/content/link.tsx
@@ -1,6 +1,7 @@
-import { cn } from "@/lib/utils";
import NextLink from "next/link";
+import { cn } from "@/lib/utils";
+
// TODO: we could add cva variants for the link
export function Link({
@@ -10,7 +11,7 @@ export function Link({
}: React.ComponentProps<typeof NextLink>) {
return (
<NextLink
- className={cn("font-medium text-foreground", className)}
+ className={cn("text-foreground font-medium", className)}
{...props}
>
{children}
diff --git a/apps/web/src/content/logo-with-context-menu.tsx b/apps/web/src/content/logo-with-context-menu.tsx
index fc1563701..0fe4e7c67 100644
--- a/apps/web/src/content/logo-with-context-menu.tsx
+++ b/apps/web/src/content/logo-with-context-menu.tsx
@@ -19,11 +19,11 @@ export function LogoWithContextMenu() {
alt="openstatus logo"
width={20}
height={20}
- className="rounded-full border border-border dark:border-foreground"
+ className="border-border dark:border-foreground rounded-full border"
/>
<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">
+ <span className="text-muted-foreground/50 text-[10px]">
[right click]
</span>
</div>
diff --git a/apps/web/src/content/mdx-components/aside.tsx b/apps/web/src/content/mdx-components/aside.tsx
index a0bb76952..c23385c28 100644
--- a/apps/web/src/content/mdx-components/aside.tsx
+++ b/apps/web/src/content/mdx-components/aside.tsx
@@ -1,7 +1,8 @@
-import { cn } from "@/lib/utils";
import { cva } from "class-variance-authority";
import type React from "react";
+import { cn } from "@/lib/utils";
+
type AsideType = "note" | "tip" | "caution" | "danger";
const ASIDE_LABEL: Record<AsideType, string> = {
@@ -11,7 +12,7 @@ const ASIDE_LABEL: Record<AsideType, string> = {
danger: "Danger",
};
-const asideVariants = cva("my-4 border border-border p-4", {
+const asideVariants = cva("border-border my-4 border p-4", {
variants: {
type: {
note: "border-border",
diff --git a/apps/web/src/content/mdx-components/button-link.tsx b/apps/web/src/content/mdx-components/button-link.tsx
index 75ed1e255..9f88a84a9 100644
--- a/apps/web/src/content/mdx-components/button-link.tsx
+++ b/apps/web/src/content/mdx-components/button-link.tsx
@@ -1,5 +1,6 @@
import { Button } from "@openstatus/ui/components/ui/button";
import type React from "react";
+
import { CustomLink } from "./custom-link";
export function ButtonLink(
@@ -9,7 +10,7 @@ export function ButtonLink(
<Button
variant="outline"
size="lg"
- className="no-underline! h-auto rounded-none px-4 py-4 text-base"
+ className="h-auto rounded-none px-4 py-4 text-base no-underline!"
asChild
{...props}
>
diff --git a/apps/web/src/content/mdx-components/card.tsx b/apps/web/src/content/mdx-components/card.tsx
index e816d6e62..8a692833a 100644
--- a/apps/web/src/content/mdx-components/card.tsx
+++ b/apps/web/src/content/mdx-components/card.tsx
@@ -1,7 +1,8 @@
-import { cn } from "@/lib/utils";
import Link from "next/link";
import type React from "react";
+import { cn } from "@/lib/utils";
+
export function CardGrid({ children }: { children: React.ReactNode }) {
return <div className="my-4 grid gap-4 sm:grid-cols-2">{children}</div>;
}
@@ -14,9 +15,9 @@ export function Card({
children: React.ReactNode;
}) {
return (
- <div className="[&>*:last-child]:!mb-0 border border-border p-4">
+ <div className="border-border border p-4 [&>*:last-child]:!mb-0">
{title ? (
- <p className="!mt-0 mb-2 font-medium text-foreground">{title}</p>
+ <p className="text-foreground !mt-0 mb-2 font-medium">{title}</p>
) : null}
{children}
</div>
@@ -39,12 +40,12 @@ export function LinkCard({
target={isExternal ? "_blank" : undefined}
rel={isExternal ? "noopener noreferrer" : undefined}
className={cn(
- "no-underline! my-4 block border border-border p-4 hover:bg-muted",
+ "border-border hover:bg-muted my-4 block border p-4 no-underline!",
)}
>
- <span className="block font-medium text-foreground">{title}</span>
+ <span className="text-foreground block font-medium">{title}</span>
{description ? (
- <span className="mt-1 block text-muted-foreground text-sm">
+ <span className="text-muted-foreground mt-1 block text-sm">
{description}
</span>
) : null}
diff --git a/apps/web/src/content/mdx-components/code.tsx b/apps/web/src/content/mdx-components/code.tsx
index d68e6e0f8..c3779d3d5 100644
--- a/apps/web/src/content/mdx-components/code.tsx
+++ b/apps/web/src/content/mdx-components/code.tsx
@@ -13,7 +13,7 @@ export function Code({
const codeHTML = highlight(children?.toString() ?? "");
return (
<code
- // biome-ignore lint/security/noDangerouslySetInnerHtml: <explanation>
+ // oxlint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{ __html: codeHTML }}
className={className}
{...props}
diff --git a/apps/web/src/content/mdx-components/custom-image.tsx b/apps/web/src/content/mdx-components/custom-image.tsx
index 29334e26e..e7b12e809 100644
--- a/apps/web/src/content/mdx-components/custom-image.tsx
+++ b/apps/web/src/content/mdx-components/custom-image.tsx
@@ -1,8 +1,11 @@
import { existsSync } from "node:fs";
import { join } from "node:path";
+
+import Image from "next/image";
+
import { getImageDimensions } from "@/lib/image-dimensions";
import { cn } from "@/lib/utils";
-import Image from "next/image";
+
import { ImageZoom, ZoomableImage } from "../image-zoom";
type CustomImageProps = React.ComponentProps<typeof Image> & {
diff --git a/apps/web/src/content/mdx-components/grid.tsx b/apps/web/src/content/mdx-components/grid.tsx
index 8bc439611..d637228c4 100644
--- a/apps/web/src/content/mdx-components/grid.tsx
+++ b/apps/web/src/content/mdx-components/grid.tsx
@@ -1,6 +1,7 @@
-import { cn } from "@/lib/utils";
import type React from "react";
+import { cn } from "@/lib/utils";
+
export function Grid({
cols = 2,
children,
@@ -40,7 +41,7 @@ export function Grid({
<div
className={cn(
"my-4 grid grid-cols-1",
- "[&>*]:border [&>*]:border-border [&>*]:p-4",
+ "[&>*]: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],
diff --git a/apps/web/src/content/mdx-components/index.tsx b/apps/web/src/content/mdx-components/index.tsx
index 3dc62082f..7f21a062b 100644
--- a/apps/web/src/content/mdx-components/index.tsx
+++ b/apps/web/src/content/mdx-components/index.tsx
@@ -1,4 +1,5 @@
import { Suspense } from "react";
+
import { LatencyChartTable } from "../latency-chart-table";
import { Aside } from "./aside";
import { ButtonLink } from "./button-link";
diff --git a/apps/web/src/content/mdx-components/pre.tsx b/apps/web/src/content/mdx-components/pre.tsx
index 97ce3dd25..bf7f26ad1 100644
--- a/apps/web/src/content/mdx-components/pre.tsx
+++ b/apps/web/src/content/mdx-components/pre.tsx
@@ -1,4 +1,5 @@
import React from "react";
+
import { CopyButton } from "../copy-button";
function extractTextFromReactNode(node: React.ReactNode): string {
diff --git a/apps/web/src/content/mdx-components/subtle.tsx b/apps/web/src/content/mdx-components/subtle.tsx
index eae6ec879..423f2e9e1 100644
--- a/apps/web/src/content/mdx-components/subtle.tsx
+++ b/apps/web/src/content/mdx-components/subtle.tsx
@@ -1,6 +1,7 @@
-import { cn } from "@/lib/utils";
import type React from "react";
+import { cn } from "@/lib/utils";
+
export function Subtle({ className, ...props }: React.ComponentProps<"span">) {
return <span className={cn("text-muted-foreground", className)} {...props} />;
}
diff --git a/apps/web/src/content/mdx-components/youtube.tsx b/apps/web/src/content/mdx-components/youtube.tsx
index b752e8814..13a21dd57 100644
--- a/apps/web/src/content/mdx-components/youtube.tsx
+++ b/apps/web/src/content/mdx-components/youtube.tsx
@@ -21,7 +21,7 @@ export function ShowcaseYouTube({
{entries.map((entry, i) => (
<div
key={`${entry.href}-${i}`}
- className="relative aspect-video w-full overflow-hidden border border-border"
+ className="border-border relative aspect-video w-full overflow-hidden border"
>
<iframe
src={toEmbedUrl(entry.href)}
diff --git a/apps/web/src/content/mdx.tsx b/apps/web/src/content/mdx.tsx
index b6050cfee..ee9b10ee7 100644
--- a/apps/web/src/content/mdx.tsx
+++ b/apps/web/src/content/mdx.tsx
@@ -1,6 +1,7 @@
import { MDXRemote, type MDXRemoteProps } from "next-mdx-remote/rsc";
import React from "react";
import remarkGfm from "remark-gfm";
+
import { HighlightText } from "./highlight-text";
import { components } from "./mdx-components";
diff --git a/apps/web/src/content/shadcn-registry-example.tsx b/apps/web/src/content/shadcn-registry-example.tsx
index 4daa74ea1..89596ad34 100644
--- a/apps/web/src/content/shadcn-registry-example.tsx
+++ b/apps/web/src/content/shadcn-registry-example.tsx
@@ -429,7 +429,7 @@ export function StatusPageExample() {
</StatusComponentGroup>
<Separator className="my-6" />
<div className="space-y-4">
- <h2 className="font-semibold text-lg">Recent Events</h2>
+ <h2 className="text-lg font-semibold">Recent Events</h2>
<StatusFeed
statusReports={statusReports}
maintenances={maintenances}
diff --git a/apps/web/src/content/simple-chart.tsx b/apps/web/src/content/simple-chart.tsx
index 420f684d4..87be846d5 100644
--- a/apps/web/src/content/simple-chart.tsx
+++ b/apps/web/src/content/simple-chart.tsx
@@ -1,6 +1,5 @@
"use client";
-import { cn } from "@/lib/utils";
import type { ChartConfig } from "@openstatus/ui/components/ui/chart";
import {
ChartContainer,
@@ -9,6 +8,8 @@ import {
} from "@openstatus/ui/components/ui/chart";
import { Line, LineChart, XAxis } from "recharts";
+import { cn } from "@/lib/utils";
+
const chartConfig = {
latency: {
label: "Latency",
@@ -60,9 +61,9 @@ export function SimpleChart({ data, className }: SimpleChartProps) {
}
/>
{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">
+ <div className="text-foreground ml-auto flex items-baseline gap-0.5 font-mono font-medium tabular-nums">
{value}
- <span className="font-normal text-muted-foreground">
+ <span className="text-muted-foreground font-normal">
ms
</span>
</div>
diff --git a/apps/web/src/content/status-markdown.ts b/apps/web/src/content/status-markdown.ts
index c3fa6d58a..f67d9ddd8 100644
--- a/apps/web/src/content/status-markdown.ts
+++ b/apps/web/src/content/status-markdown.ts
@@ -1,9 +1,10 @@
+import { OSTinybird, safePipeData } from "@openstatus/tinybird";
+
import { env } from "@/env";
import {
cachedGetExternalServiceBySlug,
cachedListExternalServices,
} from "@/lib/external-service-cache";
-import { OSTinybird, safePipeData } from "@openstatus/tinybird";
type LatestRow = {
id: string;
diff --git a/apps/web/src/content/sub-nav.tsx b/apps/web/src/content/sub-nav.tsx
index 135cf9167..50ea6fe14 100644
--- a/apps/web/src/content/sub-nav.tsx
+++ b/apps/web/src/content/sub-nav.tsx
@@ -1,9 +1,11 @@
"use client";
-import { cn } from "@/lib/utils";
import Link from "next/link";
import { usePathname } from "next/navigation";
import { Fragment } from "react";
+
+import { cn } from "@/lib/utils";
+
import { CopyDropdownButton } from "./copy-button";
export function SubNav({ className, ...props }: React.ComponentProps<"div">) {
@@ -15,12 +17,12 @@ export function SubNav({ className, ...props }: React.ComponentProps<"div">) {
className={cn("flex items-center justify-between gap-2", className)}
{...props}
>
- <div className="min-w-0 truncate px-4 text-muted-foreground">
+ <div className="text-muted-foreground min-w-0 truncate px-4">
{segments.map((segment, index) => (
<Fragment key={segment}>
<Link
href={`/${segments.slice(0, index + 1).join("/")}`}
- className="ease transition-colors duration-150 hover:text-foreground motion-reduce:transition-none"
+ className="ease hover:text-foreground transition-colors duration-150 motion-reduce:transition-none"
>
{segment.split("-").join(" ")}
</Link>
diff --git a/apps/web/src/content/theme-toggle.tsx b/apps/web/src/content/theme-toggle.tsx
index cf3c7846d..45064ca72 100644
--- a/apps/web/src/content/theme-toggle.tsx
+++ b/apps/web/src/content/theme-toggle.tsx
@@ -1,11 +1,12 @@
"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";
+import { cn } from "@/lib/utils";
+
export function ThemeToggle({
className,
...props
@@ -21,7 +22,7 @@ export function ThemeToggle({
return (
<div
className={cn(
- "flex items-center gap-px bg-border [&>*]:flex [&>*]:flex-1 [&>*]:items-center [&>*]:justify-center [&>*]:bg-background [&>*]:p-4",
+ "bg-border [&>*]:bg-background flex items-center gap-px [&>*]:flex [&>*]:flex-1 [&>*]:items-center [&>*]:justify-center [&>*]:p-4",
className,
)}
{...props}
@@ -42,7 +43,7 @@ export function ThemeToggle({
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",
+ "bg-border [&>*]:bg-background [&>*]:hover:bg-muted [&>*]:data-[active=true]:bg-muted flex items-center gap-px [&>*]:flex [&>*]:flex-1 [&>*]:items-center [&>*]:justify-center [&>*]:p-4",
className,
)}
{...props}
diff --git a/apps/web/src/content/utils/index.ts b/apps/web/src/content/utils/index.ts
index 49eb00eed..e9396036e 100644
--- a/apps/web/src/content/utils/index.ts
+++ b/apps/web/src/content/utils/index.ts
@@ -1,4 +1,5 @@
import path from "node:path";
+
import { getDocs } from "../docs";
import { type MDXData, getMDXDataFromDir, getMDXDataFromFile } from "./read";
diff --git a/apps/web/src/content/utils/read.ts b/apps/web/src/content/utils/read.ts
index 21f0a25e8..8453a392b 100644
--- a/apps/web/src/content/utils/read.ts
+++ b/apps/web/src/content/utils/read.ts
@@ -1,7 +1,9 @@
import fs from "node:fs";
import path from "node:path";
+
import matter from "gray-matter";
import slugify from "slugify";
+
import { metadataSchema } from "./schema";
// `defaults` are merged under the file's frontmatter (file wins) before
diff --git a/apps/web/src/content/utils/search-index.ts b/apps/web/src/content/utils/search-index.ts
index b0fe488f2..08657d73a 100644
--- a/apps/web/src/content/utils/search-index.ts
+++ b/apps/web/src/content/utils/search-index.ts
@@ -1,5 +1,6 @@
import "server-only";
import { slugify } from "@/content/mdx";
+
import { type MDXData, PAGE_TYPES, getHomePage, getPages } from ".";
import type { Corpus, SearchResult } from "../search-meta";
diff --git a/apps/web/src/data/content.ts b/apps/web/src/data/content.ts
index 8c2e68a1f..a80c48be2 100644
--- a/apps/web/src/data/content.ts
+++ b/apps/web/src/data/content.ts
@@ -1,3 +1,5 @@
+import type { Region } from "@openstatus/regions";
+
import {
getBlogPosts,
getComparePages,
@@ -6,18 +8,15 @@ import {
getToolsPages,
getUseCasePages,
} 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}`,
- })),
- ],
+ items: products.map((product) => ({
+ label: product.metadata.title,
+ href: `/${product.slug}`,
+ })),
};
const resourcesFooterSection = {
diff --git a/apps/web/src/env.ts b/apps/web/src/env.ts
index 30daff3cb..59374b137 100644
--- a/apps/web/src/env.ts
+++ b/apps/web/src/env.ts
@@ -1,6 +1,5 @@
import { createEnv } from "@t3-oss/env-nextjs";
import { z } from "zod";
-
import "@openstatus/analytics/env";
import "@openstatus/db/env.mjs";
diff --git a/apps/web/src/lib/checker/mock.ts b/apps/web/src/lib/checker/mock.ts
index 0a3ebc2a4..ce20f05d0 100644
--- a/apps/web/src/lib/checker/mock.ts
+++ b/apps/web/src/lib/checker/mock.ts
@@ -1,6 +1,7 @@
+import type { Region } from "@openstatus/db/src/schema/constants";
+
import { type RegionChecker, cachedCheckerSchema } from "@/lib/checker/utils";
import { wait } from "@/lib/utils";
-import type { Region } from "@openstatus/db/src/schema/constants";
export async function mockCheckRegion(region: Region) {
const response = data.checks
diff --git a/apps/web/src/lib/checker/utils.ts b/apps/web/src/lib/checker/utils.ts
index c4a481780..8b3eed94f 100644
--- a/apps/web/src/lib/checker/utils.ts
+++ b/apps/web/src/lib/checker/utils.ts
@@ -1,9 +1,8 @@
-import { z } from "zod";
-
import { monitorRegionSchema } from "@openstatus/db/src/schema/constants";
import type { Region } from "@openstatus/db/src/schema/constants";
import { continentDict, getRegionInfo, regionDict } from "@openstatus/regions";
import { Redis } from "@upstash/redis";
+import { z } from "zod";
// ============================================================================
// Constants
diff --git a/apps/web/src/lib/mcp/health-check.test.ts b/apps/web/src/lib/mcp/health-check.test.ts
index 1a45cf37a..1eac8d994 100644
--- a/apps/web/src/lib/mcp/health-check.test.ts
+++ b/apps/web/src/lib/mcp/health-check.test.ts
@@ -1,4 +1,5 @@
import { afterEach, describe, expect, test } from "bun:test";
+
import {
normalizeUrlForStorage,
parseBearerChallenge,
diff --git a/apps/web/src/lib/mcp/health-check.ts b/apps/web/src/lib/mcp/health-check.ts
index 64a962f6a..6bd2b75ff 100644
--- a/apps/web/src/lib/mcp/health-check.ts
+++ b/apps/web/src/lib/mcp/health-check.ts
@@ -4,6 +4,7 @@
import { redis } from "@openstatus/upstash";
import { assertSafeUrlSync } from "@openstatus/utils";
import { z } from "zod";
+
import {
PROTOCOL_VERSION,
REQ_ID_INIT,
diff --git a/apps/web/src/lib/metadata/json-ld.tsx b/apps/web/src/lib/metadata/json-ld.tsx
index 747046a0d..7e72f0a9a 100644
--- a/apps/web/src/lib/metadata/json-ld.tsx
+++ b/apps/web/src/lib/metadata/json-ld.tsx
@@ -5,7 +5,7 @@ export function JsonLd({ graph }: { graph: Graph }) {
<script
type="application/ld+json"
suppressHydrationWarning
- // biome-ignore lint/security/noDangerouslySetInnerHtml: jsonLd
+ // oxlint-disable-next-line react/no-danger -- jsonLd
dangerouslySetInnerHTML={{
__html: JSON.stringify(graph).replace(/</g, "\\u003c"),
}}
diff --git a/apps/web/src/lib/metadata/shared-metadata.ts b/apps/web/src/lib/metadata/shared-metadata.ts
index bdc84c916..37f7cd0af 100644
--- a/apps/web/src/lib/metadata/shared-metadata.ts
+++ b/apps/web/src/lib/metadata/shared-metadata.ts
@@ -1,6 +1,7 @@
-import type { MDXData } from "@/content/utils";
import type { Metadata } from "next";
+import type { MDXData } from "@/content/utils";
+
export const TITLE = "openstatus";
export const HOMEPAGE_TITLE = "The Compliance-First Status Page";
export const DESCRIPTION =
diff --git a/apps/web/src/lib/metadata/structured-data.ts b/apps/web/src/lib/metadata/structured-data.ts
index a01ce66be..08fe843d4 100644
--- a/apps/web/src/lib/metadata/structured-data.ts
+++ b/apps/web/src/lib/metadata/structured-data.ts
@@ -1,4 +1,3 @@
-import type { MDXData } from "@/content/utils";
import { allPlans } from "@openstatus/db/src/schema/plan/config";
import type {
BlogPosting,
@@ -17,6 +16,9 @@ import type {
WebPage,
WithContext,
} from "schema-dts";
+
+import type { MDXData } from "@/content/utils";
+
import { BASE_URL } from "./shared-metadata";
export const getJsonLDWebPage = (
diff --git a/apps/web/src/lib/monitor/utils.ts b/apps/web/src/lib/monitor/utils.ts
index ac4fa591e..6d154454e 100644
--- a/apps/web/src/lib/monitor/utils.ts
+++ b/apps/web/src/lib/monitor/utils.ts
@@ -1,6 +1,5 @@
-import { endOfDay, startOfDay, startOfHour, subDays } from "date-fns";
-
import type { MonitorPeriodicity } from "@openstatus/db/src/schema";
+import { endOfDay, startOfDay, startOfHour, subDays } from "date-fns";
export const periods = ["1d", "7d", "14d"] as const; // If neeeded (e.g. Pro plans), "7d", "30d"
export const quantiles = ["p99", "p95", "p90", "p75", "p50"] as const;
diff --git a/apps/web/src/trpc/client.ts b/apps/web/src/trpc/client.ts
index 3fd47a009..3294a0959 100644
--- a/apps/web/src/trpc/client.ts
+++ b/apps/web/src/trpc/client.ts
@@ -1,6 +1,5 @@
-import { createTRPCClient, loggerLink } from "@trpc/client";
-
import type { AppRouter } from "@openstatus/api";
+import { createTRPCClient, loggerLink } from "@trpc/client";
import { endingLink } from "./shared";
diff --git a/apps/web/src/trpc/rq-client.tsx b/apps/web/src/trpc/rq-client.tsx
index ea6175fcd..a4639d9fc 100644
--- a/apps/web/src/trpc/rq-client.tsx
+++ b/apps/web/src/trpc/rq-client.tsx
@@ -6,6 +6,7 @@ import { QueryClientProvider } from "@tanstack/react-query";
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
import { createTRPCReact } from "@trpc/react-query";
import { useState } from "react";
+
import { makeQueryClient } from "./query-client";
import { endingLink } from "./shared";
@@ -17,7 +18,6 @@ function getQueryClient() {
return makeQueryClient();
}
// Browser: use singleton pattern to keep the same query client
- // biome-ignore lint/suspicious/noAssignInExpressions: <explanation>
return (clientQueryClientSingleton ??= makeQueryClient());
}
diff --git a/apps/web/src/trpc/rq-server.ts b/apps/web/src/trpc/rq-server.ts
index fb51932f0..94f253ac5 100644
--- a/apps/web/src/trpc/rq-server.ts
+++ b/apps/web/src/trpc/rq-server.ts
@@ -1,10 +1,10 @@
import "server-only";
-
import { type AppRouter, appRouter, t } from "@openstatus/api";
import type { Context } from "@openstatus/api/src/trpc";
import { db } from "@openstatus/db";
import { createHydrationHelpers } from "@trpc/react-query/rsc";
import { cache } from "react";
+
import { makeQueryClient } from "./query-client";
const createContextCached = cache(
diff --git a/apps/web/src/trpc/server.ts b/apps/web/src/trpc/server.ts
index f07833732..3d27b1e44 100644
--- a/apps/web/src/trpc/server.ts
+++ b/apps/web/src/trpc/server.ts
@@ -1,8 +1,7 @@
+import type { AppRouter } from "@openstatus/api";
import { createTRPCClient, loggerLink } from "@trpc/client";
import { headers } from "next/headers";
-import type { AppRouter } from "@openstatus/api";
-
import { endingLink } from "./shared";
export const api = createTRPCClient<AppRouter>({
diff --git a/apps/web/src/trpc/shared.ts b/apps/web/src/trpc/shared.ts
index ddf7cdcbd..22730388a 100644
--- a/apps/web/src/trpc/shared.ts
+++ b/apps/web/src/trpc/shared.ts
@@ -1,7 +1,6 @@
+import type { AppRouter } from "@openstatus/api";
import type { HTTPBatchLinkOptions, HTTPHeaders, TRPCLink } from "@trpc/client";
import { httpBatchLink } from "@trpc/client";
-
-import type { AppRouter } from "@openstatus/api";
import superjson from "superjson";
/**
@@ -45,7 +44,7 @@ export const endingLink = (opts?: {
const sharedOpts = {
headers: opts?.headers, // REMINDER: fails when trying to `getTotalActiveMonitors()`
transformer: superjson,
- // biome-ignore lint/suspicious/noExplicitAny: FIXME: remove any
+ // oxlint-disable-next-line typescript/no-explicit-any -- FIXME: remove any
} satisfies Partial<HTTPBatchLinkOptions<any>>;
const edgeLink = httpBatchLink({
diff --git a/apps/workflows/src/checker/alerting.test.ts b/apps/workflows/src/checker/alerting.test.ts
index 26dc758dc..0f8bb1eee 100644
--- a/apps/workflows/src/checker/alerting.test.ts
+++ b/apps/workflows/src/checker/alerting.test.ts
@@ -1,4 +1,5 @@
import { afterAll, afterEach, describe, expect, mock, test } from "bun:test";
+
import { db, eq, inArray } from "@openstatus/db";
import {
notification,
diff --git a/apps/workflows/src/checker/alerting.ts b/apps/workflows/src/checker/alerting.ts
index 22bc39579..1e517c0c9 100644
--- a/apps/workflows/src/checker/alerting.ts
+++ b/apps/workflows/src/checker/alerting.ts
@@ -1,3 +1,4 @@
+import { getLogger } from "@logtape/logtape";
import { and, count, db, eq, gte, inArray, schema } from "@openstatus/db";
import type { Incident, MonitorStatus } from "@openstatus/db/src/schema";
import {
@@ -5,10 +6,9 @@ import {
selectNotificationSchema,
selectWorkspaceSchema,
} from "@openstatus/db/src/schema";
-
-import { getLogger } from "@logtape/logtape";
import type { Region } from "@openstatus/db/src/schema/constants";
import { Effect, Schedule } from "effect";
+
import { checkerAudit } from "../utils/audit-log";
import { providerToFunction } from "./utils";
diff --git a/apps/workflows/src/checker/index.ts b/apps/workflows/src/checker/index.ts
index d87f640cd..6000ccca9 100644
--- a/apps/workflows/src/checker/index.ts
+++ b/apps/workflows/src/checker/index.ts
@@ -1,15 +1,14 @@
-import { Hono } from "hono";
-import { z } from "zod";
-
+import { getLogger } from "@logtape/logtape";
import { and, db, eq, inArray, isNull, schema } from "@openstatus/db";
import { incidentTable } from "@openstatus/db/src/schema";
+import { monitorRegions } from "@openstatus/db/src/schema/constants";
import {
monitorStatusSchema,
selectMonitorSchema,
} from "@openstatus/db/src/schema/monitors/validation";
+import { Hono } from "hono";
+import { z } from "zod";
-import { getLogger } from "@logtape/logtape";
-import { monitorRegions } from "@openstatus/db/src/schema/constants";
import { env } from "../env";
import type { Env } from "../index";
import { checkerAudit } from "../utils/audit-log";
diff --git a/apps/workflows/src/cron/checker.ts b/apps/workflows/src/cron/checker.ts
index edcf7a4cd..dfdb5b32f 100644
--- a/apps/workflows/src/cron/checker.ts
+++ b/apps/workflows/src/cron/checker.ts
@@ -1,8 +1,6 @@
import { CloudTasksClient } from "@google-cloud/tasks";
import type { google } from "@google-cloud/tasks/build/protos/protos";
-import { Effect, Either, Schedule } from "effect";
-import { z } from "zod";
-
+import { getLogger } from "@logtape/logtape";
import {
and,
eq,
@@ -21,22 +19,23 @@ import {
selectMonitorStatusSchema,
} from "@openstatus/db/src/schema";
import type { Region } from "@openstatus/db/src/schema/constants";
+import type { monitorPeriodicitySchema } from "@openstatus/db/src/schema/constants";
import {
maintenancesToPageComponents,
pageComponent,
} from "@openstatus/db/src/schema/page_components";
import { regionDict } from "@openstatus/regions";
-import { db } from "../lib/db";
-
-import { getLogger } from "@logtape/logtape";
-import type { monitorPeriodicitySchema } from "@openstatus/db/src/schema/constants";
import {
type DNSPayloadSchema,
type httpPayloadSchema,
type tpcPayloadSchema,
transformHeaders,
} from "@openstatus/utils";
+import { Effect, Either, Schedule } from "effect";
+import { z } from "zod";
+
import { env } from "../env";
+import { db } from "../lib/db";
type TaskInput = {
row: z.infer<typeof selectMonitorSchema>;
diff --git a/apps/workflows/src/cron/emails.ts b/apps/workflows/src/cron/emails.ts
index e35abce1b..4426493a6 100644
--- a/apps/workflows/src/cron/emails.ts
+++ b/apps/workflows/src/cron/emails.ts
@@ -6,6 +6,7 @@ import {
usersToWorkspaces,
} from "@openstatus/db/src/schema";
import { EmailClient } from "@openstatus/emails";
+
import { env } from "../env";
const email = new EmailClient({ apiKey: env().RESEND_API_KEY });
diff --git a/apps/workflows/src/cron/external-incidents-prune.ts b/apps/workflows/src/cron/external-incidents-prune.ts
index 12141ed90..c14b5b6a5 100644
--- a/apps/workflows/src/cron/external-incidents-prune.ts
+++ b/apps/workflows/src/cron/external-incidents-prune.ts
@@ -1,9 +1,9 @@
import { getLogger } from "@logtape/logtape";
+import { db } from "@openstatus/db";
import { pruneStaleRawPayloads } from "@openstatus/services/external-service-incident";
import { Effect } from "effect";
import type { Context } from "hono";
-import { db } from "@openstatus/db";
import { reportBackgroundError, runSentryCron } from "../lib/sentry";
const logger = getLogger(["workflow", "external-incidents-prune"]);
diff --git a/apps/workflows/src/cron/external-status.ts b/apps/workflows/src/cron/external-status.ts
index 14006706a..6be9bd0bc 100644
--- a/apps/workflows/src/cron/external-status.ts
+++ b/apps/workflows/src/cron/external-status.ts
@@ -1,4 +1,5 @@
import { getLogger } from "@logtape/logtape";
+import { db } from "@openstatus/db";
import { listExternalServices } from "@openstatus/services/external-service";
import type { ExternalServiceRow } from "@openstatus/services/external-service";
import {
@@ -21,7 +22,6 @@ import { OSTinybird } from "@openstatus/tinybird";
import { Effect } from "effect";
import type { Context } from "hono";
-import { db } from "@openstatus/db";
import { env } from "../env";
import { reportBackgroundError, runSentryCron } from "../lib/sentry";
diff --git a/apps/workflows/src/cron/index.ts b/apps/workflows/src/cron/index.ts
index a1516c07e..9ca25c81d 100644
--- a/apps/workflows/src/cron/index.ts
+++ b/apps/workflows/src/cron/index.ts
@@ -2,6 +2,7 @@ import { monitorPeriodicitySchema } from "@openstatus/db/src/schema/constants";
import * as Sentry from "@sentry/bun";
import { Effect, Schedule } from "effect";
import { Hono } from "hono";
+
import { env } from "../env";
import { reportBackgroundError, runSentryCron } from "../lib/sentry";
import { sendCheckerTasks } from "./checker";
diff --git a/apps/workflows/src/cron/monitor.ts b/apps/workflows/src/cron/monitor.ts
index a59c538e0..0982d0888 100644
--- a/apps/workflows/src/cron/monitor.ts
+++ b/apps/workflows/src/cron/monitor.ts
@@ -23,6 +23,7 @@ import {
import { Redis } from "@openstatus/upstash";
import { RateLimiter } from "limiter";
import { z } from "zod";
+
import { env } from "../env";
const redis = Redis.fromEnv();
diff --git a/apps/workflows/src/incident/index.ts b/apps/workflows/src/incident/index.ts
index ad37afb62..fe2f0a711 100644
--- a/apps/workflows/src/incident/index.ts
+++ b/apps/workflows/src/incident/index.ts
@@ -1,6 +1,7 @@
import { schema } from "@openstatus/db";
import { and, eq, inArray, isNull, ne } from "drizzle-orm";
import { Hono } from "hono";
+
import { env } from "../env";
import { db } from "../lib/db";
diff --git a/apps/workflows/src/index.ts b/apps/workflows/src/index.ts
index 5fbf4bb84..fd186562c 100644
--- a/apps/workflows/src/index.ts
+++ b/apps/workflows/src/index.ts
@@ -1,4 +1,5 @@
import { AsyncLocalStorage } from "node:async_hooks";
+
import {
configure,
getConsoleSink,
@@ -7,18 +8,17 @@ import {
withContext,
} from "@logtape/logtape";
import { getOpenTelemetrySink } from "@logtape/otel";
+import { resourceFromAttributes } from "@opentelemetry/resources";
+import { ATTR_DEPLOYMENT_ENVIRONMENT_NAME } from "@opentelemetry/semantic-conventions/incubating";
import * as Sentry from "@sentry/bun";
-
import { Hono } from "hono";
import { showRoutes } from "hono/dev";
import { requestId } from "hono/request-id";
+
import { checkerRoute } from "./checker";
+import "./lib/sentry";
import { cronRouter } from "./cron";
import { env } from "./env";
-import "./lib/sentry";
-
-import { resourceFromAttributes } from "@opentelemetry/resources";
-import { ATTR_DEPLOYMENT_ENVIRONMENT_NAME } from "@opentelemetry/semantic-conventions/incubating";
import { incidentRoute } from "./incident";
const { NODE_ENV, PORT } = env();
diff --git a/apps/workflows/src/lib/db.ts b/apps/workflows/src/lib/db.ts
index 813727fd3..9dc37306b 100644
--- a/apps/workflows/src/lib/db.ts
+++ b/apps/workflows/src/lib/db.ts
@@ -1,7 +1,7 @@
-import { drizzle } from "drizzle-orm/libsql";
-
import { createClient } from "@libsql/client";
import { schema } from "@openstatus/db";
+import { drizzle } from "drizzle-orm/libsql";
+
import { env } from "../env";
const file =
diff --git a/apps/workflows/src/scripts/tinybird.ts b/apps/workflows/src/scripts/tinybird.ts
index ca9da0ad1..1010ad880 100644
--- a/apps/workflows/src/scripts/tinybird.ts
+++ b/apps/workflows/src/scripts/tinybird.ts
@@ -1,8 +1,9 @@
+import readline from "node:readline";
+
import { db, eq } from "@openstatus/db";
import { type WorkspacePlan, workspace } from "@openstatus/db/src/schema";
-import { env } from "../env";
-import readline from "node:readline";
+import { env } from "../env";
// Function to prompt user for confirmation
const askConfirmation = async (question: string): Promise<boolean> => {
diff --git a/biome.jsonc b/biome.jsonc
deleted file mode 100644
index a84420999..000000000
--- a/biome.jsonc
+++ /dev/null
@@ -1,162 +0,0 @@
-{
- "$schema": "https://biomejs.dev/schemas/1.6.2/schema.json",
- "files": {
- "ignore": [
- "packages/ui/src/components/*.tsx",
- "packages/ui/src/components/*.ts",
- "apps/dashboard/src/scripts/*.ts",
- "packages/proto/gen",
- ".devbox"
- ]
- },
- "linter": {
- "enabled": true,
- "rules": {
- "recommended": true,
- "suspicious": {
- "noArrayIndexKey": "off"
- },
- "performance": {
- "noAccumulatingSpread": "warn"
- },
- "complexity": {
- "noForEach": "off"
- },
- "a11y": {
- "noSvgWithoutTitle": "off",
- "useKeyWithClickEvents": "off"
- },
- "correctness": {
- "noUnusedVariables": "warn",
- "noUnusedImports": "error",
- "noSwitchDeclarations": "off"
- },
- "nursery": {
- "useSortedClasses": "warn"
- }
- },
- "ignore": [
- "node_modules",
- ".next",
- "dist",
- ".wrangler",
- ".react-email",
- ".content-collections",
- "meta",
- "*.astro",
- ".astro"
- ]
- },
- "formatter": {
- "indentStyle": "space",
- "indentWidth": 2,
- "enabled": true,
- "lineWidth": 80,
- "ignore": [
- "node_modules",
- ".next",
- "dist",
- ".nuxt",
- ".wrangler",
- ".react-email",
- ".content-collections",
- "meta",
- "*.astro",
- ".astro"
- ]
- },
- "organizeImports": {
- "enabled": true,
- "ignore": [
- "node_modules",
- ".next",
- "dist",
- ".nuxt",
- ".wrangler",
- ".react-email",
- ".content-collections",
- "*.astro",
- ".astro"
- ]
- },
- // Overrides: scope the `@openstatus/db` / drizzle import ban to files that
- // have been migrated onto `@openstatus/services`. Grown one domain per
- // migration PR.
- //
- // Still outside the scope (each is its own follow-up):
- // - `packages/api/src/router/statusPage.ts` — public viewer endpoints
- // (~1280 lines) run under `publicProcedure` without an authed
- // `ServiceContext`.
- // - `packages/api/src/router/{member,integration,monitorTag,
- // pageSubscriber,privateLocation,checker,feedback,stripe,tinybird,
- // email}.ts` — small domains not yet lifted into services.
- // - `apps/server/src/routes/rpc/handlers/monitor/**` — Connect monitor
- // handler (~880 lines, 6 jobType-specific methods).
- // - `apps/server/src/routes/rpc/handlers/status-page/**` — 13 of 18
- // methods (components / groups / subscribers / viewer) still use db;
- // page CRUD is migrated but the file imports db for the rest.
- // - `apps/server/src/routes/v1/**` — the public HTTP API surface;
- // entirely unmigrated, intended to ride on top of services later.
- // - `apps/server/src/routes/slack/**` except `interactions.ts` — tools,
- // handler, oauth, workspace-resolver still use db.
- // - `apps/server/src/routes/public/**` — public-facing HTTP routes.
- //
- // When those migrate, their paths get added here. The final consolidation
- // (broadening to `router/**` + dropping the db dep from `packages/api` +
- // `apps/server`) comes after.
- "overrides": [
- {
- "include": [
- "packages/api/src/router/statusReport.ts",
- "packages/api/src/router/maintenance.ts",
- "packages/api/src/router/incident.ts",
- "packages/api/src/router/monitor.ts",
- "packages/api/src/router/pageComponent.ts",
- "packages/api/src/router/page.ts",
- "packages/api/src/router/workspace.ts",
- "packages/api/src/router/user.ts",
- "packages/api/src/router/invitation.ts",
- "packages/api/src/router/apiKey.ts",
- "packages/api/src/router/import.ts",
- "apps/server/src/routes/rpc/handlers/health/**",
- "apps/server/src/routes/rpc/handlers/status-report/**",
- "apps/server/src/routes/rpc/handlers/maintenance/**",
- "apps/server/src/routes/rpc/handlers/notification/**",
- "apps/server/src/routes/slack/interactions.ts"
- ],
- "ignore": [
- // Tests legitimately manage db state for fixtures and cleanup.
- "**/__tests__/**",
- "**/*.test.ts",
- // Notification handler siblings that still read db directly —
- // `limits.ts` queries workspace quotas, `converters.ts` needs
- // db enum shapes for proto round-trip. Both stay exempt until
- // those responsibilities move into services. Using `**` above
- // + these ignores (instead of whitelisting just `index.ts`)
- // means new files added to the notification handler are
- // enforced by default rather than silently slipping through.
- "apps/server/src/routes/rpc/handlers/notification/limits.ts",
- "apps/server/src/routes/rpc/handlers/notification/converters.ts"
- ],
- "linter": {
- "rules": {
- "nursery": {
- "noRestrictedImports": {
- "level": "error",
- "options": {
- "paths": {
- "@openstatus/db": "Use @openstatus/services instead (domain has migrated to the service layer).",
- "@openstatus/db/src/schema": "Use @openstatus/services instead.",
- "@openstatus/db/src/schema/plan/utils": "Use @openstatus/services instead.",
- "@openstatus/db/src/schema/plan/schema": "Use @openstatus/services instead.",
- "@openstatus/db/src/schema/plan/config": "Use @openstatus/services instead.",
- "drizzle-orm": "Use @openstatus/services instead."
- }
- }
- }
- }
- }
- }
- }
- ]
-}
diff --git a/oxfmt.config.ts b/oxfmt.config.ts
new file mode 100644
index 000000000..84b08653b
--- /dev/null
+++ b/oxfmt.config.ts
@@ -0,0 +1,28 @@
+import { defineConfig } from "oxfmt";
+
+// Mirrors the previous Biome formatter profile (all-defaults except width 80).
+export default defineConfig({
+ printWidth: 80,
+ tabWidth: 2,
+ useTabs: false,
+ semi: true,
+ singleQuote: false,
+ trailingComma: "all",
+ arrowParens: "always",
+ sortImports: true,
+ sortPackageJson: true,
+ sortTailwindcss: { functions: ["cn", "cva", "clsx"] },
+ ignorePatterns: [
+ "packages/ui/src/components/*.ts",
+ "packages/ui/src/components/*.tsx",
+ "apps/dashboard/src/scripts/*.ts",
+ "packages/proto/gen/**",
+ "**/*_pb.ts",
+ "**/drizzle/meta/**",
+ "**/.content-collections/**",
+ ".devbox/**",
+ "**/*.astro",
+ // CSS/MD/YAML/etc deferred to a follow-up PR — keep scope to JS/TS/JSON.
+ "**/*.{css,scss,less,md,mdx,yaml,yml,html,graphql,gql,vue,svelte,toml}",
+ ],
+});
diff --git a/oxlint.config.ts b/oxlint.config.ts
new file mode 100644
index 000000000..0d2de31ec
--- /dev/null
+++ b/oxlint.config.ts
@@ -0,0 +1,115 @@
+import { defineConfig } from "oxlint";
+
+export default defineConfig({
+ plugins: ["eslint", "typescript", "react", "unicorn", "oxc"],
+ categories: {
+ correctness: "warn",
+ },
+ rules: {
+ // Kept off for parity with the previous Biome config.
+ "react/no-array-index-key": "off", // biome suspicious/noArrayIndexKey
+ "no-case-declarations": "off", // biome correctness/noSwitchDeclarations
+ // No oxlint equivalent, so dropped: biome performance/noAccumulatingSpread,
+ // complexity/noForEach, a11y/noSvgWithoutTitle, a11y/useAltText,
+ // a11y/useKeyWithClickEvents. Their suppressions are removed.
+
+ // Mirror Biome's recommended set. Existing violations are suppressed in-code.
+ "no-unused-vars": [
+ "warn",
+ {
+ argsIgnorePattern: "^_",
+ varsIgnorePattern: "^_",
+ caughtErrors: "none",
+ },
+ ],
+ "typescript/no-explicit-any": "error",
+ "typescript/no-non-null-assertion": "error",
+ "react/no-danger": "error",
+ "react/exhaustive-deps": "warn",
+ "unicorn/prefer-node-protocol": "error",
+ },
+ ignorePatterns: [
+ "packages/ui/src/components/*.ts",
+ "packages/ui/src/components/*.tsx",
+ "apps/dashboard/src/scripts/*.ts",
+ "packages/proto/gen/**",
+ "**/*_pb.ts",
+ "**/drizzle/meta/**",
+ "**/.content-collections/**",
+ ".devbox/**",
+ "**/*.astro",
+ ],
+ overrides: [
+ {
+ // Ban @openstatus/db + drizzle imports in layers migrated onto
+ // @openstatus/services. Scope grows one domain per migration PR.
+ files: [
+ "packages/api/src/router/statusReport.ts",
+ "packages/api/src/router/maintenance.ts",
+ "packages/api/src/router/incident.ts",
+ "packages/api/src/router/monitor.ts",
+ "packages/api/src/router/pageComponent.ts",
+ "packages/api/src/router/page.ts",
+ "packages/api/src/router/workspace.ts",
+ "packages/api/src/router/user.ts",
+ "packages/api/src/router/invitation.ts",
+ "packages/api/src/router/apiKey.ts",
+ "packages/api/src/router/import.ts",
+ "apps/server/src/routes/rpc/handlers/health/**",
+ "apps/server/src/routes/rpc/handlers/status-report/**",
+ "apps/server/src/routes/rpc/handlers/maintenance/**",
+ "apps/server/src/routes/rpc/handlers/notification/**",
+ "apps/server/src/routes/slack/interactions.ts",
+ ],
+ excludeFiles: [
+ "**/__tests__/**",
+ "**/*.test.ts",
+ // Still read db directly: limits.ts queries quotas, converters.ts needs
+ // db enum shapes for proto round-trip. Exempt until they move to services.
+ "apps/server/src/routes/rpc/handlers/notification/limits.ts",
+ "apps/server/src/routes/rpc/handlers/notification/converters.ts",
+ ],
+ rules: {
+ "no-restricted-imports": [
+ "error",
+ {
+ paths: [
+ {
+ name: "@openstatus/db",
+ message:
+ "Use @openstatus/services instead (domain has migrated to the service layer).",
+ },
+ {
+ name: "@openstatus/db/src/schema",
+ message: "Use @openstatus/services instead.",
+ },
+ {
+ name: "@openstatus/db/src/schema/plan/utils",
+ message: "Use @openstatus/services instead.",
+ },
+ {
+ name: "@openstatus/db/src/schema/plan/schema",
+ message: "Use @openstatus/services instead.",
+ },
+ {
+ name: "@openstatus/db/src/schema/plan/config",
+ message: "Use @openstatus/services instead.",
+ },
+ {
+ name: "drizzle-orm",
+ message: "Use @openstatus/services instead.",
+ },
+ ],
+ },
+ ],
+ },
+ },
+ {
+ // Tests legitimately use `any` for spies/fixtures.
+ files: ["**/*.test.ts", "**/__tests__/**"],
+ rules: {
+ "typescript/no-explicit-any": "off",
+ },
+ },
+ ],
+});
diff --git a/package.json b/package.json
index 4cce7af31..fcf9e3f26 100644
--- a/package.json
+++ b/package.json
@@ -1,17 +1,21 @@
{
+ "name": "openstatus",
"private": true,
+ "workspaces": [
+ "apps/*",
+ "packages/**/*",
+ "packages/config/*"
+ ],
"scripts": {
"build": "turbo run build",
"dev": "turbo run dev",
"env": "bun env.ts",
- "lint": "biome lint .",
- "format": "pnpm biome format . --write && pnpm biome check . --write ",
- "format:fix": "pnpm biome check --fix --unsafe .",
- "lint:fix": "pnpm biome lint --write --unsafe .",
+ "lint": "oxlint",
+ "lint:fix": "oxlint --fix",
+ "lint:type": "oxlint --type-aware",
+ "format": "oxfmt && oxlint --fix",
+ "format:check": "oxfmt --check && oxlint",
"lint:turbo": "turbo run lint",
- "lint:oxc": "oxlint .",
- "lint:oxc-type": "oxlint . --type-aware --fix --fix-suggestions",
- "format:oxc": "oxfmt --check",
"dev:web": "turbo run dev --filter='./apps/web' --filter='./packages/db'",
"dev:status-page": "turbo run dev --filter='./apps/status-page' --filter='./packages/db'",
"dev:dashboard": "turbo run dev --filter='./apps/dashboard' --filter='./packages/db'",
@@ -20,7 +24,6 @@
"test": "turbo run test"
},
"devDependencies": {
- "@biomejs/biome": "catalog:",
"@turbo/gen": "catalog:",
"@types/node": "catalog:",
"knip": "catalog:",
@@ -30,7 +33,5 @@
"turbo": "2.9.14",
"typescript": "catalog:"
},
- "packageManager": "[email protected]",
- "name": "openstatus",
- "workspaces": ["apps/*", "packages/**/*", "packages/config/*"]
+ "packageManager": "[email protected]"
}
diff --git a/packages/analytics/src/server.ts b/packages/analytics/src/server.ts
index 2073052ef..780ef16e8 100644
--- a/packages/analytics/src/server.ts
+++ b/packages/analytics/src/server.ts
@@ -1,4 +1,5 @@
import { OpenPanel, type TrackProperties } from "@openpanel/sdk";
+
import { env } from "../env";
import type { EventProps } from "./events";
diff --git a/packages/api/package.json b/packages/api/package.json
index fedda8cb4..ae6b5c2f7 100644
--- a/packages/api/package.json
+++ b/packages/api/package.json
@@ -2,6 +2,9 @@
"name": "@openstatus/api",
"version": "1.0.0",
"description": "",
+ "keywords": [],
+ "license": "ISC",
+ "author": "",
"main": "index.ts",
"scripts": {
"test": "bun test",
@@ -15,6 +18,7 @@
"@openstatus/error": "workspace:*",
"@openstatus/importers": "workspace:*",
"@openstatus/locales": "workspace:*",
+ "@openstatus/notification-bird-whatsapp": "workspace:*",
"@openstatus/notification-discord": "workspace:*",
"@openstatus/notification-google-chat": "workspace:*",
"@openstatus/notification-grafana-oncall": "workspace:*",
@@ -24,7 +28,6 @@
"@openstatus/notification-pagerduty": "workspace:*",
"@openstatus/notification-slack": "workspace:*",
"@openstatus/notification-telegram": "workspace:*",
- "@openstatus/notification-bird-whatsapp": "workspace:*",
"@openstatus/notification-webhook": "workspace:*",
"@openstatus/regions": "workspace:*",
"@openstatus/services": "workspace:*",
@@ -53,8 +56,5 @@
"@types/react-dom": "catalog:",
"bun-types": "catalog:",
"typescript": "catalog:"
- },
- "keywords": [],
- "author": "",
- "license": "ISC"
+ }
}
diff --git a/packages/api/src/router/apiKey.ts b/packages/api/src/router/apiKey.ts
index 9141fe021..c70de633d 100644
--- a/packages/api/src/router/apiKey.ts
+++ b/packages/api/src/router/apiKey.ts
@@ -1,5 +1,3 @@
-import { z } from "zod";
-
import { Events } from "@openstatus/analytics";
import {
CreateApiKeyInput,
@@ -7,6 +5,7 @@ import {
listApiKeys,
revokeApiKey,
} from "@openstatus/services/api-key";
+import { z } from "zod";
import { toServiceCtx, toTRPCError } from "../service-adapter";
import { createTRPCRouter, protectedProcedure } from "../trpc";
diff --git a/packages/api/src/router/blob.test.ts b/packages/api/src/router/blob.test.ts
index d11b8740b..a357abdb8 100644
--- a/packages/api/src/router/blob.test.ts
+++ b/packages/api/src/router/blob.test.ts
@@ -1,4 +1,5 @@
import { describe, expect, it } from "bun:test";
+
import { isSvgFile, sanitizeSvg } from "./blob";
describe("isSvgFile", () => {
diff --git a/packages/api/src/router/blob.ts b/packages/api/src/router/blob.ts
index b5477510a..044afec32 100644
--- a/packages/api/src/router/blob.ts
+++ b/packages/api/src/router/blob.ts
@@ -1,7 +1,7 @@
+import { TRPCError } from "@trpc/server";
import { put } from "@vercel/blob";
import { z } from "zod";
-import { TRPCError } from "@trpc/server";
import { createTRPCRouter, protectedProcedure } from "../trpc";
const SVG_MAX_SIZE_BYTES = 100 * 1024; // 100KB
diff --git a/packages/api/src/router/checker.ts b/packages/api/src/router/checker.ts
index d44cf17a6..f99bfeca0 100644
--- a/packages/api/src/router/checker.ts
+++ b/packages/api/src/router/checker.ts
@@ -1,5 +1,3 @@
-import { TRPCError } from "@trpc/server";
-
import { Events } from "@openstatus/analytics";
import {
deserialize,
@@ -19,7 +17,9 @@ import {
type tpcPayloadSchema,
transformHeaders,
} from "@openstatus/utils";
+import { TRPCError } from "@trpc/server";
import { z } from "zod";
+
import { env } from "../env";
import { createTRPCRouter, protectedProcedure } from "../trpc";
diff --git a/packages/api/src/router/email/index.ts b/packages/api/src/router/email/index.ts
index 9e6ebff92..636626ba0 100644
--- a/packages/api/src/router/email/index.ts
+++ b/packages/api/src/router/email/index.ts
@@ -1,5 +1,3 @@
-import { z } from "zod";
-
import { and, eq } from "@openstatus/db";
import {
invitation,
@@ -11,6 +9,8 @@ import { notifyMaintenance } from "@openstatus/services/maintenance";
import { notifyStatusReport } from "@openstatus/services/status-report";
import { getChannel } from "@openstatus/subscriptions";
import { TRPCError } from "@trpc/server";
+import { z } from "zod";
+
import { env } from "../../env";
import { toServiceCtx, toTRPCError } from "../../service-adapter";
import {
diff --git a/packages/api/src/router/externalService.ts b/packages/api/src/router/externalService.ts
index 6bc43a90c..f5595899b 100644
--- a/packages/api/src/router/externalService.ts
+++ b/packages/api/src/router/externalService.ts
@@ -1,6 +1,3 @@
-import { TRPCError } from "@trpc/server";
-import { z } from "zod";
-
import {
getExternalServiceBySlug,
listExternalServices,
@@ -15,6 +12,8 @@ import {
listExternalIncidentsBySlug,
} from "@openstatus/services/external-service-incident";
import { OSTinybird } from "@openstatus/tinybird";
+import { TRPCError } from "@trpc/server";
+import { z } from "zod";
import { env } from "../env";
import { createTRPCRouter, publicProcedure } from "../trpc";
diff --git a/packages/api/src/router/feedback.ts b/packages/api/src/router/feedback.ts
index 0c76ac740..cb25f29b2 100644
--- a/packages/api/src/router/feedback.ts
+++ b/packages/api/src/router/feedback.ts
@@ -4,6 +4,7 @@ import {
feedbackType,
} from "@openstatus/db/src/schema";
import { z } from "zod";
+
import { env } from "../env";
import { createTRPCRouter, protectedProcedure } from "../trpc";
diff --git a/packages/api/src/router/import.test.ts b/packages/api/src/router/import.test.ts
index ab168a375..80c3c4c25 100644
--- a/packages/api/src/router/import.test.ts
+++ b/packages/api/src/router/import.test.ts
@@ -1,4 +1,5 @@
import { afterAll, beforeAll, expect, test } from "bun:test";
+
import { db, eq, inArray } from "@openstatus/db";
import {
maintenance,
diff --git a/packages/api/src/router/integration.ts b/packages/api/src/router/integration.ts
index f6ba301ef..745e5c392 100644
--- a/packages/api/src/router/integration.ts
+++ b/packages/api/src/router/integration.ts
@@ -1,5 +1,6 @@
-// biome-ignore lint/style/useNodejsImportProtocol: some error with build
+// oxlint-disable-next-line unicorn/prefer-node-protocol -- some error with build
import crypto from "crypto";
+
import {
deleteIntegration,
listIntegrations,
diff --git a/packages/api/src/router/invitation.ts b/packages/api/src/router/invitation.ts
index cd302865b..6932bf777 100644
--- a/packages/api/src/router/invitation.ts
+++ b/packages/api/src/router/invitation.ts
@@ -1,5 +1,3 @@
-import { z } from "zod";
-
import { Events } from "@openstatus/analytics";
import {
CreateInvitationInput,
@@ -9,8 +7,9 @@ import {
getInvitationByToken,
listInvitations,
} from "@openstatus/services/invitation";
-
import { TRPCError } from "@trpc/server";
+import { z } from "zod";
+
import { toServiceCtx, toTRPCError } from "../service-adapter";
import { createTRPCRouter, protectedProcedure } from "../trpc";
diff --git a/packages/api/src/router/maintenance.test.ts b/packages/api/src/router/maintenance.test.ts
index 1843398ec..65c853c0b 100644
--- a/packages/api/src/router/maintenance.test.ts
+++ b/packages/api/src/router/maintenance.test.ts
@@ -1,4 +1,5 @@
import { afterAll, beforeAll, expect, test } from "bun:test";
+
import { db, eq } from "@openstatus/db";
import {
maintenance,
diff --git a/packages/api/src/router/monitor.test.ts b/packages/api/src/router/monitor.test.ts
index 2c59b0d99..d19508a7d 100644
--- a/packages/api/src/router/monitor.test.ts
+++ b/packages/api/src/router/monitor.test.ts
@@ -1,4 +1,5 @@
import { afterAll, beforeAll, expect, test } from "bun:test";
+
import { db, eq } from "@openstatus/db";
import {
monitorTag,
diff --git a/packages/api/src/router/monitor.ts b/packages/api/src/router/monitor.ts
index b0c21b323..d91fc5321 100644
--- a/packages/api/src/router/monitor.ts
+++ b/packages/api/src/router/monitor.ts
@@ -1,3 +1,4 @@
+import { Events } from "@openstatus/analytics";
import {
headerAssertion,
jsonBodyAssertion,
@@ -31,7 +32,6 @@ import {
} from "@openstatus/services/monitor";
import { z } from "zod";
-import { Events } from "@openstatus/analytics";
import { toServiceCtx, toTRPCError } from "../service-adapter";
import { createTRPCRouter, protectedProcedure } from "../trpc";
import { testDns, testHttp, testTcp } from "./checker";
diff --git a/packages/api/src/router/notification.test.ts b/packages/api/src/router/notification.test.ts
index a31049986..d458ca281 100644
--- a/packages/api/src/router/notification.test.ts
+++ b/packages/api/src/router/notification.test.ts
@@ -1,4 +1,5 @@
import { afterAll, beforeAll, expect, test } from "bun:test";
+
import { db, eq } from "@openstatus/db";
import {
notification,
diff --git a/packages/api/src/router/notification.ts b/packages/api/src/router/notification.ts
index e097ac05f..771c417cf 100644
--- a/packages/api/src/router/notification.ts
+++ b/packages/api/src/router/notification.ts
@@ -1,6 +1,4 @@
-import { TRPCError } from "@trpc/server";
-import { z } from "zod";
-
+import { Events } from "@openstatus/analytics";
import {
discordDataSchema,
googleChatDataSchema,
@@ -15,16 +13,6 @@ import {
webhookDataSchema,
whatsappDataSchema,
} from "@openstatus/db/src/schema";
-import { NotFoundError } from "@openstatus/services";
-import {
- NotificationDataInputSchema,
- createNotification,
- deleteNotification,
- listNotifications,
- updateNotification,
-} from "@openstatus/services/notification";
-
-import { Events } from "@openstatus/analytics";
import { SchemaError } from "@openstatus/error";
import { sendTest as sendWhatsAppTest } from "@openstatus/notification-bird-whatsapp";
import { sendTestDiscordMessage as sendDiscordTest } from "@openstatus/notification-discord";
@@ -40,8 +28,18 @@ import {
import { sendTestSlackMessage as sendSlackTest } from "@openstatus/notification-slack";
import { sendTest as sendTelegramTest } from "@openstatus/notification-telegram";
import { sendTest as sendWebhookTest } from "@openstatus/notification-webhook";
+import { NotFoundError } from "@openstatus/services";
+import {
+ NotificationDataInputSchema,
+ createNotification,
+ deleteNotification,
+ listNotifications,
+ updateNotification,
+} from "@openstatus/services/notification";
import { redis } from "@openstatus/upstash";
+import { TRPCError } from "@trpc/server";
import { nanoid } from "nanoid";
+import { z } from "zod";
import { toServiceCtx, toTRPCError } from "../service-adapter";
import {
diff --git a/packages/api/src/router/page.ts b/packages/api/src/router/page.ts
index 8c88fe544..7137893ed 100644
--- a/packages/api/src/router/page.ts
+++ b/packages/api/src/router/page.ts
@@ -1,6 +1,3 @@
-import { TRPCError } from "@trpc/server";
-import { z } from "zod";
-
import { Events } from "@openstatus/analytics";
import { locales } from "@openstatus/locales";
import { NotFoundError } from "@openstatus/services";
@@ -28,6 +25,8 @@ import {
updatePageLocales,
updatePagePasswordProtection,
} from "@openstatus/services/page";
+import { TRPCError } from "@trpc/server";
+import { z } from "zod";
import { env } from "../env";
import { toServiceCtx, toTRPCError } from "../service-adapter";
diff --git a/packages/api/src/router/pageComponent.test.ts b/packages/api/src/router/pageComponent.test.ts
index a6ec46d67..c14e9f5e0 100644
--- a/packages/api/src/router/pageComponent.test.ts
+++ b/packages/api/src/router/pageComponent.test.ts
@@ -1,4 +1,5 @@
import { afterAll, beforeAll, expect, test } from "bun:test";
+
import { db, eq } from "@openstatus/db";
import { monitor } from "@openstatus/db/src/schema";
import { allPlans } from "@openstatus/db/src/schema/plan/config";
diff --git a/packages/api/src/router/pageComponent.ts b/packages/api/src/router/pageComponent.ts
index 4ef9ce26e..0a3e6064f 100644
--- a/packages/api/src/router/pageComponent.ts
+++ b/packages/api/src/router/pageComponent.ts
@@ -1,5 +1,3 @@
-import { z } from "zod";
-
import { Events } from "@openstatus/analytics";
import { NotFoundError } from "@openstatus/services";
import {
@@ -8,6 +6,7 @@ import {
listPageComponents,
updatePageComponentOrder,
} from "@openstatus/services/page-component";
+import { z } from "zod";
import { toServiceCtx, toTRPCError } from "../service-adapter";
import { createTRPCRouter, protectedProcedure } from "../trpc";
diff --git a/packages/api/src/router/privateLocation.test.ts b/packages/api/src/router/privateLocation.test.ts
index 34fe359ef..19e39485f 100644
--- a/packages/api/src/router/privateLocation.test.ts
+++ b/packages/api/src/router/privateLocation.test.ts
@@ -1,4 +1,5 @@
import { afterAll, beforeAll, expect, test } from "bun:test";
+
import { db, eq } from "@openstatus/db";
import {
privateLocation,
diff --git a/packages/api/src/router/statusPage.e2e.test.ts b/packages/api/src/router/statusPage.e2e.test.ts
index c53b237e8..1baab894e 100644
--- a/packages/api/src/router/statusPage.e2e.test.ts
+++ b/packages/api/src/router/statusPage.e2e.test.ts
@@ -1,4 +1,5 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
+
import { and, db, eq, isNotNull, isNull } from "@openstatus/db";
import {
incidentTable,
diff --git a/packages/api/src/router/statusPage.ts b/packages/api/src/router/statusPage.ts
index 77a64545e..c088fddff 100644
--- a/packages/api/src/router/statusPage.ts
+++ b/packages/api/src/router/statusPage.ts
@@ -1,5 +1,4 @@
-import { z } from "zod";
-
+import { Events } from "@openstatus/analytics";
import { and, eq, inArray, sql } from "@openstatus/db";
import {
maintenance,
@@ -23,10 +22,10 @@ import {
upsertSelfSignupSubscriber,
verifySelfSignupSubscriber,
} from "@openstatus/services/page-subscriber";
-
-import { Events } from "@openstatus/analytics";
import { TRPCError } from "@trpc/server";
import { endOfDay, startOfDay, subDays } from "date-fns";
+import { z } from "zod";
+
import { createTRPCRouter, publicProcedure } from "../trpc";
import {
type StatusData,
diff --git a/packages/api/src/router/statusPage.utils.test.ts b/packages/api/src/router/statusPage.utils.test.ts
index 8105774fb..2cca00cd2 100644
--- a/packages/api/src/router/statusPage.utils.test.ts
+++ b/packages/api/src/router/statusPage.utils.test.ts
@@ -1,4 +1,5 @@
import { describe, expect, it } from "bun:test";
+
import type {
Incident,
Maintenance,
@@ -6,6 +7,7 @@ import type {
StatusReport,
StatusReportUpdate,
} from "@openstatus/db/src/schema";
+
import {
fillStatusDataFor45Days,
getEvents,
diff --git a/packages/api/src/router/statusPage.utils.ts b/packages/api/src/router/statusPage.utils.ts
index 7d613688a..6123d6798 100644
--- a/packages/api/src/router/statusPage.utils.ts
+++ b/packages/api/src/router/statusPage.utils.ts
@@ -623,7 +623,6 @@ export function setDataByType({
if (status === "success") {
// Calculate success duration as remaining time
let totalEventMinutes = 0;
- // biome-ignore lint/suspicious/noAssignInExpressions: <explanation>
durationMap.forEach((minutes) => (totalEventMinutes += minutes));
// Use adjusted total minutes accounting for maintenance
diff --git a/packages/api/src/router/statusReport.test.ts b/packages/api/src/router/statusReport.test.ts
index 18361a380..2175fbf4c 100644
--- a/packages/api/src/router/statusReport.test.ts
+++ b/packages/api/src/router/statusReport.test.ts
@@ -1,4 +1,5 @@
import { afterAll, beforeAll, expect, test } from "bun:test";
+
import { db, eq, inArray } from "@openstatus/db";
import {
page,
diff --git a/packages/api/src/router/stripe/index.ts b/packages/api/src/router/stripe/index.ts
index 2111ce3c4..aa34c4325 100644
--- a/packages/api/src/router/stripe/index.ts
+++ b/packages/api/src/router/stripe/index.ts
@@ -1,5 +1,4 @@
-import { z } from "zod";
-
+import { Events } from "@openstatus/analytics";
import { count, eq, schema } from "@openstatus/db";
import {
selectWorkspaceSchema,
@@ -8,8 +7,6 @@ import {
workspace,
workspacePlans,
} from "@openstatus/db/src/schema";
-
-import { Events } from "@openstatus/analytics";
import { allPlans } from "@openstatus/db/src/schema/plan/config";
import {
addons,
@@ -18,6 +15,8 @@ import {
import { updateAddonInLimits } from "@openstatus/db/src/schema/plan/utils";
import { TRPCError } from "@trpc/server";
import type { Stripe } from "stripe";
+import { z } from "zod";
+
import { createTRPCRouter, protectedProcedure } from "../../trpc";
import { stripe } from "./shared";
import { getPriceIdForFeature, getPriceIdForPlan } from "./utils";
diff --git a/packages/api/src/router/stripe/webhook.ts b/packages/api/src/router/stripe/webhook.ts
index 77cfbdbb7..a0f8b49d0 100644
--- a/packages/api/src/router/stripe/webhook.ts
+++ b/packages/api/src/router/stripe/webhook.ts
@@ -1,7 +1,3 @@
-import { TRPCError } from "@trpc/server";
-import type Stripe from "stripe";
-import { z } from "zod";
-
import { Events, setupAnalytics } from "@openstatus/analytics";
import { and, asc, eq, isNull, ne } from "@openstatus/db";
import {
@@ -14,11 +10,14 @@ import {
usersToWorkspaces,
workspace,
} from "@openstatus/db/src/schema";
-
import {
getLimits,
updateAddonInLimits,
} from "@openstatus/db/src/schema/plan/utils";
+import { TRPCError } from "@trpc/server";
+import type Stripe from "stripe";
+import { z } from "zod";
+
import { createTRPCRouter, publicProcedure } from "../../trpc";
import { stripe } from "./shared";
import { getFeatureFromPriceId, getPlanFromPriceId } from "./utils";
diff --git a/packages/api/src/router/tinybird/index.test.ts b/packages/api/src/router/tinybird/index.test.ts
index 3ed27a8e4..759d92c66 100644
--- a/packages/api/src/router/tinybird/index.test.ts
+++ b/packages/api/src/router/tinybird/index.test.ts
@@ -1,4 +1,5 @@
import { expect, test } from "bun:test";
+
import { TRPCError } from "@trpc/server";
import { edgeRouter } from "../../edge";
diff --git a/packages/api/src/router/tinybird/index.ts b/packages/api/src/router/tinybird/index.ts
index 64ba101a8..8f5cba86b 100644
--- a/packages/api/src/router/tinybird/index.ts
+++ b/packages/api/src/router/tinybird/index.ts
@@ -1,11 +1,10 @@
-import { z } from "zod";
-
-import { monitorRegions } from "@openstatus/db/src/schema/constants";
-import { OSTinybird } from "@openstatus/tinybird";
-
import { type SQL, and, db, eq, inArray } from "@openstatus/db";
import { monitor } from "@openstatus/db/src/schema";
+import { monitorRegions } from "@openstatus/db/src/schema/constants";
+import { OSTinybird } from "@openstatus/tinybird";
import { TRPCError } from "@trpc/server";
+import { z } from "zod";
+
import { env } from "../../env";
import { createTRPCRouter, protectedProcedure } from "../../trpc";
import { calculatePeriod } from "./utils";
diff --git a/packages/api/src/router/workspace.ts b/packages/api/src/router/workspace.ts
index ea880b116..feaf1b192 100644
--- a/packages/api/src/router/workspace.ts
+++ b/packages/api/src/router/workspace.ts
@@ -1,5 +1,3 @@
-import { z } from "zod";
-
import { Events } from "@openstatus/analytics";
import {
getWorkspace,
@@ -7,6 +5,7 @@ import {
listWorkspaces,
updateWorkspaceName,
} from "@openstatus/services/workspace";
+import { z } from "zod";
import { toServiceCtx, toTRPCError } from "../service-adapter";
import { createTRPCRouter, protectedProcedure } from "../trpc";
diff --git a/packages/api/src/service-adapter.ts b/packages/api/src/service-adapter.ts
index e865d47be..8f1e21b12 100644
--- a/packages/api/src/service-adapter.ts
+++ b/packages/api/src/service-adapter.ts
@@ -1,8 +1,7 @@
+import { type ServiceContext, ServiceError } from "@openstatus/services";
import { TRPCError } from "@trpc/server";
import { ZodError } from "zod";
-import { type ServiceContext, ServiceError } from "@openstatus/services";
-
import type { Context } from "./trpc";
type AuthedContext = Context & {
diff --git a/packages/api/src/trpc.ts b/packages/api/src/trpc.ts
index d93c5d2b4..4e380ee0b 100644
--- a/packages/api/src/trpc.ts
+++ b/packages/api/src/trpc.ts
@@ -1,8 +1,3 @@
-import { TRPCError, initTRPC } from "@trpc/server";
-import { type NextRequest, after } from "next/server";
-import superjson from "superjson";
-import { ZodError, treeifyError } from "zod";
-
import {
type EventProps,
type IdentifyProps,
@@ -11,6 +6,10 @@ import {
} from "@openstatus/analytics";
import { db } from "@openstatus/db";
import type { User, Workspace } from "@openstatus/db/src/schema";
+import { TRPCError, initTRPC } from "@trpc/server";
+import { type NextRequest, after } from "next/server";
+import superjson from "superjson";
+import { ZodError, treeifyError } from "zod";
import { resolveActiveWorkspace } from "./auth/resolve-active-workspace";
diff --git a/packages/assertions/package.json b/packages/assertions/package.json
index 49758b484..0472bd9f5 100644
--- a/packages/assertions/package.json
+++ b/packages/assertions/package.json
@@ -2,6 +2,9 @@
"name": "@openstatus/assertions",
"version": "1.0.0",
"description": "",
+ "keywords": [],
+ "license": "ISC",
+ "author": "",
"main": "src/index.ts",
"scripts": {},
"dependencies": {
@@ -11,8 +14,5 @@
"devDependencies": {
"@openstatus/tsconfig": "workspace:*",
"typescript": "catalog:"
- },
- "keywords": [],
- "author": "",
- "license": "ISC"
+ }
}
diff --git a/packages/db/package.json b/packages/db/package.json
index 3cc4d84c8..a08d4abc4 100644
--- a/packages/db/package.json
+++ b/packages/db/package.json
@@ -2,6 +2,7 @@
"name": "@openstatus/db",
"version": "0.0.1",
"description": "",
+ "author": "OpenStatus",
"main": "src/index.ts",
"scripts": {
"generate": "drizzle-kit generate",
@@ -32,6 +33,5 @@
"drizzle-kit": "catalog:",
"next-auth": "catalog:",
"typescript": "catalog:"
- },
- "author": "OpenStatus"
+ }
}
diff --git a/packages/db/script/region-migration.test.ts b/packages/db/script/region-migration.test.ts
index 722389cd1..b9e3bc60a 100644
--- a/packages/db/script/region-migration.test.ts
+++ b/packages/db/script/region-migration.test.ts
@@ -1,5 +1,7 @@
import { beforeEach, describe, expect, test } from "bun:test";
+
import type { z } from "zod";
+
import type { monitorRegionSchema } from "../src/schema/constants";
import { updateRegion } from "./region-migration";
diff --git a/packages/db/script/region-migration.ts b/packages/db/script/region-migration.ts
index adba2997d..3bf7d5adf 100644
--- a/packages/db/script/region-migration.ts
+++ b/packages/db/script/region-migration.ts
@@ -1,4 +1,5 @@
import { z } from "zod";
+
import { db, eq, schema } from "../src";
import { selectMonitorSchema } from "../src/schema";
import type { monitorRegionSchema } from "../src/schema/constants";
diff --git a/packages/db/src/schema/applications/application.ts b/packages/db/src/schema/applications/application.ts
index 46ff7bbe9..d5042e67e 100644
--- a/packages/db/src/schema/applications/application.ts
+++ b/packages/db/src/schema/applications/application.ts
@@ -1,5 +1,6 @@
import { sql } from "drizzle-orm";
import { index, integer, sqliteTable, text } from "drizzle-orm/sqlite-core";
+
import { workspace } from "../workspaces";
export const application = sqliteTable(
diff --git a/packages/db/src/schema/applications/validation.ts b/packages/db/src/schema/applications/validation.ts
index eefc9fc75..f78327669 100644
--- a/packages/db/src/schema/applications/validation.ts
+++ b/packages/db/src/schema/applications/validation.ts
@@ -1,4 +1,5 @@
import { createSelectSchema } from "drizzle-zod";
+
import { application } from "./application";
export const selectApplicationSchema = createSelectSchema(application);
diff --git a/packages/db/src/schema/check/check.ts b/packages/db/src/schema/check/check.ts
index c22305593..1b950ab99 100644
--- a/packages/db/src/schema/check/check.ts
+++ b/packages/db/src/schema/check/check.ts
@@ -1,5 +1,6 @@
import { sql } from "drizzle-orm";
import { index, integer, sqliteTable, text } from "drizzle-orm/sqlite-core";
+
import { monitorMethods } from "../monitors/constants";
import { workspace } from "../workspaces";
diff --git a/packages/db/src/schema/feedbacks/validation.ts b/packages/db/src/schema/feedbacks/validation.ts
index e1e94afcc..e5ae1707d 100644
--- a/packages/db/src/schema/feedbacks/validation.ts
+++ b/packages/db/src/schema/feedbacks/validation.ts
@@ -1,5 +1,6 @@
import { createInsertSchema, createSelectSchema } from "drizzle-zod";
import type { z } from "zod";
+
import { feedback } from "./feedback";
export const insertFeedbackSchema = createInsertSchema(feedback);
diff --git a/packages/db/src/schema/maintenances/validation.ts b/packages/db/src/schema/maintenances/validation.ts
index 40f1084bb..62ab02861 100644
--- a/packages/db/src/schema/maintenances/validation.ts
+++ b/packages/db/src/schema/maintenances/validation.ts
@@ -1,5 +1,6 @@
import { createInsertSchema, createSelectSchema } from "drizzle-zod";
import { z } from "zod";
+
import { maintenance } from "./maintenance";
export const insertMaintenanceSchema = createInsertSchema(maintenance)
diff --git a/packages/db/src/schema/monitor_run/monitor_run.ts b/packages/db/src/schema/monitor_run/monitor_run.ts
index 5d58298a7..ca9fbfed5 100644
--- a/packages/db/src/schema/monitor_run/monitor_run.ts
+++ b/packages/db/src/schema/monitor_run/monitor_run.ts
@@ -1,5 +1,6 @@
import { sql } from "drizzle-orm";
import { index, integer, sqliteTable } from "drizzle-orm/sqlite-core";
+
import { monitor } from "../monitors";
import { workspace } from "../workspaces/workspace";
diff --git a/packages/db/src/schema/monitors/validation.ts b/packages/db/src/schema/monitors/validation.ts
index e28f5f4a7..9e2458662 100644
--- a/packages/db/src/schema/monitors/validation.ts
+++ b/packages/db/src/schema/monitors/validation.ts
@@ -1,8 +1,7 @@
+import * as assertions from "@openstatus/assertions";
import { createInsertSchema, createSelectSchema } from "drizzle-zod";
import { z } from "zod";
-import * as assertions from "@openstatus/assertions";
-
import { monitorPeriodicitySchema, monitorRegionSchema } from "../constants";
import { monitorJobTypes, monitorMethods, monitorStatus } from "./constants";
import { monitor } from "./monitor";
@@ -12,7 +11,7 @@ export const monitorStatusSchema = z.enum(monitorStatus);
export const monitorJobTypesSchema = z.enum(monitorJobTypes);
// TODO: shared function
-// biome-ignore lint/correctness/noUnusedVariables: <explanation>
+// oxlint-disable-next-line eslint/no-unused-vars
function stringToArrayProcess<T>(_string: T) {}
const regionsToArraySchema = z.preprocess((val) => {
diff --git a/packages/db/src/schema/page_components/validation.ts b/packages/db/src/schema/page_components/validation.ts
index 7b85497ce..27ef50076 100644
--- a/packages/db/src/schema/page_components/validation.ts
+++ b/packages/db/src/schema/page_components/validation.ts
@@ -1,5 +1,6 @@
import { createInsertSchema, createSelectSchema } from "drizzle-zod";
import type { z } from "zod";
+
import { pageComponent } from "./page_components";
export const selectPageComponentSchema = createSelectSchema(pageComponent);
diff --git a/packages/db/src/schema/pages/page.ts b/packages/db/src/schema/pages/page.ts
index 774c8b86d..5f6e753a6 100644
--- a/packages/db/src/schema/pages/page.ts
+++ b/packages/db/src/schema/pages/page.ts
@@ -1,7 +1,7 @@
+import type { Locale } from "@openstatus/locales";
import { relations, sql } from "drizzle-orm";
import { index, integer, sqliteTable, text } from "drizzle-orm/sqlite-core";
-import type { Locale } from "@openstatus/locales";
import { maintenance } from "../maintenances";
import { pageComponentGroup } from "../page_component_groups";
import { pageComponent } from "../page_components";
diff --git a/packages/db/src/schema/plan/config.ts b/packages/db/src/schema/plan/config.ts
index 44416573e..285973394 100644
--- a/packages/db/src/schema/plan/config.ts
+++ b/packages/db/src/schema/plan/config.ts
@@ -1,4 +1,5 @@
import { AVAILABLE_REGIONS, FREE_FLY_REGIONS } from "@openstatus/regions";
+
import type { WorkspacePlan } from "../workspaces/validation";
import type { Addons, IntervalPrice, PlanLimits, Price } from "./schema";
diff --git a/packages/db/src/schema/plan/schema.ts b/packages/db/src/schema/plan/schema.ts
index a84a1f35f..bc2f8a12d 100644
--- a/packages/db/src/schema/plan/schema.ts
+++ b/packages/db/src/schema/plan/schema.ts
@@ -1,5 +1,6 @@
import { FREE_FLY_REGIONS } from "@openstatus/regions";
import { z } from "zod";
+
import { monitorPeriodicitySchema, monitorRegionSchema } from "../constants";
// REMINDER: this is not a database table but just a schema for the limits of the plan
diff --git a/packages/db/src/schema/private_locations/private_locations.ts b/packages/db/src/schema/private_locations/private_locations.ts
index 98e1ec77e..996269ca4 100644
--- a/packages/db/src/schema/private_locations/private_locations.ts
+++ b/packages/db/src/schema/private_locations/private_locations.ts
@@ -1,6 +1,7 @@
import { relations } from "drizzle-orm";
import { sql } from "drizzle-orm/sql";
import { index, integer, sqliteTable, text } from "drizzle-orm/sqlite-core";
+
import { monitor } from "../monitors/monitor";
import { workspace } from "../workspaces";
diff --git a/packages/db/src/schema/viewers/viewer.ts b/packages/db/src/schema/viewers/viewer.ts
index 1c88e0bd5..57251b2f1 100644
--- a/packages/db/src/schema/viewers/viewer.ts
+++ b/packages/db/src/schema/viewers/viewer.ts
@@ -5,7 +5,6 @@ import {
sqliteTable,
text,
} from "drizzle-orm/sqlite-core";
-
import type { AdapterAccountType } from "next-auth/adapters";
export const viewer = sqliteTable("viewer", {
diff --git a/packages/db/src/seed/external-services.ts b/packages/db/src/seed/external-services.ts
index 24448c547..621881f05 100644
--- a/packages/db/src/seed/external-services.ts
+++ b/packages/db/src/seed/external-services.ts
@@ -1,4 +1,5 @@
import type { InferInsertModel } from "drizzle-orm";
+
import type { externalService } from "../schema";
type ExternalServiceSeedEntry = InferInsertModel<typeof externalService>;
diff --git a/packages/db/src/sync-db.ts b/packages/db/src/sync-db.ts
index 08eb70fb1..b9359d5b1 100644
--- a/packages/db/src/sync-db.ts
+++ b/packages/db/src/sync-db.ts
@@ -1,6 +1,6 @@
+import { createClient } from "@libsql/client";
import { drizzle } from "drizzle-orm/libsql";
-import { createClient } from "@libsql/client";
import { env } from "../env.mjs";
import * as schema from "./schema";
diff --git a/packages/db/src/utils/api-key.test.ts b/packages/db/src/utils/api-key.test.ts
index f099a299f..63971b5cd 100644
--- a/packages/db/src/utils/api-key.test.ts
+++ b/packages/db/src/utils/api-key.test.ts
@@ -1,4 +1,5 @@
import { describe, expect, it } from "bun:test";
+
import {
generateApiKey,
hashApiKey,
diff --git a/packages/db/src/utils/api-key.ts b/packages/db/src/utils/api-key.ts
index 7b2de9083..c2a4c19a0 100644
--- a/packages/db/src/utils/api-key.ts
+++ b/packages/db/src/utils/api-key.ts
@@ -1,5 +1,6 @@
-// biome-ignore lint/style/useNodejsImportProtocol: <explanation>
+// oxlint-disable-next-line unicorn/prefer-node-protocol
import crypto from "crypto";
+
import bcrypt from "bcryptjs";
/**
diff --git a/packages/emails/emails/_components/footer.tsx b/packages/emails/emails/_components/footer.tsx
index 2870381ab..87605d126 100644
--- a/packages/emails/emails/_components/footer.tsx
+++ b/packages/emails/emails/_components/footer.tsx
@@ -1,6 +1,7 @@
/** @jsxImportSource react */
import { Link, Section, Text } from "react-email";
+
import { styles } from "./styles";
export function Footer() {
diff --git a/packages/emails/emails/_components/layout.tsx b/packages/emails/emails/_components/layout.tsx
index e5d323af9..74b8ac748 100644
--- a/packages/emails/emails/_components/layout.tsx
+++ b/packages/emails/emails/_components/layout.tsx
@@ -2,6 +2,7 @@
import type * as React from "react";
import { Container, Img, Link, Section } from "react-email";
+
import { Footer } from "./footer";
import { styles } from "./styles";
diff --git a/packages/emails/emails/monitor-alert.tsx b/packages/emails/emails/monitor-alert.tsx
index 0e7c6b938..1920ed8d5 100644
--- a/packages/emails/emails/monitor-alert.tsx
+++ b/packages/emails/emails/monitor-alert.tsx
@@ -13,6 +13,7 @@ import {
Text,
} from "react-email";
import { z } from "zod";
+
import { Layout } from "./_components/layout";
import { colors, styles } from "./_components/styles";
diff --git a/packages/emails/emails/monitor-deactivation.tsx b/packages/emails/emails/monitor-deactivation.tsx
index c5dab65f4..df6518f90 100644
--- a/packages/emails/emails/monitor-deactivation.tsx
+++ b/packages/emails/emails/monitor-deactivation.tsx
@@ -2,6 +2,7 @@
import { Body, Button, Head, Html, Preview, Text } from "react-email";
import { z } from "zod";
+
import { Layout } from "./_components/layout";
import { styles } from "./_components/styles";
diff --git a/packages/emails/emails/monitor-paused.tsx b/packages/emails/emails/monitor-paused.tsx
index 333d4d1a3..76516b637 100644
--- a/packages/emails/emails/monitor-paused.tsx
+++ b/packages/emails/emails/monitor-paused.tsx
@@ -1,6 +1,7 @@
/** @jsxImportSource react */
import { Body, Button, Head, Html, Preview, Text } from "react-email";
+
import { Layout } from "./_components/layout";
import { styles } from "./_components/styles";
diff --git a/packages/emails/emails/page-subscription.tsx b/packages/emails/emails/page-subscription.tsx
index e6ffa96ff..d15b48349 100644
--- a/packages/emails/emails/page-subscription.tsx
+++ b/packages/emails/emails/page-subscription.tsx
@@ -2,6 +2,7 @@
import { Body, Head, Heading, Html, Link, Preview, Text } from "react-email";
import { z } from "zod";
+
import { Layout } from "./_components/layout";
import { styles } from "./_components/styles";
diff --git a/packages/emails/emails/status-page-magic-link.tsx b/packages/emails/emails/status-page-magic-link.tsx
index 6d993f2b7..97bbb430a 100644
--- a/packages/emails/emails/status-page-magic-link.tsx
+++ b/packages/emails/emails/status-page-magic-link.tsx
@@ -1,6 +1,7 @@
/** @jsxImportSource react */
import { Body, Head, Heading, Html, Link, Preview, Text } from "react-email";
+
import { Layout } from "./_components/layout";
import { styles } from "./_components/styles";
diff --git a/packages/emails/emails/status-report.tsx b/packages/emails/emails/status-report.tsx
index cb2d65059..a1cfda56d 100644
--- a/packages/emails/emails/status-report.tsx
+++ b/packages/emails/emails/status-report.tsx
@@ -14,6 +14,7 @@ import {
Text,
} from "react-email";
import { z } from "zod";
+
import { Layout } from "./_components/layout";
import { colors, styles } from "./_components/styles";
diff --git a/packages/emails/emails/team-invitation.tsx b/packages/emails/emails/team-invitation.tsx
index 2ba254792..244ce9a25 100644
--- a/packages/emails/emails/team-invitation.tsx
+++ b/packages/emails/emails/team-invitation.tsx
@@ -2,6 +2,7 @@
import { Body, Head, Heading, Html, Link, Preview, Text } from "react-email";
import { z } from "zod";
+
import { Layout } from "./_components/layout";
import { styles } from "./_components/styles";
diff --git a/packages/emails/package.json b/packages/emails/package.json
index 4057addff..849cc2a90 100644
--- a/packages/emails/package.json
+++ b/packages/emails/package.json
@@ -2,14 +2,14 @@
"name": "@openstatus/emails",
"version": "1.0.0",
"description": "",
+ "keywords": [],
+ "license": "ISC",
+ "author": "",
"main": "./src/index.ts",
"scripts": {
"dev:email": "email dev",
"test": "bun test"
},
- "keywords": [],
- "author": "",
- "license": "ISC",
"dependencies": {
"@t3-oss/env-core": "catalog:",
"effect": "catalog:",
diff --git a/packages/emails/src/client.integration.test.tsx b/packages/emails/src/client.integration.test.tsx
index 061ae8c0a..caf8671d8 100644
--- a/packages/emails/src/client.integration.test.tsx
+++ b/packages/emails/src/client.integration.test.tsx
@@ -1,7 +1,9 @@
/** @jsxImportSource react */
import { describe, expect, test } from "bun:test";
+
import { render } from "react-email";
+
import StatusReportEmail from "../emails/status-report";
describe("Status Report Email - Unsubscribe Link in Body", () => {
diff --git a/packages/emails/src/client.tsx b/packages/emails/src/client.tsx
index ba4fafb43..61775152e 100644
--- a/packages/emails/src/client.tsx
+++ b/packages/emails/src/client.tsx
@@ -3,6 +3,7 @@
import { Effect, Schedule } from "effect";
import { render } from "react-email";
import { Resend } from "resend";
+
import FollowUpEmail from "../emails/followup";
import type { MonitorAlertProps } from "../emails/monitor-alert";
import PageSubscriptionEmail from "../emails/page-subscription";
diff --git a/packages/emails/src/send.ts b/packages/emails/src/send.ts
index 33dff966c..3947a4c5c 100644
--- a/packages/emails/src/send.ts
+++ b/packages/emails/src/send.ts
@@ -1,7 +1,7 @@
import type React from "react";
+import { render } from "react-email";
import { Resend } from "resend";
-import { render } from "react-email";
import { env } from "./env";
export const resend = new Resend(env.RESEND_API_KEY);
diff --git a/packages/error/package.json b/packages/error/package.json
index d9a779be2..fd9fe9533 100644
--- a/packages/error/package.json
+++ b/packages/error/package.json
@@ -2,6 +2,9 @@
"name": "@openstatus/error",
"version": "0.0.0",
"description": "",
+ "keywords": [],
+ "license": "ISC",
+ "author": "",
"main": "index.ts",
"scripts": {},
"dependencies": {
@@ -10,8 +13,5 @@
"devDependencies": {
"@openstatus/tsconfig": "workspace:*",
"typescript": "catalog:"
- },
- "keywords": [],
- "author": "",
- "license": "ISC"
+ }
}
diff --git a/packages/header-analysis/package.json b/packages/header-analysis/package.json
index a8bd86799..7b78a259c 100644
--- a/packages/header-analysis/package.json
+++ b/packages/header-analysis/package.json
@@ -2,14 +2,14 @@
"name": "@openstatus/header-analysis",
"version": "1.0.0",
"description": "",
+ "keywords": [],
+ "license": "ISC",
+ "author": "",
"main": "src/index.ts",
"scripts": {},
"dependencies": {},
"devDependencies": {
"@openstatus/tsconfig": "workspace:*",
"typescript": "catalog:"
- },
- "keywords": [],
- "author": "",
- "license": "ISC"
+ }
}
diff --git a/packages/header-analysis/src/parser/cache-control.ts b/packages/header-analysis/src/parser/cache-control.ts
index 14d085fb2..151ae066f 100644
--- a/packages/header-analysis/src/parser/cache-control.ts
+++ b/packages/header-analysis/src/parser/cache-control.ts
@@ -12,7 +12,6 @@ export function parseCacheControlHeader(header: string): CacheControlInfo[] {
const cacheControlInfo: CacheControlInfo[] = [];
- // biome-ignore lint/complexity/noForEach: <explanation>
cacheControlDirectives.forEach((directive) => {
const parts = directive.split("=");
diff --git a/packages/icons/package.json b/packages/icons/package.json
index acabc3e91..f50ea616a 100644
--- a/packages/icons/package.json
+++ b/packages/icons/package.json
@@ -1,20 +1,19 @@
{
"name": "@openstatus/icons",
"version": "0.0.0",
+ "license": "MIT",
"main": "./src/index.tsx",
"types": "./src/index.tsx",
- "license": "MIT",
"scripts": {
- "lint": "biome lint \"**/*.ts*\""
+ "lint": "oxlint"
+ },
+ "dependencies": {
+ "react": "catalog:"
},
"devDependencies": {
- "@biomejs/biome": "catalog:",
"@openstatus/tsconfig": "workspace:*",
"@types/react": "catalog:",
"@types/react-dom": "catalog:",
"typescript": "catalog:"
- },
- "dependencies": {
- "react": "catalog:"
}
}
diff --git a/packages/importers/src/providers/betterstack/client.test.ts b/packages/importers/src/providers/betterstack/client.test.ts
index 9b874afdb..7b13f5dd1 100644
--- a/packages/importers/src/providers/betterstack/client.test.ts
+++ b/packages/importers/src/providers/betterstack/client.test.ts
@@ -1,4 +1,5 @@
import { afterEach, beforeEach, describe, expect, mock, test } from "bun:test";
+
import { createBetterstackClient } from "./client";
import {
MOCK_INCIDENTS,
diff --git a/packages/importers/src/providers/betterstack/client.ts b/packages/importers/src/providers/betterstack/client.ts
index 32dd8da58..cf6290337 100644
--- a/packages/importers/src/providers/betterstack/client.ts
+++ b/packages/importers/src/providers/betterstack/client.ts
@@ -1,4 +1,5 @@
import type { z } from "zod";
+
import {
type BetterstackIncident,
BetterstackIncidentSchema,
diff --git a/packages/importers/src/providers/betterstack/mapper.test.ts b/packages/importers/src/providers/betterstack/mapper.test.ts
index 7fce98648..06cf6e636 100644
--- a/packages/importers/src/providers/betterstack/mapper.test.ts
+++ b/packages/importers/src/providers/betterstack/mapper.test.ts
@@ -1,4 +1,5 @@
import { describe, expect, test } from "bun:test";
+
import {
MOCK_INCIDENTS,
MOCK_MONITORS,
diff --git a/packages/importers/src/providers/betterstack/provider.test.ts b/packages/importers/src/providers/betterstack/provider.test.ts
index 30665f796..9ef88f339 100644
--- a/packages/importers/src/providers/betterstack/provider.test.ts
+++ b/packages/importers/src/providers/betterstack/provider.test.ts
@@ -1,4 +1,5 @@
import { afterEach, beforeEach, describe, expect, mock, test } from "bun:test";
+
import {
MOCK_INCIDENTS,
MOCK_MONITORS,
diff --git a/packages/importers/src/providers/instatus/client.test.ts b/packages/importers/src/providers/instatus/client.test.ts
index 0fade1742..7bdcbf178 100644
--- a/packages/importers/src/providers/instatus/client.test.ts
+++ b/packages/importers/src/providers/instatus/client.test.ts
@@ -1,4 +1,5 @@
import { afterEach, beforeEach, describe, expect, mock, test } from "bun:test";
+
import { createInstatusClient } from "./client";
import {
MOCK_COMPONENTS,
diff --git a/packages/importers/src/providers/instatus/client.ts b/packages/importers/src/providers/instatus/client.ts
index 5c5fa6322..1d3cd6ec6 100644
--- a/packages/importers/src/providers/instatus/client.ts
+++ b/packages/importers/src/providers/instatus/client.ts
@@ -1,4 +1,5 @@
import { z } from "zod";
+
import {
type InstatusComponent,
InstatusComponentSchema,
diff --git a/packages/importers/src/providers/instatus/mapper.test.ts b/packages/importers/src/providers/instatus/mapper.test.ts
index f9e8dc30b..8b008a57c 100644
--- a/packages/importers/src/providers/instatus/mapper.test.ts
+++ b/packages/importers/src/providers/instatus/mapper.test.ts
@@ -1,4 +1,5 @@
import { describe, expect, it } from "bun:test";
+
import {
MOCK_COMPONENTS,
MOCK_INCIDENTS,
diff --git a/packages/importers/src/providers/instatus/provider.test.ts b/packages/importers/src/providers/instatus/provider.test.ts
index e35ff7635..17b961e81 100644
--- a/packages/importers/src/providers/instatus/provider.test.ts
+++ b/packages/importers/src/providers/instatus/provider.test.ts
@@ -1,4 +1,5 @@
import { afterAll, beforeAll, describe, expect, it } from "bun:test";
+
import {
MOCK_COMPONENTS,
MOCK_INCIDENTS,
diff --git a/packages/importers/src/providers/statuspage/client.test.ts b/packages/importers/src/providers/statuspage/client.test.ts
index b8a9e5106..d057a5b34 100644
--- a/packages/importers/src/providers/statuspage/client.test.ts
+++ b/packages/importers/src/providers/statuspage/client.test.ts
@@ -1,4 +1,5 @@
import { afterEach, beforeEach, describe, expect, mock, test } from "bun:test";
+
import { createStatuspageClient } from "./client";
import {
MOCK_COMPONENTS,
diff --git a/packages/importers/src/providers/statuspage/client.ts b/packages/importers/src/providers/statuspage/client.ts
index 328fe721e..956f1a8bd 100644
--- a/packages/importers/src/providers/statuspage/client.ts
+++ b/packages/importers/src/providers/statuspage/client.ts
@@ -1,4 +1,5 @@
import { z } from "zod";
+
import {
type StatuspageComponent,
StatuspageComponentSchema,
diff --git a/packages/importers/src/providers/statuspage/mapper.test.ts b/packages/importers/src/providers/statuspage/mapper.test.ts
index 98a5d6370..8b7547ed2 100644
--- a/packages/importers/src/providers/statuspage/mapper.test.ts
+++ b/packages/importers/src/providers/statuspage/mapper.test.ts
@@ -1,4 +1,5 @@
import { describe, expect, it } from "bun:test";
+
import {
MOCK_COMPONENTS,
MOCK_COMPONENT_GROUPS,
diff --git a/packages/importers/src/providers/statuspage/provider.test.ts b/packages/importers/src/providers/statuspage/provider.test.ts
index b05aca28d..c0176167e 100644
--- a/packages/importers/src/providers/statuspage/provider.test.ts
+++ b/packages/importers/src/providers/statuspage/provider.test.ts
@@ -1,4 +1,5 @@
import { afterAll, beforeAll, describe, expect, it } from "bun:test";
+
import {
MOCK_COMPONENTS,
MOCK_COMPONENT_GROUPS,
diff --git a/packages/locales/package.json b/packages/locales/package.json
index b3983d4e6..9a4556ff3 100644
--- a/packages/locales/package.json
+++ b/packages/locales/package.json
@@ -2,6 +2,9 @@
"name": "@openstatus/locales",
"version": "1.0.0",
"description": "Shared locale registry for OpenStatus",
+ "keywords": [],
+ "license": "ISC",
+ "author": "",
"main": "index.ts",
"scripts": {},
"dependencies": {
@@ -10,8 +13,5 @@
"devDependencies": {
"@openstatus/tsconfig": "workspace:*",
"typescript": "catalog:"
- },
- "keywords": [],
- "author": "",
- "license": "ISC"
+ }
}
diff --git a/packages/notifications/base/package.json b/packages/notifications/base/package.json
index 39a1abc11..cd093dd23 100644
--- a/packages/notifications/base/package.json
+++ b/packages/notifications/base/package.json
@@ -2,6 +2,9 @@
"name": "@openstatus/notification-base",
"version": "0.0.1",
"description": "Shared types and utilities for OpenStatus notification providers",
+ "keywords": [],
+ "license": "ISC",
+ "author": "",
"main": "src/index.ts",
"scripts": {
"test": "bun test",
@@ -16,8 +19,5 @@
"@types/node": "catalog:",
"bun-types": "catalog:",
"typescript": "catalog:"
- },
- "keywords": [],
- "author": "",
- "license": "ISC"
+ }
}
diff --git a/packages/notifications/base/src/utils/duration.test.ts b/packages/notifications/base/src/utils/duration.test.ts
index e036c71f5..a89d43780 100644
--- a/packages/notifications/base/src/utils/duration.test.ts
+++ b/packages/notifications/base/src/utils/duration.test.ts
@@ -1,4 +1,5 @@
import { describe, expect, it } from "bun:test";
+
import { calculateDuration, formatDuration } from "./duration";
describe("formatDuration", () => {
diff --git a/packages/notifications/base/src/utils/incident.test.ts b/packages/notifications/base/src/utils/incident.test.ts
index f016771e7..bfacd6a7c 100644
--- a/packages/notifications/base/src/utils/incident.test.ts
+++ b/packages/notifications/base/src/utils/incident.test.ts
@@ -1,5 +1,7 @@
import { describe, expect, it } from "bun:test";
+
import type { Incident } from "@openstatus/db/src/schema";
+
import { getIncidentDuration } from "./incident";
// Helper to create a partial incident object for testing
diff --git a/packages/notifications/base/src/utils/incident.ts b/packages/notifications/base/src/utils/incident.ts
index b349fe475..aa6709f15 100644
--- a/packages/notifications/base/src/utils/incident.ts
+++ b/packages/notifications/base/src/utils/incident.ts
@@ -1,4 +1,5 @@
import type { Incident } from "@openstatus/db/src/schema";
+
import { formatDuration } from "./duration";
/**
diff --git a/packages/notifications/base/src/utils/message.ts b/packages/notifications/base/src/utils/message.ts
index 1777eeaa0..65f5a8ca7 100644
--- a/packages/notifications/base/src/utils/message.ts
+++ b/packages/notifications/base/src/utils/message.ts
@@ -1,5 +1,6 @@
import type { Incident } from "@openstatus/db/src/schema";
import { getRegionInfo } from "@openstatus/regions";
+
import type { FormattedMessageData, NotificationContext } from "../types";
import { getIncidentDuration } from "./incident";
import { formatTimestamp } from "./timestamp";
diff --git a/packages/notifications/bird-whatsapp/src/index.test.ts b/packages/notifications/bird-whatsapp/src/index.test.ts
index 36bfbfa7e..043e81fbd 100644
--- a/packages/notifications/bird-whatsapp/src/index.test.ts
+++ b/packages/notifications/bird-whatsapp/src/index.test.ts
@@ -7,8 +7,10 @@ import {
spyOn,
test,
} from "bun:test";
+
import type { Monitor } from "@openstatus/db/src/schema";
import { selectNotificationSchema } from "@openstatus/db/src/schema";
+
import { sendAlert, sendDegraded, sendRecovery, sendTest } from "./index";
const BIRD_URL_PATTERN =
diff --git a/packages/notifications/bird-whatsapp/src/index.ts b/packages/notifications/bird-whatsapp/src/index.ts
index 4d00d4e28..cdb1ace0c 100644
--- a/packages/notifications/bird-whatsapp/src/index.ts
+++ b/packages/notifications/bird-whatsapp/src/index.ts
@@ -1,5 +1,6 @@
import { whatsappDataSchema } from "@openstatus/db/src/schema";
import type { NotificationContext } from "@openstatus/notification-base";
+
import { env } from "./env";
const TEMPLATES = {
diff --git a/packages/notifications/discord/src/index.test.ts b/packages/notifications/discord/src/index.test.ts
index f485ca034..14169bbef 100644
--- a/packages/notifications/discord/src/index.test.ts
+++ b/packages/notifications/discord/src/index.test.ts
@@ -1,6 +1,8 @@
import { afterEach, beforeEach, describe, expect, spyOn, test } from "bun:test";
+
import { selectNotificationSchema } from "@openstatus/db/src/schema";
import { COLOR_DECIMALS } from "@openstatus/notification-base";
+
import {
sendAlert,
sendDegraded,
@@ -9,7 +11,6 @@ import {
} from "./index";
describe("Discord Notifications", () => {
- // biome-ignore lint/suspicious/noExplicitAny: <explanation>
let fetchMock: any = undefined;
beforeEach(() => {
diff --git a/packages/notifications/discord/src/index.ts b/packages/notifications/discord/src/index.ts
index acd22ab7d..60da593dc 100644
--- a/packages/notifications/discord/src/index.ts
+++ b/packages/notifications/discord/src/index.ts
@@ -5,6 +5,7 @@ import {
buildCommonMessageData,
} from "@openstatus/notification-base";
import { assertSafeUrl } from "@openstatus/utils";
+
import {
type DiscordEmbed,
buildAlertEmbed,
diff --git a/packages/notifications/discord/src/mock.ts b/packages/notifications/discord/src/mock.ts
index fa801b08b..9b6395cd8 100644
--- a/packages/notifications/discord/src/mock.ts
+++ b/packages/notifications/discord/src/mock.ts
@@ -1,4 +1,5 @@
import type { Monitor, Notification } from "@openstatus/db/src/schema";
+
import {
sendAlert,
sendDegraded,
diff --git a/packages/notifications/email/package.json b/packages/notifications/email/package.json
index f794cec64..7aee8b5bb 100644
--- a/packages/notifications/email/package.json
+++ b/packages/notifications/email/package.json
@@ -1,8 +1,8 @@
{
"name": "@openstatus/notification-emails",
"version": "0.0.0",
- "main": "src/index.ts",
"description": "Log drains Vercel integration.",
+ "main": "src/index.ts",
"scripts": {
"test": "bun test",
"tsc": "tsc"
diff --git a/packages/notifications/email/src/index.test.ts b/packages/notifications/email/src/index.test.ts
index 36ca67034..ec91cd799 100644
--- a/packages/notifications/email/src/index.test.ts
+++ b/packages/notifications/email/src/index.test.ts
@@ -1,5 +1,7 @@
import { afterEach, beforeEach, describe, expect, mock, test } from "bun:test";
+
import { selectNotificationSchema } from "@openstatus/db/src/schema";
+
import { sendAlert, sendDegraded, sendRecovery } from "./index";
const sendMonitorAlertMock = mock(async (_callArgs) => {});
diff --git a/packages/notifications/email/src/index.ts b/packages/notifications/email/src/index.ts
index ecd7f0e08..59f7aae1b 100644
--- a/packages/notifications/email/src/index.ts
+++ b/packages/notifications/email/src/index.ts
@@ -3,6 +3,7 @@ import type { Region } from "@openstatus/db/src/schema/constants";
import { EmailClient } from "@openstatus/emails/src/client";
import type { NotificationContext } from "@openstatus/notification-base";
import { regionDict } from "@openstatus/regions";
+
import { env } from "../env";
export const sendAlert = async ({
diff --git a/packages/notifications/email/src/mock.ts b/packages/notifications/email/src/mock.ts
index 63f8121fb..b902ce8c5 100644
--- a/packages/notifications/email/src/mock.ts
+++ b/packages/notifications/email/src/mock.ts
@@ -1,4 +1,5 @@
import type { Monitor, Notification } from "@openstatus/db/src/schema";
+
import { sendAlert, sendDegraded, sendRecovery } from "./index";
const monitor: Monitor = {
diff --git a/packages/notifications/google-chat/src/index.test.ts b/packages/notifications/google-chat/src/index.test.ts
index 7f9b847a9..1696d2dbf 100644
--- a/packages/notifications/google-chat/src/index.test.ts
+++ b/packages/notifications/google-chat/src/index.test.ts
@@ -1,9 +1,10 @@
import { afterEach, beforeEach, describe, expect, spyOn, test } from "bun:test";
+
import { selectNotificationSchema } from "@openstatus/db/src/schema";
+
import { sendAlert, sendDegraded, sendRecovery, sendTest } from "./index";
describe("Google Chat Notifications", () => {
- // biome-ignore lint/suspicious/noExplicitAny: <explanation>
let fetchMock: any = undefined;
beforeEach(() => {
diff --git a/packages/notifications/google-chat/src/mock.ts b/packages/notifications/google-chat/src/mock.ts
index 43cfc0499..d7c2ea154 100644
--- a/packages/notifications/google-chat/src/mock.ts
+++ b/packages/notifications/google-chat/src/mock.ts
@@ -1,4 +1,5 @@
import type { Monitor, Notification } from "@openstatus/db/src/schema";
+
import { sendAlert, sendDegraded, sendRecovery, sendTest } from "./index";
const monitor: Monitor = {
diff --git a/packages/notifications/grafana-oncall/src/index.test.ts b/packages/notifications/grafana-oncall/src/index.test.ts
index 4e82c165f..824a02df6 100644
--- a/packages/notifications/grafana-oncall/src/index.test.ts
+++ b/packages/notifications/grafana-oncall/src/index.test.ts
@@ -1,9 +1,10 @@
import { afterEach, beforeEach, describe, expect, spyOn, test } from "bun:test";
+
import { selectNotificationSchema } from "@openstatus/db/src/schema";
+
import { sendAlert, sendDegraded, sendRecovery, sendTest } from "./index";
describe("Grafana OnCall Notifications", () => {
- // biome-ignore lint/suspicious/noExplicitAny: <explanation>
let fetchMock: any = undefined;
beforeEach(() => {
diff --git a/packages/notifications/grafana-oncall/src/index.ts b/packages/notifications/grafana-oncall/src/index.ts
index 3e42d2f17..4587486f8 100644
--- a/packages/notifications/grafana-oncall/src/index.ts
+++ b/packages/notifications/grafana-oncall/src/index.ts
@@ -1,5 +1,6 @@
import type { NotificationContext } from "@openstatus/notification-base";
import { assertSafeUrl } from "@openstatus/utils";
+
import { GrafanaOncallPayload, GrafanaOncallSchema } from "./schema";
export const sendAlert = async ({
diff --git a/packages/notifications/ms-teams/src/index.test.ts b/packages/notifications/ms-teams/src/index.test.ts
index ca080ed95..18c7b6d75 100644
--- a/packages/notifications/ms-teams/src/index.test.ts
+++ b/packages/notifications/ms-teams/src/index.test.ts
@@ -1,6 +1,8 @@
import { afterEach, beforeEach, describe, expect, spyOn, test } from "bun:test";
+
import type { Incident, Monitor } from "@openstatus/db/src/schema";
import { selectNotificationSchema } from "@openstatus/db/src/schema";
+
import { sendAlert, sendDegraded, sendRecovery, sendTest } from "./index";
type FetchMock = ReturnType<typeof spyOn<typeof globalThis, "fetch">>;
diff --git a/packages/notifications/ms-teams/src/index.ts b/packages/notifications/ms-teams/src/index.ts
index e1cfeaa0d..e6439114d 100644
--- a/packages/notifications/ms-teams/src/index.ts
+++ b/packages/notifications/ms-teams/src/index.ts
@@ -4,6 +4,7 @@ import {
buildCommonMessageData,
} from "@openstatus/notification-base";
import { assertSafeUrl } from "@openstatus/utils";
+
import {
type AdaptiveCard,
buildAlertCard,
diff --git a/packages/notifications/ms-teams/src/mock.ts b/packages/notifications/ms-teams/src/mock.ts
index 9bd888c1f..b2b1c31e1 100644
--- a/packages/notifications/ms-teams/src/mock.ts
+++ b/packages/notifications/ms-teams/src/mock.ts
@@ -1,4 +1,5 @@
import type { Monitor, Notification } from "@openstatus/db/src/schema";
+
import { sendAlert, sendDegraded, sendRecovery, sendTest } from "./index";
function requireWebhookUrl(): string {
diff --git a/packages/notifications/ntfy/src/index.test.ts b/packages/notifications/ntfy/src/index.test.ts
index 349614c41..f7a61d856 100644
--- a/packages/notifications/ntfy/src/index.test.ts
+++ b/packages/notifications/ntfy/src/index.test.ts
@@ -1,9 +1,10 @@
import { afterEach, beforeEach, describe, expect, spyOn, test } from "bun:test";
+
import { selectNotificationSchema } from "@openstatus/db/src/schema";
+
import { sendAlert, sendDegraded, sendRecovery, sendTest } from "./index";
describe("Ntfy Notifications", () => {
- // biome-ignore lint/suspicious/noExplicitAny: <explanation>
let fetchMock: any = undefined;
beforeEach(() => {
diff --git a/packages/notifications/opsgenie/src/index.test.ts b/packages/notifications/opsgenie/src/index.test.ts
index b1493bde8..00ff98247 100644
--- a/packages/notifications/opsgenie/src/index.test.ts
+++ b/packages/notifications/opsgenie/src/index.test.ts
@@ -1,9 +1,10 @@
import { afterEach, beforeEach, describe, expect, spyOn, test } from "bun:test";
+
import { selectNotificationSchema } from "@openstatus/db/src/schema";
+
import { sendAlert, sendDegraded, sendTest } from "./index";
describe("OpsGenie Notifications", () => {
- // biome-ignore lint/suspicious/noExplicitAny: <explanation>
let fetchMock: any = undefined;
beforeEach(() => {
diff --git a/packages/notifications/opsgenie/src/index.ts b/packages/notifications/opsgenie/src/index.ts
index e72025e6b..cc49945fa 100644
--- a/packages/notifications/opsgenie/src/index.ts
+++ b/packages/notifications/opsgenie/src/index.ts
@@ -1,4 +1,5 @@
import type { NotificationContext } from "@openstatus/notification-base";
+
import { OpsGeniePayloadAlert, OpsGenieSchema } from "./schema";
export const sendAlert = async ({
diff --git a/packages/notifications/pagerduty/src/index.test.ts b/packages/notifications/pagerduty/src/index.test.ts
index a1ec51bb0..840cb57d6 100644
--- a/packages/notifications/pagerduty/src/index.test.ts
+++ b/packages/notifications/pagerduty/src/index.test.ts
@@ -1,9 +1,10 @@
import { afterEach, beforeEach, describe, expect, spyOn, test } from "bun:test";
+
import { selectNotificationSchema } from "@openstatus/db/src/schema";
+
import { sendAlert, sendDegraded, sendRecovery, sendTest } from "./index";
describe("PagerDuty Notifications", () => {
- // biome-ignore lint/suspicious/noExplicitAny: <explanation>
let fetchMock: any = undefined;
beforeEach(() => {
diff --git a/packages/notifications/pagerduty/src/index.ts b/packages/notifications/pagerduty/src/index.ts
index 6b946c2a8..a91b2f2d0 100644
--- a/packages/notifications/pagerduty/src/index.ts
+++ b/packages/notifications/pagerduty/src/index.ts
@@ -1,5 +1,6 @@
import { pagerdutyDataSchema } from "@openstatus/db/src/schema";
import type { NotificationContext } from "@openstatus/notification-base";
+
import {
PagerDutySchema,
resolveEventPayloadSchema,
diff --git a/packages/notifications/slack/src/index.test.ts b/packages/notifications/slack/src/index.test.ts
index e035e56ef..aa16993ff 100644
--- a/packages/notifications/slack/src/index.test.ts
+++ b/packages/notifications/slack/src/index.test.ts
@@ -1,6 +1,8 @@
import { afterEach, beforeEach, describe, expect, spyOn, test } from "bun:test";
+
import { selectNotificationSchema } from "@openstatus/db/src/schema";
import { COLORS } from "@openstatus/notification-base";
+
import {
sendAlert,
sendDegraded,
@@ -9,7 +11,6 @@ import {
} from "./index";
describe("Slack Notifications", () => {
- // biome-ignore lint/suspicious/noExplicitAny: <explanation>
let fetchMock: any = undefined;
beforeEach(() => {
diff --git a/packages/notifications/slack/src/index.ts b/packages/notifications/slack/src/index.ts
index 597dc9dc7..a58f0cf63 100644
--- a/packages/notifications/slack/src/index.ts
+++ b/packages/notifications/slack/src/index.ts
@@ -5,6 +5,7 @@ import {
buildCommonMessageData,
} from "@openstatus/notification-base";
import { assertSafeUrl } from "@openstatus/utils";
+
import {
buildAlertBlocks,
buildDegradedBlocks,
diff --git a/packages/notifications/slack/src/mock.ts b/packages/notifications/slack/src/mock.ts
index 1a8966ca9..dae6b22ed 100644
--- a/packages/notifications/slack/src/mock.ts
+++ b/packages/notifications/slack/src/mock.ts
@@ -1,4 +1,5 @@
import type { Monitor, Notification } from "@openstatus/db/src/schema";
+
import {
sendAlert,
sendDegraded,
diff --git a/packages/notifications/telegram/src/index.test.ts b/packages/notifications/telegram/src/index.test.ts
index 8276b015a..93e56e313 100644
--- a/packages/notifications/telegram/src/index.test.ts
+++ b/packages/notifications/telegram/src/index.test.ts
@@ -1,9 +1,10 @@
import { afterEach, beforeEach, describe, expect, spyOn, test } from "bun:test";
+
import { selectNotificationSchema } from "@openstatus/db/src/schema";
+
import { sendAlert, sendDegraded, sendRecovery, sendTest } from "./index";
describe("Telegram Notifications", () => {
- // biome-ignore lint/suspicious/noExplicitAny: <explanation>
let fetchMock: any = undefined;
const originalEnv = process.env.TELEGRAM_BOT_TOKEN;
diff --git a/packages/notifications/twillio-sms/src/index.test.ts b/packages/notifications/twillio-sms/src/index.test.ts
index f09406a24..12e3c25cf 100644
--- a/packages/notifications/twillio-sms/src/index.test.ts
+++ b/packages/notifications/twillio-sms/src/index.test.ts
@@ -1,9 +1,10 @@
import { afterEach, beforeEach, describe, expect, spyOn, test } from "bun:test";
+
import { selectNotificationSchema } from "@openstatus/db/src/schema";
+
import { sendAlert, sendDegraded, sendRecovery } from "./index";
describe("Twilio SMS Notifications", () => {
- // biome-ignore lint/suspicious/noExplicitAny: <explanation>
let fetchMock: any = undefined;
const originalEnv = {
TWILLIO_ACCOUNT_ID: process.env.TWILLIO_ACCOUNT_ID,
diff --git a/packages/notifications/twillio-sms/src/index.ts b/packages/notifications/twillio-sms/src/index.ts
index 920b5ece2..a71afbb7e 100644
--- a/packages/notifications/twillio-sms/src/index.ts
+++ b/packages/notifications/twillio-sms/src/index.ts
@@ -1,5 +1,6 @@
import { phoneDataSchema } from "@openstatus/db/src/schema";
import type { NotificationContext } from "@openstatus/notification-base";
+
import { env } from "./env";
export const sendAlert = async ({
diff --git a/packages/notifications/webhook/src/index.test.ts b/packages/notifications/webhook/src/index.test.ts
index e55b423db..ca5d0d63b 100644
--- a/packages/notifications/webhook/src/index.test.ts
+++ b/packages/notifications/webhook/src/index.test.ts
@@ -1,8 +1,8 @@
import { afterEach, beforeEach, describe, expect, spyOn, test } from "bun:test";
+
import { sendTest } from "./index";
describe("Webhook sendTest", () => {
- // biome-ignore lint/suspicious/noExplicitAny: <explanation>
let fetchMock: any = undefined;
beforeEach(() => {
diff --git a/packages/notifications/webhook/src/index.ts b/packages/notifications/webhook/src/index.ts
index 3be4b2ec8..3a8ab03f2 100644
--- a/packages/notifications/webhook/src/index.ts
+++ b/packages/notifications/webhook/src/index.ts
@@ -1,5 +1,6 @@
import type { NotificationContext } from "@openstatus/notification-base";
import { assertSafeUrl, transformHeaders } from "@openstatus/utils";
+
import { PayloadSchema, WebhookSchema } from "./schema";
export const sendAlert = async ({
diff --git a/packages/proto/scripts/clean-openapi.ts b/packages/proto/scripts/clean-openapi.ts
index df054fde5..b381e86f4 100644
--- a/packages/proto/scripts/clean-openapi.ts
+++ b/packages/proto/scripts/clean-openapi.ts
@@ -1,7 +1,7 @@
import { readFileSync, writeFileSync } from "node:fs";
import { dirname, join } from "node:path";
-// biome-ignore lint: only a script
+// oxlint-disable-next-line typescript/no-non-null-assertion
const OPENAPI_PATH = join(dirname(import.meta.dirname!), "gen", "openapi.yaml");
const CONNECT_PARAMS = new Set([
@@ -98,7 +98,7 @@ writeFileSync(OPENAPI_PATH, cleaned);
// Copy cleaned spec to server static directory
const serverOpenAPIPath = join(
- // biome-ignore lint/style/noNonNullAssertion: <explanation>
+ // oxlint-disable-next-line typescript/no-non-null-assertion
dirname(import.meta.dirname!),
"..",
"..",
diff --git a/packages/react/package.json b/packages/react/package.json
index 7a9661e5c..17cbe533c 100644
--- a/packages/react/package.json
+++ b/packages/react/package.json
@@ -1,17 +1,23 @@
{
"name": "@openstatus/react",
"version": "0.0.3",
+ "keywords": [
+ "monitoring",
+ "openstatus",
+ "react"
+ ],
+ "homepage": "https://github.com/openstatusHQ/openstatus#readme",
+ "license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/openstatusHQ/openstatus.git"
},
- "keywords": ["openstatus", "react", "monitoring"],
- "homepage": "https://github.com/openstatusHQ/openstatus#readme",
+ "files": [
+ "./dist/**"
+ ],
"main": "./dist/index.js",
- "types": "./dist/index.d.ts",
"module": "./dist/index.mjs",
- "files": ["./dist/**"],
- "license": "MIT",
+ "types": "./dist/index.d.ts",
"scripts": {
"dev": "tsup --watch && pnpm run dev:tailwind",
"dev:tailwind": "npx @tailwindcss/cli -i ./src/styles.css -o ./dist/styles.css --watch",
diff --git a/packages/react/src/widget.tsx b/packages/react/src/widget.tsx
index 2c10511da..96ec64ee8 100644
--- a/packages/react/src/widget.tsx
+++ b/packages/react/src/widget.tsx
@@ -36,7 +36,7 @@ export async function StatusWidget({ slug, href }: StatusWidgetProps) {
return (
<a
- className="inline-flex max-w-fit items-center gap-2 rounded-md border border-gray-200 px-3 py-1 text-gray-700 text-sm hover:bg-gray-100 hover:text-black dark:border-gray-800 dark:text-gray-300 dark:hover:bg-gray-900 dark:hover:text-white"
+ className="inline-flex max-w-fit items-center gap-2 rounded-md border border-gray-200 px-3 py-1 text-sm text-gray-700 hover:bg-gray-100 hover:text-black dark:border-gray-800 dark:text-gray-300 dark:hover:bg-gray-900 dark:hover:text-white"
href={href || `https://${slug}.openstatus.dev`}
target="_blank"
rel="noreferrer"
diff --git a/packages/regions/package.json b/packages/regions/package.json
index 60fde6113..eef4b0cdb 100644
--- a/packages/regions/package.json
+++ b/packages/regions/package.json
@@ -2,6 +2,9 @@
"name": "@openstatus/regions",
"version": "1.0.0",
"description": "",
+ "keywords": [],
+ "license": "ISC",
+ "author": "",
"main": "index.ts",
"scripts": {},
"dependencies": {
@@ -10,8 +13,5 @@
"devDependencies": {
"@openstatus/tsconfig": "workspace:*",
"typescript": "catalog:"
- },
- "keywords": [],
- "author": "",
- "license": "ISC"
+ }
}
diff --git a/packages/services/src/__tests__/with-test-transaction.test.ts b/packages/services/src/__tests__/with-test-transaction.test.ts
index 782ed6605..68fc513c3 100644
--- a/packages/services/src/__tests__/with-test-transaction.test.ts
+++ b/packages/services/src/__tests__/with-test-transaction.test.ts
@@ -1,4 +1,5 @@
import { afterAll, describe, expect, test } from "bun:test";
+
import { db, eq } from "@openstatus/db";
import { auditLog } from "@openstatus/db/src/schema";
diff --git a/packages/services/src/agent-tools/index.ts b/packages/services/src/agent-tools/index.ts
index f223f37b7..a243864f5 100644
--- a/packages/services/src/agent-tools/index.ts
+++ b/packages/services/src/agent-tools/index.ts
@@ -23,10 +23,7 @@ import {
import type { AnyAgentTool } from "./types";
export { getAuditLogTool, listAuditLogsTool } from "./audit";
-export {
- createMaintenanceTool,
- listMaintenancesTool,
-} from "./maintenance";
+export { createMaintenanceTool, listMaintenancesTool } from "./maintenance";
export {
getMonitorStatusTool,
getMonitorSummaryTool,
diff --git a/packages/services/src/agent-tools/types.ts b/packages/services/src/agent-tools/types.ts
index f9c615b6d..ee463a9a9 100644
--- a/packages/services/src/agent-tools/types.ts
+++ b/packages/services/src/agent-tools/types.ts
@@ -69,16 +69,14 @@ export type ApprovalMeta<TInput> = {
verb?: string;
};
-export type InferAgentToolInput<T> = T extends AgentTool<infer I, unknown>
- ? I
- : never;
-export type InferAgentToolOutput<T> = T extends AgentTool<unknown, infer O>
- ? O
- : never;
+export type InferAgentToolInput<T> =
+ T extends AgentTool<infer I, unknown> ? I : never;
+export type InferAgentToolOutput<T> =
+ T extends AgentTool<unknown, infer O> ? O : never;
// `any` is the variance escape hatch — `unknown` would block storing
// concrete tools because function inputs are contravariant.
-// biome-ignore lint/suspicious/noExplicitAny: registry-level variance escape hatch
+// oxlint-disable-next-line typescript/no-explicit-any -- registry-level variance escape hatch
export type AnyAgentTool = AgentTool<any, any>;
export type AgentToolRegistry = Record<string, AnyAgentTool>;
diff --git a/packages/services/src/api-key/__tests__/api-key.test.ts b/packages/services/src/api-key/__tests__/api-key.test.ts
index 663a2e3a7..e401e304f 100644
--- a/packages/services/src/api-key/__tests__/api-key.test.ts
+++ b/packages/services/src/api-key/__tests__/api-key.test.ts
@@ -1,4 +1,5 @@
import { beforeAll, describe, expect, test } from "bun:test";
+
import { eq } from "@openstatus/db";
import { apiKey } from "@openstatus/db/src/schema";
@@ -89,7 +90,6 @@ describe("createApiKey", () => {
ctx,
input: {
name: `${TEST_PREFIX}-star`,
- // biome-ignore lint/suspicious/noExplicitAny: testing the parse boundary
scopes: ["*"] as any,
},
}),
diff --git a/packages/services/src/audit/__tests__/audit.test.ts b/packages/services/src/audit/__tests__/audit.test.ts
index e67d18bd9..016e8d83e 100644
--- a/packages/services/src/audit/__tests__/audit.test.ts
+++ b/packages/services/src/audit/__tests__/audit.test.ts
@@ -1,8 +1,9 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
+
import { db, eq } from "@openstatus/db";
import { auditLog, user } from "@openstatus/db/src/schema";
-
import type { AuditEntry } from "@openstatus/db/src/schema";
+
import {
SEEDED_WORKSPACE_FREE_ID,
SEEDED_WORKSPACE_TEAM_ID,
@@ -19,7 +20,6 @@ import {
} from "../../../test/helpers";
import type { ServiceContext } from "../../context";
import { NotFoundError } from "../../errors";
-
import { diffTopLevel, emitAudit } from "../emit";
import { getAuditLog } from "../get";
diff --git a/packages/services/src/auth/__tests__/matches-scope.test.ts b/packages/services/src/auth/__tests__/matches-scope.test.ts
index e8dd90a31..de72ef4e5 100644
--- a/packages/services/src/auth/__tests__/matches-scope.test.ts
+++ b/packages/services/src/auth/__tests__/matches-scope.test.ts
@@ -1,4 +1,5 @@
import { describe, expect, test } from "bun:test";
+
import type { Scope } from "@openstatus/db/src/schema";
import { matchesScope } from "../matches-scope";
diff --git a/packages/services/src/context.ts b/packages/services/src/context.ts
index 73dc7375e..51565e4c8 100644
--- a/packages/services/src/context.ts
+++ b/packages/services/src/context.ts
@@ -1,6 +1,7 @@
import { SQLiteTransaction, db as defaultDb, is } from "@openstatus/db";
import type { Scope, Workspace } from "@openstatus/db/src/schema";
import { OSTinybird } from "@openstatus/tinybird";
+
import { withBusyRetry } from "./retry";
// `@openstatus/db` does not export named DrizzleClient / DrizzleTx types today,
diff --git a/packages/services/src/external-service-component/__tests__/external-service-component.test.ts b/packages/services/src/external-service-component/__tests__/external-service-component.test.ts
index d220c690b..08324142a 100644
--- a/packages/services/src/external-service-component/__tests__/external-service-component.test.ts
+++ b/packages/services/src/external-service-component/__tests__/external-service-component.test.ts
@@ -1,4 +1,5 @@
import { afterEach, describe, expect, test } from "bun:test";
+
import { and, db, eq, like } from "@openstatus/db";
import type { ApiConfigType } from "@openstatus/db/src/schema";
import {
diff --git a/packages/services/src/external-service-incident/__tests__/external-service-incident.test.ts b/packages/services/src/external-service-incident/__tests__/external-service-incident.test.ts
index a74921b9c..5134ddde1 100644
--- a/packages/services/src/external-service-incident/__tests__/external-service-incident.test.ts
+++ b/packages/services/src/external-service-incident/__tests__/external-service-incident.test.ts
@@ -1,4 +1,5 @@
import { afterEach, describe, expect, test } from "bun:test";
+
import { and, db, eq, like } from "@openstatus/db";
import {
externalService,
diff --git a/packages/services/src/external-service-incident/index.ts b/packages/services/src/external-service-incident/index.ts
index 2d1a6d5de..192a7492f 100644
--- a/packages/services/src/external-service-incident/index.ts
+++ b/packages/services/src/external-service-incident/index.ts
@@ -12,7 +12,4 @@ export {
listExternalIncidentsBySlug,
supportsIncidents,
} from "./list";
-export {
- type PruneRawPayloadsResult,
- pruneStaleRawPayloads,
-} from "./prune";
+export { type PruneRawPayloadsResult, pruneStaleRawPayloads } from "./prune";
diff --git a/packages/services/src/external-service/__tests__/external-service.test.ts b/packages/services/src/external-service/__tests__/external-service.test.ts
index ef9aa2a90..dccf79918 100644
--- a/packages/services/src/external-service/__tests__/external-service.test.ts
+++ b/packages/services/src/external-service/__tests__/external-service.test.ts
@@ -1,4 +1,5 @@
import { afterEach, describe, expect, test } from "bun:test";
+
import { db, like, sql } from "@openstatus/db";
import { externalService } from "@openstatus/db/src/schema";
diff --git a/packages/services/src/import/__tests__/unit.test.ts b/packages/services/src/import/__tests__/unit.test.ts
index ab4ae5c2d..b7f14668b 100644
--- a/packages/services/src/import/__tests__/unit.test.ts
+++ b/packages/services/src/import/__tests__/unit.test.ts
@@ -1,9 +1,11 @@
import { beforeAll, describe, expect, test } from "bun:test";
+
import { db, eq } from "@openstatus/db";
import { monitor, pageComponent } from "@openstatus/db/src/schema";
import { allPlans } from "@openstatus/db/src/schema/plan/config";
import type { Limits } from "@openstatus/db/src/schema/plan/schema";
import type { ImportSummary } from "@openstatus/importers";
+
import { addLimitWarnings, clampPeriodicity, computePhaseStatus } from "../";
import { withTestTransaction } from "../../../test/helpers";
diff --git a/packages/services/src/import/phase-writers.ts b/packages/services/src/import/phase-writers.ts
index 29a25a63e..5cf3b5672 100644
--- a/packages/services/src/import/phase-writers.ts
+++ b/packages/services/src/import/phase-writers.ts
@@ -295,7 +295,7 @@ export async function writeComponentsPhase(
}
const resolvedGroupId = data.sourceGroupId
- ? groupIdMap.get(data.sourceGroupId) ?? null
+ ? (groupIdMap.get(data.sourceGroupId) ?? null)
: null;
const [inserted] = await tx
diff --git a/packages/services/src/incident/__tests__/incident.test.ts b/packages/services/src/incident/__tests__/incident.test.ts
index b60832c06..0b27432c5 100644
--- a/packages/services/src/incident/__tests__/incident.test.ts
+++ b/packages/services/src/incident/__tests__/incident.test.ts
@@ -1,4 +1,5 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
+
import { db, eq } from "@openstatus/db";
import { incidentTable, monitor } from "@openstatus/db/src/schema";
diff --git a/packages/services/src/incident/list.ts b/packages/services/src/incident/list.ts
index 3fe880c54..6fe1731fe 100644
--- a/packages/services/src/incident/list.ts
+++ b/packages/services/src/incident/list.ts
@@ -84,7 +84,8 @@ async function enrichIncidentsBatch(
return rows.map((r) => ({
...r,
- monitor: r.monitorId != null ? monitorById.get(r.monitorId) ?? null : null,
+ monitor:
+ r.monitorId != null ? (monitorById.get(r.monitorId) ?? null) : null,
}));
}
@@ -143,6 +144,6 @@ export async function getIncident(args: {
workspaceId: ctx.workspace.id,
});
const [enriched] = await enrichIncidentsBatch(db, [record], ctx.workspace.id);
- // biome-ignore lint/style/noNonNullAssertion: always defined for len === 1
+ // oxlint-disable-next-line typescript/no-non-null-assertion -- always defined for len === 1
return enriched!;
}
diff --git a/packages/services/src/index.ts b/packages/services/src/index.ts
index a07c511a6..61561d002 100644
--- a/packages/services/src/index.ts
+++ b/packages/services/src/index.ts
@@ -39,10 +39,6 @@ export {
export { matchesScope, requireScope } from "./auth";
-export {
- assertWithinLimit,
- getPlanLimits,
- type LimitKey,
-} from "./limits";
+export { assertWithinLimit, getPlanLimits, type LimitKey } from "./limits";
export * from "./types";
diff --git a/packages/services/src/integration/__tests__/install-slack-agent.test.ts b/packages/services/src/integration/__tests__/install-slack-agent.test.ts
index b266d875d..7092a8bfc 100644
--- a/packages/services/src/integration/__tests__/install-slack-agent.test.ts
+++ b/packages/services/src/integration/__tests__/install-slack-agent.test.ts
@@ -1,4 +1,5 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
+
import { and, db, desc, eq } from "@openstatus/db";
import { integration } from "@openstatus/db/src/schema";
diff --git a/packages/services/src/invitation/__tests__/invitation.test.ts b/packages/services/src/invitation/__tests__/invitation.test.ts
index 7e385fefa..8309e1b36 100644
--- a/packages/services/src/invitation/__tests__/invitation.test.ts
+++ b/packages/services/src/invitation/__tests__/invitation.test.ts
@@ -1,4 +1,5 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
+
import { db, eq } from "@openstatus/db";
import { invitation, user, usersToWorkspaces } from "@openstatus/db/src/schema";
diff --git a/packages/services/src/maintenance/__tests__/maintenance.test.ts b/packages/services/src/maintenance/__tests__/maintenance.test.ts
index f7d69bdaf..c7a8890c2 100644
--- a/packages/services/src/maintenance/__tests__/maintenance.test.ts
+++ b/packages/services/src/maintenance/__tests__/maintenance.test.ts
@@ -6,6 +6,7 @@ import {
expect,
test,
} from "bun:test";
+
import { db, eq, inArray } from "@openstatus/db";
import {
maintenancesToPageComponents,
diff --git a/packages/services/src/maintenance/list.ts b/packages/services/src/maintenance/list.ts
index c1454e809..5f98a34f8 100644
--- a/packages/services/src/maintenance/list.ts
+++ b/packages/services/src/maintenance/list.ts
@@ -154,6 +154,6 @@ export async function getMaintenance(args: {
workspaceId: ctx.workspace.id,
});
const [enriched] = await enrichMaintenancesBatch(db, [record]);
- // biome-ignore lint/style/noNonNullAssertion: always defined for len === 1
+ // oxlint-disable-next-line typescript/no-non-null-assertion -- always defined for len === 1
return enriched!;
}
diff --git a/packages/services/src/member/__tests__/member.test.ts b/packages/services/src/member/__tests__/member.test.ts
index 75d7bd26e..a682723a4 100644
--- a/packages/services/src/member/__tests__/member.test.ts
+++ b/packages/services/src/member/__tests__/member.test.ts
@@ -1,4 +1,5 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
+
import { and, db, eq } from "@openstatus/db";
import { user, usersToWorkspaces } from "@openstatus/db/src/schema";
diff --git a/packages/services/src/monitor-tag/__tests__/monitor-tag.test.ts b/packages/services/src/monitor-tag/__tests__/monitor-tag.test.ts
index f3b57e90e..26238ff79 100644
--- a/packages/services/src/monitor-tag/__tests__/monitor-tag.test.ts
+++ b/packages/services/src/monitor-tag/__tests__/monitor-tag.test.ts
@@ -1,4 +1,5 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
+
import { db, eq } from "@openstatus/db";
import { monitorTag } from "@openstatus/db/src/schema";
diff --git a/packages/services/src/monitor/__tests__/monitor.test.ts b/packages/services/src/monitor/__tests__/monitor.test.ts
index fdbd4f72a..10ca5d985 100644
--- a/packages/services/src/monitor/__tests__/monitor.test.ts
+++ b/packages/services/src/monitor/__tests__/monitor.test.ts
@@ -1,4 +1,5 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
+
import { db, eq, inArray } from "@openstatus/db";
import {
monitor,
diff --git a/packages/services/src/monitor/__tests__/reads.test.ts b/packages/services/src/monitor/__tests__/reads.test.ts
index 797d0f75b..2e7d3c653 100644
--- a/packages/services/src/monitor/__tests__/reads.test.ts
+++ b/packages/services/src/monitor/__tests__/reads.test.ts
@@ -1,4 +1,5 @@
import { beforeAll, describe, expect, test } from "bun:test";
+
import { monitorStatusTable } from "@openstatus/db/src/schema";
import {
diff --git a/packages/services/src/monitor/index.ts b/packages/services/src/monitor/index.ts
index 0ae15bf53..48222c638 100644
--- a/packages/services/src/monitor/index.ts
+++ b/packages/services/src/monitor/index.ts
@@ -10,10 +10,7 @@ export {
getMonitorSummary,
type GetMonitorSummaryResult,
} from "./get-monitor-summary";
-export {
- getResponseLog,
- type ResponseLogDetail,
-} from "./get-response-log";
+export { getResponseLog, type ResponseLogDetail } from "./get-response-log";
export {
listResponseLogs,
type ListResponseLogsResult,
diff --git a/packages/services/src/monitor/list.ts b/packages/services/src/monitor/list.ts
index 23f9fd637..6b1affecd 100644
--- a/packages/services/src/monitor/list.ts
+++ b/packages/services/src/monitor/list.ts
@@ -246,6 +246,6 @@ export async function getMonitor(args: {
notifications: true,
privateLocations: true,
});
- // biome-ignore lint/style/noNonNullAssertion: always defined for len === 1
+ // oxlint-disable-next-line typescript/no-non-null-assertion -- always defined for len === 1
return enriched!;
}
diff --git a/packages/services/src/notification/__tests__/notification.test.ts b/packages/services/src/notification/__tests__/notification.test.ts
index a12ca8e3f..afd4c3114 100644
--- a/packages/services/src/notification/__tests__/notification.test.ts
+++ b/packages/services/src/notification/__tests__/notification.test.ts
@@ -1,4 +1,5 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
+
import { db, eq } from "@openstatus/db";
import {
monitor,
diff --git a/packages/services/src/notification/list.ts b/packages/services/src/notification/list.ts
index f3712564b..c74a89549 100644
--- a/packages/services/src/notification/list.ts
+++ b/packages/services/src/notification/list.ts
@@ -135,6 +135,6 @@ export async function getNotification(args: {
[record],
ctx.workspace.id,
);
- // biome-ignore lint/style/noNonNullAssertion: always defined for len === 1
+ // oxlint-disable-next-line typescript/no-non-null-assertion -- always defined for len === 1
return enriched!;
}
diff --git a/packages/services/src/page-component/__tests__/page-component.test.ts b/packages/services/src/page-component/__tests__/page-component.test.ts
index 7f6ad6661..119c69528 100644
--- a/packages/services/src/page-component/__tests__/page-component.test.ts
+++ b/packages/services/src/page-component/__tests__/page-component.test.ts
@@ -1,4 +1,5 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
+
import { and, db, eq, inArray } from "@openstatus/db";
import {
monitor,
diff --git a/packages/services/src/page-component/index.ts b/packages/services/src/page-component/index.ts
index 1e4166a55..86ddc89f4 100644
--- a/packages/services/src/page-component/index.ts
+++ b/packages/services/src/page-component/index.ts
@@ -1,8 +1,5 @@
export { deletePageComponent } from "./delete";
-export {
- listPageComponents,
- type PageComponentWithRelations,
-} from "./list";
+export { listPageComponents, type PageComponentWithRelations } from "./list";
export { updatePageComponentOrder } from "./update-order";
export {
diff --git a/packages/services/src/page-component/list.ts b/packages/services/src/page-component/list.ts
index d12288d3e..594a3f348 100644
--- a/packages/services/src/page-component/list.ts
+++ b/packages/services/src/page-component/list.ts
@@ -157,8 +157,9 @@ async function enrichPageComponentsBatch(
return rows.map((r) => ({
...selectPageComponentSchema.parse(r),
- monitor: r.monitorId != null ? monitorById.get(r.monitorId) ?? null : null,
- group: r.groupId != null ? groupById.get(r.groupId) ?? null : null,
+ monitor:
+ r.monitorId != null ? (monitorById.get(r.monitorId) ?? null) : null,
+ group: r.groupId != null ? (groupById.get(r.groupId) ?? null) : null,
statusReports: statusReportsByComponent.get(r.id) ?? [],
maintenances: maintenancesByComponent.get(r.id) ?? [],
}));
diff --git a/packages/services/src/page-subscriber/__tests__/page-subscriber.test.ts b/packages/services/src/page-subscriber/__tests__/page-subscriber.test.ts
index 607db4ab3..903fb6d42 100644
--- a/packages/services/src/page-subscriber/__tests__/page-subscriber.test.ts
+++ b/packages/services/src/page-subscriber/__tests__/page-subscriber.test.ts
@@ -7,6 +7,7 @@ import {
expect,
test,
} from "bun:test";
+
import { and, db, eq, sql } from "@openstatus/db";
import {
auditLog,
diff --git a/packages/services/src/page-subscriber/index.ts b/packages/services/src/page-subscriber/index.ts
index de18cb568..18deac3d3 100644
--- a/packages/services/src/page-subscriber/index.ts
+++ b/packages/services/src/page-subscriber/index.ts
@@ -8,10 +8,7 @@ export {
getSubscriberByToken,
} from "./get-by-token";
export { hasPendingSubscriber } from "./has-pending";
-export {
- listPageSubscribers,
- type PageSubscriberListItem,
-} from "./list";
+export { listPageSubscribers, type PageSubscriberListItem } from "./list";
export { sendPageSubscriberTestWebhook } from "./send-test-webhook";
export { unsubscribeSubscriber } from "./unsubscribe";
export { updatePageSubscriberChannel } from "./update";
diff --git a/packages/services/src/page/__tests__/page.test.ts b/packages/services/src/page/__tests__/page.test.ts
index c01e0f1c3..429f682d8 100644
--- a/packages/services/src/page/__tests__/page.test.ts
+++ b/packages/services/src/page/__tests__/page.test.ts
@@ -1,4 +1,5 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
+
import { db, eq } from "@openstatus/db";
import { monitor, pageComponent } from "@openstatus/db/src/schema";
diff --git a/packages/services/src/page/list.ts b/packages/services/src/page/list.ts
index a14de2771..fc4711e7c 100644
--- a/packages/services/src/page/list.ts
+++ b/packages/services/src/page/list.ts
@@ -19,8 +19,8 @@ import {
selectStatusReportSchema,
statusReport,
} from "@openstatus/db/src/schema";
-
import { subdomainSafeList } from "@openstatus/db/src/schema/pages/constants";
+
import { type DB, type ServiceContext, getReadDb } from "../context";
import { NotFoundError } from "../errors";
import type { Maintenance, Page, PageComponent, StatusReport } from "../types";
diff --git a/packages/services/src/status-report/__tests__/status-report.test.ts b/packages/services/src/status-report/__tests__/status-report.test.ts
index d60307541..56b864d56 100644
--- a/packages/services/src/status-report/__tests__/status-report.test.ts
+++ b/packages/services/src/status-report/__tests__/status-report.test.ts
@@ -6,6 +6,7 @@ import {
expect,
test,
} from "bun:test";
+
import { db, eq } from "@openstatus/db";
import {
page,
diff --git a/packages/services/src/status-report/index.ts b/packages/services/src/status-report/index.ts
index ffa5dfc7e..a3c9a9e57 100644
--- a/packages/services/src/status-report/index.ts
+++ b/packages/services/src/status-report/index.ts
@@ -2,14 +2,8 @@ export {
type AddStatusReportUpdateResult,
addStatusReportUpdate,
} from "./add-update";
-export {
- type CreateStatusReportResult,
- createStatusReport,
-} from "./create";
-export {
- deleteStatusReport,
- deleteStatusReportUpdate,
-} from "./delete";
+export { type CreateStatusReportResult, createStatusReport } from "./create";
+export { deleteStatusReport, deleteStatusReportUpdate } from "./delete";
export {
getStatusReport,
listStatusReports,
@@ -18,10 +12,7 @@ export {
} from "./list";
export { notifyStatusReport } from "./notify";
export { resolveStatusReport } from "./resolve";
-export {
- updateStatusReport,
- updateStatusReportUpdate,
-} from "./update";
+export { updateStatusReport, updateStatusReportUpdate } from "./update";
export {
AddStatusReportUpdateInput,
diff --git a/packages/services/src/status-report/list.ts b/packages/services/src/status-report/list.ts
index 78bc663ed..53a5789b8 100644
--- a/packages/services/src/status-report/list.ts
+++ b/packages/services/src/status-report/list.ts
@@ -156,7 +156,7 @@ async function enrichReportsBatch(
updates: updatesByReport.get(r.id) ?? [],
pageComponents: components,
pageComponentIds: components.map((c) => c.id),
- page: r.pageId != null ? pageById.get(r.pageId) ?? null : null,
+ page: r.pageId != null ? (pageById.get(r.pageId) ?? null) : null,
};
});
}
@@ -221,6 +221,6 @@ export async function getStatusReport(args: {
});
const [enriched] = await enrichReportsBatch(db, [report]);
// `enrichReportsBatch` guarantees a 1:1 mapping for a non-empty input.
- // biome-ignore lint/style/noNonNullAssertion: always non-null for len === 1
+ // oxlint-disable-next-line typescript/no-non-null-assertion -- always non-null for len === 1
return enriched!;
}
diff --git a/packages/services/src/workspace/__tests__/workspace.test.ts b/packages/services/src/workspace/__tests__/workspace.test.ts
index 291d35a87..21dde2aef 100644
--- a/packages/services/src/workspace/__tests__/workspace.test.ts
+++ b/packages/services/src/workspace/__tests__/workspace.test.ts
@@ -1,4 +1,5 @@
import { beforeAll, describe, expect, test } from "bun:test";
+
import { eq } from "@openstatus/db";
import { workspace } from "@openstatus/db/src/schema";
diff --git a/packages/services/test/helpers.ts b/packages/services/test/helpers.ts
index dbdaea08c..7dda22670 100644
--- a/packages/services/test/helpers.ts
+++ b/packages/services/test/helpers.ts
@@ -1,4 +1,5 @@
import { expect } from "bun:test";
+
import { and, db, desc, eq, inArray } from "@openstatus/db";
import {
type Scope,
diff --git a/packages/status-fetcher/__tests__/fetch.test.ts b/packages/status-fetcher/__tests__/fetch.test.ts
index 97ac65ea0..36556d49f 100644
--- a/packages/status-fetcher/__tests__/fetch.test.ts
+++ b/packages/status-fetcher/__tests__/fetch.test.ts
@@ -1,6 +1,8 @@
import { beforeEach, describe, expect, it, mock } from "bun:test";
+
import { Cause, Effect, Exit, Option } from "effect";
import { z } from "zod";
+
import { FetchError, fetchJson, fetchText } from "../src/fetch";
const TEST_URL = "https://api.example.com/status";
diff --git a/packages/status-fetcher/__tests__/fetchers/atlassian.test.ts b/packages/status-fetcher/__tests__/fetchers/atlassian.test.ts
index da0facc64..09baa515c 100644
--- a/packages/status-fetcher/__tests__/fetchers/atlassian.test.ts
+++ b/packages/status-fetcher/__tests__/fetchers/atlassian.test.ts
@@ -1,4 +1,5 @@
import { beforeEach, describe, expect, it } from "bun:test";
+
import { AtlassianFetcher } from "../../src/fetchers/atlassian";
import type { StatusPageEntry } from "../../src/types";
import {
diff --git a/packages/status-fetcher/__tests__/fetchers/betterstack.test.ts b/packages/status-fetcher/__tests__/fetchers/betterstack.test.ts
index e596c9de6..355f070f6 100644
--- a/packages/status-fetcher/__tests__/fetchers/betterstack.test.ts
+++ b/packages/status-fetcher/__tests__/fetchers/betterstack.test.ts
@@ -1,4 +1,5 @@
import { beforeEach, describe, expect, it } from "bun:test";
+
import { BetterStackFetcher } from "../../src/fetchers/betterstack";
import type { StatusPageEntry } from "../../src/types";
import {
diff --git a/packages/status-fetcher/__tests__/fetchers/components.test.ts b/packages/status-fetcher/__tests__/fetchers/components.test.ts
index 498847b47..15b1aaf4d 100644
--- a/packages/status-fetcher/__tests__/fetchers/components.test.ts
+++ b/packages/status-fetcher/__tests__/fetchers/components.test.ts
@@ -1,4 +1,5 @@
import { beforeEach, describe, expect, it } from "bun:test";
+
import { AtlassianFetcher } from "../../src/fetchers/atlassian";
import { IncidentioFetcher } from "../../src/fetchers/incidentio";
import type { StatusFetcher, StatusPageEntry } from "../../src/types";
diff --git a/packages/status-fetcher/__tests__/fetchers/custom.test.ts b/packages/status-fetcher/__tests__/fetchers/custom.test.ts
index 272ce40a3..bd435051c 100644
--- a/packages/status-fetcher/__tests__/fetchers/custom.test.ts
+++ b/packages/status-fetcher/__tests__/fetchers/custom.test.ts
@@ -1,4 +1,5 @@
import { beforeEach, describe, expect, it } from "bun:test";
+
import { CustomApiFetcher } from "../../src/fetchers/custom";
import type { StatusPageEntry } from "../../src/types";
import {
diff --git a/packages/status-fetcher/__tests__/fetchers/edge-cases.test.ts b/packages/status-fetcher/__tests__/fetchers/edge-cases.test.ts
index d46c873f4..548186a48 100644
--- a/packages/status-fetcher/__tests__/fetchers/edge-cases.test.ts
+++ b/packages/status-fetcher/__tests__/fetchers/edge-cases.test.ts
@@ -1,5 +1,7 @@
import { describe, expect, it } from "bun:test";
+
import { Exit } from "effect";
+
import { AtlassianFetcher } from "../../src/fetchers/atlassian";
import { BetterStackFetcher } from "../../src/fetchers/betterstack";
import { CustomApiFetcher } from "../../src/fetchers/custom";
diff --git a/packages/status-fetcher/__tests__/fetchers/html.test.ts b/packages/status-fetcher/__tests__/fetchers/html.test.ts
index 7e35de2dc..209577d1e 100644
--- a/packages/status-fetcher/__tests__/fetchers/html.test.ts
+++ b/packages/status-fetcher/__tests__/fetchers/html.test.ts
@@ -1,4 +1,5 @@
import { beforeEach, describe, expect, it } from "bun:test";
+
import { HtmlScraperFetcher } from "../../src/fetchers/html";
import type { StatusPageEntry } from "../../src/types";
import {
diff --git a/packages/status-fetcher/__tests__/fetchers/incidentio.test.ts b/packages/status-fetcher/__tests__/fetchers/incidentio.test.ts
index 95196d755..cbc6f75b7 100644
--- a/packages/status-fetcher/__tests__/fetchers/incidentio.test.ts
+++ b/packages/status-fetcher/__tests__/fetchers/incidentio.test.ts
@@ -1,4 +1,5 @@
import { beforeEach, describe, expect, it } from "bun:test";
+
import { IncidentioFetcher } from "../../src/fetchers/incidentio";
import type { StatusPageEntry } from "../../src/types";
import {
diff --git a/packages/status-fetcher/__tests__/fetchers/instatus.test.ts b/packages/status-fetcher/__tests__/fetchers/instatus.test.ts
index 65660c943..5abaf1c1b 100644
--- a/packages/status-fetcher/__tests__/fetchers/instatus.test.ts
+++ b/packages/status-fetcher/__tests__/fetchers/instatus.test.ts
@@ -1,4 +1,5 @@
import { beforeEach, describe, expect, it } from "bun:test";
+
import { InstatusFetcher } from "../../src/fetchers/instatus";
import type { StatusPageEntry } from "../../src/types";
import {
diff --git a/packages/status-fetcher/__tests__/fetchers/uptimerobot.test.ts b/packages/status-fetcher/__tests__/fetchers/uptimerobot.test.ts
index cacfeff33..72c6e9b39 100644
--- a/packages/status-fetcher/__tests__/fetchers/uptimerobot.test.ts
+++ b/packages/status-fetcher/__tests__/fetchers/uptimerobot.test.ts
@@ -1,4 +1,5 @@
import { afterEach, beforeEach, describe, expect, it, mock } from "bun:test";
+
import { UptimeRobotFetcher } from "../../src/fetchers/uptimerobot";
import type { StatusPageEntry } from "../../src/types";
import {
diff --git a/packages/status-fetcher/__tests__/helpers.ts b/packages/status-fetcher/__tests__/helpers.ts
index 66c935016..20f73dba6 100644
--- a/packages/status-fetcher/__tests__/helpers.ts
+++ b/packages/status-fetcher/__tests__/helpers.ts
@@ -1,5 +1,7 @@
import { mock } from "bun:test";
+
import { Cause, Effect, Exit, Option } from "effect";
+
import type { FetchError } from "../src/fetch";
import type {
NormalizedComponent,
diff --git a/packages/status-fetcher/__tests__/integration.test.ts b/packages/status-fetcher/__tests__/integration.test.ts
index dd2cb9db7..4c171dbd0 100644
--- a/packages/status-fetcher/__tests__/integration.test.ts
+++ b/packages/status-fetcher/__tests__/integration.test.ts
@@ -1,5 +1,7 @@
import { describe, expect, it } from "bun:test";
+
import { Effect } from "effect";
+
import { fetchers as allFetchers } from "../src/fetchers";
import type { StatusPageEntry, StatusPageProvider } from "../src/types";
import { installMockFetch } from "./helpers";
diff --git a/packages/status-fetcher/__tests__/utils.test.ts b/packages/status-fetcher/__tests__/utils.test.ts
index 5b0e212aa..ae1179a38 100644
--- a/packages/status-fetcher/__tests__/utils.test.ts
+++ b/packages/status-fetcher/__tests__/utils.test.ts
@@ -1,4 +1,5 @@
import { describe, expect, it } from "bun:test";
+
import { inferStatus, urlHostnameEndsWith } from "../src/utils";
describe("urlHostnameEndsWith", () => {
diff --git a/packages/status-fetcher/package.json b/packages/status-fetcher/package.json
index b5cdccf6f..8e7c9118a 100644
--- a/packages/status-fetcher/package.json
+++ b/packages/status-fetcher/package.json
@@ -17,8 +17,8 @@
},
"dependencies": {
"effect": "catalog:",
- "zod": "catalog:",
- "node-html-parser": "catalog:"
+ "node-html-parser": "catalog:",
+ "zod": "catalog:"
},
"devDependencies": {
"@types/bun": "latest"
diff --git a/packages/status-fetcher/scripts/test-fetchers.ts b/packages/status-fetcher/scripts/test-fetchers.ts
index 9bb72ef9c..f81913231 100644
--- a/packages/status-fetcher/scripts/test-fetchers.ts
+++ b/packages/status-fetcher/scripts/test-fetchers.ts
@@ -1,4 +1,5 @@
import { Effect } from "effect";
+
import { fetchers } from "../src/fetchers";
import type { SeverityLevel, StatusPageEntry } from "../src/types";
diff --git a/packages/status-fetcher/src/components.ts b/packages/status-fetcher/src/components.ts
index 55e2d2e77..0edf0361a 100644
--- a/packages/status-fetcher/src/components.ts
+++ b/packages/status-fetcher/src/components.ts
@@ -1,5 +1,6 @@
import { Effect } from "effect";
import { z } from "zod";
+
import { type FetchError, fetchJson } from "./fetch";
import type {
NormalizedComponent,
diff --git a/packages/status-fetcher/src/fetch.ts b/packages/status-fetcher/src/fetch.ts
index b5e9fc0ec..e16212846 100644
--- a/packages/status-fetcher/src/fetch.ts
+++ b/packages/status-fetcher/src/fetch.ts
@@ -1,5 +1,6 @@
import { type Duration, Effect, Schedule } from "effect";
import type { z } from "zod";
+
import type { JsonValue } from "./types";
type FetchErrorInit = {
diff --git a/packages/status-fetcher/src/fetchers/atlassian.ts b/packages/status-fetcher/src/fetchers/atlassian.ts
index 063c1f96e..f73e0539b 100644
--- a/packages/status-fetcher/src/fetchers/atlassian.ts
+++ b/packages/status-fetcher/src/fetchers/atlassian.ts
@@ -1,5 +1,6 @@
import { Effect } from "effect";
import { z } from "zod";
+
import { fetchAtlassianCompatibleComponents } from "../components";
import { type FetchError, fetchJson } from "../fetch";
import { fetchAtlassianCompatibleIncidents } from "../incidents";
diff --git a/packages/status-fetcher/src/fetchers/betterstack.ts b/packages/status-fetcher/src/fetchers/betterstack.ts
index bb2742716..dc1f3d2ce 100644
--- a/packages/status-fetcher/src/fetchers/betterstack.ts
+++ b/packages/status-fetcher/src/fetchers/betterstack.ts
@@ -1,5 +1,6 @@
import { Effect } from "effect";
import { z } from "zod";
+
import { type FetchError, fetchJson } from "../fetch";
import type { StatusFetcher, StatusPageEntry, StatusResult } from "../types";
import { urlHostnameEndsWith } from "../utils";
diff --git a/packages/status-fetcher/src/fetchers/custom.ts b/packages/status-fetcher/src/fetchers/custom.ts
index 9405cae64..789f0f063 100644
--- a/packages/status-fetcher/src/fetchers/custom.ts
+++ b/packages/status-fetcher/src/fetchers/custom.ts
@@ -1,5 +1,6 @@
import { Effect } from "effect";
import { z } from "zod";
+
import { FetchError, fetchJson } from "../fetch";
import type { StatusFetcher, StatusPageEntry, StatusResult } from "../types";
import { inferStatus } from "../utils";
diff --git a/packages/status-fetcher/src/fetchers/html.ts b/packages/status-fetcher/src/fetchers/html.ts
index c922ffcde..acedf769d 100644
--- a/packages/status-fetcher/src/fetchers/html.ts
+++ b/packages/status-fetcher/src/fetchers/html.ts
@@ -1,5 +1,6 @@
import { Effect } from "effect";
import { parse } from "node-html-parser";
+
import { type FetchError, fetchText } from "../fetch";
import type { StatusFetcher, StatusPageEntry, StatusResult } from "../types";
import { inferStatus } from "../utils";
diff --git a/packages/status-fetcher/src/fetchers/incidentio.ts b/packages/status-fetcher/src/fetchers/incidentio.ts
index 40e6dcadc..226aaca0c 100644
--- a/packages/status-fetcher/src/fetchers/incidentio.ts
+++ b/packages/status-fetcher/src/fetchers/incidentio.ts
@@ -1,5 +1,6 @@
import { Effect } from "effect";
import { z } from "zod";
+
import { fetchAtlassianCompatibleComponents } from "../components";
import { type FetchError, fetchJson } from "../fetch";
import { fetchAtlassianCompatibleIncidents } from "../incidents";
diff --git a/packages/status-fetcher/src/fetchers/instatus.ts b/packages/status-fetcher/src/fetchers/instatus.ts
index ec0990ba1..62f991318 100644
--- a/packages/status-fetcher/src/fetchers/instatus.ts
+++ b/packages/status-fetcher/src/fetchers/instatus.ts
@@ -1,5 +1,6 @@
import { Effect } from "effect";
import { z } from "zod";
+
import { type FetchError, fetchJson } from "../fetch";
import type { StatusFetcher, StatusPageEntry, StatusResult } from "../types";
import { urlHostnameEndsWith } from "../utils";
diff --git a/packages/status-fetcher/src/fetchers/uptimerobot.ts b/packages/status-fetcher/src/fetchers/uptimerobot.ts
index 988428445..44f7e9cf6 100644
--- a/packages/status-fetcher/src/fetchers/uptimerobot.ts
+++ b/packages/status-fetcher/src/fetchers/uptimerobot.ts
@@ -1,5 +1,6 @@
import { Effect } from "effect";
import { z } from "zod";
+
import { FetchError, fetchJson } from "../fetch";
import type {
SeverityLevel,
diff --git a/packages/status-fetcher/src/incidents.ts b/packages/status-fetcher/src/incidents.ts
index cfc0c6643..17b1c92c6 100644
--- a/packages/status-fetcher/src/incidents.ts
+++ b/packages/status-fetcher/src/incidents.ts
@@ -1,5 +1,6 @@
import { Effect } from "effect";
import { z } from "zod";
+
import { type FetchError, fetchJsonWithRaw } from "./fetch";
import type { JsonValue, NormalizedIncident, StatusPageEntry } from "./types";
diff --git a/packages/status-fetcher/src/types.ts b/packages/status-fetcher/src/types.ts
index ac2927983..0022147ce 100644
--- a/packages/status-fetcher/src/types.ts
+++ b/packages/status-fetcher/src/types.ts
@@ -1,5 +1,6 @@
import type { Effect } from "effect";
import { z } from "zod";
+
import type { FetchError } from "./fetch";
// Define arrays as source of truth
diff --git a/packages/subscriptions/src/channels/email.test.ts b/packages/subscriptions/src/channels/email.test.ts
index dbde2a4d0..d289ade2a 100644
--- a/packages/subscriptions/src/channels/email.test.ts
+++ b/packages/subscriptions/src/channels/email.test.ts
@@ -1,5 +1,7 @@
import { beforeEach, describe, expect, spyOn, test } from "bun:test";
+
import { EmailClient } from "@openstatus/emails";
+
import type { PageUpdate, Subscription } from "../types";
import {
sendEmailNotifications,
diff --git a/packages/subscriptions/src/channels/email.ts b/packages/subscriptions/src/channels/email.ts
index 925119f0e..b82397b6d 100644
--- a/packages/subscriptions/src/channels/email.ts
+++ b/packages/subscriptions/src/channels/email.ts
@@ -1,5 +1,6 @@
import { EmailClient } from "@openstatus/emails";
import { z } from "zod";
+
import type { PageUpdate, Subscription } from "../types";
let emailClient: EmailClient | null = null;
diff --git a/packages/subscriptions/src/channels/index.test.ts b/packages/subscriptions/src/channels/index.test.ts
index 342165968..fc6df14f8 100644
--- a/packages/subscriptions/src/channels/index.test.ts
+++ b/packages/subscriptions/src/channels/index.test.ts
@@ -1,4 +1,5 @@
import { describe, expect, test } from "bun:test";
+
import { getChannel } from "./index";
describe("getChannel", () => {
diff --git a/packages/subscriptions/src/channels/webhook.test.ts b/packages/subscriptions/src/channels/webhook.test.ts
index a23bf3d23..acb946761 100644
--- a/packages/subscriptions/src/channels/webhook.test.ts
+++ b/packages/subscriptions/src/channels/webhook.test.ts
@@ -1,4 +1,5 @@
import { afterEach, beforeEach, describe, expect, spyOn, test } from "bun:test";
+
import type { PageUpdate, Subscription } from "../types";
import {
buildGenericPayload,
@@ -13,7 +14,6 @@ import {
const SLACK_URL = "https://hooks.slack.com/services/T1/B1/XXX";
const DISCORD_URL = "https://discord.com/api/webhooks/1/xxx";
-// biome-ignore lint/suspicious/noExplicitAny: test spy
let fetchMock: any;
function makeSub(overrides: Partial<Subscription> = {}): Subscription {
diff --git a/packages/subscriptions/src/channels/webhook.ts b/packages/subscriptions/src/channels/webhook.ts
index ebe949503..25b09e1c2 100644
--- a/packages/subscriptions/src/channels/webhook.ts
+++ b/packages/subscriptions/src/channels/webhook.ts
@@ -1,6 +1,7 @@
import { COLORS, COLOR_DECIMALS } from "@openstatus/notification-base";
import { assertSafeUrl } from "@openstatus/utils";
import { z } from "zod";
+
import type { PageUpdate, Subscription } from "../types";
export type WebhookFlavor = "slack" | "discord" | "generic";
diff --git a/packages/subscriptions/src/dispatcher.test.ts b/packages/subscriptions/src/dispatcher.test.ts
index fd0f33eb0..4cb54ac17 100644
--- a/packages/subscriptions/src/dispatcher.test.ts
+++ b/packages/subscriptions/src/dispatcher.test.ts
@@ -7,12 +7,14 @@ import {
spyOn,
test,
} from "bun:test";
+
import { db, eq } from "@openstatus/db";
import {
pageSubscriber,
pageSubscriberToPageComponent,
} from "@openstatus/db/src/schema";
import { EmailClient } from "@openstatus/emails";
+
import { dispatchPageUpdate } from "./dispatcher";
import type { PageUpdate } from "./types";
diff --git a/packages/subscriptions/src/dispatcher.ts b/packages/subscriptions/src/dispatcher.ts
index 9c9000974..f06aab70f 100644
--- a/packages/subscriptions/src/dispatcher.ts
+++ b/packages/subscriptions/src/dispatcher.ts
@@ -5,6 +5,7 @@ import {
pageSubscriber,
statusReportUpdate,
} from "@openstatus/db/src/schema";
+
import { getChannel } from "./channels";
import type { PageUpdate, Subscription } from "./types";
diff --git a/packages/theme-store/package.json b/packages/theme-store/package.json
index d2c33242a..cdb625530 100644
--- a/packages/theme-store/package.json
+++ b/packages/theme-store/package.json
@@ -2,14 +2,14 @@
"name": "@openstatus/theme-store",
"version": "1.0.0",
"description": "",
+ "keywords": [],
+ "license": "ISC",
+ "author": "",
"main": "src/index.ts",
"scripts": {},
"dependencies": {},
"devDependencies": {
"@openstatus/tsconfig": "workspace:*",
"typescript": "catalog:"
- },
- "keywords": [],
- "author": "",
- "license": "ISC"
+ }
}
diff --git a/packages/tinybird/package.json b/packages/tinybird/package.json
index 2c24c4085..17a465bcf 100644
--- a/packages/tinybird/package.json
+++ b/packages/tinybird/package.json
@@ -1,8 +1,8 @@
{
"name": "@openstatus/tinybird",
"version": "0.0.0",
- "main": "src/index.ts",
"license": "MIT",
+ "main": "src/index.ts",
"dependencies": {
"@chronark/zod-bird": "catalog:",
"zod": "catalog:"
diff --git a/packages/tinybird/scripts/backfill_external_status_v0_to_v1.ts b/packages/tinybird/scripts/backfill_external_status_v0_to_v1.ts
index 1a1a62317..d7debef52 100644
--- a/packages/tinybird/scripts/backfill_external_status_v0_to_v1.ts
+++ b/packages/tinybird/scripts/backfill_external_status_v0_to_v1.ts
@@ -3,12 +3,11 @@ import { join } from "node:path";
import { Tinybird } from "@chronark/zod-bird";
import { createClient } from "@libsql/client";
+import { externalService } from "@openstatus/db/src/schema";
import { isNotNull } from "drizzle-orm";
import { drizzle } from "drizzle-orm/libsql";
import { z } from "zod";
-import { externalService } from "@openstatus/db/src/schema";
-
const env = z
.object({
DATABASE_URL: z.string().min(1),
diff --git a/packages/tinybird/src/audit-log/examples.ts b/packages/tinybird/src/audit-log/examples.ts
index 63b392a20..8f515a39a 100644
--- a/packages/tinybird/src/audit-log/examples.ts
+++ b/packages/tinybird/src/audit-log/examples.ts
@@ -6,7 +6,7 @@ const tb = new Tinybird({ token: process.env.TINY_BIRD_API_KEY || "" });
const auditLog = new AuditLog({ tb });
-// biome-ignore lint/correctness/noUnusedVariables: <explanation>
+// oxlint-disable-next-line eslint/no-unused-vars
async function seed() {
await auditLog.publishAuditLog({
id: "monitor:2",
@@ -32,7 +32,7 @@ async function seed() {
});
}
-// biome-ignore lint/correctness/noUnusedVariables: <explanation>
+// oxlint-disable-next-line eslint/no-unused-vars
async function history() {
return await auditLog.getAuditLog({ event_id: "user:1" });
}
diff --git a/packages/tinybird/src/client.ts b/packages/tinybird/src/client.ts
index 3db49950a..595c236ab 100644
--- a/packages/tinybird/src/client.ts
+++ b/packages/tinybird/src/client.ts
@@ -1,5 +1,6 @@
import { Tinybird as Client, NoopTinybird } from "@chronark/zod-bird";
import { z } from "zod";
+
import { monitorRegions } from "../../db/src/schema/constants";
import {
headersSchema,
diff --git a/packages/tracker/package.json b/packages/tracker/package.json
index f58219088..8b60ba0d1 100644
--- a/packages/tracker/package.json
+++ b/packages/tracker/package.json
@@ -2,6 +2,9 @@
"name": "@openstatus/tracker",
"version": "1.0.0",
"description": "",
+ "keywords": [],
+ "license": "ISC",
+ "author": "",
"main": "src/index.ts",
"scripts": {},
"dependencies": {
@@ -12,8 +15,5 @@
"devDependencies": {
"@openstatus/tsconfig": "workspace:*",
"typescript": "catalog:"
- },
- "keywords": [],
- "author": "",
- "license": "ISC"
+ }
}
diff --git a/packages/ui/package.json b/packages/ui/package.json
index 8023a4ca3..8f2daaf6f 100644
--- a/packages/ui/package.json
+++ b/packages/ui/package.json
@@ -36,21 +36,9 @@
"scripts": {
"build": "echo '@openstatus/ui has no build step (registry builds separately)'",
"registry:build": "node scripts/transform-imports.mjs && shadcn build --cwd dist --output public/r registry.json && node scripts/copy-to-web.mjs",
- "lint": "biome lint \"**/*.ts*\"",
+ "lint": "oxlint",
"tsc": "tsc --noEmit"
},
- "devDependencies": {
- "@biomejs/biome": "catalog:",
- "@openstatus/tsconfig": "workspace:*",
- "@types/luxon": "catalog:",
- "@types/node": "catalog:",
- "@types/react": "catalog:",
- "@types/react-dom": "catalog:",
- "glob": "catalog:",
- "shadcn": "catalog:",
- "tailwindcss": "catalog:",
- "typescript": "catalog:"
- },
"dependencies": {
"@date-fns/utc": "catalog:",
"@dnd-kit/core": "catalog:",
@@ -99,6 +87,17 @@
"vaul": "catalog:",
"zod": "catalog:"
},
+ "devDependencies": {
+ "@openstatus/tsconfig": "workspace:*",
+ "@types/luxon": "catalog:",
+ "@types/node": "catalog:",
+ "@types/react": "catalog:",
+ "@types/react-dom": "catalog:",
+ "glob": "catalog:",
+ "shadcn": "catalog:",
+ "tailwindcss": "catalog:",
+ "typescript": "catalog:"
+ },
"peerDependencies": {
"next-themes": "catalog:",
"sonner": "catalog:"
diff --git a/packages/ui/scripts/transform-imports.mjs b/packages/ui/scripts/transform-imports.mjs
index 1e01a1541..0696bb654 100644
--- a/packages/ui/scripts/transform-imports.mjs
+++ b/packages/ui/scripts/transform-imports.mjs
@@ -10,6 +10,7 @@ import {
} from "node:fs";
import { dirname, join } from "node:path";
import { fileURLToPath } from "node:url";
+
import { globSync } from "glob";
const __filename = fileURLToPath(import.meta.url);
diff --git a/packages/ui/src/components/blocks/status-banner.tsx b/packages/ui/src/components/blocks/status-banner.tsx
index 6fe23e21a..45b0115f8 100644
--- a/packages/ui/src/components/blocks/status-banner.tsx
+++ b/packages/ui/src/components/blocks/status-banner.tsx
@@ -1,5 +1,9 @@
"use client";
+import { useStatusBlocksLabels } from "@openstatus/ui/components/blocks/status-i18n";
+import { StatusIcon as UnifiedStatusIcon } from "@openstatus/ui/components/blocks/status-icon";
+import { StatusTimestamp } from "@openstatus/ui/components/blocks/status-timestamp";
+import type { StatusType } from "@openstatus/ui/components/blocks/status.types";
import {
Tabs,
TabsContent,
@@ -7,10 +11,6 @@ import {
TabsTrigger,
} from "@openstatus/ui/components/ui/tabs";
import { cn } from "@openstatus/ui/lib/utils";
-import { StatusIcon as UnifiedStatusIcon } from "@openstatus/ui/components/blocks/status-icon";
-import type { StatusType } from "@openstatus/ui/components/blocks/status.types";
-import { StatusTimestamp } from "@openstatus/ui/components/blocks/status-timestamp";
-import { useStatusBlocksLabels } from "@openstatus/ui/components/blocks/status-i18n";
/**
* StatusBanner - Complete banner component with integrated icon, message, and timestamp
@@ -64,7 +64,7 @@ export function StatusBanner({
>
<StatusBannerIcon className="flex-shrink-0" />
<div className="flex flex-1 flex-wrap items-center justify-between gap-2">
- <StatusBannerMessage className="font-semibold text-xl" />
+ <StatusBannerMessage className="text-xl font-semibold" />
<StatusTimestamp date={new Date()} className="text-xs" />
</div>
</StatusBannerContainer>
@@ -209,7 +209,7 @@ export function StatusBannerTitle({
return (
<div
className={cn(
- "px-3 py-2 font-medium text-background",
+ "text-background px-3 py-2 font-medium",
"group-data-[status=success]/status-banner:bg-success",
"group-data-[status=degraded]/status-banner:bg-warning",
"group-data-[status=error]/status-banner:bg-destructive",
@@ -452,7 +452,7 @@ export function StatusBannerTabsTrigger({
className={cn(
"font-mono",
"rounded-none border-none focus-visible:ring-inset",
- "h-full text-foreground data-[state=active]:text-background dark:text-foreground dark:data-[state=active]:text-background",
+ "text-foreground data-[state=active]:text-background dark:text-foreground dark:data-[state=active]:text-background h-full",
"data-[state=active]:data-[status=success]:bg-success data-[status=success]:bg-success/50 dark:data-[state=active]:data-[status=success]:bg-success dark:data-[status=success]:bg-success/50",
"data-[state=active]:data-[status=degraded]:bg-warning data-[status=degraded]:bg-warning/50 dark:data-[state=active]:data-[status=degraded]:bg-warning dark:data-[status=degraded]:bg-warning/50",
"data-[state=active]:data-[status=error]:bg-destructive data-[status=error]:bg-destructive/50 dark:data-[state=active]:data-[status=error]:bg-destructive dark:data-[status=error]:bg-destructive/50",
diff --git a/packages/ui/src/components/blocks/status-bar.tsx b/packages/ui/src/components/blocks/status-bar.tsx
index cbc14d50f..a8af54877 100644
--- a/packages/ui/src/components/blocks/status-bar.tsx
+++ b/packages/ui/src/components/blocks/status-bar.tsx
@@ -513,7 +513,7 @@ const StatusBarItem = forwardRef<HTMLDivElement, StatusBarItemProps>(
<HoverCardTrigger asChild>
<div
ref={ref}
- className="group relative flex h-full flex-1 cursor-pointer flex-col outline-none hover:opacity-80 focus-visible:opacity-80 focus-visible:ring-[2px] focus-visible:ring-ring/50 aria-pressed:opacity-80 rounded-full"
+ className="group focus-visible:ring-ring/50 relative flex h-full flex-1 cursor-pointer flex-col rounded-full outline-none hover:opacity-80 focus-visible:opacity-80 focus-visible:ring-[2px] aria-pressed:opacity-80"
onClick={() => handlers.onClick(index)}
onFocus={() => handlers.onFocus(index)}
onBlur={handlers.onBlur}
@@ -661,9 +661,9 @@ export function StatusBarCard({
{isPinned && !isTouch && (
<>
<Separator />
- <div className="flex cursor-pointer items-center p-2 text-muted-foreground text-xs">
+ <div className="text-muted-foreground flex cursor-pointer items-center p-2 text-xs">
<span>{labels.clickAgainToUnpin}</span>
- <kbd className="ml-auto inline-flex h-5 max-h-5 min-w-5 items-center justify-center rounded border border-input bg-background px-1.5 font-mono text-[10px] font-medium text-muted-foreground">
+ <kbd className="border-input bg-background text-muted-foreground ml-auto inline-flex h-5 max-h-5 min-w-5 items-center justify-center rounded border px-1.5 font-mono text-[10px] font-medium">
Esc
</kbd>
</div>
@@ -697,7 +697,7 @@ export function StatusBarSkeleton({
}: React.ComponentProps<typeof Skeleton>) {
return (
<Skeleton
- className={cn("h-[50px] w-full rounded-none bg-muted", className)}
+ className={cn("bg-muted h-[50px] w-full rounded-none", className)}
{...props}
/>
);
@@ -739,7 +739,7 @@ function StatusBarContent({
/>
<div className="text-sm">{labels.requestStatus[status]}</div>
</div>
- <div className="ml-auto font-mono text-muted-foreground text-xs tracking-tight">
+ <div className="text-muted-foreground ml-auto font-mono text-xs tracking-tight">
{value}
</div>
</div>
@@ -820,7 +820,7 @@ export function StatusBarEvent({
{/* NOTE: this is to make the text truncate based on the width of the sibling element */}
{/* REMINDER: height needs to be equal the text height */}
<div className="h-4 w-full" />
- <div className="absolute inset-0 text-muted-foreground hover:text-foreground">
+ <div className="text-muted-foreground hover:text-foreground absolute inset-0">
<div className="flex items-center gap-2">
<div
className="h-2.5 w-2.5 shrink-0 rounded-sm"
@@ -831,9 +831,9 @@ export function StatusBarEvent({
<div className="truncate">{name}</div>
</div>
</div>
- <div className="mt-1 text-muted-foreground text-xs">
+ <div className="text-muted-foreground mt-1 text-xs">
{labels.formatDateRange(from, to ?? undefined)}{" "}
- <span className="ml-1.5 font-mono text-muted-foreground/70">
+ <span className="text-muted-foreground/70 ml-1.5 font-mono">
{formatDuration({ from, to, name, type, isAggregated, labels })}
</span>
</div>
diff --git a/packages/ui/src/components/blocks/status-blank.tsx b/packages/ui/src/components/blocks/status-blank.tsx
index 398b673a7..9ee5c2310 100644
--- a/packages/ui/src/components/blocks/status-blank.tsx
+++ b/packages/ui/src/components/blocks/status-blank.tsx
@@ -33,7 +33,7 @@ export function StatusBlankContainer({
return (
<div
className={cn(
- "flex flex-col items-center justify-center gap-2.5 rounded-lg border bg-muted/30 px-3 py-2 text-center sm:px-8 sm:py-6",
+ "bg-muted/30 flex flex-col items-center justify-center gap-2.5 rounded-lg border px-3 py-2 text-center sm:px-8 sm:py-6",
className,
)}
{...props}
@@ -95,7 +95,7 @@ export function StatusBlankDescription({
}: React.ComponentProps<"div">) {
return (
<div
- className={cn("font-mono text-muted-foreground text-sm", className)}
+ className={cn("text-muted-foreground font-mono text-sm", className)}
{...props}
>
{children}
@@ -234,7 +234,7 @@ export function StatusBlankPage({
return (
<div
className={cn(
- "relative flex w-full max-w-xs flex-1 flex-col items-center justify-center gap-4 overflow-hidden rounded-lg border border-border/70 bg-background px-3 py-2 text-center",
+ "border-border/70 bg-background relative flex w-full max-w-xs flex-1 flex-col items-center justify-center gap-4 overflow-hidden rounded-lg border px-3 py-2 text-center",
className,
)}
{...props}
@@ -276,13 +276,13 @@ export function StatusBlankPageHeader({
)}
{...props}
>
- <div className="size-3 rounded-sm bg-accent/60" />
+ <div className="bg-accent/60 size-3 rounded-sm" />
<div className="flex flex-row gap-1">
- <div className="h-3 w-8 rounded-sm bg-accent/60" />
- <div className="h-3 w-8 rounded-sm bg-accent/60" />
- <div className="h-3 w-8 rounded-sm bg-accent/60" />
+ <div className="bg-accent/60 h-3 w-8 rounded-sm" />
+ <div className="bg-accent/60 h-3 w-8 rounded-sm" />
+ <div className="bg-accent/60 h-3 w-8 rounded-sm" />
</div>
- <div className="h-3 w-8 rounded-sm bg-accent/60" />
+ <div className="bg-accent/60 h-3 w-8 rounded-sm" />
</div>
);
}
@@ -319,16 +319,16 @@ export function StatusBlankMonitorUptime({
{...props}
>
<div className="flex w-full flex-row gap-1">
- <div className="h-3 w-8 rounded-sm bg-accent" />
- <div className="h-3 w-12 rounded-sm bg-accent" />
- <div className="h-3 w-10 rounded-sm bg-accent" />
+ <div className="bg-accent h-3 w-8 rounded-sm" />
+ <div className="bg-accent h-3 w-12 rounded-sm" />
+ <div className="bg-accent h-3 w-10 rounded-sm" />
</div>
<div className="flex w-full flex-row items-end gap-0.5">
{Array.from({ length: 30 }).map((_, index) => (
<div
key={index}
className={cn(
- "h-12 flex-1 rounded-sm bg-accent",
+ "bg-accent h-12 flex-1 rounded-sm",
[10, 20].includes(index) && "h-8",
[25].includes(index) && "h-10",
)}
@@ -368,15 +368,15 @@ export function StatusBlankReportUpdate({
return (
<div className={cn("flex w-full items-start gap-2", className)} {...props}>
<div className="flex h-full flex-col items-center gap-0.5">
- <div className="size-3 rounded-sm bg-accent" />
+ <div className="bg-accent size-3 rounded-sm" />
</div>
<div className="flex flex-1 flex-col gap-1 pb-2">
<div className="flex items-center gap-1">
- <div className="h-3 w-12 rounded-sm bg-accent" />
- <div className="h-3 w-16 rounded-sm bg-accent" />
+ <div className="bg-accent h-3 w-12 rounded-sm" />
+ <div className="bg-accent h-3 w-16 rounded-sm" />
</div>
- <div className="h-3 w-full rounded-sm bg-accent" />
- <div className="h-3 w-full rounded-sm bg-accent" />
+ <div className="bg-accent h-3 w-full rounded-sm" />
+ <div className="bg-accent h-3 w-full rounded-sm" />
</div>
</div>
);
@@ -409,7 +409,7 @@ export function StatusBlankOverlay({
return (
<div
className={cn(
- "absolute inset-0 flex flex-col items-center justify-center gap-2 bg-gradient-to-b from-40% from-transparent to-background p-2",
+ "to-background absolute inset-0 flex flex-col items-center justify-center gap-2 bg-gradient-to-b from-transparent from-40% p-2",
className,
)}
{...props}
@@ -462,8 +462,8 @@ export function StatusBlankEvents({
return (
<StatusBlankContainer {...props}>
<div className="relative mt-8 flex w-full flex-col items-center justify-center">
- <StatusBlankReport className="-top-16 absolute scale-60 opacity-50" />
- <StatusBlankReport className="-top-8 absolute scale-80 opacity-80" />
+ <StatusBlankReport className="absolute -top-16 scale-60 opacity-50" />
+ <StatusBlankReport className="absolute -top-8 scale-80 opacity-80" />
<StatusBlankReport />
</div>
<StatusBlankContent>
@@ -516,8 +516,8 @@ export function StatusBlankMonitors({
return (
<StatusBlankContainer {...props}>
<div className="relative mt-8 flex w-full flex-col items-center justify-center">
- <StatusBlankMonitor className="-top-16 absolute scale-60 opacity-50" />
- <StatusBlankMonitor className="-top-8 absolute scale-80 opacity-80" />
+ <StatusBlankMonitor className="absolute -top-16 scale-60 opacity-50" />
+ <StatusBlankMonitor className="absolute -top-8 scale-80 opacity-80" />
<StatusBlankMonitor />
</div>
<StatusBlankContent>
@@ -549,7 +549,7 @@ export function StatusBlankAction({
<div
data-slot="status-blank-action"
className={cn(
- "mt-2 inline-flex items-center justify-center rounded-md border border-border/70 px-3 py-1.5 font-mono text-muted-foreground text-sm hover:border-border hover:text-foreground [&>a]:no-underline [&>a]:text-inherit",
+ "border-border/70 text-muted-foreground hover:border-border hover:text-foreground mt-2 inline-flex items-center justify-center rounded-md border px-3 py-1.5 font-mono text-sm [&>a]:text-inherit [&>a]:no-underline",
className,
)}
{...props}
diff --git a/packages/ui/src/components/blocks/status-calendar.tsx b/packages/ui/src/components/blocks/status-calendar.tsx
index e7046022d..58e418780 100644
--- a/packages/ui/src/components/blocks/status-calendar.tsx
+++ b/packages/ui/src/components/blocks/status-calendar.tsx
@@ -1,5 +1,22 @@
"use client";
+import { StatusBarCard } from "@openstatus/ui/components/blocks/status-bar";
+import { useStatusBlocksLabels } from "@openstatus/ui/components/blocks/status-i18n";
+import type {
+ StatusBarData,
+ StatusEventType,
+ StatusType,
+} from "@openstatus/ui/components/blocks/status.types";
+import { Button } from "@openstatus/ui/components/ui/button";
+import {
+ HoverCard,
+ HoverCardContent,
+ HoverCardTrigger,
+} from "@openstatus/ui/components/ui/hover-card";
+import { Separator } from "@openstatus/ui/components/ui/separator";
+import { Skeleton } from "@openstatus/ui/components/ui/skeleton";
+import { useMediaQuery } from "@openstatus/ui/hooks/use-media-query";
+import { cn } from "@openstatus/ui/lib/utils";
import {
type Locale,
addMonths,
@@ -23,24 +40,6 @@ import {
} from "react";
import { DayPicker, type DayProps } from "react-day-picker";
-import { StatusBarCard } from "@openstatus/ui/components/blocks/status-bar";
-import { useStatusBlocksLabels } from "@openstatus/ui/components/blocks/status-i18n";
-import type {
- StatusBarData,
- StatusEventType,
- StatusType,
-} from "@openstatus/ui/components/blocks/status.types";
-import { Button } from "@openstatus/ui/components/ui/button";
-import {
- HoverCard,
- HoverCardContent,
- HoverCardTrigger,
-} from "@openstatus/ui/components/ui/hover-card";
-import { Separator } from "@openstatus/ui/components/ui/separator";
-import { Skeleton } from "@openstatus/ui/components/ui/skeleton";
-import { useMediaQuery } from "@openstatus/ui/hooks/use-media-query";
-import { cn } from "@openstatus/ui/lib/utils";
-
type BarEvent = StatusBarData["events"][number];
export interface StatusCalendarMarker {
@@ -338,13 +337,13 @@ export function StatusCalendar({
ref={containerRef}
data-slot="status-calendar"
className={cn(
- "flex flex-col rounded-lg border bg-card text-card-foreground",
+ "bg-card text-card-foreground flex flex-col rounded-lg border",
className,
)}
>
<header className="flex items-center gap-3 px-4 py-3">
- <div className="font-medium text-sm">{resolvedTitle}</div>
- <div className="ml-auto flex items-center gap-1 text-muted-foreground text-sm">
+ <div className="text-sm font-medium">{resolvedTitle}</div>
+ <div className="text-muted-foreground ml-auto flex items-center gap-1 text-sm">
<Button
variant="ghost"
size="icon"
@@ -354,7 +353,7 @@ export function StatusCalendar({
>
<ChevronLeft className="size-4" />
</Button>
- <span className="text-center font-medium font-mono text-foreground tabular-nums">
+ <span className="text-foreground text-center font-mono font-medium tabular-nums">
{formatMonthYear(currentMonth)}
</span>
<Button
@@ -388,9 +387,9 @@ export function StatusCalendar({
row: "flex w-full border-b last:border-b-0",
cell: "flex-1 relative p-0 text-center text-sm border-r last:border-r-0 focus-within:relative focus-within:z-20",
day: cn(
- "inline-flex h-12 w-full items-center justify-center text-sm font-normal text-foreground/80 transition-colors",
+ "text-foreground/80 inline-flex h-12 w-full items-center justify-center text-sm font-normal transition-colors",
"hover:bg-accent hover:text-accent-foreground",
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",
+ "focus-visible:ring-ring focus-visible:ring-2 focus-visible:outline-none focus-visible:ring-inset",
),
day_today: "text-foreground font-semibold",
day_outside: "text-muted-foreground/50",
@@ -457,7 +456,7 @@ const CalendarDay = forwardRef<HTMLElement, CalendarDayProps>(
// current month.
if (isOutside) {
return (
- <div data-day-state="outside" className="h-12 w-full bg-muted/30" />
+ <div data-day-state="outside" className="bg-muted/30 h-12 w-full" />
);
}
@@ -472,7 +471,7 @@ const CalendarDay = forwardRef<HTMLElement, CalendarDayProps>(
data-day-state="disabled"
aria-disabled
tabIndex={-1}
- className="inline-flex h-12 w-full items-center justify-center font-mono text-muted-foreground/40 text-sm"
+ className="text-muted-foreground/40 inline-flex h-12 w-full items-center justify-center font-mono text-sm"
>
{format(date, "d")}
</div>
@@ -489,8 +488,8 @@ const CalendarDay = forwardRef<HTMLElement, CalendarDayProps>(
// Tinted-field: severity days get a soft fill that owns the hover state,
// empty days fall back to the neutral accent hover.
const dayClass = cn(
- "inline-flex h-12 w-full items-center justify-center font-mono text-sm font-normal text-foreground/80 transition-colors",
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",
+ "text-foreground/80 inline-flex h-12 w-full items-center justify-center font-mono text-sm font-normal transition-colors",
+ "focus-visible:ring-ring focus-visible:ring-2 focus-visible:outline-none focus-visible:ring-inset",
isToday && "text-foreground font-semibold",
severity
? SEVERITY_FILL[severity]
@@ -610,12 +609,12 @@ export function StatusCalendarSkeleton({
<div
data-slot="status-calendar-skeleton"
className={cn(
- "flex flex-col rounded-lg border bg-card text-card-foreground",
+ "bg-card text-card-foreground flex flex-col rounded-lg border",
className,
)}
>
<header className="flex items-center gap-3 px-4 py-3">
- <div className="font-medium text-sm">
+ <div className="text-sm font-medium">
{title ?? labels.calendarTitle}
</div>
<div className="ml-auto flex items-center gap-1">
diff --git a/packages/ui/src/components/blocks/status-component-group.tsx b/packages/ui/src/components/blocks/status-component-group.tsx
index 243a65ebd..f0ba2512d 100644
--- a/packages/ui/src/components/blocks/status-component-group.tsx
+++ b/packages/ui/src/components/blocks/status-component-group.tsx
@@ -1,5 +1,10 @@
"use client";
+import {
+ StatusComponentIcon,
+ StatusComponentStatus,
+} from "@openstatus/ui/components/blocks/status-component";
+import type { StatusType } from "@openstatus/ui/components/blocks/status.types";
import {
Collapsible,
CollapsibleContent,
@@ -7,11 +12,6 @@ import {
} from "@openstatus/ui/components/ui/collapsible";
import { cn } from "@openstatus/ui/lib/utils";
import { useEffect, useState } from "react";
-import {
- StatusComponentIcon,
- StatusComponentStatus,
-} from "@openstatus/ui/components/blocks/status-component";
-import type { StatusType } from "@openstatus/ui/components/blocks/status.types";
/**
* StatusComponentGroup - Collapsible group for organizing related monitors
@@ -140,14 +140,14 @@ export function StatusComponentGroup({
data-slot="status-component-group"
className={cn(
"-mx-3",
- "rounded-lg border border-transparent bg-muted/50 hover:border-border/50 data-[state=open]:border-border/50 data-[state=open]:bg-muted/50",
+ "bg-muted/50 hover:border-border/50 data-[state=open]:border-border/50 data-[state=open]:bg-muted/50 rounded-lg border border-transparent",
className,
)}
>
<CollapsibleTrigger
data-slot="status-component-group-trigger"
className={cn(
- "group/component flex w-full items-center justify-between gap-2 rounded-lg px-3 py-2 font-medium font-mono",
+ "group/component flex w-full items-center justify-between gap-2 rounded-lg px-3 py-2 font-mono font-medium",
"cursor-pointer",
className,
)}
@@ -164,7 +164,7 @@ export function StatusComponentGroup({
data-slot="status-component-group-content"
data-animate={mounted}
className={cn(
- "flex flex-col gap-3 border-border/50 border-t px-3 py-2",
+ "border-border/50 flex flex-col gap-3 border-t px-3 py-2",
"overflow-hidden",
// REMINDER: otherwise, if defaultOpen is true, the animation will be triggered and we have a layout shift
"data-[animate=true]:data-[state=closed]:animate-collapsible-up data-[animate=true]:data-[state=open]:animate-collapsible-down",
diff --git a/packages/ui/src/components/blocks/status-component.tsx b/packages/ui/src/components/blocks/status-component.tsx
index ad4c40e7a..a43c992b6 100644
--- a/packages/ui/src/components/blocks/status-component.tsx
+++ b/packages/ui/src/components/blocks/status-component.tsx
@@ -1,5 +1,11 @@
"use client";
+import { useStatusBlocksLabels } from "@openstatus/ui/components/blocks/status-i18n";
+import { StatusIcon as UnifiedStatusIcon } from "@openstatus/ui/components/blocks/status-icon";
+import type {
+ StatusBarData,
+ StatusType,
+} from "@openstatus/ui/components/blocks/status.types";
import { Skeleton } from "@openstatus/ui/components/ui/skeleton";
import {
Tooltip,
@@ -12,12 +18,6 @@ import { cn } from "@openstatus/ui/lib/utils";
import { formatDistanceToNowStrict, subDays } from "date-fns";
import { InfoIcon } from "lucide-react";
import { useState } from "react";
-import { StatusIcon as UnifiedStatusIcon } from "@openstatus/ui/components/blocks/status-icon";
-import type {
- StatusBarData,
- StatusType,
-} from "@openstatus/ui/components/blocks/status.types";
-import { useStatusBlocksLabels } from "@openstatus/ui/components/blocks/status-i18n";
// ============================================================================
// Layout Components
@@ -268,7 +268,7 @@ export function StatusComponentTitle({
<div
data-slot="status-component-title"
className={cn(
- "truncate font-medium font-mono text-base text-foreground leading-5",
+ "text-foreground truncate font-mono text-base leading-5 font-medium",
className,
)}
{...props}
@@ -327,7 +327,7 @@ export function StatusComponentDescription({
className="rounded-full"
{...props}
>
- <InfoIcon className="size-4 text-muted-foreground" />
+ <InfoIcon className="text-muted-foreground size-4" />
</TooltipTrigger>
<TooltipContent>
<p>{children}</p>
@@ -414,7 +414,7 @@ export function StatusComponentFooter({
return (
<div
data-slot="status-component-footer"
- className="flex flex-row items-center justify-between font-mono text-muted-foreground text-xs leading-none"
+ className="text-muted-foreground flex flex-row items-center justify-between font-mono text-xs leading-none"
>
<div>
{isLoading ? (
@@ -463,7 +463,7 @@ export function StatusComponentUptime({
<div
data-slot="status-component-uptime"
className={cn(
- "font-mono text-foreground/80 text-sm leading-none",
+ "text-foreground/80 font-mono text-sm leading-none",
className,
)}
{...props}
diff --git a/packages/ui/src/components/blocks/status-events.tsx b/packages/ui/src/components/blocks/status-events.tsx
index eb916b3af..10d20cbb9 100644
--- a/packages/ui/src/components/blocks/status-events.tsx
+++ b/packages/ui/src/components/blocks/status-events.tsx
@@ -1,6 +1,8 @@
"use client";
-import { Slot } from "@radix-ui/react-slot";
+import { useStatusBlocksLabels } from "@openstatus/ui/components/blocks/status-i18n";
+import { StatusTimestamp } from "@openstatus/ui/components/blocks/status-timestamp";
+import type { StatusReportUpdateType } from "@openstatus/ui/components/blocks/status.types";
import { Badge } from "@openstatus/ui/components/ui/badge";
import { Separator } from "@openstatus/ui/components/ui/separator";
import {
@@ -10,11 +12,9 @@ import {
TooltipTrigger,
} from "@openstatus/ui/components/ui/tooltip";
import { cn } from "@openstatus/ui/lib/utils";
+import { Slot } from "@radix-ui/react-slot";
import { formatDistanceStrict } from "date-fns";
import { Check } from "lucide-react";
-import type { StatusReportUpdateType } from "@openstatus/ui/components/blocks/status.types";
-import { StatusTimestamp } from "@openstatus/ui/components/blocks/status-timestamp";
-import { useStatusBlocksLabels } from "@openstatus/ui/components/blocks/status-i18n";
// ============================================================================
// Container Components
@@ -128,7 +128,7 @@ export function StatusEventContent({
data-hoverable={hoverable}
className={cn(
"group -mx-3 -my-2 flex flex-col gap-2 rounded-lg border border-transparent px-3 py-2",
- "data-[hoverable=true]:hover:cursor-pointer data-[hoverable=true]:hover:border-border/50 data-[hoverable=true]:hover:bg-muted/50",
+ "data-[hoverable=true]:hover:border-border/50 data-[hoverable=true]:hover:bg-muted/50 data-[hoverable=true]:hover:cursor-pointer",
className,
)}
{...props}
@@ -194,7 +194,7 @@ export function StatusEventTitleCheck({
<TooltipProvider>
<Tooltip>
<TooltipTrigger aria-label={labels.reportResolved}>
- <div className="rounded-full border border-success/20 bg-success/10 p-0.5 text-success">
+ <div className="border-success/20 bg-success/10 text-success rounded-full border p-0.5">
<Check className="size-3 shrink-0" aria-hidden="true" />
</div>
</TooltipTrigger>
@@ -305,7 +305,7 @@ export function StatusEventDate({
className={cn("flex gap-2 lg:flex-col", className)}
{...props}
>
- <div className="font-medium text-foreground">
+ <div className="text-foreground font-medium">
{labels.formatDateShort(date)}
</div>{" "}
<Badge
@@ -349,7 +349,7 @@ export function StatusEventAside({
return (
<div
data-slot="status-event-aside"
- className="lg:-left-32 border border-transparent lg:absolute lg:top-0 lg:h-full"
+ className="border border-transparent lg:absolute lg:top-0 lg:-left-32 lg:h-full"
>
<div className={cn("lg:sticky lg:top-0 lg:left-0", className)} {...props}>
{children}
@@ -546,13 +546,13 @@ export function StatusEventTimelineReportUpdate({
<StatusEventTimelineTitle>
<span>{labels.incidentStatus[report.status]}</span>{" "}
<span className="text-muted-foreground/70">·</span>{" "}
- <span className="font-mono text-muted-foreground text-xs">
+ <span className="text-muted-foreground font-mono text-xs">
<StatusTimestamp date={report.date} variant="rich" asChild>
<span>{labels.formatDateTime(report.date)}</span>
</StatusTimestamp>
</span>{" "}
{duration ? (
- <span className="font-mono text-muted-foreground/70 text-xs">
+ <span className="text-muted-foreground/70 font-mono text-xs">
{duration}
</span>
) : null}
@@ -644,7 +644,7 @@ export function StatusEventTimelineMaintenance({
<StatusEventTimelineTitle>
<span>{maintenance.title}</span>{" "}
<span className="text-muted-foreground/70">·</span>{" "}
- <span className="font-mono text-muted-foreground text-xs">
+ <span className="text-muted-foreground font-mono text-xs">
<StatusTimestamp date={maintenance.from} variant="rich" asChild>
<span>{from}</span>
</StatusTimestamp>
@@ -654,7 +654,7 @@ export function StatusEventTimelineMaintenance({
</StatusTimestamp>
</span>{" "}
{duration ? (
- <span className="font-mono text-muted-foreground/70 text-xs">
+ <span className="text-muted-foreground/70 font-mono text-xs">
{labels.durationFor(duration)}
</span>
) : null}
@@ -698,7 +698,7 @@ export function StatusEventTimelineTitle({
return (
<Comp
data-slot="status-event-timeline-title"
- className={cn("font-medium text-foreground text-sm", className)}
+ className={cn("text-foreground text-sm font-medium", className)}
{...props}
>
{children}
@@ -728,7 +728,7 @@ export function StatusEventTimelineMessage({
<div
data-slot="status-event-timeline-message"
className={cn(
- "py-1.5 font-mono text-muted-foreground text-sm",
+ "text-muted-foreground py-1.5 font-mono text-sm",
className,
)}
{...props}
@@ -764,7 +764,7 @@ export function StatusEventTimelineDot({
<div
data-slot="status-event-timeline-dot"
className={cn(
- "size-2.5 shrink-0 rounded-full bg-muted",
+ "bg-muted size-2.5 shrink-0 rounded-full",
"group-data-[variant=resolved]:bg-success",
"group-data-[variant=monitoring]:bg-info",
"group-data-[variant=identified]:bg-warning",
diff --git a/packages/ui/src/components/blocks/status-feed.tsx b/packages/ui/src/components/blocks/status-feed.tsx
index 0db31a628..7f9a5460f 100644
--- a/packages/ui/src/components/blocks/status-feed.tsx
+++ b/packages/ui/src/components/blocks/status-feed.tsx
@@ -1,5 +1,4 @@
"use client";
-import { useMemo } from "react";
import { StatusBlankEvents } from "@openstatus/ui/components/blocks/status-blank";
import {
StatusEvent,
@@ -18,6 +17,7 @@ import type {
StatusReport,
Maintenance,
} from "@openstatus/ui/components/blocks/status.types";
+import { useMemo } from "react";
type UnifiedEvent = {
id: number;
@@ -290,7 +290,10 @@ export function StatusFeed({
<StatusEventDate date={event.startDate} />
</StatusEventAside>
{renderEvent
- ? renderEvent({ type: "maintenance", data: maintenance }, node)
+ ? renderEvent(
+ { type: "maintenance", data: maintenance },
+ node,
+ )
: node}
</StatusEvent>
);
diff --git a/packages/ui/src/components/blocks/status-icon.tsx b/packages/ui/src/components/blocks/status-icon.tsx
index 7c91a3ec8..f6a9da1f0 100644
--- a/packages/ui/src/components/blocks/status-icon.tsx
+++ b/packages/ui/src/components/blocks/status-icon.tsx
@@ -1,3 +1,4 @@
+import type { StatusType } from "@openstatus/ui/components/blocks/status.types";
import { cn } from "@openstatus/ui/lib/utils";
import {
AlertCircleIcon,
@@ -5,7 +6,6 @@ import {
TriangleAlertIcon,
WrenchIcon,
} from "lucide-react";
-import type { StatusType } from "@openstatus/ui/components/blocks/status.types";
interface StatusIconProps extends React.ComponentProps<"div"> {
/**
@@ -115,7 +115,7 @@ export function StatusIcon({
<div
data-slot="status-icon"
className={cn(
- "flex items-center justify-center rounded-full bg-muted text-background",
+ "bg-muted text-background flex items-center justify-center rounded-full",
sizeClasses,
...statusClasses,
className,
diff --git a/packages/ui/src/components/blocks/status-layout.tsx b/packages/ui/src/components/blocks/status-layout.tsx
index 2bcf2cf10..3f138d631 100644
--- a/packages/ui/src/components/blocks/status-layout.tsx
+++ b/packages/ui/src/components/blocks/status-layout.tsx
@@ -1,5 +1,5 @@
-import { cn } from "@openstatus/ui/lib/utils";
import { StatusIcon as UnifiedStatusIcon } from "@openstatus/ui/components/blocks/status-icon";
+import { cn } from "@openstatus/ui/lib/utils";
/**
* Status - Root container component for status page layouts
@@ -78,7 +78,6 @@ export function StatusBrand({
...props
}: React.ComponentProps<"img">) {
return (
- // biome-ignore lint/a11y/useAltText: <explanation>
<img src={src} alt={alt} className={cn("size-8", className)} {...props} />
);
}
@@ -156,7 +155,7 @@ export function StatusTitle({
<div
data-slot="status-title"
className={cn(
- "font-semibold text-foreground text-lg leading-none",
+ "text-foreground text-lg leading-none font-semibold",
className,
)}
{...props}
@@ -190,7 +189,10 @@ export function StatusDescription({
className,
}: React.ComponentProps<"div">) {
return (
- <div data-slot="status-description" className={cn("text-muted-foreground", className)}>
+ <div
+ data-slot="status-description"
+ className={cn("text-muted-foreground", className)}
+ >
{children}
</div>
);
@@ -226,7 +228,10 @@ export function StatusContent({
className,
}: React.ComponentProps<"div">) {
return (
- <div data-slot="status-content" className={cn("flex flex-col gap-3", className)}>
+ <div
+ data-slot="status-content"
+ className={cn("flex flex-col gap-3", className)}
+ >
{children}
</div>
);
diff --git a/packages/ui/src/components/blocks/status-page-footer.tsx b/packages/ui/src/components/blocks/status-page-footer.tsx
index 1f535d82e..ed630ad92 100644
--- a/packages/ui/src/components/blocks/status-page-footer.tsx
+++ b/packages/ui/src/components/blocks/status-page-footer.tsx
@@ -54,7 +54,7 @@ export function StatusPagePoweredBy({
<p
data-slot="status-page-powered-by"
className={cn(
- "font-mono text-muted-foreground text-xs leading-none sm:text-sm",
+ "text-muted-foreground font-mono text-xs leading-none sm:text-sm",
className,
)}
{...props}
diff --git a/packages/ui/src/components/blocks/status-timestamp.tsx b/packages/ui/src/components/blocks/status-timestamp.tsx
index 5f4de9135..f5939190a 100644
--- a/packages/ui/src/components/blocks/status-timestamp.tsx
+++ b/packages/ui/src/components/blocks/status-timestamp.tsx
@@ -1,12 +1,6 @@
"use client";
import { UTCDate } from "@date-fns/utc";
-import { format, formatDistanceToNowStrict } from "date-fns";
-import { Check, Copy } from "lucide-react";
-import { useEffect, useState } from "react";
-
-import type { HoverCardContentProps } from "@radix-ui/react-hover-card";
-
import {
HoverCard,
HoverCardContent,
@@ -21,6 +15,10 @@ import {
import { useCopyToClipboard } from "@openstatus/ui/hooks/use-copy-to-clipboard";
import { useMediaQuery } from "@openstatus/ui/hooks/use-media-query";
import { cn } from "@openstatus/ui/lib/utils";
+import type { HoverCardContentProps } from "@radix-ui/react-hover-card";
+import { format, formatDistanceToNowStrict } from "date-fns";
+import { Check, Copy } from "lucide-react";
+import { useEffect, useState } from "react";
type BaseProps = {
date: Date;
@@ -187,7 +185,7 @@ function SimpleTimestamp({
<Tooltip>
<TooltipTrigger
className={cn(
- "font-mono text-muted-foreground underline decoration-muted-foreground/30 decoration-dashed underline-offset-4",
+ "text-muted-foreground decoration-muted-foreground/30 font-mono underline decoration-dashed underline-offset-4",
className,
)}
{...props}
diff --git a/packages/ui/src/components/blocks/status-updates.tsx b/packages/ui/src/components/blocks/status-updates.tsx
index 65ebe1e8f..9a5c809cc 100644
--- a/packages/ui/src/components/blocks/status-updates.tsx
+++ b/packages/ui/src/components/blocks/status-updates.tsx
@@ -126,7 +126,7 @@ export function StatusUpdatesCopyInput({
withToast: true,
})
}
- className="-translate-y-1/2 absolute top-1/2 right-2 size-6"
+ className="absolute top-1/2 right-2 size-6 -translate-y-1/2"
>
{isCopied ? <Check /> : <Copy />}
<span className="sr-only">{labels.ariaCopyLink}</span>
diff --git a/packages/ui/src/components/custom/text-shimmer.tsx b/packages/ui/src/components/custom/text-shimmer.tsx
index 7b8fa3cf8..2f6ba536e 100644
--- a/packages/ui/src/components/custom/text-shimmer.tsx
+++ b/packages/ui/src/components/custom/text-shimmer.tsx
@@ -1,8 +1,7 @@
"use client";
-import type { ComponentProps, ElementType, ReactNode } from "react";
-
import { cn } from "@openstatus/ui/lib/utils";
+import type { ComponentProps, ElementType, ReactNode } from "react";
/**
* CSS-only animated text shimmer — a gradient slides under a `bg-clip:text`
diff --git a/packages/ui/src/components/ui/alert-dialog.tsx b/packages/ui/src/components/ui/alert-dialog.tsx
index 494768235..8fa0db5ab 100644
--- a/packages/ui/src/components/ui/alert-dialog.tsx
+++ b/packages/ui/src/components/ui/alert-dialog.tsx
@@ -1,10 +1,9 @@
"use client";
-import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
-import type * as React from "react";
-
import { buttonVariants } from "@openstatus/ui/components/ui/button";
import { cn } from "@openstatus/ui/lib/utils";
+import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
+import type * as React from "react";
function AlertDialog({
...props
@@ -36,7 +35,7 @@ function AlertDialogOverlay({
<AlertDialogPrimitive.Overlay
data-slot="alert-dialog-overlay"
className={cn(
- "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",
+ "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=open]:animate-in fixed inset-0 z-50 bg-black/50",
className,
)}
{...props}
@@ -54,7 +53,7 @@ function AlertDialogContent({
<AlertDialogPrimitive.Content
data-slot="alert-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",
+ "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 bg-background data-[state=closed]:animate-out data-[state=open]:animate-in 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 p-6 shadow-lg duration-200 sm:max-w-lg",
className,
)}
{...props}
@@ -99,7 +98,7 @@ function AlertDialogTitle({
return (
<AlertDialogPrimitive.Title
data-slot="alert-dialog-title"
- className={cn("font-semibold text-lg", className)}
+ className={cn("text-lg font-semibold", className)}
{...props}
/>
);
diff --git a/packages/ui/src/components/ui/alert.tsx b/packages/ui/src/components/ui/alert.tsx
index 077cd9ea0..a13eb7562 100644
--- a/packages/ui/src/components/ui/alert.tsx
+++ b/packages/ui/src/components/ui/alert.tsx
@@ -1,16 +1,15 @@
+import { cn } from "@openstatus/ui/lib/utils";
import { type VariantProps, cva } from "class-variance-authority";
import type * as React from "react";
-import { cn } from "@openstatus/ui/lib/utils";
-
const alertVariants = cva(
- "relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",
+ "relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",
{
variants: {
variant: {
default: "bg-card text-card-foreground",
destructive:
- "text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90",
+ "text-destructive bg-card *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current",
},
},
defaultVariants: {
@@ -55,7 +54,7 @@ function AlertDescription({
<div
data-slot="alert-description"
className={cn(
- "col-start-2 grid justify-items-start gap-1 text-muted-foreground text-sm [&_p]:leading-relaxed",
+ "text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",
className,
)}
{...props}
diff --git a/packages/ui/src/components/ui/avatar.tsx b/packages/ui/src/components/ui/avatar.tsx
index d8d216b16..ace1d9f06 100644
--- a/packages/ui/src/components/ui/avatar.tsx
+++ b/packages/ui/src/components/ui/avatar.tsx
@@ -1,10 +1,9 @@
"use client";
+import { cn } from "@openstatus/ui/lib/utils";
import * as AvatarPrimitive from "@radix-ui/react-avatar";
import type * as React from "react";
-import { cn } from "@openstatus/ui/lib/utils";
-
function Avatar({
className,
...props
@@ -42,7 +41,7 @@ function AvatarFallback({
<AvatarPrimitive.Fallback
data-slot="avatar-fallback"
className={cn(
- "flex size-full items-center justify-center rounded-full bg-muted",
+ "bg-muted flex size-full items-center justify-center rounded-full",
className,
)}
{...props}
diff --git a/packages/ui/src/components/ui/badge.tsx b/packages/ui/src/components/ui/badge.tsx
index d7d3f5359..3190dc46a 100644
--- a/packages/ui/src/components/ui/badge.tsx
+++ b/packages/ui/src/components/ui/badge.tsx
@@ -1,20 +1,19 @@
+import { cn } from "@openstatus/ui/lib/utils";
import { Slot } from "@radix-ui/react-slot";
import { type VariantProps, cva } from "class-variance-authority";
import type * as React from "react";
-import { cn } from "@openstatus/ui/lib/utils";
-
const badgeVariants = cva(
- "inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
+ "focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-md border px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] [&>svg]:pointer-events-none [&>svg]:size-3",
{
variants: {
variant: {
default:
- "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
+ "bg-primary text-primary-foreground [a&]:hover:bg-primary/90 border-transparent",
secondary:
- "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
+ "bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90 border-transparent",
destructive:
- "border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
+ "bg-destructive [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 border-transparent text-white",
outline:
"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
},
diff --git a/packages/ui/src/components/ui/breadcrumb.tsx b/packages/ui/src/components/ui/breadcrumb.tsx
index d8674fa45..341993556 100644
--- a/packages/ui/src/components/ui/breadcrumb.tsx
+++ b/packages/ui/src/components/ui/breadcrumb.tsx
@@ -1,9 +1,8 @@
+import { cn } from "@openstatus/ui/lib/utils";
import { Slot } from "@radix-ui/react-slot";
import { ChevronRight, MoreHorizontal } from "lucide-react";
import type * as React from "react";
-import { cn } from "@openstatus/ui/lib/utils";
-
function Breadcrumb({ ...props }: React.ComponentProps<"nav">) {
return <nav aria-label="breadcrumb" data-slot="breadcrumb" {...props} />;
}
@@ -13,7 +12,7 @@ function BreadcrumbList({ className, ...props }: React.ComponentProps<"ol">) {
<ol
data-slot="breadcrumb-list"
className={cn(
- "flex flex-wrap items-center gap-1.5 break-words text-muted-foreground text-sm sm:gap-2.5",
+ "text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",
className,
)}
{...props}
@@ -43,7 +42,7 @@ function BreadcrumbLink({
return (
<Comp
data-slot="breadcrumb-link"
- className={cn("transition-colors hover:text-foreground", className)}
+ className={cn("hover:text-foreground transition-colors", className)}
{...props}
/>
);
@@ -56,7 +55,7 @@ function BreadcrumbPage({ className, ...props }: React.ComponentProps<"span">) {
role="link"
aria-disabled="true"
aria-current="page"
- className={cn("font-normal text-foreground", className)}
+ className={cn("text-foreground font-normal", className)}
{...props}
/>
);
diff --git a/packages/ui/src/components/ui/button-group.tsx b/packages/ui/src/components/ui/button-group.tsx
index 365d23130..599a509ae 100644
--- a/packages/ui/src/components/ui/button-group.tsx
+++ b/packages/ui/src/components/ui/button-group.tsx
@@ -1,11 +1,10 @@
-import { Slot } from "@radix-ui/react-slot";
-import { type VariantProps, cva } from "class-variance-authority";
-
import { Separator } from "@openstatus/ui/components/ui/separator";
import { cn } from "@openstatus/ui/lib/utils";
+import { Slot } from "@radix-ui/react-slot";
+import { type VariantProps, cva } from "class-variance-authority";
const buttonGroupVariants = cva(
- "flex w-fit items-stretch [&>*]:focus-visible:z-10 [&>*]:focus-visible:relative [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md has-[>[data-slot=button-group]]:gap-2",
+ "flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",
{
variants: {
orientation: {
@@ -49,7 +48,7 @@ function ButtonGroupText({
return (
<Comp
className={cn(
- "flex items-center gap-2 rounded-md border bg-muted px-4 font-medium text-sm shadow-xs [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none",
+ "bg-muted flex items-center gap-2 rounded-md border px-4 text-sm font-medium shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",
className,
)}
{...props}
@@ -67,7 +66,7 @@ function ButtonGroupSeparator({
data-slot="button-group-separator"
orientation={orientation}
className={cn(
- "!m-0 relative self-stretch bg-input data-[orientation=vertical]:h-auto",
+ "bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto",
className,
)}
{...props}
diff --git a/packages/ui/src/components/ui/button.tsx b/packages/ui/src/components/ui/button.tsx
index 5fb967ef4..f7a5c6b0b 100644
--- a/packages/ui/src/components/ui/button.tsx
+++ b/packages/ui/src/components/ui/button.tsx
@@ -1,29 +1,28 @@
+import { cn } from "@openstatus/ui/lib/utils";
import { Slot } from "@radix-ui/react-slot";
import { type VariantProps, cva } from "class-variance-authority";
import type * as React from "react";
-import { cn } from "@openstatus/ui/lib/utils";
-
const buttonVariants = cva(
- "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
+ "focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
{
variants: {
variant: {
default:
- "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
+ "bg-primary text-primary-foreground hover:bg-primary/90 shadow-xs",
destructive:
- "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
+ "bg-destructive hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-white shadow-xs",
outline:
- "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
+ "bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border shadow-xs",
secondary:
- "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",
+ "bg-secondary text-secondary-foreground hover:bg-secondary/80 shadow-xs",
ghost:
"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
link: "text-primary underline-offset-4 hover:underline",
},
size: {
default: "h-9 px-4 py-2 has-[>svg]:px-3",
- sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
+ sm: "h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
icon: "size-9",
"icon-sm": "size-8",
diff --git a/packages/ui/src/components/ui/calendar.tsx b/packages/ui/src/components/ui/calendar.tsx
index 6c8079de8..069f8ab8c 100644
--- a/packages/ui/src/components/ui/calendar.tsx
+++ b/packages/ui/src/components/ui/calendar.tsx
@@ -1,12 +1,11 @@
"use client";
+import { buttonVariants } from "@openstatus/ui/components/ui/button";
+import { cn } from "@openstatus/ui/lib/utils";
import { ChevronLeft, ChevronRight } from "lucide-react";
import type * as React from "react";
import { DayPicker } from "react-day-picker";
-import { buttonVariants } from "@openstatus/ui/components/ui/button";
-import { cn } from "@openstatus/ui/lib/utils";
-
function Calendar({
className,
classNames,
@@ -35,7 +34,7 @@ function Calendar({
"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",
row: "flex w-full mt-2",
cell: cn(
- "relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-range-end)]:rounded-r-md",
+ "[&:has([aria-selected])]:bg-accent relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected].day-range-end)]:rounded-r-md",
props.mode === "range"
? "[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md"
: "[&:has([aria-selected])]:rounded-md",
diff --git a/packages/ui/src/components/ui/card.tsx b/packages/ui/src/components/ui/card.tsx
index 4a9a943a2..3c15be9ee 100644
--- a/packages/ui/src/components/ui/card.tsx
+++ b/packages/ui/src/components/ui/card.tsx
@@ -1,13 +1,12 @@
-import type * as React from "react";
-
import { cn } from "@openstatus/ui/lib/utils";
+import type * as React from "react";
function Card({ className, ...props }: React.ComponentProps<"div">) {
return (
<div
data-slot="card"
className={cn(
- "flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",
+ "bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",
className,
)}
{...props}
@@ -32,7 +31,7 @@ function CardTitle({ className, ...props }: React.ComponentProps<"div">) {
return (
<div
data-slot="card-title"
- className={cn("font-semibold leading-none", className)}
+ className={cn("leading-none font-semibold", className)}
{...props}
/>
);
diff --git a/packages/ui/src/components/ui/chart.tsx b/packages/ui/src/components/ui/chart.tsx
index 68d69b040..bdf0479f4 100644
--- a/packages/ui/src/components/ui/chart.tsx
+++ b/packages/ui/src/components/ui/chart.tsx
@@ -1,10 +1,9 @@
"use client";
+import { cn } from "@openstatus/ui/lib/utils";
import * as React from "react";
import * as RechartsPrimitive from "recharts";
-import { cn } from "@openstatus/ui/lib/utils";
-
// Format: { THEME_NAME: CSS_SELECTOR }
const THEMES = { light: "", dark: ".dark" } as const;
@@ -55,7 +54,7 @@ function ChartContainer({
data-slot="chart"
data-chart={chartId}
className={cn(
- "flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-hidden [&_.recharts-surface]:outline-hidden",
+ "[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",
className,
)}
{...props}
@@ -80,7 +79,7 @@ const ChartStyle = ({ id, config }: { id: string; config: ChartConfig }) => {
return (
<style
- // biome-ignore lint/security/noDangerouslySetInnerHtml: <explanation>
+ // oxlint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{
__html: Object.entries(THEMES)
.map(
@@ -174,7 +173,7 @@ function ChartTooltipContent({
return (
<div
className={cn(
- "grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",
+ "border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl",
className,
)}
>
@@ -189,7 +188,7 @@ function ChartTooltipContent({
<div
key={item.dataKey}
className={cn(
- "flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",
+ "[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",
indicator === "dot" && "items-center",
)}
>
@@ -234,7 +233,7 @@ function ChartTooltipContent({
</span>
</div>
{item.value && (
- <span className="font-medium font-mono text-foreground tabular-nums">
+ <span className="text-foreground font-mono font-medium tabular-nums">
{item.value.toLocaleString()}
</span>
)}
@@ -284,7 +283,7 @@ function ChartLegendContent({
<div
key={item.value}
className={cn(
- "flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground",
+ "[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3",
)}
>
{itemConfig?.icon && !hideIcon ? (
diff --git a/packages/ui/src/components/ui/checkbox.tsx b/packages/ui/src/components/ui/checkbox.tsx
index ff2799983..fc273a172 100644
--- a/packages/ui/src/components/ui/checkbox.tsx
+++ b/packages/ui/src/components/ui/checkbox.tsx
@@ -1,11 +1,10 @@
"use client";
+import { cn } from "@openstatus/ui/lib/utils";
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
import { CheckIcon } from "lucide-react";
import type * as React from "react";
-import { cn } from "@openstatus/ui/lib/utils";
-
function Checkbox({
className,
...props
@@ -14,7 +13,7 @@ function Checkbox({
<CheckboxPrimitive.Root
data-slot="checkbox"
className={cn(
- "peer size-4 shrink-0 rounded-[4px] border border-input shadow-xs outline-none transition-shadow focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:data-[state=checked]:bg-primary dark:aria-invalid:ring-destructive/40",
+ "peer border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:data-[state=checked]:bg-primary dark:aria-invalid:ring-destructive/40 size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
className,
)}
{...props}
diff --git a/packages/ui/src/components/ui/command.tsx b/packages/ui/src/components/ui/command.tsx
index e38ace0b9..6eaf050ae 100644
--- a/packages/ui/src/components/ui/command.tsx
+++ b/packages/ui/src/components/ui/command.tsx
@@ -1,9 +1,5 @@
"use client";
-import { Command as CommandPrimitive } from "cmdk";
-import { SearchIcon } from "lucide-react";
-import type * as React from "react";
-
import {
Dialog,
DialogContent,
@@ -12,6 +8,9 @@ import {
DialogTitle,
} from "@openstatus/ui/components/ui/dialog";
import { cn } from "@openstatus/ui/lib/utils";
+import { Command as CommandPrimitive } from "cmdk";
+import { SearchIcon } from "lucide-react";
+import type * as React from "react";
function Command({
className,
@@ -21,7 +20,7 @@ function Command({
<CommandPrimitive
data-slot="command"
className={cn(
- "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
+ "bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
className,
)}
{...props}
@@ -45,7 +44,7 @@ function CommandDialog({
<DialogDescription>{description}</DialogDescription>
</DialogHeader>
<DialogContent className="overflow-hidden p-0">
- <Command className="**:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5">
+ <Command className="[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5">
{children}
</Command>
</DialogContent>
@@ -66,7 +65,7 @@ function CommandInput({
<CommandPrimitive.Input
data-slot="command-input"
className={cn(
- "flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
+ "placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
className,
)}
{...props}
@@ -83,7 +82,7 @@ function CommandList({
<CommandPrimitive.List
data-slot="command-list"
className={cn(
- "max-h-[300px] scroll-py-1 overflow-y-auto overflow-x-hidden",
+ "max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",
className,
)}
{...props}
@@ -111,7 +110,7 @@ function CommandGroup({
<CommandPrimitive.Group
data-slot="command-group"
className={cn(
- "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:text-xs",
+ "text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
className,
)}
{...props}
@@ -126,7 +125,7 @@ function CommandSeparator({
return (
<CommandPrimitive.Separator
data-slot="command-separator"
- className={cn("-mx-1 h-px bg-border", className)}
+ className={cn("bg-border -mx-1 h-px", className)}
{...props}
/>
);
@@ -140,7 +139,7 @@ function CommandItem({
<CommandPrimitive.Item
data-slot="command-item"
className={cn(
- "relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0",
+ "data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
className,
)}
{...props}
@@ -156,7 +155,7 @@ function CommandShortcut({
<span
data-slot="command-shortcut"
className={cn(
- "ml-auto text-muted-foreground text-xs tracking-widest",
+ "text-muted-foreground ml-auto text-xs tracking-widest",
className,
)}
{...props}
diff --git a/packages/ui/src/components/ui/context-menu.tsx b/packages/ui/src/components/ui/context-menu.tsx
index 9af7570c7..b87058c6b 100644
--- a/packages/ui/src/components/ui/context-menu.tsx
+++ b/packages/ui/src/components/ui/context-menu.tsx
@@ -1,11 +1,10 @@
"use client";
+import { cn } from "@openstatus/ui/lib/utils";
import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
import { Check, ChevronRight, Circle } from "lucide-react";
import * as React from "react";
-import { cn } from "@openstatus/ui/lib/utils";
-
const ContextMenu = ContextMenuPrimitive.Root;
const ContextMenuTrigger = ContextMenuPrimitive.Trigger;
@@ -27,7 +26,7 @@ const ContextMenuSubTrigger = React.forwardRef<
<ContextMenuPrimitive.SubTrigger
ref={ref}
className={cn(
- "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden",
+ "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none",
inset && "pl-8",
className,
)}
@@ -80,7 +79,7 @@ const ContextMenuItem = React.forwardRef<
<ContextMenuPrimitive.Item
ref={ref}
className={cn(
- "focus:bg-accent focus:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden data-disabled:pointer-events-none data-disabled:opacity-50",
+ "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50",
inset && "pl-8",
className,
)}
@@ -96,7 +95,7 @@ const ContextMenuCheckboxItem = React.forwardRef<
<ContextMenuPrimitive.CheckboxItem
ref={ref}
className={cn(
- "focus:bg-accent focus:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden data-disabled:pointer-events-none data-disabled:opacity-50",
+ "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50",
className,
)}
checked={checked}
@@ -120,7 +119,7 @@ const ContextMenuRadioItem = React.forwardRef<
<ContextMenuPrimitive.RadioItem
ref={ref}
className={cn(
- "focus:bg-accent focus:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden data-disabled:pointer-events-none data-disabled:opacity-50",
+ "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50",
className,
)}
{...props}
diff --git a/packages/ui/src/components/ui/dialog.tsx b/packages/ui/src/components/ui/dialog.tsx
index a2a017d02..dcb8c826d 100644
--- a/packages/ui/src/components/ui/dialog.tsx
+++ b/packages/ui/src/components/ui/dialog.tsx
@@ -1,11 +1,10 @@
"use client";
+import { cn } from "@openstatus/ui/lib/utils";
import * as DialogPrimitive from "@radix-ui/react-dialog";
import { XIcon } from "lucide-react";
import type * as React from "react";
-import { cn } from "@openstatus/ui/lib/utils";
-
function Dialog({
...props
}: React.ComponentProps<typeof DialogPrimitive.Root>) {
@@ -38,7 +37,7 @@ function DialogOverlay({
<DialogPrimitive.Overlay
data-slot="dialog-overlay"
className={cn(
- "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",
+ "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=open]:animate-in fixed inset-0 z-50 bg-black/50",
className,
)}
{...props}
@@ -57,13 +56,13 @@ function DialogContent({
<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",
+ "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 bg-background data-[state=closed]:animate-out data-[state=open]:animate-in 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 p-6 shadow-lg duration-200 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">
+ <DialogPrimitive.Close className="ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4">
<XIcon />
<span className="sr-only">Close</span>
</DialogPrimitive.Close>
@@ -102,7 +101,7 @@ function DialogTitle({
return (
<DialogPrimitive.Title
data-slot="dialog-title"
- className={cn("font-semibold text-lg leading-none", className)}
+ className={cn("text-lg leading-none font-semibold", className)}
{...props}
/>
);
diff --git a/packages/ui/src/components/ui/drawer.tsx b/packages/ui/src/components/ui/drawer.tsx
index 475173bd9..f72db2954 100644
--- a/packages/ui/src/components/ui/drawer.tsx
+++ b/packages/ui/src/components/ui/drawer.tsx
@@ -1,10 +1,9 @@
"use client";
+import { cn } from "@openstatus/ui/lib/utils";
import type * as React from "react";
import { Drawer as DrawerPrimitive } from "vaul";
-import { cn } from "@openstatus/ui/lib/utils";
-
function Drawer({
...props
}: React.ComponentProps<typeof DrawerPrimitive.Root>) {
@@ -37,7 +36,7 @@ function DrawerOverlay({
<DrawerPrimitive.Overlay
data-slot="drawer-overlay"
className={cn(
- "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",
+ "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=open]:animate-in fixed inset-0 z-50 bg-black/50",
className,
)}
{...props}
@@ -56,7 +55,7 @@ function DrawerContent({
<DrawerPrimitive.Content
data-slot="drawer-content"
className={cn(
- "group/drawer-content fixed z-50 flex h-auto flex-col bg-background",
+ "group/drawer-content bg-background fixed z-50 flex h-auto flex-col",
"data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b",
"data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t",
"data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm",
@@ -65,7 +64,7 @@ function DrawerContent({
)}
{...props}
>
- <div className="mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full bg-muted group-data-[vaul-drawer-direction=bottom]/drawer-content:block" />
+ <div className="bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" />
{children}
</DrawerPrimitive.Content>
</DrawerPortal>
@@ -102,7 +101,7 @@ function DrawerTitle({
return (
<DrawerPrimitive.Title
data-slot="drawer-title"
- className={cn("font-semibold text-foreground", className)}
+ className={cn("text-foreground font-semibold", className)}
{...props}
/>
);
diff --git a/packages/ui/src/components/ui/dropdown-menu.tsx b/packages/ui/src/components/ui/dropdown-menu.tsx
index d86ba7fef..f4b5523fd 100644
--- a/packages/ui/src/components/ui/dropdown-menu.tsx
+++ b/packages/ui/src/components/ui/dropdown-menu.tsx
@@ -1,11 +1,10 @@
"use client";
+import { cn } from "@openstatus/ui/lib/utils";
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
import type * as React from "react";
-import { cn } from "@openstatus/ui/lib/utils";
-
function DropdownMenu({
...props
}: React.ComponentProps<typeof DropdownMenuPrimitive.Root>) {
@@ -42,7 +41,7 @@ function DropdownMenuContent({
data-slot="dropdown-menu-content"
sideOffset={sideOffset}
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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in",
+ "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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 bg-popover text-popover-foreground data-[state=closed]:animate-out data-[state=open]:animate-in z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
className,
)}
{...props}
@@ -74,7 +73,7 @@ function DropdownMenuItem({
data-inset={inset}
data-variant={variant}
className={cn(
- "data-[variant=destructive]:*:[svg]:!text-destructive relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[disabled]:opacity-50 data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0",
+ "data-[variant=destructive]:*:[svg]:!text-destructive focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
className,
)}
{...props}
@@ -92,7 +91,7 @@ function DropdownMenuCheckboxItem({
<DropdownMenuPrimitive.CheckboxItem
data-slot="dropdown-menu-checkbox-item"
className={cn(
- "relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
+ "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
className,
)}
checked={checked}
@@ -128,7 +127,7 @@ function DropdownMenuRadioItem({
<DropdownMenuPrimitive.RadioItem
data-slot="dropdown-menu-radio-item"
className={cn(
- "relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
+ "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
className,
)}
{...props}
@@ -155,7 +154,7 @@ function DropdownMenuLabel({
data-slot="dropdown-menu-label"
data-inset={inset}
className={cn(
- "px-2 py-1.5 font-medium text-sm data-[inset]:pl-8",
+ "px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
className,
)}
{...props}
@@ -170,7 +169,7 @@ function DropdownMenuSeparator({
return (
<DropdownMenuPrimitive.Separator
data-slot="dropdown-menu-separator"
- className={cn("-mx-1 my-1 h-px bg-border", className)}
+ className={cn("bg-border -mx-1 my-1 h-px", className)}
{...props}
/>
);
@@ -184,7 +183,7 @@ function DropdownMenuShortcut({
<span
data-slot="dropdown-menu-shortcut"
className={cn(
- "ml-auto text-muted-foreground text-xs tracking-widest",
+ "text-muted-foreground ml-auto text-xs tracking-widest",
className,
)}
{...props}
@@ -211,7 +210,7 @@ function DropdownMenuSubTrigger({
data-slot="dropdown-menu-sub-trigger"
data-inset={inset}
className={cn(
- "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[inset]:pl-8 data-[state=open]:text-accent-foreground",
+ "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",
className,
)}
{...props}
@@ -230,7 +229,7 @@ function DropdownMenuSubContent({
<DropdownMenuPrimitive.SubContent
data-slot="dropdown-menu-sub-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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=closed]:animate-out data-[state=open]:animate-in",
+ "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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 bg-popover text-popover-foreground data-[state=closed]:animate-out data-[state=open]:animate-in z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
className,
)}
{...props}
diff --git a/packages/ui/src/components/ui/form.tsx b/packages/ui/src/components/ui/form.tsx
index 7398087fc..a5f88f4ba 100644
--- a/packages/ui/src/components/ui/form.tsx
+++ b/packages/ui/src/components/ui/form.tsx
@@ -1,5 +1,7 @@
"use client";
+import { Label } from "@openstatus/ui/components/ui/label";
+import { cn } from "@openstatus/ui/lib/utils";
import type * as LabelPrimitive from "@radix-ui/react-label";
import { Slot } from "@radix-ui/react-slot";
import * as React from "react";
@@ -13,9 +15,6 @@ import {
useFormState,
} from "react-hook-form";
-import { Label } from "@openstatus/ui/components/ui/label";
-import { cn } from "@openstatus/ui/lib/utils";
-
const Form = FormProvider;
type FormFieldContextValue<
diff --git a/packages/ui/src/components/ui/hover-card.tsx b/packages/ui/src/components/ui/hover-card.tsx
index a9e1d7df7..8bd861431 100644
--- a/packages/ui/src/components/ui/hover-card.tsx
+++ b/packages/ui/src/components/ui/hover-card.tsx
@@ -1,10 +1,9 @@
"use client";
+import { cn } from "@openstatus/ui/lib/utils";
import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
import type * as React from "react";
-import { cn } from "@openstatus/ui/lib/utils";
-
function HoverCard({
...props
}: React.ComponentProps<typeof HoverCardPrimitive.Root>) {
@@ -32,7 +31,9 @@ function HoverCardContent({
* (e.g. a status-page preview that overrides `--radius` and other CSS vars
* on a wrapper) so portaled content inherits the same context.
*/
- container?: React.ComponentProps<typeof HoverCardPrimitive.Portal>["container"];
+ container?: React.ComponentProps<
+ typeof HoverCardPrimitive.Portal
+ >["container"];
}) {
return (
<HoverCardPrimitive.Portal
@@ -44,7 +45,7 @@ function HoverCardContent({
align={align}
sideOffset={sideOffset}
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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[state=closed]:animate-out data-[state=open]:animate-in",
+ "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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 bg-popover text-popover-foreground data-[state=closed]:animate-out data-[state=open]:animate-in z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
className,
)}
{...props}
diff --git a/packages/ui/src/components/ui/input-group.tsx b/packages/ui/src/components/ui/input-group.tsx
index 78998d8a1..3aea7e28c 100644
--- a/packages/ui/src/components/ui/input-group.tsx
+++ b/packages/ui/src/components/ui/input-group.tsx
@@ -1,12 +1,11 @@
"use client";
-import { type VariantProps, cva } from "class-variance-authority";
-import type * as React from "react";
-
import { Button } from "@openstatus/ui/components/ui/button";
import { Input } from "@openstatus/ui/components/ui/input";
import { Textarea } from "@openstatus/ui/components/ui/textarea";
import { cn } from "@openstatus/ui/lib/utils";
+import { type VariantProps, cva } from "class-variance-authority";
+import type * as React from "react";
function InputGroup({ className, ...props }: React.ComponentProps<"div">) {
return (
@@ -14,7 +13,7 @@ function InputGroup({ className, ...props }: React.ComponentProps<"div">) {
data-slot="input-group"
role="group"
className={cn(
- "group/input-group relative flex w-full items-center rounded-md border border-input shadow-xs outline-none transition-[color,box-shadow] dark:bg-input/30",
+ "group/input-group border-input dark:bg-input/30 relative flex w-full items-center rounded-md border shadow-xs transition-[color,box-shadow] outline-none",
"h-9 min-w-0 has-[>textarea]:h-auto",
// Variants based on alignment.
@@ -24,7 +23,7 @@ function InputGroup({ className, ...props }: React.ComponentProps<"div">) {
"has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3",
// Focus state.
- "has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50",
+ "has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot=input-group-control]:focus-visible]:ring-[3px]",
// Error state.
"has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-destructive/20 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40",
@@ -37,7 +36,7 @@ function InputGroup({ className, ...props }: React.ComponentProps<"div">) {
}
const inputGroupAddonVariants = cva(
- "text-muted-foreground flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium select-none [&>svg:not([class*='size-'])]:size-4 [&>kbd]:rounded-[calc(var(--radius)-5px)] group-data-[disabled=true]/input-group:opacity-50",
+ "text-muted-foreground flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",
{
variants: {
align: {
@@ -46,9 +45,9 @@ const inputGroupAddonVariants = cva(
"inline-end":
"order-last pr-3 has-[>button]:mr-[-0.45rem] has-[>kbd]:mr-[-0.35rem]",
"block-start":
- "order-first w-full justify-start px-3 pt-3 [.border-b]:pb-3 group-has-[>input]/input-group:pt-2.5",
+ "order-first w-full justify-start px-3 pt-3 group-has-[>input]/input-group:pt-2.5 [.border-b]:pb-3",
"block-end":
- "order-last w-full justify-start px-3 pb-3 [.border-t]:pt-3 group-has-[>input]/input-group:pb-2.5",
+ "order-last w-full justify-start px-3 pb-3 group-has-[>input]/input-group:pb-2.5 [.border-t]:pt-3",
},
},
defaultVariants: {
@@ -80,12 +79,12 @@ function InputGroupAddon({
}
const inputGroupButtonVariants = cva(
- "text-sm shadow-none flex gap-2 items-center",
+ "flex items-center gap-2 text-sm shadow-none",
{
variants: {
size: {
- xs: "h-6 gap-1 px-2 rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-3.5 has-[>svg]:px-2",
- sm: "h-8 px-2.5 gap-1.5 rounded-md has-[>svg]:px-2.5",
+ xs: "h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-2 has-[>svg]:px-2 [&>svg:not([class*='size-'])]:size-3.5",
+ sm: "h-8 gap-1.5 rounded-md px-2.5 has-[>svg]:px-2.5",
"icon-xs":
"size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0",
"icon-sm": "size-8 p-0 has-[>svg]:p-0",
@@ -120,7 +119,7 @@ function InputGroupText({ className, ...props }: React.ComponentProps<"span">) {
return (
<span
className={cn(
- "flex items-center gap-2 text-muted-foreground text-sm [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none",
+ "text-muted-foreground flex items-center gap-2 text-sm [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",
className,
)}
{...props}
diff --git a/packages/ui/src/components/ui/input.tsx b/packages/ui/src/components/ui/input.tsx
index 8d48e608a..27ca12eec 100644
--- a/packages/ui/src/components/ui/input.tsx
+++ b/packages/ui/src/components/ui/input.tsx
@@ -1,6 +1,5 @@
-import type * as React from "react";
-
import { cn } from "@openstatus/ui/lib/utils";
+import type * as React from "react";
function Input({ className, type, ...props }: React.ComponentProps<"input">) {
return (
@@ -8,8 +7,8 @@ function Input({ className, type, ...props }: React.ComponentProps<"input">) {
type={type}
data-slot="input"
className={cn(
- "flex h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs outline-none transition-[color,box-shadow] selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:font-medium file:text-foreground file:text-sm placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30",
- "focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",
+ "border-input selection:bg-primary selection:text-primary-foreground file:text-foreground placeholder:text-muted-foreground dark:bg-input/30 flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
+ "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
"aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",
className,
)}
diff --git a/packages/ui/src/components/ui/kbd.tsx b/packages/ui/src/components/ui/kbd.tsx
index a217e149c..8c46b89cd 100644
--- a/packages/ui/src/components/ui/kbd.tsx
+++ b/packages/ui/src/components/ui/kbd.tsx
@@ -1,4 +1,4 @@
-import { cn } from "@openstatus/ui/lib/utils"
+import { cn } from "@openstatus/ui/lib/utils";
function Kbd({ className, ...props }: React.ComponentProps<"kbd">) {
return (
@@ -8,11 +8,11 @@ function Kbd({ className, ...props }: React.ComponentProps<"kbd">) {
"bg-muted text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm px-1 font-sans text-xs font-medium select-none",
"[&_svg:not([class*='size-'])]:size-3",
"[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10",
- className
+ className,
)}
{...props}
/>
- )
+ );
}
function KbdGroup({ className, ...props }: React.ComponentProps<"div">) {
@@ -22,7 +22,7 @@ function KbdGroup({ className, ...props }: React.ComponentProps<"div">) {
className={cn("inline-flex items-center gap-1", className)}
{...props}
/>
- )
+ );
}
-export { Kbd, KbdGroup }
+export { Kbd, KbdGroup };
diff --git a/packages/ui/src/components/ui/label.tsx b/packages/ui/src/components/ui/label.tsx
index 7683c786f..1799c632b 100644
--- a/packages/ui/src/components/ui/label.tsx
+++ b/packages/ui/src/components/ui/label.tsx
@@ -1,10 +1,9 @@
"use client";
+import { cn } from "@openstatus/ui/lib/utils";
import * as LabelPrimitive from "@radix-ui/react-label";
import type * as React from "react";
-import { cn } from "@openstatus/ui/lib/utils";
-
function Label({
className,
...props
@@ -13,7 +12,7 @@ function Label({
<LabelPrimitive.Root
data-slot="label"
className={cn(
- "flex select-none items-center gap-2 font-medium text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50 group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50",
+ "flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
className,
)}
{...props}
diff --git a/packages/ui/src/components/ui/popover.tsx b/packages/ui/src/components/ui/popover.tsx
index c4eaa3a1d..01dd5f5b5 100644
--- a/packages/ui/src/components/ui/popover.tsx
+++ b/packages/ui/src/components/ui/popover.tsx
@@ -1,10 +1,9 @@
"use client";
+import { cn } from "@openstatus/ui/lib/utils";
import * as PopoverPrimitive from "@radix-ui/react-popover";
import type * as React from "react";
-import { cn } from "@openstatus/ui/lib/utils";
-
function Popover({
...props
}: React.ComponentProps<typeof PopoverPrimitive.Root>) {
@@ -30,7 +29,7 @@ function PopoverContent({
align={align}
sideOffset={sideOffset}
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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[state=closed]:animate-out data-[state=open]:animate-in",
+ "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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 bg-popover text-popover-foreground data-[state=closed]:animate-out data-[state=open]:animate-in z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
className,
)}
{...props}
diff --git a/packages/ui/src/components/ui/progress.tsx b/packages/ui/src/components/ui/progress.tsx
index ea08f5c28..306eb53c7 100644
--- a/packages/ui/src/components/ui/progress.tsx
+++ b/packages/ui/src/components/ui/progress.tsx
@@ -1,10 +1,9 @@
"use client";
+import { cn } from "@openstatus/ui/lib/utils";
import * as ProgressPrimitive from "@radix-ui/react-progress";
import type * as React from "react";
-import { cn } from "@openstatus/ui/lib/utils";
-
function Progress({
className,
value,
@@ -14,14 +13,14 @@ function Progress({
<ProgressPrimitive.Root
data-slot="progress"
className={cn(
- "relative h-2 w-full overflow-hidden rounded-full bg-primary/20",
+ "bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",
className,
)}
{...props}
>
<ProgressPrimitive.Indicator
data-slot="progress-indicator"
- className="h-full w-full flex-1 bg-primary transition-all"
+ className="bg-primary h-full w-full flex-1 transition-all"
style={{ transform: `translateX(-${100 - (value || 0)}%)` }}
/>
</ProgressPrimitive.Root>
diff --git a/packages/ui/src/components/ui/qr-code.tsx b/packages/ui/src/components/ui/qr-code.tsx
index 0ad8d0e1d..2f4a18977 100644
--- a/packages/ui/src/components/ui/qr-code.tsx
+++ b/packages/ui/src/components/ui/qr-code.tsx
@@ -1,10 +1,8 @@
"use client";
-import { useEffect, useRef, useState } from "react";
-import QRCodeStyling, {
- type Options as QRCodeOptions,
-} from "qr-code-styling";
import { cn } from "@openstatus/ui/lib/utils";
+import QRCodeStyling, { type Options as QRCodeOptions } from "qr-code-styling";
+import { useEffect, useRef, useState } from "react";
export interface QRCodeProps {
data: string;
diff --git a/packages/ui/src/components/ui/radio-group.tsx b/packages/ui/src/components/ui/radio-group.tsx
index b2e1e068d..162c976b5 100644
--- a/packages/ui/src/components/ui/radio-group.tsx
+++ b/packages/ui/src/components/ui/radio-group.tsx
@@ -1,11 +1,10 @@
"use client";
+import { cn } from "@openstatus/ui/lib/utils";
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
import { CircleIcon } from "lucide-react";
import type * as React from "react";
-import { cn } from "@openstatus/ui/lib/utils";
-
function RadioGroup({
className,
...props
@@ -27,7 +26,7 @@ function RadioGroupItem({
<RadioGroupPrimitive.Item
data-slot="radio-group-item"
className={cn(
- "aspect-square size-4 shrink-0 rounded-full border border-input text-primary shadow-xs outline-none transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:aria-invalid:ring-destructive/40",
+ "border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:aria-invalid:ring-destructive/40 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
className,
)}
{...props}
@@ -36,7 +35,7 @@ function RadioGroupItem({
data-slot="radio-group-indicator"
className="relative flex items-center justify-center"
>
- <CircleIcon className="-translate-x-1/2 -translate-y-1/2 absolute top-1/2 left-1/2 size-2 fill-primary" />
+ <CircleIcon className="fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" />
</RadioGroupPrimitive.Indicator>
</RadioGroupPrimitive.Item>
);
diff --git a/packages/ui/src/components/ui/scroll-area.tsx b/packages/ui/src/components/ui/scroll-area.tsx
index b069f4c65..613c95c9d 100644
--- a/packages/ui/src/components/ui/scroll-area.tsx
+++ b/packages/ui/src/components/ui/scroll-area.tsx
@@ -1,10 +1,9 @@
"use client";
+import { cn } from "@openstatus/ui/lib/utils";
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
import * as React from "react";
-import { cn } from "@openstatus/ui/lib/utils";
-
function ScrollArea({
className,
children,
@@ -18,7 +17,7 @@ function ScrollArea({
>
<ScrollAreaPrimitive.Viewport
data-slot="scroll-area-viewport"
- className="size-full rounded-[inherit] outline-none transition-[color,box-shadow] focus-visible:outline-1 focus-visible:ring-[3px] focus-visible:ring-ring/50"
+ className="focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1"
>
{children}
</ScrollAreaPrimitive.Viewport>
@@ -38,7 +37,7 @@ function ScrollBar({
data-slot="scroll-area-scrollbar"
orientation={orientation}
className={cn(
- "flex touch-none select-none p-px transition-colors",
+ "flex touch-none p-px transition-colors select-none",
orientation === "vertical" &&
"h-full w-2.5 border-l border-l-transparent",
orientation === "horizontal" &&
@@ -49,7 +48,7 @@ function ScrollBar({
>
<ScrollAreaPrimitive.ScrollAreaThumb
data-slot="scroll-area-thumb"
- className="relative flex-1 rounded-full bg-border"
+ className="bg-border relative flex-1 rounded-full"
/>
</ScrollAreaPrimitive.ScrollAreaScrollbar>
);
diff --git a/packages/ui/src/components/ui/select.tsx b/packages/ui/src/components/ui/select.tsx
index ebe403792..589501dc8 100644
--- a/packages/ui/src/components/ui/select.tsx
+++ b/packages/ui/src/components/ui/select.tsx
@@ -1,11 +1,10 @@
"use client";
+import { cn } from "@openstatus/ui/lib/utils";
import * as SelectPrimitive from "@radix-ui/react-select";
import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
import type * as React from "react";
-import { cn } from "@openstatus/ui/lib/utils";
-
function Select({
...props
}: React.ComponentProps<typeof SelectPrimitive.Root>) {
@@ -37,7 +36,7 @@ function SelectTrigger({
data-slot="select-trigger"
data-size={size}
className={cn(
- "flex w-fit items-center justify-between gap-2 whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-xs outline-none transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[size=default]:h-9 data-[size=sm]:h-8 data-[placeholder]:text-muted-foreground *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:hover:bg-input/50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0",
+ "border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:hover:bg-input/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
className,
)}
{...props}
@@ -61,9 +60,9 @@ function SelectContent({
<SelectPrimitive.Content
data-slot="select-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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in",
+ "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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 bg-popover text-popover-foreground data-[state=closed]:animate-out data-[state=open]:animate-in relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
position === "popper" &&
- "data-[side=left]:-translate-x-1 data-[side=top]:-translate-y-1 data-[side=right]:translate-x-1 data-[side=bottom]:translate-y-1",
+ "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
className,
)}
position={position}
@@ -92,7 +91,7 @@ function SelectLabel({
return (
<SelectPrimitive.Label
data-slot="select-label"
- className={cn("px-2 py-1.5 text-muted-foreground text-xs", className)}
+ className={cn("text-muted-foreground px-2 py-1.5 text-xs", className)}
{...props}
/>
);
@@ -107,7 +106,7 @@ function SelectItem({
<SelectPrimitive.Item
data-slot="select-item"
className={cn(
- "relative flex w-full cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
+ "focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
className,
)}
{...props}
@@ -129,7 +128,7 @@ function SelectSeparator({
return (
<SelectPrimitive.Separator
data-slot="select-separator"
- className={cn("-mx-1 pointer-events-none my-1 h-px bg-border", className)}
+ className={cn("bg-border pointer-events-none -mx-1 my-1 h-px", className)}
{...props}
/>
);
diff --git a/packages/ui/src/components/ui/separator.tsx b/packages/ui/src/components/ui/separator.tsx
index 8f020076d..47182c731 100644
--- a/packages/ui/src/components/ui/separator.tsx
+++ b/packages/ui/src/components/ui/separator.tsx
@@ -1,10 +1,9 @@
"use client";
+import { cn } from "@openstatus/ui/lib/utils";
import * as SeparatorPrimitive from "@radix-ui/react-separator";
import type * as React from "react";
-import { cn } from "@openstatus/ui/lib/utils";
-
function Separator({
className,
orientation = "horizontal",
@@ -17,7 +16,7 @@ function Separator({
decorative={decorative}
orientation={orientation}
className={cn(
- "shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px",
+ "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
className,
)}
{...props}
diff --git a/packages/ui/src/components/ui/sheet.tsx b/packages/ui/src/components/ui/sheet.tsx
index d673e24d5..ba464ecfe 100644
--- a/packages/ui/src/components/ui/sheet.tsx
+++ b/packages/ui/src/components/ui/sheet.tsx
@@ -1,11 +1,10 @@
"use client";
+import { cn } from "@openstatus/ui/lib/utils";
import * as SheetPrimitive from "@radix-ui/react-dialog";
import { XIcon } from "lucide-react";
import type * as React from "react";
-import { cn } from "@openstatus/ui/lib/utils";
-
function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>) {
return <SheetPrimitive.Root data-slot="sheet" {...props} />;
}
@@ -36,7 +35,7 @@ function SheetOverlay({
<SheetPrimitive.Overlay
data-slot="sheet-overlay"
className={cn(
- "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",
+ "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=open]:animate-in fixed inset-0 z-50 bg-black/50",
className,
)}
{...props}
@@ -58,7 +57,7 @@ function SheetContent({
<SheetPrimitive.Content
data-slot="sheet-content"
className={cn(
- "fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=open]:animate-in data-[state=closed]:duration-300 data-[state=open]:duration-500",
+ "bg-background data-[state=closed]:animate-out data-[state=open]:animate-in fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
side === "right" &&
"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
side === "left" &&
@@ -72,7 +71,7 @@ function SheetContent({
{...props}
>
{children}
- <SheetPrimitive.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-secondary">
+ <SheetPrimitive.Close className="ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none">
<XIcon className="size-4" />
<span className="sr-only">Close</span>
</SheetPrimitive.Close>
@@ -108,7 +107,7 @@ function SheetTitle({
return (
<SheetPrimitive.Title
data-slot="sheet-title"
- className={cn("font-semibold text-foreground", className)}
+ className={cn("text-foreground font-semibold", className)}
{...props}
/>
);
diff --git a/packages/ui/src/components/ui/sidebar.tsx b/packages/ui/src/components/ui/sidebar.tsx
index 765228290..4972fbd79 100644
--- a/packages/ui/src/components/ui/sidebar.tsx
+++ b/packages/ui/src/components/ui/sidebar.tsx
@@ -1,10 +1,5 @@
"use client";
-import { Slot } from "@radix-ui/react-slot";
-import { type VariantProps, cva } from "class-variance-authority";
-import { PanelLeftIcon } from "lucide-react";
-import * as React from "react";
-
import { Button } from "@openstatus/ui/components/ui/button";
import { Input } from "@openstatus/ui/components/ui/input";
import { Separator } from "@openstatus/ui/components/ui/separator";
@@ -24,6 +19,10 @@ import {
} from "@openstatus/ui/components/ui/tooltip";
import { useIsMobile } from "@openstatus/ui/hooks/use-mobile";
import { cn } from "@openstatus/ui/lib/utils";
+import { Slot } from "@radix-ui/react-slot";
+import { type VariantProps, cva } from "class-variance-authority";
+import { PanelLeftIcon } from "lucide-react";
+import * as React from "react";
const SIDEBAR_COOKIE_NAME = "sidebar_state";
const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
@@ -92,7 +91,6 @@ function SidebarProvider({
);
// Helper to toggle the sidebar.
- // biome-ignore lint/correctness/useExhaustiveDependencies: <explanation>
const toggleSidebar = React.useCallback(() => {
return isMobile ? setOpenMobile((open) => !open) : setOpen((open) => !open);
}, [isMobile, setOpen, setOpenMobile]);
@@ -117,7 +115,6 @@ function SidebarProvider({
// This makes it easier to style the sidebar with Tailwind classes.
const state = open ? "expanded" : "collapsed";
- // biome-ignore lint/correctness/useExhaustiveDependencies: <explanation>
const contextValue = React.useMemo<SidebarContextProps>(
() => ({
state,
@@ -144,7 +141,7 @@ function SidebarProvider({
} as React.CSSProperties
}
className={cn(
- "group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",
+ "group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",
className,
)}
{...props}
@@ -175,7 +172,7 @@ function Sidebar({
<div
data-slot="sidebar"
className={cn(
- "flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",
+ "bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",
className,
)}
{...props}
@@ -192,7 +189,7 @@ function Sidebar({
data-sidebar="sidebar"
data-slot="sidebar"
data-mobile="true"
- className="w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden"
+ className="bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden"
style={
{
"--sidebar-width": SIDEBAR_WIDTH_MOBILE,
@@ -212,7 +209,7 @@ function Sidebar({
return (
<div
- className="group peer hidden text-sidebar-foreground md:block"
+ className="group peer text-sidebar-foreground hidden md:block"
data-state={state}
data-collapsible={state === "collapsed" ? collapsible : ""}
data-variant={variant}
@@ -249,7 +246,7 @@ function Sidebar({
<div
data-sidebar="sidebar"
data-slot="sidebar-inner"
- className="flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm"
+ className="bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm"
>
{children}
</div>
@@ -296,10 +293,10 @@ function SidebarRail({ className, ...props }: React.ComponentProps<"button">) {
onClick={toggleSidebar}
title="Toggle Sidebar"
className={cn(
- "-translate-x-1/2 group-data-[side=left]:-right-4 absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=right]:left-0 sm:flex",
+ "hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex",
"in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
- "group-data-[collapsible=offcanvas]:translate-x-0 hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:after:left-full",
+ "hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full",
"[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",
"[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",
className,
@@ -314,8 +311,8 @@ function SidebarInset({ className, ...props }: React.ComponentProps<"main">) {
<main
data-slot="sidebar-inset"
className={cn(
- "relative flex w-full flex-1 flex-col bg-background",
- "md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",
+ "bg-background relative flex w-full flex-1 flex-col",
+ "md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",
className,
)}
{...props}
@@ -331,7 +328,7 @@ function SidebarInput({
<Input
data-slot="sidebar-input"
data-sidebar="input"
- className={cn("h-8 w-full bg-background shadow-none", className)}
+ className={cn("bg-background h-8 w-full shadow-none", className)}
{...props}
/>
);
@@ -367,7 +364,7 @@ function SidebarSeparator({
<Separator
data-slot="sidebar-separator"
data-sidebar="separator"
- className={cn("mx-2 w-auto bg-sidebar-border", className)}
+ className={cn("bg-sidebar-border mx-2 w-auto", className)}
{...props}
/>
);
@@ -410,7 +407,7 @@ function SidebarGroupLabel({
data-slot="sidebar-group-label"
data-sidebar="group-label"
className={cn(
- "flex h-8 shrink-0 items-center rounded-md px-2 font-medium text-sidebar-foreground/70 text-xs outline-hidden ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
+ "text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
className,
)}
@@ -431,9 +428,9 @@ function SidebarGroupAction({
data-slot="sidebar-group-action"
data-sidebar="group-action"
className={cn(
- "absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
+ "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
// Increases the hit area of the button on mobile.
- "after:-inset-2 after:absolute md:after:hidden",
+ "after:absolute after:-inset-2 md:after:hidden",
"group-data-[collapsible=icon]:hidden",
className,
)}
@@ -479,13 +476,13 @@ function SidebarMenuItem({ className, ...props }: React.ComponentProps<"li">) {
}
const sidebarMenuButtonVariants = cva(
- "peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
+ "peer/menu-button ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:font-medium [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
{
variants: {
variant: {
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
outline:
- "bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]",
+ "bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]",
},
size: {
default: "h-8 text-sm",
@@ -566,15 +563,15 @@ function SidebarMenuAction({
data-slot="sidebar-menu-action"
data-sidebar="menu-action"
className={cn(
- "absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0",
+ "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
// Increases the hit area of the button on mobile.
- "after:-inset-2 after:absolute md:after:hidden",
+ "after:absolute after:-inset-2 md:after:hidden",
"peer-data-[size=sm]/menu-button:top-1",
"peer-data-[size=default]/menu-button:top-1.5",
"peer-data-[size=lg]/menu-button:top-2.5",
"group-data-[collapsible=icon]:hidden",
showOnHover &&
- "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",
+ "peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",
className,
)}
{...props}
@@ -591,7 +588,7 @@ function SidebarMenuBadge({
data-slot="sidebar-menu-badge"
data-sidebar="menu-badge"
className={cn(
- "pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 font-medium text-sidebar-foreground text-xs tabular-nums",
+ "text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none",
"peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
"peer-data-[size=sm]/menu-button:top-1",
"peer-data-[size=default]/menu-button:top-1.5",
@@ -648,7 +645,7 @@ function SidebarMenuSub({ className, ...props }: React.ComponentProps<"ul">) {
data-slot="sidebar-menu-sub"
data-sidebar="menu-sub"
className={cn(
- "mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-sidebar-border border-l px-2.5 py-0.5",
+ "border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5",
"group-data-[collapsible=icon]:hidden",
className,
)}
@@ -691,7 +688,7 @@ function SidebarMenuSubButton({
data-size={size}
data-active={isActive}
className={cn(
- "-translate-x-px flex h-7 min-w-0 items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-hidden ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground",
+ "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
"data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
size === "sm" && "text-xs",
size === "md" && "text-sm",
diff --git a/packages/ui/src/components/ui/skeleton.tsx b/packages/ui/src/components/ui/skeleton.tsx
index eccaae7e2..9ce7bc191 100644
--- a/packages/ui/src/components/ui/skeleton.tsx
+++ b/packages/ui/src/components/ui/skeleton.tsx
@@ -4,7 +4,7 @@ function Skeleton({ className, ...props }: React.ComponentProps<"div">) {
return (
<div
data-slot="skeleton"
- className={cn("animate-pulse rounded-md bg-accent", className)}
+ className={cn("bg-accent animate-pulse rounded-md", className)}
{...props}
/>
);
diff --git a/packages/ui/src/components/ui/slider.tsx b/packages/ui/src/components/ui/slider.tsx
index 849bea47f..707a9f1e9 100644
--- a/packages/ui/src/components/ui/slider.tsx
+++ b/packages/ui/src/components/ui/slider.tsx
@@ -1,10 +1,9 @@
"use client";
+import { cn } from "@openstatus/ui/lib/utils";
import * as SliderPrimitive from "@radix-ui/react-slider";
import * as React from "react";
-import { cn } from "@openstatus/ui/lib/utils";
-
function Slider({
className,
defaultValue,
@@ -31,7 +30,7 @@ function Slider({
min={min}
max={max}
className={cn(
- "relative flex w-full touch-none select-none items-center data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col data-[disabled]:opacity-50",
+ "relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",
className,
)}
{...props}
@@ -39,13 +38,13 @@ function Slider({
<SliderPrimitive.Track
data-slot="slider-track"
className={cn(
- "relative grow overflow-hidden rounded-full bg-muted data-[orientation=horizontal]:h-1.5 data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-1.5",
+ "bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5",
)}
>
<SliderPrimitive.Range
data-slot="slider-range"
className={cn(
- "absolute bg-primary data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full",
+ "bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full",
)}
/>
</SliderPrimitive.Track>
@@ -53,7 +52,7 @@ function Slider({
<SliderPrimitive.Thumb
data-slot="slider-thumb"
key={index}
- className="block size-4 shrink-0 rounded-full border border-primary bg-background shadow-sm ring-ring/50 transition-[color,box-shadow] hover:ring-4 focus-visible:outline-hidden focus-visible:ring-4 disabled:pointer-events-none disabled:opacity-50"
+ className="border-primary bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
/>
))}
</SliderPrimitive.Root>
diff --git a/packages/ui/src/components/ui/spinner.tsx b/packages/ui/src/components/ui/spinner.tsx
index 89bb20a6b..a5cdc09ab 100644
--- a/packages/ui/src/components/ui/spinner.tsx
+++ b/packages/ui/src/components/ui/spinner.tsx
@@ -1,6 +1,5 @@
-import { Loader2Icon } from "lucide-react";
-
import { cn } from "@openstatus/ui/lib/utils";
+import { Loader2Icon } from "lucide-react";
function Spinner({ className, ...props }: React.ComponentProps<"svg">) {
return (
diff --git a/packages/ui/src/components/ui/switch.tsx b/packages/ui/src/components/ui/switch.tsx
index b0f81c2a7..ac263632d 100644
--- a/packages/ui/src/components/ui/switch.tsx
+++ b/packages/ui/src/components/ui/switch.tsx
@@ -1,10 +1,9 @@
"use client";
+import { cn } from "@openstatus/ui/lib/utils";
import * as SwitchPrimitive from "@radix-ui/react-switch";
import type * as React from "react";
-import { cn } from "@openstatus/ui/lib/utils";
-
function Switch({
className,
...props
@@ -13,7 +12,7 @@ function Switch({
<SwitchPrimitive.Root
data-slot="switch"
className={cn(
- "peer inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs outline-none transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80",
+ "peer focus-visible:border-ring focus-visible:ring-ring/50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
className,
)}
{...props}
@@ -21,7 +20,7 @@ function Switch({
<SwitchPrimitive.Thumb
data-slot="switch-thumb"
className={cn(
- "pointer-events-none block size-4 rounded-full bg-background ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground",
+ "bg-background dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0",
)}
/>
</SwitchPrimitive.Root>
diff --git a/packages/ui/src/components/ui/table.tsx b/packages/ui/src/components/ui/table.tsx
index cb0a1df6a..5b31afd16 100644
--- a/packages/ui/src/components/ui/table.tsx
+++ b/packages/ui/src/components/ui/table.tsx
@@ -1,8 +1,7 @@
"use client";
-import type * as React from "react";
-
import { cn } from "@openstatus/ui/lib/utils";
+import type * as React from "react";
function Table({ className, ...props }: React.ComponentProps<"table">) {
return (
@@ -44,7 +43,7 @@ function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">) {
<tfoot
data-slot="table-footer"
className={cn(
- "border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",
+ "bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",
className,
)}
{...props}
@@ -57,7 +56,7 @@ function TableRow({ className, ...props }: React.ComponentProps<"tr">) {
<tr
data-slot="table-row"
className={cn(
- "border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
+ "hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",
className,
)}
{...props}
@@ -70,7 +69,7 @@ function TableHead({ className, ...props }: React.ComponentProps<"th">) {
<th
data-slot="table-head"
className={cn(
- "h-10 whitespace-nowrap px-2 text-left align-middle font-medium text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
+ "text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
className,
)}
{...props}
@@ -83,7 +82,7 @@ function TableCell({ className, ...props }: React.ComponentProps<"td">) {
<td
data-slot="table-cell"
className={cn(
- "whitespace-nowrap p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
+ "p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
className,
)}
{...props}
@@ -98,7 +97,7 @@ function TableCaption({
return (
<caption
data-slot="table-caption"
- className={cn("mt-4 text-muted-foreground text-sm", className)}
+ className={cn("text-muted-foreground mt-4 text-sm", className)}
{...props}
/>
);
diff --git a/packages/ui/src/components/ui/tabs.tsx b/packages/ui/src/components/ui/tabs.tsx
index e7a3a52ed..8440ab90c 100644
--- a/packages/ui/src/components/ui/tabs.tsx
+++ b/packages/ui/src/components/ui/tabs.tsx
@@ -1,10 +1,9 @@
"use client";
+import { cn } from "@openstatus/ui/lib/utils";
import * as TabsPrimitive from "@radix-ui/react-tabs";
import type * as React from "react";
-import { cn } from "@openstatus/ui/lib/utils";
-
function Tabs({
className,
...props
@@ -26,7 +25,7 @@ function TabsList({
<TabsPrimitive.List
data-slot="tabs-list"
className={cn(
- "inline-flex h-9 w-fit items-center justify-center rounded-lg bg-muted p-[3px] text-muted-foreground",
+ "bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",
className,
)}
{...props}
@@ -42,7 +41,7 @@ function TabsTrigger({
<TabsPrimitive.Trigger
data-slot="tabs-trigger"
className={cn(
- "inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 whitespace-nowrap rounded-md border border-transparent px-2 py-1 font-medium text-foreground text-sm transition-[color,box-shadow] focus-visible:border-ring focus-visible:outline-1 focus-visible:outline-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:shadow-sm dark:text-muted-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
+ "text-foreground focus-visible:border-ring focus-visible:outline-ring focus-visible:ring-ring/50 data-[state=active]:bg-background dark:text-muted-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
className,
)}
{...props}
diff --git a/packages/ui/src/components/ui/textarea.tsx b/packages/ui/src/components/ui/textarea.tsx
index 28beb98ad..4ab33841c 100644
--- a/packages/ui/src/components/ui/textarea.tsx
+++ b/packages/ui/src/components/ui/textarea.tsx
@@ -1,13 +1,12 @@
-import type * as React from "react";
-
import { cn } from "@openstatus/ui/lib/utils";
+import type * as React from "react";
function Textarea({ className, ...props }: React.ComponentProps<"textarea">) {
return (
<textarea
data-slot="textarea"
className={cn(
- "field-sizing-content flex min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs outline-none transition-[color,box-shadow] placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40",
+ "border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:aria-invalid:ring-destructive/40 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
className,
)}
{...props}
diff --git a/packages/ui/src/components/ui/tooltip.tsx b/packages/ui/src/components/ui/tooltip.tsx
index a58abe457..13fb106ff 100644
--- a/packages/ui/src/components/ui/tooltip.tsx
+++ b/packages/ui/src/components/ui/tooltip.tsx
@@ -1,10 +1,9 @@
"use client";
+import { cn } from "@openstatus/ui/lib/utils";
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
import type * as React from "react";
-import { cn } from "@openstatus/ui/lib/utils";
-
function TooltipProvider({
delayDuration = 0,
...props
@@ -46,13 +45,13 @@ function TooltipContent({
data-slot="tooltip-content"
sideOffset={sideOffset}
className={cn(
- "fade-in-0 zoom-in-95 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in text-balance rounded-md bg-primary px-3 py-1.5 text-primary-foreground text-xs data-[state=closed]:animate-out",
+ "fade-in-0 zoom-in-95 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 animate-in bg-primary text-primary-foreground data-[state=closed]:animate-out z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
className,
)}
{...props}
>
{children}
- <TooltipPrimitive.Arrow className="z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-primary fill-primary" />
+ <TooltipPrimitive.Arrow className="bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" />
</TooltipPrimitive.Content>
</TooltipPrimitive.Portal>
);
diff --git a/packages/ui/src/hooks/use-cookie-state.ts b/packages/ui/src/hooks/use-cookie-state.ts
index 0bc1d8c1c..8d52d5884 100644
--- a/packages/ui/src/hooks/use-cookie-state.ts
+++ b/packages/ui/src/hooks/use-cookie-state.ts
@@ -23,7 +23,6 @@ export function useCookieState<T extends string>(
[name, config],
);
- // biome-ignore lint/correctness/useExhaustiveDependencies: <explanation>
useEffect(() => {
if (document) {
const cookie = document.cookie
diff --git a/packages/ui/src/lib/compose-refs.ts b/packages/ui/src/lib/compose-refs.ts
index 922f1cf9a..5fd5caf68 100644
--- a/packages/ui/src/lib/compose-refs.ts
+++ b/packages/ui/src/lib/compose-refs.ts
@@ -21,7 +21,6 @@ function setRef<T>(ref: PossibleRef<T>, value: T) {
* Accepts callback refs and RefObject(s)
*/
function composeRefs<T>(...refs: PossibleRef<T>[]) {
- // biome-ignore lint/complexity/noForEach: <explanation>
return (node: T) => refs.forEach((ref) => setRef(ref, node));
}
diff --git a/packages/utils/package.json b/packages/utils/package.json
index 0f730d183..666520a49 100644
--- a/packages/utils/package.json
+++ b/packages/utils/package.json
@@ -2,6 +2,9 @@
"name": "@openstatus/utils",
"version": "1.0.0",
"description": "",
+ "keywords": [],
+ "license": "ISC",
+ "author": "",
"main": "src/index.ts",
"scripts": {},
"dependencies": {
@@ -12,8 +15,5 @@
"devDependencies": {
"@openstatus/tsconfig": "workspace:*",
"typescript": "catalog:"
- },
- "keywords": [],
- "author": "",
- "license": "ISC"
+ }
}
diff --git a/packages/utils/src/payloads.ts b/packages/utils/src/payloads.ts
index 6936f2727..c1d412908 100644
--- a/packages/utils/src/payloads.ts
+++ b/packages/utils/src/payloads.ts
@@ -1,8 +1,8 @@
import { base } from "@openstatus/assertions";
-import { MONITOR_METHODS, MONITOR_STATUSES } from "./constants";
-
import { z } from "zod";
+import { MONITOR_METHODS, MONITOR_STATUSES } from "./constants";
+
export const httpPayloadSchema = z.object({
workspaceId: z.string(),
monitorId: z.string(),
diff --git a/packages/utils/src/ssrf.test.ts b/packages/utils/src/ssrf.test.ts
index 2f0e56213..387ad3a76 100644
--- a/packages/utils/src/ssrf.test.ts
+++ b/packages/utils/src/ssrf.test.ts
@@ -1,4 +1,5 @@
import { describe, expect, it } from "bun:test";
+
import { assertSafeUrl, assertSafeUrlSync, safeUrlSchema } from "./ssrf";
// --- assertSafeUrlSync (no DNS, used in Zod schemas) ---
diff --git a/packages/utils/src/stream.ts b/packages/utils/src/stream.ts
index 2de4e97cd..99d75eec6 100644
--- a/packages/utils/src/stream.ts
+++ b/packages/utils/src/stream.ts
@@ -39,7 +39,7 @@ export async function* yieldMany<T>(promises: Promise<T>[]) {
wake = null;
}
while (queue.length > 0) {
- // biome-ignore lint/style/noNonNullAssertion: length-guarded above
+ // oxlint-disable-next-line typescript/no-non-null-assertion -- length-guarded above
yield queue.shift()!;
}
if (rejection) {
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 19a699dd9..93b862988 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -21,9 +21,6 @@ catalogs:
'@aws-sdk/client-s3':
specifier: 3.1051.0
version: 3.1051.0
- '@biomejs/biome':
- specifier: 1.8.3
- version: 1.8.3
'@bufbuild/buf':
specifier: 1.69.0
version: 1.69.0
@@ -394,14 +391,14 @@ catalogs:
specifier: 2.8.9
version: 2.8.9
oxfmt:
- specifier: 0.20.0
- version: 0.20.0
+ specifier: 0.53.0
+ version: 0.53.0
oxlint:
- specifier: 1.66.0
- version: 1.66.0
+ specifier: 1.68.0
+ version: 1.68.0
oxlint-tsgolint:
- specifier: 0.10.1
- version: 0.10.1
+ specifier: 0.23.0
+ version: 0.23.0
percentile:
specifier: 1.6.0
version: 1.6.0
@@ -527,9 +524,6 @@ importers:
.:
devDependencies:
- '@biomejs/biome':
- specifier: 'catalog:'
- version: 1.8.3
'@turbo/gen':
specifier: 'catalog:'
@@ -541,13 +535,13 @@ importers:
version: 5.88.1(@types/[email protected])([email protected])
oxfmt:
specifier: 'catalog:'
- version: 0.20.0
+ version: 0.53.0
oxlint:
specifier: 'catalog:'
- version: 1.66.0([email protected])
+ version: 1.68.0([email protected])
oxlint-tsgolint:
specifier: 'catalog:'
- version: 0.10.1
+ version: 0.23.0
turbo:
specifier: 2.9.14
version: 2.9.14
@@ -1986,9 +1980,6 @@ importers:
specifier: 'catalog:'
version: 19.2.6
devDependencies:
- '@biomejs/biome':
- specifier: 'catalog:'
- version: 1.8.3
'@openstatus/tsconfig':
specifier: workspace:*
version: link:../tsconfig
@@ -2823,9 +2814,6 @@ importers:
specifier: 'catalog:'
version: 4.1.13
devDependencies:
- '@biomejs/biome':
- specifier: 'catalog:'
- version: 1.8.3
'@openstatus/tsconfig':
specifier: workspace:*
version: link:../tsconfig
@@ -3259,63 +3247,6 @@ packages:
resolution: {integrity: sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==}
engines: {node: '>=6.9.0'}
- '@biomejs/[email protected]':
- resolution: {integrity: sha512-/uUV3MV+vyAczO+vKrPdOW0Iaet7UnJMU4bNMinggGJTAnBPjCoLEYcyYtYHNnUNYlv4xZMH6hVIQCAozq8d5w==}
- engines: {node: '>=14.21.3'}
- hasBin: true
-
- '@biomejs/[email protected]':
- resolution: {integrity: sha512-9DYOjclFpKrH/m1Oz75SSExR8VKvNSSsLnVIqdnKexj6NwmiMlKk94Wa1kZEdv6MCOHGHgyyoV57Cw8WzL5n3A==}
- engines: {node: '>=14.21.3'}
- cpu: [arm64]
- os: [darwin]
-
- '@biomejs/[email protected]':
- resolution: {integrity: sha512-UeW44L/AtbmOF7KXLCoM+9PSgPo0IDcyEUfIoOXYeANaNXXf9mLUwV1GeF2OWjyic5zj6CnAJ9uzk2LT3v/wAw==}
- engines: {node: '>=14.21.3'}
- cpu: [x64]
- os: [darwin]
-
- '@biomejs/[email protected]':
- resolution: {integrity: sha512-9yjUfOFN7wrYsXt/T/gEWfvVxKlnh3yBpnScw98IF+oOeCYb5/b/+K7YNqKROV2i1DlMjg9g/EcN9wvj+NkMuQ==}
- engines: {node: '>=14.21.3'}
- cpu: [arm64]
- os: [linux]
- libc: [musl]
-
- '@biomejs/[email protected]':
- resolution: {integrity: sha512-fed2ji8s+I/m8upWpTJGanqiJ0rnlHOK3DdxsyVLZQ8ClY6qLuPc9uehCREBifRJLl/iJyQpHIRufLDeotsPtw==}
- engines: {node: '>=14.21.3'}
- cpu: [arm64]
- os: [linux]
- libc: [glibc]
-
- '@biomejs/[email protected]':
- resolution: {integrity: sha512-UHrGJX7PrKMKzPGoEsooKC9jXJMa28TUSMjcIlbDnIO4EAavCoVmNQaIuUSH0Ls2mpGMwUIf+aZJv657zfWWjA==}
- engines: {node: '>=14.21.3'}
- cpu: [x64]
- os: [linux]
- libc: [musl]
-
- '@biomejs/[email protected]':
- resolution: {integrity: sha512-I8G2QmuE1teISyT8ie1HXsjFRz9L1m5n83U1O6m30Kw+kPMPSKjag6QGUn+sXT8V+XWIZxFFBoTDEDZW2KPDDw==}
- engines: {node: '>=14.21.3'}
- cpu: [x64]
- os: [linux]
- libc: [glibc]
-
- '@biomejs/[email protected]':
- resolution: {integrity: sha512-J+Hu9WvrBevfy06eU1Na0lpc7uR9tibm9maHynLIoAjLZpQU3IW+OKHUtyL8p6/3pT2Ju5t5emReeIS2SAxhkQ==}
- engines: {node: '>=14.21.3'}
- cpu: [arm64]
- os: [win32]
-
- '@biomejs/[email protected]':
- resolution: {integrity: sha512-/PJ59vA1pnQeKahemaQf4Nyj7IKUvGQSc3Ze1uIGi+Wvr1xF7rGobSrAAG01T/gUDG21vkDsZYM03NAmPiVkqg==}
- engines: {node: '>=14.21.3'}
- cpu: [x64]
- os: [win32]
-
'@bramus/[email protected]':
resolution: {integrity: sha512-ctxtJ/eA+t+6q2++vj5j7FYX3nRu311q1wfYH3xjlLOsczhlhxAg2FWNUXhpGvAw3BWo1xBcvOV6/YLc2r5FJw==}
hasBin: true
@@ -4925,198 +4856,276 @@ packages:
cpu: [x64]
os: [win32]
- '@oxfmt/[email protected]':
- resolution: {integrity: sha512-bjR5dqvrd9gxKYfYR0ljUu3/T3+TuDVWcwA7d+tsfmx9lqidlw3zhgBTblnjF1mrd1zkPMoc5zzq86GeSEt1cA==}
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-XfVM8AmIovBTKXCt14Op5wbfcoM8418nttd+nhMgM3RAVaJg1MtJc73FyWfUt0oxLyBGVwfniNVUsbV/b3VmPg==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm]
+ os: [android]
+
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-btHDfXckwdf9zgyAVznfZkf+GVyB0I1m1hlvaOMRx2xoyz3hphfPX97s89J3wfCN8QBETLtk4lQUaeOkrMuQOg==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm64]
+ os: [android]
+
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-k2RjMcSTkHjoOlsVGbL35JVzXL+oQco3GHPl/5kjebVF4oHNfE24In8F5isqBh9LBJucycWHKDXdGrCchdWcHQ==}
+ engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [darwin]
- '@oxfmt/[email protected]':
- resolution: {integrity: sha512-esUDes8FlJX3IY4TVjFLgZrnZlIIyPDlhkCaHgGR3+z2eHFZOvQu68kTSpZLCEJmGXdSpU5rlveycQ6n8tk9ew==}
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-65jIBE2H1l5SSs16fmv6/7b6sAx/WpvnsgDhVWK9qSjNFDUro7MPQ6q5UhpY7kl46yltfR046iAnxy/Bzqbiew==}
+ engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [darwin]
- '@oxfmt/[email protected]':
- resolution: {integrity: sha512-irE0RO9B0R6ziQE6kUVZtZ6IuTdRyuumn1cPWhDfpa0XUa5sE0ly8pjVsvJbj/J9qerVtidU05txeXBB5CirQg==}
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-oYe1gkz7U49PCYrS9147d2fJZj8mDI4Di6AvlsU5fu9p+Tq8S7qqOMSZjUiVTLX8bXuSA9Lk/tIxuegVjkNYRA==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [x64]
+ os: [freebsd]
+
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-ailB2vLzGi629tymdAb2VYJyEHref7oqGxP+tRBrtRBxQrb6NV55JMT7xtGZ8uTeG2+Y9zojqW4LhJYxQnz9Pg==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm]
+ os: [linux]
+
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-abh4mWBvOvD966sobqF7r103y2yYx7Rb4WGHLOS4+5igGqLbbPxS9aK5+45D6iUY7dWMsk3Muz9a8gUtufvqJA==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm]
+ os: [linux]
+
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-z73PvuhJ8qA+cDbaiqbtopHglA91U4+y5wn2sTJJrnpB957d5P33FEuyP3DQIFd7ofljmDmfVT4G0CVGHZaJWg==}
+ engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [linux]
libc: [glibc]
- '@oxfmt/[email protected]':
- resolution: {integrity: sha512-eXPBLwYJm26DCmwMwhelEwQMRwuGNaYhYZOhd+CYYsmVoF+h6L6dtjwj0Ovuu0Gqh18EL8vfsaoUvb+jr3vEBg==}
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-I6bhOTroqc3ThrwZ89l2k3ivKuELhdPLbAcJhRNyjWvlgwb0vjRgEnVL1XLx5Jud04/ypNRZBykAWrSk6l/D+g==}
+ engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [linux]
libc: [musl]
- '@oxfmt/[email protected]':
- resolution: {integrity: sha512-dTPW38Hjgb7LoD2mNgyQGBaJ1hu5YgPrxImhl5Eb04eiws+ETCM0wrb2TWGduA+Nv3rHKn3vZEkMTEjklZXgRw==}
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-w0p3JzB/PkkQjXALMJMqP9YfP3yq4w6zGsu5kezQmUnxRkN3b/Theg2l/nDgBsOcczxS3gL6Gam5XNAVrO6QJQ==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [ppc64]
+ os: [linux]
+ libc: [glibc]
+
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-mzBhF6k1Yq1K/dqDmVe/AAafnlJfEpx7yfUiksyeWXJk5iSzZqBSxcsa02zIytYgQFRZ7h6WPZfwHg/DoOE1Kw==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [riscv64]
+ os: [linux]
+ libc: [glibc]
+
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-AlFCpnRQhogQFzZXWbO6xB6/Udy745L+eQNmDPGg7G/OeWsYmJc4jZYfUN5pQg0reOPWSED2mOQqKZOJM1U8cA==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [riscv64]
+ os: [linux]
+ libc: [musl]
+
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-XD4ulY4f1DWbuuZXAqxhVn+gdPmrhnmojWtFN78ctVoupmS845fGhsUrk1HZXKQI+iymbaiz9vAjPsghHNQ7Ag==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [s390x]
+ os: [linux]
+ libc: [glibc]
+
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-xg8KWX0QnxmYWRe60CgHYWXI0ZOtBbqTsXvWiWrcl2XUHJ3fht2QerOk2iWvylzX3zNT2GpvBRxGoR4d3sxPRQ==}
+ engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [linux]
libc: [glibc]
- '@oxfmt/[email protected]':
- resolution: {integrity: sha512-b4duw9JGDK/kZoqrPNU9tBOOZQdUW8KJPZ7gW7z54X1eGSqCJ1PT0XLNmZ7SOA1BzQwQ0a3qmQWfFVOsH3a5bw==}
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-MWExpYBGvl+pIvVB/gj/CcWlN2al8AizT7rUbtaYaWNoQkhWARM6W3qpgoCr72CYSN9PborzPmM5MIRe2BrNdA==}
+ engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [linux]
libc: [musl]
- '@oxfmt/[email protected]':
- resolution: {integrity: sha512-XAzvBhw4K+Fe16dBaFgYAdob9WaM8RYEXl0ibbm5NlNaQEq+5bH9xwc0oaYlHFnLfcgXWmn9ceTAYqNlONQRNA==}
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-u4sajgO4nxgmJIgc/y2AqPhkdbOkQH8WugXpA1+pW0ESQhvGZ1oGq61Q4xMbJHJU1hFgtO18QNrcFYDPYH0gwQ==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm64]
+ os: [openharmony]
+
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-Yq9sOZoIOJ5xPjO0qOyHJS4CiPuTkB2en9auxZz7Ar2p5RaC7BzLyVVmAA7zz9/L9YnjjY1DwNxN+ivKXimN/A==}
+ engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [win32]
- '@oxfmt/[email protected]':
- resolution: {integrity: sha512-fkJqHbJaoOMRmrjHSljyb4/7BgXO3xPLBsJSFGtm3mpfW0HHFbAKvd4/6njhqJz9KY+b3RWP1WssjFshcqQQ4w==}
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-es1fVNZEkBqEcQtBpn19SYFgZF7FawlkCjkT/iImfEAus4gun8fBwB1E9hpV5LcR9B0DBNvRIXhW8BQk3JaE+Q==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [ia32]
+ os: [win32]
+
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-QFmJs2bEu9AO4O6qsmEaZNGi6dFq8N+rT8EHAAnZIq/B9SeJDUbc4DzVxQ48MfDsL7D3sCZzo37zuTuspcURgg==}
+ engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [win32]
- '@oxlint-tsgolint/[email protected]':
- resolution: {integrity: sha512-KGC4++BeEqrIcmDHiJt/e6/860PWJmUJjjp0mE+smpBmRXMjmOFFjrPmN+ZyCyVgf1WdmhPkQXsRSPeTR+2omw==}
+ '@oxlint-tsgolint/[email protected]':
+ resolution: {integrity: sha512-gOs9PVr2wEg4ox9z0aJo+RKhhImW86YL5N6yav8BK/rgPsIrwN/igSZ+pbRr723NFvUNKde9fgMhRA6JrXAOZw==}
cpu: [arm64]
os: [darwin]
- '@oxlint-tsgolint/[email protected]':
- resolution: {integrity: sha512-tvmrDgj3Q0tdc+zMWfCVLVq8EQDEUqasm1zaWgSMYIszpID6qdgqbT+OpWWXV9fLZgtvrkoXGwxkHAUJzdVZXQ==}
+ '@oxlint-tsgolint/[email protected]':
+ resolution: {integrity: sha512-kjJ8B+7n4tB9VJdxS5A9GdJt6/bYpzbu4lXp2uO1S3sRmCB5gDEABlGoiePNApRWaW+xqL4b4xgiE727jSLhuA==}
cpu: [x64]
os: [darwin]
- '@oxlint-tsgolint/[email protected]':
- resolution: {integrity: sha512-7kD28z6/ykGx8WetKTPRZt30pd+ziassxg/8cM24lhjUI+hNXyRHVtHes73dh9D6glJKno+1ut+3amUdZBZcpQ==}
+ '@oxlint-tsgolint/[email protected]':
+ resolution: {integrity: sha512-6dCZuKNu135seMXilkRk9SpCx6i1XgmiipYGalLij5WVRX6ZYS8c4xI7preN/zv9fCXhsQclTIMDu2Y/cytTjw==}
cpu: [arm64]
os: [linux]
- '@oxlint-tsgolint/[email protected]':
- resolution: {integrity: sha512-NmJmiqdzYUTHIxteSTyX6IFFgnIsOAjRWXfrS6Jbo5xlB3g39WHniSF3asB/khLJNtwSg4InUS34NprYM7zrEw==}
+ '@oxlint-tsgolint/[email protected]':
+ resolution: {integrity: sha512-3bdilnyA7kmSTjK27rvjIjSxL5SIg3wt7vwNiRkouWB83ytssyKnuGvxSYJxgMEmFpSutzaBzcCUM2jDtPGcgA==}
cpu: [x64]
os: [linux]
- '@oxlint-tsgolint/[email protected]':
- resolution: {integrity: sha512-3KrT80vl3nXUkjuJI/z8dF6xWsKx0t9Tz4ZQHgQw3fYw+CoihBRWGklrdlmCz+EGfMyVaQLqBV9PZckhSqLe2A==}
+ '@oxlint-tsgolint/[email protected]':
+ resolution: {integrity: sha512-j+OEp44SVYiQ+ZD+uttsX7u6L9SvmbbQ77SO1pSFCcJlsVMeCk8qZsjhKfGKuT/jIA+ipOJMVs/+pqUfObBWNw==}
cpu: [arm64]
os: [win32]
- '@oxlint-tsgolint/[email protected]':
- resolution: {integrity: sha512-hW1fSJZVxG51sLdGq1sQjOzb1tsQ23z/BquJfUwL7CqBobxr7TJvGmoINL+9KryOJt0jCoaiMfWe4yoYw5XfIA==}
+ '@oxlint-tsgolint/[email protected]':
+ resolution: {integrity: sha512-5MyjFuqf+g8OUPJBSGWHJtmoWnzFJYyOg4To9WMQshZYEWig/vtu7JtJ03VWnzHv9LJkAUeApY0gVCOywFR/iQ==}
cpu: [x64]
os: [win32]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-f7kq8N51T4phpzqfBpA2qaVTI/KrkCmNwaj3t/97I/WLTDI+UhlP5GL9eER+zVxBhtlx5rKXWByJU1/zDAvyaw==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-wEdsIspexXLLMCPAEOcCuFLMt6aE3AzTuA/nQKLPRnoJ+EQTturmGheDkhHuuVHx0GbutjQ3JKmEn+Gz6Ag28Q==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm]
os: [android]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-xu6QO71tdDS9mjmLZ3AqhtaVHBvdmsOKkYnReNNDgh+XiwnsipeQOIxbiYOOO0iAXycJ+GK0wdMSZP/2j/AmSg==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-6aZRNNXQTsYtgaus8HTb9nuCcsrQTlKXGnktwvwW0n/SooRWNxNb3925grDkC63aEYZuCIyOVLV16IdYIoC2aQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [android]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-HZ24VimSOC7mxuEA99e0H2FS0C1yO3+iW13jPRAk+e2njsUs3QeAXsafCDyaIrV/MirdOVez+etQNQsJE43zNQ==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-lVTbsE3kO4bLpZELgjRZuAJc8kP98wb83yMXWH8gaPaFZ+cM2IDeZto4ByoUAYj0Mxv2rvw+A1ssZequSepVSg==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [darwin]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-awhj8ZvJrrRSnXj7V++rpZvTmnl99L6mi0B7gg7Cp7BN6cKpzuI481bHNLvXGA9GB1/oEgA3ponuyoAc6Md12A==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-nCmw2XrmQskjBUh/sfP5yKs93V68LijQgjd1cuuZ/q4SCARngLYs60/qqyzuMsg8QQ9KArDI98hxs/RDGE4KRQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [darwin]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-KQF0oVV21/FjIqkRuL8Q1vh8ECsE5+ocdH5tcqTQ4ZnYuDVoYibQUNfqBjQaUsP6UIIda5Y75Wpm5p4RgQWiWw==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-TI4ovQJliYE9V6e06cEv+qEI9uj7Ao65fmif4er4HD+aouyYyh0P31q2jh3KtqsOHHcQqv2PZ61TjJFLpBDGWQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [freebsd]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-9u1rgwZSEXWb30vbFZzQ78HVXBo0WCKNwJ3a2InRUTNMRng+PUDIoSFmA+m4HdUfBaIqftShq8J8qHc+eE/Vig==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-LcNnEi9g71Cmry5ZpLbKT+oVv+/zYG3hYVAbBBB5X85nOQZSk8l92CnDkxJMcxUg0NCnMCOFZuaVDlMyv4tYJw==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm]
os: [linux]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-Ynot2HR1bHxUaNWoC280MVTDfZuaWuP3XfSMRDhyuZrVjhzoaBCVFlw8h8qeZjWKVUBhPWFIxB7AQTlK8Z2WWg==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-OovHahL3FX4UaK+hgSf11llUx2vszqjSdQQ61Ck9InOEI/ptZoC4XSQJurITqItVvd53JSlmkLMeaNjM1PoQew==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm]
os: [linux]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-xCbgzciGgo+A4aQZEknsNrNiIwY7sU5SfRuMmRjPIvZAgdF34cIHiKvwOsS5XRLjlTVSFwitmq6YclTtHTfU+g==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-YbzTglnHLzzi9zv5or8Ztz5fykAoZE8W9iM42/bOrF4HBSB6rJTqdLQWuoP76EHQw9DuKl76K1QmFlG29sPJXQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [linux]
libc: [glibc]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-hmo+ZB/lHkR1HdDmnziNpzSLmulnUSu10VEqX2Yex7OwvoBAbjJQLvy4gIBRV3AAwWnCvAxKp5Nv1GE6LU1QMg==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-qVKtCZNic+OoNnOr/hCQAu22HSQzflI7Fsq/Blzkw02SnLuv163k3kfmrVpZjSBlUHgsRKj6WgQiw30d3SX02Q==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [linux]
libc: [musl]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-2Invd4Uyy81mVooQC5FBtfxSNrvcX1OxbMlVQ6M2erRrNI2awFYF26YNW2yFxdVFZ4ffNOWKghtMjhnUPsXsVA==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-zExyZ8ZOUuAyQ0y9jpTcyjKUz62YY9JhKPyVxzvjTpXzZ3ujdqiVwfPWDdnA1SsIOrxdtxHn7KErDHLWskFjXg==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [ppc64]
os: [linux]
libc: [glibc]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-s0iXPDQVdgayE3RGa/N2DZF7tjgg0TwEtD1sGoDxqPDGrIXgo45H0yHknT0f9A0yteASsweYZtDyTuVlM4aSag==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-6C4MPuwewyDavA7sxM14wzgRi5GGL68HPIxRCdVyS75U4MDbpFVYzKO9WNR6KLKTMPq2pcz3THwo1sK2uiqngw==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [riscv64]
os: [linux]
libc: [glibc]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-OekL4XFiu7RPK0JIZi8VeHgtIXPREf42t8Cy/rKEsC+P3gcqDgNAAGiyuUOpdbG4wwbfue1q4CHcCO7spSve6w==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-bnZooVeHAcvA+dH0EDLgx+7HY/DRi6e0hFszg3P+OBatuUjV6EvfIyNIzWOusmqAVh4L6r21GGTZtiKE4iqM4Q==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [riscv64]
os: [linux]
libc: [musl]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-Ga1D0kj1SFslm34ThA/BdkUlyAYEnTsXyRC4pF0C5agZSwtGdHYWMTQWemUfBGp4RCG4QWXgdO+HmmmKqOtlBg==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-dIqnZnJSmHCMOUpUcWQOiV14o3DDPVx1DSsMaSzvdhNjC1tB1iEPZbdiMSCIEYbkgbsYznHXWqFdKL8WUB3F8g==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [s390x]
os: [linux]
libc: [glibc]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-p5jfP1wUZe/IC3qpQO84n9DRnf9g3lKRtLBlQq23ykyrDglHcVx7sWmVTlPuU6SBw8mNnPzyOn022G3XZHnlww==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-zc9lEnfV/HreDTY6gdMlZe+irkwHSxQ4/B1pS9GyK7RVaA5LxhoZY/w6/o2vIwLLEYiXQ5ujGxOM1ZazeFAAIA==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [linux]
libc: [glibc]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-vUB/sYlYZorDL1ZD+o9mRv7zbsykrrFRtmgS6R8musZqLtrPRQn1gc1eGpuX+sfdccz42STl/AqldY6XRb2upQ==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-Dl5QEX0TCo/40Cdh1o1JdPS//+YiWqjC+Hrrya5OQmStZZr4svAFtdlqcpCrU9yq2Mo3vRVyO9B3h0dzD8s36Q==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [linux]
libc: [musl]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-yde+6p/F59xRkGR9H1HfngWRif1QRJjynZK349l+UI0H6w9hL3G8/AVaTHFyTtLVQ56qtNbX2/5Dc77n1ovnOg==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-/qy6dOvi4S3/LeXq0l5BT5pRKPYA7oj3uKwJOAZOr5HRLL+HK6jdBynvWuXIA2wwfE01RzNYmbBdM7vwYx00sA==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [openharmony]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-O9GLucgoTdmOrbBX+EjzNe7o/Ze5TFOvXcib6bzUOtBOmj6cV+zw18NgB+cGKAkDw1Pdqs8vGkfHbbsLuDtXWg==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-fHNtVqPHSYE7UFDSLVFUjxQjnSVXxseNJmRW+XuP4pXXDwePdPda43NL7/BBCFTxHjycOc44JNDaOPtFDNui9A==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [win32]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-m3Pjwc2MfTcom4E4gOv7DyuGyt7OfGNCbmqDHd+N7EzXmP+ppHuudm2NjcA3AjV5TSeGxaguVF4SbTKHe1USYA==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-NnKXr4Wgo4nps3erhrE0f8shBvBPZMHg72nDsvX0JyrRvsNiP3f1JNvbCKh+A6VFvpF7ZoJxu904P3cKMhvZnA==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [ia32]
os: [win32]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-/DbBvw8UFBhja6PqudUjV4UtfsJr0Oa7jUjWVKB0g86lj/VwnPrkngn0sFql3c9RDA0O16dh7ozsXb6GjNAzBQ==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-zg5pA+84AlU6XHJ3ruiRxziO71QTrz8nLsk6u01JGS5+tL9/bnlakFiklFrcy4R1/V7ktWtaNitN3JZWmKnf6g==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [win32]
@@ -9655,24 +9664,35 @@ packages:
resolution: {integrity: sha512-qE/CIg/spwrTBFt5aKmwe3ifeDdLfA2NESN30E42X/lII5ClF8V7Wt6WIJhcGZjp0/Q+nQ+9vgxGk//xZNX2hg==}
- resolution: {integrity: sha512-+7f8eV8iaK3tENN/FUVxZM1g78HjPehybN8/+/dvEA1O893Dcvk6O7/Q1wTQOHMD7wvdwWdujKl+Uo8QMiKDrQ==}
+ resolution: {integrity: sha512-9cB5glS3Ip6NMuZ+6NYTao9FCWkDhRtPYCtR3QBu/NxHoFbgzzTvi41N4jxz/GqGfuLKspui1qb/LlSu2IbMcw==}
engines: {node: ^20.19.0 || >=22.12.0}
hasBin: true
+ peerDependencies:
+ svelte: ^5.0.0
+ vite-plus: '*'
+ peerDependenciesMeta:
+ svelte:
+ optional: true
+ vite-plus:
+ optional: true
- resolution: {integrity: sha512-EEHNdo5cW2w1xwYdBQ7d3IXDqWAtMkfVFrh+9gQ4kYbYJwygY4QXSh1eH80/xVipZdVKujAwBgg/nNNHk56kxQ==}
+ resolution: {integrity: sha512-3mBv3CoPbh8dFbzfDGIWa2ytZjn2v+3EX4aKRXjIhsoGFzG8GCjfRirz3rwZf1wYbZzsNLTSgpw8VjQuWdp/jA==}
hasBin: true
- resolution: {integrity: sha512-N4LLxYLd94KEBqXDMDM5f+2PUpItTjDLreXe2Gn5KhjhCK4Qp2YUXaBi8Yu325ryOgKwt22m45fpD7nPOn69Yw==}
+ resolution: {integrity: sha512-dXcbq+xsmLrMy6T8d0euf3IYUfLmjHIE11pOxiUSi5LHkFZaYPv568R6sEjcavVpUxoaQe66UBuK4HEi74NxpA==}
engines: {node: ^20.19.0 || >=22.12.0}
hasBin: true
peerDependencies:
oxlint-tsgolint: '>=0.22.1'
+ vite-plus: '*'
peerDependenciesMeta:
oxlint-tsgolint:
optional: true
+ vite-plus:
+ optional: true
resolution: {integrity: sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==}
@@ -10733,8 +10753,8 @@ packages:
resolution: {integrity: sha512-8nIfc2vgQ4TeLnk2lFj4tRLvvJwEfQuabdsmvDdQPT0xlk9TaNtpGd6nNRxXoK6vQhN6RSzj+Cnp5tTQmpxmbw==}
- resolution: {integrity: sha512-/RX9RzeH2xU5ADE7n2Ykvmi9ED3FBGPAjw9u3zucrNNaEBIO0HPSYgL0NT7+3p147ojeSdaVu08F6hjpv31HJg==}
+ resolution: {integrity: sha512-Pugqs6M0m7Lv1I7FtxN4aoyToKg1C4tu+/381vH35y8oENM/Ai7f7C4StcoK4/+BSw9ebcS8jRiVrORFKCALLw==}
engines: {node: ^20.0.0 || >=22.0.0}
@@ -11836,41 +11856,6 @@ snapshots:
'@babel/helper-string-parser': 7.27.1
'@babel/helper-validator-identifier': 7.28.5
- '@biomejs/[email protected]':
- optionalDependencies:
- '@biomejs/cli-darwin-arm64': 1.8.3
- '@biomejs/cli-darwin-x64': 1.8.3
- '@biomejs/cli-linux-arm64': 1.8.3
- '@biomejs/cli-linux-arm64-musl': 1.8.3
- '@biomejs/cli-linux-x64': 1.8.3
- '@biomejs/cli-linux-x64-musl': 1.8.3
- '@biomejs/cli-win32-arm64': 1.8.3
- '@biomejs/cli-win32-x64': 1.8.3
-
- '@biomejs/[email protected]':
- optional: true
-
- '@biomejs/[email protected]':
- optional: true
-
- '@biomejs/[email protected]':
- optional: true
-
- '@biomejs/[email protected]':
- optional: true
-
- '@biomejs/[email protected]':
- optional: true
-
- '@biomejs/[email protected]':
- optional: true
-
- '@biomejs/[email protected]':
- optional: true
-
- '@biomejs/[email protected]':
- optional: true
-
'@bramus/[email protected]':
dependencies:
css-tree: 3.2.1
@@ -13311,103 +13296,136 @@ snapshots:
'@oxc-resolver/[email protected]':
optional: true
- '@oxfmt/[email protected]':
+ '@oxfmt/[email protected]':
+ optional: true
+
+ '@oxfmt/[email protected]':
+ optional: true
+
+ '@oxfmt/[email protected]':
+ optional: true
+
+ '@oxfmt/[email protected]':
+ optional: true
+
+ '@oxfmt/[email protected]':
+ optional: true
+
+ '@oxfmt/[email protected]':
+ optional: true
+
+ '@oxfmt/[email protected]':
+ optional: true
+
+ '@oxfmt/[email protected]':
+ optional: true
+
+ '@oxfmt/[email protected]':
+ optional: true
+
+ '@oxfmt/[email protected]':
+ optional: true
+
+ '@oxfmt/[email protected]':
+ optional: true
+
+ '@oxfmt/[email protected]':
optional: true
- '@oxfmt/[email protected]':
+ '@oxfmt/[email protected]':
optional: true
- '@oxfmt/[email protected]':
+ '@oxfmt/[email protected]':
optional: true
- '@oxfmt/[email protected]':
+ '@oxfmt/[email protected]':
optional: true
- '@oxfmt/[email protected]':
+ '@oxfmt/[email protected]':
optional: true
- '@oxfmt/[email protected]':
+ '@oxfmt/[email protected]':
optional: true
- '@oxfmt/[email protected]':
+ '@oxfmt/[email protected]':
optional: true
- '@oxfmt/[email protected]':
+ '@oxfmt/[email protected]':
optional: true
- '@oxlint-tsgolint/[email protected]':
+ '@oxlint-tsgolint/[email protected]':
optional: true
- '@oxlint-tsgolint/[email protected]':
+ '@oxlint-tsgolint/[email protected]':
optional: true
- '@oxlint-tsgolint/[email protected]':
+ '@oxlint-tsgolint/[email protected]':
optional: true
- '@oxlint-tsgolint/[email protected]':
+ '@oxlint-tsgolint/[email protected]':
optional: true
- '@oxlint-tsgolint/[email protected]':
+ '@oxlint-tsgolint/[email protected]':
optional: true
- '@oxlint-tsgolint/[email protected]':
+ '@oxlint-tsgolint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
'@panva/[email protected]': {}
@@ -18277,50 +18295,61 @@ snapshots:
'@oxc-resolver/binding-win32-ia32-msvc': 11.19.1
'@oxc-resolver/binding-win32-x64-msvc': 11.19.1
dependencies:
- tinypool: 2.0.0
+ tinypool: 2.1.0
optionalDependencies:
- '@oxfmt/darwin-arm64': 0.20.0
- '@oxfmt/darwin-x64': 0.20.0
- '@oxfmt/linux-arm64-gnu': 0.20.0
- '@oxfmt/linux-arm64-musl': 0.20.0
- '@oxfmt/linux-x64-gnu': 0.20.0
- '@oxfmt/linux-x64-musl': 0.20.0
- '@oxfmt/win32-arm64': 0.20.0
- '@oxfmt/win32-x64': 0.20.0
-
+ '@oxfmt/binding-android-arm-eabi': 0.53.0
+ '@oxfmt/binding-android-arm64': 0.53.0
+ '@oxfmt/binding-darwin-arm64': 0.53.0
+ '@oxfmt/binding-darwin-x64': 0.53.0
+ '@oxfmt/binding-freebsd-x64': 0.53.0
+ '@oxfmt/binding-linux-arm-gnueabihf': 0.53.0
+ '@oxfmt/binding-linux-arm-musleabihf': 0.53.0
+ '@oxfmt/binding-linux-arm64-gnu': 0.53.0
+ '@oxfmt/binding-linux-arm64-musl': 0.53.0
+ '@oxfmt/binding-linux-ppc64-gnu': 0.53.0
+ '@oxfmt/binding-linux-riscv64-gnu': 0.53.0
+ '@oxfmt/binding-linux-riscv64-musl': 0.53.0
+ '@oxfmt/binding-linux-s390x-gnu': 0.53.0
+ '@oxfmt/binding-linux-x64-gnu': 0.53.0
+ '@oxfmt/binding-linux-x64-musl': 0.53.0
+ '@oxfmt/binding-openharmony-arm64': 0.53.0
+ '@oxfmt/binding-win32-arm64-msvc': 0.53.0
+ '@oxfmt/binding-win32-ia32-msvc': 0.53.0
+ '@oxfmt/binding-win32-x64-msvc': 0.53.0
+
optionalDependencies:
- '@oxlint-tsgolint/darwin-arm64': 0.10.1
- '@oxlint-tsgolint/darwin-x64': 0.10.1
- '@oxlint-tsgolint/linux-arm64': 0.10.1
- '@oxlint-tsgolint/linux-x64': 0.10.1
- '@oxlint-tsgolint/win32-arm64': 0.10.1
- '@oxlint-tsgolint/win32-x64': 0.10.1
-
+ '@oxlint-tsgolint/darwin-arm64': 0.23.0
+ '@oxlint-tsgolint/darwin-x64': 0.23.0
+ '@oxlint-tsgolint/linux-arm64': 0.23.0
+ '@oxlint-tsgolint/linux-x64': 0.23.0
+ '@oxlint-tsgolint/win32-arm64': 0.23.0
+ '@oxlint-tsgolint/win32-x64': 0.23.0
+
optionalDependencies:
- '@oxlint/binding-android-arm-eabi': 1.66.0
- '@oxlint/binding-android-arm64': 1.66.0
- '@oxlint/binding-darwin-arm64': 1.66.0
- '@oxlint/binding-darwin-x64': 1.66.0
- '@oxlint/binding-freebsd-x64': 1.66.0
- '@oxlint/binding-linux-arm-gnueabihf': 1.66.0
- '@oxlint/binding-linux-arm-musleabihf': 1.66.0
- '@oxlint/binding-linux-arm64-gnu': 1.66.0
- '@oxlint/binding-linux-arm64-musl': 1.66.0
- '@oxlint/binding-linux-ppc64-gnu': 1.66.0
- '@oxlint/binding-linux-riscv64-gnu': 1.66.0
- '@oxlint/binding-linux-riscv64-musl': 1.66.0
- '@oxlint/binding-linux-s390x-gnu': 1.66.0
- '@oxlint/binding-linux-x64-gnu': 1.66.0
- '@oxlint/binding-linux-x64-musl': 1.66.0
- '@oxlint/binding-openharmony-arm64': 1.66.0
- '@oxlint/binding-win32-arm64-msvc': 1.66.0
- '@oxlint/binding-win32-ia32-msvc': 1.66.0
- '@oxlint/binding-win32-x64-msvc': 1.66.0
- oxlint-tsgolint: 0.10.1
+ '@oxlint/binding-android-arm-eabi': 1.68.0
+ '@oxlint/binding-android-arm64': 1.68.0
+ '@oxlint/binding-darwin-arm64': 1.68.0
+ '@oxlint/binding-darwin-x64': 1.68.0
+ '@oxlint/binding-freebsd-x64': 1.68.0
+ '@oxlint/binding-linux-arm-gnueabihf': 1.68.0
+ '@oxlint/binding-linux-arm-musleabihf': 1.68.0
+ '@oxlint/binding-linux-arm64-gnu': 1.68.0
+ '@oxlint/binding-linux-arm64-musl': 1.68.0
+ '@oxlint/binding-linux-ppc64-gnu': 1.68.0
+ '@oxlint/binding-linux-riscv64-gnu': 1.68.0
+ '@oxlint/binding-linux-riscv64-musl': 1.68.0
+ '@oxlint/binding-linux-s390x-gnu': 1.68.0
+ '@oxlint/binding-linux-x64-gnu': 1.68.0
+ '@oxlint/binding-linux-x64-musl': 1.68.0
+ '@oxlint/binding-openharmony-arm64': 1.68.0
+ '@oxlint/binding-win32-arm64-msvc': 1.68.0
+ '@oxlint/binding-win32-ia32-msvc': 1.68.0
+ '@oxlint/binding-win32-x64-msvc': 1.68.0
+ oxlint-tsgolint: 0.23.0
@@ -19645,7 +19674,7 @@ snapshots:
'@types/tinycolor2': 1.4.6
tinycolor2: 1.6.0
dependencies:
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 6fa3dfc98..2de1e8017 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -7,7 +7,6 @@ trustPolicy: off
minimumReleaseAge: 1440 # 1 day (default)
allowBuilds:
- "@biomejs/biome": true
"@bufbuild/buf": true
"@parcel/watcher": true
"@sentry/cli": true
@@ -32,7 +31,6 @@ catalog:
"@auth/core": 0.40.0
"@auth/drizzle-adapter": 1.11.2
"@aws-sdk/client-s3": 3.1051.0
- "@biomejs/biome": 1.8.3
"@bufbuild/buf": 1.69.0
"@bufbuild/protobuf": 2.12.0
"@bufbuild/protoc-gen-es": 2.12.0
@@ -162,9 +160,9 @@ catalog:
next-themes: 0.4.6
node-html-parser: 6.1.13
nuqs: 2.8.9
- oxfmt: 0.20.0
- oxlint: 1.66.0
- oxlint-tsgolint: 0.10.1
+ oxfmt: 0.53.0
+ oxlint: 1.68.0
+ oxlint-tsgolint: 0.23.0
percentile: 1.6.0
playwright: 1.60.0
postcss: 8.5.15