Feature Req: Setting Budgets & alerts Closes #4#61
Merged
MeenakshiAM merged 1 commit intoMar 1, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…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
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.
Budget persistence (in script.js )
The budget value is saved to localStorage, so it persists even after you close the browser.
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