Skip to content

Feature Req: Setting Budgets & alerts Closes #4#61

Merged
MeenakshiAM merged 1 commit into
MeenakshiAM:mainfrom
adithyen:Feature-Req-Setting-Budgets-&-alerts-#4
Mar 1, 2026
Merged

Feature Req: Setting Budgets & alerts Closes #4#61
MeenakshiAM merged 1 commit into
MeenakshiAM:mainfrom
adithyen:Feature-Req-Setting-Budgets-&-alerts-#4

Conversation

@adithyen
Copy link
Copy Markdown
Contributor

@adithyen adithyen commented Mar 1, 2026

…edit/delete bugs

📌 Description

Brief description of what this PR does.
To add a feature for setting monthly budget and show warnings when close/exceeded (may be through notification or home screen UI ).

🔗 Related Issue

Closes #4

🛠 Changes Made

  1. Setting a Monthly Budget (in index.html lines 40-42)
    There's a "Monthly Budget" input field and a "Set Budget" button on the home screen.

  2. Budget persistence (in script.js )
    The budget value is saved to localStorage, so it persists even after you close the browser.

  3. Two-level warnings (in script.js lines 183-193)
    🟠 Orange warning — "⚠ Approaching Monthly Budget (>= 80%)!" — appears when your filtered expenses reach 80% of the budget
    🔴 Red warning — "⚠ Monthly Budget Exceeded!" — appears when expenses exceed the budget
    These warnings show in the #budgetWarning div right below the total on the home screen.
    How to test it:
    Start your backend (node server.js from the backend/ folder)
    Open index.html in the browser Set a budget (e.g. ₹1000) Add expenses — when the total crosses ₹800, you'll see the orange warning. Past ₹1000, it turns red.Everything is in place — just make sure your backend server is running so the Add button works!


✅ Checklist

  • I have tested my changes
  • My code follows project guidelines
  • I have linked the related issue

@MeenakshiAM MeenakshiAM merged commit 821da0f into MeenakshiAM:main Mar 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Req: Setting Budgets & alerts

2 participants