[LOCKLITE-65] Wipe codebase and add tests#40
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR implements a comprehensive codebase cleanup by removing user-related functionality and associated infrastructure. The changes eliminate the user management system while adding comprehensive test coverage for remaining components.
- Removes all user-related models, DTOs, adapters, repositories, and use cases
- Removes user UI components and related pages
- Adds comprehensive test coverage for remaining components including ThemeRegistry, useApi hook, common UI components, and core services
- Updates API error handling import paths to use abstract base classes
Reviewed Changes
Copilot reviewed 26 out of 34 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/units/modules/ui/providers/ThemeRegistry.test.tsx | Adds test coverage for theme provider functionality |
| tests/units/modules/ui/hooks/useApi.test.tsx | Adds comprehensive test coverage for API hook |
| tests/units/modules/ui/components/users/molecules/users-list.test.tsx | Removes test file for deleted UsersList component |
| tests/units/modules/ui/components/common/*.test.tsx | Adds test coverage for common UI components |
| tests/units/modules/shared/services/request.service.test.ts | Adds comprehensive test coverage for HTTP request service |
| tests/units/modules/api/utils/handle-api-request.test.ts | Adds test coverage for API request handler |
| tests/units/modules/api/usecases/users/get-all-users.test.ts | Removes test file for deleted use case |
| tests/units/modules/api/errors/abstract/http-error.test.ts | Adds test coverage for abstract HTTP error class |
| tests/units/modules/api/adapters/user.test.ts | Removes test file for deleted user adapter |
| src/modules/ui/gateways/user.gateway.ts | Removes user gateway implementation |
| src/modules/ui/components/users/*.tsx | Removes all user-related UI components |
| src/modules/shared/dto/responses/get-all-users.response.dto.ts | Removes user response DTO |
| src/modules/shared/dto/models/user.model.dto.ts | Removes user model DTO |
| src/modules/api/utils/handle-api-request.ts | Updates import path for HttpError |
| src/modules/api/usecases/users/get-all-users.usecase.ts | Removes user use case implementation |
| src/modules/api/repositories/user.repository.ts | Removes user repository |
| src/modules/api/errors/users-not-found.error.ts | Removes user-specific error class |
| src/modules/api/adapters/user.adapter.ts | Removes user adapter |
| src/app/ui/page.tsx | Simplifies homepage by removing content |
| src/app/ui/hello-world/page.tsx | Removes hello world page |
| src/app/ui/hello-world/layout.tsx | Removes hello world layout |
| src/app/api/users/route.ts | Removes users API endpoint |
| prisma/schema.prisma | Removes database models |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.