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] prefsSlice #4127

Open
wants to merge 2 commits into
base: redux-toolkit-notifications-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] prefsSlice [WIP] [Redux Toolkit Migration] prefsSlice Jan 10, 2025
Copy link

netlify bot commented Jan 10, 2025

Deploy Preview for actualbudget ready!

Name Link
🔨 Latest commit 5cbdb7d
🔍 Latest deploy log https://app.netlify.com/sites/actualbudget/deploys/67853d25b5e5ac0008dc516e
😎 Deploy Preview https://deploy-preview-4127.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.

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 5.97 MB → 5.98 MB (+4.75 kB) +0.08%
Changeset
File Δ Size
home/runner/work/actual/actual/packages/loot-core/src/client/prefs/prefsSlice.ts 🆕 +2.66 kB 0 B → 2.66 kB
src/gocardless.ts 📈 +98 B (+9.02%) 1.06 kB → 1.16 kB
src/hooks/useSyncedPref.ts 📈 +25 B (+7.42%) 337 B → 362 B
src/hooks/useGlobalPref.ts 📈 +31 B (+7.31%) 424 B → 455 B
src/hooks/useSyncedPrefs.ts 📈 +21 B (+7.24%) 290 B → 311 B
src/hooks/useMetadataPref.ts 📈 +25 B (+7.06%) 354 B → 379 B
src/components/modals/EnvelopeBudgetSummaryModal.tsx 📈 +210 B (+5.62%) 3.65 kB → 3.86 kB
home/runner/work/actual/actual/packages/loot-core/src/client/actions/sync.ts 📈 +82 B (+5.09%) 1.57 kB → 1.65 kB
src/hooks/useTransactionBatchActions.ts 📈 +374 B (+4.46%) 8.18 kB → 8.55 kB
src/components/mobile/budget/index.tsx 📈 +562 B (+4.30%) 12.75 kB → 13.3 kB
src/components/settings/AuthSettings.tsx 📈 +106 B (+3.33%) 3.11 kB → 3.21 kB
src/global-events.ts 📈 +95 B (+2.75%) 3.37 kB → 3.46 kB
home/runner/work/actual/actual/packages/loot-core/src/client/shared-listeners.ts 📈 +212 B (+2.36%) 8.77 kB → 8.98 kB
src/components/schedules/index.tsx 📈 +83 B (+2.20%) 3.68 kB → 3.77 kB
src/components/modals/manager/ImportModal.tsx 📈 +99 B (+2.16%) 4.49 kB → 4.58 kB
src/components/HelpMenu.tsx 📈 +66 B (+2.12%) 3.04 kB → 3.1 kB
home/runner/work/actual/actual/packages/loot-core/src/client/modals/modalsSlice.ts 📈 +43 B (+2.11%) 1.99 kB → 2.03 kB
src/components/mobile/accounts/AccountTransactions.tsx 📈 +145 B (+1.80%) 7.86 kB → 8 kB
src/components/payees/ManagePayeesWithData.tsx 📈 +62 B (+1.61%) 3.75 kB → 3.81 kB
src/index.tsx 📈 +16 B (+1.61%) 994 B → 1010 B
src/components/modals/CloseAccountModal.tsx 📈 +176 B (+1.55%) 11.1 kB → 11.27 kB
src/components/modals/CoverModal.tsx 📈 +39 B (+1.31%) 2.91 kB → 2.95 kB
src/components/transactions/TransactionMenu.tsx 📈 +35 B (+1.25%) 2.73 kB → 2.77 kB
src/components/settings/Encryption.tsx 📈 +62 B (+1.17%) 5.16 kB → 5.22 kB
src/components/budget/index.tsx 📈 +98 B (+0.99%) 9.68 kB → 9.78 kB
src/components/mobile/transactions/TransactionEdit.jsx 📈 +343 B (+0.98%) 34.05 kB → 34.38 kB
src/components/modals/TransferModal.tsx 📈 +41 B (+0.98%) 4.08 kB → 4.12 kB
src/components/manager/WelcomeScreen.tsx 📈 +41 B (+0.98%) 4.1 kB → 4.14 kB
src/components/modals/CreateAccountModal.tsx 📈 +159 B (+0.96%) 16.25 kB → 16.41 kB
src/components/sidebar/Sidebar.tsx 📈 +27 B (+0.94%) 2.8 kB → 2.82 kB
src/components/manager/BudgetList.tsx 📈 +166 B (+0.88%) 18.45 kB → 18.61 kB
src/components/schedules/ScheduleLink.tsx 📈 +33 B (+0.87%) 3.69 kB → 3.72 kB
src/components/ManageRules.tsx 📈 +78 B (+0.87%) 8.78 kB → 8.86 kB
home/runner/work/actual/actual/packages/loot-core/src/client/budgets/budgetsSlice.ts 📈 +99 B (+0.86%) 11.26 kB → 11.36 kB
src/components/admin/UserDirectory/UserDirectory.tsx 📈 +78 B (+0.82%) 9.32 kB → 9.4 kB
src/components/modals/manager/FilesSettingsModal.tsx 📈 +37 B (+0.60%) 6.05 kB → 6.09 kB
src/components/transactions/TransactionList.jsx 📈 +31 B (+0.58%) 5.22 kB → 5.25 kB
src/components/accounts/Account.tsx 📈 +270 B (+0.57%) 46.45 kB → 46.71 kB
src/components/modals/MergeUnusedPayeesModal.tsx 📈 +35 B (+0.52%) 6.59 kB → 6.63 kB
src/components/mobile/budget/BudgetTable.jsx 📈 +268 B (+0.48%) 54.5 kB → 54.76 kB
src/components/admin/UserAccess/UserAccess.tsx 📈 +31 B (+0.44%) 6.84 kB → 6.87 kB
src/components/transactions/SelectedTransactionsButton.tsx 📈 +35 B (+0.42%) 8.12 kB → 8.15 kB
src/components/mobile/accounts/Accounts.tsx 📈 +27 B (+0.31%) 8.37 kB → 8.4 kB
src/components/modals/GoCardlessExternalMsgModal.tsx 📈 +31 B (+0.30%) 10.13 kB → 10.16 kB
src/components/transactions/TransactionsTable.jsx 📈 +137 B (+0.20%) 67.62 kB → 67.75 kB
src/components/schedules/ScheduleDetails.tsx 📈 +45 B (+0.14%) 30.86 kB → 30.9 kB
home/runner/work/actual/actual/packages/loot-core/src/client/store/index.ts 📉 -16 B (-1.38%) 1.13 kB → 1.12 kB
home/runner/work/actual/actual/packages/loot-core/src/client/reducers/index.ts 📉 -19 B (-33.33%) 57 B → 38 B
home/runner/work/actual/actual/packages/loot-core/src/client/constants.ts 📉 -176 B (-62.86%) 280 B → 104 B
home/runner/work/actual/actual/packages/loot-core/src/client/actions/prefs.ts 🔥 -1.59 kB (-100%) 1.59 kB → 0 B
home/runner/work/actual/actual/packages/loot-core/src/client/reducers/prefs.ts 🔥 -793 B (-100%) 793 B → 0 B
View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

Asset File Size % Changed
static/js/index.js 3.78 MB → 3.79 MB (+3.37 kB) +0.09%
static/js/narrow.js 86.3 kB → 87.28 kB (+1002 B) +1.13%
static/js/wide.js 106.72 kB → 107.1 kB (+388 B) +0.36%
static/js/AppliedFilters.js 10.24 kB → 10.27 kB (+31 B) +0.30%

Smaller

No assets were smaller

Unchanged

Asset File Size % Changed
static/js/en-GB.js 19 B 0%
static/js/de.js 4.59 kB 0%
static/js/indexeddb-main-thread-worker-e59fee74.js 13.5 kB 0%
static/js/pl.js 17 B 0%
static/js/cy.js 17 B 0%
static/js/nb-NO.js 19 B 0%
static/js/fr.js 13.11 kB 0%
static/js/es.js 3.45 kB 0%
static/js/ta.js 17 B 0%
static/js/pt-BR.js 775 B 0%
static/js/zh-Hant.js 10.13 kB 0%
static/js/resize-observer.js 18.37 kB 0%
static/js/BackgroundImage.js 122.29 kB 0%
static/js/workbox-window.prod.es5.js 5.69 kB 0%
static/js/en.js 96.91 kB 0%
static/js/uk.js 120.47 kB 0%
static/js/useAccountPreviewTransactions.js 1.63 kB 0%
static/js/ReportRouter.js 1.59 MB 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 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.33 MB 0%

@joel-jeremy joel-jeremy force-pushed the redux-toolkit-prefs-slice branch from c33712b to 0ae8b6d Compare January 11, 2025 00:03
@joel-jeremy joel-jeremy changed the base branch from master to redux-toolkit-notifications-slice January 13, 2025 16:59
@joel-jeremy joel-jeremy force-pushed the redux-toolkit-notifications-slice branch from 200b0fc to 2384069 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-notifications-slice branch from 2384069 to 5e0cf64 Compare January 13, 2025 23:11
@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-notifications-slice branch from 5e0cf64 to 67df0f6 Compare January 13, 2025 23:25
@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-notifications-slice branch from 67df0f6 to 3de3bba Compare January 14, 2025 08:18
@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-notifications-slice branch from 3de3bba to b648b01 Compare January 14, 2025 16:45
@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-notifications-slice branch 2 times, most recently from 6c28206 to 49c15a1 Compare January 14, 2025 17:15
@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-notifications-slice branch from 49c15a1 to 532232b Compare January 14, 2025 17:54
@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-notifications-slice branch from 532232b to e1dacf3 Compare January 14, 2025 18:10
@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-notifications-slice branch from e1dacf3 to b58a227 Compare January 17, 2025 17:44
@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-notifications-slice branch from b58a227 to 28c5c8f Compare January 17, 2025 19:23
@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-notifications-slice branch from 28c5c8f to 86bbe73 Compare January 20, 2025 07:11
@joel-jeremy joel-jeremy force-pushed the redux-toolkit-prefs-slice branch from 65641d0 to 09f758d Compare January 20, 2025 07:11
@joel-jeremy joel-jeremy force-pushed the redux-toolkit-notifications-slice branch from 86bbe73 to 6a3d459 Compare January 20, 2025 16:19
@joel-jeremy joel-jeremy force-pushed the redux-toolkit-prefs-slice branch 2 times, most recently from 70069ff to 0cf9e39 Compare January 20, 2025 16:22
@joel-jeremy joel-jeremy force-pushed the redux-toolkit-notifications-slice branch from 212e5b8 to 81af87a Compare January 21, 2025 18:54
@joel-jeremy joel-jeremy force-pushed the redux-toolkit-prefs-slice branch from 0cf9e39 to 5da2dcc Compare January 21, 2025 18:55
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