Skip to content

Commit

Permalink
feat: add announcements route and update breadcrumbs for status pages
Browse files Browse the repository at this point in the history
  • Loading branch information
simlarsen committed Jan 28, 2025
1 parent 4303cf0 commit a0d0323
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Dashboard/src/Utils/Breadcrumbs/StatusPagesBreadcrumbs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ export function getStatusPagesBreadcrumbs(
"Status Pages",
"View Status Page",
]),
...BuildBreadcrumbLinksByTitles(PageMap.STATUS_PAGE_ANNOUNCEMENTS, [
"Project",
"Status Pages",
"All Announcements",
]),
...BuildBreadcrumbLinksByTitles(PageMap.STATUS_PAGE_VIEW_ANNOUNCEMENTS, [
"Project",
"Status Pages",
Expand Down
5 changes: 4 additions & 1 deletion Dashboard/src/Utils/RouteMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ export const DashboardsRoutePath: Dictionary<string> = {
};

export const StatusPagesRoutePath: Dictionary<string> = {
[PageMap.STATUS_PAGE_ANNOUNCEMENTS]: "announcements",
[PageMap.STATUS_PAGE_VIEW]: `${RouteParams.ModelID}`,
[PageMap.STATUS_PAGE_VIEW_BRANDING]: `${RouteParams.ModelID}/branding`,
[PageMap.STATUS_PAGE_VIEW_OWNERS]: `${RouteParams.ModelID}/owners`,
Expand Down Expand Up @@ -825,7 +826,9 @@ const RouteMap: Dictionary<Route> = {
),

[PageMap.STATUS_PAGE_ANNOUNCEMENTS]: new Route(
`/dashboard/${RouteParams.ProjectID}/status-page/announcements`,
`/dashboard/${RouteParams.ProjectID}/status-page/${
StatusPagesRoutePath[PageMap.STATUS_PAGE_ANNOUNCEMENTS]
}`,
),


Expand Down

0 comments on commit a0d0323

Please sign in to comment.