-
-
Notifications
You must be signed in to change notification settings - Fork 314
Status Pages breadcrumbs #2061
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Status Pages breadcrumbs #2061
Changes from 2 commits
68354aa
cae3d9e
9b63016
a7fa3cc
1ede028
6383d60
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ import SkeletonLayout from "./Components/Skeleton"; | |
import StatusBar from "./Components/StatusBar"; | ||
import MonitorsList from "./Components/MonitorsList"; | ||
import Dialog from "../../../Components/Dialog"; | ||
import Breadcrumbs from "../../../Components/Breadcrumbs/index.jsx"; | ||
|
||
// Utils | ||
import { useStatusPageFetch } from "./Hooks/useStatusPageFetch"; | ||
|
@@ -28,6 +29,10 @@ const PublicStatus = () => { | |
const { t } = useTranslation(); | ||
const location = useLocation(); | ||
const navigate = useNavigate(); | ||
const crumbs = [ | ||
{ name: t("statusPages"), path: "/status" }, | ||
{ name: t("details"), path: "" }, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ideally the detail's path should also be a link. Because lets say we have a new page after details in future then we should not worry about add a new url here, No empty string is needed. Good practice would be to add url to avoid confusion in future. EX:
|
||
]; | ||
|
||
const [statusPage, monitors, isLoading, networkError, fetchStatusPage] = | ||
useStatusPageFetch(false, url); | ||
|
@@ -123,9 +128,9 @@ const PublicStatus = () => { | |
return ( | ||
<Stack | ||
gap={theme.spacing(10)} | ||
alignItems="center" | ||
sx={{ ...sx, position: "relative" }} | ||
> | ||
{!isPublic && <Breadcrumbs list={crumbs} />} | ||
<ControlsHeader | ||
statusPage={statusPage} | ||
isDeleting={isDeleting} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -375,5 +375,8 @@ | |
"infrastructureMonitorUpdated": "Infrastructure monitor updated successfully!", | ||
"errorInvalidTypeId": "Invalid notification type provided", | ||
"errorInvalidFieldId": "Invalid field ID provided", | ||
"inviteNoTokenFound": "No invite token found" | ||
"inviteNoTokenFound": "No invite token found", | ||
"details": "Details", | ||
"create": "Create", | ||
"statusPages": "Status Pages" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's give these more descriptive names
sometning like that so it is obvious what these are for. |
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nbgslv , I feel this has to be /status/uptime/create. Let me know if I am missing anything as we have no page which is /status/create.
try navigating to create page and click on create present in the breadcrumbs itself.