Skip to content

fix: weekly goal and monthly stats update - #38

Merged
akeight merged 3 commits into
mainfrom
fix/card-stats
Aug 15, 2026
Merged

fix: weekly goal and monthly stats update#38
akeight merged 3 commits into
mainfrom
fix/card-stats

Conversation

@akeight

@akeight akeight commented Aug 15, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes several dashboard stat calculations that were counting the wrong applications or not updating live.

  • Applied stat card: no longer includes saved/other statuses. The card now uses the APPLIED count instead of the all-status total, so it reflects only actual applications.
  • Weekly Goal + Applications Submitted chart: exclude SAVED applications. Added SUBMITTED_STATUSES in src/lib/status.ts; the profile stats query and the chart now filter out saved rows (APPLIED, INTERVIEW, OFFER, REJECTED still count).
  • Weekly Goal date basis: computeStreak now buckets weeks by appliedAt (when you applied) instead of createdAt (when the row was added). This keeps the Weekly Goal consistent with the Applications Submitted chart and correctly credits the week a saved job is actually applied to.
  • Live updates: added profile.get cache invalidation to every application create/edit/status-change/delete mutation, so the Weekly Goal ring refreshes immediately like the other charts instead of requiring a page reload.

Test plan

  • Dashboard: with saved + applied internships, the Applied card shows only applied count (not saved).
  • Weekly Goal and Applications Submitted chart exclude saved items and agree on counts.
  • Add an application with Applied status: Weekly Goal updates without a page refresh.
  • Move an item to/from Applied (kanban), edit, and delete: Weekly Goal updates live.
  • Demo sandbox: numbers are consistent (Weekly Goal reflects applications by applied date, ~1/week).

@cursor

cursor Bot commented Aug 15, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@vercel

vercel Bot commented Aug 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
careercatalyst Ready Ready Preview Aug 15, 2026 8:29pm

Request Review

Count applications toward the weekly goal by when they were submitted
(appliedAt) rather than when the row was created. This keeps the Weekly
Goal card consistent with the Applications Submitted chart and correctly
credits the week a saved job is actually applied to.

Co-authored-by: Cursor <cursoragent@cursor.com>
@akeight
akeight merged commit 2f09a6e into main Aug 15, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant