Skip to content

v0.2.0 Major refactor, template system and library enhancements

Choose a tag to compare

@aFFekopp aFFekopp released this 07 Feb 17:45
· 7 commits to main since this release

Added

  • Global Base Template: Centralized header, navigation, and global timer in templates/base.html for a consistent experience across all pages.
  • Hybrid Rendering: Implemented server-side injection of user profile data to eliminate the "Musician" flash during page loads.
  • Enhanced Library Logic:
    • Added ability to toggle star ratings off by clicking the active star.
    • Improved pagination to preserve current page during rating updates or item edits.
  • Utility Module: Introduced static/js/utils.js for centralized modal management, time formatting, and shared logic.

Changed

  • Page refactor: Migrated all pages (index, sessions, library, statistics, settings) to use the new Flask template system.
  • Performance: Optimized data.js with more robust caching and error handling, ensuring fast item population even with partial cache corruption.
  • Data Normalization: Improved handling of database timestamps and numeric strings to prevent "Invalid Date" errors.

Fixed

  • Critical UI Bugs: Resolved Invalid Date and NaN:NaN errors in session tables.
  • Instrument Mapping: Fixed "Unknown" instrument/category displays by aligning frontend IDs with backend defaults.
  • API Endpoints: Restored missing endpoints for category management and fixed data import/export functionality.
  • Sidebar Highlighting: Corrected navigation state logic to accurately reflect the active page.
  • Database Path: Fixed directory creation logic to ensure the database always lives in the data/ folder.

Removed

  • Legacy Files: Removed all standalone .html files from the root directory.
  • Redundant Code: Cleaned up duplicate helper functions across multiple JavaScript files.