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

Upgrade realization filtering #741

Merged
merged 42 commits into from
Nov 4, 2024

Conversation

jorgenherje
Copy link
Collaborator

@jorgenherje jorgenherje commented Oct 2, 2024

This PR upgrades the RealizationFilter, by including a filter for each selected ensemble.

Upgrades to Realization Filter:

  • Realization filter drawer with one ensemble realization filter component for each selected ensemble
  • Can filter by parameter value, i.e. select continuous or discrete parameters (continuous and discrete), and select value range/discrete values to get realizations which matches these selections (intersection of all matches), i.e. &&-logic.
    • Slider to select range for continuous parameter values
    • Picker to select set of discrete values to match
  • Visualization of which realizations will be selected based on the current filter selections - display component.

SmartNodeSelector:

  • Provide valid state with the selected tags for onChange data
  • Fix selected nodeIds to be correct when using wildcard
  • Prevent onChange to trigger when clicking outside of components

The PR closes the following issues:

Closes: #690
Closes: #691
Closes: #321
Closes: #722

Look into new implementation, and sub-components etc.
Add possibility to select parameter values and create subset of valid realization numbers for the intersection of selections
@jorgenherje jorgenherje added the enhancement New feature or request label Oct 2, 2024
@jorgenherje jorgenherje self-assigned this Oct 2, 2024
jorgenherje and others added 25 commits October 3, 2024 13:46
Component for visualizing and selecting realization numbers.
- Remove unused AddItemButton component
- Add some svg icons for SmartNodeSelector
Use circle divs row by row, as discussed in standup
Replace dynamic value with hard coded px values compact vs non-compact visualization
Start: Move filter state logic to parent component for "save all"/"discard all" functionality
Handle states for initial picker tags and smart node selector tags for correct visualization, when previous internal states are moved out to parent component
- When active: Hidden vs conditional rendering to preserve states
- When not active, do not render filter details (will reset invalid smartNodeSelector tags)
- Fix minor issues with smartNodeSelector
- To prevent complicated state handling of smartNodeSelector tags and parameter list, change functionality s.t. smartNodeSelector is used as a selector, and add button is included to add these active selections to the list of parameters below.
- Fix hover info on unavailable reals in real number display
@jorgenherje jorgenherje marked this pull request as ready for review October 24, 2024 14:24
@jorgenherje jorgenherje requested review from rubenthoms, HansKallekleiv, Anders2303 and anders-kiaer and removed request for rubenthoms October 25, 2024 11:11
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.

Nice work. One small suggestion given offline regarding if we should show tooltip also in the default smaller rendered ensemble circles. Overall LGTM. 👍

@jorgenherje jorgenherje force-pushed the improve-realization-filter branch from 4aee918 to 3ddb859 Compare October 28, 2024 09:56
@jorgenherje jorgenherje merged commit cc98040 into equinor:main Nov 4, 2024
7 checks passed
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
5 participants