Commit Graph
68 Commits
Author SHA1 Message Date
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 Miranda b1e83aabbb Merge pull request #18 from gmbrax/feat/XDG-Compliance
Applying the XDG Compliance Branch to the Stagin Branch
2025-07-05 09:23:52 -03:00
Gustavo Henrique Miranda eb511ad756 Merge pull request #17 from gmbrax/feat/photo-reference-system
Feat/photo reference system
2025-07-05 09:19:02 -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 394f813f6f Added few checks to the reference to avoid malformed or invalid reference from being saved. 2025-07-05 07:26:47 -03:00
Gustavo Henrique Santos Souza de Miranda a9756b058e Changed some texts to be in english and also removed some debug messages. 2025-07-05 06:48:24 -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 0ec480a851 Removed some stale functions on edit_entry_screen.py
changed and added some functions to work with photo references and added a photo cache to better database performance.
2025-07-04 19:14:16 -03:00
Gustavo Henrique Santos Souza de Miranda 3754a68a80 Changed to accept the proper hash created by the photo_service also started the function to validate the reference before getting all references on save 2025-07-03 23:10:13 -03:00
Gustavo Henrique Santos Souza de Miranda 183e0bc8c7 Started implementing the proper hash on the photo sidebar 2025-07-03 21:09:09 -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 d47259fc68 Removed Stale methods on edit_entry_screen.py 2025-07-03 01:33:31 -03:00
Gustavo Henrique Santos Souza de Miranda d80825d3a1 Started adding the reference system to add images
by adding a hash to each photo and also the possibility to add a reference by pressing i whilst the sidebar is on focus
2025-07-02 12:48:12 -03:00
Gustavo Henrique Miranda 2973620573 Merge pull request #13 from gmbrax/feat/photo-sidebar-tui
Feat/photo sidebar tui
2025-06-29 23:17:49 -03:00
Gustavo Henrique Miranda 0d2a4ef102 Merge branch 'development' into feat/photo-sidebar-tui 2025-06-29 22:26:10 -03:00
Gustavo Henrique Santos Souza de Miranda cf56fda3de Added an edit_photo_modal.py to allow modification of the photo after ingestion 2025-06-29 21:51:27 -03:00
Gustavo Henrique Santos Souza de Miranda 1209b8147c Added a confirm_delete_modal.py to avoid accidental delete of the photo. 2025-06-29 21:50:46 -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 Miranda 9ab190741a Merge pull request #11 from gmbrax/feat/photo-sidebar-tui
Feat/photo sidebar tui
2025-06-28 12:38:32 -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 Miranda 9b4c739d32 Delete .idea directory 2025-06-26 03:57:57 -03:00
Gustavo Henrique Miranda 4d3606b197 Merge pull request #10 from gmbrax/feat/Database-Integration
Feat/database integration
2025-06-26 03:41:42 -03:00
Gustavo Henrique Santos Souza de Miranda b50507ae18 Merge branch 'refactor/refactor-fix' into development
# Conflicts:
#	.gitignore
#	.idea/workspace.xml
#	requirements.txt
2025-06-26 03:35:07 -03:00
Gustavo Henrique Santos Souza de Miranda 7b13982391 Revert "🎨refactor: move modules and refactor import statements"
This reverts commit 99eb0a0651.
2025-06-25 22:34:19 -03:00
Gustavo Henrique Santos Souza de Miranda d206abf016 Revert "♻️ refactor: remove unnecessary blank lines and adjust package path in pyproject.toml"
This reverts commit 8665b6f47b.
2025-06-25 22:30:18 -03:00
Gustavo Henrique Miranda 14055770e7 Merge pull request #7 from gmbrax/fix/Entry-Model-Acepting-DateTime
Fixed the entry model to accept datetime instead of a string containing the creating date
2025-06-25 18:28:44 -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 Miranda e8f5d4b877 Merge pull request #6 from gmbrax/feat/Database-Integration
Started integrating the database to the UI so it can save the data into the Database
2025-06-25 16:49:27 -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 Miranda 4a5da4d44c Merge pull request #5 from gmbrax/feat-TUI
Feat t UI
2025-06-25 04:06:01 -03:00
Gustavo Henrique Miranda ca14588a1d Merge pull request #4 from gmbrax/feat-TUI
Feat t UI
2025-06-25 02:56:43 -03:00
Gustavo Henrique Santos Souza de Miranda 869c183e73 Changed the size of grid of buttons to be the same lenght of the list of diaries 2025-06-25 01:31:20 -03:00
Gustavo Henrique Santos Souza de Miranda 697ce03638 Fixed the action to quit the application on the diary_list_screen.py 2025-06-25 01:20:34 -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 Miranda 37fa9b929b Merge pull request #3 from gmbrax/feat-TUI
Feat TUI Merge the changes so far to start integrating with the database
2025-06-24 23:31:37 -03:00
Gustavo Henrique Santos Souza de Miranda f9ab6da116 Fixed the wrong name in the diary name when loading an empty diary 2025-06-22 22:19:25 -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 981b38f994 Added Classes on edit_diary_modal.py to conform with the standard way of handling css 2025-06-22 20:28:20 -03:00
Gustavo Henrique Santos Souza de Miranda 5dd8ba398f Added CSS Classes on about_screen.py and new_diary_modal.py and created the classes on the pilgrim.css file 2025-06-20 20:58:15 -03:00
Gustavo Henrique Santos Souza de Miranda cb31ba5662 changed ui.py to add command palettes commands and changed diary_list_screen.py to add access to the about_screen.py 2025-06-20 00:20:06 -03:00
Gustavo Henrique Santos Souza de Miranda 33509af0de Added about_screen.py 2025-06-19 22:35:32 -03:00
Gustavo Henrique Santos Souza de Miranda dc8b5016f3 Added the edit_diary_modal.py and new_diary_modal.py and changed the diary_list_screen.py to be equal to the gist 2025-06-19 03:28:12 -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 Miranda 1cb6cfa1b5 Merge pull request #1 from gmbrax/dependabot/pip/greenlet-3.2.3
Bump greenlet from 3.2.2 to 3.2.3
2025-06-09 19:49:51 -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 f556d6906a Added the foreign key in photo.py to the travel_diary table so a photo is contained in a diary 2025-06-05 20:02:41 -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
Gustavo Henrique Santos Souza de Miranda 0a9c2952ec Changed the pyproject.toml to conform to the pythonic rules 2025-06-04 11:14:09 -03:00
Gustavo Henrique Miranda 5beb1263bc Update dependabot.yml 2025-06-04 00:43:03 -03:00
Gustavo Henrique Miranda 797474ba5c Create dependabot.yml 2025-06-04 00:42:02 -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
Gustavo Henrique Miranda 89e6d0a783 Update pylint.yml 2025-06-03 23:35:49 -03:00
Gustavo Henrique Miranda 633e200b58 Update pylint.yml 2025-06-03 23:33:53 -03:00
Gustavo Henrique Santos Souza de Miranda 4814712039 Added a Back Relationship in Entry to list all the photos 2025-06-03 23:28:27 -03:00
Gustavo Henrique Santos Souza de Miranda 5e28f63cb8 Added requirements.txt to the project 2025-06-03 22:12:38 -03:00
Gustavo Henrique Santos Souza de Miranda ad95eeab70 Added requirements.txt to the project 2025-06-03 22:11:14 -03:00
Gustavo Henrique Miranda c168c69349 Update pylint.yml 2025-06-03 22:06:50 -03:00
Gustavo Henrique Miranda 8d9ac75226 Update pylint.yml 2025-06-03 22:05:16 -03:00
Gustavo Henrique Miranda ddb24843a5 Create pylint.yml 2025-06-03 22:01:27 -03:00
Gustavo Henrique Santos Souza de Miranda 983489d57f Added one more model: Photo.py and edited the Entry.py to add the Many-to-Many relationship to the Photo.py Model 2025-06-03 21:54:13 -03:00
Gustavo Henrique Santos Souza de Miranda 385cdffead Added the Entry.py as the Entry model 2025-06-03 20:23:44 -03:00
Gustavo Henrique Santos Souza de Miranda d0278f8650 Added Few Classes to the application to be used on the Database 2025-06-03 18:55:58 -03:00