New Features ๐
TypeScript-Based Workflow System ๐
- ๐งฉ Implemented TypeScript workflow function definitions replacing previous DSL
- ๐ Added event sourcing pattern with snapshot support for efficient state reconstruction
- ๐ Created distributed workflow processing with Redis Streams
- ๐ Developed comprehensive workflow visualization using AST parsing and React Flow
- ๐ Centralized workflow documentation
- ๐พ Added database schema for workflow snapshots
- ๐งช Included workflow seed data for testing
Credit Management System ๐ฐ
- โฐ Implemented credit expiration system with configurable settings at global and company levels
- ๐ค Added automatic expiration processes with scheduled jobs
- ๐ต๏ธโโ๏ธ Created credit reconciliation system with detection mechanisms for balance discrepancies
- ๐ฅ๏ธ Developed user interface components for credit management, visualization, and notifications
- ๐ ๏ธ Added server actions for validation and resolution of credit discrepancies
- ๐ Implemented daily scheduled validation jobs
- โจ Added automatic credit generation from negative invoices
Project Time & Budget Management โฑ๏ธ
- ๐ผ Added budgeted hours tracking on projects and estimated hours on tickets
- ๐งฎ Implemented project completion calculation based on tasks and hours
- ๐ช Enhanced client portal with detailed project metrics
- ๐ Added automatic resource assignment for scheduling and time logging
- ๐ Developed new HoursProgressBar component for progress visualization
- โ๏ธ Implemented standardized time unit handling across project tracking features
Improvements ๐
Ticket System ๐ซ
- ๐ Updated resource assignments when ticket assignee changes
- ๐ Added comment order toggle (newest/oldest first)
- ๐งฉ Implemented proper JSON parsing and validation for comment content
- ๐ Enhanced comment editing permissions and UI controls
- ๐๏ธ Added secure comment deletion with proper ownership checks
- ๐จ Added confirmation dialogs to prevent accidental deletions
- ๐ Improved text editor and tabs component flexibility
User Interface ๐จ
- ๐ Standardized button components across ticket UI
- ๐ฑ Improved comment rendering and editor sizing
- ๐ Enhanced time tracking visualization with tooltips
- ๐งน Reorganized project metrics layout
- ๐๏ธ Improved layout of project metrics in client portal and admin views
Billing System ๐ฒ
- โ ๏ธ Improved credit balance handling to prevent negative balances
- ๐ Enhanced credit balance tracking with direct updates to company records
- ๐ Added prioritization of credits with earliest expiration dates
- ๐ Improved logging for better transaction visibility
Bug Fixes ๐
- ๐ ๏ธ Fixed CitusDB compatibility with workflow events table
- ๐ง Updated tenant field type in credit_reconciliation_reports table
- ๐ Fixed permission checks in client-tickets.ts (now using user_id instead of contact_id)
- ๐ง Fixed field name references in email notification consumer (assigned_user_id โ assigned_to)
- ๐ฆ Fixed status handling for standard statuses
- ๐งฎ Fixed project completion calculation in projectUtils.ts
- ๐ข Added tenant context to getUserCompany functionality
- โ Fixed validation for budgeted_hours input to prevent invalid entries
Developer Notes ๐ฉโ๐ป๐จโ๐ป
- ๐งช Added comprehensive tests for billing platform
- ๐ Fixed existing tests to work with tenant context system
- ๐ Updated ERD diagram to maintain consistency with implementation
- ๐ Updated billing documentation to reflect actual implementation