-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Migrate Account component to a functional component and use the new useTransactions
hook
#3708
Open
joel-jeremy
wants to merge
25
commits into
master
Choose a base branch
from
accounts-function-component
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,040
−2,074
Open
Changes from 23 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
fbc2ccd
useTransactions hook to load transactions
joel-jeremy a7b90a0
Fx flaky test
joel-jeremy b9a43b9
Fix tests
joel-jeremy 60dac66
Apply coderabbit suggestions
joel-jeremy b9c167d
Update useTransactions
joel-jeremy 89059bf
Code rabbit suggestions
joel-jeremy a7f6553
Coderabbit feedback + make useSchedules consistent with query pattern…
joel-jeremy 0726760
Code review feedback and improve schedules loading
joel-jeremy df61e42
Initial commit
joel-jeremy ccff841
Fix preview transactions
joel-jeremy bc3b96c
Release notes
joel-jeremy 3ba9464
Remove unused headerContent
joel-jeremy e917595
useTransactionsSearch
joel-jeremy 2a93b17
Fix default expand splits
joel-jeremy 3ace7d1
Coderabbit feedback
joel-jeremy ba70fca
Fix test
joel-jeremy bb17f6a
Fix test
joel-jeremy 2ec46d8
Fix running balances by excluding child preview transactions
joel-jeremy 4e6331c
useTransactionsFilter hook
joel-jeremy 5e80508
Ignore unused useActions
joel-jeremy 72644d3
Remove non-existent SelectedProviderWithItems
joel-jeremy 45777ca
Update VRT
github-actions[bot] 4fc91c6
Fix typecheck
joel-jeremy 3fe5b5a
Update VRT
github-actions[bot] c285392
Coderabbit
joel-jeremy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file modified
BIN
-4.41 KB
(96%)
...js-snapshots/Transactions-filters-transactions-by-category-7-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-4.84 KB
(96%)
...js-snapshots/Transactions-filters-transactions-by-category-8-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-4.76 KB
(96%)
...js-snapshots/Transactions-filters-transactions-by-category-9-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2,890 changes: 1,310 additions & 1,580 deletions
2,890
packages/desktop-client/src/components/accounts/Account.tsx
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure
accountId
is defined before passing toMoreBalances
In
Balances
,accountId
is passed toMoreBalances
, which expects a definedaccountId
. SinceaccountId
might beundefined
, this could lead to runtime errors.After making
accountId
required in the previous comment, verify that all instances ofBalances
are provided with a validaccountId
. IfaccountId
can beundefined
, consider adding a conditional rendering:However, it's recommended to ensure
accountId
is always defined ifMoreBalances
is to be rendered.📝 Committable suggestion
🧰 Tools
🪛 GitHub Check: typecheck
[failure] 260-260:
Type 'string | undefined' is not assignable to type 'string'.
🪛 GitHub Actions: Test
[error] 260-260: Type 'string | undefined' is not assignable to type 'string'