Skip to content

feat(frontend): add balance percentage change calculator module (#368) - #479

Open
jdjioe5-cpu wants to merge 1 commit into
Kitewell-lab:mainfrom
jdjioe5-cpu:feat/issue-368-percentage-change-calc
Open

jdjioe5-cpu wants to merge 1 commit into
Kitewell-lab:mainfrom
jdjioe5-cpu:feat/issue-368-percentage-change-calc

Conversation

@jdjioe5-cpu

Copy link
Copy Markdown

Goal

Resolves #368

Adds the standalone frontend module frontend/src/percentageChangeCalc.js with focused unit tests and technical documentation, implementing the balance percentage-change calculator with BigInt-safe stroop precision and zero-previous-balance protection.

Changes

  • frontend/src/percentageChangeCalc.js: Exports calculatePercentageChange and helper functions.
  • docs/features/percentageChangeCalc.md: Feature overview, parameters, and public API reference.
  • 8 focused test files covering happy path, zero-balance edge cases, direction indicators (+/-), precision formatting, invalid inputs, and stroop conversion.

Verification

  • npm test passed cleanly in frontend/ (189 test files passed, 438 tests passed).
  • Zero modifications to existing files or other namespaces.

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.

New frontend module: frontend/src/percentageChangeCalc.js — Balance percentage-change calculator

1 participant