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

0 stars 0 forks source link

update charge in request template page #249

Closed hongdiem-nguyen closed 1 month ago

hongdiem-nguyen commented 1 month ago

Checklist (check all applicable) (*)

Description

Related Tickets & Documents (*)

https://github.com/ncc-erp/ncc-erp-workflow-w2-ui/issues/240

Evidence (*)

https://drive.google.com/file/d/1l9JRDNtHBZi5eOu1pkT-qQpXiUFmXNzL/view?usp=sharing

github-actions[bot] commented 1 month ago

Code Coverage Results:

---------------------------------------------|---------|----------|---------|---------|-----------------------------------------------------------------------------------------------------------------
File                                         | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s                                                                                               
---------------------------------------------|---------|----------|---------|---------|-----------------------------------------------------------------------------------------------------------------
All files                                    |   64.32 |    44.74 |   47.56 |   63.98 |                                                                                                                 
 api/apiHooks                                |   41.37 |        0 |   11.11 |   30.98 |                                                                                                                 
  index.ts                                   |   36.25 |        0 |       4 |   25.75 | 10-11,23-34,42-49,61-68,78-85,89-95,99-105,109-118,122-129,133-139,143-149,153-154                              
  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                           |    85.8 |     41.3 |   73.68 |   85.33 |                                                                                                                 
  CurrentUser.tsx                            |     100 |       75 |     100 |     100 | 16                                                                                                              
  EmptyWrapper.tsx                           |     100 |    33.33 |     100 |     100 | 13-16                                                                                                           
  ErrorDisplay.tsx                           |     100 |      100 |     100 |     100 |                                                                                                                 
  InputWrapper.tsx                           |     100 |       50 |     100 |     100 | 16-22                                                                                                           
  ModalConfirm.tsx                           |     100 |      100 |     100 |     100 |                                                                                                                 
  OverflowText.tsx                           |     100 |      100 |     100 |     100 |                                                                                                                 
  Pagination.tsx                             |   66.66 |     3.03 |      50 |   63.15 | 33,42-98                                                                                                        
  PasswordField.tsx                          |   88.88 |       50 |      50 |     100 | 45-55                                                                                                           
  SearchableSelectField.tsx                  |   77.77 |    63.63 |   66.66 |   76.92 | 47,58,68-75                                                                                                     
  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                                 |   73.91 |    45.45 |   33.33 |   71.42 | 17-20,40-66                                                                                                     
  WorkflowModal.tsx                          |     100 |      100 |     100 |     100 |                                                                                                                 
  textTooltip.tsx                            |   88.88 |    77.27 |     100 |   88.88 | 35,51,59                                                                                                        
 common/components/Boards                    |   51.86 |    45.07 |   47.72 |   52.63 |                                                                                                                 
  ListTask.tsx                               |    61.6 |       40 |   52.94 |   62.29 | 92-93,98-109,245-337,373-376,384-413,430,441,482-556                                                            
  ModalBoard.tsx                             |   62.85 |     42.3 |   33.33 |   62.85 | 79,85,89-112,120-130,212                                                                                        
  TaskSkeleton.tsx                           |      75 |      100 |       0 |      75 | 13                                                                                                              
  index.tsx                                  |   43.47 |     47.2 |   47.22 |   44.64 | 141-148,152-185,189-223,250-264,285-295,306-320,327-340,350-371,377-378,386-407,418,425,432,455-479,531,631-651 
  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 | 40-56                                                                                                           
 common/components/IFrame                    |    12.5 |        0 |       0 |    12.5 |                                                                                                                 
  index.tsx                                  |    12.5 |        0 |       0 |    12.5 | 10-55                                                                                                           
 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                     |   76.27 |    51.11 |   47.05 |      75 |                                                                                                                 
  PageSize.tsx                               |      90 |      100 |      50 |   88.88 | 26                                                                                                              
  ShowingItemText.tsx                        |     100 |       50 |     100 |     100 | 16                                                                                                              
  Table.tsx                                  |   69.23 |    51.16 |   46.15 |   68.42 | 84-86,90-92,148-199,228-229                                                                                     
  TableSkeleton.tsx                          |      75 |      100 |       0 |      75 | 4                                                                                                               
 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 | 22                                                                                                              
 features/RequestTemplates/components        |      50 |    33.33 |      20 |      50 |                                                                                                                 
  ExportImportJson.tsx                       |   19.35 |        0 |       0 |   19.35 | 23-75                                                                                                           
  RequestTemplateTable.tsx                   |   59.09 |       50 |   26.08 |      60 | 54-57,62-66,70-72,76-77,117-137,171-175,179-182,186,234-269                                                     
  RowAction.tsx                              |   66.66 |      100 |       0 |    62.5 | 26-29                                                                                                           
 features/RequestTemplates/components/forms  |   39.85 |       23 |   23.21 |   39.63 |                                                                                                                 
  CreateForm.tsx                             |   38.23 |        0 |       0 |   38.23 | 51-124                                                                                                          
  DefineInputForm.tsx                        |    32.5 |        0 |       0 |    32.5 | 52-195                                                                                                          
  ImportJsonForm.tsx                         |   14.28 |        0 |       0 |    14.7 | 23-76                                                                                                           
  RequestForm.tsx                            |   52.08 |    29.88 |   44.82 |   52.14 | 89-96,104-130,137-139,143-151,166-177,191-194,201-204,211-238,282-317,343,388-401,429-470                       
  SettingForm.tsx                            |   21.42 |        0 |       0 |   18.51 | 16-56                                                                                                           
 features/RequestTemplates/components/modals |   72.09 |        0 |   44.44 |   71.05 |                                                                                                                 
  CreateTemplateModal.tsx                    |     100 |      100 |     100 |     100 |                                                                                                                 
  DefineTemplateInputModal.tsx               |      56 |        0 |   33.33 |   56.52 | 37-43,55-66                                                                                                     
  ImportJsonModal.tsx                        |   83.33 |      100 |       0 |      80 | 25                                                                                                              
  RequestTemplateModal.tsx                   |     100 |      100 |     100 |     100 |                                                                                                                 
 features/Tasks                              |     100 |      100 |     100 |     100 |                                                                                                                 
  index.tsx                                  |     100 |      100 |     100 |     100 |                                                                                                                 
 features/Tasks/components                   |   63.11 |    53.08 |   38.09 |   63.59 |                                                                                                                 
  RequestInput.tsx                           |   92.85 |       75 |     100 |    92.3 | 14                                                                                                              
  TaskDetailModal.tsx                        |   50.32 |    44.82 |   23.07 |   51.72 | 109-110,147-149,152-154,158-175,182-198,202-206,225,239-247,263-272,284-294,298-311,321-339,358,406-553         
  TasksBoard.tsx                             |      84 |    73.68 |   59.09 |   82.85 | 102,155-161,172,186,201-251,281                                                                                 
 features/auth/pages                         |   60.41 |    30.76 |      40 |   60.41 |                                                                                                                 
  Login.tsx                                  |   60.41 |    30.76 |      40 |   60.41 | 42,63-85,95-100,105-111                                                                                         
 features/report                             |     100 |       50 |     100 |     100 |                                                                                                                 
  index.tsx                                  |     100 |       50 |     100 |     100 | 9                                                                                                               
 features/report/components                  |   82.26 |    49.29 |      65 |   83.84 |                                                                                                                 
  DetailModal.tsx                            |   91.42 |    53.33 |    87.5 |   91.17 | 48,53,151                                                                                                       
  PostAndWFHTable.tsx                        |   77.31 |    46.34 |   58.06 |   79.54 | 78-86,92-93,99,114-115,119,185,192,233-270                                                                      
  RowAction.tsx                              |     100 |      100 |     100 |     100 |                                                                                                                 
 features/requestDevices                     |     100 |       50 |     100 |     100 |                                                                                                                 
  index.tsx                                  |     100 |       50 |     100 |     100 | 11                                                                                                              
 features/requestDevices/components          |   72.41 |    58.09 |   54.41 |   74.64 |                                                                                                                 
  DetailModal.tsx                            |   60.52 |    56.52 |   41.66 |   65.15 | 65-66,87,95-105,127-128,133,152,169-176,181-194,329                                                             
  MyRequestTable.tsx                         |   76.71 |     57.4 |   60.46 |   77.61 | 134-136,277,284,311-312,316-317,321-324,328-336,350-504                                                         
  RowAction.tsx                              |     100 |       80 |     100 |     100 | 28                                                                                                              
 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 | 123,130,139-141,145,165                                                                                         
  UserModal.tsx                              |      50 |        0 |       0 |   45.45 | 27-55                                                                                                           
 hooks                                       |   90.62 |       25 |    87.5 |   90.62 |                                                                                                                 
  useCurrentUser.ts                          |      90 |        0 |     100 |      90 | 9                                                                                                               
  useDebounced.ts                            |      90 |      100 |      75 |      90 | 7                                                                                                               
  useIsAdmin.ts                              |   91.66 |    33.33 |     100 |   91.66 | 10                                                                                                              
 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                                       |   82.88 |    57.69 |   68.08 |   81.21 |                                                                                                                 
  convertToCase.ts                           |     100 |      100 |     100 |     100 |                                                                                                                 
  dateUtils.ts                               |   95.45 |    71.42 |     100 |   94.73 | 20                                                                                                              
  extractContent.ts                          |   85.71 |       25 |     100 |   83.33 | 5                                                                                                               
  formatDate.ts                              |     100 |      100 |     100 |     100 |                                                                                                                 
  getColorTypeRequest.ts                     |    92.3 |       50 |     100 |   91.66 | 19                                                                                                              
  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 |   58.82 |     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                                                                                                            
  removeDiacritics.ts                        |   66.66 |      100 |       0 |      50 | 2                                                                                                               
  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 month ago

Code Coverage Results:

---------------------------------------------|---------|----------|---------|---------|-----------------------------------------------------------------------------------------------------------------
File                                         | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s                                                                                               
---------------------------------------------|---------|----------|---------|---------|-----------------------------------------------------------------------------------------------------------------
All files                                    |   64.42 |    44.58 |   47.56 |   64.12 |                                                                                                                 
 api/apiHooks                                |   41.37 |        0 |   11.11 |   30.98 |                                                                                                                 
  index.ts                                   |   36.25 |        0 |       4 |   25.75 | 10-11,23-34,42-49,61-68,78-85,89-95,99-105,109-118,122-129,133-139,143-149,153-154                              
  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                           |    85.8 |     41.3 |   73.68 |   85.33 |                                                                                                                 
  CurrentUser.tsx                            |     100 |       75 |     100 |     100 | 16                                                                                                              
  EmptyWrapper.tsx                           |     100 |    33.33 |     100 |     100 | 13-16                                                                                                           
  ErrorDisplay.tsx                           |     100 |      100 |     100 |     100 |                                                                                                                 
  InputWrapper.tsx                           |     100 |       50 |     100 |     100 | 16-22                                                                                                           
  ModalConfirm.tsx                           |     100 |      100 |     100 |     100 |                                                                                                                 
  OverflowText.tsx                           |     100 |      100 |     100 |     100 |                                                                                                                 
  Pagination.tsx                             |   66.66 |     3.03 |      50 |   63.15 | 33,42-98                                                                                                        
  PasswordField.tsx                          |   88.88 |       50 |      50 |     100 | 45-55                                                                                                           
  SearchableSelectField.tsx                  |   77.77 |    63.63 |   66.66 |   76.92 | 47,58,68-75                                                                                                     
  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                                 |   73.91 |    45.45 |   33.33 |   71.42 | 17-20,40-66                                                                                                     
  WorkflowModal.tsx                          |     100 |      100 |     100 |     100 |                                                                                                                 
  textTooltip.tsx                            |   88.88 |    77.27 |     100 |   88.88 | 35,51,59                                                                                                        
 common/components/Boards                    |   51.86 |    45.07 |   47.72 |   52.63 |                                                                                                                 
  ListTask.tsx                               |    61.6 |       40 |   52.94 |   62.29 | 92-93,98-109,245-337,373-376,384-413,430,441,482-556                                                            
  ModalBoard.tsx                             |   62.85 |     42.3 |   33.33 |   62.85 | 79,85,89-112,120-130,212                                                                                        
  TaskSkeleton.tsx                           |      75 |      100 |       0 |      75 | 13                                                                                                              
  index.tsx                                  |   43.47 |     47.2 |   47.22 |   44.64 | 141-148,152-185,189-223,250-264,285-295,306-320,327-340,350-371,377-378,386-407,418,425,432,455-479,531,631-651 
  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 | 40-56                                                                                                           
 common/components/IFrame                    |    12.5 |        0 |       0 |    12.5 |                                                                                                                 
  index.tsx                                  |    12.5 |        0 |       0 |    12.5 | 10-55                                                                                                           
 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                     |   76.27 |    51.11 |   47.05 |      75 |                                                                                                                 
  PageSize.tsx                               |      90 |      100 |      50 |   88.88 | 26                                                                                                              
  ShowingItemText.tsx                        |     100 |       50 |     100 |     100 | 16                                                                                                              
  Table.tsx                                  |   69.23 |    51.16 |   46.15 |   68.42 | 84-86,90-92,148-199,228-229                                                                                     
  TableSkeleton.tsx                          |      75 |      100 |       0 |      75 | 4                                                                                                               
 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 | 22                                                                                                              
 features/RequestTemplates/components        |      50 |    33.33 |      20 |      50 |                                                                                                                 
  ExportImportJson.tsx                       |   19.35 |        0 |       0 |   19.35 | 23-75                                                                                                           
  RequestTemplateTable.tsx                   |   59.09 |       50 |   26.08 |      60 | 54-57,62-66,70-72,76-77,117-137,171-175,179-182,186,234-269                                                     
  RowAction.tsx                              |   66.66 |      100 |       0 |    62.5 | 26-29                                                                                                           
 features/RequestTemplates/components/forms  |   40.43 |    22.41 |   23.21 |   40.37 |                                                                                                                 
  CreateForm.tsx                             |   38.23 |        0 |       0 |   38.23 | 51-124                                                                                                          
  DefineInputForm.tsx                        |    32.5 |        0 |       0 |    32.5 | 52-195                                                                                                          
  ImportJsonForm.tsx                         |   14.28 |        0 |       0 |    14.7 | 23-76                                                                                                           
  RequestForm.tsx                            |   52.08 |    29.88 |   44.82 |   52.14 | 89-96,104-130,137-139,143-151,166-177,191-194,201-204,211-238,282-317,343,388-401,429-470                       
  SettingForm.tsx                            |      25 |        0 |       0 |   22.72 | 16-63                                                                                                           
 features/RequestTemplates/components/modals |   72.09 |        0 |   44.44 |   71.05 |                                                                                                                 
  CreateTemplateModal.tsx                    |     100 |      100 |     100 |     100 |                                                                                                                 
  DefineTemplateInputModal.tsx               |      56 |        0 |   33.33 |   56.52 | 37-43,55-66                                                                                                     
  ImportJsonModal.tsx                        |   83.33 |      100 |       0 |      80 | 25                                                                                                              
  RequestTemplateModal.tsx                   |     100 |      100 |     100 |     100 |                                                                                                                 
 features/Tasks                              |     100 |      100 |     100 |     100 |                                                                                                                 
  index.tsx                                  |     100 |      100 |     100 |     100 |                                                                                                                 
 features/Tasks/components                   |   63.11 |    53.08 |   38.09 |   63.59 |                                                                                                                 
  RequestInput.tsx                           |   92.85 |       75 |     100 |    92.3 | 14                                                                                                              
  TaskDetailModal.tsx                        |   50.32 |    44.82 |   23.07 |   51.72 | 109-110,147-149,152-154,158-175,182-198,202-206,225,239-247,263-272,284-294,298-311,321-339,358,406-553         
  TasksBoard.tsx                             |      84 |    73.68 |   59.09 |   82.85 | 102,155-161,172,186,201-251,281                                                                                 
 features/auth/pages                         |   60.41 |    30.76 |      40 |   60.41 |                                                                                                                 
  Login.tsx                                  |   60.41 |    30.76 |      40 |   60.41 | 42,63-85,95-100,105-111                                                                                         
 features/report                             |     100 |       50 |     100 |     100 |                                                                                                                 
  index.tsx                                  |     100 |       50 |     100 |     100 | 9                                                                                                               
 features/report/components                  |   82.26 |    49.29 |      65 |   83.84 |                                                                                                                 
  DetailModal.tsx                            |   91.42 |    53.33 |    87.5 |   91.17 | 48,53,151                                                                                                       
  PostAndWFHTable.tsx                        |   77.31 |    46.34 |   58.06 |   79.54 | 78-86,92-93,99,114-115,119,185,192,233-270                                                                      
  RowAction.tsx                              |     100 |      100 |     100 |     100 |                                                                                                                 
 features/requestDevices                     |     100 |       50 |     100 |     100 |                                                                                                                 
  index.tsx                                  |     100 |       50 |     100 |     100 | 11                                                                                                              
 features/requestDevices/components          |   72.41 |    58.09 |   54.41 |   74.64 |                                                                                                                 
  DetailModal.tsx                            |   60.52 |    56.52 |   41.66 |   65.15 | 65-66,87,95-105,127-128,133,152,169-176,181-194,329                                                             
  MyRequestTable.tsx                         |   76.71 |     57.4 |   60.46 |   77.61 | 134-136,277,284,311-312,316-317,321-324,328-336,350-504                                                         
  RowAction.tsx                              |     100 |       80 |     100 |     100 | 28                                                                                                              
 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 | 123,130,139-141,145,165                                                                                         
  UserModal.tsx                              |      50 |        0 |       0 |   45.45 | 27-55                                                                                                           
 hooks                                       |   90.62 |       25 |    87.5 |   90.62 |                                                                                                                 
  useCurrentUser.ts                          |      90 |        0 |     100 |      90 | 9                                                                                                               
  useDebounced.ts                            |      90 |      100 |      75 |      90 | 7                                                                                                               
  useIsAdmin.ts                              |   91.66 |    33.33 |     100 |   91.66 | 10                                                                                                              
 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                                       |   82.88 |    57.69 |   68.08 |   81.21 |                                                                                                                 
  convertToCase.ts                           |     100 |      100 |     100 |     100 |                                                                                                                 
  dateUtils.ts                               |   95.45 |    71.42 |     100 |   94.73 | 20                                                                                                              
  extractContent.ts                          |   85.71 |       25 |     100 |   83.33 | 5                                                                                                               
  formatDate.ts                              |     100 |      100 |     100 |     100 |                                                                                                                 
  getColorTypeRequest.ts                     |    92.3 |       50 |     100 |   91.66 | 19                                                                                                              
  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 |   58.82 |     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                                                                                                            
  removeDiacritics.ts                        |   66.66 |      100 |       0 |      50 | 2                                                                                                               
  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 month ago

Code Coverage Results:

---------------------------------------------|---------|----------|---------|---------|-----------------------------------------------------------------------------------------------------------------
File                                         | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s                                                                                               
---------------------------------------------|---------|----------|---------|---------|-----------------------------------------------------------------------------------------------------------------
All files                                    |   64.45 |    44.58 |   47.56 |   64.15 |                                                                                                                 
 api/apiHooks                                |   41.37 |        0 |   11.11 |   30.98 |                                                                                                                 
  index.ts                                   |   36.25 |        0 |       4 |   25.75 | 10-11,23-34,42-49,61-68,78-85,89-95,99-105,109-118,122-129,133-139,143-149,153-154                              
  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                           |    85.8 |     41.3 |   73.68 |   85.33 |                                                                                                                 
  CurrentUser.tsx                            |     100 |       75 |     100 |     100 | 16                                                                                                              
  EmptyWrapper.tsx                           |     100 |    33.33 |     100 |     100 | 13-16                                                                                                           
  ErrorDisplay.tsx                           |     100 |      100 |     100 |     100 |                                                                                                                 
  InputWrapper.tsx                           |     100 |       50 |     100 |     100 | 16-22                                                                                                           
  ModalConfirm.tsx                           |     100 |      100 |     100 |     100 |                                                                                                                 
  OverflowText.tsx                           |     100 |      100 |     100 |     100 |                                                                                                                 
  Pagination.tsx                             |   66.66 |     3.03 |      50 |   63.15 | 33,42-98                                                                                                        
  PasswordField.tsx                          |   88.88 |       50 |      50 |     100 | 45-55                                                                                                           
  SearchableSelectField.tsx                  |   77.77 |    63.63 |   66.66 |   76.92 | 47,58,68-75                                                                                                     
  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                                 |   73.91 |    45.45 |   33.33 |   71.42 | 17-20,40-66                                                                                                     
  WorkflowModal.tsx                          |     100 |      100 |     100 |     100 |                                                                                                                 
  textTooltip.tsx                            |   88.88 |    77.27 |     100 |   88.88 | 35,51,59                                                                                                        
 common/components/Boards                    |   51.86 |    45.07 |   47.72 |   52.63 |                                                                                                                 
  ListTask.tsx                               |    61.6 |       40 |   52.94 |   62.29 | 92-93,98-109,245-337,373-376,384-413,430,441,482-556                                                            
  ModalBoard.tsx                             |   62.85 |     42.3 |   33.33 |   62.85 | 79,85,89-112,120-130,212                                                                                        
  TaskSkeleton.tsx                           |      75 |      100 |       0 |      75 | 13                                                                                                              
  index.tsx                                  |   43.47 |     47.2 |   47.22 |   44.64 | 141-148,152-185,189-223,250-264,285-295,306-320,327-340,350-371,377-378,386-407,418,425,432,455-479,531,631-651 
  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 | 40-56                                                                                                           
 common/components/IFrame                    |    12.5 |        0 |       0 |    12.5 |                                                                                                                 
  index.tsx                                  |    12.5 |        0 |       0 |    12.5 | 10-55                                                                                                           
 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                     |   76.27 |    51.11 |   47.05 |      75 |                                                                                                                 
  PageSize.tsx                               |      90 |      100 |      50 |   88.88 | 26                                                                                                              
  ShowingItemText.tsx                        |     100 |       50 |     100 |     100 | 16                                                                                                              
  Table.tsx                                  |   69.23 |    51.16 |   46.15 |   68.42 | 84-86,90-92,148-199,228-229                                                                                     
  TableSkeleton.tsx                          |      75 |      100 |       0 |      75 | 4                                                                                                               
 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 | 22                                                                                                              
 features/RequestTemplates/components        |      50 |    33.33 |      20 |      50 |                                                                                                                 
  ExportImportJson.tsx                       |   19.35 |        0 |       0 |   19.35 | 23-75                                                                                                           
  RequestTemplateTable.tsx                   |   59.09 |       50 |   26.08 |      60 | 54-57,62-66,70-72,76-77,117-137,171-175,179-182,186,234-269                                                     
  RowAction.tsx                              |   66.66 |      100 |       0 |    62.5 | 26-29                                                                                                           
 features/RequestTemplates/components/forms  |   40.43 |    22.41 |   23.21 |   40.37 |                                                                                                                 
  CreateForm.tsx                             |   38.23 |        0 |       0 |   38.23 | 51-124                                                                                                          
  DefineInputForm.tsx                        |    32.5 |        0 |       0 |    32.5 | 52-195                                                                                                          
  ImportJsonForm.tsx                         |   14.28 |        0 |       0 |    14.7 | 23-76                                                                                                           
  RequestForm.tsx                            |   52.08 |    29.88 |   44.82 |   52.14 | 89-96,104-130,137-139,143-151,166-177,191-194,201-204,211-238,282-317,343,388-401,429-470                       
  SettingForm.tsx                            |      25 |        0 |       0 |   22.72 | 16-63                                                                                                           
 features/RequestTemplates/components/modals |    73.8 |        0 |   44.44 |   72.97 |                                                                                                                 
  CreateTemplateModal.tsx                    |     100 |      100 |     100 |     100 |                                                                                                                 
  DefineTemplateInputModal.tsx               |   58.33 |        0 |   33.33 |   59.09 | 37-42,54-65                                                                                                     
  ImportJsonModal.tsx                        |   83.33 |      100 |       0 |      80 | 25                                                                                                              
  RequestTemplateModal.tsx                   |     100 |      100 |     100 |     100 |                                                                                                                 
 features/Tasks                              |     100 |      100 |     100 |     100 |                                                                                                                 
  index.tsx                                  |     100 |      100 |     100 |     100 |                                                                                                                 
 features/Tasks/components                   |   63.11 |    53.08 |   38.09 |   63.59 |                                                                                                                 
  RequestInput.tsx                           |   92.85 |       75 |     100 |    92.3 | 14                                                                                                              
  TaskDetailModal.tsx                        |   50.32 |    44.82 |   23.07 |   51.72 | 109-110,147-149,152-154,158-175,182-198,202-206,225,239-247,263-272,284-294,298-311,321-339,358,406-553         
  TasksBoard.tsx                             |      84 |    73.68 |   59.09 |   82.85 | 102,155-161,172,186,201-251,281                                                                                 
 features/auth/pages                         |   60.41 |    30.76 |      40 |   60.41 |                                                                                                                 
  Login.tsx                                  |   60.41 |    30.76 |      40 |   60.41 | 42,63-85,95-100,105-111                                                                                         
 features/report                             |     100 |       50 |     100 |     100 |                                                                                                                 
  index.tsx                                  |     100 |       50 |     100 |     100 | 9                                                                                                               
 features/report/components                  |   82.26 |    49.29 |      65 |   83.84 |                                                                                                                 
  DetailModal.tsx                            |   91.42 |    53.33 |    87.5 |   91.17 | 48,53,151                                                                                                       
  PostAndWFHTable.tsx                        |   77.31 |    46.34 |   58.06 |   79.54 | 78-86,92-93,99,114-115,119,185,192,233-270                                                                      
  RowAction.tsx                              |     100 |      100 |     100 |     100 |                                                                                                                 
 features/requestDevices                     |     100 |       50 |     100 |     100 |                                                                                                                 
  index.tsx                                  |     100 |       50 |     100 |     100 | 11                                                                                                              
 features/requestDevices/components          |   72.41 |    58.09 |   54.41 |   74.64 |                                                                                                                 
  DetailModal.tsx                            |   60.52 |    56.52 |   41.66 |   65.15 | 65-66,87,95-105,127-128,133,152,169-176,181-194,329                                                             
  MyRequestTable.tsx                         |   76.71 |     57.4 |   60.46 |   77.61 | 134-136,277,284,311-312,316-317,321-324,328-336,350-504                                                         
  RowAction.tsx                              |     100 |       80 |     100 |     100 | 28                                                                                                              
 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 | 123,130,139-141,145,165                                                                                         
  UserModal.tsx                              |      50 |        0 |       0 |   45.45 | 27-55                                                                                                           
 hooks                                       |   90.62 |       25 |    87.5 |   90.62 |                                                                                                                 
  useCurrentUser.ts                          |      90 |        0 |     100 |      90 | 9                                                                                                               
  useDebounced.ts                            |      90 |      100 |      75 |      90 | 7                                                                                                               
  useIsAdmin.ts                              |   91.66 |    33.33 |     100 |   91.66 | 10                                                                                                              
 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                                       |   82.88 |    57.69 |   68.08 |   81.21 |                                                                                                                 
  convertToCase.ts                           |     100 |      100 |     100 |     100 |                                                                                                                 
  dateUtils.ts                               |   95.45 |    71.42 |     100 |   94.73 | 20                                                                                                              
  extractContent.ts                          |   85.71 |       25 |     100 |   83.33 | 5                                                                                                               
  formatDate.ts                              |     100 |      100 |     100 |     100 |                                                                                                                 
  getColorTypeRequest.ts                     |    92.3 |       50 |     100 |   91.66 | 19                                                                                                              
  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 |   58.82 |     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                                                                                                            
  removeDiacritics.ts                        |   66.66 |      100 |       0 |      50 | 2                                                                                                               
  subtractTime.ts                            |   94.11 |        0 |     100 |   94.11 | 21                                                                                                              
  validateWFHDates.ts                        |     100 |      100 |     100 |     100 |                                                                                                                 
  validationSchema.ts                        |     100 |      100 |     100 |     100 |                                                                                                                 
---------------------------------------------|---------|----------|---------|---------|-----------------------------------------------------------------------------------------------------------------