This pull request contains various bug fixes and new features for the employee management page. The main fixes include resolving an issue where new employees were not appearing automatically on the table and updating state management hooks for better performance and maintainability. Additionally, loading states for employee preview and contractor details forms have been fixed, and validation errors in the employee and contractor details forms have been resolved.
New features include enabling the admin to activate or terminate employees, updating the payroll method on the employee details page, and updating compensation for employee and contractor profiles. Some other improvements include adding comments to functions, adding resetForm prop on each form, and adding useDebounce hook to delay searchTerm updates.
Fixed an issue where new employees did not appear automatically on the table, and updated state management hooks to useReducer for better performance and maintainability for the employee page.
Fixed the employee preview loading state.
Enabled Admin to activate or terminate employees.
Added a skeleton table to the loading state and fixed a validation error in the contractor details form that did not recognize the defaultValues onmount.
Fixed a validation error in the employee details form.
Added comments to some functions.
Added the resetForm prop on each form.
Added the useDebounce hook to delay searchTerm updates.
Added a feature to enable admin to update payroll method on employee details page and bugfix.
Added a feature to update compensation for employee and contractor profile updates.
Please review and merge this pull request at your earliest convenience.
Description:
This pull request contains various bug fixes and new features for the employee management page. The main fixes include resolving an issue where new employees were not appearing automatically on the table and updating state management hooks for better performance and maintainability. Additionally, loading states for employee preview and contractor details forms have been fixed, and validation errors in the employee and contractor details forms have been resolved.
New features include enabling the admin to activate or terminate employees, updating the payroll method on the employee details page, and updating compensation for employee and contractor profiles. Some other improvements include adding comments to functions, adding resetForm prop on each form, and adding useDebounce hook to delay searchTerm updates.
Fixed an issue where new employees did not appear automatically on the table, and updated state management hooks to useReducer for better performance and maintainability for the employee page.
Fixed the employee preview loading state.
Enabled Admin to activate or terminate employees.
Added a skeleton table to the loading state and fixed a validation error in the contractor details form that did not recognize the defaultValues onmount.
Fixed a validation error in the employee details form.
Added comments to some functions.
Added the resetForm prop on each form.
Added the useDebounce hook to delay searchTerm updates.
Added a feature to enable admin to update payroll method on employee details page and bugfix.
Added a feature to update compensation for employee and contractor profile updates.
Please review and merge this pull request at your earliest convenience.
Thank you!