Git Product home page Git Product logo

intelligent-tree-select's People

Contributors

dependabot[bot] avatar filip-kopecky avatar kevde avatar lachope avatar lecbyjak avatar ledsoft avatar vojtechlunak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

intelligent-tree-select's Issues

Replace copy&pasted react-select code with a dependency

The component uses copy&pasted code of React Select v1. This hinders updates, as React Select has been completely rewritten and is now at version 5.
The goal is to remove the copy&pasted code and replace it with the React Select component usage.

Accidental error during term selection in the tree

Accidentally, while selecting terms in the tree, I get the following error.

index.js:2177 Warning: Can't call setState (or forceUpdate) on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.
in TooltipItem (at resultItem.js:104)
in div (at resultItem.js:91)
in ResultItem (created by Connect(ResultItem))
in Connect(ResultItem) (at App.js:296)

Support React 18

As a developer, I want to use the tree select in applications using React 18. Currently, the library's peer dependency on React is restricted to 17.x.x.

New option form doesn't work properly

The "Create new option" form doesn't work at all.

Here are couple of problems I have encountered.

  1. Selecting a term from the dropdown doesn't actually select the term
  2. Items don't fit in the dropdown causing overlapping individual items
  3. The tree structure is not present, all items are in one level without the possibility of expanding nor collapsing

Here is an image showing one of the issues:
image

Remove dependency on reactstrap

As a user, I don't want the component to have reactstrap as a dependency in case I am using another bootstrap-based library (like react-bootstrap).

Therefore, all reactstrap component references should be extracted and either replaced with pure bootstrap or configurable alternatives.

Support options with multiple parents

As a developer, I need the tree component to be able to display options with multiple parents. That is, an option would be displayed in more than one (sub)trees.

Changed options don't get the component updated

The component does not get updated the list of options. When rerendered and the list size does not change, the list of options remains the same.

This manifestated in TermIt, when editing a term and showing the available types to pick from - switching between "cs" and "en" does not update the list.

Submit of 'create new option' accidentally fails.

Accidentally, when creating a new term, clicking the submit button fails (nothing happens, no action is triggered). One of the failing scenario was - fill all term details except of term children and click submit.

Turn off caching of options when name is not set

When the 'name' attribute is assigned, the options are cached, this is correct.
When the 'name' attribute is not assigned, the options are still cached, but into an empty storage. This is not correct

Proper tooltip implementation

As a part of major rewrite and simplification of the component, several features have been removed. Tooltip is one of them, as its content was difficult to read and it was often displayed in incorrect places.

However, a tooltip showing details of an option is a useful feature.

  • Its implementation should be independent of reactstrap or other React implementations of Bootstrap.
  • The contents of the tooltip should be configurable.

Allow using a function for label retrieval

Currently, the labelKey property has to be a string representing the name of the label attribute. For various reasons (e.g., support for localized labels), it would be useful to be able to specify a function to be used for label retrieval.

npm start Parse error

npm start produces Parse error:

.../src/main/webapp/node_modules/intelligent-tree-select/lib/App.css:1
.result-item{
^
ParseError: Unexpected token

Expanded prop is not working

In the previous version (before conversion from react-select v1 to v5), the expanded prop forced the tree to be fully expanded. This behaviour is no longer available

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.