From 543916a1a1d36a3bd3824ea991e2f7b1290ad900 Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Miranda Date: Mon, 7 Jul 2025 02:06:28 -0300 Subject: [PATCH 1/6] Update README.md --- README.md | 48 ++++++++++++++++++++++-------------------------- 1 file changed, 22 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index 7d8d17a..0f10b3a 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,17 @@ -# Python_Pilgrim +# Pilgrim ## Overview -**Python_Pilgrim** is a Python-based travel diary application designed to help users document and manage their travel experiences. The project provides tools for recording trips, organizing travel notes, and storing memories in a structured and accessible format. +**Pilgrim** is a Python-based travel diary application designed to help users document and manage their travel +experiences. The project provides tools for recording trips, organizing travel notes, and storing memories in a +structured and accessible format. ## Features - Create and manage travel diaries - Add, edit, and delete travel entries - Organize trips by date, location, or theme -- Store photos, notes, and other media -- Export and share travel logs +- Store photos and add them to the diary entry ## Requirements - Python 3.8 or higher @@ -21,30 +22,25 @@ ## Installation -1. Clone the repository: - ```bash - git clone https://github.com/gmbrax/Pilgrim.git - ``` -2. Navigate to the project directory: - ```bash - cd Pilgrim - ``` -3. Create a virtual environment and, then, activate it: - ```bash - python -m venv .venv - source .venv/bin/activate - ``` -4. Install the required dependencies: - ```bash - pip install -r requirements.txt - ``` +To install the application you must issue the command: + +```bash +pip install pilgrim +``` ## Usage -To run the main application, execute: - -```bash -python .py +To use application you just issue: +```bash +pilgrim ``` -This will start the Python_Pilgrim application. Follow the on-screen instructions to create and manage your travel diaries. \ No newline at end of file +This will start the Pilgrim application. Follow the on-screen instructions to create and manage your travel diaries. + +## Changelog + +To see all the changes in the current version, please refer to the [CHANGELOG](CHANGELOG.md) + +## License + +This project is licensed under the BSD 3-Clause License — see the [LICENSE](LICENSE) file for details. From 11345203e57428cf0c3a07dec61c3daa2f1caf2e Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Miranda Date: Mon, 7 Jul 2025 02:07:47 -0300 Subject: [PATCH 2/6] Create CHANGELOG.md --- CHANGELOG.md | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..d9b8971 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,41 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] + +### Planned + +- Installation Method 1 (repository compilation) +- Organization of trips by date, location, or theme +- Enhanced photo management features +- Search functionality +- Export features +- Testing implementation + +## [0.0.1] - 2025-07-06 + +### Added + +- Initial alpha release of Pilgrim travel diary application +- Create and edit travel diaries +- Create and edit diary entries +- Photo ingestion system +- Photo addition and reference via sidebar +- Text User Interface (TUI) built with Textual framework +- Pre-compiled binary installation method (Method 2) +- Support for Linux operating systems +- Basic project documentation (README) + +### Known Issues + +- Installation Method 1 not yet implemented +- No testing suite implemented yet +- Some features may be unstable in alpha version + +[Unreleased]: https://github.com/username/pilgrim/compare/v0.0.1...HEAD + +[0.0.1]: https://github.com/username/pilgrim/releases/tag/v0.0.1 From e503a57051210f2874625350b6bcc4d5fed768fe Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Jul 2025 17:06:50 +0000 Subject: [PATCH 3/6] Bump typing-extensions from 4.14.0 to 4.14.1 Bumps [typing-extensions](https://github.com/python/typing_extensions) from 4.14.0 to 4.14.1. - [Release notes](https://github.com/python/typing_extensions/releases) - [Changelog](https://github.com/python/typing_extensions/blob/main/CHANGELOG.md) - [Commits](https://github.com/python/typing_extensions/compare/4.14.0...4.14.1) --- updated-dependencies: - dependency-name: typing-extensions dependency-version: 4.14.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 015a545..b97847f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ greenlet==3.2.3 SQLAlchemy==2.0.41 -typing_extensions==4.14.0 +typing_extensions==4.14.1 textual~=3.3.0 From 57614755d51874d7e9bc92ded02b747e67a77e54 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Jul 2025 17:12:26 +0000 Subject: [PATCH 4/6] Update textual requirement from ~=3.3.0 to ~=3.6.0 Updates the requirements on [textual](https://github.com/Textualize/textual) to permit the latest version. - [Release notes](https://github.com/Textualize/textual/releases) - [Changelog](https://github.com/Textualize/textual/blob/main/CHANGELOG.md) - [Commits](https://github.com/Textualize/textual/compare/v3.3.0...v3.6.0) --- updated-dependencies: - dependency-name: textual dependency-version: 3.6.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 015a545..f7c79b1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,4 +3,4 @@ SQLAlchemy==2.0.41 typing_extensions==4.14.0 -textual~=3.3.0 +textual~=3.6.0 From 8de20547c2a6ed8c1ff0c57ae2900a9b0a6fdd05 Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Santos Souza de Miranda Date: Mon, 7 Jul 2025 22:50:51 -0300 Subject: [PATCH 5/6] updated the pyproject.toml to remove an unsued dependency "Textual-Dev" --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 398e581..6657a3e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ [project] name = "Pilgrim" - version = "0.0.1" + version = "0.0.3" authors = [ { name="Gustavo Henrique Santos Souza de Miranda", email="gustavohssmiranda@gmail.com" } ] From 4f1740f57592d0c07e1ffe3ceb64bcd8f445af9f Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Santos Souza de Miranda Date: Tue, 8 Jul 2025 01:20:37 -0300 Subject: [PATCH 6/6] Added `on_footer_action` handler to manage footer action clicks in `EditEntryScreen`. --- src/pilgrim/ui/screens/edit_entry_screen.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/pilgrim/ui/screens/edit_entry_screen.py b/src/pilgrim/ui/screens/edit_entry_screen.py index 277dc36..24e05ef 100644 --- a/src/pilgrim/ui/screens/edit_entry_screen.py +++ b/src/pilgrim/ui/screens/edit_entry_screen.py @@ -1027,4 +1027,13 @@ class EditEntryScreen(Screen): # Tab: insert tab elif self.focused is self.text_entry and event.key == "tab": self.text_entry.insert('\t') - event.stop() \ No newline at end of file + event.stop() + + def on_footer_action(self, event) -> None: + """Handle clicks on footer actions (Textual 3.x).""" + action = event.action + method = getattr(self, f"action_{action}", None) + if method: + method() + else: + self.notify(f"No action found for: {action}", severity="warning") \ No newline at end of file