Commit Graph

58 Commits

Author SHA1 Message Date
Gustavo Henrique Santos Souza de Miranda 0567495ff9 Refactor the edit and add photo modal and remove the hashing methods out of the modals 2025-07-18 02:27:16 -03:00
Gustavo Henrique Santos Souza de Miranda 1d08f4e40d Change the CSS to better distribute the elements of the sidebar 2025-07-17 21:39:05 -03:00
Gustavo Henrique Santos Souza de Miranda 165bc10a63 Change the CSS to fit the text better and also limited the width of the sidebar 2025-07-17 20:48:59 -03:00
Gustavo Henrique Santos Souza de Miranda 71d5491233 Improve the CSS and the code for the photo sidebar 2025-07-17 20:32:54 -03:00
Gustavo Henrique Santos Souza de Miranda a13c56a3a3 Fix the NewDiaryModal not accessing the toml file properly to set the auto_open flag 2025-07-16 17:24:45 -03:00
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 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 Miranda 0adb230dd7
Merge pull request #52 from gmbrax/fix/move-create-diary-to-modal
Change to call the method in the super class on the _on_screen_resume  method
2025-07-16 01:30:35 -03:00
Gustavo Henrique Santos Souza de Miranda 167c2d8928 Change to call the method in the super class on the _on_screen_resume method 2025-07-16 00:50:07 -03:00
Gustavo Henrique Santos Souza de Miranda 2b851fc7c7 Add the use of importlib.metadata.version to keep the version string in sync with the pyproject.toml 2025-07-16 00:39:28 -03:00
Gustavo Henrique Santos Souza de Miranda a3123fe322 Bump the version to 0.0.4 on about_screen.py and pyproject.toml 2025-07-16 00:25:37 -03:00
Gustavo Henrique Miranda 4f153c5a5b
Merge branch 'development' into fix/move-create-diary-to-modal 2025-07-15 17:25:06 -03:00
Gustavo Henrique Santos Souza de Miranda f838a5b421 Add the auto-open option to the new_diary_modal.py 2025-07-15 15:51:30 -03:00
Gustavo Henrique Santos Souza de Miranda 18760e174c Add a functionality that automatically opens the diary after creation, Change the responsibility of diary creation to the new_diary_modal.py instead of the diary_list_screen.py 2025-07-15 02:14:53 -03:00
Gustavo Henrique Miranda 3bef353939
Merge pull request #42
Fixed the edit diary modal to accept the key "enter" and automatically the function
2025-07-14 18:24:14 -03:00
Gustavo Henrique Miranda 7dbb89b692
Merge pull request #40 from gmbrax/fix/add-enter-binding-edit-diary
Fix/add enter binding edit diary
2025-07-14 16:11:29 -03:00
Gustavo Henrique Santos Souza de Miranda f174fd1d8a Fixed the edit diary modal to accept the key "enter" and automatically the function 2025-07-14 02:23:29 -03:00
Gustavo Henrique Santos Souza de Miranda c98a106d97 Fixed the new diary modal to accept the key "enter" and automatically the function 2025-07-14 02:06:25 -03:00
Gustavo Henrique Santos Souza de Miranda afc6908f37 Fixed the bindings to properly work and changed some bindings to avoid conflicts with the system 2025-07-13 22:53:39 -03:00
Gustavo Henrique Miranda 8129ae77a6
Merge branch 'staging' into fix/force-rename-entry 2025-07-12 19:11:56 -03:00
Gustavo Henrique Santos Souza de Miranda b704a524c8 Fixed the new entry creation flow by prompting for a title if none is set. 2025-07-12 02:55:39 -03:00
Gustavo Henrique Santos Souza de Miranda 63db2517f3 Corrected the behavior to create a new entry upon opening a diary 2025-07-11 17:46:00 -03:00
Gustavo Henrique Santos Souza de Miranda 4f1740f575 Added `on_footer_action` handler to manage footer action clicks in `EditEntryScreen`. 2025-07-08 01:20:37 -03:00
Gustavo Henrique Miranda cc723bdbbb
Merge pull request #30
Fixed the bug that didn't update the status bar when the use entered any new text.
2025-07-08 00:49:52 -03:00
Gustavo Henrique Santos Souza de Miranda 095c6f6ad5 Added third-party library license details to `AboutScreen`. 2025-07-07 23:06:49 -03:00
Gustavo Henrique Santos Souza de Miranda 0499229e07 Fixed the bug that didn't update the status bar when the use entered any new text. 2025-07-07 22:49:46 -03:00
Gustavo Henrique Miranda 6724a66fed
Merge pull request #24
Fix/binding not working
2025-07-06 03:38:20 -03:00
Gustavo Henrique Santos Souza de Miranda 4dd5126d41 Changed back to use the entry_service.py and not call the database directly from the ui. 2025-07-06 03:26:06 -03:00
Gustavo Henrique Miranda 42c5471ba7
Merge branch 'development' into fix/binding-not-working 2025-07-06 03:10:24 -03:00
Gustavo Henrique Santos Souza de Miranda 8a10fddb14 Refactored bindings to use `Binding` class for consistency across modal and screen components. 2025-07-06 03:04:18 -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 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 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 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 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 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 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