Gustavo Henrique Santos Souza de Miranda
967c7e4ce6
Fix the Database no being put on the right path according with the config.toml
2025-07-16 16:39:31 -03:00
Gustavo Henrique Santos Souza de Miranda
bdaa37e355
Add the database file path now is read by the configuration file
2025-07-16 16:01:34 -03:00
Gustavo Henrique Santos Souza de Miranda
3843be6e13
Add the tomli library and create the config_manager.py to manage the configuration file and also add the dependency injection on the ui.py via the Application class
2025-07-16 02:55:52 -03:00
Gustavo Henrique Santos Souza de Miranda
090bbeda1a
Implemented directory management and improved TravelDiary and Photo handling logic.
...
- Added `DirectoryManager` utility for consistent directory operations.
- Introduced directory name sanitization and uniqueness enforcement for `TravelDiary`.
- Updated `TravelDiaryService` with enhanced creation, update, and deletion workflows, including filesystem management.
- Improved `PhotoService` to hash files, copy photos to specific diary directories, and manage updates safely.
- Refined error handling and cascaded changes across related entities (e.g., `Entry` relationships).
2025-07-06 01:07:25 -03:00
Gustavo Henrique Santos Souza de Miranda
d114357d50
Changed the base directory where the data generated by the program to be at the home directory and also added a check to ensure the creation of the program directory
2025-07-05 07:29:09 -03:00
Gustavo Henrique Santos Souza de Miranda
f84da2c934
Improved the photo sidebar and add the add_photo_modal.py to add photos and the file_picker_modal.py to select the proper file to be ingested, also changed photo.py and photo_service.py to receive a datatime and not a string representing the addition date
2025-06-29 21:38:33 -03:00
Gustavo Henrique Santos Souza de Miranda
f1195391db
Started integrating the database to the UI so it can save the data into the database
2025-06-25 14:58:54 -03:00
Gustavo Henrique Santos Souza de Miranda
03fb3b23c2
Added Mocks to help aid the process of creation of the textual TUI
2025-06-07 01:01:16 -03:00
Gustavo Henrique Santos Souza de Miranda
32b8a58c3a
Made some changes to naming in both the classes and the tables of the database to conform the correct naming scheme
2025-06-05 19:59:43 -03:00
Gustavo Henrique Santos Souza de Miranda
8ad57b548f
Added the Services layer to the code to do the database operation
2025-06-05 13:28:16 -03:00
Gustavo Henrique Santos Souza de Miranda
ac29e84833
Changed the names of the files to conform the python convection and also added photo_in_entry.py to diminish the cyclic import error in pylint
2025-06-04 00:13:18 -03:00