Skip to content
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

bug: SuggestionList prop types are unused and outdated #1659

Closed
rvanlaarhoven opened this issue Jul 1, 2022 · 2 comments
Closed

bug: SuggestionList prop types are unused and outdated #1659

rvanlaarhoven opened this issue Jul 1, 2022 · 2 comments
Labels
bug Something isn't working released status:confirmed Described issue has been reproduced by the repo maintainer

Comments

@rvanlaarhoven
Copy link
Contributor

Describe the bug

The SuggestionItemProps and SuggestionListProps are both outdated and unused in their components. This makes it difficult to extend the functionality with our own implementation and ensure they still align on future releases.

The SuggestionList (defined here) does not use the SuggestionListProps. The props in this component also don't match that type completely. E.g. Several props like currentTrigger and selectionEnd are used in the component, but not defined in the type.

The SuggestionItem (defined here) has the same problem.

Expected behavior

The types should match their components and be used in those components to the ensure stability in future releases and allow users to safely extend this functionality.

Package version

  • stream-chat-react: 9.1.4
@rvanlaarhoven rvanlaarhoven added bug Something isn't working status: unconfirmed labels Jul 1, 2022
@petyosi petyosi added status:confirmed Described issue has been reproduced by the repo maintainer and removed status: unconfirmed labels Jul 28, 2022
petyosi added a commit that referenced this issue Jul 28, 2022
@petyosi
Copy link
Contributor

petyosi commented Jul 28, 2022

Agreed, these are not perfect. The autocomplete textarea has not been migrated to typescript (it's, in fact, a fork of a semi-dormant project) - we've been looking into this for a while.

In the meantime, I updated the types we export.

github-actions bot pushed a commit that referenced this issue Jul 29, 2022
# [9.3.0](v9.2.0...v9.3.0) (2022-07-29)

### Bug Fixes

* scroll to bottom on new message notification click after message list pagination ([#1689](#1689)) ([d8f4bc5](d8f4bc5))
* update types for suggestions ([#1691](#1691)) ([bb7442c](bb7442c)), closes [#1659](#1659)

### Features

* **message-status:** extendable user information in read-by tooltip ([#1670](#1670)) ([902029a](902029a))
@petyosi
Copy link
Contributor

petyosi commented Jul 29, 2022

🎉 This issue has been resolved in version 9.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released status:confirmed Described issue has been reproduced by the repo maintainer
Projects
None yet
Development

No branches or pull requests

2 participants