whtvrboo
653788cfba
Merge pull request #2 from whtvrboo/feat/frontend-tests
...
feat: Add comprehensive unit tests for Vue frontend
2025-05-21 21:08:10 +02:00
google-labs-jules[bot]
c0dcccd970
feat: Add comprehensive unit tests for Vue frontend
...
This commit introduces a suite of unit tests for the Vue.js frontend,
significantly improving code coverage and reliability.
Key areas covered:
- **Setup**: Configured Vitest and @vue/test-utils.
- **Core UI Components**: Added tests for SocialLoginButtons and NotificationDisplay.
- **Pinia Stores**: Implemented tests for auth, notifications, and offline stores,
including detailed testing of actions, getters, and state management.
Offline store tests were adapted to its event-driven design.
- **Services**:
- `api.ts`: Tested Axios client config, interceptors (auth token refresh),
and wrapper methods.
- `choreService.ts` & `groupService.ts`: Tested all existing service
functions for CRUD operations, mocking API interactions.
- **Pages**:
- `AccountPage.vue`: Tested rendering, data fetching, form submissions
(profile, password, preferences), and error handling.
- `ChoresPage.vue`: Tested rendering, chore display (personal & grouped),
CRUD modals, and state handling (loading, error, empty).
- `LoginPage.vue`: Verified existing comprehensive tests.
These tests provide a solid foundation for frontend testing. The next planned
step is to enhance E2E tests using Playwright.
2025-05-21 19:07:34 +00:00
mohamad
0204fb6f3a
Add .env to .gitignore to prevent environment configuration files from being tracked
2025-05-21 20:23:57 +02:00
Mohamad.Elsena
29ccab2f7e
feat: Implement chore management feature with personal and group chores
...
This commit introduces a comprehensive chore management system, allowing users to create, manage, and track both personal and group chores. Key changes include:
- Addition of new API endpoints for personal and group chores in `be/app/api/v1/endpoints/chores.py`.
- Implementation of chore models and schemas to support the new functionality in `be/app/models.py` and `be/app/schemas/chore.py`.
- Integration of chore services in the frontend to handle API interactions for chore management.
- Creation of new Vue components for displaying and managing chores, including `ChoresPage.vue` and `PersonalChoresPage.vue`.
- Updates to the router to include chore-related routes and navigation.
This feature enhances user collaboration and organization within shared living environments, aligning with the project's goal of streamlining household management.
2025-05-21 18:18:22 +02:00
Mohamad.Elsena
ed222c840a
Remove obsolete Alembic migration files related to chore tables and assignments. This cleanup eliminates unused migration scripts that are no longer needed in the project.
2025-05-21 13:38:00 +02:00
whtvrboo
04b0ad7059
Merge pull request #1 from whtvrboo/feat/chore-management-backend-core
...
feat: Initial backend setup for Chore Management (Models, Migrations,…
2025-05-21 13:23:07 +02:00
google-labs-jules[bot]
16c9abb16a
feat: Initial backend setup for Chore Management (Models, Migrations, Schemas, Chore CRUD)
...
I've implemented the foundational backend components for the chore management feature.
Key changes include:
- Definition of `Chore` and `ChoreAssignment` SQLAlchemy models in `be/app/models.py`.
- Addition of corresponding relationships to `User` and `Group` models.
- Creation of an Alembic migration script (`manual_0001_add_chore_tables.py`) for the new database tables. (Note: Migration not applied in sandbox).
- Implementation of a utility function `calculate_next_due_date` in `be/app/core/chore_utils.py` for determining chore due dates based on recurrence rules.
- Definition of Pydantic schemas (`ChoreCreate`, `ChorePublic`, `ChoreAssignmentCreate`, `ChoreAssignmentPublic`, etc.) in `be/app/schemas/chore.py` for API data validation.
- Implementation of CRUD operations (create, read, update, delete) for Chores in `be/app/crud/chore.py`.
This commit lays the groundwork for adding Chore Assignment CRUD operations and the API endpoints for both chores and their assignments.
2025-05-21 09:28:38 +00:00
Mohamad.Elsena
185e89351e
Update expense creation to include current user ID for better tracking. Introduce a utility function to round monetary values to two decimal places. Enhance ListDetailPage styles by adding overflow handling for improved UI layout.
2025-05-21 09:34:51 +02:00
Mohamad
17bebbfab8
Refactor UI styles across multiple pages to enhance consistency and responsiveness. Update background colors to use CSS variables for improved theming in GroupDetailPage, GroupsPage, ListDetailPage, and ListsPage. Ensure all components align with the overall design system for a cohesive user experience.
2025-05-20 10:42:55 +02:00
Mohamad
fc355077ab
Enhance database connection management by adding pool_pre_ping to ensure connections are live. Update connection pool settings for improved reliability.
2025-05-20 10:42:34 +02:00
mohamad
eb19230b22
Refactor frontend components and styles for improved UI consistency and responsiveness. Update HTML structure in index.html, enhance SCSS variables in valerie-ui.scss, and implement new layout styles across various pages. Adjust component props and event emissions for better data handling in CreateListModal and ConflictResolutionDialog. Add Material Icons for better visual representation in navigation. Ensure all changes align with the overall design system for a cohesive user experience.
2025-05-20 01:19:52 +02:00
mohamad
c8cdbd571e
Add FastAPI database transaction management strategy and update requirements
...
Introduce a new technical specification for managing database transactions in FastAPI, ensuring ACID compliance through standardized practices. The specification outlines transaction handling for API endpoints, CRUD functions, and non-API operations, emphasizing the use of context managers and error handling.
Additionally, update the requirements file to include new testing dependencies for async operations, enhancing the testing framework for the application.
2025-05-20 01:19:37 +02:00
mohamad
d6d19397d3
Refactor authentication and user management to standardize session handling across OAuth flows. Update configuration to include default token type for JWT authentication. Enhance error handling with new exceptions for user operations, and clean up test cases for better clarity and reliability.
2025-05-20 01:19:21 +02:00
mohamad
323ce210ce
Refactor database session management across multiple API endpoints to utilize a transactional session, enhancing consistency in transaction handling. Update dependencies in costs, financials, groups, health, invites, items, and lists modules for improved error handling and reliability.
2025-05-20 01:19:06 +02:00
mohamad
98b2f907de
Refactor CRUD operations across multiple modules to standardize transaction handling using context managers, improving error logging and rollback mechanisms. Enhance error handling for database operations in expense, group, invite, item, list, settlement, and user modules, ensuring specific exceptions are raised for integrity and connection issues.
2025-05-20 01:18:49 +02:00
mohamad
e4175db4aa
Implement test fixtures for async database sessions and enhance test coverage for CRUD operations. Introduce mock settings for financial endpoints and improve error handling in user and settlement tests. Refactor existing tests to utilize async mocks for better reliability and clarity.
2025-05-20 01:18:31 +02:00
mohamad
2b7816cf33
Update user model migration to include secure password hashing; set default hashed password for existing users. Refactor database session management for improved transaction handling and ensure session closure after use.
2025-05-20 01:17:47 +02:00
mohamad
5abe7839f1
Enhance configuration and error handling in the application; add new error messages for OCR and authentication processes. Refactor database session management to include transaction handling, and update models to track user creation for expenses and settlements. Update API endpoints to improve cost-sharing calculations and adjust invite management routes for clarity.
2025-05-17 13:56:17 +02:00
mohamad
c2aa62fa03
Update user model migration to set invalid password placeholder; enhance invite management with new endpoints for active invites and improved error handling in group invite creation. Refactor frontend to fetch and display active invite codes.
2025-05-16 22:31:44 +02:00
mohamad
f2ac73502c
Enhance OAuth token handling in authentication flow; update frontend to support access and refresh tokens. Refactor auth store to manage refresh token state and improve token storage logic.
2025-05-16 22:08:56 +02:00
mohamad
9ff293b850
Ensure database transaction is committed after list creation in the API endpoint; improve reliability of list creation process.
2025-05-16 22:08:47 +02:00
mohamad
7a88ea258a
Refactor database session management and exception handling across CRUD operations; streamline transaction handling in expense, group, invite, item, list, settlement, and user modules for improved reliability and clarity. Introduce specific operation errors for better error reporting.
2025-05-16 21:54:29 +02:00
mohamad
515534dcce
Add conflict resolution for list creation and updates; implement offline action handling for list items. Enhance service worker with background sync capabilities and improve UI for offline states.
2025-05-16 02:07:41 +02:00
mohamad
3f0cfff9f1
Refactor authentication endpoints and user management; update CORS settings and JWT handling for improved security and compatibility with FastAPI-Users. Remove deprecated user-related endpoints and streamline API structure.
2025-05-14 01:04:09 +02:00
mohamad
72b988b79b
Refactor authentication and database session handling; update user schemas for enhanced functionality and compatibility with FastAPI-Users.
2025-05-14 00:24:51 +02:00
mohamad
1c08e57afd
fastapi-users, oauth, docker support, cleanup
2025-05-14 00:10:31 +02:00
mohamad
29682b7e9c
Refactor input elements for consistency and readability; update styles for better alignment and spacing in SignupPage and ListDetailPage.
2025-05-13 22:46:40 +02:00
mohamad
18f759aa7c
Add Sentry integration for error tracking; update requirements and configuration files. Introduce new Alembic migration for missing indexes and constraints in the database schema.
2025-05-13 21:45:45 +02:00
mohamad
9583aa4bab
Remove repomix-output.xml file; update package.json and package-lock.json to include Supabase dependencies for enhanced authentication and real-time features.
2025-05-13 21:29:17 +02:00
mohamad
cacfb2a5e8
commit i guess
2025-05-13 20:33:02 +02:00
mohamad
227a3d6186
migrate to vue+vueuse+valerieui bc quasar customisation is sad
2025-05-13 19:23:15 +02:00
mohamad
9230d1f626
Remove ExampleComponent and example-store files
2025-05-09 00:11:02 +02:00
mohamad
5a910a29e2
Refactor data types in ConflictResolutionDialog and OfflineIndicator components for improved type safety; update OfflineAction interface to use 'unknown' instead of 'any' for data property, and enhance action label handling in OfflineIndicator for better clarity.
2025-05-09 00:10:37 +02:00
mohamad
db5f2d089e
Implement offline functionality with conflict resolution; add OfflineIndicator component for user notifications, integrate offline action management in the store, and enhance service worker caching strategies for improved performance.
2025-05-08 23:52:11 +02:00
mohamad
7bbec7ad5f
Add cost summary feature to ListDetailPage; implement API endpoints for costs and enhance UI with a dialog for displaying cost details, including user balances and total costs.
2025-05-08 23:38:07 +02:00
mohamad
f6a50e0d6a
Update costs router in API to include prefix for improved endpoint organization and clarity.
2025-05-08 23:37:54 +02:00
mohamad
4283fe8a19
Refactor axios error handling to throw new Error instances for better stack trace clarity; update component lifecycle methods in AccountPage, ListsPage, and ListDetailPage to use void for asynchronous calls; adjust polling interval type in ListDetailPage for improved type safety.
2025-05-08 23:28:33 +02:00
mohamad
0dbee3bb4b
Refactor logging in item API endpoints to use a local variable for user email; enhance clarity and maintainability of log messages. Update transaction management in item CRUD operations to ensure proper commit handling and version conflict checks.
2025-05-08 23:27:51 +02:00
mohamad
d99aef9d11
Add price input field for completed items in ListDetailPage; update item API endpoint to use new configuration; ensure price handling is consistent and type-safe during updates.
2025-05-08 23:21:12 +02:00
mohamad
8b6ddb91f8
Update ListDetailPage to change item quantity type from number to string; enhance logging for API calls and component lifecycle events for better debugging.
2025-05-08 22:53:38 +02:00
mohamad
e484c9e9a8
Enhance error handling and transaction management in item creation; explicitly commit changes and rollback on exceptions to ensure database integrity.
2025-05-08 22:53:26 +02:00
mohamad
f52b47f6df
Refactor CRUD operations in group, item, and list modules to remove unnecessary transaction context; enhance error handling and improve code readability. Update API endpoint for OCR processing in configuration and add confirmation dialogs for item actions in ListDetailPage.
2025-05-08 22:34:07 +02:00
mohamad
262505c898
Refactor API integration across multiple components; introduce centralized API configuration, enhance error handling, and improve type safety in API calls for better maintainability and user experience.
2025-05-08 22:22:46 +02:00
mohamad
7836672f64
Refactor API calls in GroupDetailPage and GroupsPage components to remove versioning; enhance error handling for group creation and joining processes.
2025-05-08 21:59:13 +02:00
mohamad
fe252cfac8
Refactor CreateListModal and GroupDetailPage components; improve error handling and update API calls in ListsPage and ListDetailPage for better type safety and user feedback.
2025-05-08 21:35:02 +02:00
Mohamad
4f32670bda
missing import
2025-05-08 19:12:23 +02:00
Mohamad
ff25af26f5
bugfix: hashed_password to password_hash
2025-05-08 19:12:00 +02:00
Mohamad
6198a29768
migrations fresh start
2025-05-08 19:11:21 +02:00
Mohamad.Elsena
c7fdb60130
Add database error messages and improve exception handling in CRUD operations
2025-05-08 16:00:12 +02:00
Mohamad.Elsena
5186892df6
Add CreateListModal and ListDetailPage components; enhance ListsPage with loading/error states and group filtering
2025-05-08 15:59:28 +02:00