Add BMI calculator and UI components for feedback#22
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request introduces a new BMI Calculator feature to the application, including a new calculator page, UI components, and navigation updates. The main changes add a user-friendly BMI calculator page, reusable UI components (
BadgeandProgress), and update the calculators index and routing to include the new tool.New BMI Calculator Feature
/calculators/bmiwith a form for entering weight and height, BMI computation logic, result display with category badges, and accessibility enhancements. The calculator uses Zod for validation and React Hook Form for form management. (app/components/pages/calculators/bmi.tsx,app/routes/calculators/bmi.tsx) [1] [2]app/routes/calculators/index.tsx)app/routes.ts)UI Component Additions
Badgecomponent with multiple style variants for status labeling, used in the BMI calculator to show BMI categories. (app/components/ui/badge.tsx)Progresscomponent for displaying progress bars, used to visually represent BMI ranges. (app/components/ui/progress.tsx)