335 Commits

Author SHA1 Message Date
ec6c24464e Refactor logging mechanism across services and widgets
- Introduced a new `logSafe` function for consistent logging with sensitivity handling.
- Replaced direct logger calls with `logSafe` in `api_service.dart`, `app_initializer.dart`, `auth_service.dart`, `permission_service.dart`, and `my_image_compressor.dart`.
- Enhanced error handling and logging in various service methods to capture exceptions and provide more context.
- Updated image compression logging to include quality and size metrics.
- Improved app initialization logging to capture success and error states.
- Ensured sensitive information is not logged directly.
2025-06-25 12:10:57 +05:30
e6d05e247e Refactor logging implementation across controllers and services
- Replaced instances of the Logger package with a custom appLogger for consistent logging.
- Introduced app_logger.dart to manage logging with file output and storage permissions.
- Updated all controllers (e.g., DashboardController, EmployeesScreenController, etc.) to use appLogger for logging messages.
- Ensured that logging messages are appropriately categorized (info, warning, error) throughout the application.
- Implemented a file logging mechanism to store logs in a designated directory.
- Cleaned up old log files to maintain only the most recent logs.
2025-06-24 13:11:22 +05:30
ef60677c98 feat: Update default selected range to '15D' in DashboardController 2025-06-23 17:48:49 +05:30
e71e4d633a feat: Implement JWT token expiration handling and refresh logic in ApiService 2025-06-23 17:35:50 +05:30
99a9b47a19 feat: Enhance attendance chart visibility based on project selection 2025-06-23 15:52:58 +05:30
67d78f02b7 feat: Add no data message to attendance dashboard chart 2025-06-23 15:49:06 +05:30
95c625a55b Merge pull request 'feat: Improve project ID handling and enhance attendance chart data observation' (#50) from Vaibhav_Task-#519 into main
Reviewed-on: #50
2025-06-23 10:08:08 +00:00
f7fcad2992 feat: Improve project ID handling and enhance attendance chart data observation 2025-06-23 15:36:40 +05:30
099edd3884 Merge pull request 'feat: Refactor project ID handling and enhance CommentTaskBottomSheet integration' (#49) from Vaibhav_Task-#515 into main
Reviewed-on: #49
2025-06-23 10:04:14 +00:00
f1764eed81 feat: Refactor project ID handling and enhance CommentTaskBottomSheet integration 2025-06-23 15:27:06 +05:30
0317954b02 Merge pull request 'Feature_Report_Action' (#48) from Feature_Report_Action into main
Reviewed-on: #48
2025-06-23 07:32:29 +00:00
6e11fc8c52 feat: Enable AttendanceDashboardChart in the dashboard screen 2025-06-23 13:01:46 +05:30
6c3370437d feat: Update models and API service for improved data handling and type safety 2025-06-22 18:40:10 +05:30
6cdf35374d feat: Enhance dashboard functionality with attendance overview and chart visualization 2025-06-20 19:01:58 +05:30
ca8bc26ab5 feat: Refactor showCreateTaskBottomSheet for improved structure and readability 2025-06-19 18:02:37 +05:30
f7671bc5d3 feat: Refactor AddEmployeeBottomSheet for improved readability and maintainability 2025-06-19 18:01:27 +05:30
405916bb48 feat: Add custom skeleton loaders for employee list and daily progress report screens 2025-06-19 16:42:24 +05:30
97c873167f feat: Add employee list skeleton loader for improved loading experience 2025-06-19 16:22:48 +05:30
ef6521faa2 feat: Implement loading skeletons in dashboard and layout screens for better UX 2025-06-19 15:35:09 +05:30
660bd3cdf1 feat: Enhance project selection interaction by adding tap gesture to collapse dropdown 2025-06-19 13:15:02 +05:30
4ba30145ef feat: Update loading state initialization and remove unused fetchProjects method 2025-06-19 12:32:35 +05:30
d1305e1dba feat: Increase default timeout duration for API requests from 10 to 30 seconds 2025-06-19 11:39:52 +05:30
f834422c4e feat: Increase timeout duration for API requests and update relevant calls 2025-06-19 11:26:42 +05:30
44d72b73ac feat: Add optional approvedBy field to TaskModel and update JSON parsing 2025-06-19 11:14:21 +05:30
c215c4c943 feat: Rename task management function to showCreateTaskBottomSheet and update references 2025-06-19 11:03:34 +05:30
3ede53713d feat: Refactor task management to include work area and activity IDs, update task creation logic, and enhance category selection 2025-06-18 19:15:41 +05:30
5148b41579 feat: Enhance task creation UI with title and description sections 2025-06-18 12:52:20 +05:30
58a66546e4 fix: Simplify image picking logic by removing null check for pickedFiles 2025-06-18 12:18:25 +05:30
206c84b3a1 feat: Implement task management features including task creation, assignment, and employee selection 2025-06-18 11:40:08 +05:30
93a2350858 feat: Add report action and comment functionality in daily task planning
- Implemented ReportActionBottomSheet for reporting actions on tasks.
- Created TaskActionButtons for handling report and comment actions.
- Added WorkStatusResponseModel and WorkStatus model for managing work statuses.
- Refactored DailyProgressReportScreen to utilize new action buttons for reporting and commenting.
- Enhanced task data preparation for reporting and commenting actions.
2025-06-17 15:41:23 +05:30
6f2e257f0d Merge pull request 'Feature_Global_Project_Selection' (#47) from Feature_Global_Project_Selection into main
Reviewed-on: #47
2025-06-17 10:09:58 +00:00
5275ad940b Remove Sales, Comment Task, and Report Task screens; update pubspec.yaml to clean up asset paths. 2025-06-13 11:37:08 +05:30
d765b96df4 feat: Refactor user data fetching to use base URL from ApiEndpoints for improved maintainability 2025-06-13 11:01:05 +05:30
0ad8847b94 feat: Update application ID in build.gradle and refactor imports and methods in service files for improved clarity and organization 2025-06-13 10:51:23 +05:30
658f3f26e0 feat: Enhance dashboard stats display with project selection validation and user feedback 2025-06-12 23:59:13 +05:30
602d8a8dc9 feat: Update reportTask method to return success status and improve loading state handling in ReportTaskBottomSheet 2025-06-12 23:27:50 +05:30
59e6634023 feat: Refactor project selection handling in attendance actions and controllers 2025-06-12 23:18:58 +05:30
a97fb1f541 feat: Clear selected images instead of pre-signed URLs in comment task bottom sheet 2025-06-12 23:01:39 +05:30
c7600e8e26 feat: Align app bar elements and adjust padding in attendance and employee screens 2025-06-12 22:51:44 +05:30
8e47d28005 feat: Add getGlobalProjects method and update project fetching logic 2025-06-12 22:06:59 +05:30
916cfa3af4 feat: Add support for reported pre-signed URLs in comments and daily progress report 2025-06-12 22:02:19 +05:30
5cf0202cc1 feat: Remove unused selectedProjectId from DailyTaskPlaningController and update AssignTaskBottomSheet to use ProjectController's selectedProjectId 2025-06-12 21:13:12 +05:30
4022197b7f feat: Remove automatic selection of the first project after fetching projects 2025-06-12 20:26:41 +05:30
11d9f107ad feat: Refactor attendance data loading logic to streamline project change handling and improve initial data fetch 2025-06-12 19:29:38 +05:30
daf132c3b5 feat: Update comment task bottom sheet layout and enhance comment display with improved spacing and attachment handling 2025-06-12 19:14:27 +05:30
1f784d96f4 feat: Enhance image handling in task reporting and commenting with compression and content type detection 2025-06-12 18:00:31 +05:30
3a449441fa feat: Enhance project and task management features
- Added clearProjects method in ProjectController to reset project states.
- Updated fetchProjects and updateSelectedProject methods for better state management.
- Enhanced ReportTaskController to support image uploads with base64 encoding.
- Modified ApiService to handle image data in report and comment tasks.
- Integrated ProjectController in AuthService to fetch projects upon login.
- Updated LocalStorage to clear selectedProjectId on logout.
- Introduced ImageViewerDialog for displaying images in a dialog.
- Enhanced CommentTaskBottomSheet and ReportTaskBottomSheet to support image attachments.
- Improved AttendanceScreen to handle project selection and data fetching more robustly.
- Refactored EmployeesScreen to manage employee data based on project selection.
- Updated Layout to handle project selection and display appropriate messages.
- Enhanced DailyProgressReportScreen and DailyTaskPlaningScreen to reactively fetch task data based on project changes.
- Added photo_view dependency for improved image handling.
2025-06-12 17:28:06 +05:30
b38d987eac feat: Update layout structure to use Stack for project list overlay and adjust spacing in dashboard 2025-06-12 11:55:02 +05:30
56efbe8869 feat: Refactor project selection handling and update UI across various screens 2025-06-12 11:31:36 +05:30
b81ac33b2d feat: Enhance project selection handling across various screens and controllers 2025-06-11 21:55:15 +05:30