feat(grfn/bbbg): Add "RSVP" column to event attendees
Also sort, first by rsvp, then by signed in, then by last check, then by name Change-Id: I15d2e4a5693290d9c1cfd09196982e7a6957a138 Reviewed-on: https://cl.tvl.fyi/c/depot/+/4742 Reviewed-by: grfn <grfn@gws.fyi> Autosubmit: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
This commit is contained in:
parent
4cf86f2e53
commit
7a21189e0d
1 changed files with 11 additions and 1 deletions
|
@ -101,16 +101,26 @@
|
|||
[:thead
|
||||
[:th "Meetup Name"]
|
||||
[:th "Discord Name"]
|
||||
[:th "RSVP"]
|
||||
[:th "Signed In"]
|
||||
[:th "Last Vaccination Check"]]
|
||||
[:tbody
|
||||
(for [attendee attendees]
|
||||
(for [attendee (sort-by (juxt (comp not ::event-attendee/rsvpd-attending?)
|
||||
(comp not ::event-attendee/attended?)
|
||||
(comp some? :last-check)
|
||||
::attendee/meetup-name)
|
||||
attendees)]
|
||||
[:tr
|
||||
[:td.attendee-name (::attendee/meetup-name attendee)]
|
||||
[:td
|
||||
[:label.mobile-label "Discord Name: "]
|
||||
(or (not-empty (::attendee/discord-name attendee))
|
||||
"—")]
|
||||
[:td
|
||||
[:label.mobile-label "Signed In: "]
|
||||
(if (::event-attendee/rsvpd-attending? attendee)
|
||||
[:span {:title "Yes"} "✔️"]
|
||||
[:span {:title "No"} "❌"])]
|
||||
[:td
|
||||
[:label.mobile-label "Signed In: "]
|
||||
(if (::event-attendee/attended? attendee)
|
||||
|
|
Loading…
Reference in a new issue