Gustavo Henrique Santos Souza de Miranda
62e084efb3
Add the feature to delete all the photos from a travel diary and also remove all the references of photos inside the entry
2025-07-24 01:54:24 -03:00
Gustavo Henrique Santos Souza de Miranda
8efda52d15
Add the delete all entries method the travel diary service
2025-07-23 08:42:00 -03:00
Gustavo Henrique Santos Souza de Miranda
736c0f160f
fix the sanitization directory method to remove accents and diacritics
2025-07-21 00:14:17 -03:00
Gustavo Henrique Santos Souza de Miranda
06ee08b201
Fix all imports to be absolute and not relative
2025-07-20 02:46:46 -03:00
Gustavo Henrique Santos Souza de Miranda
9e4b08234f
Fix the bug that collides the hash if identical images
2025-07-19 00:16:29 -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
e492e2c248
Finished The basic Reference System it now parses the references added by the sidebar or written but only saves if the reference is valid
2025-07-05 05:54:18 -03:00
Gustavo Henrique Santos Souza de Miranda
8cc42e390a
Added Hash capability to the model photo.py and also updated the service to create hashes and update hashes
2025-07-03 21:08:24 -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
84b0397263
Added the sidebar to add images, and modals to manage photo
2025-06-27 17:08:20 -03:00
Gustavo Henrique Santos Souza de Miranda
56e42c51bd
Fixed the entry model to accept datetime instead of a string containing the creating date
2025-06-25 17:26:52 -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
a999a0a437
Changed the modal size and also modified the edit_entry_screen.py to conform with the wireframe, also changed all the texts to be english
2025-06-25 00:27:49 -03:00
Gustavo Henrique Santos Souza de Miranda
58807460d7
Added the edit_entry_screen.py and modified the mock entry_service_mock.py to be async and also add the screen change on diary_list_screen.py and added the rename_entry_modal.py and added all the necessary CSS on the pilgrim.css
2025-06-22 20:32:09 -03:00
Gustavo Henrique Santos Souza de Miranda
4b301d0d7e
Added Async Operations for the model travel_diary_service_mock.py and service_manager_mock.py and added a call to main in the command.py
2025-06-19 03:22:10 -03:00
Gustavo Henrique Santos Souza de Miranda
821845530a
Changed some imports in photo_service.pyto avoid circular import error, and removed a package on diary_list_screen.py that is not being used.
2025-06-09 19:47:45 -03:00
Gustavo Henrique Santos Souza de Miranda
58c7bfd8e9
Added the diary select screen
2025-06-08 22:50:26 -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
103b9a9da1
Altered the Cardinality of the foreign keys to be non-nullable
2025-06-05 22:01:54 -03:00
Gustavo Henrique Santos Souza de Miranda
be1bce9261
Added the travel_diary id as foreign key to the photos and add a check on the creation to avoid leaving it empty or bad referenced
2025-06-05 21:10:48 -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
7e29a590a2
Added the photo_service.py and modified photo.py to have all the crud operations
2025-06-05 17:35:12 -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