Closed joshunrau closed 1 month ago
[!CAUTION]
Review failed
The pull request is closed.
The changes in this pull request involve significant updates across multiple files, primarily focusing on the transition from @databank/types
to @databank/core
for type imports, reflecting a restructuring of the codebase. Additionally, there are updates to various configuration files, including Dockerfiles and package.json files, which enhance build processes and dependency management. The introduction of TypeScript configurations and the removal of outdated files further streamline the project structure. Overall, these modifications aim to improve type safety, dependency management, and code organization.
File | Change Summary |
---|---|
.nvmrc |
Node.js version updated from lts/iron to lts/jod . |
api/Dockerfile |
Base image changed to node:lts-alpine , installation commands updated to use pnpm , and restructuring of build stages. |
api/package.json |
Scripts updated to use TypeScript files, new start script added, and multiple dependencies updated to newer versions. |
api/prisma/schema.prisma |
Added binaryTargets property to generator client . |
api/scripts/build.ts |
Enhanced type safety, updated output file handling, and refined asynchronous operations. |
api/scripts/dev.ts |
Updated nodemon invocation to use an object-based configuration. |
api/src/app.module.ts |
Removed ValidationPipe import and provider from the module. |
api/src/auth/__tests__/auth.service.spec.ts |
Updated import statement for types from @databank/types to @databank/core . |
api/src/auth/__tests__/stubs/current-user.stub.ts |
Updated import source for CurrentUser type. |
api/src/auth/auth.controller.ts |
No functional changes; minor formatting adjustment. |
api/src/auth/auth.guard.ts |
Updated import statement for types from @databank/types to @databank/core . |
api/src/auth/auth.module.ts |
Minor formatting change in class declaration. |
api/src/auth/auth.service.ts |
Updated import paths for types from @databank/types to @databank/core . |
api/src/auth/dto/create-account.dto.ts |
Validation logic changed from decorators to zod validation schema. |
api/src/auth/dto/login-request.dto.ts |
Updated validation mechanism using zod and changed import path for LoginCredentials . |
api/src/auth/dto/verify-account.dto.ts |
Validation changed to zod schema for the code property. |
api/src/core/decorators/route-access.decorator.ts |
Updated import for UserRole type. |
api/src/core/decorators/validate-dto.decorator.ts |
File removed. |
api/src/datasets/datasets.controller.ts |
Updated import paths for types from @databank/types to @databank/core . |
api/src/datasets/datasets.service.ts |
Updated import paths for types from @databank/types to @databank/core . |
api/src/docs.ts |
Updated contact information and API version in documentation setup. |
api/src/i18n/i18n.module.ts |
Minor formatting change in class declaration. |
api/src/i18n/i18n.service.ts |
Updated import for Locale type. |
api/src/mail/mail.module.ts |
Minor formatting change in class declaration. |
api/src/main.ts |
Updated import for NestExpressApplication and added shutdown hooks. |
api/src/projects/projects.controller.ts |
Updated import paths for types from @databank/types to @databank/core . |
api/src/projects/projects.service.ts |
Updated import paths for types from @databank/types to @databank/core . |
api/src/tabular-data/tabular-data.service.ts |
Updated import paths for types from @databank/types to @databank/core . |
api/src/typings/express.d.ts |
Updated import paths for types from @databank/types to @databank/core . |
api/src/users/__tests__/users.service.spec.ts |
Updated test cases for asynchronous behavior. |
core/package.json |
New package declaration for @databank/core created. |
core/src/index.ts |
Exported PermissionLevel type for broader accessibility. |
core/tsconfig.json |
New TypeScript configuration file created. |
docker-compose.yaml |
Minor formatting changes for consistency. |
package.json |
Updated package manager version, added engine requirements, and modified dependencies. |
pnpm-workspace.yaml |
Added dependencies and updated package list. |
types/package.json |
File removed. |
types/tsconfig.json |
File removed. |
web/.gitignore |
File removed. |
web/.storybook/main.ts |
Updated type declaration for config and added new story entry. |
web/Caddyfile |
Configuration block removed. |
web/Dockerfile |
Significant restructuring and updates to the build process. |
web/index.html |
Updated document title and simplified body tag. |
web/package.json |
Updated dependency versions and removed several packages. |
web/src/components/ErrorPage.tsx |
Minor formatting adjustment in className. |
web/src/components/Heading.tsx |
Replaced twMerge with cn for class name management. |
web/src/components/Logo.tsx |
Replaced clsx with cn for class name management. |
web/src/features/auth/components/ConfirmEmailCodeInput.tsx |
Updated class name management and validation logic for pasted input. |
web/src/features/auth/components/LoginForm.tsx |
Updated import for LoginCredentials type. |
web/src/features/auth/pages/ConfirmEmailPage.tsx |
Updated import paths for types from @databank/types to @databank/core . |
web/src/features/auth/pages/LoginPage.tsx |
Updated import paths for types and modified navigation logic. |
web/src/features/dashboard/pages/DashboardPage.tsx |
Minor reordering of class names in JSX. |
web/src/features/dataset/components/DatasetCard.tsx |
Updated import paths for DatasetCardProps type. |
web/src/features/dataset/components/DatasetPagination.tsx |
Updated import paths and reordered class names in JSX. |
web/src/features/dataset/components/DatasetTable.tsx |
Updated import paths and reordered class names in JSX. |
web/src/features/dataset/components/ManagerCard.tsx |
Updated import for TUser type. |
web/src/features/dataset/components/PublicDatasetCard.tsx |
Updated import paths for DatasetCardProps type. |
web/src/features/dataset/pages/EditDatasetInfoPage.tsx |
Updated import paths and reordered class names in JSX. |
web/src/features/dataset/pages/ViewDatasetsPage.tsx |
Updated import paths for DatasetCardProps type. |
web/src/features/dataset/pages/ViewOneDatasetPage.tsx |
Updated import paths for types. |
web/src/features/dataset/pages/ViewOnePublicDatasetPage.tsx |
Updated import paths for types. |
web/src/features/dataset/pages/ViewPublicDatasetsPage.tsx |
Updated import paths for DatasetCardProps type. |
web/src/features/landing/components/Hero.tsx |
Minor reordering of class names in JSX. |
web/src/features/landing/components/LandingHeader.tsx |
Replaced clsx with cn for class name management. |
web/src/features/projects/components/UserCard.tsx |
Updated import paths for TUser type. |
web/src/features/projects/pages/AddProjectDatasetColumnPage.tsx |
Updated import paths for types. |
web/src/features/projects/pages/AddProjectDatasetPage.tsx |
Updated import paths for DatasetCardProps type. |
web/src/features/projects/pages/EditProjectInfoPage.tsx |
Updated import paths and reordered class names in JSX. |
web/src/features/projects/pages/ManageProjectDatasetPage.tsx |
Updated import paths for types. |
web/src/features/projects/pages/ViewOneProjectDatasetPage.tsx |
Updated import paths for types. |
web/src/features/projects/pages/ViewOneProjectPage.tsx |
Updated import paths for DatasetCardProps type. |
web/src/features/setup/components/SetupForm.tsx |
Updated import paths for SetupDto type. |
web/src/features/setup/pages/SetupPage.tsx |
Updated import paths for SetupDto type. |
web/src/features/shared/pages/SharedPage.tsx |
Updated import paths for DatasetInfo type. |
web/src/stores/auth-store.ts |
Updated import paths for CurrentUser type. |
sequenceDiagram
participant User
participant API
participant Database
User->>API: Request to create account
API->>Database: Save user data
Database-->>API: Confirmation of save
API-->>User: Account created successfully
User->>API: Request to login
API->>Database: Validate user credentials
Database-->>API: User validation result
API-->>User: Login successful, return token
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
@databank/core
module, consolidating type definitions and enhancing accessibility.zod
library for improved data validation.Bug Fixes
Documentation
Refactor
Chores