yeatmanlab / roar-dashboard

A dashboard to administer ROAR assessments
https://roar.education
Other
4 stars 4 forks source link

Migrate Participant Homepage to composable TanStack queries #785

Closed maximilianoertel closed 1 month ago

maximilianoertel commented 1 month ago

Proposed changes

This PR migrates the ParticipantHomepage page to use new composable TanStack queries and mutations.

Types of changes

Checklist

Justification of missing checklist items

n/a

Further comments

n/a

Ref https://github.com/yeatmanlab/roar/issues/318

github-actions[bot] commented 1 month ago

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 2.44% 186 / 7605
🔵 Statements 2.34% 196 / 8365
🔵 Functions 2.52% 47 / 1858
🔵 Branches 1.46% 67 / 4563
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
src/components/tasks/ManageTasks.vue 0% 0% 0% 0% 436-441, 443-444, 446, 446, 446-447, 449-452, 450, 450-451, 451, 455, 458, 461, 463-466, 468, 470-475, 471, 471-474, 473, 477-479, 478, 482, 484, 486-489, 491-492, 495-498, 496, 496-497, 500-502, 501, 501, 504-506, 505, 505, 508-510, 512-520, 513, 513-519, 515-518, 523-532, 535-539, 541, 545-551, 554-560, 564-568, 573, 577-579, 578, 582-585, 583, 583-584, 588-593, 589-591, 590, 592, 596-598, 597, 602-612, 603, 603, 605-610, 607-609, 608, 611, 616-648, 617-620, 618-619, 622-633, 623-632, 625-631, 635-646, 636-645, 638-644, 647, 650-684, 652, 652, 654-655, 657-667, 669-683, 671-672, 675-681, 686-732, 687-688, 688-689, 689-690, 690-691, 691, 693-695, 694, 697-698, 700-710, 712-714, 713, 716-731, 718, 723-729, 737, 739-744, 740-742, 741, 743, 748, 750, 752-760, 753-759, 754-758, 755, 757, 762, 764, 767-771, 768-770, 773-776, 774-775, 11, 15-17, 1, 31, 39-40, 54, 62, 71-72, 80, 94, 108, 110, 132-135, 137, 158, 178-179, 183, 187, 191, 196, 208-212, 222, 224, 239, 328, 1-4, 7, 13, 1-23, 1-46, 1-67, 1-76, 1-87, 1-111, 1-113, 1-115, 1-117, 1-119, 125, 1-138, 1-140, 1-142, 1-144, 1-146, 152, 165, 174, 1-180, 1-184, 1-188, 1-192, 216, 223, 1-230, 1-256, 1-262, 1-267, 278, 1-287, 1-288, 1-292, 1-298, 1-304, 316, 1-343, 1-349, 1-354, 365, 1-375, 1-376, 1-379, 1-385, 1-391, 403
src/components/views/OfflineSettings.vue 0% 0% 0% 0% 173-174, 176-178, 180, 183-186, 184, 184-185, 188, 190-192, 194, 196-198, 200-202, 204-212, 205, 205-211, 207-210, 214-217, 219-228, 221-222, 225-227, 230-232, 231, 234-247, 235-246, 236-242, 244-245, 249-262, 250-261, 251-257, 259-260, 264-266, 265, 265, 268-270, 269, 269, 272-274, 273, 273, 276-279, 277, 277-278, 281-313, 282-286, 288, 290-312, 297, 300-306, 309, 9, 1, 13, 30, 37, 55, 74, 82, 91, 111, 130, 147-148, 1-25, 1-39, 72, 1-95, 128
src/composables/queries/useAdministrationsListQuery.js 0% 0% 0% 0% 17-58, 19-21, 24-25, 25-26, 26, 29, 29-30, 30, 33-34, 37-41, 38-40, 43-57, 46-54
src/composables/queries/useAdministrationsQuery.js 0% 0% 0% 0% 13-28, 14-27, 17-25, 19-23
src/composables/queries/useSurveyResponsesQuery.js 100% 100% 100% 100%
src/composables/queries/useTasksQuery.js 100% 100% 100% 100%
src/composables/queries/useUserAssignmentsQuery.js 100% 100% 100% 100%
src/constants/firebase.js 100% 100% 100% 100%
src/constants/queryKeys.js 100% 100% 100% 100%
src/helpers/query/assignments.js 0% 0% 0% 0% 14, 16-26, 28-174, 43-45, 47-58, 48-51, 49-50, 53-57, 54-56, 55, 60-65, 67-153, 68-81, 83-107, 84-98, 92, 100-106, 109-125, 110-124, 118, 127-143, 128-143, 136-142, 145-152, 155-157, 156, 159-171, 160-170, 173, 176-258, 187-189, 191-202, 192-195, 193-194, 197-201, 198-200, 199, 204-209, 211-231, 233-241, 234-240, 243-255, 244-254, 257, 260-532, 273-284, 277-280, 278-279, 281-283, 282, 285-343, 320-334, 328, 336-342, 344-517, 345-499, 422-430, 432-499, 444-459, 461-499, 480-488, 490-498, 500-516, 501-515, 509, 518-530, 519-529, 531, 534-611, 544-546, 548-557, 549-552, 550-551, 554-556, 555, 559-564, 566-594, 578, 596-608, 597-607, 610, 613-683, 614-615, 618-633, 622-632, 623-632, 625-632, 627-631, 628, 630, 635-682, 636-640, 639, 641-643, 642, 644-655, 654, 657-662, 661, 663-665, 664, 666-668, 667, 669-681, 680, 685-1059, 697-700, 703-718, 707-717, 708-717, 710-717, 712-716, 713, 715, 721-1058, 722-726, 725, 727-729, 728, 730-910, 746, 749-760, 752-756, 753, 755, 763-782, 769-781, 771-777, 772-776, 775, 778, 785-787, 786, 790-809, 796-808, 798-804, 799-803, 802, 805, 812-840, 814-832, 816-823, 821-822, 824-829, 833-839, 843-861, 849-860, 851-856, 852-855, 854, 857, 864-888, 865-880, 866-879, 871-876, 878, 881-887, 891-909, 893-906, 894-903, 905, 912-921, 916-920, 917, 919, 922-924, 923, 925-927, 926, 928-1057, 944, 947-958, 950-954, 951, 953, 961-983, 967-982, 969-978, 970-977, 974, 979, 987-994, 988, 988-993, 996-1054, 998-1010, 1000-1006, 1004, 1007, 1007-1008, 1008, 1012-1030, 1018-1029, 1020-1025, 1021-1024, 1023, 1026, 1034, 1034, 1036-1053, 1037-1052, 1039-1043, 1041, 1044-1047, 1045, 1048-1051, 1049, 1056, 1068-1083, 1069-1082, 1079-1080, 1080-1081, 1085-1096, 1086-1095
src/helpers/query/tasks.js 0% 0% 0% 0% 8-69, 18, 20-22, 21, 24-35, 25-28, 26-27, 30-34, 31-33, 32, 37-42, 44-52, 45-51, 54-66, 55-65, 68, 71-82, 72-79, 81, 81, 90-97, 91-94, 91-94, 96, 99-141, 100, 102-107, 103-106, 104-105, 109-114, 116-124, 117-123, 126-138, 127-137, 140, 143-211, 144-149, 151-210, 153, 159-170, 162-166, 163, 165, 173-193, 178-192, 180-188, 181-187, 185, 189, 195-198, 196-197, 202-209, 203-208
src/helpers/query/utils.js 0% 0% 0% 0% 16-38, 17-37, 28-36, 29-36, 31-36, 33, 33-36, 35, 35, 40-59, 41-57, 43-53, 44-51, 50, 52, 54, 58, 58, 58, 61-66, 68-72, 69-71, 74-104, 75-77, 80, 82-87, 83-86, 89-91, 90, 99-101, 100, 103, 106-120, 107-111, 113-119, 122-157, 130-135, 131-134, 136-138, 138-156, 143-147, 146, 150-152, 151, 153-155, 159-181, 160-163, 161-162, 164-179, 167-168, 168-178, 172-176, 175, 180, 183-219, 184-187, 185-186, 188-190, 190-216, 199-215, 201-211, 202-210, 208, 212, 218, 218, 218, 218, 221-224, 226-257, 232, 234-235, 235-236, 238-256, 242-249, 244-247, 246, 252-255
src/pages/HomeAdministrator.vue 0% 0% 0% 0% 135-137, 139-143, 145-146, 148, 150, 152, 155-158, 156, 156-157, 160-162, 161, 161, 164-166, 165, 165, 168-170, 172, 183-193, 184, 184, 187-189, 188, 192, 199-201, 211-228, 212, 214, 214, 217, 220-226, 221, 223-225, 224, 231-308, 314-318, 315-317, 324-332, 325-331, 326, 328-330, 329, 338-342, 339-341, 340, 349-368, 350-353, 355-360, 357, 359, 361-365, 362, 364, 367, 2-3, 5-6, 1, 14-15, 17, 20-22, 41-42, 73, 90, 1-18, 1-25, 1-44, 49
src/pages/HomeParticipant.vue 0% 0% 0% 0% 117-121, 123, 125-129, 127, 127-128, 131, 133-134, 136-138, 137, 137, 140-142, 141, 141, 144-145, 151-153, 159-161, 163, 163, 163-164, 164, 170-172, 174-176, 175, 175, 178, 178, 178-179, 179, 185-187, 189-191, 193-195, 194, 197-199, 198, 201-204, 202, 202-203, 207-212, 214-222, 216-220, 217-219, 221, 224-226, 228-231, 233, 235-237, 239-277, 240-243, 245-261, 246-247, 249-257, 250-256, 252-256, 254-255, 258-260, 259, 264-272, 265-272, 267-271, 268-270, 273-277, 274-276, 281-293, 287-290, 288-289, 292, 296-299, 297-298, 303-345, 304-343, 305-329, 308-310, 315, 315-326, 331-340, 333-339, 334-338, 335-337, 336, 342, 344, 347-349, 348, 348, 351-353, 352, 352, 356-365, 357-364, 360, 368-370, 369, 373-375, 374, 374, 378-385, 379-381, 380, 382-384, 387-403, 390-392, 391, 393-394, 394, 397-400, 399, 1, 12, 30-31, 50, 55, 75, 77, 1-18, 33, 1-34, 1-43
Generated in workflow #304
github-actions[bot] commented 1 month ago

Visit the preview URL for this PR (updated for commit a75e061):

https://roar-staging--pr785-ref-318-query-compos-yzq6higc.web.app

(expires Wed, 18 Sep 2024 22:51:43 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 2631e9c58fd0104ecbfddd72a62245ddac467460

cypress[bot] commented 1 month ago

roar-dashboard-e2e    Run #6358

Run Properties:  status check passed Passed #6358  •  git commit a75e061a39: Component Tests for PR 785 "Migrate Participant Homepage to composable TanStack ...
Project roar-dashboard-e2e
Branch Review ref/318/query-composables-home-participant
Run status status check passed Passed #6358
Run duration 01m 43s
Commit git commit a75e061a39: Component Tests for PR 785 "Migrate Participant Homepage to composable TanStack ...
Committer Maximilian Oertel
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 2
View all changes introduced in this branch ↗︎