Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feat]: Productivity project table view (#3616)
* feat: add project-based productivity table view - Create new ProductivityProjectTable component - Group activities by project with dedicated headers - Update activity report interfaces - Implement date-based sorting within project groups - Add visual progress indicators for time usage * fix: prevent date repetition in project table and fix type error - Group activities by both project and date - Combine activities for the same date - Show all unique members and applications per date - Fix type error in duration formatting * fix: resolve type conversion issues in duration calculations - Change totalDuration type to string - Fix string/number type conversions in duration calculations - Ensure consistent type handling throughout the component * feat: add detailed activity breakdown in project table - Add hierarchical structure with project, date, and activity levels - Show individual member activities with time and percentage - Add date summaries with total time and combined percentage - Improve visual hierarchy with subtle background colors * refactor: improve productivity table component structure - Split into smaller, reusable components - Add proper TypeScript interfaces - Extract data processing logic - Improve code organization and maintainability - Add loading and empty states as separate components * refactor: restructure productivity project table component - Split into modular components with proper file organization - Create separate files for types, utils, components, and states - Improve TypeScript types and interfaces - Enhance dark mode support and styling - Add proper component documentation * refactor: improve conditional fetching in useReportActivity hook - Replace if/else and ternary operators with switch statements - Simplify APPS-URLS case to only fetch activity report - Standardize Promise.all usage for default case - Improve code consistency across all fetch operations * fix: progressBar * feat: improve productivity tables display and grouping - Add conditional rendering based on groupBy type - Show ProductivityProjectTable for project grouping - Show ProductivityTable for date grouping - Improve skeleton loading UI with full-width progress bars - Fix group type handling in switch statement * fix: progressBar * fix: null check * fix: date is defined but never used. * feat: UI productivity Employee Table * Refactor suggestion * Refactor suggestion * Remove debug console logs from production code.
- Loading branch information