WillTrem / UInnovate

MIT License
3 stars 1 forks source link

Various small fixes user roles #294

Closed WillTrem closed 8 months ago

WillTrem commented 8 months ago

This PR addresses various small issues across the app, mostly related to users :

github-actions[bot] commented 8 months ago

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 40.89% 909 / 2223
🔵 Statements 40.9% 940 / 2298
🔵 Functions 32.1% 209 / 651
🔵 Branches 26.62% 234 / 879
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
UInnovateApp/src/components/Schema/MenuSchemaSelector.tsx 77.77% 61.53% 83.33% 76.47% 35, 39-41
UInnovateApp/src/components/settingsPage/Users/UserMangementTab.tsx 47.36% 27.77% 41.66% 48.57% 31, 78-85, 79-84, 86, 112-114, 114-116, 116, 120-121, 125-127, 126, 130-136, 131, 133-135, 134, 139-151
Unchanged Files
UInnovateApp/src/api/AxiosCustom.ts 33.33% 50% 50% 33.33% 11, 20-33
UInnovateApp/src/components/AddRowPopup.tsx 55.55% 50% 50% 55.55% 19-22, 26-30, 28-29, 32-36, 38-39
UInnovateApp/src/components/Dropzone.tsx 24.44% 8% 9.09% 25% 16, 20-43, 26-38, 40-42, 41, 47-53, 50-52, 54, 58-66, 70-76, 80-81, 114-157, 119, 129
UInnovateApp/src/components/FunctionLoadPopup.tsx 4.76% 0% 0% 4.76% 15-16, 18-22, 19-21, 24-41, 25-40, 26, 29-39, 30-31, 33, 35-36, 38, 43, 45-58, 60-63, 65-106
UInnovateApp/src/components/FunctionPopup.tsx 66.66% 100% 0% 66.66% 31-51, 56-74
UInnovateApp/src/components/NavBar.tsx 56.25% 84.61% 33.33% 61.53% 28-29, 31-35, 34, 36
UInnovateApp/src/components/ScriptLoadPopup.tsx 4.54% 0% 0% 4.54% 15-16, 18-22, 19-21, 24-42, 25-41, 26, 29-40, 30-32, 34, 36-37, 39, 44, 46-59, 61-64, 66-107
UInnovateApp/src/components/ScriptPopup.tsx 66.66% 100% 0% 66.66% 31-51, 56-74
UInnovateApp/src/components/TableEnumView.tsx 67.64% 50% 33.33% 67.64% 35, 42, 54-56, 63, 71, 85-90, 88, 105, 112
UInnovateApp/src/components/TableListView.tsx 54.31% 29.78% 39.58% 54.83% 138, 165, 194-197, 196, 198, 208-209, 235, 245, 252, 262, 268, 272, 275, 279, 283, 286, 290, 296, 302, 333-335, 343, 349-350, 355, 365-398, 385-397, 397, 399-401, 400, 402-404, 403, 405, 409-432, 425-431, 426-430, 433, 433-435, 442, 454-456, 455, 457-459, 458, 460-476, 463-464, 466-475, 467-475, 470-471, 473-474, 478-481, 478-481, 485, 487-491, 489-490, 493-495, 497-506, 505, 507-508, 528, 528-529, 542-553, 543-544, 546-550, 547, 549, 552, 559, 568, 610, 614-616, 648-789, 649-656, 659-789, 660-667, 670-789, 671-678, 681-789, 682-695, 688, 697-789, 698-711, 704, 713-789, 714-734, 723-724, 730-732, 736-789, 737-748, 745-746, 751-789, 752-759, 762-789, 763-786, 772-773, 779-785, 816, 819, 824, 835, 840-842, 841, 860, 867, 877-897, 890, 892, 903-904, 913-932, 925, 927, 938-939, 971, 985, 1008-1011, 1010, 1012-1024, 1051, 1098-1103, 1134-1138, 1176
UInnovateApp/src/components/UnauthorizedScreen.tsx 20% 100% 0% 20% 6, 8-10, 9, 11-21
UInnovateApp/src/components/Schema/DisplayType.tsx 100% 100% 100% 100%
UInnovateApp/src/components/Schema/SchemaSelector.tsx 52% 28.57% 30% 52% 26-28, 33, 36-57, 45, 51, 61-75, 70-72, 79-93, 88-90, 124
UInnovateApp/src/components/SlidingComponents/LookUpTableDetails.tsx 36.53% 9.09% 23.07% 38% 23, 32-38, 33-34, 37, 47-84, 49-82, 50-53, 52, 54-57, 56, 58-59, 59-70, 69, 72-79, 74-77, 76, 78, 80, 80, 83, 87-118, 98, 104-110, 106-108
UInnovateApp/src/components/settingsPage/ButtonConfigurationSaver.tsx 75% 100% 66.66% 75% 27-29
UInnovateApp/src/components/settingsPage/ColumnConfig.tsx 71.42% 100% 71.42% 71.42% 60-66, 70-76
UInnovateApp/src/components/settingsPage/ConfigurationSaver.tsx 66.66% 0% 66.66% 66.66% 30-38, 31-34, 37, 53, 62-64, 63, 66
UInnovateApp/src/components/settingsPage/CronJobsTab.tsx 28.72% 17.64% 21.21% 27.9% 49-61, 51-52, 54, 56-58, 57, 60, 65-69, 71-83, 72-82, 75-76, 80-81, 87-90, 92-104, 93-103, 96-97, 101-102, 108, 108, 110-112, 114-115, 118, 118, 120, 124-125, 127-130, 128-129, 132-135, 137-140, 143-145, 148-166, 151, 151, 153-165, 154-164, 155-163, 167-177, 168, 171-176, 180, 182, 191-193, 198, 203-204, 217, 220-222, 239, 247, 247-248, 248, 265-269, 288-292
UInnovateApp/src/components/settingsPage/DisplayTab.tsx 100% 100% 100% 100%
UInnovateApp/src/components/settingsPage/EnvVarCreator.tsx 56.75% 44.44% 25% 56.75% 25, 28, 31-34, 40, 44-46, 51, 82-85, 97-100, 107-115, 115, 151-163
UInnovateApp/src/components/settingsPage/EnvVarValueEditor.tsx 11.11% 100% 0% 11.11% 14-16, 18, 20-35, 26, 30-31
UInnovateApp/src/components/settingsPage/ExecuteProcedures.tsx 50% 64.28% 31.81% 47.61% 38, 55, 59, 63-67, 69-71, 74-85, 80, 83-84, 89-102, 91-92, 94, 96-99, 97-98, 101, 105-111, 108-109, 111, 132-135, 139-141, 152-155, 166-169, 194-198, 214-218
UInnovateApp/src/components/settingsPage/FunctionViewer.tsx 6.25% 0% 0% 6.25% 28-29, 31-33, 35-42, 36-39, 37-38, 41, 43-70, 44, 46-59, 48-49, 51-52, 54-55, 57-58, 61, 63-67, 69, 72-136, 83, 91, 94-97, 113, 125
UInnovateApp/src/components/settingsPage/GeneralTab.tsx 100% 100% 100% 100%
UInnovateApp/src/components/settingsPage/InternationalizationTab.tsx 38.88% 12.96% 36.36% 39.71% 51-60, 52, 54-57, 54-57, 59, 76, 80, 106-134, 107-111, 109-110, 113-120, 122, 122, 124-127, 129-130, 133, 158, 160, 167-193, 168-176, 179, 181-190, 182-183, 185-189, 187-188, 192, 197, 201-202, 206, 243, 259-270, 260-267, 271, 339, 375-376, 378-382, 379-381, 380, 384-389, 385-388, 386-387, 391-395, 392, 394, 397-403, 398-402, 399-401, 405-411, 406-410, 408-409, 414-444, 415-443, 416-422, 425, 428-440, 430, 432, 435-439, 437-438, 442, 446-458, 447-456, 448-452, 450-451, 455, 460-465, 461-464, 463, 467-493, 489
UInnovateApp/src/components/settingsPage/LookupSetting.tsx 14.75% 5.55% 4.54% 16.36% 27-32, 42-48, 43-44, 47, 59-63, 60, 62, 66-76, 67-73, 68, 71-72, 80-100, 81-98, 89-91, 103-105, 104, 109-112, 110, 113-117, 114-115, 121-124, 123, 126-131, 127-129, 135-143, 135-143, 136-139, 136-139, 146-153, 147-152, 148, 151, 151, 155-162, 156-161, 157, 157-158, 161, 164-169, 165-168, 165-168, 173-212, 182-184, 208
UInnovateApp/src/components/settingsPage/MultiSelect.tsx 33.33% 50% 22.22% 36.36% 15, 22, 22, 26-43, 28-40, 32-34, 33, 38
UInnovateApp/src/components/settingsPage/ScriptEditor.tsx 6.66% 0% 0% 6.66% 29-30, 32-34, 36-63, 37, 39-52, 41-42, 44-45, 47-48, 50-51, 54, 56-60, 62, 65-150, 76, 84, 87-90, 106, 114, 119-123, 134
UInnovateApp/src/components/settingsPage/Scripting.tsx 100% 100% 100% 100%
UInnovateApp/src/components/settingsPage/ScriptingTab.tsx 55.88% 25% 30% 55.88% 26, 43, 47, 51-55, 57-59, 74-80, 80-94, 88-91, 118-122, 138-142
UInnovateApp/src/components/settingsPage/SignupModal.tsx 26.17% 14.4% 8.33% 24.3% 64, 68-72, 77-80, 85-89, 97-99, 98, 100-123, 105, 109-122, 110-118, 112-117, 121, 129-132, 130-131, 137-140, 138-139, 145-146, 150-152, 151, 154-155, 157-191, 158-180, 162-168, 170-171, 174-176, 179, 181-191, 184-190, 188-189, 196, 199-257, 201-211, 202-211, 206-207, 210, 213-219, 214-215, 218, 222-237, 223-237, 227-237, 231-237, 235-236, 240-245, 241, 243-244, 248-254, 249-250, 253, 256, 431-439, 436-437, 440-496, 456-457, 463-464, 479-488
UInnovateApp/src/components/settingsPage/TableConfigTab.tsx 61.53% 50% 50% 61.53% 26, 44-46, 50-52, 56-58
UInnovateApp/src/components/settingsPage/Users/AddUserModal.tsx 82.92% 83.33% 75% 82.5% 55-56, 85-88, 87, 89, 128
UInnovateApp/src/components/settingsPage/Users/RolesTab.tsx 48.97% 52.38% 52.63% 45.65% 30-32, 31, 33-34, 96-99, 101-103, 102, 108-128, 110-115, 112-113, 115, 119-127, 124-125, 127, 138, 156
UInnovateApp/src/components/settingsPage/additionalView/AdditionalViewEditor.tsx 43.24% 25% 16.66% 48.48% 11, 13-17, 15-16, 19-27, 45, 47-53, 49-52, 56-57, 57, 68, 94-130, 110, 123, 123, 141-144
UInnovateApp/src/components/settingsPage/additionalView/AdditionalViewModal.tsx 62.5% 66.66% 40% 63.63% 31, 34-37, 50, 54, 63, 73
UInnovateApp/src/components/settingsPage/additionalView/AdditionalViewTab.tsx 100% 100% 100% 100%
UInnovateApp/src/components/settingsPage/additionalView/ViewTypeEnum.tsx 61.53% 33.33% 50% 58.33% 10-15, 11-14
UInnovateApp/src/contexts/ConfigContext.tsx 94.73% 88.88% 100% 94.73% 32
UInnovateApp/src/enums/ErrMsg.ts 100% 100% 100% 100%
UInnovateApp/src/helper/RolesHelpers.ts 0% 0% 0% 0% 10-21, 13-16, 14-15, 17, 19-20, 29-37, 32-33, 35-36
UInnovateApp/src/pages/Settings.tsx 66.66% 54.16% 38.46% 65.21% 62, 90, 93, 96, 100, 104, 109, 141
UInnovateApp/src/redux/AuthSlice.tsx 25.8% 50% 16.66% 23.33% 37-38, 41-44, 47, 50-55, 57, 59-60, 63-64, 67-68, 72-74
UInnovateApp/src/redux/LoadingSlice.tsx 66.66% 100% 0% 66.66% 15
UInnovateApp/src/redux/SchemaSlice.tsx 100% 100% 100% 100%
UInnovateApp/src/redux/UserDataSlice.tsx 12.5% 0% 0% 12.5% 15, 18-28, 21-27, 22-23, 26, 29-31, 30, 32, 35-37
UInnovateApp/src/virtualmodel/AdditionalViewsDataAccessor.ts 41.86% 20% 40% 43.9% 30, 30, 49-89, 51-84, 52-62, 65, 68-81, 83, 87-88, 93-122, 95-100, 102-116, 103-111, 114-115, 117, 119-121
UInnovateApp/src/virtualmodel/Config.ts 90.9% 100% 71.42% 90.32% 51-54, 68
UInnovateApp/src/virtualmodel/ConfigProperties.ts 100% 100% 100% 100%
UInnovateApp/src/virtualmodel/DataAccessor.tsx 1.26% 0% 6.25% 1.28% 17-20, 26-42, 27, 29-33, 35-37, 36, 39, 41, 48-66, 49-53, 52, 54-57, 59-61, 60, 63, 65, 72-80, 73-75, 77, 79, 86-94, 87-89, 91, 93, 100-109, 101-104, 106, 108, 117-127, 118-121, 123, 125-126, 133-142, 134-137, 139, 141, 146-147, 149-150, 153, 155, 155, 157-185, 158-160, 159, 162-181, 163-165, 164, 167-180, 168-175, 169-174, 170-173, 177-179, 183-184, 188-202, 189-191, 190, 192-200, 193-199, 195, 197-198, 201, 206
UInnovateApp/src/virtualmodel/EnvVarAccessor.ts 14.28% 100% 0% 14.28% 5-22, 6-14, 17-18, 20-21, 26-44, 27-36, 39-40, 42-43
UInnovateApp/src/virtualmodel/FunctionAccessor.tsx 55.55% 100% 66.66% 55.55% 25-34, 26-29, 31, 33
UInnovateApp/src/virtualmodel/FunctionHandler.ts 0% 0% 0% 0% 12-13, 15-16, 19-21, 23-28, 24-27, 32-43, 33-36, 38-42, 39, 41, 46-53, 52
UInnovateApp/src/virtualmodel/PlatformFunctions.ts 2.77% 0% 0% 2.85% 16-30, 17-20, 22-24, 23-24, 26, 28-29, 34-37, 39-44, 49, 49-51, 54-55, 60, 63-67, 69, 74, 76-79, 81
UInnovateApp/src/virtualmodel/ScriptHandler.ts 0% 0% 0% 0% 12-13, 15-16, 19-21, 23-28, 24-27, 32-43, 33-36, 38-42, 39, 41, 47-59, 48-52, 54, 56, 58, 63-66, 68-72, 69, 71
UInnovateApp/src/virtualmodel/VMD.tsx 23.16% 8.79% 21.87% 23.2% 23, 29, 29, 37-39, 38, 38, 45-47, 46, 53, 59-61, 60, 67-72, 69-71, 70, 73, 83, 89, 99, 105-107, 106, 113-115, 114, 121-126, 124-125, 129, 135, 143-146, 145, 152, 161, 170-195, 173-178, 176-177, 181-186, 184-185, 189-194, 198-200, 202, 204-220, 206-211, 209-210, 214-219, 217-218, 222, 234, 242, 244-298, 246, 248-251, 250, 254, 256-259, 258, 261-263, 262, 265-267, 266, 270-297, 274-277, 280-281, 283-284, 286-287, 289-290, 292-293, 295-296, 299, 312-316, 322-330, 325-327, 329, 341-352, 344-349, 351, 366-388, 371-385, 387, 398-399, 401-410, 402-407, 409, 416-417, 419-432, 420-429, 431, 438-439, 441-454, 442-451, 453, 466-467, 469-482, 470-479, 481, 492-493, 495-508, 496-505, 507, 520-521, 523-529, 525-526, 531-544, 533-541, 543, 555-574, 558-564, 560-561, 565-571, 573, 583-591, 586-588, 590, 603-604, 606-632, 607-629, 608-613, 616-621, 619-620, 622-628, 631, 642-660, 644-654, 646-653, 655-657, 659, 678, 683, 683, 687, 692, 692, 735, 735, 747, 747, 753, 753, 796, 808, 814, 820, 826, 832, 844, 850, 856, 882, 888, 900, 912, 924, 933-934
UInnovateApp/src/virtualmodel/__mocks__/DataAccessor.tsx 100% 100% 100% 100%
UInnovateApp/src/virtualmodel/__mocks__/FunctionAccessor.tsx 100% 100% 100% 100%
UInnovateApp/src/virtualmodel/__mocks__/VMD.tsx 88% 100% 83.33% 88% 47-48, 55
Generated in workflow #312