-
-
Notifications
You must be signed in to change notification settings - Fork 909
feat: add semantic for suggestion & remove redundant 'Enter' to trigger the submit logic & onSelect add selectedOptions params #1406
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
base: feature
Are you sure you want to change the base?
Conversation
…o fix_attachments
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary of ChangesHello @kimteayon, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request focuses on enhancing the user experience and developer flexibility across several core UI components. It introduces more granular control over file uploads and image previews, refines keyboard interaction handling in text input areas, and significantly upgrades the suggestion component with semantic styling and improved event callbacks. These changes aim to make the components more robust, customizable, and easier to integrate, while also ensuring documentation is up-to-date with the latest features and usage patterns. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
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.
Code Review
This pull request introduces several enhancements and refactorings across the attachments, file-card, sender, and suggestion components. Key improvements include better handling of onKeyDown events in Sender components, allowing callbacks to prevent default behavior, and enriching the onSelect callback for Suggestion with more detailed information. Documentation for Attachments and Suggestion has been updated to reflect new props and clarified existing ones. Additionally, the FileCard component's image preview logic has been streamlined, and a new semantic demo for Suggestion has been added. Overall, these changes improve the flexibility, type safety, and clarity of the components.
size-limit report 📦
|
Bundle ReportChanges will decrease total bundle size by 1.23MB (-29.54%) ⬇️. This is within the configured threshold ✅ Detailed changes
ℹ️ *Bundle size includes cached data from a previous commit Affected Assets, Files, and Routes:view changes for bundle: x-markdown-array-pushAssets Changed:
|
…o feat-suggestion
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## feature #1406 +/- ##
===========================================
- Coverage 94.10% 94.03% -0.07%
===========================================
Files 140 140
Lines 3869 3859 -10
Branches 1092 1085 -7
===========================================
- Hits 3641 3629 -12
- Misses 225 227 +2
Partials 3 3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|

中文版模板 / Chinese template
🤔 This is a ...
🔗 Related Issues
💡 Background and Solution
📝 Change Log
Enter触发事件,修复onSubmit方法多次执行的问题,onSelect方法新增selectedOptions完整数据返回,同时对选项的实现使用useMergedState进行了重构