-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix Issue 3331, sort favorite payees before other frequently used payees #3412
base: master
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for actualbudget ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Bundle Stats — desktop-clientHey 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
Changeset
View detailed bundle breakdownAdded No assets were added Removed No assets were removed Bigger
Smaller No assets were smaller Unchanged
|
Bundle Stats — loot-coreHey 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
Changeset No files were changed View detailed bundle breakdownAdded No assets were added Removed No assets were removed Bigger No assets were bigger Smaller No assets were smaller Unchanged
|
Functionally it looks good. Can you update the branch and fix the failed checks? |
Ok, test inconsistencies are addressed. |
@coderabbitai review |
Actions performedReview triggered.
|
WalkthroughThe pull request introduces several enhancements across multiple files, focusing on the Changes
Assessment against linked issues
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? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Hi @qedi-r, it looks like VRT is still failing. Could you update the branch and see if it clears please? |
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.
Actionable comments posted: 0
Outside diff range and nitpick comments (1)
packages/desktop-client/src/components/transactions/TransactionsTable.test.jsx (1)
676-694
: Consider adding an assertion for favorite stars.The test case
dropdown payee displays on existing non-transfer transaction
correctly verifies the rendered payee names in the dropdown for an existing transaction. However, to maintain consistency with the previous test case, consider adding an assertion to verify the presence of favorite stars for the appropriate payee items.You can use the custom Jest matcher
payeesToHaveFavoriteStars
to assert the favorite stars, like this:expect(renderedPayees).payeesToHaveFavoriteStars([ 'Alice-payee-item', 'Bob-payee-item', ]);
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- packages/desktop-client/src/components/autocomplete/PayeeAutocomplete.tsx (2 hunks)
- packages/desktop-client/src/components/transactions/TransactionsTable.test.jsx (7 hunks)
Files skipped from review as they are similar to previous changes (1)
- packages/desktop-client/src/components/autocomplete/PayeeAutocomplete.tsx
Additional comments not posted (2)
packages/desktop-client/src/components/transactions/TransactionsTable.test.jsx (2)
307-339
: LGTM!The custom Jest matcher function
payeesToHaveFavoriteStars
is implemented correctly. It properly validates the presence of favorite stars for the provided payee list in the rendered output and returns an appropriate pass/fail result object.
648-674
: Test case looks good!The test case
dropdown payee displays on new transaction with account list column
is implemented correctly. It properly sets up the component state for adding a new transaction, queries the rendered payee items from the dropdown, and makes appropriate assertions for payee names and favorite stars.
This fixes #3331. It changes the Suggested Payees section from
Bob
Dave
Ernie
to
Bob
Dave
Ernie
in cases where there are fewer than five favorites in the system.
It also adds tests, I could separate the tests from the bugfix, if people want to discuss the tests more.