aequos-solutions / modern-data-visualizer

Documentation for the Modern Data Visualizer solution
https://aequos-solutions.github.io/modern-data-visualizer/
7 stars 7 forks source link

[BUG] Taxonomy Filter parent term not bolded when searching for child term #66

Closed ghost closed 1 year ago

ghost commented 1 year ago

Version used Ex: 1.4.0

Describe the bug When using a taxonomy filter with multi-level terms, if you click a child term the parent term is bolded. If you use the taxonomy filter search box to search for a child term (level 2 or 3, for example), the parent term is not bolded.

To Reproduce Steps to reproduce the behavior:

  1. Configure a taxonomy filter with a filter search box enabled
  2. Search for a level 2 or 3 term using the filter search box
  3. Click on the search result

Expected behavior The level 1 term is bolded

Screenshots "America" was bolded when "North & Central America" was clicked image

Searching for a term image

After clicking searched term (note AFRICA is not bolded). If I expand 'AFRICA' first, to view the searched term, then search for the term then AFRICA is bolded. image

Desktop (please complete the following information):

Additional context It appears that if you view a term hierarchy in the UI (expand the level 1/level 2/level 3 terms, then use search), the term is highlighted correctly.

Laul0 commented 1 year ago

Hi @randhawaryan,

Thank you for your feedback. We noted it well and will try to reproduce the same behavior. We will keep you in touch.

Thx

Laul0 commented 1 year ago

Hi @randhawaryan,

We tried on our side to reproduce the issue with the 1.4.1 version of MDV - the bug was not reproduced. Did you try the 1.4.1 version of MDV? Can you reproduce the same issue? If it is the case, can you provide us the configuration of the Taxonomy filter?

Thank you

ghost commented 1 year ago

Hi @Laul0 - We are using version 1.4.1 and can still see the issue. I did notice that the issue only appears before you have viewed the term in the filter UI.

Steps:

  1. I created a new page and added a new "aequos - Data Filters" web part. I kept all the default configurations - choose any display name and filter field (not connected to any data, but doesn't matter since it's a static filter). Select a taxonomy term set with at least 2 levels of terms image

image

  1. Expand the term set so you can see the level 1 (L1) terms. Do not expand any L1 terms. image

  2. Search for a level 2 (L2) term. I am searching for AFRICA, SOUTH OF SAHARA image

  3. Click the search result to select the term image

Note that the term "AFRICA" is not bolded.

If I repeat steps 2-4 but I first view "AFRICA, SOUTH OF SAHARA" in the UI. Then the term is bolded. image

image

image "AFRICA" and the L2 term "AFRICA, SOUTH OF SAHARA" are bolded.

ghost commented 1 year ago

Note - after performing the steps above. If I refresh the page in the same browser window and repeat my steps 1) Without expanding anything, search for "AFRICA, SOUTH OF SAHARA", the bolding works as expected. If I try the same thing in a new tab, the bolding does not work. It looks like the bolding isn't working if the term sets aren't 'loaded'?

Laul0 commented 1 year ago

Hi @randhawaryan,

Thank you for the information. We will try again on our side and keep you in touch shortly

Laul0 commented 1 year ago

Hi,

This issue was fixed at release 1.5.1. Thank you for your feedback.

Feel free to reopen this issue if the problem persists.