Skip to content

Develop - #12

Merged
dvduardo merged 12 commits into
mainfrom
develop
Apr 5, 2026
Merged

Develop#12
dvduardo merged 12 commits into
mainfrom
develop

Conversation

@dvduardo

@dvduardo dvduardo commented Apr 5, 2026

Copy link
Copy Markdown
Owner

No description provided.

dvduardo added 12 commits April 2, 2026 15:06
…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.
- 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
@dvduardo
dvduardo merged commit 37c7710 into main Apr 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant