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} name={name}
inputProps={{ id: id }} inputProps={{ id: id }}
IconComponent={KeyboardArrowDownIcon} 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={{ sx={{
fontSize: 13, fontSize: 13,
maxWidth: "200px",
minWidth: "125px", minWidth: "125px",
"& fieldset": { "& fieldset": {
borderRadius: theme.shape.borderRadius, borderRadius: theme.shape.borderRadius,
borderColor: theme.palette.primary.lowContrast, borderColor: theme.palette.primary.lowContrast,
@@ -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}
@@ -75,7 +75,6 @@ const DistributedUptimeDetails = () => {
</Stack> </Stack>
); );
} }
return ( return (
<Stack <Stack
direction="column" direction="column"
@@ -114,7 +113,7 @@ const DistributedUptimeDetails = () => {
gap={theme.spacing(8)} gap={theme.spacing(8)}
> >
<DistributedUptimeMap <DistributedUptimeMap
checks={monitor?.groupedMapChecks ?? []} checks={monitor?.groupedChecks ?? []}
height={"100%"} height={"100%"}
width={"100%"} width={"100%"}
/> />
@@ -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,
}); });
@@ -234,7 +234,7 @@ const DistributedUptimeStatus = () => {
direction={{ s: "column", md: "row" }} direction={{ s: "column", md: "row" }}
> >
<DistributedUptimeMap <DistributedUptimeMap
checks={monitor?.groupedMapChecks ?? []} checks={monitor?.groupedChecks ?? []}
width={isSmallScreen ? "100%" : "50%"} width={isSmallScreen ? "100%" : "50%"}
/> />
<Stack <Stack
@@ -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%" }}