Added breadcrumbs to pagespeed details
This commit is contained in:
1 parent
705eff338d
commit
1e107a2dfc
3 files changed
+12
-22
No files matched your search
@@ -15,12 +15,11 @@ import Field from "../../../Components/Inputs/Field";
|
|||||||
import Select from "../../../Components/Inputs/Select";
|
import Select from "../../../Components/Inputs/Select";
|
||||||
import Checkbox from "../../../Components/Inputs/Checkbox";
|
import Checkbox from "../../../Components/Inputs/Checkbox";
|
||||||
import PauseCircleOutlineIcon from "@mui/icons-material/PauseCircleOutline";
|
import PauseCircleOutlineIcon from "@mui/icons-material/PauseCircleOutline";
|
||||||
import WestRoundedIcon from "@mui/icons-material/WestRounded";
|
|
||||||
import GreenCheck from "../../../assets/icons/checkbox-green.svg?react";
|
import GreenCheck from "../../../assets/icons/checkbox-green.svg?react";
|
||||||
import RedCheck from "../../../assets/icons/checkbox-red.svg?react";
|
import RedCheck from "../../../assets/icons/checkbox-red.svg?react";
|
||||||
|
import Breadcrumbs from "../../../Components/Breadcrumbs";
|
||||||
|
|
||||||
import "./index.css";
|
import "./index.css";
|
||||||
import Breadcrumbs from "../../../Components/Breadcrumbs";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders a skeleton layout.
|
* Renders a skeleton layout.
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
.page-speed-details > .MuiStack-root:last-child,
|
.page-speed-details > .MuiStack-root:last-child,
|
||||||
.page-speed-details > .MuiBox-root:nth-last-child(3) {
|
.page-speed-details > .MuiBox-root:nth-last-child(3) {
|
||||||
border: solid 1px var(--env-var-color-6);
|
border: solid 1px var(--env-var-color-6);
|
||||||
border-radius: var(--env-var-radius-2);
|
border-radius: var(--env-var-radius-1);
|
||||||
background-color: var(--env-var-color-8);
|
background-color: var(--env-var-color-8);
|
||||||
min-width: 200px;
|
min-width: 200px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,16 +11,16 @@ import {
|
|||||||
} from "../../../Utils/timeUtils";
|
} from "../../../Utils/timeUtils";
|
||||||
import axiosInstance from "../../../Utils/axiosConfig";
|
import axiosInstance from "../../../Utils/axiosConfig";
|
||||||
import Button from "../../../Components/Button";
|
import Button from "../../../Components/Button";
|
||||||
import WestRoundedIcon from "@mui/icons-material/WestRounded";
|
|
||||||
import SettingsIcon from "../../../assets/icons/settings-bold.svg?react";
|
import SettingsIcon from "../../../assets/icons/settings-bold.svg?react";
|
||||||
import LastCheckedIcon from "../../../assets/icons/calendar-check.svg?react";
|
import LastCheckedIcon from "../../../assets/icons/calendar-check.svg?react";
|
||||||
import ClockIcon from "../../../assets/icons/maintenance.svg?react";
|
import ClockIcon from "../../../assets/icons/maintenance.svg?react";
|
||||||
import IntervalCheckIcon from "../../../assets/icons/interval-check.svg?react";
|
import IntervalCheckIcon from "../../../assets/icons/interval-check.svg?react";
|
||||||
import GreenCheck from "../../../assets/icons/checkbox-green.svg?react";
|
import GreenCheck from "../../../assets/icons/checkbox-green.svg?react";
|
||||||
import RedCheck from "../../../assets/icons/checkbox-red.svg?react";
|
import RedCheck from "../../../assets/icons/checkbox-red.svg?react";
|
||||||
|
|
||||||
import "./index.css";
|
|
||||||
import PageSpeedLineChart from "../../../Components/Charts/PagespeedLineChart";
|
import PageSpeedLineChart from "../../../Components/Charts/PagespeedLineChart";
|
||||||
|
import Breadcrumbs from "../../../Components/Breadcrumbs";
|
||||||
|
import "./index.css";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Displays a box with an icon, title, and value.
|
* Displays a box with an icon, title, and value.
|
||||||
@@ -39,7 +39,8 @@ const StatBox = ({ icon, title, value }) => {
|
|||||||
className="stat-box"
|
className="stat-box"
|
||||||
direction="row"
|
direction="row"
|
||||||
gap={theme.gap.small}
|
gap={theme.gap.small}
|
||||||
p={theme.gap.ml}
|
pt={theme.gap.ml}
|
||||||
|
px={theme.gap.ml}
|
||||||
pb={theme.gap.mlplus}
|
pb={theme.gap.mlplus}
|
||||||
>
|
>
|
||||||
{icon}
|
{icon}
|
||||||
@@ -306,21 +307,11 @@ const PageSpeedDetails = () => {
|
|||||||
<SkeletonLayout />
|
<SkeletonLayout />
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<Button
|
<Breadcrumbs
|
||||||
level="tertiary"
|
list={[
|
||||||
label="Back"
|
{ name: "pagespeed", path: "/pagespeed" },
|
||||||
animate="slideLeft"
|
{ name: "details", path: `/pagespeed/${monitorId}` },
|
||||||
img={<WestRoundedIcon />}
|
]}
|
||||||
onClick={() => navigate("/pagespeed")}
|
|
||||||
sx={{
|
|
||||||
width: "fit-content",
|
|
||||||
backgroundColor: theme.palette.otherColors.fillGray,
|
|
||||||
px: theme.gap.ml,
|
|
||||||
"& svg.MuiSvgIcon-root": {
|
|
||||||
mr: theme.gap.small,
|
|
||||||
fill: theme.palette.otherColors.slateGray,
|
|
||||||
},
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
<Stack direction="row" gap={theme.gap.small}>
|
<Stack direction="row" gap={theme.gap.small}>
|
||||||
{monitor?.status ? <GreenCheck /> : <RedCheck />}
|
{monitor?.status ? <GreenCheck /> : <RedCheck />}
|
||||||
|
|||||||
Reference in new issue
Block a user