new query

This commit is contained in:
Alex Holliday committed 2025-03-05 19:23:23 -08:00
1 parent eb6d14dc09
commit a92839cf4e
5 files changed
+21 -11

No files matched your search

+16 -1
View File
@@ -83,10 +83,25 @@ const Select = ({
name={name}
inputProps={{ id: id }}
IconComponent={KeyboardArrowDownIcon}
MenuProps={{ disableScrollLock: true }}
renderValue={(selected) => {
return (
<Typography
noWrap
sx={{
overflow: "hidden",
textOverflow: "ellipsis",
whiteSpace: "nowrap",
}}
>
{items.find((item) => item._id === selected)?.name}
</Typography>
);
}}
sx={{
fontSize: 13,
maxWidth: "200px",
minWidth: "125px",
"& fieldset": {
borderRadius: theme.shape.borderRadius,
borderColor: theme.palette.primary.lowContrast,
@@ -63,7 +63,7 @@ const DistributedUptimeResponseAreaChart = ({ checks }) => {
</defs>
<XAxis
stroke={theme.palette.primary.lowContrast}
dataKey="_id"
dataKey="_id.date"
tick={<CustomTick />}
minTickGap={0}
axisLine={false}
@@ -75,7 +75,6 @@ const DistributedUptimeDetails = () => {
</Stack>
);
}
return (
<Stack
direction="column"
@@ -114,7 +113,7 @@ const DistributedUptimeDetails = () => {
gap={theme.spacing(8)}
>
<DistributedUptimeMap
checks={monitor?.groupedMapChecks ?? []}
checks={monitor?.groupedChecks ?? []}
height={"100%"}
width={"100%"}
/>
@@ -25,11 +25,7 @@ const useSubscribeToMonitors = (page, rowsPerPage) => {
const initialDataRes = await networkService.getDistributedUptimeMonitors({
teamId: user.teamId,
limit: 25,
types: [
typeof import.meta.env.VITE_DEPIN_TESTING === "undefined"
? "distributed_http"
: "distributed_test",
],
types: ["distributed_http"],
page,
rowsPerPage,
});
@@ -234,7 +234,7 @@ const DistributedUptimeStatus = () => {
direction={{ s: "column", md: "row" }}
>
<DistributedUptimeMap
checks={monitor?.groupedMapChecks ?? []}
checks={monitor?.groupedChecks ?? []}
width={isSmallScreen ? "100%" : "50%"}
/>
<Stack
@@ -254,7 +254,7 @@ const DistributedUptimeStatus = () => {
/>
<InfoBox
heading={isSmallScreen ? "UPT" : "UPT Burned"}
subHeading={safelyParseFloat(monitor?.totalUptBurnt).toFixed(4)}
subHeading={safelyParseFloat(monitor?.uptBurnt).toFixed(4)}
img={UptLogo}
alt="Upt Logo"
sx={{ width: "50%" }}