feat(tasks): MVP loop — composite leaderboard, RaceTrack, search, instrumentation#3
Open
gianyrox wants to merge 1 commit into
Open
feat(tasks): MVP loop — composite leaderboard, RaceTrack, search, instrumentation#3gianyrox wants to merge 1 commit into
gianyrox wants to merge 1 commit into
Conversation
Fills the MVP gaps from the TaskLapp feature spec §4/§7 against the existing assigner/assignee social model (not a generic todo app). Leaderboard (§3.3): add a shared, unit-tested scoring module and rank by a composite score (completed × avg-quality × on-time-rate + perfect bonus, with staleness decay). Fixes a bug where grading a task dropped it from the completed count (GRADED now counts as done). Populate perfectTasks / tasksOnTime / fastestCompletionTime that the detail UI already referenced, and add a Champions board + friends-only toggle. RaceTrack (US-8): drive the car and checkpoints from real task data via a pure raceProgress module; render it on the dashboard. Demo animation stays only for the empty state. Search + filter (US-5): free-text search over title/description plus a priority filter on the tasks page, layered on the existing status tabs, via a pure taskFilters module. Instrumentation (§6): emit assign/start/submit/grade events stamped peer-vs-self so the north star and peer:self ratio are queryable. Testing: add vitest + 30 unit tests for the pure scoring, filter, and race-progress logic. `npm test` runs them; production build is green. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Builds the TaskLapp MVP cut (feature spec §4/§7) on the existing social delegation model — assigner/assignee tasks with peer grading and a competitive leaderboard. Not a generic todo app.
What's built
lib/scoring.ts. Ranks bycompleted × avg-quality × on-time-rate + perfect-bonuswith staleness decay. Adds a Champions board and a friends-only toggle. PopulatesperfectTasks/tasksOnTime/fastestCompletionTime(the detail UI already referenced these but they were never computed).GRADED, which dropped it from theCOMPLETEDcount — the leaderboard punished you for grading.GRADEDnow counts as done.lib/raceProgress.tsmaps real tasks to checkpoints + car position; rendered on the dashboard ("Your Lap"). The demo animation now only runs for the empty state.lib/taskFilters.ts— free-text search (title + description) and a priority filter on the tasks page, layered on the existing status tabs.lib/analytics.tsemitsassign/start/submit/gradeevents stamped peer-vs-self, so the north star (weekly graded peer tasks) and the peer:self ratio are queryable. Wired intocreateTaskandupdateTaskStatus.Already present (validated, not rebuilt)
Auth, friends, task create/assign (self / friend / email invitation), the submission flow, and the 4-axis grading form on
/task/[taskId]were already built and match the ACs.Deferred
Tests / build
npm testis green.next buildpasses (type-check + compile). No deploy.🤖 Generated with Claude Code