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

fix: tree search expansion #501

Merged
merged 2 commits into from
Jun 10, 2022

Conversation

derrabauke
Copy link
Contributor

In case of only one root element in the scopes list, searching for another entry didn't reveal child elements correctly.

This MR contains two fixes:

  • fix the search for the scopes tree
  • trigger a refresh of the scopes index (tree) when storing new scopes

@derrabauke derrabauke requested a review from czosel June 8, 2022 11:42
@derrabauke derrabauke self-assigned this Jun 8, 2022
addon/components/tree.js Outdated Show resolved Hide resolved
@czosel czosel force-pushed the fix-tree-search-expansion branch from 84c94a6 to 6c7b889 Compare June 10, 2022 08:52
Storing new scopes didn't trigger an update of the scope index list.
@czosel czosel force-pushed the fix-tree-search-expansion branch from 6c7b889 to 5fc0354 Compare June 10, 2022 08:53
@czosel czosel merged commit 5eb804c into projectcaluma:main Jun 10, 2022
github-actions bot pushed a commit that referenced this pull request Jul 4, 2022
# [6.0.0](v5.1.0...v6.0.0) (2022-07-04)

### Bug Fixes

* adapt table hover style ([#465](#465)) ([c3338b5](c3338b5))
* allow to clear parent scope selection ([#464](#464)) ([b24dd06](b24dd06))
* handle case where engine is mounted under different name ([#476](#476)) ([533b3de](533b3de))
* tree search expansion ([#501](#501)) ([5eb804c](5eb804c))

### Features

* **emeisOptions:** action button label overrides ([#515](#515)) ([3d1bfce](3d1bfce))
* **emeisOptions:** add custom column option ([#516](#516)) ([1d88b42](1d88b42))
* **emeisOptions:** make "delete" and "deactivate" buttons visibility configurable ([#462](#462)) ([afc7ca4](afc7ca4))
* mark optional fields ([#507](#507)) ([51debd0](51debd0))
* **tree:** expand root only if its single ([#460](#460)) ([1ca9783](1ca9783))
* **users:** add 'isActive' filter radio buttons ([#510](#510)) ([67e6401](67e6401))

### BREAKING CHANGES

* **emeisOptions:** the emeis options object got restructured

* feat(emeisOptions): enable action button label overrides

* feat: accept functions as label overrides

to allow different labels for active/inactive models

* fix: remove incorrect `fn` lookup, minor refactoring

Co-authored-by: Christian Zosel <christian@zosel.ch>
@czosel
Copy link
Contributor

czosel commented Jul 4, 2022

🎉 This PR is included in version 6.0.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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants