Skip to content

Add BMI calculator and UI components for feedback#22

Merged
Barata-Ribeiro merged 5 commits into
mainfrom
implement-index-and-bmi-calculators
Jul 1, 2026
Merged

Add BMI calculator and UI components for feedback#22
Barata-Ribeiro merged 5 commits into
mainfrom
implement-index-and-bmi-calculators

Conversation

@Barata-Ribeiro

Copy link
Copy Markdown
Owner

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 (Badge and Progress), and update the calculators index and routing to include the new tool.

New BMI Calculator Feature

  • Added a new BMI calculator page at /calculators/bmi with 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]
  • Updated the calculators index page to include the BMI calculator in the list of available calculators, with metadata and navigation. (app/routes/calculators/index.tsx)
  • Updated the application routing to register the new BMI calculator route. (app/routes.ts)

UI Component Additions

  • Introduced a reusable Badge component with multiple style variants for status labeling, used in the BMI calculator to show BMI categories. (app/components/ui/badge.tsx)
  • Added a Progress component for displaying progress bars, used to visually represent BMI ranges. (app/components/ui/progress.tsx)

@Barata-Ribeiro Barata-Ribeiro self-assigned this Jul 1, 2026
@Barata-Ribeiro Barata-Ribeiro added the enhancement New feature or request label Jul 1, 2026
@vercel

vercel Bot commented Jul 1, 2026

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
utilities-webapp Ignored Ignored Jul 1, 2026 12:54pm

@Barata-Ribeiro Barata-Ribeiro merged commit 33543b0 into main Jul 1, 2026
3 checks passed
@Barata-Ribeiro Barata-Ribeiro deleted the implement-index-and-bmi-calculators branch July 1, 2026 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant