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

Add Reset Hold and Hold For Next Month api #3140

Conversation

rodriguestiago0
Copy link
Contributor

@rodriguestiago0 rodriguestiago0 commented Jul 26, 2024

@actual-github-bot actual-github-bot bot changed the title Add Reset Hold and Hold For Next Month api [WIP] Add Reset Hold and Hold For Next Month api Jul 26, 2024
Copy link

netlify bot commented Jul 26, 2024

Deploy Preview for actualbudget ready!

Name Link
🔨 Latest commit 50522fa
🔍 Latest deploy log https://app.netlify.com/sites/actualbudget/deploys/66ac1a7e7e4d240008f23545
😎 Deploy Preview https://deploy-preview-3140.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.

Copy link
Contributor

github-actions bot commented Jul 26, 2024

Bundle Stats — desktop-client

Hey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle.

As this PR is updated, I'll keep you updated on how the bundle size is impacted.

Total

Files count Total bundle size % Changed
9 4.8 MB 0%

Changeset

No files were changed

View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

No assets were bigger

Smaller

No assets were smaller

Unchanged

Asset File Size % Changed
static/js/indexeddb-main-thread-worker-e59fee74.js 13.5 kB 0%
static/js/resize-observer.js 18.37 kB 0%
static/js/BackgroundImage.js 122.29 kB 0%
static/js/narrow.js 78.27 kB 0%
static/js/usePreviewTransactions.js 790 B 0%
static/js/AppliedFilters.js 27.61 kB 0%
static/js/wide.js 277.26 kB 0%
static/js/ReportRouter.js 1.23 MB 0%
static/js/index.js 3.04 MB 0%

Copy link
Contributor

github-actions bot commented Jul 26, 2024

Bundle Stats — loot-core

Hey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle.

As this PR is updated, I'll keep you updated on how the bundle size is impacted.

Total

Files count Total bundle size % Changed
1 1.14 MB → 1.14 MB (+334 B) +0.03%
Changeset
File Δ Size
packages/loot-core/src/server/api.ts 📈 +538 B (+2.69%) 19.5 kB → 20.03 kB
packages/api/methods.ts 📈 +278 B (+1.95%) 13.92 kB → 14.19 kB
View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

Asset File Size % Changed
kcab.worker.js 1.14 MB → 1.14 MB (+334 B) +0.03%

Smaller

No assets were smaller

Unchanged

No assets were unchanged

@rodriguestiago0 rodriguestiago0 force-pushed the add_reset_hold_and_hold_for_next_month branch from 867c26b to 0028cf8 Compare July 26, 2024 17:33
@rodriguestiago0 rodriguestiago0 changed the title [WIP] Add Reset Hold and Hold For Next Month api Add Reset Hold and Hold For Next Month api Jul 26, 2024
Copy link
Member

@MatissJanis MatissJanis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this!

packages/api/methods.ts Outdated Show resolved Hide resolved
packages/api/methods.ts Outdated Show resolved Hide resolved
MatissJanis
MatissJanis previously approved these changes Jul 29, 2024
Copy link
Member

@MatissJanis MatissJanis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM on my end.

Looking for another maintainers review since this impacts the API (which we cannot easily change without introducing a breaking change).

matt-fidd
matt-fidd previously approved these changes Jul 29, 2024
Copy link
Contributor

@matt-fidd matt-fidd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this! LGTM

@@ -63,6 +63,13 @@ export interface ApiHandlers {
flag: boolean;
}) => Promise<void>;

'api/hold-budget-for-next-month': (arg: {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One thought I had is it might be good to call this budget-hold-for-next-month (and use the same pattern for the other endpoint) vs the current hold-budget-for-next-month. My thought process is that the former sounds more like you're holding an amount from the budget for next month (the additive nature of the feature), whereas the latter is holding the entire budget. Doing the former also matches previous endpoints in the file (e.g. budget-set-amount, budget-set-carryover)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. Changing it

…odriguestiago0/actual into add_reset_hold_and_hold_for_next_month
Copy link
Contributor

@jfdoming jfdoming left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@MatissJanis MatissJanis merged commit 2b1ba88 into actualbudget:master Aug 4, 2024
19 checks passed
MatissJanis pushed a commit to actualbudget/docs that referenced this pull request Aug 6, 2024
@jat255
Copy link

jat255 commented Sep 8, 2024

This also addressed the feature request in #1982

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.

5 participants