WillTrem / UInnovate

MIT License
3 stars 1 forks source link

281 us correct in list editing per column value type #333

Closed tsitirides closed 3 months ago

tsitirides commented 3 months ago

when double clicking a column it will now adjust to its specific type. Allows for editing and saving of the columns in their respective types.

github-actions[bot] commented 3 months ago

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 56.38% 1598 / 2834
🔵 Statements 56.76% 1658 / 2921
🔵 Functions 51.65% 422 / 817
🔵 Branches 38.1% 455 / 1194
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
UInnovateApp/src/components/AddRowPopup.tsx 57.14% 25% 60% 55% 23-26, 30-34, 32-33, 36-42, 44-48, 50-51
UInnovateApp/src/components/TableEnumView.tsx 82.35% 50% 66.66% 82.35% 34, 41, 62, 70, 104, 111
UInnovateApp/src/components/TableListView.tsx 49.67% 28.81% 36.92% 49.88% 179, 212, 245, 270-271, 296, 313, 329, 333, 336, 340, 344, 347, 351, 357, 363, 394-396, 404, 410-411, 416, 419-420, 430-463, 450-462, 462, 464-466, 465, 467-469, 468, 470, 474-497, 490-496, 491-495, 498, 498-500, 508-510, 509, 511-513, 512, 514-530, 517-518, 520-529, 521-529, 524-525, 527-528, 532-535, 532-535, 542, 544-548, 546-547, 550-557, 559-561, 563-572, 571, 573-574, 595, 595-596, 606-607, 609-613, 610, 612, 615, 622, 633, 663-664, 666-669, 667-668, 670-676, 671-675, 677, 679-686, 691, 709-862, 712-721, 717-718, 725-734, 730-731, 739-747, 743-744, 752-763, 756-757, 767-778, 773, 781-795, 785-786, 790-792, 798-808, 804-805, 812-822, 818-819, 826-846, 833-834, 838-843, 850-859, 855-856, 867-917, 868, 868, 871-879, 872-875, 873, 875, 878, 880, 882-886, 884-885, 892-915, 893-900, 899, 902-911, 914, 916, 919-925, 928-930, 929, 933-934, 939, 963-1104, 964-971, 974-1104, 975-982, 985-1104, 986-993, 996-1104, 997-1010, 1003, 1012-1104, 1013-1026, 1019, 1028-1104, 1029-1049, 1038-1039, 1045-1047, 1051-1104, 1052-1063, 1060-1061, 1066-1104, 1067-1074, 1077-1104, 1078-1101, 1087-1088, 1094-1100, 1131, 1139, 1150, 1166, 1173, 1183-1203, 1196, 1198, 1209-1210, 1219-1238, 1231, 1233, 1244-1245, 1285, 1306, 1341, 1379, 1386, 1400, 1429, 1467-1472, 1517-1522, 1565
UInnovateApp/src/components/settingsPage/CronJobsTab.tsx 24.78% 11.32% 23.52% 23.14% 51-63, 53-54, 56, 58-60, 59, 62, 67-76, 73-75, 77-81, 78-80, 82-102, 83-101, 86-87, 89-95, 99-100, 106-114, 111-113, 115-119, 116-118, 120-142, 121-141, 124-125, 127-133, 136-140, 146, 146, 148-150, 152-153, 156, 156, 158, 162-163, 165-168, 166-167, 170-173, 175-178, 181-183, 186-205, 189, 189, 191-204, 192-203, 193-202, 206-216, 207, 210-215, 219, 221, 230-232, 237, 242-243, 256, 259-261, 278, 286, 286-287, 287, 304-308, 327-331
UInnovateApp/src/components/settingsPage/LookupSetting.tsx 86.66% 55.26% 94.11% 86.11% 41, 46, 62-63, 143-148, 150-155, 161, 185
UInnovateApp/src/virtualmodel/PlatformFunctions.ts 100% 62.5% 100% 100%
UInnovateApp/src/virtualmodel/VMD.tsx 25.92% 4.25% 26.73% 26.05% 23, 29, 29, 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-198, 173-178, 176-177, 181-186, 184-185, 189-197, 201-203, 205, 207-223, 209-214, 212-213, 217-222, 220-221, 225, 237, 245, 247-301, 249, 251-254, 253, 257, 259-262, 261, 264-266, 265, 268-270, 269, 273-300, 277-280, 283-284, 286-287, 289-290, 292-293, 295-296, 298-299, 302, 315-319, 325-333, 328-330, 332, 344-355, 347-352, 354, 369-391, 374-388, 390, 401-402, 404-413, 405-410, 412, 419-420, 422-435, 423-432, 434, 441-442, 444-457, 445-454, 456, 469-470, 472-485, 473-482, 484, 495-496, 498-511, 499-508, 510, 523-524, 526-532, 528-529, 534-547, 536-544, 546, 558-577, 561-567, 563-564, 568-574, 576, 586-594, 589-591, 593, 606-607, 609-635, 610-632, 611-616, 619-624, 622-623, 625-631, 634, 645-663, 647-657, 649-656, 658-660, 662, 681, 686, 686, 690, 695, 695, 744, 744, 750, 756, 762, 762, 774-779, 777-778, 781, 805, 817, 829, 835, 853, 859, 897, 915, 927, 939, 951, 973, 982-983
UInnovateApp/src/virtualmodel/__mocks__/VMD.tsx 93.33% 100% 92.85% 93.33% 56-60, 190-191
Unchanged Files
UInnovateApp/src/api/AxiosCustom.ts 73.33% 100% 50% 73.33% 11, 31-33
UInnovateApp/src/components/AdditionalViewNavBar.tsx 55.17% 16.66% 50% 55.17% 77-84, 78-83, 86-100, 87-98, 92-93, 102-134, 112-120, 128-130, 129
UInnovateApp/src/components/CSVUploadButton.tsx 82.6% 41.66% 100% 81.81% 46-51, 47-51, 50
UInnovateApp/src/components/Dropzone.tsx 22.72% 8% 9.09% 23.25% 15, 19-46, 25-41, 43-45, 44, 50-56, 53-55, 57, 61-69, 73-79, 83-84, 117-160, 122, 132
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 68.75% 92.3% 66.66% 61.53% 32-36, 35, 37
UInnovateApp/src/components/PrimaryKeyErrorPopup.tsx 75% 100% 0% 75% 25-38
UInnovateApp/src/components/SavePopup.tsx 75% 100% 0% 75% 25-33
UInnovateApp/src/components/ScriptLoadPopup.tsx 81.81% 66.66% 75% 81.81% 19-21, 34
UInnovateApp/src/components/ScriptPopup.tsx 83.33% 100% 50% 83.33% 56-74
UInnovateApp/src/components/UnauthorizedScreen.tsx 80% 100% 50% 80% 9
UInnovateApp/src/components/VisuallyHiddenInput.tsx 100% 100% 100% 100%
UInnovateApp/src/components/Schema/DisplayType.tsx 100% 100% 100% 100%
UInnovateApp/src/components/Schema/MenuSchemaSelector.tsx 77.77% 61.53% 83.33% 76.47% 35, 39-41
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/TableListViewComponents/DeleteRowButton.tsx 74.35% 38.46% 100% 72.97% 27-28, 58-63, 65-81, 67-75, 77-79, 78, 84, 101-107
UInnovateApp/src/components/TableListViewComponents/LookUpTableDetails.tsx 79.66% 61.53% 73.33% 78.94% 45, 56, 76, 80, 93, 98-101, 100, 102, 112, 144-157, 149-155
UInnovateApp/src/components/settingsPage/AuditTrails.tsx 100% 50% 100% 100%
UInnovateApp/src/components/settingsPage/ColumnConfig.tsx 47.82% 20% 75% 45.45% 62-74, 70, 73, 76-81, 86-98, 94, 97, 100-105
UInnovateApp/src/components/settingsPage/DisplayTab.tsx 100% 100% 100% 100%
UInnovateApp/src/components/settingsPage/EnvVarCreator.tsx 62.5% 58.33% 38.46% 61.53% 29, 32, 36-46, 52, 56-58, 63, 94-97, 109-112, 163-175
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 51.92% 21.56% 52.63% 53.33% 81-87, 82-85, 82-86, 94-111, 95-98, 100-108, 102-105, 102-105, 107, 110, 116-124, 117-121, 119, 119-120, 123, 148, 163, 169-179, 170-176, 172-174, 173, 175, 178, 194-204, 195-201, 195-201, 203, 232-253, 233-237, 235-236, 239-246, 248, 248-250, 252, 277, 291-318, 292-300, 303, 305-315, 306, 308-314, 312-313, 317, 320-327, 331, 335-336, 339-345, 349-351, 354-360, 368-372, 370-371, 373-376, 375, 377, 380, 457-471, 458-468, 472, 548-549, 555
UInnovateApp/src/components/settingsPage/MultiSelect.tsx 66.66% 75% 66.66% 72.72% 15, 22, 22, 38
UInnovateApp/src/components/settingsPage/ScriptEditor.tsx 73.52% 70% 70% 72.72% 45-47, 49-50, 98, 128, 133-137
UInnovateApp/src/components/settingsPage/Scripting.tsx 100% 100% 100% 100%
UInnovateApp/src/components/settingsPage/ScriptingTab.tsx 72.97% 71.42% 63.63% 72.22% 30, 47, 51, 55-59, 61-63, 65-71, 92, 100-103
UInnovateApp/src/components/settingsPage/SignupModal.tsx 68.45% 50.84% 70.83% 67.36% 98, 105, 112-113, 116-117, 145-146, 151, 179, 181-191, 184-190, 188-189, 202-203, 206-207, 214-215, 222-237, 223-237, 227-237, 231-237, 235-236, 240-245, 241, 243-244, 248-254, 249-250, 253, 256, 462-463, 479-488
UInnovateApp/src/components/settingsPage/TableConfigTab.tsx 50% 22.22% 57.14% 48.71% 26, 44-51, 47, 50, 53-58, 62-69, 65, 68, 71-76, 80-87, 83, 86, 89-94, 105
UInnovateApp/src/components/settingsPage/TranslationTableRow.tsx 42.69% 10.76% 38.09% 42.69% 57-101, 59-60, 63-75, 78-98, 79, 82-97, 100, 105-107, 106, 110-112, 111, 116-119, 117-118, 123-124, 128-130, 129, 136, 140-144, 141-143, 150-154, 151-153, 158-165, 160-165, 163-164, 183-193, 184-185, 188-192, 190-191, 208-214, 209-211, 210, 213, 218-228, 219-225, 220-224, 227, 314
UInnovateApp/src/components/settingsPage/UserLogs.tsx 100% 50% 100% 100%
UInnovateApp/src/components/settingsPage/Users/AddUserModal.tsx 84.09% 78.57% 76.92% 83.33% 59-60, 89-92, 91, 93, 139
UInnovateApp/src/components/settingsPage/Users/RolesTab.tsx 82.08% 76% 81.81% 80.95% 115-116, 120, 138-149, 142-144, 147-148, 164-165
UInnovateApp/src/components/settingsPage/Users/UserManagementTab.tsx 86.66% 59.09% 92.3% 85.36% 88, 135-137, 139-144, 152
UInnovateApp/src/components/settingsPage/additionalView/AdditionalViewEditor.tsx 44.18% 19.23% 28.57% 45% 25-26, 26-38, 28-29, 31-37, 40-49, 67, 71-77, 73-76, 79-85, 88-89, 89, 131-181, 154-157, 173-175, 174, 194
UInnovateApp/src/components/settingsPage/additionalView/AdditionalViewModal.tsx 40.38% 28.57% 33.33% 39.21% 42-47, 50-51, 55-56, 58-59, 61-66, 62, 64-65, 70-81, 83-85, 89-98, 94-95, 99-101, 100, 123, 135, 145, 161
UInnovateApp/src/components/settingsPage/additionalView/AdditionalViewTab.tsx 100% 100% 100% 100%
UInnovateApp/src/enums/ErrMsg.ts 100% 100% 100% 100%
UInnovateApp/src/enums/ViewTypeEnum.tsx 61.53% 33.33% 50% 58.33% 10-15, 11-14
UInnovateApp/src/helper/CSVHelper.ts 88.46% 92.85% 75% 88.46% 46, 52, 57
UInnovateApp/src/helper/RolesHelpers.ts 75% 50% 100% 75% 19-20, 35-36
UInnovateApp/src/helper/SettingsHelpers.ts 54.54% 50% 66.66% 54.54% 37-41, 43-47, 68-72, 74-78
UInnovateApp/src/pages/Settings.tsx 61.53% 54.16% 33.33% 61.53% 66, 95, 103, 111, 121, 130, 138, 146, 154, 191
UInnovateApp/src/redux/AdditionalViewSlice.tsx 71.42% 100% 0% 71.42% 20-24
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/NotificationSlice.tsx 60% 100% 33.33% 60% 25-27, 30
UInnovateApp/src/redux/SchemaSlice.tsx 100% 100% 100% 100%
UInnovateApp/src/redux/Store.ts 100% 100% 100% 100%
UInnovateApp/src/redux/UserDataSlice.tsx 92.3% 75% 100% 92.3% 30
UInnovateApp/src/virtualmodel/AdditionalViewsDataAccessor.ts 47.61% 41.66% 60% 47.5% 35, 56-95, 58-90, 59-69, 72, 75-87, 89, 94, 99-128, 101-106, 108-122, 109-117, 120-121, 123, 125-127
UInnovateApp/src/virtualmodel/Audits.ts 100% 100% 100% 100%
UInnovateApp/src/virtualmodel/Config.ts 84.84% 100% 57.14% 83.87% 33-41, 43-55, 46-48, 51-54
UInnovateApp/src/virtualmodel/ConfigProperties.ts 100% 100% 100% 100%
UInnovateApp/src/virtualmodel/DataAccessor.tsx 20.98% 8.33% 25% 20% 34, 46-64, 47-51, 50, 52-55, 57-59, 58, 61, 63, 70-79, 71-73, 75, 77-78, 85-93, 86-88, 90, 92, 99-109, 100-103, 105, 107-108, 117-127, 118-121, 123, 125-126, 133-143, 134-137, 139, 141-142, 162-192, 163-165, 164, 167-188, 168-170, 169, 172-187, 173-182, 174-181, 175-180, 184-186, 190-191, 195-211, 196-198, 197, 199-209, 200-208, 204, 206-207, 210, 215
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/Logger.ts 100% 100% 100% 100%
UInnovateApp/src/virtualmodel/ScriptHandler.ts 88.57% 83.33% 100% 88.57% 41, 54, 56, 75
UInnovateApp/src/virtualmodel/__mocks__/DataAccessor.tsx 96.87% 91.66% 100% 96.87% 50-56
UInnovateApp/src/virtualmodel/__mocks__/FunctionAccessor.tsx 93.75% 84.61% 100% 93.75% 29
UInnovateApp/src/virtualmodel/__mocks__/ScriptHandler.tsx 96.07% 100% 100% 96.07% 47, 78
Generated in workflow #410