Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added utility functions and UI updates to handle percentage values #216

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

atrincas
Copy link
Collaborator

@atrincas atrincas commented Jan 9, 2025

Add percentage value handling for assumption inputs

Overview

This PR implements proper handling of percentage values in the assumptions form, providing a better user experience by automatically converting between decimal storage format and percentage display.

Changes

  • Added utility functions for percentage value conversion
  • Updated cell value component to handle percentage inputs
  • Modified columns display to show proper percentage formatting

Technical Details

  • Values are stored in decimal format (e.g., 0.01)
  • Values are displayed as percentages when the unit includes "%" (e.g., 1%)
  • Automatic conversion happens on input and display

Jira

TBCCT-239

Copy link

vercel bot commented Jan 9, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tnc-blue-carbon-cost-tool-ghps ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 9, 2025 11:31am

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