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

chore: add more concrete types to loot-core #1186

Merged
merged 25 commits into from
Jul 29, 2023

Conversation

TomAFrench
Copy link
Contributor

@TomAFrench TomAFrench commented Jun 25, 2023

This PR adds explicit types to several directories in loot-core. There's a slight conflict with #1180 in months.ts which will need to be resolved.

Waiting on #1077 to be merged.

@netlify
Copy link

netlify bot commented Jun 25, 2023

Deploy Preview for actualbudget ready!

Name Link
🔨 Latest commit 2dbb4a1
🔍 Latest deploy log https://app.netlify.com/sites/actualbudget/deploys/64c528e52e702a00082ffba1
😎 Deploy Preview https://deploy-preview-1186.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.

@TomAFrench TomAFrench marked this pull request as draft June 25, 2023 14:51
@TomAFrench
Copy link
Contributor Author

Marking draft as I rebased this onto master without noticing that it depends on types from #1077.

* 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)
* master:
  Update .eslintignore (actualbudget#1218)
  Remove redundant UUID wrapper module, update uuid package to 9.x (actualbudget#1216)
  Fix size comparison workflow on fork PRs (actualbudget#1214)
  Move the rest of the syncing protobuf code to the CRDT package (actualbudget#1217)
  Bundle only the variable font version of Inter (actualbudget#1213)
  Improve some of the typings in loot-core (actualbudget#1180)
  Display bundle size changes in comments on opened PRs (actualbudget#1205)
  Consistently use ExternalLink (actualbudget#1184)
  Run ESLint at the top level once (actualbudget#1202)
  Add public/data to .eslintignore in desktop-client (actualbudget#1199)
  Remove unused deps from desktop-client (actualbudget#1200)
  Add release note
  ⬆️  upgrade hotkeys-js from v3.8.2 to v3.10.3, remove monkeypatch (actualbudget#1195)
  Fix navigating to the per-category per-month page (actualbudget#1182)
  ⬆️  upgrade react-dnd and remove monkeypatch (actualbudget#1192)
@github-actions
Copy link
Contributor

github-actions bot commented Jun 28, 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.08 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/main.js 848.84 KB 0%
static/js/457.chunk.js 388.22 KB 0%
static/media/Inter-italic.var.woff2 239.29 KB 0%
static/media/Inter-roman.var.woff2 221.86 KB 0%
static/js/wide-components.chunk.js 159.3 KB 0%
static/js/383.chunk.js 117.35 KB 0%
static/js/reports.chunk.js 32.27 KB 0%
static/js/narrow-components.chunk.js 31.94 KB 0%
static/js/281.chunk.js 28.55 KB 0%
static/js/876.chunk.js 26.2 KB 0%
static/js/969.chunk.js 12.94 KB 0%
static/js/resize-observer-polyfill.chunk.js 8.12 KB 0%
static/css/main.css 5.82 KB 0%
asset-manifest.json 2.07 KB 0%
index.html 1.66 KB 0%
static/media/browser-server.js 963 B 0%

@github-actions
Copy link
Contributor

github-actions bot commented Jun 28, 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 1.97 MB -> 1.97 MB (+24 B) +0.00%
Changeset
File Δ Size
packages/loot-core/src/server/budget/actions.ts 📈 +58 B (+0.68%) 8.32 KB -> 8.38 KB
packages/loot-core/src/server/accounts/parse-file.ts 📈 +10 B (+0.32%) 3.07 KB -> 3.08 KB
packages/loot-core/src/server/sheet.ts 📈 +4 B (+0.07%) 5.92 KB -> 5.93 KB
packages/loot-core/src/server/main.ts 📉 -6 B (-0.01%) 60.43 KB -> 60.42 KB
packages/loot-core/src/server/prefs.ts 📉 -131 B (-5.75%) 2.23 KB -> 2.1 KB
View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

Asset File Size % Changed
kcab.worker.js 1011.09 KB -> 1011.11 KB (+24 B) +0.00%

Smaller

No assets were smaller

Unchanged

Asset File Size % Changed
xfo.xfo.kcab.worker.js 1004.04 KB 0%

* master: (34 commits)
  chore: add types to `crdt` package (actualbudget#1076)
  Fix layout of the management app with the demo bar in place (actualbudget#1267)
  ♻️ (select) removing 2x usages of the Select component (actualbudget#1259)
  Fix transaction list scrolling behavior (actualbudget#1260)
  🐛  fix link-schedule option in transaction table (actualbudget#1250)
  cleared/uncleared background update (actualbudget#1265)
  Fix calculation of how many table rows to render (actualbudget#1262)
  ♻️  moving more components out of common.tsx (actualbudget#1257)
  ♻️  moving some components from common.tsx to separate files (actualbudget#1248)
  🐛  fix toggling of balances in all-accounts view (actualbudget#1252)
  🐛 (mobile) reduce the size of account cards (actualbudget#1247)
  Fix electron export issue (actualbudget#1242)
  Saved Filters Page (actualbudget#1122)
  🔧  cancel previous CI runs if a new push is made (actualbudget#1251)
  .gitattributes Check line endings for tsx files (actualbudget#1246)
  Fix importing transfers from YNAB4/5 (actualbudget#1224)
  Auto-close the local/nordigen picker modal after creating an account (actualbudget#1219)
  Run “Handle completed feature requests” in pull_request_target (actualbudget#1243)
  Add electron options to bug-report.yml (actualbudget#1239)
  Add onClick handlers to the schedule and transaction icons in the transaction list (actualbudget#1228)
  ...
packages/loot-core/src/server/prefs.ts Outdated Show resolved Hide resolved
packages/loot-core/src/server/prefs.ts Outdated Show resolved Hide resolved
packages/loot-core/src/shared/months.ts Outdated Show resolved Hide resolved
packages/loot-core/src/mocks/budget.ts Show resolved Hide resolved
packages/loot-core/src/mocks/budget.ts Show resolved Hide resolved
@MatissJanis
Copy link
Member

👋 I'll close this off for now due to inactivity and the conflicts.

But please feel free to re-open (or open a new PR) if you resume working on this.

@j-f1 j-f1 reopened this Jul 29, 2023
@j-f1 j-f1 marked this pull request as ready for review July 29, 2023 14:50
@j-f1 j-f1 merged commit 26d0bda into actualbudget:master Jul 29, 2023
15 checks passed
@trafico-bot trafico-bot bot added ✨ Merged Pull Request has been merged successfully and removed ✅ Approved labels Jul 29, 2023
@TomAFrench TomAFrench deleted the more-ts branch August 1, 2023 20:04
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