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

Attendance Timeframe Feature #40

Open
jbalpert opened this issue Apr 6, 2022 · 0 comments
Open

Attendance Timeframe Feature #40

jbalpert opened this issue Apr 6, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@jbalpert
Copy link
Contributor

jbalpert commented Apr 6, 2022

Expected Behavior

On attendance sign-in, or a user going to events/UUID for a particular event. The user should only have there attendance marked if they arrive between the event timeframe +- 30 minutes.

Actual Behavior

Right now, the attendance tracker will mark people within the database per page visit regardless of the time. This means someone who didn't go to the event will be able to later after the event happened be recorded for being there.

Steps

eventData is an object with the following variables

type Event = {
name: string;
id: string;
start_date: string;
end_date: string;
place: string;
description: string;
link: string;
};

you can use the start_date and end_date to check the timeframe and make sure that the current user at the current time is between that timeframe +- 30 minutes. If they aren't in the timeframe conditionally render, something about the event ending these are the next events, this is who went sort of thing

@jbalpert jbalpert added enhancement New feature or request good first issue Good for newcomers labels Apr 6, 2022
@jbalpert jbalpert self-assigned this Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant