@@ -3,6 +3,7 @@ import { Form, useRevalidator } from "@remix-run/react";
33import { ActionFunctionArgs , type LoaderFunctionArgs } from "@remix-run/server-runtime" ;
44import { tryCatch } from "@trigger.dev/core" ;
55import { BulkActionStatus , BulkActionType } from "@trigger.dev/database" ;
6+ import { motion } from "framer-motion" ;
67import { useEffect } from "react" ;
78import { typedjson , useTypedLoaderData } from "remix-typedjson" ;
89import { z } from "zod" ;
@@ -290,17 +291,17 @@ function Meter({ type, successCount, failureCount, totalCount }: MeterProps) {
290291 </ Paragraph >
291292 </ div >
292293 < div className = "relative h-4 w-full overflow-hidden rounded-sm bg-charcoal-900" >
293- < SimpleTooltip
294- content = { ` ${ formatNumber ( successCount ) } ${ typeText ( type ) } successfully` }
295- buttonClassName = "h-full absolute w-full top-0 left-0 bg-success"
296- buttonStyle = { { width : `${ successPercentage } %` } }
297- button = { < div className = "h-full w-full" /> }
294+ < motion . div
295+ className = "absolute left-0 top-0 h-full w-full bg-success"
296+ initial = { { width : ` ${ successPercentage } %` } }
297+ animate = { { width : `${ successPercentage } %` } }
298+ transition = { { duration : 0.3 , ease : "easeOut" } }
298299 />
299- < SimpleTooltip
300- content = { ` ${ formatNumber ( failureCount ) } ${ typeText ( type ) } failed` }
301- buttonClassName = "h-full absolute top-0 bg-charcoal-550"
302- buttonStyle = { { left : `${ successPercentage } %` , width : `${ failurePercentage } %` } }
303- button = { < div className = "h-full w-full" /> }
300+ < motion . div
301+ className = "absolute top-0 h-full w-full bg-charcoal-550"
302+ initial = { { width : ` ${ failurePercentage } %` , left : ` ${ successPercentage } %` } }
303+ animate = { { width : `${ failurePercentage } %` , left : `${ successPercentage } %` } }
304+ transition = { { duration : 0.3 , ease : "easeOut" } }
304305 />
305306 </ div >
306307 < div className = "flex items-center gap-2" >
0 commit comments