Skip to content
This repository was archived by the owner on Dec 6, 2025. It is now read-only.

Conversation

@Jake-Pullen
Copy link
Owner

1. Title: Category support additions, to resolve most changes requested in #8

2. Description:

  • Summary: Changes suggested here are to resolve most of the requested change in pull request Feature/add category support #8
  • Testing: slight change to the last test in pytest, we was asserting that we were returning an int, even though we always return an int even in the event of a failure. This is now changed to ensure foreign key integrity.

3. Checklist:

[x] I have followed the project's coding style and conventions.
[x] I have written unit tests to cover my changes.
[x] My code has been tested locally.
[x] I have included screenshots/GIFs if applicable.
[x] I have updated the documentation (if necessary).
[x] I have labeled this PR appropriately (e.g., "bug," "feature," "refactor").

@Jake-Pullen Jake-Pullen requested a review from AtomicAlexD June 3, 2025 08:03
@Jake-Pullen Jake-Pullen added the enhancement New feature or request label Jun 3, 2025
AtomicAlexD
AtomicAlexD previously approved these changes Jun 3, 2025
@AtomicAlexD AtomicAlexD self-requested a review June 3, 2025 17:49
@AtomicAlexD AtomicAlexD dismissed their stale review June 3, 2025 17:50

jake found bugs

@Jake-Pullen Jake-Pullen merged commit 4d9426e into feature/add-category-support Jun 28, 2025
@Jake-Pullen Jake-Pullen deleted the category_support_additions branch June 28, 2025 06:58
Jake-Pullen added a commit that referenced this pull request Jun 28, 2025
* feat: 🆕 enhance user and category management with new routes and templates

* feat: 🆕 enhance test coverage for database operations with new test cases and cleanup

* feat: 🆕 add docstring to read_database method for clarity on functionality

* Update src/front/home.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/front/home.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/tests/test_data_handler.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* feat: 🆕 add tempfile import for handling temporary files in tests

* fix: 🐛 add conditional check for selected_user_id before displaying category form

* fix: 🐛 reorder import statements for consistency in home.py

* fix: 🐛 update route name for user submission to be more descriptive

* fix: 🐛 streamline user existence check and improve session handling in home.py

* fix: 🐛 put the read_database back where it belongs.

* fix: 🐛 add docstrings for add_user_name and get_users methods in database class

* feat: add new task for fixing code with Ruff and update tasks.json; improve database methods and tests

* fix: 🐛 add setting to render whitespace in editor

* Category support additions (#19)

* Some initial changes based on feedback

* More additions

* Resolved most comments from Pull Request 8

* Moved convert to universal currency to its own module.

* Working towards adding default rows, need to add system user?

* feat: ✨We now add an internal master category per user that is hidden
Will be useful for various key restraints.

* fix: 🩹 Fixed a test failure

---------

Co-authored-by: Alex Dimmock <alex.d@useadam.co.uk>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Jake Pullen <hello@jake-is.me>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants