Commit ade5237
authored
feat(dashboards): handle rsvp pending actions inline (#602)
* feat(dashboards): handle RSVP pending actions inline
LFXV2-1584
Pending-action rows of type RSVP no longer open the meeting page in a new
tab. Clicking Set RSVP expands the row in place and renders the existing
RsvpButtonGroupComponent — the same Yes / No / Maybe widget already used
on meeting-card and meeting-join. Recurring meetings continue to surface
the existing scope picker (single / this_and_following / all). After the
user picks a response, the row stays for ~1.5s so the choice and toast
register, then dismisses via the existing 24h cookie. Other pending-action
rows are untouched (no parent refresh, no skeleton flash).
The meeting title doubles as a "view meeting" affordance — clicking it
opens the meeting detail page in a new tab without dismissing the row,
so users can drill in for context and still come back to RSVP inline.
Server-side: also fixes a pre-existing bug where the pending-actions card
emitted Set RSVP rows for meetings the user had direct FGA grants on
(host, organizer, committee inheritance) but no v1_meeting_registrant
record. The RSVP API requires the registrant row, so those rows always
404'd. transformMissingRsvpsToActions now gates emission on per-meeting
registrant existence.
Files:
- packages/shared/src/interfaces/components.interface.ts
PendingActionItem: optional meetingUid?, occurrenceId? (additive).
- apps/lfx-one/src/server/services/user.service.ts
createRsvpAction populates the new fields.
fetchUserActiveRegistrantIds → fetchUserActiveRegistrantIdentities
returns { uids, meetingIds }; transformMissingRsvpsToActions skips
meetings the user has no registrant row for.
- apps/lfx-one/src/app/modules/dashboards/components/pending-actions/
Inline RSVP UI, lazy meeting fetch, error toast, title-link with
aria-label and external-link icon.
Vote, Survey, and Agenda action types are unchanged — those will follow
in separate stories.
Signed-off-by: Manish Dixit <mdixit@linuxfoundation.org>
* fix(review): address PR #602 review feedback
Address review comments from @coderabbitai and @copilot-pull-request-reviewer:
- pending-actions.component.ts: replace global rsvpMeetingLoading flag with
per-meeting loadingMeetingUid signal; guard both the loading clear and the
expandedRsvpKey collapse on stale meeting-fetch responses so a late callback
for row A can no longer clobber row B's state (per @coderabbitai).
- pending-actions.component.ts: stabilize getRowKey() — prefer meetingUid +
occurrenceId when present, fall back to type+text+buttonLink composite for
action types without IDs. The template @for trackBy now uses getRowKey(item)
for the same expression on both sides (per @copilot).
- pending-actions.component.ts: replace raw setTimeout in handleRsvpChanged
with rxjs timer(1500) + takeUntilDestroyed(destroyRef) so the deferred
dismiss is cancelled cleanly if the component unmounts mid-delay (per
@copilot).
- components.interface.ts: narrow meetingUid / occurrenceId JSDoc to "RSVP
action types today" with a forward note for Agenda — matches what this PR
actually populates (per @copilot).
Resolves 5 review threads.
Signed-off-by: Manish Dixit <mdixit@linuxfoundation.org>
* fix(review): address PR #602 review feedback
Address review comments from @coderabbitai:
- pending-actions.component.ts: guard the post-RSVP delayed dismiss in
handleRsvpChanged. Capture the row key when the timer is scheduled and
only clear expandedRsvpKey if it still matches at firing time. Without
the guard, a user who RSVPs row A and opens row B within the 1.5s
window would have B silently collapsed when A's timer fires. hideAction
and the version bump still run unconditionally so row A actually
dismisses (per @coderabbitai).
Resolves 1 review thread.
Signed-off-by: Manish Dixit <mdixit@linuxfoundation.org>
* fix(review): address PR #602 review feedback
Address review comments from @copilot-pull-request-reviewer, @MRashad26:
- pending-actions.component.ts: pipe takeUntilDestroyed(destroyRef) onto
meetingService.getMeeting() in loadMeetingForRsvp so an in-flight HTTP
request is canceled when the component is destroyed. Without it, a late
next/error callback could fire and write to signals on a destroyed
component instance — same teardown pattern already used by the timer
in handleRsvpChanged. (per @copilot-pull-request-reviewer, @MRashad26)
Resolves 2 review threads.
Signed-off-by: Manish Dixit <mdixit@linuxfoundation.org>
---------
Signed-off-by: Manish Dixit <mdixit@linuxfoundation.org>1 parent 7f576f5 commit ade5237
4 files changed
Lines changed: 230 additions & 25 deletions
File tree
- apps/lfx-one/src
- app/modules/dashboards/components/pending-actions
- server/services
Lines changed: 51 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
31 | 52 | | |
32 | 53 | | |
33 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
34 | 79 | | |
35 | 80 | | |
36 | 81 | | |
| |||
Lines changed: 132 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
| 9 | + | |
7 | 10 | | |
| 11 | + | |
| 12 | + | |
8 | 13 | | |
9 | | - | |
| 14 | + | |
10 | 15 | | |
11 | 16 | | |
12 | | - | |
| 17 | + | |
13 | 18 | | |
14 | 19 | | |
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
18 | 26 | | |
19 | 27 | | |
20 | 28 | | |
| |||
27 | 35 | | |
28 | 36 | | |
29 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
30 | 52 | | |
31 | 53 | | |
32 | 54 | | |
| |||
43 | 65 | | |
44 | 66 | | |
45 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
46 | 75 | | |
47 | 76 | | |
48 | 77 | | |
49 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
50 | 179 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
566 | 566 | | |
567 | 567 | | |
568 | 568 | | |
569 | | - | |
| 569 | + | |
570 | 570 | | |
571 | | - | |
| 571 | + | |
572 | 572 | | |
573 | 573 | | |
574 | 574 | | |
| |||
578 | 578 | | |
579 | 579 | | |
580 | 580 | | |
581 | | - | |
| 581 | + | |
582 | 582 | | |
583 | 583 | | |
584 | 584 | | |
| |||
1143 | 1143 | | |
1144 | 1144 | | |
1145 | 1145 | | |
1146 | | - | |
| 1146 | + | |
1147 | 1147 | | |
1148 | | - | |
| 1148 | + | |
1149 | 1149 | | |
1150 | | - | |
| 1150 | + | |
1151 | 1151 | | |
1152 | 1152 | | |
1153 | 1153 | | |
| |||
1286 | 1286 | | |
1287 | 1287 | | |
1288 | 1288 | | |
1289 | | - | |
1290 | | - | |
1291 | | - | |
1292 | | - | |
1293 | | - | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
1294 | 1299 | | |
1295 | | - | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
1296 | 1305 | | |
1297 | 1306 | | |
1298 | 1307 | | |
1299 | | - | |
| 1308 | + | |
1300 | 1309 | | |
1301 | 1310 | | |
1302 | 1311 | | |
| |||
1311 | 1320 | | |
1312 | 1321 | | |
1313 | 1322 | | |
1314 | | - | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
1315 | 1330 | | |
1316 | 1331 | | |
1317 | 1332 | | |
| |||
1350 | 1365 | | |
1351 | 1366 | | |
1352 | 1367 | | |
1353 | | - | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
1354 | 1373 | | |
1355 | 1374 | | |
1356 | 1375 | | |
1357 | 1376 | | |
1358 | 1377 | | |
1359 | 1378 | | |
1360 | 1379 | | |
1361 | | - | |
| 1380 | + | |
1362 | 1381 | | |
1363 | 1382 | | |
1364 | 1383 | | |
1365 | 1384 | | |
1366 | 1385 | | |
1367 | 1386 | | |
1368 | 1387 | | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
1369 | 1394 | | |
1370 | 1395 | | |
1371 | 1396 | | |
| |||
1432 | 1457 | | |
1433 | 1458 | | |
1434 | 1459 | | |
| 1460 | + | |
| 1461 | + | |
1435 | 1462 | | |
1436 | 1463 | | |
1437 | 1464 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
488 | 488 | | |
489 | 489 | | |
490 | 490 | | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
491 | 495 | | |
492 | 496 | | |
493 | 497 | | |
| |||
0 commit comments