@@ -2,6 +2,7 @@ import { ExclamationTriangleIcon } from "@heroicons/react/20/solid";
22import { json } from "@remix-run/node" ;
33import { useFetcher } from "@remix-run/react" ;
44import { useCallback , useEffect } from "react" ;
5+ import { motion } from "framer-motion" ;
56import { LinkButton } from "~/components/primitives/Buttons" ;
67import { Paragraph } from "~/components/primitives/Paragraph" ;
78import { useFeatures } from "~/hooks/useFeatures" ;
@@ -40,35 +41,39 @@ export function IncidentStatusPanel() {
4041 const interval = setInterval ( fetchIncidents , 60 * 1000 ) ; // 1 minute
4142
4243 return ( ) => clearInterval ( interval ) ;
43- } , [ fetchIncidents ] ) ;
44+ } , [ ] ) ;
4445
4546 const operational = fetcher . data ?. operational ?? true ;
4647
4748 return (
4849 < >
4950 { ! operational && (
50- < div className = "p-1" >
51+ < motion . div
52+ initial = { { opacity : 0 } }
53+ animate = { { opacity : 1 } }
54+ transition = { { duration : 0.3 } }
55+ className = "p-1"
56+ >
5157 < div className = "flex flex-col gap-2 rounded border border-warning/20 bg-warning/5 p-2 pt-1.5" >
5258 < div className = "flex items-center gap-1 border-b border-warning/20 pb-1 text-warning" >
5359 < ExclamationTriangleIcon className = "size-4" />
5460 < Paragraph variant = "small/bright" className = "text-warning" >
55- Active Incident
61+ Active incident
5662 </ Paragraph >
5763 </ div >
58- < Paragraph variant = "extra-small/bright" className = "line-clamp-3 text-warning/80" >
59- We're currently experiencing service disruptions. Our team is actively working on
60- resolving the issue. Check our status page for real-time updates.
64+ < Paragraph variant = "extra-small/bright" className = "text-warning/80" >
65+ Our team is working on resolving the issue. Monitor our status page for updates.
6166 </ Paragraph >
6267 < LinkButton
6368 variant = "secondary/small"
6469 to = "https://status.trigger.dev"
6570 target = "_blank"
6671 fullWidth
6772 >
68- View Status Page
73+ View status page
6974 </ LinkButton >
7075 </ div >
71- </ div >
76+ </ motion . div >
7277 ) }
7378 </ >
7479 ) ;
0 commit comments