Repository navigation
Conversation
…structure - Completely replaced rusqlite database storage with filesystem-based library under library/ subdirectory. - Saved songs are stored as a plain text file for chord/lyric content and a separate JSON sidecar file for metadata. - Avoided duplicating chord content on disk by skipping the `raw_content` field in metadata serialization. - Stored artist images directly in the respective artist folders. - Implemented automatic directory and image cleanup when the last song of an artist is deleted. - Added comprehensive unit tests validating the cache/library lifecycle. - Removed the `rusqlite` dependency from Cargo.toml. - Updated the About dialog in ui/window.rs to display the Library path instead of the database path. Co-authored-by: bjesus <55081+bjesus@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
…structure with automated migration - Completely replaced SQLite storage with filesystem-based library under `library/` subdirectory. - Saved songs are stored as a plain text file for raw chord content and a separate JSON sidecar file for metadata. - Avoided duplicating chord content on disk by skipping the `raw_content` field in metadata serialization. - Stored artist images directly in the respective artist folders as `artist_image`. - Implemented automatic directory and image cleanup when the last song of an artist is deleted. - Added automated one-time migration of saved songs and artist images from old SQLite database to new file structure, renaming the old database to `chords.db.bak`. - Added comprehensive unit tests validating the cache lifecycle and database migration. - Updated the About dialog in ui/window.rs to display the Library path instead of the database path. Co-authored-by: bjesus <55081+bjesus@users.noreply.github.com>
…structure with automated migration and Windows file locking fix - Completely replaced SQLite storage with filesystem-based library under `library/` subdirectory. - Saved songs are stored as a plain text file for raw chord content and a separate JSON sidecar file for metadata. - Avoided duplicating chord content on disk by skipping the `raw_content` field in metadata serialization. - Stored artist images directly in the respective artist folders as `artist_image`. - Implemented automatic directory and image cleanup when the last song of an artist is deleted. - Added automated one-time migration of saved songs and artist images from old SQLite database to new file structure, renaming the old database to `chords.db.bak`. - Fixed Windows SQLite file locking issue (Sharing Violation / os error 32) by scoping the active connection handle in an inner block. - Added comprehensive unit tests validating the cache lifecycle and database migration. - Updated the About dialog in ui/window.rs to display the Library path instead of the database path. Co-authored-by: bjesus <55081+bjesus@users.noreply.github.com>
…ed JSON sidecars and SQLite migration - Completely replaced SQLite storage with filesystem-based library under `library/` subdirectory. - Saved songs are stored as a plain text file for raw chord content and a separate JSON sidecar file for metadata. - Avoided duplicating chord content on disk by skipping the `raw_content` field in metadata serialization. - Minimized JSON sidecars by skipping other redundant or unused fields (`artist_name`, `song_name`, `rating`, `alternatives`, `applicature`, and `saved_at`). - Reconstructed `artist_name` from directory, `song_name` from the filename, and `saved_at` from the `.json` file's modification time (mtime) on load. - Preserved original SQLite saving dates using file modification times via the `filetime` crate. - Stored artist images directly in the respective artist folders as `artist_image`. - Implemented automatic directory and image cleanup when the last song of an artist is deleted. - Added automated one-time migration of saved songs and artist images from old SQLite database to new file structure, renaming the old database to `chords.db.bak`. - Added comprehensive unit tests validating the cache lifecycle, SQLite database migration, and metadata reconstruction. - Updated the About dialog in ui/window.rs to display the Library path instead of the database path. Co-authored-by: bjesus <55081+bjesus@users.noreply.github.com>
Replaces SQLite with an elegant directory-per-artist structure, utilizing plain text files for raw content and JSON sidecar files for metadata.
PR created automatically by Jules for task 9993769701284464775 started by @bjesus