Merge pull request #1881 from bluewave-labs/fix/depin-queries

Fix/depin queries
This commit is contained in:
Alexander Holliday authored and GitHub committed 2025-03-06 09:48:58 -08:00
commit 6481b1d9ac
5 files changed
+4 -9

No files matched your search

@@ -63,7 +63,7 @@ const DistributedUptimeResponseAreaChart = ({ checks }) => {
</defs> </defs>
<XAxis <XAxis
stroke={theme.palette.primary.lowContrast} stroke={theme.palette.primary.lowContrast}
dataKey="_id" dataKey="_id.date"
tick={<CustomTick />} tick={<CustomTick />}
minTickGap={0} minTickGap={0}
axisLine={false} axisLine={false}
@@ -67,7 +67,7 @@ const DistributedUptimeResponseBarChart = ({ checks }) => {
/> />
<XAxis <XAxis
stroke={theme.palette.primary.lowContrast} stroke={theme.palette.primary.lowContrast}
dataKey="_id" dataKey="_id.date"
tick={<CustomTick />} tick={<CustomTick />}
minTickGap={0} minTickGap={0}
axisLine={false} axisLine={false}
@@ -75,7 +75,6 @@ const DistributedUptimeDetails = () => {
</Stack> </Stack>
); );
} }
return ( return (
<Stack <Stack
direction="column" direction="column"
@@ -25,11 +25,7 @@ const useSubscribeToMonitors = (page, rowsPerPage) => {
const initialDataRes = await networkService.getDistributedUptimeMonitors({ const initialDataRes = await networkService.getDistributedUptimeMonitors({
teamId: user.teamId, teamId: user.teamId,
limit: 25, limit: 25,
types: [ types: ["distributed_http"],
typeof import.meta.env.VITE_DEPIN_TESTING === "undefined"
? "distributed_http"
: "distributed_test",
],
page, page,
rowsPerPage, rowsPerPage,
}); });
@@ -254,7 +254,7 @@ const DistributedUptimeStatus = () => {
/> />
<InfoBox <InfoBox
heading={isSmallScreen ? "UPT" : "UPT Burned"} heading={isSmallScreen ? "UPT" : "UPT Burned"}
subHeading={safelyParseFloat(monitor?.totalUptBurnt).toFixed(4)} subHeading={safelyParseFloat(monitor?.uptBurnt).toFixed(4)}
img={UptLogo} img={UptLogo}
alt="Upt Logo" alt="Upt Logo"
sx={{ width: "50%" }} sx={{ width: "50%" }}