Conversation
…g, and photo utilities - Implement tests for AuthContext including login, registration, and logout functionalities. - Create tests for JWT token generation and verification, ensuring proper handling of valid and invalid tokens. - Add CORS header tests to validate response headers and preflight request handling. - Introduce middleware tests to check authentication flow and request handling. - Implement password hashing and verification tests to ensure security measures are effective. - Add tests for photo helper functions to validate image source generation from various inputs. - Update vitest configuration to include new test paths and coverage reporting. - Adjust setup file to streamline global test configurations.
- Moved backend-related imports from "@/backend" to "@/server" for consistency. - Updated API routes to use the new import paths. - Created a new AuthContext for managing user authentication state. - Implemented custom hooks for managing custom fields and items. - Introduced a centralized API client for handling requests. - Added error handling utilities for better error messaging. - Implemented JWT authentication with cookie management. - Set up CORS handling for API responses. - Created server-side scripts for starting the application and managing Prisma migrations. - Added unit tests for various components, including authentication and CORS. - Updated Playwright configuration for end-to-end testing.
…ntication; remove unused tests
- Implemented ItemCard component for displaying item details with image gallery and actions (edit, delete). - Created ItemForm component for adding and editing items, including custom fields and photo uploads. - Added PhotoUpload component to handle image uploads with validation and optimization. - Introduced ImageGalleryModal for viewing images in a modal. - Developed AnimatedBackground component for enhanced UI experience. - Implemented ClientProvider for handling unhandled promise rejections. - Added ToastProvider for displaying notifications. - Created utility functions for photo upload validation and optimization. - Defined schemas for item and authentication validation using Zod. - Set up logging for requests and errors in the server.
- Implement category selection and filtering in the dashboard. - Add functionality to create new categories directly from the item form. - Update item schema to include category information. - Enhance item card to display category badges and handle list/grid view. - Create API endpoints for fetching and creating categories. - Introduce category theme management for visual consistency. - Update item fetching logic to support category filtering. - Seed script added for initial user setup with test data.
…nality - Updated ItemCard component to improve layout and visual design for grid and list views. - Added image gallery functionality and improved image loading experience. - Enhanced ItemForm component with better styling, including new sections for category and main information. - Improved photo upload interface with clearer instructions and visual feedback. - Updated dashboard pages with animated backgrounds and improved header design. - Refactored global styles for better typography and scrollbar handling. - Updated dependencies and adjusted component imports for consistency.
- Introduced item status management with options: "owned", "wishlist", and "loaned". - Added favorite functionality to items, allowing users to mark items as favorites. - Updated ItemCard component to display item status and favorite status. - Enhanced ItemForm to include status selection and favorite toggle. - Modified API endpoints and data models to support new fields for item status and favorite status. - Updated item validation schemas to include new fields. - Enhanced tests to cover new item status and favorite functionalities.
feat: modify home page to render LandingHome component instead of redirecting fix: enhance API client to prevent redirect on auth requests for 401 errors feat: add error message translations for better user feedback fix: update Next.js headers configuration for non-production environments chore: update database schema test: improve authentication e2e tests for better visibility and error handling test: enhance dashboard e2e tests for item visibility and search functionality test: refactor auth helper functions for API requests in e2e tests test: add unit tests for auth schemas to validate input test: add unit tests for category theme functionality test: add unit tests for error message handling test: add unit tests for item schemas to validate creation and updates test: add unit tests for item status functionality test: add unit tests for photo upload functionality test: add unit tests for query keys generation
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.