Skip to content

Commit 792216b

Browse files
committed
Updated status-events with blocks component
Signed-off-by: Moulik Aggarwal <qwertymoulik@gmail.com>
1 parent 8e0d807 commit 792216b

File tree

9 files changed

+6
-83
lines changed

9 files changed

+6
-83
lines changed

apps/status-page/messages/de.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
"1P6GMj": "",
6060
"7cv4Uf": "",
6161
"/GKH/w": "",
62-
"2K7gg0": "",
6362
"FDReLp": "",
6463
"qDj0JR": "",
6564
"CYs0LF": "",

apps/status-page/messages/en.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
"1P6GMj": "Monitoring",
6060
"7cv4Uf": "Identified",
6161
"/GKH/w": "Investigating",
62-
"2K7gg0": "View full report",
6362
"FDReLp": "No recent notifications",
6463
"qDj0JR": "There have been no reports within the last 7 days.",
6564
"CYs0LF": "View events history",

apps/status-page/messages/es.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
"1P6GMj": "",
6060
"7cv4Uf": "",
6161
"/GKH/w": "",
62-
"2K7gg0": "",
6362
"FDReLp": "",
6463
"qDj0JR": "",
6564
"CYs0LF": "",

apps/status-page/messages/fr.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
"1P6GMj": "",
6060
"7cv4Uf": "",
6161
"/GKH/w": "",
62-
"2K7gg0": "",
6362
"FDReLp": "",
6463
"qDj0JR": "",
6564
"CYs0LF": "",

apps/status-page/messages/ja.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
"1P6GMj": "",
6060
"7cv4Uf": "",
6161
"/GKH/w": "",
62-
"2K7gg0": "",
6362
"FDReLp": "",
6463
"qDj0JR": "",
6564
"CYs0LF": "",

apps/status-page/messages/ko.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
"1P6GMj": "",
6060
"7cv4Uf": "",
6161
"/GKH/w": "",
62-
"2K7gg0": "",
6362
"FDReLp": "",
6463
"qDj0JR": "",
6564
"CYs0LF": "",

apps/status-page/messages/pt.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
"1P6GMj": "",
6060
"7cv4Uf": "",
6161
"/GKH/w": "",
62-
"2K7gg0": "",
6362
"FDReLp": "",
6463
"qDj0JR": "",
6564
"CYs0LF": "",

apps/status-page/messages/zh.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
"1P6GMj": "",
6060
"7cv4Uf": "",
6161
"/GKH/w": "",
62-
"2K7gg0": "",
6362
"FDReLp": "",
6463
"qDj0JR": "",
6564
"CYs0LF": "",

apps/status-page/src/components/status-page/status-events.tsx

Lines changed: 6 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
import { ProcessMessage } from "@/components/content/process-message";
22
import { TimestampHoverCard } from "@/components/content/timestamp-hover-card";
33
import { formatDate, formatDateRange, formatDateTime } from "@/lib/formatter";
4+
import {
5+
StatusEventTimelineDot,
6+
StatusEventTimelineMessage,
7+
StatusEventTimelineSeparator,
8+
StatusEventTimelineTitle,
9+
} from "@openstatus/ui/components/blocks/status-events";
410
import { Badge } from "@openstatus/ui/components/ui/badge";
5-
import { Separator } from "@openstatus/ui/components/ui/separator";
611
import {
712
Tooltip,
813
TooltipContent,
@@ -357,77 +362,3 @@ export function StatusEventTimelineMaintenance({
357362
</div>
358363
);
359364
}
360-
361-
export function StatusEventTimelineTitle({
362-
className,
363-
children,
364-
...props
365-
}: React.ComponentProps<"div">) {
366-
return (
367-
<div
368-
className={cn("font-medium text-foreground text-sm", className)}
369-
{...props}
370-
>
371-
{children}
372-
</div>
373-
);
374-
}
375-
376-
export function StatusEventTimelineMessage({
377-
className,
378-
children,
379-
...props
380-
}: React.ComponentProps<"div">) {
381-
return (
382-
<div
383-
className={cn(
384-
"py-1.5 font-mono text-muted-foreground text-sm",
385-
className,
386-
)}
387-
{...props}
388-
>
389-
{children}
390-
</div>
391-
);
392-
}
393-
394-
export function StatusEventTimelineDot({
395-
className,
396-
...props
397-
}: React.ComponentProps<"div">) {
398-
return (
399-
<div
400-
className={cn(
401-
"size-2.5 shrink-0 rounded-full bg-muted",
402-
"group-data-[variant=resolved]:bg-success",
403-
"group-data-[variant=monitoring]:bg-info",
404-
"group-data-[variant=identified]:bg-warning",
405-
"group-data-[variant=investigating]:bg-destructive",
406-
"group-data-[variant=maintenance]:bg-info",
407-
className,
408-
)}
409-
{...props}
410-
/>
411-
);
412-
}
413-
414-
export function StatusEventTimelineSeparator({
415-
className,
416-
...props
417-
}: React.ComponentProps<typeof Separator>) {
418-
return (
419-
<Separator
420-
orientation="vertical"
421-
className={cn(
422-
"mx-auto flex-1",
423-
"group-data-[variant=resolved]:bg-success",
424-
"group-data-[variant=monitoring]:bg-info",
425-
"group-data-[variant=identified]:bg-warning",
426-
"group-data-[variant=investigating]:bg-destructive",
427-
"group-data-[variant=maintenance]:bg-info",
428-
className,
429-
)}
430-
{...props}
431-
/>
432-
);
433-
}

0 commit comments

Comments
 (0)