refactor: Update telemetry exception view layout components

This commit is contained in:
Simon Larsen 2024-08-26 06:45:33 +01:00
parent 3c296f72d8
commit 92e519c49e
No known key found for this signature in database
GPG Key ID: 96C5DCA24769DBCA
5 changed files with 7 additions and 6 deletions

View File

@ -18,7 +18,7 @@ import ExceptionsTable from "../../../../../Components/Exceptions/ExceptionsTabl
const MetricsTablePage: FunctionComponent<
PageComponentProps
> = (): ReactElement => {
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
const modelId: ObjectID = Navigation.getLastParamAsObjectID(2);
const [telemetryService, setTelemetryService] =
useState<TelemetryService | null>(null);

View File

@ -18,7 +18,7 @@ import ExceptionsTable from "../../../../../Components/Exceptions/ExceptionsTabl
const MetricsTablePage: FunctionComponent<
PageComponentProps
> = (): ReactElement => {
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
const modelId: ObjectID = Navigation.getLastParamAsObjectID(2);
const [telemetryService, setTelemetryService] =
useState<TelemetryService | null>(null);

View File

@ -18,7 +18,7 @@ import ExceptionsTable from "../../../../../Components/Exceptions/ExceptionsTabl
const MetricsTablePage: FunctionComponent<
PageComponentProps
> = (): ReactElement => {
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
const modelId: ObjectID = Navigation.getLastParamAsObjectID(2);
const [telemetryService, setTelemetryService] =
useState<TelemetryService | null>(null);

View File

@ -419,7 +419,7 @@ const TelemetryRoutes: FunctionComponent<ComponentProps> = (
<PageRoute
path={RouteUtil.getLastPathForKey(
PageMap.TELEMETRY_SERVICES_VIEW_EXCEPTIONS_UNRESOLVED,
PageMap.TELEMETRY_SERVICES_VIEW_EXCEPTIONS_UNRESOLVED, 2
)}
element={
<Suspense fallback={Loader}>
@ -437,7 +437,7 @@ const TelemetryRoutes: FunctionComponent<ComponentProps> = (
<PageRoute
path={RouteUtil.getLastPathForKey(
PageMap.TELEMETRY_SERVICES_VIEW_EXCEPTIONS_RESOLVED,
PageMap.TELEMETRY_SERVICES_VIEW_EXCEPTIONS_RESOLVED,2
)}
element={
<Suspense fallback={Loader}>
@ -455,7 +455,7 @@ const TelemetryRoutes: FunctionComponent<ComponentProps> = (
<PageRoute
path={RouteUtil.getLastPathForKey(
PageMap.TELEMETRY_SERVICES_VIEW_EXCEPTIONS_ARCHIVED,
PageMap.TELEMETRY_SERVICES_VIEW_EXCEPTIONS_ARCHIVED,2
)}
element={
<Suspense fallback={Loader}>

View File

@ -108,6 +108,7 @@ export function getTelemetryBreadcrumbs(path: string): Array<Link> | undefined {
PageMap.TELEMETRY_SERVICES_VIEW_EXCEPTIONS,
["Project", "Telemetry", "Services", "View Service", "Exceptions"],
),
...BuildBreadcrumbLinksByTitles(
PageMap.TELEMETRY_SERVICES_VIEW_EXCEPTIONS_UNRESOLVED,
[