-
Notifications
You must be signed in to change notification settings - Fork 34
fix: DH-21744: Fix Advanced Filters in Pivots #2624
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
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -1141,6 +1141,136 @@ class IrisGrid extends Component<IrisGridProps, IrisGridState> { | |||||||||||||||||||||||||||||||||||||||||||
| { max: 50 } | ||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||||||||||||||||
| * Render an advanced filter menu element for a column | ||||||||||||||||||||||||||||||||||||||||||||
| * @param columnIndex The visible column index (used as key and for handlers) | ||||||||||||||||||||||||||||||||||||||||||||
| * @param modelColumn The model column index (used for filter/sort lookup) | ||||||||||||||||||||||||||||||||||||||||||||
| * @param style CSS positioning for the menu container | ||||||||||||||||||||||||||||||||||||||||||||
| * @param isShown Whether the menu is currently shown | ||||||||||||||||||||||||||||||||||||||||||||
| * @returns The advanced filter menu element, or null if column not found | ||||||||||||||||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||||||||||||||||
| renderAdvancedFilterMenu( | ||||||||||||||||||||||||||||||||||||||||||||
| columnIndex: VisibleIndex, | ||||||||||||||||||||||||||||||||||||||||||||
| modelColumn: ModelIndex, | ||||||||||||||||||||||||||||||||||||||||||||
| style: CSSProperties, | ||||||||||||||||||||||||||||||||||||||||||||
| isShown: boolean | ||||||||||||||||||||||||||||||||||||||||||||
| ): ReactElement | null { | ||||||||||||||||||||||||||||||||||||||||||||
| const { model } = this.props; | ||||||||||||||||||||||||||||||||||||||||||||
| const { advancedFilters, formatter } = this.state; | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| const column = model.columns[modelColumn]; | ||||||||||||||||||||||||||||||||||||||||||||
| if (column == null) { | ||||||||||||||||||||||||||||||||||||||||||||
| log.warn( | ||||||||||||||||||||||||||||||||||||||||||||
| `Column does not exist at index ${modelColumn} for column array of length ${model.columns.length}` | ||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||
| return null; | ||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| const advancedFilter = advancedFilters.get(modelColumn); | ||||||||||||||||||||||||||||||||||||||||||||
| const { options: advancedFilterOptions } = advancedFilter || {}; | ||||||||||||||||||||||||||||||||||||||||||||
| const sort = TableUtils.getSortForColumn(model.sort, column.name); | ||||||||||||||||||||||||||||||||||||||||||||
| const sortDirection = sort ? sort.direction : null; | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| if (!isSortDirection(sortDirection)) { | ||||||||||||||||||||||||||||||||||||||||||||
| throw new Error(`Invalid sort direction: ${sortDirection}`); | ||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| return ( | ||||||||||||||||||||||||||||||||||||||||||||
| <div | ||||||||||||||||||||||||||||||||||||||||||||
| key={columnIndex} | ||||||||||||||||||||||||||||||||||||||||||||
| className="advanced-filter-menu-container" | ||||||||||||||||||||||||||||||||||||||||||||
| style={style} | ||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||
| <Popper | ||||||||||||||||||||||||||||||||||||||||||||
| className="advanced-filter-menu-popper" | ||||||||||||||||||||||||||||||||||||||||||||
| onEntered={this.getAdvancedMenuOpenedHandler(columnIndex)} | ||||||||||||||||||||||||||||||||||||||||||||
| onExited={() => { | ||||||||||||||||||||||||||||||||||||||||||||
| this.handleAdvancedMenuClosed(columnIndex); | ||||||||||||||||||||||||||||||||||||||||||||
| }} | ||||||||||||||||||||||||||||||||||||||||||||
| isShown={isShown} | ||||||||||||||||||||||||||||||||||||||||||||
| interactive | ||||||||||||||||||||||||||||||||||||||||||||
| closeOnBlur | ||||||||||||||||||||||||||||||||||||||||||||
| options={{ | ||||||||||||||||||||||||||||||||||||||||||||
| positionFixed: true, | ||||||||||||||||||||||||||||||||||||||||||||
| }} | ||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||
| {this.getCachedAdvancedFilterMenuActions( | ||||||||||||||||||||||||||||||||||||||||||||
| model, | ||||||||||||||||||||||||||||||||||||||||||||
| column, | ||||||||||||||||||||||||||||||||||||||||||||
| advancedFilterOptions, | ||||||||||||||||||||||||||||||||||||||||||||
| sortDirection, | ||||||||||||||||||||||||||||||||||||||||||||
| formatter | ||||||||||||||||||||||||||||||||||||||||||||
| )} | ||||||||||||||||||||||||||||||||||||||||||||
| </Popper> | ||||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||||||||||||||||
| * Renders the advanced filter button for a column in the filter bar. | ||||||||||||||||||||||||||||||||||||||||||||
| * @param columnIndex The visible column index | ||||||||||||||||||||||||||||||||||||||||||||
| * @param modelColumn The model column index | ||||||||||||||||||||||||||||||||||||||||||||
| * @param buttonCoordinates The x,y coordinates for the button | ||||||||||||||||||||||||||||||||||||||||||||
| * @returns The filter button element or null if not visible | ||||||||||||||||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||||||||||||||||
| renderAdvancedFilterButton( | ||||||||||||||||||||||||||||||||||||||||||||
| columnIndex: VisibleIndex, | ||||||||||||||||||||||||||||||||||||||||||||
| modelColumn: ModelIndex, | ||||||||||||||||||||||||||||||||||||||||||||
| buttonCoordinates: { x: number; y: number } | ||||||||||||||||||||||||||||||||||||||||||||
| ): ReactElement | null { | ||||||||||||||||||||||||||||||||||||||||||||
| const { advancedFilters, hoverAdvancedFilter, focusedFilterBarColumn } = | ||||||||||||||||||||||||||||||||||||||||||||
| this.state; | ||||||||||||||||||||||||||||||||||||||||||||
| const advancedFilter = advancedFilters.get(modelColumn); | ||||||||||||||||||||||||||||||||||||||||||||
| const isFilterSet = advancedFilter != null; | ||||||||||||||||||||||||||||||||||||||||||||
| const isFilterVisible = | ||||||||||||||||||||||||||||||||||||||||||||
| columnIndex === hoverAdvancedFilter || | ||||||||||||||||||||||||||||||||||||||||||||
| columnIndex === focusedFilterBarColumn || | ||||||||||||||||||||||||||||||||||||||||||||
| isFilterSet; | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| if (!isFilterVisible) { | ||||||||||||||||||||||||||||||||||||||||||||
| return null; | ||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| const { x, y } = buttonCoordinates; | ||||||||||||||||||||||||||||||||||||||||||||
| const style: CSSProperties = { | ||||||||||||||||||||||||||||||||||||||||||||
| position: 'absolute', | ||||||||||||||||||||||||||||||||||||||||||||
| top: y, | ||||||||||||||||||||||||||||||||||||||||||||
| left: x, | ||||||||||||||||||||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| return ( | ||||||||||||||||||||||||||||||||||||||||||||
| <div | ||||||||||||||||||||||||||||||||||||||||||||
| className="advanced-filter-button-container" | ||||||||||||||||||||||||||||||||||||||||||||
| key={columnIndex} | ||||||||||||||||||||||||||||||||||||||||||||
| style={style} | ||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||
| <Button | ||||||||||||||||||||||||||||||||||||||||||||
| kind="ghost" | ||||||||||||||||||||||||||||||||||||||||||||
| className={classNames('btn-link-icon advanced-filter-button', { | ||||||||||||||||||||||||||||||||||||||||||||
| 'filter-set': isFilterSet, | ||||||||||||||||||||||||||||||||||||||||||||
| })} | ||||||||||||||||||||||||||||||||||||||||||||
| onClick={() => { | ||||||||||||||||||||||||||||||||||||||||||||
| this.setState({ shownAdvancedFilter: columnIndex }); | ||||||||||||||||||||||||||||||||||||||||||||
| }} | ||||||||||||||||||||||||||||||||||||||||||||
| onContextMenu={event => { | ||||||||||||||||||||||||||||||||||||||||||||
| this.grid?.handleContextMenu(event); | ||||||||||||||||||||||||||||||||||||||||||||
| }} | ||||||||||||||||||||||||||||||||||||||||||||
| onMouseEnter={() => { | ||||||||||||||||||||||||||||||||||||||||||||
| this.setState({ hoverAdvancedFilter: columnIndex }); | ||||||||||||||||||||||||||||||||||||||||||||
| }} | ||||||||||||||||||||||||||||||||||||||||||||
| onMouseLeave={() => { | ||||||||||||||||||||||||||||||||||||||||||||
| this.setState({ hoverAdvancedFilter: null }); | ||||||||||||||||||||||||||||||||||||||||||||
| }} | ||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||
| <div className="fa-layers"> | ||||||||||||||||||||||||||||||||||||||||||||
| <FontAwesomeIcon icon={dhFilterFilled} className="filter-solid" /> | ||||||||||||||||||||||||||||||||||||||||||||
| <FontAwesomeIcon icon={vsFilter} className="filter-light" /> | ||||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||||
| </Button> | ||||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| getCachedOptionItems = memoize( | ||||||||||||||||||||||||||||||||||||||||||||
| ( | ||||||||||||||||||||||||||||||||||||||||||||
| isChartBuilderAvailable: boolean, | ||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -2506,16 +2636,19 @@ class IrisGrid extends Component<IrisGridProps, IrisGridState> { | |||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| focusFilterBar(column: VisibleIndex): void { | ||||||||||||||||||||||||||||||||||||||||||||
| const { movedColumns } = this.state; | ||||||||||||||||||||||||||||||||||||||||||||
| const { model } = this.props; | ||||||||||||||||||||||||||||||||||||||||||||
| const { columnCount } = model; | ||||||||||||||||||||||||||||||||||||||||||||
| const modelColumn = GridUtils.getModelIndex(column, movedColumns); | ||||||||||||||||||||||||||||||||||||||||||||
| const modelColumn = this.getModelColumn(column); | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| if ( | ||||||||||||||||||||||||||||||||||||||||||||
| // Negative indexes are valid as long as they have a model column | ||||||||||||||||||||||||||||||||||||||||||||
| const isOutOfBounds = column >= 0 && columnCount <= column; | ||||||||||||||||||||||||||||||||||||||||||||
| const isInvalid = | ||||||||||||||||||||||||||||||||||||||||||||
| column == null || | ||||||||||||||||||||||||||||||||||||||||||||
| columnCount <= column || | ||||||||||||||||||||||||||||||||||||||||||||
| !model.isFilterable(modelColumn) | ||||||||||||||||||||||||||||||||||||||||||||
| ) { | ||||||||||||||||||||||||||||||||||||||||||||
| isOutOfBounds || | ||||||||||||||||||||||||||||||||||||||||||||
| modelColumn == null || | ||||||||||||||||||||||||||||||||||||||||||||
| !model.isFilterable(modelColumn); | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| if (isInvalid) { | ||||||||||||||||||||||||||||||||||||||||||||
| this.setState({ focusedFilterBarColumn: null }); | ||||||||||||||||||||||||||||||||||||||||||||
| return; | ||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -4636,7 +4769,6 @@ class IrisGrid extends Component<IrisGridProps, IrisGridState> { | |||||||||||||||||||||||||||||||||||||||||||
| loadingCancelShown, | ||||||||||||||||||||||||||||||||||||||||||||
| loadingBlocksGrid, | ||||||||||||||||||||||||||||||||||||||||||||
| shownColumnTooltip, | ||||||||||||||||||||||||||||||||||||||||||||
| hoverAdvancedFilter, | ||||||||||||||||||||||||||||||||||||||||||||
| shownAdvancedFilter, | ||||||||||||||||||||||||||||||||||||||||||||
| hoverSelectColumn, | ||||||||||||||||||||||||||||||||||||||||||||
| quickFilters, | ||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -4793,7 +4925,7 @@ class IrisGrid extends Component<IrisGridProps, IrisGridState> { | |||||||||||||||||||||||||||||||||||||||||||
| if (metrics && isFilterBarShown) { | ||||||||||||||||||||||||||||||||||||||||||||
| const metricState = this.getMetricState(); | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| // Advanced Filter buttons | ||||||||||||||||||||||||||||||||||||||||||||
| // Advanced Filter buttons for visible columns | ||||||||||||||||||||||||||||||||||||||||||||
| const { visibleColumns } = metrics; | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| for (let i = 0; i < visibleColumns.length; i += 1) { | ||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -4811,66 +4943,37 @@ class IrisGrid extends Component<IrisGridProps, IrisGridState> { | |||||||||||||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||||||||||||||
| : null; | ||||||||||||||||||||||||||||||||||||||||||||
| if (buttonCoordinates != null) { | ||||||||||||||||||||||||||||||||||||||||||||
| const { x, y } = buttonCoordinates; | ||||||||||||||||||||||||||||||||||||||||||||
| const style: CSSProperties = { | ||||||||||||||||||||||||||||||||||||||||||||
| position: 'absolute', | ||||||||||||||||||||||||||||||||||||||||||||
| top: y, | ||||||||||||||||||||||||||||||||||||||||||||
| left: x, | ||||||||||||||||||||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||||||||||||||||||||
| const advancedFilter = advancedFilters.get(modelColumn); | ||||||||||||||||||||||||||||||||||||||||||||
| const isFilterSet = advancedFilter != null; | ||||||||||||||||||||||||||||||||||||||||||||
| const isFilterVisible = | ||||||||||||||||||||||||||||||||||||||||||||
| columnIndex === hoverAdvancedFilter || | ||||||||||||||||||||||||||||||||||||||||||||
| columnIndex === focusedFilterBarColumn || | ||||||||||||||||||||||||||||||||||||||||||||
| isFilterSet; | ||||||||||||||||||||||||||||||||||||||||||||
| const element = ( | ||||||||||||||||||||||||||||||||||||||||||||
| <div | ||||||||||||||||||||||||||||||||||||||||||||
| className={classNames('advanced-filter-button-container', { | ||||||||||||||||||||||||||||||||||||||||||||
| hidden: !isFilterVisible, | ||||||||||||||||||||||||||||||||||||||||||||
| })} | ||||||||||||||||||||||||||||||||||||||||||||
| key={columnIndex} | ||||||||||||||||||||||||||||||||||||||||||||
| style={style} | ||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||
| {isFilterVisible && ( | ||||||||||||||||||||||||||||||||||||||||||||
| <Button | ||||||||||||||||||||||||||||||||||||||||||||
| kind="ghost" | ||||||||||||||||||||||||||||||||||||||||||||
| className={classNames( | ||||||||||||||||||||||||||||||||||||||||||||
| 'btn-link-icon advanced-filter-button', | ||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||
| 'filter-set': isFilterSet, | ||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
| )} | ||||||||||||||||||||||||||||||||||||||||||||
| onClick={() => { | ||||||||||||||||||||||||||||||||||||||||||||
| this.setState({ shownAdvancedFilter: columnIndex }); | ||||||||||||||||||||||||||||||||||||||||||||
| }} | ||||||||||||||||||||||||||||||||||||||||||||
| onContextMenu={event => { | ||||||||||||||||||||||||||||||||||||||||||||
| this.grid?.handleContextMenu(event); | ||||||||||||||||||||||||||||||||||||||||||||
| }} | ||||||||||||||||||||||||||||||||||||||||||||
| onMouseEnter={() => { | ||||||||||||||||||||||||||||||||||||||||||||
| this.setState({ hoverAdvancedFilter: columnIndex }); | ||||||||||||||||||||||||||||||||||||||||||||
| }} | ||||||||||||||||||||||||||||||||||||||||||||
| onMouseLeave={() => { | ||||||||||||||||||||||||||||||||||||||||||||
| this.setState({ hoverAdvancedFilter: null }); | ||||||||||||||||||||||||||||||||||||||||||||
| }} | ||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||
| <div className="fa-layers"> | ||||||||||||||||||||||||||||||||||||||||||||
| <FontAwesomeIcon | ||||||||||||||||||||||||||||||||||||||||||||
| icon={dhFilterFilled} | ||||||||||||||||||||||||||||||||||||||||||||
| className="filter-solid" | ||||||||||||||||||||||||||||||||||||||||||||
| /> | ||||||||||||||||||||||||||||||||||||||||||||
| <FontAwesomeIcon | ||||||||||||||||||||||||||||||||||||||||||||
| icon={vsFilter} | ||||||||||||||||||||||||||||||||||||||||||||
| className="filter-light" | ||||||||||||||||||||||||||||||||||||||||||||
| /> | ||||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||||
| </Button> | ||||||||||||||||||||||||||||||||||||||||||||
| )} | ||||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||||
| filterBar.push( | ||||||||||||||||||||||||||||||||||||||||||||
| this.renderAdvancedFilterButton( | ||||||||||||||||||||||||||||||||||||||||||||
| columnIndex, | ||||||||||||||||||||||||||||||||||||||||||||
| modelColumn, | ||||||||||||||||||||||||||||||||||||||||||||
| buttonCoordinates | ||||||||||||||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||
| filterBar.push(element); | ||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| // Advanced filter buttons for columns at negative indexes | ||||||||||||||||||||||||||||||||||||||||||||
| // Models can expose columns at negative indexes (e.g., model.columns[-1]) | ||||||||||||||||||||||||||||||||||||||||||||
| for (let i = -1; model.columns[i] != null; i -= 1) { | ||||||||||||||||||||||||||||||||||||||||||||
| if (!model.isFilterable(i)) { | ||||||||||||||||||||||||||||||||||||||||||||
| // eslint-disable-next-line no-continue | ||||||||||||||||||||||||||||||||||||||||||||
| continue; | ||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+4957
to
+4963
|
||||||||||||||||||||||||||||||||||||||||||||
| // Advanced filter buttons for columns at negative indexes | |
| // Models can expose columns at negative indexes (e.g., model.columns[-1]) | |
| for (let i = -1; model.columns[i] != null; i -= 1) { | |
| if (!model.isFilterable(i)) { | |
| // eslint-disable-next-line no-continue | |
| continue; | |
| } | |
| // Helper for advanced filter buttons for columns at negative indexes. | |
| // Models can expose columns at negative indexes (e.g., model.columns[-1]). | |
| const getFilterableNegativeColumnIndices = (): number[] => { | |
| const indices: number[] = []; | |
| for (let i = -1; model.columns[i] != null; i -= 1) { | |
| if (model.isFilterable(i)) { | |
| indices.push(i); | |
| } | |
| } | |
| return indices; | |
| }; | |
| // Advanced filter buttons for columns at negative indexes | |
| for (const i of getFilterableNegativeColumnIndices()) { |
Copilot
AI
Feb 20, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change adds new behavior to render advanced-filter buttons/menus for negative column indices (when models expose columns[-1], etc.), but the existing IrisGrid tests only cover the default behavior where negative indices return null coordinates. It would be good to add a test that stubs a metricCalculator implementation returning coordinates for a negative index and verifies the button/menu render and can be shown/hidden correctly for that negative column.
Uh oh!
There was an error while loading. Please reload this page.