feat(ui): create percentage breakdown input for III.1.1 etc. #723
+649
−12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
TL;DR
Added a new percentage breakdown input component for activity forms.
What changed?
PercentageBreakdownInput
component for handling percentage breakdowns in activity forms.activity-form-modal.tsx
andactivity-modal-body.tsx
to incorporate the new input type.useActivityForm
hook to reset form values when methodology changes.How to test?
Why make this change?
This change introduces a more user-friendly and intuitive way to input percentage breakdowns for activities. It provides a clear visual representation of different categories and their respective percentages, making it easier for users to accurately input and understand the data. The new component also includes built-in validation to ensure the total percentage adds up to 100%, improving data accuracy and user experience.