Skip to content

fix: stamp today's date when a job moves into applied without one#20

Merged
creativereason merged 1 commit into
mainfrom
fix/applied-date-stamp-on-move
Jul 16, 2026
Merged

fix: stamp today's date when a job moves into applied without one#20
creativereason merged 1 commit into
mainfrom
fix/applied-date-stamp-on-move

Conversation

@creativereason

Copy link
Copy Markdown
Owner

Summary

  • Board cards for applied jobs were often missing their applied date because moving a job into applied (e.g. dragging a prospect over) stamped date as "" instead of today's date.
  • normalizeJobForSection now defaults to today's date (YYYY-MM-DD) whenever date is falsy — covering both the missing-field case and jobs that already had date: "".

Test plan

  • Added a red→green test (app/api/__tests__/jobs.test.ts) using fake timers to assert the DELETE-and-move-to-applied flow stamps today's date
  • pnpm tsc --noEmit
  • pnpm lint
  • pnpm test (174 passed)

🤖 Generated with Claude Code

normalizeJobForSection was defaulting date to an empty string whenever
a job (e.g. a prospect) moved into applied with no date set, so many
board cards never showed an applied date. Default to today's date
instead, and treat any falsy date (not just undefined) as missing.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 16, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
deckhand-ai Ready Ready Preview, Comment Jul 16, 2026 4:42pm

@creativereason
creativereason merged commit d1044fc into main Jul 16, 2026
3 checks passed
@creativereason
creativereason deleted the fix/applied-date-stamp-on-move branch July 16, 2026 16:44
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