Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] ♻️ make templates classy and replace 🍝 code #3754

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

youngcw
Copy link
Member

@youngcw youngcw commented Oct 30, 2024

An attempt to rewrite the goal template processing to not be so messy. Im moving a lot of the functions into a class that will be used for each category and that way all the calculations can stay local and have minimal variables passed around. There will still be level above this so that things that require some checks of the full budget can still be done ex. balances at priority levels, remainder amounts, recapturing funds from limits, etc

This also should hopefully fix #2741, fix #2405, fix #2437, and make #1686 easier. While also making future hooks into goals be easier to do. For example showing changes before applying, calculating full amounts for planning, etc.

So far this also includes a big change where limits only apply once, and not every priority level.

Don't expect this to be done for a bit. If anyone wants to look over my general structure of the class and point me in the right direction with all the async/await stuff, that would be helpful.

@actual-github-bot actual-github-bot bot changed the title ♻️ make templates classy and replace 🍝 code [WIP] ♻️ make templates classy and replace 🍝 code Oct 30, 2024
Copy link

netlify bot commented Oct 30, 2024

Deploy Preview for actualbudget ready!

Name Link
🔨 Latest commit 7bb4dfa
🔍 Latest deploy log https://app.netlify.com/sites/actualbudget/deploys/67230406a6cf4c0008d10f2c
😎 Deploy Preview https://deploy-preview-3754.demo.actualbudget.org
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant