Skip to content

Title: Add budget overspend alert notification #74

Description

@Uyoxy

Labels: enhancement help wanted

Description

src/modules/budgets/budgets.service.ts enforces budget limits but
sends no notification when a user is approaching or exceeds their
budget. Users are unaware until they check manually.

Implementation Requirements

  • Add overspend check in src/modules/budgets/budgets.service.ts
  • Trigger notification via src/modules/notifications/notifications.service.ts at 80% and 100% usage
  • Add unit tests in src/modules/budgets/budgets.service.spec.ts

Acceptance Criteria

  • Notification sent at 80% budget usage
  • Notification sent at 100% budget usage
  • Notifications not duplicated on repeated checks
  • Unit tests pass
  • CI checks pass before PR is merged

Evidence Required

Contributors must provide ALL of the following:

  • Screenshot of server running with npm run start:dev
  • Screenshot showing notification triggered at 80% and 100%
  • Screenshot of unit tests passing
  • Screenshot of passing CI checks on the PR

Files Affected

  • src/modules/budgets/budgets.service.ts (modify)
  • src/modules/notifications/notifications.service.ts (modify)
  • src/modules/budgets/budgets.service.spec.ts (modify)

Metadata

Metadata

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official Campaign

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions