feat(survey-page): add survey page for the events#105
Merged
marvinjameserosa merged 1 commit intodevfrom Feb 16, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✨ What’s New?
This pull request introduces a complete implementation of a post-event survey feature, including backend logic, a new survey page, and a dynamic survey form component. The changes ensure only authenticated and registered users can submit or update survey responses, and provide a streamlined, user-friendly UI for survey participation and feedback.
Backend logic for survey submission and validation:
submitSurveyResponseserver action inactions.tsto handle survey submissions, including user authentication, event and survey validation, registrant verification, duplicate response handling (update or insert), and cache revalidation for event management pages. (frontend/src/app/event/[slug]/survey/actions.tsR1-R121)Survey page and data fetching:
survey/page.tsxroute, which fetches event and user data, checks survey availability, retrieves any existing survey response, and renders the survey form or appropriate messages if the survey is unavailable. (frontend/src/app/event/[slug]/survey/page.tsxR1-R148)Survey form UI and client logic:
SurveyFormcomponent that dynamically renders questions based on the survey config, supports multiple question types (text, rating, yes/no, multiple choice), handles form state, validation, submission, editing, and displays confirmation or error states.Type updates for survey responses:
SurveyResponseinterface intypes/survey.tsto useuserIdinstead ofattendeeEmail, aligning with the new authentication and submission logic📷 Screenshots (IMPORTANT)
Not Registered

Not Logged In

Logged In
Case 1: First Time Survey



Case 2: Catch duplicate survey responses
🔗 Related Issues
Closes #104
✅ Checklist