Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PMS] Display check-in status for each day of the event #344

Open
Tracked by #269
taesungh opened this issue Jan 24, 2024 · 0 comments
Open
Tracked by #269

[PMS] Display check-in status for each day of the event #344

taesungh opened this issue Jan 24, 2024 · 0 comments
Assignees

Comments

@taesungh
Copy link
Member

Following from #341, to indicate who has checked into the event, we can have three columns, one for each day, based on the check-in entries provided by the API. To offload the work from the API, the actual computation of whether or not a participant has checked in on a given day can happen on the client. To avoid a full data refetch, we can Mutate Based on Current Data in the useParticipants hook where the /admin/checkin/{uid} endpoint returns the update data for the current participant.

  • Make checkin endpoint return updated check-in entries for the current participant
  • Implement the mutation in useParticipant to update the data for only the current participant
  • Add three new columns to the participants table showing an icon indicating if a participant has checked in for that day
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant