Skip to content

Feat/family spending limits#498

Open
ekwe7 wants to merge 3 commits into
Remitwise-Org:mainfrom
ekwe7:feat/family-spending-limits
Open

Feat/family spending limits#498
ekwe7 wants to merge 3 commits into
Remitwise-Org:mainfrom
ekwe7:feat/family-spending-limits

Conversation

@ekwe7

@ekwe7 ekwe7 commented Jun 18, 2026

Copy link
Copy Markdown

closes #472

Description

  • This PR addresses the missing UI/UX for setting and visualizing
    per-member spending limits in the Family Wallets dashboard.

Changes

  • Validation: Added lib/validation/family-limits.ts to
    ensure spending limits are non-negative, finite numbers.

  • UI/UX:

  • Updated FamilyMemberStatCard to include an edit mode for
    spending limits.

  • Integrated the utilization progress bar using the existing
    visual pattern and updated it with accessibility roles
    (aria-valuenow, role="progressbar").

  • Added warning states to reflect near-limit and over-limit
    conditions.

  • Testing: Added unit tests in
    tests/unit/validation/family-limits.test.ts to verify the
    validation utility.

Testing

  • Manually verified the input validation and visual state changes
    for spending limits.
  • Validated new unit tests.

ekwe7 added 3 commits June 18, 2026 00:11
Implements the Add/Edit Savings Goal flow by lifting goalsData into
 component state and providing a fully accessible modal form.

 Key changes:
 - Integrated lib/validation/savings-goals for real-time form validation.
 - Externalized all strings and error messages to en.json for full i18n
      support.
 - Implemented modal accessibility (focus trap, ESC to close, and
      motion-reduce).
- Recomputed daysLeft and isOverdue dynamically from the target date.
 - Added 100% test coverage for goals utilities and validation logic.
 - Improved UI robustness with line-clamping for long titles and descriptions
… reflection

Cleans up unrelated syntax errors, missing imports, and type issues in app/ and components/ to ensure a green CI build for the savings goals feature.
  Adds set/edit limit control and a spent-vs-limit progress bar with
  near/over-limit warning states. Includes validation logic for
  spending limits and improves accessibility of the utilization
  display.
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.

Add per-member spending limit controls and utilization visuals to the Family Wallets page

1 participant