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

Budget tsx refactor #1743

Merged
merged 17 commits into from
Oct 6, 2023
Merged

Conversation

Jod929
Copy link
Contributor

@Jod929 Jod929 commented Sep 27, 2023

Refactor the following to tsx: IncomeGroup, IncomeHeader, MonthsContext, RenderMonths, SidebarGroup.

Related to issue #1483

I had some trouble with RenderMonths, specifically typing 'Component' and returning a JSX.Element when a JSX.Element[] was the expected return type.

I also had an issue with MonthsContext and eslint not recognizing that 'getValidMonthBounds' and 'MonthsProvider' were being imported and used elsewhere.

If anyone has suggestions on these or anything else please let me know and I can fix it right away.

@netlify
Copy link

netlify bot commented Sep 27, 2023

Deploy Preview for actualbudget ready!

Name Link
🔨 Latest commit 68e0394
🔍 Latest deploy log https://app.netlify.com/sites/actualbudget/deploys/651ee9a105e0fc00084bb182
😎 Deploy Preview https://deploy-preview-1743.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 27, 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 (-29 B) -0.00%
Changeset
File Δ Size
src/components/budget/SidebarGroup.tsx 🆕 +7.48 kB 0 B → 7.48 kB
src/components/budget/IncomeGroup.tsx 🆕 +1.17 kB 0 B → 1.17 kB
src/components/budget/RenderMonths.tsx 🆕 +1.11 kB 0 B → 1.11 kB
src/components/budget/MonthsContext.tsx 🆕 +893 B 0 B → 893 B
src/components/budget/IncomeHeader.tsx 📉 -74 B (-5.83%) 1.24 kB → 1.17 kB
src/components/budget/SidebarGroup.js 🔥 -7.45 kB (-100%) 7.45 kB → 0 B
src/components/budget/IncomeGroup.js 🔥 -1.17 kB (-100%) 1.17 kB → 0 B
src/components/budget/RenderMonths.js 🔥 -1.12 kB (-100%) 1.12 kB → 0 B
src/components/budget/MonthsContext.js 🔥 -889 B (-100%) 889 B → 0 B
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/wide-components.chunk.js 126.87 kB → 126.84 kB (-28 B) -0.02%
static/js/main.js 1.12 MB → 1.12 MB (-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/231.chunk.js 117.37 kB 0%
static/js/narrow-components.chunk.js 34.74 kB 0%
static/js/reports.chunk.js 29.23 kB 0%
static/js/473.chunk.js 13 kB 0%
static/js/389.chunk.js 12.77 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 27, 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%

@MatissJanis
Copy link
Member

👋 Would you mind taking a look at the failing lint job? Sadly without having all the CI jobs passing we won't be able to merge.

carkom and others added 9 commits October 5, 2023 09:35
* regression fixes

* notes

* VRT updates
* 🔖 (23.10.0)

* Remove used release notes

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Editable mobile budget

* Fix error on empty amount

* Fix typo

* Decimal keyboard + select input on click

* Remove scrollIntoView

* Fix focus

* Focus input on negative/positive

* Use CellValue

* Functional mobile components

* Blur fix c/o dmlazaro

* Use pointer event

* Remove useFireChangeOnUnmount

* Release notes

* Prevent default on pointerdown

* Add dmlazaro to release notes

* Disable amount input button when not focused

* Remove input refocus
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.

Great!

Comment on lines -30 to -31
editingIndex={undefined}
args={undefined}
Copy link
Member

Choose a reason for hiding this comment

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

👏 praise: ‏thanks!

@MatissJanis MatissJanis merged commit 3c341fc into actualbudget:master Oct 6, 2023
19 checks passed
@trafico-bot trafico-bot bot added ✅ Approved ✨ Merged Pull Request has been merged successfully and removed 🔍 Ready for Review ✨ Merged Pull Request has been merged successfully labels Oct 6, 2023
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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants