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

SmartNodeSelector : Extended property state updates #151

Merged

Conversation

rubenthoms
Copy link
Collaborator

Changes to data and delimiter are considered now and cause the component to update.

Copy link
Collaborator

@anders-kiaer anders-kiaer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor suggestions only to consider - otherwise LGTM.

Comment on lines 225 to 226
let hasError = false;
let error = "";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let hasError = false;
let error = "";
let error;

CHANGELOG.md Outdated
- [#140](https://github.com/equinor/webviz-core-components/pull/140) - Improved styling of the `Select` component.
- [#145](https://github.com/equinor/webviz-core-components/pull/145) - Added wrapper components for typically used Dash components (Dropdown, Slider, etc) with additional styling.
- [#148](https://github.com/equinor/webviz-core-components/pull/148) - Changed default value of `numSecondsUntilSuggestionsAreShown` to 0.5 in `SmartNodeSelector` component.
- [#151](https://github.com/equinor/webviz-core-components/pull/151) - `SmartNodeSelector`: Changes to `data` and `delimiter` props are considered now and cause the component to update.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There were quite some changes to this file. Change to only adding the 151-entry, and instead consider if we want to enforce further style rules on CHANGELOG.md in separate issue/PR?

});
} catch (e) {
this.treeData = null;
hasError = true;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
hasError = true;

Comment on lines 249 to 248
hasError: hasError,
error: error,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
hasError: hasError,
error: error,
hasError: error !== undefined,
error: error || "",

@rubenthoms rubenthoms force-pushed the extend-property-state-updates branch from 8178c01 to c55287b Compare June 25, 2021 12:28
@rubenthoms rubenthoms merged commit 3a5cfc8 into equinor:master Jun 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants