@@ -10,10 +10,11 @@ import {
1010import { DialogClose } from "@radix-ui/react-dialog" ;
1111import {
1212 Form ,
13+ useNavigate ,
1314 useNavigation ,
1415 useRevalidator ,
1516 useSearchParams ,
16- type MetaFunction
17+ type MetaFunction ,
1718} from "@remix-run/react" ;
1819import { type ActionFunctionArgs , type LoaderFunctionArgs } from "@remix-run/server-runtime" ;
1920import { type RuntimeEnvironmentType } from "@trigger.dev/database" ;
@@ -33,8 +34,6 @@ import { Button, LinkButton } from "~/components/primitives/Buttons";
3334import { Callout } from "~/components/primitives/Callout" ;
3435import { Dialog , DialogContent , DialogHeader , DialogTrigger } from "~/components/primitives/Dialog" ;
3536import { FormButtons } from "~/components/primitives/FormButtons" ;
36- import { Header3 } from "~/components/primitives/Headers" ;
37- import { Input } from "~/components/primitives/Input" ;
3837import { NavBar , PageAccessories , PageTitle } from "~/components/primitives/PageHeader" ;
3938import { PaginationControls } from "~/components/primitives/Pagination" ;
4039import { Paragraph } from "~/components/primitives/Paragraph" ;
@@ -59,7 +58,6 @@ import { useEnvironment } from "~/hooks/useEnvironment";
5958import { useEventSource } from "~/hooks/useEventSource" ;
6059import { useOrganization } from "~/hooks/useOrganizations" ;
6160import { useProject } from "~/hooks/useProject" ;
62- import { useThrottle } from "~/hooks/useThrottle" ;
6361import { redirectWithErrorMessage , redirectWithSuccessMessage } from "~/models/message.server" ;
6462import { findProjectBySlug } from "~/models/project.server" ;
6563import { findEnvironmentBySlug } from "~/models/runtimeEnvironment.server" ;
@@ -71,6 +69,9 @@ import { docsPath, EnvironmentParamSchema, v3BillingPath } from "~/utils/pathBui
7169import { PauseEnvironmentService } from "~/v3/services/pauseEnvironment.server" ;
7270import { PauseQueueService } from "~/v3/services/pauseQueue.server" ;
7371import { useCurrentPlan } from "../_app.orgs.$organizationSlug/route" ;
72+ import { Header3 } from "~/components/primitives/Headers" ;
73+ import { Input } from "~/components/primitives/Input" ;
74+ import { useThrottle } from "~/hooks/useThrottle" ;
7475
7576const SearchParamsSchema = z . object ( {
7677 query : z . string ( ) . optional ( ) ,
@@ -423,16 +424,12 @@ export default function Page() {
423424 alignment = "right"
424425 className = { cn (
425426 queue . paused ? "tabular-nums opacity-50" : undefined ,
427+ queue . running > 0 && "text-text-bright" ,
426428 isAtLimit && "text-warning"
427429 ) }
428430 >
429431 { queue . running } /
430- < span
431- className = { cn (
432- "tabular-nums text-text-dimmed" ,
433- isAtLimit && "text-warning"
434- ) }
435- >
432+ < span className = { cn ( "tabular-nums" , isAtLimit && "text-warning" ) } >
436433 { limit }
437434 </ span >
438435 </ TableCell >
0 commit comments