WillTrem / UInnovate

MIT License
3 stars 1 forks source link

Additional view update #334

Closed witnick closed 3 months ago

witnick commented 3 months ago

To test the update use the following custom templates:

for contact table contact_customview.txt for company table company_customview.txt company_customview_tan.txt

customView_data_navigation

Bug #322 is also fixed with this PR

github-actions[bot] commented 3 months ago

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 55.22% 1501 / 2718
🔵 Statements 55.62% 1562 / 2808
🔵 Functions 51.02% 399 / 782
🔵 Branches 37.7% 428 / 1135
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
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/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
Unchanged Files
UInnovateApp/src/api/AxiosCustom.ts 73.33% 100% 50% 73.33% 11, 31-33
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/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% 31-35, 34, 36
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/TableEnumView.tsx 82.35% 50% 66.66% 82.35% 34, 41, 62, 70, 104, 111
UInnovateApp/src/components/TableListView.tsx 53.44% 30.76% 43.63% 53.75% 175, 208, 241, 266-267, 292, 309, 325, 329, 332, 336, 340, 343, 347, 353, 359, 390-392, 400, 406-407, 412, 415-416, 426-459, 446-458, 458, 460-462, 461, 463-465, 464, 466, 470-493, 486-492, 487-491, 494, 494-496, 504-506, 505, 507-509, 508, 510-526, 513-514, 516-525, 517-525, 520-521, 523-524, 528-531, 528-531, 538, 540-544, 542-543, 546-553, 555-557, 559-568, 567, 569-570, 591, 591-592, 602-603, 605-609, 606, 608, 611, 618, 629, 659-660, 662-665, 663-664, 666-672, 667-671, 673, 675-682, 687, 705-750, 706, 706, 708-709, 711-715, 713-714, 717-723, 725, 727, 729-748, 730-739, 738, 741-743, 747, 749, 752-758, 761-763, 762, 766-767, 772, 796-937, 797-804, 807-937, 808-815, 818-937, 819-826, 829-937, 830-843, 836, 845-937, 846-859, 852, 861-937, 862-882, 871-872, 878-880, 884-937, 885-896, 893-894, 899-937, 900-907, 910-937, 911-934, 920-921, 927-933, 964, 972, 984, 1000, 1007, 1017-1037, 1030, 1032, 1043-1044, 1053-1072, 1065, 1067, 1078-1079, 1117, 1138, 1173, 1211, 1218, 1228, 1231, 1242, 1271, 1309-1314, 1359-1364, 1407
UInnovateApp/src/components/UnauthorizedScreen.tsx 80% 100% 50% 80% 9
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/CronJobsTab.tsx 29.59% 15.78% 23.52% 28.08% 51-63, 53-54, 56, 58-60, 59, 62, 67-71, 73-93, 74-92, 77-78, 80-86, 90-91, 97-100, 102-122, 103-121, 106-107, 109-115, 119-120, 126, 126, 128-130, 132-133, 136, 136, 138, 142-143, 145-148, 146-147, 150-153, 155-158, 161-163, 166-184, 169, 169, 171-183, 172-182, 173-181, 185-195, 186, 189-194, 198, 200, 209-211, 216, 221-222, 235, 238-240, 257, 265, 265-266, 266, 283-287, 306-310
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 30.29% 7.75% 29.31% 30.3% 76-82, 77-80, 77-81, 89-106, 90-93, 95-103, 97-100, 97-100, 102, 105, 111-120, 112-117, 114-115, 115-116, 119, 144, 157, 163-173, 164-169, 166-167, 167-168, 172, 177-197, 178-181, 183-194, 185-191, 185-191, 193, 196, 222-244, 223-227, 225-226, 229-236, 238, 238-240, 243, 270, 283-308, 284-292, 295, 297-305, 298, 300-304, 302-303, 307, 310-316, 320, 324-325, 328-334, 338-340, 343-349, 353-362, 354-359, 356, 356-357, 357-358, 361, 365-371, 397, 433-447, 434-444, 448, 516, 555-558, 558, 560-561, 563-603, 565-600, 567-568, 571-583, 586-597, 587, 590-596, 599, 605-609, 606-608, 607, 610-614, 611-613, 612, 616-621, 617-620, 618-619, 623-626, 624-625, 628-632, 629-631, 630, 634-636, 635, 638-644, 639-643, 640-642, 646-652, 647-651, 648-650, 654-664, 655-663, 657-663, 661-662, 667-702, 668-693, 669-675, 678, 681-690, 682, 685-689, 687-688, 692, 695-701, 704-714, 705-712, 706-708, 707, 711, 716-724, 717-723, 718-720, 719, 722, 726-728, 727, 730-732, 731, 734-736, 735, 738-740, 739, 742-808, 773, 791
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/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/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/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/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 55.55% 100% 33.33% 55.55% 24-26, 29
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 21.25% 8.33% 25% 20.25% 34, 46-64, 47-51, 50, 52-55, 57-59, 58, 61, 63, 70-78, 71-73, 75, 77, 84-92, 85-87, 89, 91, 98-108, 99-102, 104, 106-107, 116-126, 117-120, 122, 124-125, 132-142, 133-136, 138, 140-141, 161-191, 162-164, 163, 166-187, 167-169, 168, 171-186, 172-181, 173-180, 174-179, 183-185, 189-190, 194-210, 195-197, 196, 198-208, 199-207, 203, 205-206, 209, 214
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 0% 100% 0% 0% 12-24
UInnovateApp/src/virtualmodel/PlatformFunctions.ts 100% 62.5% 100% 100%
UInnovateApp/src/virtualmodel/ScriptHandler.ts 88.57% 83.33% 100% 88.57% 41, 54, 56, 75
UInnovateApp/src/virtualmodel/VMD.tsx 25.18% 4.39% 26.26% 25.29% 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-197, 173-178, 176-177, 181-186, 184-185, 189-196, 200-202, 204, 206-222, 208-213, 211-212, 216-221, 219-220, 224, 236, 244, 246-300, 248, 250-253, 252, 256, 258-261, 260, 263-265, 264, 267-269, 268, 272-299, 276-279, 282-283, 285-286, 288-289, 291-292, 294-295, 297-298, 301, 314-318, 324-332, 327-329, 331, 343-354, 346-351, 353, 368-390, 373-387, 389, 400-401, 403-412, 404-409, 411, 418-419, 421-434, 422-431, 433, 440-441, 443-456, 444-453, 455, 468-469, 471-484, 472-481, 483, 494-495, 497-510, 498-507, 509, 522-523, 525-531, 527-528, 533-546, 535-543, 545, 557-576, 560-566, 562-563, 567-573, 575, 585-593, 588-590, 592, 605-606, 608-634, 609-631, 610-615, 618-623, 621-622, 624-630, 633, 644-662, 646-656, 648-655, 657-659, 661, 680, 685, 685, 689, 694, 694, 741, 741, 747, 753, 759, 759, 771-776, 774-775, 778, 802, 814, 826, 832, 850, 856, 892, 910, 922, 934, 946, 961-962
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
UInnovateApp/src/virtualmodel/__mocks__/VMD.tsx 93.33% 100% 92.85% 93.33% 56-60, 190-191
Generated in workflow #389