Skip to content

Commit

Permalink
Merge pull request #2349 from opengovern/ui-changes
Browse files Browse the repository at this point in the history
Remove Unused files
  • Loading branch information
mohamadch91 authored Jan 3, 2025
2 parents b3e403f + c77ef92 commit 45c3959
Show file tree
Hide file tree
Showing 34 changed files with 694 additions and 9,391 deletions.
481 changes: 11 additions & 470 deletions services/web-ui/src/api/api.ts

Large diffs are not rendered by default.

3,419 changes: 494 additions & 2,925 deletions services/web-ui/src/api/compliance.gen.ts

Large diffs are not rendered by default.

27 changes: 1 addition & 26 deletions services/web-ui/src/components/Layout/Sidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ import {
useInventoryApiV2AnalyticsCountList,
useInventoryApiV2AnalyticsSpendCountList,
} from '../../../api/inventory.gen'
import { useComplianceApiV1FindingsCountList } from '../../../api/compliance.gen'
import { useIntegrationApiV1ConnectionsCountList } from '../../../api/integration.gen'
import { numericDisplay } from '../../../utilities/numericDisplay'
import AnimatedAccordion from '../../AnimatedAccordion'
Expand Down Expand Up @@ -74,31 +73,7 @@ export default function Sidebar({ currentPage }: ISidebar) {
const { isAuthenticated, getAccessTokenSilently } = useAuth()
const [collapsed, setCollapsed] = useAtom(sideBarCollapsedAtom)
const preview = useAtomValue(previewAtom)
// const {
// response: spendCount,
// isLoading: spendCountIsLoading,
// error: spendCountErr,
// sendNow: sendSpend,
// } = useInventoryApiV2AnalyticsSpendCountList({}, false, workspace)
// const {
// response: assetCount,
// isLoading: assetsIsLoading,
// error: assetCountErr,
// sendNow: sendAssets,
// } = useInventoryApiV2AnalyticsCountList({}, false, workspace)
// const {
// response: findingsCount,
// isLoading: findingsIsLoading,
// error: findingsErr,
// sendNow: sendFindings,
// // } = useComplianceApiV1FindingsCountList({}, {}, false, workspace)
// const {
// response: connectionCount,
// isExecuted: connectionsIsExecuted,
// isLoading: connectionsIsLoading,
// error: connectionsErr,
// sendNow: sendConnections,
// } = useIntegrationApiV1ConnectionsCountList({}, {}, false, workspace)


const searchParams = useAtomValue(searchAtom)
const setOldUrl = useSetAtom(oldUrlAtom)
Expand Down
Loading

0 comments on commit 45c3959

Please sign in to comment.