feat: Weekly Heat card + weather quest rotation - #357
Draft
driver727-pixel wants to merge 2 commits into
Draft
Conversation
…ture flags, server stubs, Firestore rule stubs - docs/DATA_MODEL.md: audit of all existing Firestore collections with document shapes - docs/AGENT_STATUS.md: daily sync artifact for Gamma/Charlie coordination - src/lib/sharedTypes.ts: append-only shared contract file (DailyStreak, Mission, BattlePassState, Crew, RankedSeason, RankedEntry, ShareLink) - src/lib/featureFlags.ts: central feature-flag registry (all default false) - server/battlePass.js, server/ranked.js, server/crews.js, server/dailyRewards.js: no-op handler stubs - firestore.rules: read-only stub rules for dailyStreaks, missions, battlePass, crews, rankedSeasons, shareLinks Co-authored-by: SP Digital <driver727@gmail.com>
- src/lib/weeklyHeat.ts: 6-week Heat card rotation (Legendary, district-themed), 6 weather quests, week-bounded timestamps - src/hooks/useWeeklyHeat.ts: React hook with live countdown and weekly state - src/components/WeeklyHeatBanner.tsx: split banner showing Heat card + weather quest - CardForge.tsx: mounted WeeklyHeatBanner above welcome modal - featureFlags.ts: added WEEKLY_HEAT flag (default false) - sharedTypes.ts: added WeeklyHeatForge and WeeklyQuestProgress interfaces - index.css: weekly heat banner styles with accent color theming and responsive grid Co-authored-by: SP Digital <driver727@gmail.com>
11 tasks
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
Implements the "Weekly" cadence in the engagement loop — a rotating Legendary "Heat" card that's only forgeable for 7 days, paired with a district weather quest offering cosmetic rewards.
Weekly Heat Card Rotation
Each week (Monday → Sunday UTC), one Heat card from a 6-week rotation is featured:
Weather Quests
Each week also features a rotating district-specific quest (complete deliveries in the featured district for XP + cosmetic frame reward).
Architecture
src/lib/weeklyHeat.ts— Week ID calculation, Heat card rotation, weather quest pool, time bounds, countdown formattingsrc/hooks/useWeeklyHeat.ts— React hook with 1-minute ticker for live countdownsrc/components/WeeklyHeatBanner.tsx— Split banner: Heat card (left) + Weather Quest (right), with accent color theming--heat-accent, responsive collapse to single column on mobileFeature Flag
Ships behind
VITE_FF_WEEKLY_HEAT. Defaultfalse.Files Changed
src/lib/weeklyHeat.tssrc/hooks/useWeeklyHeat.tssrc/components/WeeklyHeatBanner.tsxsrc/lib/featureFlags.tsWEEKLY_HEATflagsrc/lib/sharedTypes.tsWeeklyHeatForge,WeeklyQuestProgresssrc/pages/CardForge.tsxsrc/index.cssTesting
tsc --noEmitpasses clean