Skip to content

fix attendance scanner, toasts, and edge cases - #29

Merged
fed-tech merged 2 commits into
fed-tech:mainfrom
hardikguptaofficialgit:fix/attendance-scanner
Aug 21, 2026
Merged

fix attendance scanner, toasts, and edge cases#29
fed-tech merged 2 commits into
fed-tech:mainfrom
hardikguptaofficialgit:fix/attendance-scanner

Conversation

@hardikguptaofficialgit

Copy link
Copy Markdown
Collaborator

Summary

  • Harden attendance check-in with atomic DB marks, participant stats, and duplicate handling
  • Simplify admin scanner: close on success, stay open on already-checked-in scans
  • Add global toast provider so attendance alerts render reliably
  • Guard Google OAuth when client ID is missing; fix login errors from invalid JWT secret in env
  • Improve events skeleton, QR modal errors, and remove glow/hover animations app-wide

Test plan

  • Open /profile/attendance as admin, scan a valid QR — popup closes, success toast shows
  • Scan same QR again — popup stays open, "Already checked in" toast
  • Verify stats show Checked in X / Y with Y equal to registered participants
  • Participant QR blocked after check-in with clear message
  • Login page loads without Google client_id crash when OAuth env is unset

Harden QR check-in with atomic marks, accurate stats, global toasts, and a simpler admin flow that closes on success and stays open on duplicates. Also includes oauth guards, event skeleton, and glow animation cleanup from the same session.

Co-authored-by: Cursor <cursoragent@cursor.com>
Copilot AI lite review requested due to automatic review settings August 20, 2026 23:01
@vercel

vercel Bot commented Aug 20, 2026

Copy link
Copy Markdown

@hardikguptaofficialgit is attempting to deploy a commit to the fedkiitgmailcom's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

…upport

- Block current-year batch emails from event registration (auto-updates each calendar year)

- Deny attendance QR for pre-restriction registrations of the current batch

- Add MarkdownEditor for admin event descriptions with rendered output on event pages

- Fix Input controlled-value default that prevented typing on SignUp and other forms

- Improve session cookies for HTTPS tunnels and allow LAN/ngrok dev origins

- Update T&C with first-year eligibility and event entry rules

Co-authored-by: Cursor <cursoragent@cursor.com>
@fed-tech
fed-tech merged commit 84c7449 into fed-tech:main Aug 21, 2026
1 of 2 checks passed
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

Successfully merging this pull request may close these issues.

3 participants