fix urql url
All checks were successful
Main / build-and-push-docker-image (20.x) (push) Successful in 6m49s

This commit is contained in:
2025-12-06 17:48:52 -05:00
parent 92675579b9
commit 40634e58b3
3 changed files with 24 additions and 5 deletions

View File

@@ -20,7 +20,7 @@ export default function RootLayout({
isClient: typeof window !== "undefined" isClient: typeof window !== "undefined"
}); });
const client = createClient({ const client = createClient({
url: process.env.NEXT_PUBLIC_GRAPHQL_URL || "", url: "/api/graphql",
exchanges: [cacheExchange, ssr, fetchExchange], exchanges: [cacheExchange, ssr, fetchExchange],
suspense: true suspense: true
}); });

View File

@@ -148,7 +148,7 @@ export default function Home() {
</VStack> </VStack>
</VStack> </VStack>
<VStack gap={10} w="100%"> <VStack gap={10} w="100%">
{totalGroups && ( {totalGroups ? (
<StatsList <StatsList
title="Total Stats" title="Total Stats"
loading={totalStatsFetching || totalGroupsFetching} loading={totalStatsFetching || totalGroupsFetching}
@@ -158,8 +158,18 @@ export default function Home() {
commands={totalStats.getTotalStats.commandResponses} commands={totalStats.getTotalStats.commandResponses}
triggers={totalStats.getTotalStats.timesTriggered} triggers={totalStats.getTotalStats.timesTriggered}
/> />
) : (
<StatsList
title="Total Stats"
loading={totalStatsFetching || totalGroupsFetching}
error={totalStatsError || totalGroupsError}
groups={0}
links={0}
commands={0}
triggers={0}
/>
)} )}
{todayStats && ( {todayStats ? (
<StatsList <StatsList
title="Today's Stats" title="Today's Stats"
loading={todaysStatsFetching} loading={todaysStatsFetching}
@@ -168,6 +178,15 @@ export default function Home() {
commands={todayStats.getTodayStats.commandResponses} commands={todayStats.getTodayStats.commandResponses}
triggers={todayStats.getTodayStats.timesTriggered} triggers={todayStats.getTodayStats.timesTriggered}
/> />
) : (
<StatsList
title="Today's Stats"
loading={todaysStatsFetching}
error={todaysStatsError}
links={0}
commands={0}
triggers={0}
/>
)} )}
</VStack> </VStack>
<VStack w="95%" gap="5vh"> <VStack w="95%" gap="5vh">

View File

@@ -32,7 +32,7 @@ const LineChartComponent = ({
axisLine={false} axisLine={false}
dataKey={chart.key("day")} dataKey={chart.key("day")}
stroke={chart.color("border")} stroke={chart.color("border")}
// label={{ value: "Day", position: "bottom" }} // label={{ value: "Day", position: "bottom" }}
/> />
<YAxis <YAxis
width="auto" width="auto"
@@ -40,7 +40,7 @@ const LineChartComponent = ({
tickLine={false} tickLine={false}
tickMargin={10} tickMargin={10}
stroke={chart.color("border")} stroke={chart.color("border")}
// label={{ value: label, position: "left", angle: -90 }} // label={{ value: label, position: "left", angle: -90 }}
/> />
<Tooltip <Tooltip
animationDuration={100} animationDuration={100}