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

[WIP] [Redux Toolkit Migration] usersSlice [Final PR] #4128

Open
wants to merge 6 commits into
base: redux-toolkit-prefs-slice
Choose a base branch
from

Conversation

joel-jeremy
Copy link
Contributor

@joel-jeremy joel-jeremy commented Jan 10, 2025

@actual-github-bot actual-github-bot bot changed the title [Redux Toolkit Migration] usersSlice [WIP] [Redux Toolkit Migration] usersSlice Jan 10, 2025
Copy link

netlify bot commented Jan 10, 2025

Deploy Preview for actualbudget ready!

Name Link
🔨 Latest commit c15ad84
🔍 Latest deploy log https://app.netlify.com/sites/actualbudget/deploys/6781975f37bfa90008630b4f
😎 Deploy Preview https://deploy-preview-4128.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.

@joel-jeremy joel-jeremy changed the base branch from master to redux-toolkit-prefs-slice January 10, 2025 21:55
Copy link
Contributor

github-actions bot commented Jan 10, 2025

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
22 → 15 5.98 MB → 6.71 MB (+750.59 kB) +12.26%
Changeset (largest 100 files by percent change)
File Δ Size
node_modules/@rschedule/core/es2015/generators.js 🆕 +65.66 kB 0 B → 65.66 kB
node_modules/ua-parser-js/src/main/ua-parser.mjs 🆕 +64.02 kB 0 B → 64.02 kB
locale/nl.json 🆕 +62.88 kB 0 B → 62.88 kB
node_modules/handlebars/dist/cjs/handlebars/compiler/parser.js 🆕 +46.5 kB 0 B → 46.5 kB
node_modules/source-map/lib/source-map-consumer.js 🆕 +40.81 kB 0 B → 40.81 kB
node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js 🆕 +35.1 kB 0 B → 35.1 kB
node_modules/@rschedule/core/es2015/rules.js 🆕 +33.61 kB 0 B → 33.61 kB
node_modules/@rschedule/core/es2015/main.js 🆕 +29.87 kB 0 B → 29.87 kB
src/components/mobile/transactions/TransactionList.tsx 🆕 +16.09 kB 0 B → 16.09 kB
node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js 🆕 +15.47 kB 0 B → 15.47 kB
node_modules/source-map/lib/source-map-generator.js 🆕 +14.59 kB 0 B → 14.59 kB
node_modules/source-map/lib/source-node.js 🆕 +14.01 kB 0 B → 14.01 kB
node_modules/source-map/lib/util.js 🆕 +13.63 kB 0 B → 13.63 kB
node_modules/handlebars/dist/cjs/handlebars/runtime.js 🆕 +12.6 kB 0 B → 12.6 kB
home/runner/work/actual/actual/packages/loot-core/src/server/accounts/rules.ts 🆕 +11.84 kB 0 B → 11.84 kB
node_modules/handlebars/dist/cjs/handlebars/compiler/whitespace-control.js 🆕 +6.72 kB 0 B → 6.72 kB
node_modules/handlebars/dist/cjs/handlebars/compiler/helpers.js 🆕 +5.25 kB 0 B → 5.25 kB
node_modules/source-map/lib/base64-vlq.js 🆕 +4.87 kB 0 B → 4.87 kB
node_modules/source-map/lib/binary-search.js 🆕 +4.56 kB 0 B → 4.56 kB
node_modules/@rschedule/standard-date-adapter/es2015/main.js 🆕 +4.42 kB 0 B → 4.42 kB
node_modules/handlebars/dist/cjs/handlebars/compiler/code-gen.js 🆕 +4.3 kB 0 B → 4.3 kB
node_modules/handlebars/dist/cjs/handlebars/compiler/visitor.js 🆕 +3.83 kB 0 B → 3.83 kB
node_modules/source-map/lib/quick-sort.js 🆕 +3.78 kB 0 B → 3.78 kB
node_modules/source-map/lib/array-set.js 🆕 +3.37 kB 0 B → 3.37 kB
node_modules/handlebars/dist/cjs/handlebars/base.js 🆕 +3.16 kB 0 B → 3.16 kB
node_modules/handlebars/dist/cjs/handlebars/utils.js 🆕 +2.9 kB 0 B → 2.9 kB
node_modules/handlebars/dist/cjs/handlebars/helpers/each.js 🆕 +2.89 kB 0 B → 2.89 kB
node_modules/handlebars/dist/cjs/handlebars/internal/proto-access.js 🆕 +2.69 kB 0 B → 2.69 kB
node_modules/source-map/lib/mapping-list.js 🆕 +2.51 kB 0 B → 2.51 kB
src/components/payees/CategoryLearning.tsx 🆕 +2.28 kB 0 B → 2.28 kB
src/components/schedules/UpcomingLength.tsx 🆕 +2.2 kB 0 B → 2.2 kB
src/components/settings/LanguageSettings.tsx 🆕 +2.17 kB 0 B → 2.17 kB
node_modules/handlebars/dist/cjs/handlebars.runtime.js 🆕 +2.03 kB 0 B → 2.03 kB
node_modules/handlebars/dist/cjs/handlebars.js 🆕 +1.98 kB 0 B → 1.98 kB
node_modules/handlebars/dist/cjs/handlebars/exception.js 🆕 +1.77 kB 0 B → 1.77 kB
node_modules/source-map/lib/base64.js 🆕 +1.68 kB 0 B → 1.68 kB
node_modules/handlebars/dist/cjs/handlebars/helpers.js 🆕 +1.55 kB 0 B → 1.55 kB
node_modules/handlebars/dist/cjs/handlebars/helpers/if.js 🆕 +1.53 kB 0 B → 1.53 kB
node_modules/handlebars/dist/cjs/handlebars/compiler/base.js 🆕 +1.51 kB 0 B → 1.51 kB
node_modules/handlebars/dist/cjs/handlebars/logger.js 🆕 +1.28 kB 0 B → 1.28 kB
node_modules/handlebars/dist/cjs/handlebars/helpers/with.js 🆕 +1.19 kB 0 B → 1.19 kB
node_modules/handlebars/dist/cjs/handlebars/compiler/ast.js 🆕 +1.11 kB 0 B → 1.11 kB
node_modules/handlebars/dist/cjs/handlebars/helpers/block-helper-missing.js 🆕 +1.11 kB 0 B → 1.11 kB
home/runner/work/actual/actual/packages/loot-core/src/client/users/usersSlice.ts 🆕 +1.03 kB 0 B → 1.03 kB
node_modules/date-fns/esm/previousDay/index.js 🆕 +898 B 0 B → 898 B
node_modules/handlebars/dist/cjs/handlebars/no-conflict.js 🆕 +864 B 0 B → 864 B
node_modules/date-fns/esm/nextDay/index.js 🆕 +857 B 0 B → 857 B
node_modules/handlebars/dist/cjs/handlebars/helpers/helper-missing.js 🆕 +849 B 0 B → 849 B
node_modules/handlebars/dist/cjs/handlebars/decorators/inline.js 🆕 +813 B 0 B → 813 B
node_modules/handlebars/dist/cjs/handlebars/helpers/log.js 🆕 +722 B 0 B → 722 B
node_modules/handlebars/dist/cjs/handlebars/internal/create-new-lookup-object.js 🆕 +692 B 0 B → 692 B
node_modules/handlebars/dist/cjs/handlebars/internal/wrapHelper.js 🆕 +637 B 0 B → 637 B
node_modules/date-fns/esm/isWeekend/index.js 🆕 +591 B 0 B → 591 B
node_modules/date-fns/esm/getDay/index.js 🆕 +587 B 0 B → 587 B
node_modules/date-fns/esm/previousFriday/index.js 🆕 +558 B 0 B → 558 B
node_modules/source-map/source-map.js 🆕 +536 B 0 B → 536 B
node_modules/date-fns/esm/nextMonday/index.js 🆕 +524 B 0 B → 524 B
src/icons/v1/LightBulb.tsx 🆕 +441 B 0 B → 441 B
node_modules/handlebars/dist/cjs/handlebars/helpers/lookup.js 🆕 +437 B 0 B → 437 B
node_modules/handlebars/dist/cjs/handlebars/decorators.js 🆕 +424 B 0 B → 424 B
node_modules/handlebars/dist/cjs/handlebars/safe-string.js 🆕 +384 B 0 B → 384 B
home/runner/work/actual/actual/packages/loot-core/src/server/errors.ts 🆕 +134 B 0 B → 134 B
node_modules/@rschedule/standard-date-adapter/es2015/setup.js 🆕 +83 B 0 B → 83 B
node_modules/handlebars/dist/cjs/handlebars.runtime.js?commonjs-module 🆕 +39 B 0 B → 39 B
node_modules/handlebars/dist/cjs/handlebars/helpers/block-helper-missing.js?commonjs-module 🆕 +39 B 0 B → 39 B
node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js?commonjs-module 🆕 +39 B 0 B → 39 B
node_modules/handlebars/dist/cjs/handlebars/compiler/whitespace-control.js?commonjs-module 🆕 +38 B 0 B → 38 B
node_modules/handlebars/dist/cjs/handlebars/helpers/helper-missing.js?commonjs-module 🆕 +34 B 0 B → 34 B
node_modules/handlebars/dist/cjs/handlebars/internal/create-new-lookup-object.js?commonjs-exports 🆕 +33 B 0 B → 33 B
node_modules/handlebars/dist/cjs/handlebars.js?commonjs-module 🆕 +31 B 0 B → 31 B
node_modules/handlebars/dist/cjs/handlebars/safe-string.js?commonjs-module 🆕 +31 B 0 B → 31 B
node_modules/handlebars/dist/cjs/handlebars/no-conflict.js?commonjs-module 🆕 +31 B 0 B → 31 B
node_modules/handlebars/dist/cjs/handlebars/exception.js?commonjs-module 🆕 +30 B 0 B → 30 B
node_modules/handlebars/dist/cjs/handlebars/compiler/visitor.js?commonjs-module 🆕 +28 B 0 B → 28 B
node_modules/handlebars/dist/cjs/handlebars/compiler/code-gen.js?commonjs-module 🆕 +28 B 0 B → 28 B
node_modules/source-map/lib/source-map-generator.js?commonjs-exports 🆕 +28 B 0 B → 28 B
node_modules/handlebars/dist/cjs/handlebars/helpers/lookup.js?commonjs-module 🆕 +27 B 0 B → 27 B
node_modules/handlebars/dist/cjs/handlebars/decorators/inline.js?commonjs-module 🆕 +27 B 0 B → 27 B
node_modules/handlebars/dist/cjs/handlebars/logger.js?commonjs-module 🆕 +27 B 0 B → 27 B
node_modules/handlebars/dist/cjs/handlebars/compiler/parser.js?commonjs-module 🆕 +27 B 0 B → 27 B
node_modules/source-map/lib/source-map-consumer.js?commonjs-exports 🆕 +27 B 0 B → 27 B
node_modules/handlebars/dist/cjs/handlebars/helpers/log.js?commonjs-module 🆕 +26 B 0 B → 26 B
node_modules/handlebars/dist/cjs/handlebars/helpers/with.js?commonjs-module 🆕 +26 B 0 B → 26 B
node_modules/handlebars/dist/cjs/handlebars/helpers/each.js?commonjs-module 🆕 +25 B 0 B → 25 B
node_modules/handlebars/dist/cjs/handlebars/helpers/if.js?commonjs-module 🆕 +24 B 0 B → 24 B
node_modules/handlebars/dist/cjs/handlebars/compiler/ast.js?commonjs-module 🆕 +24 B 0 B → 24 B
node_modules/handlebars/dist/cjs/handlebars/internal/wrapHelper.js?commonjs-exports 🆕 +22 B 0 B → 22 B
node_modules/source-map/lib/binary-search.js?commonjs-exports 🆕 +22 B 0 B → 22 B
node_modules/handlebars/dist/cjs/handlebars/internal/proto-access.js?commonjs-exports 🆕 +21 B 0 B → 21 B
node_modules/source-map/lib/mapping-list.js?commonjs-exports 🆕 +21 B 0 B → 21 B
node_modules/handlebars/dist/cjs/handlebars/decorators.js?commonjs-exports 🆕 +20 B 0 B → 20 B
node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js?commonjs-exports 🆕 +20 B 0 B → 20 B
node_modules/source-map/lib/source-node.js?commonjs-exports 🆕 +20 B 0 B → 20 B
node_modules/handlebars/dist/cjs/handlebars/helpers.js?commonjs-exports 🆕 +19 B 0 B → 19 B
node_modules/source-map/source-map.js?commonjs-exports 🆕 +19 B 0 B → 19 B
node_modules/source-map/lib/base64-vlq.js?commonjs-exports 🆕 +19 B 0 B → 19 B
node_modules/source-map/lib/quick-sort.js?commonjs-exports 🆕 +19 B 0 B → 19 B
node_modules/source-map/lib/array-set.js?commonjs-exports 🆕 +18 B 0 B → 18 B
node_modules/handlebars/dist/cjs/handlebars/runtime.js?commonjs-exports 🆕 +17 B 0 B → 17 B
node_modules/handlebars/dist/cjs/handlebars/compiler/helpers.js?commonjs-exports 🆕 +17 B 0 B → 17 B
View detailed bundle breakdown

Added

Asset File Size % Changed
static/js/nl.js 0 B → 62.88 kB (+62.88 kB) -

Removed

Asset File Size % Changed
static/js/fr.js 13.11 kB → 0 B (-13.11 kB) -100%
static/js/zh-Hant.js 10.13 kB → 0 B (-10.13 kB) -100%
static/js/de.js 4.59 kB → 0 B (-4.59 kB) -100%
static/js/es.js 3.45 kB → 0 B (-3.45 kB) -100%
static/js/nb-NO.js 19 B → 0 B (-19 B) -100%
static/js/cy.js 17 B → 0 B (-17 B) -100%
static/js/pl.js 17 B → 0 B (-17 B) -100%
static/js/ta.js 17 B → 0 B (-17 B) -100%

Bigger

Asset File Size % Changed
static/js/index.js 3.79 MB → 4.29 MB (+514.97 kB) +13.28%
static/js/pt-BR.js 775 B → 108.78 kB (+108.03 kB) +14273.42%
static/js/en-GB.js 19 B → 97.97 kB (+97.95 kB) +527905.26%
static/js/ReportRouter.js 1.59 MB → 1.59 MB (+2.06 kB) +0.13%
static/js/en.js 96.91 kB → 98.94 kB (+2.03 kB) +2.09%
static/js/narrow.js 87.28 kB → 87.67 kB (+401 B) +0.45%
static/js/AppliedFilters.js 10.27 kB → 10.58 kB (+318 B) +3.02%
static/js/useAccountPreviewTransactions.js 1.63 kB → 1.69 kB (+62 B) +3.73%

Smaller

Asset File Size % Changed
static/js/wide.js 107.1 kB → 102.43 kB (-4.67 kB) -4.36%
static/js/uk.js 120.47 kB → 118.39 kB (-2.08 kB) -1.73%

Unchanged

Asset File Size % Changed
static/js/workbox-window.prod.es5.js 5.69 kB 0%
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%

Copy link
Contributor

github-actions bot commented Jan 10, 2025

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.33 MB → 1.33 MB (+476 B) +0.03%
Changeset
File Δ Size
packages/loot-core/src/shared/schedules.ts 📈 +2.37 kB (+25.30%) 9.35 kB → 11.72 kB
packages/loot-core/src/shared/util.ts 📈 +131 B (+1.19%) 10.73 kB → 10.86 kB
packages/loot-core/src/shared/transactions.ts 📈 +121 B (+1.16%) 10.23 kB → 10.35 kB
packages/api/methods.ts 📈 +138 B (+0.95%) 14.17 kB → 14.31 kB
packages/loot-core/src/server/main.ts 📈 +186 B (+0.26%) 69.32 kB → 69.5 kB
packages/loot-core/src/server/accounts/transaction-rules.ts 📈 +69 B (+0.21%) 31.84 kB → 31.91 kB
packages/loot-core/src/shared/errors.ts 📈 +2 B (+0.03%) 5.68 kB → 5.69 kB
packages/loot-core/src/server/accounts/sync.ts 📉 -1 B (-0.00%) 26.19 kB → 26.19 kB
packages/loot-core/src/server/schedules/app.ts 📉 -1.44 kB (-8.42%) 17.11 kB → 15.67 kB
View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

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

Smaller

No assets were smaller

Unchanged

No assets were unchanged

@joel-jeremy joel-jeremy changed the title [WIP] [Redux Toolkit Migration] usersSlice [WIP] [Redux Toolkit Migration] usersSlice [Final PR] Jan 10, 2025
@joel-jeremy joel-jeremy force-pushed the redux-toolkit-users-slice branch from c15ad84 to 96ff1d9 Compare January 13, 2025 23:03
@joel-jeremy joel-jeremy force-pushed the redux-toolkit-prefs-slice branch from 5cbdb7d to 582138a Compare January 13, 2025 23:04
@joel-jeremy joel-jeremy force-pushed the redux-toolkit-users-slice branch from 96ff1d9 to 0ee4194 Compare January 13, 2025 23:04
@joel-jeremy joel-jeremy force-pushed the redux-toolkit-prefs-slice branch from 582138a to f0e15a2 Compare January 13, 2025 23:12
@joel-jeremy joel-jeremy force-pushed the redux-toolkit-users-slice branch from 0ee4194 to 2fa3739 Compare January 13, 2025 23:12
@joel-jeremy joel-jeremy force-pushed the redux-toolkit-prefs-slice branch from f0e15a2 to 1e4d9a1 Compare January 13, 2025 23:26
@joel-jeremy joel-jeremy force-pushed the redux-toolkit-users-slice branch from 2fa3739 to 371697c Compare January 13, 2025 23:26
@joel-jeremy joel-jeremy force-pushed the redux-toolkit-prefs-slice branch from 1e4d9a1 to af70553 Compare January 14, 2025 08:19
@joel-jeremy joel-jeremy force-pushed the redux-toolkit-users-slice branch from 371697c to 16aaaaf Compare January 14, 2025 08:19
@joel-jeremy joel-jeremy force-pushed the redux-toolkit-prefs-slice branch from af70553 to 389b7ae Compare January 14, 2025 16:45
@joel-jeremy joel-jeremy force-pushed the redux-toolkit-users-slice branch from 16aaaaf to 9214d3c Compare January 14, 2025 16:45
@joel-jeremy joel-jeremy force-pushed the redux-toolkit-prefs-slice branch from 389b7ae to a42f2b3 Compare January 14, 2025 17:16
@joel-jeremy joel-jeremy force-pushed the redux-toolkit-users-slice branch from 9214d3c to 89e607d Compare January 14, 2025 17:16
@joel-jeremy joel-jeremy force-pushed the redux-toolkit-prefs-slice branch from a42f2b3 to 43b6e4e Compare January 14, 2025 17:57
@joel-jeremy joel-jeremy force-pushed the redux-toolkit-users-slice branch from 5a17f91 to 1c523c2 Compare January 14, 2025 17:58
@joel-jeremy joel-jeremy force-pushed the redux-toolkit-prefs-slice branch from 43b6e4e to 29faba1 Compare January 14, 2025 18:10
@joel-jeremy joel-jeremy force-pushed the redux-toolkit-users-slice branch from aec5914 to 27fbc36 Compare January 14, 2025 18:11
@joel-jeremy joel-jeremy force-pushed the redux-toolkit-prefs-slice branch from 29faba1 to 63a022d Compare January 17, 2025 17:46
@joel-jeremy joel-jeremy force-pushed the redux-toolkit-users-slice branch from fa3c692 to 5330b1e Compare January 17, 2025 17:46
@joel-jeremy joel-jeremy force-pushed the redux-toolkit-prefs-slice branch from 63a022d to 65641d0 Compare January 17, 2025 19:23
@joel-jeremy joel-jeremy force-pushed the redux-toolkit-users-slice branch from 5330b1e to 4d6edf4 Compare January 17, 2025 19:23
@joel-jeremy joel-jeremy force-pushed the redux-toolkit-prefs-slice branch from 65641d0 to 09f758d Compare January 20, 2025 07:12
@joel-jeremy joel-jeremy force-pushed the redux-toolkit-users-slice branch from 4d6edf4 to a42f3f0 Compare January 20, 2025 07:13
@joel-jeremy joel-jeremy force-pushed the redux-toolkit-prefs-slice branch from 09f758d to 70069ff Compare January 20, 2025 16:19
@joel-jeremy joel-jeremy force-pushed the redux-toolkit-users-slice branch from a42f3f0 to 435006f Compare January 20, 2025 16:19
@joel-jeremy joel-jeremy force-pushed the redux-toolkit-prefs-slice branch from 70069ff to 0cf9e39 Compare January 20, 2025 16:22
@joel-jeremy joel-jeremy force-pushed the redux-toolkit-users-slice branch from 435006f to bca1a75 Compare January 20, 2025 16:22
@joel-jeremy joel-jeremy force-pushed the redux-toolkit-prefs-slice branch from 0cf9e39 to 5da2dcc Compare January 21, 2025 18:55
@joel-jeremy joel-jeremy force-pushed the redux-toolkit-users-slice branch from bca1a75 to 68dd6bd Compare January 21, 2025 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant