Skip to content

Release v1.4.0 - Complete Notes System with Template Export/Import

Latest

Choose a tag to compare

@samromeo1961 samromeo1961 released this 13 Nov 22:46

Release v1.4.0 - Complete Notes System with Template Export/Import

This release completes the Notes feature across all tabs and adds powerful Template Export/Import functionality with full notes preservation.

🎯 New Features

Notes System Enhancements

  • ✅ Server-side Notes Filter: Action button to filter catalogue items with notes
  • ✅ Custom Pagination: AG Grid-styled pagination matching Recipes tab layout
    • Total item count with hamburger icon
    • Page size selector (25/50/100/200)
    • Item range display
    • Navigation buttons with proper styling
  • ✅ Improved Notes UI: Filter button with active/inactive states and hover hints
  • ✅ Performance Optimizations: Batch IPC operations (50-100x faster template sync)

Template Export/Import

  • ✅ Export Templates:
    • Download icon button in Templates tab
    • Choice of JSON or CSV format
    • Full data preservation including notes from electron-store
    • JSON format includes metadata and version info
    • CSV format compatible with Excel editing
  • ✅ Import Templates:
    • Upload icon button in Templates tab
    • Supports both JSON and CSV files
    • File preview showing item count and notes count
    • Intelligent conflict resolution:
      • Rename: Create new template with different name
      • Replace: Replace existing template completely
      • Merge: Add new items to existing template (skip duplicates)
    • Automatic notes synchronization on import
    • Comprehensive validation and error handling

Job Import Integration

  • ✅ JobImportModal: Import job data from Databuild Job Database
  • ✅ Workup Field: Job XDescription field saved as notes
  • ✅ Notes Integration: Imported job workups appear in Templates tab Notes column
  • ✅ Cross-Database Queries: Properly formatted queries joining System and Job databases

🔧 Technical Improvements

Backend

  • Fix: SQL Server ntext comparison using DATALENGTH() instead of != operator
  • Add: Query builder for flexible SQL generation
  • Add: Job database IPC handlers (src/ipc-handlers/jobs.js)
  • Add: Notes store with batch operations (src/database/notes-store.js)
  • Add: Column names store for custom aliases (src/database/column-names-store.js)
  • Optimize: Template sync uses saveMultiple() for batch operations

Frontend

  • Add: NotesEditModal component with 1000 character limit
  • Add: JobImportModal component for job data import
  • Add: useColumnNames composable for column management
  • Improve: CSV parser with proper quoted field handling
  • Improve: Template conflict detection and resolution
  • Improve: Error handling and user feedback throughout

Database Schema

  • Support for dual-database connectivity (System + Job)
  • Auto-detection of Job Database from System Database name
  • Cross-database query patterns with fully qualified table names

🐛 Bug Fixes

  • Fix: ntext column comparison error in template sync SQL query
  • Fix: Pagination infinite loop on data updates
  • Fix: JobImportModal auto-close issue
  • Fix: Dropdown white background in dark theme
  • Fix: AG Grid pagination with server-side data

📚 Documentation

  • Add: NOTES_FEATURE_STATUS.md - Complete notes feature documentation
  • Add: API_REFERENCE.md - Comprehensive API documentation
  • Add: DEVELOPER_GUIDE.md - Development guidelines and patterns
  • Update: CLAUDE.md - Enhanced project instructions with new features

⚠️ Breaking Changes

None - All changes are backward compatible

📝 Migration Notes

  • Old database configs are automatically migrated to Phase 2 schema
  • Existing templates and notes are preserved
  • No manual migration required

📊 File Statistics

  • 27 files changed
  • 9,761 insertions
  • 132 deletions
  • 7 new files created

👥 Contributors

  • Development: Claude Code (Anthropic)
  • Testing & Requirements: User

📦 Installation

Note: The Windows installer will be added shortly. For now, you can:

  1. Clone the repository
  2. Run npm install
  3. Run npm run build to create your own installer

Or wait for the installer to be attached to this release.


🤖 Generated with Claude Code

For detailed feature documentation, see NOTES_FEATURE_STATUS.md