Skip to content

Conversation

@lmezasemet
Copy link

📝 Description

The weight input now accepts decimals and stores them internally as deci-units (×10) in valuesInt.
On blur, the value is normalized with normalizeDecimal(..., { maxDecimals: 1 }), which preserves 0.x, trims redundant zeros, and limits to one decimal place.
For reps and time, normalizeInteger is applied on blur to keep only digits, remove leading zeros, and drop any fraction.

📋 Checklist

  • My code follows the project conventions
  • This PR includes breaking changes
  • I have updated documentation if necessary

🗃️ Prisma Migrations (if applicable)

  • I have created a migration
  • I have tested the migration locally

📸 Screenshots (if applicable)

🔗 Related Issues

Fixes: #97 , #99

@vercel
Copy link

vercel bot commented Aug 20, 2025

@lmezasemet is attempting to deploy a commit to the Workoutcool Team Team on Vercel.

A member of the Team first needs to authorize it.

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.

Inputs allow leading zeros (e.g. "030" seconds or "0021" kg)

1 participant