Skip to content

Commit e89fee1

Browse files
fix: okta integration filtering (#7226)
1 parent c52ae5b commit e89fee1

File tree

1 file changed

+8
-4
lines changed
  • clients/admin-ui/src/features/data-discovery-and-detection/action-center

1 file changed

+8
-4
lines changed

clients/admin-ui/src/features/data-discovery-and-detection/action-center/MonitorList.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import {
55
Pagination,
66
useChakraToast as useToast,
77
} from "fidesui";
8-
import { NextPage } from "next";
98
import { useEffect, useState } from "react";
109

1110
import { DebouncedSearchInput } from "~/features/common/DebouncedSearchInput";
@@ -18,10 +17,14 @@ import { EmptyMonitorsResult } from "~/features/data-discovery-and-detection/act
1817
import { MonitorResult } from "~/features/data-discovery-and-detection/action-center/MonitorResult";
1918
import { MONITOR_TYPES } from "~/features/data-discovery-and-detection/action-center/utils/getMonitorType";
2019

21-
const MonitorList: NextPage = () => {
20+
const MonitorList = () => {
2221
const toast = useToast();
2322
const {
24-
flags: { webMonitor: webMonitorEnabled, heliosV2: heliosV2Enabled },
23+
flags: {
24+
webMonitor: webMonitorEnabled,
25+
heliosV2: heliosV2Enabled,
26+
oktaMonitor: oktaMonitorEnabled,
27+
},
2528
} = useFeatures();
2629
const { paginationProps, pageIndex, pageSize, resetPagination } =
2730
useAntPagination();
@@ -31,6 +34,7 @@ const MonitorList: NextPage = () => {
3134
const monitorTypes = [
3235
...(webMonitorEnabled ? [MONITOR_TYPES.WEBSITE] : []),
3336
...(heliosV2Enabled ? [MONITOR_TYPES.DATASTORE] : []),
37+
...(oktaMonitorEnabled ? [MONITOR_TYPES.INFRASTRUCTURE] : []),
3438
] as const;
3539

3640
const { data, isError, isLoading } = useGetAggregateMonitorResultsQuery({
@@ -60,7 +64,7 @@ const MonitorList: NextPage = () => {
6064
!!monitor.key && typeof monitor.key !== "undefined" ? [monitor] : [],
6165
) || [];
6266

63-
if (!webMonitorEnabled && !heliosV2Enabled) {
67+
if (!webMonitorEnabled && !heliosV2Enabled && !oktaMonitorEnabled) {
6468
return <DisabledMonitorsPage />;
6569
}
6670

0 commit comments

Comments
 (0)