Closed joel-jeremy closed 1 week ago
Name | Link |
---|---|
Latest commit | b398e38865a3085410a6228b5652074ca474a776 |
Latest deploy log | https://app.netlify.com/sites/actualbudget/deploys/672d3a4a76e9e8000878326c |
Deploy Preview | https://deploy-preview-3685.demo.actualbudget.org |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
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 → 9 | 5.34 MB → 5.35 MB (+5.74 kB) | +0.10% |
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.27 MB → 1.27 MB (+126 B) | +0.01% |
The pull request introduces substantial changes across multiple components and files, primarily enhancing transaction management and state handling. In AccountTransactions.tsx
, the useDefaultSchedulesQueryTransform
hook is replaced with a useMemo
call that utilizes accountSchedulesQuery
, altering the schedule querying method. New hooks, namely useTransactions
, usePreviewTransactions
, and useTransactionsSearch
, are introduced to streamline transaction fetching and searching processes. The SchedulesProvider
is updated to accept a query
prop instead of a transform
prop, improving the query structure. Several functions are refactored to utilize useCallback
, enhancing performance through memoization, and method signatures for AccountTransactions
and TransactionListWithPreviews
are modified to accommodate broader prop types.
In CategoryTransactions.jsx
, the manual pagination system is replaced with a hook-based approach, simplifying transaction management. The makeRootQuery
function is renamed to baseTransactionsQuery
, and the logic for updating queries is streamlined.
The new transactions.ts
file introduces the useTransactions
, useTransactionsSearch
, and usePreviewTransactions
hooks, encapsulating logic for handling transaction data retrieval, search functionality, and error management, thereby enhancing the overall structure and readability of transaction management.
AccountTransactions.tsx
regarding transaction management and state handling may relate to the overall user experience improvements in the mobile budget view, although they do not directly connect at the code level.AccountTransactions.tsx
for transaction fetching and management could be indirectly related to the enhancements in the test suite for importing transactions, as both involve transaction handling.AccountTransactions.tsx
that improve transaction management may relate to the overall stability improvements in the rules test e2e, as both involve ensuring reliable transaction data handling.AccountTransactions.tsx
for transaction state management could be relevant to the e2e stability improvements, particularly in how transactions are rendered and managed.AccountTransactions.tsx
that streamline transaction handling may connect to the onboarding tests that ensure the transaction table is visible, as both involve transaction visibility and management.AccountTransactions.tsx
for transaction management could relate to the ability to update existing transactions, as both involve handling transaction data effectively.AccountTransactions.tsx
regarding transaction filtering may connect to the fixes for displaying accurate running balances when reconciled transactions are hidden, as both involve transaction visibility.AccountTransactions.tsx
for transaction state handling may relate to the introduction of toggle functionality for the Cleared flag, as both involve managing transaction states.AccountTransactions.tsx
for transaction management may connect to the migration of custom reports to URL identifiers, as both involve enhancing user interactions with transaction data.AccountSyncCheck
to TypeScript may relate to the updates in AccountTransactions.tsx
, as both involve improving type safety and code clarity in transaction handling.sparkles: Merged
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
I noticed there's some flickering on the schedules page now that isn't present in the previous release. To reproduce, open the devtools, and set a 20x slowdown on the "Application" tab, then switch away and back to the Schedules page (e.g. Schedules -> Payees -> Schedules). I think it would be good to at least display a spinner, and ideally fix the regression from the previous behaviour. Any ideas what might be causing this?
Nice catch! Just needed to properly handle the loading states. It should now display loading indicators instead of not rendering the entire component.
@maintainers I would like to get 2 or more approvals on this PR before merging
Create a new
useTransactions
hook to simplify loading of transactions and preview transactions.The mobile transactions page have been migrated to use the new hook. Will try to use it on the desktop transaction list as well if I am able to find time because it first will need to be migrated to a functional component.
Having both desktop and mobile use the same hook to load the transactions would make the behavior more consistent on both views and would be easier to maintain.