continue
                                
                                 continue copied to clipboard
                                
                                    continue copied to clipboard
                            
                            
                            
                        feat: Add custom icon support for context providers
Description
This PR adds support for custom icons in context providers. It introduces a new IconName type and extends the ContextProviderDescription and CustomContextProvider interfaces to include an optional icon property. The changes allow for more flexible and visually appealing context provider representations in the UI.
Key Changes
- Added IconNametype incore/config/types.tsandcore/index.d.ts
- Extended ContextProviderDescriptionandCustomContextProviderinterfaces to includeiconproperty
- Updated CustomContextProviderClassto use the newiconproperty
- Modified MentionList.tsxto handle custom icons in the dropdown
Checklist
- [x] The base branch of this PR is dev, rather thanmain
- [x] The relevant docs, if any, have been updated or created
Testing
To test this change:
- Create a custom context provider with an iconproperty
- Verify that the specified icon appears correctly in the UI dropdown
- Test with both built-in icon names and custom icon URLs
- Ensure fallback behavior works as expected when an invalid icon is specified