Commit Graph

62 Commits

Author SHA1 Message Date
William Valentin
bb70aff24f feat: Enhance ExportManager with landscape PDF support and improved graph handling 2025-08-06 12:36:56 -07:00
William Valentin
02cc60fdc3 fix: Update backup directory path in BackupManager to use BACKUP_PATH constant 2025-08-06 11:32:56 -07:00
William Valentin
7bb06fabdd feat: Implement search and filter functionality in MedTrackerApp
- Added DataFilter class for managing filtering and searching of medical data.
- Introduced SearchFilterWidget for UI controls related to search and filters.
- Integrated search and filter features into MedTrackerApp, allowing users to filter data by date range, medicine status, and pathology scores.
- Implemented quick filters for common use cases (last week, last month, high symptoms).
- Enhanced data loading and display logic to accommodate filtered data.
- Added error handling for data loading issues.
- Updated UIManager to reflect filter status in the application.
- Improved entry validation in add_new_entry method to ensure data integrity.
2025-08-06 09:55:47 -07:00
William Valentin
5a375e0d21 feat: consolidate test structure and enhance header visibility across themes 2025-08-05 15:48:15 -07:00
William Valentin
a521ed6e9a Add quick test runner and enhance run_tests script
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
- Introduced `quick_test.py` for running specific test categories (unit, integration, theme, all).
- Updated `run_tests.py` to improve test execution and reporting, including coverage.
- Removed outdated test scripts for keyboard shortcuts, menu theming, note saving, and entry updating.
- Added new test script `test_theme_changing.py` to verify theme changing functionality.
- Consolidated integration tests into `test_integration.py` for comprehensive testing of TheChart application.
- Updated theme manager to ensure color retrieval works correctly.
- Modified test constants to import from the correct module path.
2025-08-05 15:09:13 -07:00
William Valentin
df9738ab17 feat: enhance menu theming with comprehensive documentation and testing support
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
2025-08-05 14:06:42 -07:00
William Valentin
c3c88c63d2 Add theme management and settings functionality
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
- Introduced `ThemeManager` to handle application themes using `ttkthemes`.
- Added `SettingsWindow` for user preferences including theme selection and UI settings.
- Integrated theme selection into the main application with a menu for quick access.
- Enhanced UI components with custom styles based on the selected theme.
- Implemented tooltips for better user guidance across various UI elements.
- Updated dependencies to include `ttkthemes` for improved visual appeal.
2025-08-05 11:58:25 -07:00
William Valentin
86606d56b6 feat: add comprehensive keyboard shortcuts for improved navigation and productivity
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
2025-08-05 10:05:32 -07:00
William Valentin
fdcc210fc4 feat: add status bar to UI for improved user feedback and information display 2025-08-02 10:31:17 -07:00
William Valentin
b7a22524d7 Feat: add export functionality with GUI for data and graphs
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
- Implemented ExportWindow class for exporting data and graphs in various formats (JSON, XML, PDF).
- Integrated ExportManager to handle export logic.
- Added export option in the main application menu.
- Enhanced user interface with data summary and export options.
- Included error handling and success messages for export operations.
- Updated dependencies in the lock file to include reportlab and lxml for PDF generation.
2025-08-02 10:00:24 -07:00
William Valentin
156dcd1651 feat: Import LOG_CLEAR constant for logging clarity 2025-08-01 15:15:04 -07:00
William Valentin
abd1fa33cf refactor: Simplify UI creation methods by removing dynamic variants and consolidating functionality 2025-08-01 14:41:58 -07:00
William Valentin
ca1f8c976d fix: notes are saved again
feat: Add test scripts for note saving and updating functionality
2025-08-01 14:09:29 -07:00
William Valentin
41d91d9c30 feat: Center main window on screen during initialization
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
2025-08-01 13:05:24 -07:00
William Valentin
14d9943665 feat: Update medicine toggles to be unchecked by default for improved user experience
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
2025-08-01 12:53:19 -07:00
William Valentin
13a4826415 feat: Enhance DataManager and GraphManager with performance optimizations and caching 2025-08-01 12:46:51 -07:00
William Valentin
00443a540f chore: Remove obsolete test scripts and unused methods from the data manager
- Deleted test scripts for dose tracking, UI functionality, dynamic data, edit functionality, and final workflow.
- Removed the `add_medicine_dose` method from the DataManager class as it is no longer needed.
2025-07-31 11:11:21 -07:00
William Valentin
c755f0affc Add comprehensive tests for dose tracking functionality
- Implemented `test_dose_parsing_simple.py` to validate the dose parsing workflow.
- Created `test_dose_save.py` to verify the saving functionality of dose tracking.
- Added `test_dose_save_simple.py` for programmatic testing of dose saving without UI interaction.
- Developed `test_final_workflow.py` to test the complete dose tracking workflow, ensuring doses are preserved during edits.
- Enhanced `conftest.py` with a mock pathology manager for testing.
- Updated `test_data_manager.py` to include pathology manager in DataManager tests and ensure compatibility with new features.
2025-07-31 09:50:45 -07:00
William Valentin
d7d4b332d4 Add medicine management functionality with UI and data handling
- Implemented MedicineManagementWindow for adding, editing, and removing medicines.
- Created MedicineManager to handle medicine configurations, including loading and saving to JSON.
- Updated UIManager to dynamically generate medicine-related UI components based on the MedicineManager.
- Enhanced test suite with mock objects for MedicineManager to ensure proper functionality in DataManager tests.
- Added validation for medicine input fields in the UI.
- Introduced default medicine configurations for initial setup.
2025-07-30 16:01:02 -07:00
William Valentin
ea30cb88c9 feat: Update default toggle states for bupropion and propranolol to false 2025-07-30 14:46:25 -07:00
William Valentin
b76191d66d feat: Implement dose calculation fix and enhance legend feature
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
- Fixed dose calculation logic in `_calculate_daily_dose` to correctly parse timestamps with multiple colons.
- Added comprehensive test cases for various dose formats and edge cases in `test_dose_calculation.py`.
- Enhanced graph legend to display individual medicines with average dosages and track medicines without dose data.
- Updated legend styling and positioning for better readability and organization.
- Created new tests for enhanced legend functionality, including handling of medicines with and without data.
- Improved mocking for matplotlib components in tests to prevent TypeErrors.
2025-07-30 14:22:07 -07:00
William Valentin
d14d19e7d9 feat: add medicine dose graph plotting and toggle functionality with comprehensive tests
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
2025-07-30 13:18:25 -07:00
William Valentin
0a8d27957f feat: enhance symptom scale creation with improved layout and dynamic value display 2025-07-30 12:41:25 -07:00
William Valentin
b7c01bc373 Refactor method names for clarity and consistency across the application
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
- Renamed `initialize_csv` to `_initialize_csv_file` in `DataManager` for better clarity.
- Updated method calls in `GraphManager` from `_create_toggle_controls` to `_create_chart_toggles` and `_on_toggle_changed` to `_handle_toggle_changed`.
- Changed method names in `MedTrackerApp` from `on_closing` to `handle_window_closing`, `add_entry` to `add_new_entry`, and `load_data` to `refresh_data_display`.
- Adjusted corresponding test method names in `TestMedTrackerApp` to reflect the new method names.
- Updated `UIManager` method names from `setup_icon` to `setup_application_icon` and adjusted related tests accordingly.
2025-07-30 12:32:17 -07:00
William Valentin
85e30671d4 feat: Enhance dose history parsing and add unit tests for improved functionality
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
2025-07-30 10:02:17 -07:00
William Valentin
aad02f0d36 feat: Improve canvas scrolling functionality with enhanced mouse wheel event handling 2025-07-29 17:42:38 -07:00
William Valentin
30750710b8 feat: Enhance edit window UI with improved layout and scrolling functionality 2025-07-29 17:28:52 -07:00
William Valentin
387981aa47 refactor: Remove __init__.py file and associated metadata 2025-07-29 16:41:29 -07:00
William Valentin
13b2c9c416 fix: Correct dotenv loading to use dynamic directory based on execution context 2025-07-29 16:38:21 -07:00
William Valentin
2fe45e65eb chore: Bump version to 1.2.1 in project files 2025-07-29 14:52:41 -07:00
William Valentin
036b4d1215 feat: Update MedTrackerApp to correctly handle quetiapine and its dosage data 2025-07-29 14:51:29 -07:00
William Valentin
ce986db27b feat: Update DataManager to support new quetiapine medication format and adjust VSCode task command
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
2025-07-29 14:00:33 -07:00
William Valentin
2b037a83e8 Feat: Add quetiapine support to medication tracking
- Implement migration script to add quetiapine and quetiapine_doses columns to existing CSV data.
- Update DataManager to include quetiapine and quetiapine_doses in data handling.
- Modify MedTrackerApp to manage quetiapine entries and doses.
- Enhance UIManager to include quetiapine in the user interface for medication selection and display.
- Update tests to cover new quetiapine functionality, including sample data and DataManager tests.
2025-07-29 13:22:35 -07:00
William Valentin
1a6fb9fcd4 feat: Enhance Makefile with improved environment setup and cleanup commands 2025-07-29 00:07:48 -07:00
William Valentin
bce6c8c27d feat: Add comprehensive tests for punch button functionality and multiple dose handling 2025-07-28 23:10:04 -07:00
William Valentin
3df610fc95 feat: Add tests for verifying multiple dose functionality and CSV saving 2025-07-28 22:04:33 -07:00
William Valentin
01a341130e fix: Add parent window reference to dose entry error and success messages 2025-07-28 21:39:53 -07:00
William Valentin
cbf01ad3dd refactor: Remove redundant dose entry clearing and updating in save process 2025-07-28 21:35:28 -07:00
William Valentin
760aa40a8c feat: Enhance dose tracking functionality in edit window and add punch button support 2025-07-28 21:31:38 -07:00
William Valentin
e35a8af5c1 Implement dose tracking functionality and enhance CSV migration
- Added a new migration script to introduce dose tracking columns in the CSV.
- Updated DataManager to handle new dose tracking columns and methods for adding doses.
- Enhanced MedTrackerApp to support dose entry and display for each medicine.
- Modified UIManager to create a scrollable input frame with dose tracking elements.
- Implemented tests for delete functionality, dose tracking, edit functionality, and scrollable input.
- Updated existing tests to ensure compatibility with the new CSV format and dose tracking features.
2025-07-28 20:52:29 -07:00
William Valentin
9aa1188c98 Implement date uniqueness validation in DataManager and update MedTrackerApp for duplicate checks 2025-07-28 17:28:00 -07:00
William Valentin
8a0b4fcdf2 Refactor imports and improve logging in multiple modules; streamline type hints and remove redundant code 2025-07-28 12:37:43 -07:00
William Valentin
15be1733ea Set default date to today in input frame 2025-07-26 12:07:13 -07:00
William Valentin
dddf28ecc0 Update Bupropion dosage in UIManager to reflect 150/300 mg 2025-07-26 11:37:57 -07:00
William Valentin
4d11f28cad Enhance GraphManager with toggle controls for chart elements and update plotting logic based on toggle states 2025-07-25 10:30:22 -07:00
William Valentin
3abe262804 Update logging configuration and file paths in constants and init modules 2025-07-24 11:55:10 -07:00
William Valentin
879dcf78bf Simplify dotenv loading in constants.py by removing explicit path and override 2025-07-23 20:41:24 -07:00
William Valentin
2142db7093 Refactor MedTrackerApp and UI components for improved structure and readability
- Simplified initialization logic in init.py
- Consolidated testing_mode assignment
- Removed unnecessary else statements
- Created UIManager class to handle UI-related tasks
- Modularized input frame creation, table frame creation, and graph frame creation
- Enhanced edit window creation with better organization and error handling
- Updated data management methods to improve clarity and maintainability
- Improved logging for better debugging and tracking of application flow
2025-07-23 16:10:22 -07:00
William Valentin
4ba4b1b7c5 Move make_icon func to MedTrackerApp class 2025-07-20 13:34:00 -07:00
William Valentin
351d3633fe Add logging and refactored code 2025-07-20 13:10:17 -07:00