mirror of
https://github.com/DRYTRIX/TimeTracker.git
synced 2026-01-16 09:11:19 -06:00
Add snap-to-grid functionality with visual grid overlay: - 10px grid with toggle checkbox in action bar - Visual grid lines (light gray, bolder every 50px) - Elements snap to grid during drag operations - Position updates in properties panel after dragging Add Expenses Table element for invoice customization: - New table element in sidebar with amber/yellow theme - Displays expense title, date, category, and amount - Loops through invoice.expenses using Jinja2 templating - Backend support for Query-to-list conversion in preview and PDF generation Clean up debug logging: - Remove console.log statements from JavaScript - Remove print debug statements from Python endpoints - Clean up pdf_layout_preview and related functions Backend changes: - Convert invoice.expenses from SQLAlchemy Query to list in admin.py - Add expenses data support in pdf_generator.py - Update generateCode() to handle both items-table and expenses-table Improves UX with precise element positioning and adds support for displaying project expenses alongside invoice items in custom PDF layouts.