Skip to content

Open-source status page, incident response and uptime monitoring

fix: region column (#1418)

Maximilian Kaske88214ec0d052
diff --git a/apps/web/src/components/ping-response-analysis/columns.tsx b/apps/web/src/components/ping-response-analysis/columns.tsx
index 9b1608384..f56474572 100644
--- a/apps/web/src/components/ping-response-analysis/columns.tsx
+++ b/apps/web/src/components/ping-response-analysis/columns.tsx
@@ -16,19 +16,6 @@ import { DataTableColumnHeader } from "../data-table/data-table-column-header";
import { StatusCodeBadge } from "../monitor/status-code-badge";
export const columns: ColumnDef<RegionChecker>[] = [
- {
- id: "key",
- accessorFn: (row) => row.region,
- header: "Key",
- cell: ({ row }) => {
- return (
- <div className="font-mono">
- {row.original.region.replace(/(koyeb_|railway_|fly_)/g, "")}
- </div>
- );
- },
- enableHiding: false,
- },
{
accessorKey: "region",
accessorFn: (row) => row.region,
@@ -36,7 +23,7 @@ export const columns: ColumnDef<RegionChecker>[] = [
cell: ({ row }) => {
const region = regionDict[row.original.region];
return (
- <div className="flex items-center gap-1 text-muted-foreground">
+ <div className="flex items-center gap-1.5">
<TooltipProvider>
<Tooltip delayDuration={0}>
<TooltipTrigger type="button">
@@ -58,7 +45,14 @@ export const columns: ColumnDef<RegionChecker>[] = [
</TooltipContent>
</Tooltip>
</TooltipProvider>
- {regionFormatter(row.original.region, "long")}
+ <div>
+ <span className="font-mono">
+ {row.original.region.replace(/(koyeb_|railway_|fly_)/g, "")}
+ </span>{" "}
+ <span className="text-muted-foreground">
+ {regionFormatter(row.original.region, "long")}
+ </span>
+ </div>
</div>
);
},