feat: superadmin-managed hackathon identity and date settings with onboarding form - #125
Open
devin-ai-integration[bot] wants to merge 4 commits into
Open
Conversation
…boarding form Co-Authored-By: Caleb Bae <baecal000@gmail.com>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Co-Authored-By: Caleb Bae <baecal000@gmail.com>
…s://github.com/hackutd/harp into devin/1785696815-hackathon-onboarding-settings
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.
Summary
Hackathon identity (name, contact/sender email, sender name) and the key dates (applications due, decisions, kickoff) move out of
.env/ hardcoded frontend constants into thesettingstable, managed by super admins through a new onboarding dialog. Deployment secrets (SendGrid/SMTP creds, SuperTokens, GCS, Apple Wallet) stay in.env.Backend:
internal/store/settings.gogains seven keys backed by two shared helpers, so each setting is a two-line wrapper:getStringSetting/setStringSetting(JSONB string,INSERT ... ON CONFLICT DO UPDATE, unset →"").cmd/api/settings.go: GET/POST per setting (dates validated asYYYY-MM-DD), plusGET /superadmin/settings/onboarding-statusreturning a bool per required setting and an aggregatecomplete.GET /hackathon-config(authenticated, not super-admin gated) exposes the same values to the hacker UI.000026_seed_hackathon_identity_settingsseeds the keys asnull.Frontend:
OnboardingDialogis a standalone Radix dialog with abackdrop-blur-smoverlay and outside-click disabled; it prefills from the eight GETs on open and POSTs all values on submit (reusingScheduleTab's calendar/parseDateOnly/toDateKeyconventions and its ≤7-day range rule).OnboardingGate(rendered inAdminLayout) auto-opens it forsuper_adminwhenonboarding-statusis incomplete; a new Hackathon tab inSettingsDialogshows the per-setting checklist and reopens the same prefilled form.DashboardPagedropsIMPORTANT_DATES,"HackUTD 2026", andVITE_CONTACT_EMAILin favor of/hackathon-config; unset dates are omitted rather than shown as placeholders, and the Contact quick link is hidden until a contact email exists.Tests:
cmd/api/settings_test.gocovers name/email/date validation and both onboarding-status branches.Link to Devin session: https://app.devin.ai/sessions/41cc0f286d00489b97d4b629b73b66c7
Requested by: @balebbae