feat: add deals feature with database seeding, backend API, and inter…#88
Open
yashmitb wants to merge 1 commit intoCSES-Open-Source:mainfrom
Open
feat: add deals feature with database seeding, backend API, and inter…#88yashmitb wants to merge 1 commit intoCSES-Open-Source:mainfrom
yashmitb wants to merge 1 commit intoCSES-Open-Source:mainfrom
Conversation
…active UI component
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.
feat: add deals feature with database seeding, backend API, and interactive UI component
Changes
Added a full Deals & Offers page for logged-in UCSD students, backed by a Supabase
dealstable seeded from multiple open-source student discount databases.dealstable with 268 unique student deals across 9 categories (Software, Cloud, Education, Productivity, Shopping, Entertainment, AI, Music, UCSD Exclusive). Addedlink_statuscolumn populated by a link validation script that HEAD-checks all 268 URLs.GET /dealsendpoint with optional?category=filter, returning deals sorted by UCSD-specific first.Screen,Card,SectionTitle, andAppTextprimitives.DealCardcomponents with staggered fade+slide entrance animations, color-coded category/badge chips, UCSD exclusive gold strip, and✓ Verified/Uncheckedlink status badgeseed_deals_all.ts) merges all three sources with name-based deduplication (curated data takes priority).validate_links.ts— runs parallel HEAD requests against all deal URLs, marks each asverified,broken, oruncheckedin the DB. Re-runnable anytime.Testing
seed_deals_all.ts— confirmed 268 deals inserted cleanly across all categories.validate_links.ts— 224 verified, 18 broken, 26 unchecked out of 268.GET /dealsandGET /deals?category=UCSDvia curl — correct results, UCSD deals sorted first.