-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Goals: Use shared 'months' functions for time #1082
Conversation
✅ Deploy Preview for actualbudget ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
👋 Hey! Is this PR out for review? If so - would you mind converting it from draft? And also CI is failing. If this is still work in progress: would you mind prefixing the PR title with "[WIP]"? Thanks! |
I won't have time for a couple of weeks to check for errors (vacation). I'll mark as WIP for now. |
Amazing, thanks @shall0pass ! Enjoy your well deserved time off! :) |
target_month = addMonths(target_month, repeat); | ||
num_months = differenceInCalendarMonths( | ||
target_month = monthUtils.addMonths(target_month, repeat); | ||
num_months = monthUtils.differenceInCalendarMonths( | ||
template_lines[l], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't find a situation where this code is run, but we should be passig the month parameter instead of the whole template line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO looks good! But I'd appreciate a review from someone else too since I'm not really using goal templates myself.
* master: ⬆️ upgrade @reach/listbox and remove monkeypatch (actualbudget#1190) 🔥 remove beta code and some unused scripts (actualbudget#1189) Goals: Use shared 'months' functions for time (actualbudget#1082) Fix completed feature request handling (actualbudget#1183) Fix “delete file” modal layout (actualbudget#1170) chore: enforce proper types in `sync/index` (actualbudget#1077) Fix transaction list page being blank on mobile (actualbudget#1171) Automatic category selection for new category transactions (actualbudget#1176)
* master: ⬆️ upgrade @reach/listbox and remove monkeypatch (actualbudget#1190) 🔥 remove beta code and some unused scripts (actualbudget#1189) Goals: Use shared 'months' functions for time (actualbudget#1082)
Based on Tom's comment (actualbudget#1058 (comment)) I've eliminated all direct use of date-fns and only use the functions in months.ts. --------- Co-authored-by: Matiss Janis Aboltins <[email protected]>
Based on Tom's comment (#1058 (comment)) I've eliminated all direct use of date-fns and only use the functions in months.ts.