Skip to content

Clear product traction when the field is emptied - #116

Merged
VolodymyrLinuxovich merged 1 commit into
mainfrom
fix/profile-traction-clear
Nov 13, 2026
Merged

VolodymyrLinuxovich merged 1 commit into
mainfrom
fix/profile-traction-clear

Conversation

@VolodymyrLinuxovich

Copy link
Copy Markdown
Owner

Fixes #115

Summary

productData in profile.ts now writes Prisma.DbNull to tractionMetrics when the parsed field is null. An emptied field clears the stored traction. Typed traction is saved as before. A missing field still leaves the stored value alone.

Validation

  • New tests in profile-traction-clear.test.ts. The clearing test fails on main.
  • npm test passes.
  • npm run typecheck and lint pass.

@vercel

vercel Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
largevcmodel Ready Ready Preview Nov 12, 2026 9:01am UTC

@VolodymyrLinuxovich
VolodymyrLinuxovich merged commit 714dd63 into main Nov 13, 2026
6 checks passed
@VolodymyrLinuxovich
VolodymyrLinuxovich deleted the fix/profile-traction-clear branch November 13, 2026 15:00

This branch was successfully deployed

1 active deployment
Preview — 40c9660b Deployed Nov 12, 2026 by vercel[bot]
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.

Product traction metric cannot be cleared

1 participant