Skip to content

macrosbysara/macros-calculator

Repository files navigation

Macro Calculator

A macro calculator to help simplify calculations for my wife's business. Originally developed in MVC Pattern with 7-1 SCSS structure and BEM class names.


Changelog

v2.1.3 - [October 19, 2025]

  • Refactor: Removed AppInternals in favor of simpler loading in App
  • Chore: Update packages

v2.1.2

  • Fixed vite config bug

v2.1.1

  • Now deploys to Github Pages
  • Fixed a build bug

v2.1.0

  • Proper error handling when calories dip below BMR
  • Fixed a bug that didn't allow custom protein modifier input
  • Now stores state in local storage for 1 week in case the app crashes

v2.0.0

  • Rebuilt with React, Tailwind, shadcn and Vite
  • Ported changelog from original repo

v1.2.5

  • Minor UI tweaks

v1.2.4

  • Switched number input type to work better for mobile UIs.

v1.2.3

  • Fixed UI for mobile devices so the output isn't hilariously large.

v1.2.2

  • Bug fixes.
  • Better UI for mobile devices.

v1.2.1

  • Refactored underlying JS for proper MVC architecture.

v1.2

Password Protected!

The calculator now has a very basic password protection so it can be publicly viewable and still inaccessible (as this is a private tool for Sara's business and a personal point of pride for me as a web developer).

Also added a quick AJAX request to ipinfo.io to bypass the password if we're at home so we don't have to type in the password (as that will most likely be 95% of use cases for this tool for now).

v1.1

The Calculator has a new UI!

I've updated the tool to have Macros By Sara official branding, as well as set the desktop version to be a 2-column flex-grid that utilizes position:sticky to keep the results in-focus.

No more scrolling to see the numbers being crunched!

Dev notes

  • Now firing myCopright() inside init()
  • myCopyright() is now located inside of newly-renamed utilities.js module
  • Added docs in view.js
  • Refactored SCSS to implement @use in favor of deprecated @import

v1.0

Init.

Contributors

Languages