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

🏷️ making some files comply with strict TS #2247

Merged
merged 7 commits into from
Jan 22, 2024
Merged

Conversation

MatissJanis
Copy link
Member

No description provided.

Copy link

netlify bot commented Jan 19, 2024

Deploy Preview for actualbudget ready!

Name Link
🔨 Latest commit dfd0454
🔍 Latest deploy log https://app.netlify.com/sites/actualbudget/deploys/65ae2a3fddf8240008b78794
😎 Deploy Preview https://deploy-preview-2247.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.

requiredFields('payee', payee, ['name'], update);
return payee;
},
};

export const transactionModel = {
Copy link
Member Author

Choose a reason for hiding this comment

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

Unused

Copy link
Contributor

github-actions bot commented Jan 19, 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
10 4.98 MB → 4.98 MB (+84 B) +0.00%
Changeset
File Δ Size
src/components/UpdateNotification.tsx 📈 +30 B (+0.87%) 3.38 kB → 3.41 kB
src/components/autocomplete/CategoryAutocomplete.tsx 📈 +26 B (+0.35%) 7.26 kB → 7.29 kB
src/components/autocomplete/Autocomplete.tsx 📈 +28 B (+0.18%) 15.42 kB → 15.45 kB
View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

Asset File Size % Changed
static/js/index.js 2.64 MB → 2.64 MB (+84 B) +0.00%

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/ButtonLink.js 379 B 0%
static/js/BackgroundImage.js 122.29 kB 0%
static/js/BalanceTooltip.js 6.06 kB 0%
static/js/FiltersMenu.js 28.92 kB 0%
static/js/narrow.js 81.84 kB 0%
static/js/wide.js 239.61 kB 0%
static/js/ReportRouter.js 1.84 MB 0%

Copy link
Contributor

github-actions bot commented Jan 19, 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.24 MB → 1.24 MB (-1.11 kB) -0.09%
Changeset
File Δ Size
packages/loot-core/src/server/sync/index.ts 📈 +51 B (+0.21%) 23.23 kB → 23.28 kB
packages/loot-core/src/server/reports/app.ts 📈 +2 B (+0.08%) 2.36 kB → 2.36 kB
packages/loot-core/src/server/api.ts 📉 -114 B (-0.66%) 16.96 kB → 16.84 kB
packages/loot-core/src/platform/server/connection/index.web.ts 📉 -26 B (-0.72%) 3.51 kB → 3.49 kB
packages/loot-core/src/server/db/sort.ts 📉 -21 B (-1.11%) 1.85 kB → 1.83 kB
packages/loot-core/src/server/errors.ts 📉 -41 B (-3.09%) 1.29 kB → 1.25 kB
packages/loot-core/src/server/models.ts 📉 -2.27 kB (-50.98%) 4.44 kB → 2.18 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
kcab.worker.js 1.24 MB → 1.24 MB (-1.11 kB) -0.09%

Unchanged

No assets were unchanged

@MatissJanis MatissJanis marked this pull request as ready for review January 19, 2024 09:20
Copy link
Contributor

@twk3 twk3 left a comment

Choose a reason for hiding this comment

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

@MatissJanis these changes look good, but it needs another update from master and some fixes as the requiredFields change has an error with one of it's callers there.

@trafico-bot trafico-bot bot added ⚠️ Changes requested Pull Request needs changes before it can be reviewed again and removed 🔍 Ready for Review labels Jan 21, 2024
@trafico-bot trafico-bot bot added 🔍 Ready for Review and removed ⚠️ Changes requested Pull Request needs changes before it can be reviewed again labels Jan 22, 2024
requiredFields('reports', report, ['conditions'], update);
requiredFields('reports', report, ['conditionsOp'], update);
Copy link
Member Author

Choose a reason for hiding this comment

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

cc @carkom the conditions field doesn't exist on the CustomReportEntity type. LMK if you're ok with the patch I did here

@MatissJanis MatissJanis requested a review from twk3 January 22, 2024 08:44
@MatissJanis MatissJanis merged commit 5d28bc0 into master Jan 22, 2024
19 checks passed
@MatissJanis MatissJanis deleted the matiss/strict-ts branch January 22, 2024 19:01
@trafico-bot trafico-bot bot added ✨ Merged Pull Request has been merged successfully and removed ✅ Approved labels Jan 22, 2024
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.

2 participants