ncc-erp / ncc-erp-workflow-w2-ui

0 stars 0 forks source link

52964 [W2] [Probationary Request] Delete the default on Staff field #114

Closed KaneNguyen02 closed 1 year ago

KaneNguyen02 commented 1 year ago

Checklist (check all applicable)

Description

delete default staff and validate field stafff

Evidence

Link

github-actions[bot] commented 1 year ago

Code Coverage Results:

--------------------------------------------|---------|----------|---------|---------|-----------------------------------------------------------------------------------------------------------------
File                                        | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s                                                                                               
--------------------------------------------|---------|----------|---------|---------|-----------------------------------------------------------------------------------------------------------------
All files                                   |   69.08 |    44.85 |   53.89 |   68.74 |                                                                                                                 
 api/apiHooks                               |   41.37 |        0 |   11.11 |   30.98 |                                                                                                                 
  index.ts                                  |   36.25 |        0 |       4 |   25.75 | 10-11,23-30,38-45,57-64,74-81,85-91,95-101,105-114,118-125,129-135,139-145,149-150                              
  userHooks.ts                              |     100 |      100 |     100 |     100 |                                                                                                                 
 common                                     |     100 |      100 |     100 |     100 |                                                                                                                 
  constants.ts                              |     100 |      100 |     100 |     100 |                                                                                                                 
  enums.ts                                  |     100 |      100 |     100 |     100 |                                                                                                                 
 common/components                          |   83.33 |    27.58 |   66.66 |    82.5 |                                                                                                                 
  EmptyWrapper.tsx                          |     100 |    33.33 |     100 |     100 | 13-16                                                                                                           
  ErrorDisplay.tsx                          |      75 |      100 |       0 |   66.66 | 7                                                                                                               
  InputWrapper.tsx                          |     100 |       50 |     100 |     100 | 16-22                                                                                                           
  ModalConfirm.tsx                          |     100 |      100 |     100 |     100 |                                                                                                                 
  Pagination.tsx                            |   63.15 |        0 |      50 |   58.82 | 31,40-96                                                                                                        
  PasswordField.tsx                         |   88.88 |       50 |      50 |     100 | 45-55                                                                                                           
  SearchableSelectField.tsx                 |   76.19 |       40 |    62.5 |   73.68 | 37,52-59                                                                                                        
  SelectField.tsx                           |     100 |      100 |     100 |     100 |                                                                                                                 
  StandaloneToast.tsx                       |     100 |      100 |     100 |     100 |                                                                                                                 
  TextField.tsx                             |     100 |      100 |     100 |     100 |                                                                                                                 
  TextareaField.tsx                         |     100 |      100 |     100 |     100 |                                                                                                                 
  Toogle.tsx                                |   85.71 |       50 |      50 |   83.33 | 10                                                                                                              
 common/components/Boards                   |    50.5 |    38.95 |   46.15 |   51.28 |                                                                                                                 
  ListTask.tsx                              |   58.62 |    33.33 |   46.66 |   59.29 | 89-90,95-106,181-273,309-312,319-345,360,371,403-475                                                            
  ModalBoard.tsx                            |    60.6 |       30 |   33.33 |    60.6 | 70,76,80-103,111-121,170                                                                                        
  TaskSkeleton.tsx                          |      75 |      100 |       0 |      75 | 13                                                                                                              
  index.tsx                                 |   42.65 |     42.1 |      50 |    43.9 | 126-133,137-163,167-201,224-238,259-269,280-288,295-302,312-333,339-340,348-368,379,386,393,412-436,477,583-603 
  useBoard.tsx                              |      52 |       50 |      60 |      50 | 19-23,33-43                                                                                                     
  useClearCacheTask.ts                      |   77.77 |      100 |   33.33 |   77.77 | 13-14                                                                                                           
 common/components/CardDetails              |    90.9 |        0 |      50 |      90 |                                                                                                                 
  index.tsx                                 |    90.9 |        0 |      50 |      90 | 28                                                                                                              
 common/components/DateRangePicker          |   77.77 |       50 |   33.33 |   77.77 |                                                                                                                 
  index.tsx                                 |   77.77 |       50 |   33.33 |   77.77 | 38-54                                                                                                           
 common/components/Page                     |     100 |      100 |     100 |     100 |                                                                                                                 
  PageBody.tsx                              |     100 |      100 |     100 |     100 |                                                                                                                 
  PageHeader.tsx                            |     100 |      100 |     100 |     100 |                                                                                                                 
  PageHeaderLeft.tsx                        |     100 |      100 |     100 |     100 |                                                                                                                 
  PageHeaderRight.tsx                       |     100 |      100 |     100 |     100 |                                                                                                                 
  PageHeading.tsx                           |     100 |      100 |     100 |     100 |                                                                                                                 
  index.tsx                                 |     100 |      100 |     100 |     100 |                                                                                                                 
 common/components/Table                    |      75 |       50 |   53.84 |   73.17 |                                                                                                                 
  PageSize.tsx                              |      90 |      100 |      50 |   88.88 | 24                                                                                                              
  ShowingItemText.tsx                       |     100 |       50 |     100 |     100 | 16                                                                                                              
  Table.tsx                                 |   64.28 |       50 |      50 |   62.96 | 61-63,67-69,102-108,146-147                                                                                     
 common/components/TextGroup                |     100 |      100 |     100 |     100 |                                                                                                                 
  TextGroup.tsx                             |     100 |      100 |     100 |     100 |                                                                                                                 
 features/RequestTemplates                  |     100 |       50 |     100 |     100 |                                                                                                                 
  index.tsx                                 |     100 |       50 |     100 |     100 | 18                                                                                                              
 features/RequestTemplates/components       |   84.12 |       50 |    62.5 |    86.2 |                                                                                                                 
  RequestTemplateModal.tsx                  |     100 |      100 |     100 |     100 |                                                                                                                 
  RequestTemplateTable.tsx                  |   82.45 |       50 |      60 |    84.9 | 123,130,145-149,153                                                                                             
 features/RequestTemplates/components/forms |   52.99 |    30.98 |   34.61 |    53.5 |                                                                                                                 
  RequestForm.tsx                           |   52.99 |    30.98 |   34.61 |    53.5 | 85-92,97-122,129-131,139-141,153-164,175-178,187-202,245-280,306-312,356-403                                    
 features/Tasks                             |     100 |      100 |     100 |     100 |                                                                                                                 
  index.tsx                                 |     100 |      100 |     100 |     100 |                                                                                                                 
 features/Tasks/components                  |   70.87 |    58.33 |   56.25 |   70.65 |                                                                                                                 
  RequestInput.tsx                          |   92.85 |       75 |     100 |    92.3 | 14                                                                                                              
  TaskDetailModal.tsx                       |   57.89 |    52.94 |      50 |   58.13 | 74-75,93,107-115,130,136,143-149,159-179,194-202,215,261-364                                                    
  TasksBoard.tsx                            |   83.56 |    70.58 |   59.09 |   82.35 | 100,152-158,169,183,198-248,271                                                                                 
 features/auth/pages                        |   68.29 |    11.11 |      40 |   68.29 |                                                                                                                 
  Login.tsx                                 |   68.29 |    11.11 |      40 |   68.29 | 41,62-71,79-84,89-95                                                                                            
 features/report                            |     100 |       50 |     100 |     100 |                                                                                                                 
  index.tsx                                 |     100 |       50 |     100 |     100 | 9                                                                                                               
 features/report/components                 |   82.73 |    44.61 |   66.66 |   84.37 |                                                                                                                 
  DetailModal.tsx                           |   91.42 |    53.33 |    87.5 |   91.17 | 48,53,151                                                                                                       
  PostAndWFHTable.tsx                       |   77.89 |    37.14 |      60 |   80.23 | 74-82,88-89,95,110-111,115,180,187,226-245                                                                      
  RowAction.tsx                             |     100 |      100 |     100 |     100 |                                                                                                                 
 features/requestDevices                    |     100 |       50 |     100 |     100 |                                                                                                                 
  index.tsx                                 |     100 |       50 |     100 |     100 | 11                                                                                                              
 features/requestDevices/components         |    77.4 |    52.63 |   62.74 |   78.26 |                                                                                                                 
  DetailModal.tsx                           |   82.35 |    69.56 |    62.5 |   83.87 | 44-45,66,74,208                                                                                                 
  MyRequestTable.tsx                        |   74.43 |    41.17 |    61.9 |    75.2 | 199,206,233-234,238-239,243-247,251-268,287-407                                                                 
  RowAction.tsx                             |     100 |      100 |     100 |     100 |                                                                                                                 
 features/userManagement                    |     100 |      100 |     100 |     100 |                                                                                                                 
  index.tsx                                 |     100 |      100 |     100 |     100 |                                                                                                                 
 features/userManagement/components         |   60.58 |    20.83 |   40.54 |   59.68 |                                                                                                                 
  RowAction.tsx                             |     100 |      100 |     100 |     100 |                                                                                                                 
  UserForm.tsx                              |   23.52 |        0 |       0 |   23.52 | 30-255                                                                                                          
  UserManagementTable.tsx                   |   86.36 |    41.66 |   66.66 |   88.33 | 124,131,140-142,146,166                                                                                         
  UserModal.tsx                             |      50 |        0 |       0 |   45.45 | 27-55                                                                                                           
 hooks                                      |      90 |        0 |   83.33 |      90 |                                                                                                                 
  useCurrentUser.ts                         |      90 |        0 |     100 |      90 | 9                                                                                                               
  useDebounced.ts                           |      90 |      100 |      75 |      90 | 7                                                                                                               
 stores                                     |   35.29 |      100 |       0 |   38.46 |                                                                                                                 
  appConfig.ts                              |   35.29 |      100 |       0 |   38.46 | 16-34                                                                                                           
 themes                                     |     100 |      100 |     100 |     100 |                                                                                                                 
  drawerTheme.ts                            |     100 |      100 |     100 |     100 |                                                                                                                 
  menuTheme.ts                              |     100 |      100 |     100 |     100 |                                                                                                                 
  theme.ts                                  |     100 |      100 |     100 |     100 |                                                                                                                 
 utils                                      |   81.65 |    62.96 |   66.66 |   79.86 |                                                                                                                 
  convertToCase.ts                          |     100 |      100 |     100 |     100 |                                                                                                                 
  dateUtils.ts                              |   95.45 |    71.42 |     100 |   94.73 | 20                                                                                                              
  extractContent.ts                         |   71.42 |    57.14 |     100 |   66.66 | 8-11                                                                                                            
  formatDate.ts                             |     100 |      100 |     100 |     100 |                                                                                                                 
  getDayAgo.ts                              |     100 |      100 |     100 |     100 |                                                                                                                 
  getStatusByIndex.ts                       |   85.71 |      100 |     100 |   81.81 | 10,20                                                                                                           
  handleExportExcelFile.ts                  |    37.5 |        0 |       0 |   28.57 | 10-14                                                                                                           
  index.ts                                  |     100 |      100 |   52.94 |     100 |                                                                                                                 
  isObjectEmpty.ts                          |      80 |    66.66 |     100 |      75 | 5                                                                                                               
  isValidJson.ts                            |      25 |        0 |       0 |   14.28 | 2-10                                                                                                            
  localStorage.ts                           |      75 |      100 |      25 |    62.5 | 6,10,14                                                                                                         
  parseJwt.ts                               |   16.66 |        0 |       0 |      10 | 2-18                                                                                                            
  subtractTime.ts                           |   94.11 |        0 |     100 |   94.11 | 21                                                                                                              
  validateWFHDates.ts                       |     100 |      100 |     100 |     100 |                                                                                                                 
  validationSchema.ts                       |     100 |      100 |     100 |     100 |                                                                                                                 
--------------------------------------------|---------|----------|---------|---------|-----------------------------------------------------------------------------------------------------------------
github-actions[bot] commented 1 year ago

Code Coverage Results:

--------------------------------------------|---------|----------|---------|---------|-----------------------------------------------------------------------------------------------------------------
File                                        | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s                                                                                               
--------------------------------------------|---------|----------|---------|---------|-----------------------------------------------------------------------------------------------------------------
All files                                   |    69.1 |    44.76 |      54 |   68.76 |                                                                                                                 
 api/apiHooks                               |   41.37 |        0 |   11.11 |   30.98 |                                                                                                                 
  index.ts                                  |   36.25 |        0 |       4 |   25.75 | 10-11,23-30,38-45,57-64,74-81,85-91,95-101,105-114,118-125,129-135,139-145,149-150                              
  userHooks.ts                              |     100 |      100 |     100 |     100 |                                                                                                                 
 common                                     |     100 |      100 |     100 |     100 |                                                                                                                 
  constants.ts                              |     100 |      100 |     100 |     100 |                                                                                                                 
  enums.ts                                  |     100 |      100 |     100 |     100 |                                                                                                                 
 common/components                          |   82.97 |       25 |      68 |   82.14 |                                                                                                                 
  EmptyWrapper.tsx                          |     100 |    33.33 |     100 |     100 | 13-16                                                                                                           
  ErrorDisplay.tsx                          |      75 |      100 |       0 |   66.66 | 7                                                                                                               
  InputWrapper.tsx                          |     100 |       50 |     100 |     100 | 16-22                                                                                                           
  ModalConfirm.tsx                          |     100 |      100 |     100 |     100 |                                                                                                                 
  Pagination.tsx                            |   63.15 |        0 |      50 |   58.82 | 31,40-96                                                                                                        
  PasswordField.tsx                         |   88.88 |       50 |      50 |     100 | 45-55                                                                                                           
  SearchableSelectField.tsx                 |      76 |       25 |   66.66 |   73.91 | 39,44,61-68                                                                                                     
  SelectField.tsx                           |     100 |      100 |     100 |     100 |                                                                                                                 
  StandaloneToast.tsx                       |     100 |      100 |     100 |     100 |                                                                                                                 
  TextField.tsx                             |     100 |      100 |     100 |     100 |                                                                                                                 
  TextareaField.tsx                         |     100 |      100 |     100 |     100 |                                                                                                                 
  Toogle.tsx                                |   85.71 |       50 |      50 |   83.33 | 10                                                                                                              
 common/components/Boards                   |    50.5 |    38.95 |   46.15 |   51.28 |                                                                                                                 
  ListTask.tsx                              |   58.62 |    33.33 |   46.66 |   59.29 | 89-90,95-106,181-273,309-312,319-345,360,371,403-475                                                            
  ModalBoard.tsx                            |    60.6 |       30 |   33.33 |    60.6 | 70,76,80-103,111-121,170                                                                                        
  TaskSkeleton.tsx                          |      75 |      100 |       0 |      75 | 13                                                                                                              
  index.tsx                                 |   42.65 |     42.1 |      50 |    43.9 | 126-133,137-163,167-201,224-238,259-269,280-288,295-302,312-333,339-340,348-368,379,386,393,412-436,477,583-603 
  useBoard.tsx                              |      52 |       50 |      60 |      50 | 19-23,33-43                                                                                                     
  useClearCacheTask.ts                      |   77.77 |      100 |   33.33 |   77.77 | 13-14                                                                                                           
 common/components/CardDetails              |    90.9 |        0 |      50 |      90 |                                                                                                                 
  index.tsx                                 |    90.9 |        0 |      50 |      90 | 28                                                                                                              
 common/components/DateRangePicker          |   77.77 |       50 |   33.33 |   77.77 |                                                                                                                 
  index.tsx                                 |   77.77 |       50 |   33.33 |   77.77 | 38-54                                                                                                           
 common/components/Page                     |     100 |      100 |     100 |     100 |                                                                                                                 
  PageBody.tsx                              |     100 |      100 |     100 |     100 |                                                                                                                 
  PageHeader.tsx                            |     100 |      100 |     100 |     100 |                                                                                                                 
  PageHeaderLeft.tsx                        |     100 |      100 |     100 |     100 |                                                                                                                 
  PageHeaderRight.tsx                       |     100 |      100 |     100 |     100 |                                                                                                                 
  PageHeading.tsx                           |     100 |      100 |     100 |     100 |                                                                                                                 
  index.tsx                                 |     100 |      100 |     100 |     100 |                                                                                                                 
 common/components/Table                    |      75 |       50 |   53.84 |   73.17 |                                                                                                                 
  PageSize.tsx                              |      90 |      100 |      50 |   88.88 | 24                                                                                                              
  ShowingItemText.tsx                       |     100 |       50 |     100 |     100 | 16                                                                                                              
  Table.tsx                                 |   64.28 |       50 |      50 |   62.96 | 61-63,67-69,102-108,146-147                                                                                     
 common/components/TextGroup                |     100 |      100 |     100 |     100 |                                                                                                                 
  TextGroup.tsx                             |     100 |      100 |     100 |     100 |                                                                                                                 
 features/RequestTemplates                  |     100 |       50 |     100 |     100 |                                                                                                                 
  index.tsx                                 |     100 |       50 |     100 |     100 | 18                                                                                                              
 features/RequestTemplates/components       |   84.12 |       50 |    62.5 |    86.2 |                                                                                                                 
  RequestTemplateModal.tsx                  |     100 |      100 |     100 |     100 |                                                                                                                 
  RequestTemplateTable.tsx                  |   82.45 |       50 |      60 |    84.9 | 123,130,145-149,153                                                                                             
 features/RequestTemplates/components/forms |   52.99 |    30.98 |   34.61 |    53.5 |                                                                                                                 
  RequestForm.tsx                           |   52.99 |    30.98 |   34.61 |    53.5 | 85-92,97-122,129-131,139-141,153-164,175-178,187-202,246-281,307-313,357-404                                    
 features/Tasks                             |     100 |      100 |     100 |     100 |                                                                                                                 
  index.tsx                                 |     100 |      100 |     100 |     100 |                                                                                                                 
 features/Tasks/components                  |   70.87 |    58.33 |   56.25 |   70.65 |                                                                                                                 
  RequestInput.tsx                          |   92.85 |       75 |     100 |    92.3 | 14                                                                                                              
  TaskDetailModal.tsx                       |   57.89 |    52.94 |      50 |   58.13 | 74-75,93,107-115,130,136,143-149,159-179,194-202,215,261-364                                                    
  TasksBoard.tsx                            |   83.56 |    70.58 |   59.09 |   82.35 | 100,152-158,169,183,198-248,271                                                                                 
 features/auth/pages                        |   68.29 |    11.11 |      40 |   68.29 |                                                                                                                 
  Login.tsx                                 |   68.29 |    11.11 |      40 |   68.29 | 41,62-71,79-84,89-95                                                                                            
 features/report                            |     100 |       50 |     100 |     100 |                                                                                                                 
  index.tsx                                 |     100 |       50 |     100 |     100 | 9                                                                                                               
 features/report/components                 |   82.73 |    44.61 |   66.66 |   84.37 |                                                                                                                 
  DetailModal.tsx                           |   91.42 |    53.33 |    87.5 |   91.17 | 48,53,151                                                                                                       
  PostAndWFHTable.tsx                       |   77.89 |    37.14 |      60 |   80.23 | 74-82,88-89,95,110-111,115,180,187,226-245                                                                      
  RowAction.tsx                             |     100 |      100 |     100 |     100 |                                                                                                                 
 features/requestDevices                    |     100 |       50 |     100 |     100 |                                                                                                                 
  index.tsx                                 |     100 |       50 |     100 |     100 | 11                                                                                                              
 features/requestDevices/components         |    77.4 |    52.63 |   62.74 |   78.26 |                                                                                                                 
  DetailModal.tsx                           |   82.35 |    69.56 |    62.5 |   83.87 | 44-45,66,74,208                                                                                                 
  MyRequestTable.tsx                        |   74.43 |    41.17 |    61.9 |    75.2 | 199,206,233-234,238-239,243-247,251-268,287-407                                                                 
  RowAction.tsx                             |     100 |      100 |     100 |     100 |                                                                                                                 
 features/userManagement                    |     100 |      100 |     100 |     100 |                                                                                                                 
  index.tsx                                 |     100 |      100 |     100 |     100 |                                                                                                                 
 features/userManagement/components         |   60.58 |    20.83 |   40.54 |   59.68 |                                                                                                                 
  RowAction.tsx                             |     100 |      100 |     100 |     100 |                                                                                                                 
  UserForm.tsx                              |   23.52 |        0 |       0 |   23.52 | 30-255                                                                                                          
  UserManagementTable.tsx                   |   86.36 |    41.66 |   66.66 |   88.33 | 124,131,140-142,146,166                                                                                         
  UserModal.tsx                             |      50 |        0 |       0 |   45.45 | 27-55                                                                                                           
 hooks                                      |      90 |        0 |   83.33 |      90 |                                                                                                                 
  useCurrentUser.ts                         |      90 |        0 |     100 |      90 | 9                                                                                                               
  useDebounced.ts                           |      90 |      100 |      75 |      90 | 7                                                                                                               
 stores                                     |   35.29 |      100 |       0 |   38.46 |                                                                                                                 
  appConfig.ts                              |   35.29 |      100 |       0 |   38.46 | 16-34                                                                                                           
 themes                                     |     100 |      100 |     100 |     100 |                                                                                                                 
  drawerTheme.ts                            |     100 |      100 |     100 |     100 |                                                                                                                 
  menuTheme.ts                              |     100 |      100 |     100 |     100 |                                                                                                                 
  theme.ts                                  |     100 |      100 |     100 |     100 |                                                                                                                 
 utils                                      |   81.65 |    62.96 |   66.66 |   79.86 |                                                                                                                 
  convertToCase.ts                          |     100 |      100 |     100 |     100 |                                                                                                                 
  dateUtils.ts                              |   95.45 |    71.42 |     100 |   94.73 | 20                                                                                                              
  extractContent.ts                         |   71.42 |    57.14 |     100 |   66.66 | 8-11                                                                                                            
  formatDate.ts                             |     100 |      100 |     100 |     100 |                                                                                                                 
  getDayAgo.ts                              |     100 |      100 |     100 |     100 |                                                                                                                 
  getStatusByIndex.ts                       |   85.71 |      100 |     100 |   81.81 | 10,20                                                                                                           
  handleExportExcelFile.ts                  |    37.5 |        0 |       0 |   28.57 | 10-14                                                                                                           
  index.ts                                  |     100 |      100 |   52.94 |     100 |                                                                                                                 
  isObjectEmpty.ts                          |      80 |    66.66 |     100 |      75 | 5                                                                                                               
  isValidJson.ts                            |      25 |        0 |       0 |   14.28 | 2-10                                                                                                            
  localStorage.ts                           |      75 |      100 |      25 |    62.5 | 6,10,14                                                                                                         
  parseJwt.ts                               |   16.66 |        0 |       0 |      10 | 2-18                                                                                                            
  subtractTime.ts                           |   94.11 |        0 |     100 |   94.11 | 21                                                                                                              
  validateWFHDates.ts                       |     100 |      100 |     100 |     100 |                                                                                                                 
  validationSchema.ts                       |     100 |      100 |     100 |     100 |                                                                                                                 
--------------------------------------------|---------|----------|---------|---------|-----------------------------------------------------------------------------------------------------------------
github-actions[bot] commented 1 year ago

Code Coverage Results:

--------------------------------------------|---------|----------|---------|---------|-----------------------------------------------------------------------------------------------------------------
File                                        | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s                                                                                               
--------------------------------------------|---------|----------|---------|---------|-----------------------------------------------------------------------------------------------------------------
All files                                   |    68.5 |    43.81 |   52.79 |   68.18 |                                                                                                                 
 api/apiHooks                               |   41.37 |        0 |   11.11 |   30.98 |                                                                                                                 
  index.ts                                  |   36.25 |        0 |       4 |   25.75 | 10-11,23-30,38-45,57-64,74-81,85-91,95-101,105-114,118-125,129-135,139-145,149-150                              
  userHooks.ts                              |     100 |      100 |     100 |     100 |                                                                                                                 
 common                                     |     100 |      100 |     100 |     100 |                                                                                                                 
  constants.ts                              |     100 |      100 |     100 |     100 |                                                                                                                 
  enums.ts                                  |     100 |      100 |     100 |     100 |                                                                                                                 
 common/components                          |   83.33 |    25.92 |   66.66 |    82.5 |                                                                                                                 
  EmptyWrapper.tsx                          |     100 |    33.33 |     100 |     100 | 13-16                                                                                                           
  ErrorDisplay.tsx                          |      75 |      100 |       0 |   66.66 | 7                                                                                                               
  InputWrapper.tsx                          |     100 |       50 |     100 |     100 | 16-22                                                                                                           
  ModalConfirm.tsx                          |     100 |      100 |     100 |     100 |                                                                                                                 
  Pagination.tsx                            |   63.15 |        0 |      50 |   58.82 | 31,40-96                                                                                                        
  PasswordField.tsx                         |   88.88 |       50 |      50 |     100 | 45-55                                                                                                           
  SearchableSelectField.tsx                 |   76.19 |    33.33 |    62.5 |   73.68 | 39,51-58                                                                                                        
  SelectField.tsx                           |     100 |      100 |     100 |     100 |                                                                                                                 
  StandaloneToast.tsx                       |     100 |      100 |     100 |     100 |                                                                                                                 
  TextField.tsx                             |     100 |      100 |     100 |     100 |                                                                                                                 
  TextareaField.tsx                         |     100 |      100 |     100 |     100 |                                                                                                                 
  Toogle.tsx                                |   85.71 |       50 |      50 |   83.33 | 10                                                                                                              
 common/components/Boards                   |    50.5 |    38.95 |   46.15 |   51.28 |                                                                                                                 
  ListTask.tsx                              |   58.62 |    33.33 |   46.66 |   59.29 | 89-90,95-106,181-273,309-312,319-345,360,371,403-475                                                            
  ModalBoard.tsx                            |    60.6 |       30 |   33.33 |    60.6 | 70,76,80-103,111-121,170                                                                                        
  TaskSkeleton.tsx                          |      75 |      100 |       0 |      75 | 13                                                                                                              
  index.tsx                                 |   42.65 |     42.1 |      50 |    43.9 | 126-133,137-163,167-201,224-238,259-269,280-288,295-302,312-333,339-340,348-368,379,386,393,412-436,477,583-603 
  useBoard.tsx                              |      52 |       50 |      60 |      50 | 19-23,33-43                                                                                                     
  useClearCacheTask.ts                      |   77.77 |      100 |   33.33 |   77.77 | 13-14                                                                                                           
 common/components/CardDetails              |    90.9 |        0 |      50 |      90 |                                                                                                                 
  index.tsx                                 |    90.9 |        0 |      50 |      90 | 28                                                                                                              
 common/components/DateRangePicker          |   77.77 |       50 |   33.33 |   77.77 |                                                                                                                 
  index.tsx                                 |   77.77 |       50 |   33.33 |   77.77 | 38-54                                                                                                           
 common/components/Page                     |     100 |      100 |     100 |     100 |                                                                                                                 
  PageBody.tsx                              |     100 |      100 |     100 |     100 |                                                                                                                 
  PageHeader.tsx                            |     100 |      100 |     100 |     100 |                                                                                                                 
  PageHeaderLeft.tsx                        |     100 |      100 |     100 |     100 |                                                                                                                 
  PageHeaderRight.tsx                       |     100 |      100 |     100 |     100 |                                                                                                                 
  PageHeading.tsx                           |     100 |      100 |     100 |     100 |                                                                                                                 
  index.tsx                                 |     100 |      100 |     100 |     100 |                                                                                                                 
 common/components/Table                    |      75 |       50 |   53.84 |   73.17 |                                                                                                                 
  PageSize.tsx                              |      90 |      100 |      50 |   88.88 | 24                                                                                                              
  ShowingItemText.tsx                       |     100 |       50 |     100 |     100 | 16                                                                                                              
  Table.tsx                                 |   64.28 |       50 |      50 |   62.96 | 61-63,67-69,102-108,146-147                                                                                     
 common/components/TextGroup                |     100 |      100 |     100 |     100 |                                                                                                                 
  TextGroup.tsx                             |     100 |      100 |     100 |     100 |                                                                                                                 
 features/RequestTemplates                  |     100 |       50 |     100 |     100 |                                                                                                                 
  index.tsx                                 |     100 |       50 |     100 |     100 | 18                                                                                                              
 features/RequestTemplates/components       |   84.12 |       50 |    62.5 |    86.2 |                                                                                                                 
  RequestTemplateModal.tsx                  |     100 |      100 |     100 |     100 |                                                                                                                 
  RequestTemplateTable.tsx                  |   82.45 |       50 |      60 |    84.9 | 123,130,145-149,153                                                                                             
 features/RequestTemplates/components/forms |   52.99 |     31.5 |   34.61 |    53.5 |                                                                                                                 
  RequestForm.tsx                           |   52.99 |     31.5 |   34.61 |    53.5 | 85-92,97-122,129-131,139-141,153-164,175-178,187-202,248-283,309-315,359-406                                    
 features/Tasks                             |     100 |      100 |     100 |     100 |                                                                                                                 
  index.tsx                                 |     100 |      100 |     100 |     100 |                                                                                                                 
 features/Tasks/components                  |   64.73 |    50.81 |   45.65 |   64.77 |                                                                                                                 
  RequestInput.tsx                          |   92.85 |       75 |     100 |    92.3 | 14                                                                                                              
  TaskDetailModal.tsx                       |   44.18 |       40 |   27.27 |   44.87 | 74-75,93,107-115,120-129,134-140,147-187,200,246-348                                                            
  TasksBoard.tsx                            |   83.56 |    70.58 |   59.09 |   82.35 | 100,152-158,169,183,198-248,271                                                                                 
 features/auth/pages                        |   68.29 |    11.11 |      40 |   68.29 |                                                                                                                 
  Login.tsx                                 |   68.29 |    11.11 |      40 |   68.29 | 41,62-71,79-84,89-95                                                                                            
 features/report                            |     100 |       50 |     100 |     100 |                                                                                                                 
  index.tsx                                 |     100 |       50 |     100 |     100 | 9                                                                                                               
 features/report/components                 |   82.73 |    44.61 |   66.66 |   84.37 |                                                                                                                 
  DetailModal.tsx                           |   91.42 |    53.33 |    87.5 |   91.17 | 48,53,151                                                                                                       
  PostAndWFHTable.tsx                       |   77.89 |    37.14 |      60 |   80.23 | 74-82,88-89,95,110-111,115,180,187,226-245                                                                      
  RowAction.tsx                             |     100 |      100 |     100 |     100 |                                                                                                                 
 features/requestDevices                    |     100 |       50 |     100 |     100 |                                                                                                                 
  index.tsx                                 |     100 |       50 |     100 |     100 | 11                                                                                                              
 features/requestDevices/components         |    77.4 |    52.63 |   62.74 |   78.26 |                                                                                                                 
  DetailModal.tsx                           |   82.35 |    69.56 |    62.5 |   83.87 | 44-45,66,74,208                                                                                                 
  MyRequestTable.tsx                        |   74.43 |    41.17 |    61.9 |    75.2 | 199,206,233-234,238-239,243-247,251-268,287-407                                                                 
  RowAction.tsx                             |     100 |      100 |     100 |     100 |                                                                                                                 
 features/userManagement                    |     100 |      100 |     100 |     100 |                                                                                                                 
  index.tsx                                 |     100 |      100 |     100 |     100 |                                                                                                                 
 features/userManagement/components         |   60.58 |    20.83 |   40.54 |   59.68 |                                                                                                                 
  RowAction.tsx                             |     100 |      100 |     100 |     100 |                                                                                                                 
  UserForm.tsx                              |   23.52 |        0 |       0 |   23.52 | 30-255                                                                                                          
  UserManagementTable.tsx                   |   86.36 |    41.66 |   66.66 |   88.33 | 124,131,140-142,146,166                                                                                         
  UserModal.tsx                             |      50 |        0 |       0 |   45.45 | 27-55                                                                                                           
 hooks                                      |      90 |        0 |   83.33 |      90 |                                                                                                                 
  useCurrentUser.ts                         |      90 |        0 |     100 |      90 | 9                                                                                                               
  useDebounced.ts                           |      90 |      100 |      75 |      90 | 7                                                                                                               
 stores                                     |   35.29 |      100 |       0 |   38.46 |                                                                                                                 
  appConfig.ts                              |   35.29 |      100 |       0 |   38.46 | 16-34                                                                                                           
 themes                                     |     100 |      100 |     100 |     100 |                                                                                                                 
  drawerTheme.ts                            |     100 |      100 |     100 |     100 |                                                                                                                 
  menuTheme.ts                              |     100 |      100 |     100 |     100 |                                                                                                                 
  theme.ts                                  |     100 |      100 |     100 |     100 |                                                                                                                 
 utils                                      |   81.65 |    62.96 |   66.66 |   79.86 |                                                                                                                 
  convertToCase.ts                          |     100 |      100 |     100 |     100 |                                                                                                                 
  dateUtils.ts                              |   95.45 |    71.42 |     100 |   94.73 | 20                                                                                                              
  extractContent.ts                         |   71.42 |    57.14 |     100 |   66.66 | 8-11                                                                                                            
  formatDate.ts                             |     100 |      100 |     100 |     100 |                                                                                                                 
  getDayAgo.ts                              |     100 |      100 |     100 |     100 |                                                                                                                 
  getStatusByIndex.ts                       |   85.71 |      100 |     100 |   81.81 | 10,20                                                                                                           
  handleExportExcelFile.ts                  |    37.5 |        0 |       0 |   28.57 | 10-14                                                                                                           
  index.ts                                  |     100 |      100 |   52.94 |     100 |                                                                                                                 
  isObjectEmpty.ts                          |      80 |    66.66 |     100 |      75 | 5                                                                                                               
  isValidJson.ts                            |      25 |        0 |       0 |   14.28 | 2-10                                                                                                            
  localStorage.ts                           |      75 |      100 |      25 |    62.5 | 6,10,14                                                                                                         
  parseJwt.ts                               |   16.66 |        0 |       0 |      10 | 2-18                                                                                                            
  subtractTime.ts                           |   94.11 |        0 |     100 |   94.11 | 21                                                                                                              
  validateWFHDates.ts                       |     100 |      100 |     100 |     100 |                                                                                                                 
  validationSchema.ts                       |     100 |      100 |     100 |     100 |                                                                                                                 
--------------------------------------------|---------|----------|---------|---------|-----------------------------------------------------------------------------------------------------------------
github-actions[bot] commented 1 year ago

Code Coverage Results:

--------------------------------------------|---------|----------|---------|---------|-----------------------------------------------------------------------------------------------------------------
File                                        | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s                                                                                               
--------------------------------------------|---------|----------|---------|---------|-----------------------------------------------------------------------------------------------------------------
All files                                   |   68.38 |    43.66 |   52.79 |   68.07 |                                                                                                                 
 api/apiHooks                               |   41.37 |        0 |   11.11 |   30.98 |                                                                                                                 
  index.ts                                  |   36.25 |        0 |       4 |   25.75 | 10-11,23-30,38-45,57-64,74-81,85-91,95-101,105-114,118-125,129-135,139-145,149-150                              
  userHooks.ts                              |     100 |      100 |     100 |     100 |                                                                                                                 
 common                                     |     100 |      100 |     100 |     100 |                                                                                                                 
  constants.ts                              |     100 |      100 |     100 |     100 |                                                                                                                 
  enums.ts                                  |     100 |      100 |     100 |     100 |                                                                                                                 
 common/components                          |   83.33 |    27.58 |   66.66 |    82.5 |                                                                                                                 
  EmptyWrapper.tsx                          |     100 |    33.33 |     100 |     100 | 13-16                                                                                                           
  ErrorDisplay.tsx                          |      75 |      100 |       0 |   66.66 | 7                                                                                                               
  InputWrapper.tsx                          |     100 |       50 |     100 |     100 | 16-22                                                                                                           
  ModalConfirm.tsx                          |     100 |      100 |     100 |     100 |                                                                                                                 
  Pagination.tsx                            |   63.15 |        0 |      50 |   58.82 | 31,40-96                                                                                                        
  PasswordField.tsx                         |   88.88 |       50 |      50 |     100 | 45-55                                                                                                           
  SearchableSelectField.tsx                 |   76.19 |       40 |    62.5 |   73.68 | 39,54-61                                                                                                        
  SelectField.tsx                           |     100 |      100 |     100 |     100 |                                                                                                                 
  StandaloneToast.tsx                       |     100 |      100 |     100 |     100 |                                                                                                                 
  TextField.tsx                             |     100 |      100 |     100 |     100 |                                                                                                                 
  TextareaField.tsx                         |     100 |      100 |     100 |     100 |                                                                                                                 
  Toogle.tsx                                |   85.71 |       50 |      50 |   83.33 | 10                                                                                                              
 common/components/Boards                   |    50.5 |    38.95 |   46.15 |   51.28 |                                                                                                                 
  ListTask.tsx                              |   58.62 |    33.33 |   46.66 |   59.29 | 89-90,95-106,181-274,310-313,321-350,367,378,410-482                                                            
  ModalBoard.tsx                            |    60.6 |       30 |   33.33 |    60.6 | 70,76,80-103,111-121,170                                                                                        
  TaskSkeleton.tsx                          |      75 |      100 |       0 |      75 | 13                                                                                                              
  index.tsx                                 |   42.65 |     42.1 |      50 |    43.9 | 126-133,137-163,167-201,224-238,259-269,280-288,295-302,312-333,339-340,348-368,379,386,393,412-436,477,583-603 
  useBoard.tsx                              |      52 |       50 |      60 |      50 | 19-23,33-43                                                                                                     
  useClearCacheTask.ts                      |   77.77 |      100 |   33.33 |   77.77 | 13-14                                                                                                           
 common/components/CardDetails              |    90.9 |        0 |      50 |      90 |                                                                                                                 
  index.tsx                                 |    90.9 |        0 |      50 |      90 | 28                                                                                                              
 common/components/DateRangePicker          |   77.77 |       50 |   33.33 |   77.77 |                                                                                                                 
  index.tsx                                 |   77.77 |       50 |   33.33 |   77.77 | 38-54                                                                                                           
 common/components/Page                     |     100 |      100 |     100 |     100 |                                                                                                                 
  PageBody.tsx                              |     100 |      100 |     100 |     100 |                                                                                                                 
  PageHeader.tsx                            |     100 |      100 |     100 |     100 |                                                                                                                 
  PageHeaderLeft.tsx                        |     100 |      100 |     100 |     100 |                                                                                                                 
  PageHeaderRight.tsx                       |     100 |      100 |     100 |     100 |                                                                                                                 
  PageHeading.tsx                           |     100 |      100 |     100 |     100 |                                                                                                                 
  index.tsx                                 |     100 |      100 |     100 |     100 |                                                                                                                 
 common/components/Table                    |      75 |       50 |   53.84 |   73.17 |                                                                                                                 
  PageSize.tsx                              |      90 |      100 |      50 |   88.88 | 24                                                                                                              
  ShowingItemText.tsx                       |     100 |       50 |     100 |     100 | 16                                                                                                              
  Table.tsx                                 |   64.28 |       50 |      50 |   62.96 | 61-63,67-69,102-108,146-147                                                                                     
 common/components/TextGroup                |     100 |      100 |     100 |     100 |                                                                                                                 
  TextGroup.tsx                             |     100 |      100 |     100 |     100 |                                                                                                                 
 features/RequestTemplates                  |     100 |       50 |     100 |     100 |                                                                                                                 
  index.tsx                                 |     100 |       50 |     100 |     100 | 18                                                                                                              
 features/RequestTemplates/components       |   84.12 |       50 |    62.5 |    86.2 |                                                                                                                 
  RequestTemplateModal.tsx                  |     100 |      100 |     100 |     100 |                                                                                                                 
  RequestTemplateTable.tsx                  |   82.45 |       50 |      60 |    84.9 | 123,130,145-149,153                                                                                             
 features/RequestTemplates/components/forms |   50.39 |    28.94 |   33.33 |    50.8 |                                                                                                                 
  RequestForm.tsx                           |   50.39 |    28.94 |   33.33 |    50.8 | 86-93,98-123,130-132,140-142,154-165,176-179,186-189,196-223,267-302,328-334,378-425                            
 features/Tasks                             |     100 |      100 |     100 |     100 |                                                                                                                 
  index.tsx                                 |     100 |      100 |     100 |     100 |                                                                                                                 
 features/Tasks/components                  |   66.26 |    53.44 |   46.66 |   66.44 |                                                                                                                 
  RequestInput.tsx                          |   92.85 |       75 |     100 |    92.3 | 14                                                                                                              
  TaskDetailModal.tsx                       |   45.56 |    43.24 |   28.57 |   46.47 | 64-65,83,97-105,110-119,126-164,174,223-325                                                                     
  TasksBoard.tsx                            |   83.56 |    70.58 |   59.09 |   82.35 | 100,152-158,169,183,198-248,271                                                                                 
 features/auth/pages                        |   68.29 |    11.11 |      40 |   68.29 |                                                                                                                 
  Login.tsx                                 |   68.29 |    11.11 |      40 |   68.29 | 41,62-71,79-84,89-95                                                                                            
 features/report                            |     100 |       50 |     100 |     100 |                                                                                                                 
  index.tsx                                 |     100 |       50 |     100 |     100 | 9                                                                                                               
 features/report/components                 |   82.73 |    44.61 |   66.66 |   84.37 |                                                                                                                 
  DetailModal.tsx                           |   91.42 |    53.33 |    87.5 |   91.17 | 48,53,151                                                                                                       
  PostAndWFHTable.tsx                       |   77.89 |    37.14 |      60 |   80.23 | 74-82,88-89,95,110-111,115,180,187,226-245                                                                      
  RowAction.tsx                             |     100 |      100 |     100 |     100 |                                                                                                                 
 features/requestDevices                    |     100 |       50 |     100 |     100 |                                                                                                                 
  index.tsx                                 |     100 |       50 |     100 |     100 | 11                                                                                                              
 features/requestDevices/components         |    77.4 |    52.63 |   62.74 |   78.26 |                                                                                                                 
  DetailModal.tsx                           |   82.35 |    69.56 |    62.5 |   83.87 | 44-45,66,74,213                                                                                                 
  MyRequestTable.tsx                        |   74.43 |    41.17 |    61.9 |    75.2 | 199,206,233-234,238-239,243-247,251-268,287-407                                                                 
  RowAction.tsx                             |     100 |      100 |     100 |     100 |                                                                                                                 
 features/userManagement                    |     100 |      100 |     100 |     100 |                                                                                                                 
  index.tsx                                 |     100 |      100 |     100 |     100 |                                                                                                                 
 features/userManagement/components         |   60.58 |    20.83 |   40.54 |   59.68 |                                                                                                                 
  RowAction.tsx                             |     100 |      100 |     100 |     100 |                                                                                                                 
  UserForm.tsx                              |   23.52 |        0 |       0 |   23.52 | 30-255                                                                                                          
  UserManagementTable.tsx                   |   86.36 |    41.66 |   66.66 |   88.33 | 124,131,140-142,146,166                                                                                         
  UserModal.tsx                             |      50 |        0 |       0 |   45.45 | 27-55                                                                                                           
 hooks                                      |      90 |        0 |   83.33 |      90 |                                                                                                                 
  useCurrentUser.ts                         |      90 |        0 |     100 |      90 | 9                                                                                                               
  useDebounced.ts                           |      90 |      100 |      75 |      90 | 7                                                                                                               
 stores                                     |   35.29 |      100 |       0 |   38.46 |                                                                                                                 
  appConfig.ts                              |   35.29 |      100 |       0 |   38.46 | 16-34                                                                                                           
 themes                                     |     100 |      100 |     100 |     100 |                                                                                                                 
  drawerTheme.ts                            |     100 |      100 |     100 |     100 |                                                                                                                 
  menuTheme.ts                              |     100 |      100 |     100 |     100 |                                                                                                                 
  theme.ts                                  |     100 |      100 |     100 |     100 |                                                                                                                 
 utils                                      |   81.65 |    62.96 |   66.66 |   79.86 |                                                                                                                 
  convertToCase.ts                          |     100 |      100 |     100 |     100 |                                                                                                                 
  dateUtils.ts                              |   95.45 |    71.42 |     100 |   94.73 | 20                                                                                                              
  extractContent.ts                         |   71.42 |    57.14 |     100 |   66.66 | 8-11                                                                                                            
  formatDate.ts                             |     100 |      100 |     100 |     100 |                                                                                                                 
  getDayAgo.ts                              |     100 |      100 |     100 |     100 |                                                                                                                 
  getStatusByIndex.ts                       |   85.71 |      100 |     100 |   81.81 | 10,20                                                                                                           
  handleExportExcelFile.ts                  |    37.5 |        0 |       0 |   28.57 | 10-14                                                                                                           
  index.ts                                  |     100 |      100 |   52.94 |     100 |                                                                                                                 
  isObjectEmpty.ts                          |      80 |    66.66 |     100 |      75 | 5                                                                                                               
  isValidJson.ts                            |      25 |        0 |       0 |   14.28 | 2-10                                                                                                            
  localStorage.ts                           |      75 |      100 |      25 |    62.5 | 6,10,14                                                                                                         
  parseJwt.ts                               |   16.66 |        0 |       0 |      10 | 2-18                                                                                                            
  subtractTime.ts                           |   94.11 |        0 |     100 |   94.11 | 21                                                                                                              
  validateWFHDates.ts                       |     100 |      100 |     100 |     100 |                                                                                                                 
  validationSchema.ts                       |     100 |      100 |     100 |     100 |                                                                                                                 
--------------------------------------------|---------|----------|---------|---------|-----------------------------------------------------------------------------------------------------------------