-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Replace usage of deprecated Button in Autocomplete with new Button component #4561
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
|
WalkthroughThe changes update the autocomplete components in the desktop client. The modifications include refactoring import statements to use a centralized component library for standardized components such as Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (6)
🪧 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 (
|
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
🧹 Nitpick comments (1)
packages/desktop-client/src/components/autocomplete/Autocomplete.tsx (1)
466-468
: Remove console.log statements before merging.These debug statements should be removed before the PR is finalized.
- console.log('onBlur', e); - console.log('closeOnBlur', closeOnBlur); - console.log('clearOnBlur', clearOnBlur);
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
upcoming-release-notes/4561.md
is excluded by!**/*.md
📒 Files selected for processing (2)
packages/desktop-client/src/components/autocomplete/Autocomplete.tsx
(6 hunks)packages/desktop-client/src/components/autocomplete/PayeeAutocomplete.tsx
(3 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (5)
- GitHub Check: build (macos-latest)
- GitHub Check: build (windows-latest)
- GitHub Check: build (ubuntu-latest)
- GitHub Check: Wait for Netlify build to finish
- GitHub Check: Analyze
🔇 Additional comments (8)
packages/desktop-client/src/components/autocomplete/Autocomplete.tsx (5)
14-15
: Good job updating component imports.The imports have been correctly updated to use the centralized component library, which aligns with the project's goal of standardizing component usage.
Also applies to: 18-18
258-258
: Good addition of itemsViewRef.Adding this ref will help manage the dropdown items view and improve interaction handling.
473-481
: Good improvement to blur handling logic.This change prevents the dropdown from closing when users interact with dropdown items, which improves the user experience.
605-612
: Good implementation of dropdown items view.Wrapping the items in a View component with the itemsViewRef connects the blur handling logic with the rendered items, enabling the improved interaction.
639-639
: Correctly updated Button prop from type to variant.This change aligns with the new Button component API.
packages/desktop-client/src/components/autocomplete/PayeeAutocomplete.tsx (3)
16-16
: Good job updating Button import.The import has been correctly updated to use the centralized component library.
451-457
: Correctly updated Button props.The
type
prop has been changed tovariant
andonClick
toonPress
to align with the new Button component API.
462-465
: Correctly updated Button props.The
variant
andonPress
props are correctly used here as well, maintaining consistency across the component.
After this PR, we can delete the deprecated Button component 🎉