Skip to content

Attendance Timeframe Feature #40

@jbalpert

Description

@jbalpert

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions