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

changed default months to 5 in cash flow report #1723

Merged
merged 3 commits into from
Sep 22, 2023

Conversation

shaankhosla
Copy link
Contributor

This is a very minor change. It bothered me that the after opening the Cash Flow report, the default number of months is so large (30 months shown). I've changed this to 5 months which is what the Net Worth graph does.

I also thought about changing it to all months until the date of the first transaction but decided against this.

@netlify
Copy link

netlify bot commented Sep 22, 2023

Deploy Preview for actualbudget ready!

Name Link
🔨 Latest commit 0dd276b
🔍 Latest deploy log https://app.netlify.com/sites/actualbudget/deploys/650de1e44ff08e000869ad01
😎 Deploy Preview https://deploy-preview-1723.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.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 22, 2023

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
16 2.48 MB → 2.48 MB (-356 B) -0.01%
Changeset
File Δ Size
src/components/reports/CashFlow.js 📉 -1 B (-0.01%) 8.41 kB → 8.41 kB
src/components/settings/UI.tsx 📉 -10 B (-0.41%) 2.4 kB → 2.39 kB
src/components/common/Button.tsx 📉 -682 B (-12.06%) 5.52 kB → 4.86 kB
View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

No assets were bigger

Smaller

Asset File Size % Changed
static/js/main.js 1.11 MB → 1.11 MB (-355 B) -0.03%
static/js/reports.chunk.js 29.23 kB → 29.23 kB (-1 B) -0.00%

Unchanged

Asset File Size % Changed
static/js/678.chunk.js 420.74 kB 0%
static/media/Inter-italic.var.woff2 239.29 kB 0%
static/media/Inter-roman.var.woff2 221.86 kB 0%
static/js/713.chunk.js 156.56 kB 0%
static/js/wide-components.chunk.js 126.98 kB 0%
static/js/231.chunk.js 117.37 kB 0%
static/js/narrow-components.chunk.js 35.15 kB 0%
static/js/473.chunk.js 13 kB 0%
static/js/389.chunk.js 12.76 kB 0%
static/js/resize-observer-polyfill.chunk.js 8.88 kB 0%
static/css/main.css 7.41 kB 0%
asset-manifest.json 2.07 kB 0%
index.html 1.66 kB 0%
static/media/browser-server.js 903 B 0%

@github-actions
Copy link
Contributor

github-actions bot commented Sep 22, 2023

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
2 2.22 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
kcab.worker.js 1.23 MB 0%
xfo.xfo.kcab.worker.js 1014.46 kB 0%

@shaankhosla
Copy link
Contributor Author

This is a before and after

image image

@Crazypkr1099
Copy link
Contributor

I would call this an enhancement not a bug. But yeah it looks way better as 5 months.

@@ -33,7 +33,7 @@ function CashFlow() {

const [allMonths, setAllMonths] = useState(null);
const [start, setStart] = useState(
monthUtils.subMonths(monthUtils.currentMonth(), 30),
monthUtils.subMonths(monthUtils.currentMonth(), 5),
Copy link
Member

@MatissJanis MatissJanis Sep 22, 2023

Choose a reason for hiding this comment

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

👏 praise: ‏this is great, but would be even better if we would store this in local storage. And then re-use between all the reports.
(not necessary to change unless you want to)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That might be a bit out of reach of my ability so it might take a bit longer for me to do. I'm happy for this to be merged in if you approve and I can try to do that in another PR.

Copy link
Member

Choose a reason for hiding this comment

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

Sure thing!

Co-authored-by: Matiss Janis Aboltins <[email protected]>
@MatissJanis MatissJanis merged commit 2f97c3a into actualbudget:master Sep 22, 2023
17 checks passed
@trafico-bot trafico-bot bot added ✨ Merged Pull Request has been merged successfully and removed ✅ Approved labels Sep 22, 2023
@shaankhosla shaankhosla deleted the default_months branch September 22, 2023 20:11
FlorianLang06 pushed a commit to FlorianLang06/actual that referenced this pull request Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Merged Pull Request has been merged successfully
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants