- Removed the .env file as it is no longer needed.
- Updated .gitignore to exclude .env.
- Enhanced AddProduct.vue to improve barcode input handling with a new inline button for lookup.
- Added styles for the new barcode input button in add-product.css.
- Refactored useAddProductForm to include debounce logic for barcode lookups and improved focus handling.
- Introduced constants for configuration values such as image size limits and debounce timings.
- Added unit tests for constants and barcode handling logic.
- Updated useEditProductForm to utilize new constants for image size validation.
- Updated viewport meta tag in index.html for better scaling on mobile devices.
- Added @buildyourwebapp/tauri-plugin-sharesheet dependency to package.json.
- Replaced tauri-plugin-share with tauri-plugin-sharesheet in Cargo.lock and Cargo.toml.
- Modified mobile capabilities to include sharesheet permissions.
- Updated lib.rs to initialize sharesheet plugin for mobile platforms.
- Refactored useStockManager to use shareText from sharesheet plugin instead of shareFile.
- Updated ClientId service to utilize sharesheet for sharing client IDs and improved clipboard fallback logic.
- Enhanced tests to reflect changes in sharing implementation and added new test cases for clipboard fallback scenarios.
- Added ToastHost component for displaying toast messages.
- Implemented toast service for managing success and error notifications.
- Integrated toast notifications into stock management and product editing workflows.
- Updated ClientIdModal to use toast notifications for user feedback.
- Refactored StockManager to remove status messages in favor of toast notifications.
- Added nightly cleanup service in the backend to manage stale data.
- Created migration script to add cleanup columns and indexes to the database.
- Enhanced tests for toast service and stock manager to validate new functionality.
- Implement tests for main application bootstrap in `main.test.ts`
- Create route tests to validate defined routes in `routes.test.ts`
- Add comprehensive tests for ClientId service in `ClientId.test.ts`
- Develop backend service tests to ensure correct API interactions in `backend.test.ts`
- Introduce notification service tests to verify notification handling in `notifications.test.ts`
- Implement product service tests to validate product management functionality in `products.test.ts`
- Add stock service tests to ensure stock management operations work as expected in `stocks.test.ts`
- Configure Vitest for testing environment and coverage thresholds in `vitest.config.ts`
- Updated package.json to include FontAwesome and Vue Router dependencies.
- Modified Cargo.toml and Cargo.lock to add chrono and wasm-bindgen dependencies.
- Implemented new Tauri command to calculate days left until expiry date.
- Refactored App.vue to use new Header and Footer components, and integrated barcode scanner functionality.
- Created Footer and Header components for navigation.
- Added ProductList and Scanner components with basic structure.
- Set up Vue Router for navigation between ProductList and Scanner components.
- Introduced build.rs for SQLx migration recompilation.
- Generated TypeScript bindings for Product model.
- Added main Rust application logic in `lib.rs` to handle Tauri commands.
- Created `main.rs` to serve as the entry point for the Tauri application.
- Configured Tauri settings in `tauri.conf.json` including build commands and window settings.
- Developed the main Vue component in `App.vue` to interact with the Rust backend.
- Included Vue.js assets and setup in `main.ts`.
- Defined TypeScript configurations in `tsconfig.json` and `tsconfig.node.json`.
- Configured Vite for Tauri development in `vite.config.ts`.
- Added Vue logo SVG asset for branding.
- Updated Cargo.toml to include dependencies for Axum, SQLx, dotenvy, and chrono.
- Implemented main function to initialize the application, set up database connection, and define routes.
- Added health check and database check endpoints.
- Created .env file for database configuration.
- Added initial migration script to create products table in the database.
- Defined Product and CreateProduct models for serialization and database interaction.