-
Notifications
You must be signed in to change notification settings - Fork 0
Global use and change proyects #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
62b1811
refactor: update project version to 0.3.0 and enhance multi-project s…
jnfire 89da531
refactor: enhance CLI with rich console output and update project ver…
jnfire 5164c44
refactor: enhance project management and configuration menus with pag…
jnfire 54d26ae
refactor: improve user prompts in i18n.py for clarity and consistency
jnfire 607c9d1
refactor: add error handling for user input in CLI to improve robustness
jnfire 092244b
refactor: enhance project balance management with caching and recalcu…
jnfire f6bccb3
refactor: implement incremental caching strategy for project balance …
jnfire 9197e9d
refactor: update versioning system and enhance caching mechanism for …
jnfire 36fe2f5
refactor: enhance migration process and database management with impr…
jnfire File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -2,6 +2,42 @@ | |||||
|
|
||||||
| All notable changes to this project will be documented in this file. | ||||||
|
|
||||||
| ## [0.4.2] - 2026-04-24 | ||||||
|
|
||||||
| ### Fixed | ||||||
| - **NameError in Migration**: Fixed missing `migrate_from_json` function reported in code review. | ||||||
| - **SQLite Connection Leaks**: Implemented a robust context manager in `DatabaseManager` to ensure all database connections are properly closed after use. | ||||||
| - **Redundant Schema Alterations**: Integrated `total_balance` directly into the initial table creation for cleaner database initialization. | ||||||
| - **Smooth Exit Flow**: Improved `KeyboardInterrupt` handling to exit immediately without requiring extra prompts. | ||||||
|
|
||||||
| ### Changed | ||||||
| - **Higher-Level Storage API**: Refactored CLI code to use `DatabaseManager` methods instead of raw SQL queries for better separation of concerns. | ||||||
|
|
||||||
| ## [0.4.1] - 2026-04-24 | ||||||
|
|
||||||
| ### Added | ||||||
| - **High-Performance Balance Cache**: Added `total_balance` column to projects table to avoid $O(N)$ calculations. | ||||||
| - **Atomic Balance Updates**: Balance is now updated incrementally on each record creation, modification, or deletion. | ||||||
| - **Balance Audit Tool**: New internal methods to recalculate and validate the total balance. | ||||||
| - **Automated Balance Tests**: Added comprehensive test suite for the balance cache engine. | ||||||
|
|
||||||
| ### Changed | ||||||
| - **Optimized CLI Performance**: The status command and main menu now display the balance instantly. | ||||||
| - **Clean Test Output**: Silenced CLI print statements during automated testing for professional output. | ||||||
|
|
||||||
| ## [0.3.0] - 2026-04-24 | ||||||
| ### Added | ||||||
| - **Global Installation**: The app now stores data in standard system paths (XDG compliant), making it truly global. | ||||||
| - **SQLite Backend**: Replaced JSON storage with SQLite for improved performance and data integrity. | ||||||
| - **Multi-project Support**: New project management menu allows creating, switching, and editing multiple work contexts. | ||||||
| - **Migration Tool**: New `--migrate <file.json>` command to import legacy history files into the new system. | ||||||
|
||||||
| - **Migration Tool**: New `--migrate <file.json>` command to import legacy history files into the new system. | |
| - **Migration Preparation**: Added groundwork for importing legacy JSON history files into the new system. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changelog adds a 0.4.2 section, but the package version is read from
time_balance/VERSION(currently 0.4.1), so--versionand packaging metadata won’t match the changelog. Either bumptime_balance/VERSIONto 0.4.2 or adjust the changelog heading to the released version.