Skip to content

Commit

Permalink
fix(pci-databases): update radix-ui and cmdk
Browse files Browse the repository at this point in the history
ref: #DATATR-1793

Signed-off-by: Jonathan Perchoc <[email protected]>
  • Loading branch information
jperchoc committed Mar 5, 2025
1 parent 04821e0 commit 115496e
Show file tree
Hide file tree
Showing 5 changed files with 3,967 additions and 6,658 deletions.
7 changes: 4 additions & 3 deletions packages/manager/apps/pci-databases-analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@
"chartjs-plugin-zoom": "^2.0.1",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"cmdk": "^0.2.1",
"cmdk": "^1.0.4",
"date-fns": "^3.6.0",
"duration-fns": "^3.0.2",
"i18next": "^23.8.2",
"i18next-http-backend": "^2.4.2",
"lucide-react": "^0.334.0",
"next-themes": "^0.2.1",
"qs": "^6.11.2",
"radix-ui": "^1.1.2",
"radix-ui": "^1.1.3",
"react": "^18.2.0",
"react-chartjs-2": "^5.2.0",
"react-day-picker": "^8.10.0",
Expand All @@ -71,7 +71,8 @@
"@types/react": "^18.2.45",
"@types/react-dom": "^18.2.18",
"@vitejs/plugin-react": "^4.2.1",
"@vitest/ui": "^1.4.0",
"@vitest/coverage-v8": "^2.1.9",
"@vitest/ui": "^2.1.9",
"typescript": "^5.3.3",
"vite": "^5.4.12",
"vitest": "^2.1.9"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { vi } from 'vitest';
import '@testing-library/jest-dom';
import { PointerEvent } from './helpers/pointerEvent';

Expand All @@ -14,3 +15,6 @@ console.error = (...args) => {
}
originalConsoleError(...args);
};

const scrollMock = vi.fn();
window.HTMLElement.prototype.scrollIntoView = scrollMock;
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const Loader = ({ params, request }: ServiceCategoryLayoutProps) => {
queryFn: () => getProject(projectId),
})
.then(
() => null,
() => true,
() => redirect(`/pci/projects`),
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const Loader = async ({ params }: ServiceLayoutProps) => {
queryFn: () => getService({ projectId, serviceId }),
})
.then(
() => null,
() => true,
() =>
redirect(
`/pci/projects/${projectId}/databases-analytics/${category}/services`,
Expand Down
Loading

0 comments on commit 115496e

Please sign in to comment.