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/#204 technique hover #322

Merged
merged 3 commits into from
Jul 20, 2021
Merged

Fix/#204 technique hover #322

merged 3 commits into from
Jul 20, 2021

Conversation

iguannalin
Copy link
Contributor

Fixed bug where the select techniques across parents / select sub-techniques with parent behavior on hover were not correct.

Only concern I have is that I've removed the line comparing the attackIDs of the current and highlighted techniques to see if it should be highlighted:
if (compare.attackID == compareTo.attackID) return true;
This was removed because instead of storing Technique in the highlightedTechniques, I'm now saving an array of the technique IDs, for faster lookup (and because the search component needs it as an array). I'm hoping that checking both the technique and tactic when the user hovers over a cell in the matrix should suffice.

…ed in the matrix with the tactic/parent selection behavior toggled
@iguannalin iguannalin self-assigned this Jul 16, 2021
@iguannalin iguannalin linked an issue Jul 16, 2021 that may be closed by this pull request
@isaisabel isaisabel changed the base branch from master to develop July 16, 2021 17:18
Copy link
Contributor

@isaisabel isaisabel left a comment

Choose a reason for hiding this comment

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

This fix does seem to fix the highlight behavior with "select sub-techniques with parent." However, there is another bug observed in that feature which was not fixed (but was probably introduced at the same time).

The tooltip for the parent also shows when the child is hovered, which isn't intended behavior:

image

Compare this to the behavior on master, where the tooltip for the parent isn't shown:

image

…odel called highlightedTechnique--which is the singular technique to differentiate the technique currently being hovered over vs. all techniques that are highlighted (to fix tooltip bug that was showing two tooltips)
Copy link
Contributor

@isaisabel isaisabel left a comment

Choose a reason for hiding this comment

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

Seems to fix the bug and definitely simplifies the isHighlighted code into a more understandable implementation. There is one case of an else if seeming unnecessary but it's fine to merge regardless.

@isaisabel isaisabel merged commit 1985779 into develop Jul 20, 2021
@clemiller clemiller deleted the fix/#204-technique-hover branch February 17, 2022 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consolidate Search and Multiselect Interfaces
2 participants