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

Temporarily hidden tiles reappear and the “Temporarily hidden” badge is still visible after deselecting an active tile #9472

Closed
wpdarren opened this issue Oct 8, 2024 · 5 comments
Labels
Module: Analytics Google Analytics module related issues P0 High priority Team M Issues for Squad 2 Type: Bug Something isn't working

Comments

@wpdarren
Copy link
Collaborator

wpdarren commented Oct 8, 2024

Bug Description

Reported during the Bug bash. Asana ticket here

This issue occurs when three audience tiles are visible on the dashboard. After hiding audience tiles in the dashboard, unselecting a tile that displays data causes one of the previously hidden tiles to reappear. The Audience selection panel also continues to display the “Temporarily hidden” badge for the tile, even though it is now visible.

Screenshots

image

temporarily-hidden-tile.mov

Steps to reproduce

  1. Enable Audience Segmentation.
  2. Select three audience tiles to be displayed in the dashboard.
  3. Ensure two tiles are in zero and partial data state so the Audience Tile Collecting Data tile is displayed with the "Temporarily hide" CTA.
  4. Click "Temporarily hide" for both tiles to hide them.
  5. Open the Audience selection panel and confirm that the "Temporarily hidden" badge is displayed.
  6. Unselect the tile that displays data and save the selection.
  7. Observe that one of the previously hidden tiles is displayed again.
  8. Observe that the Audience selection panel still displays the "Temporarily hidden" badge for the reappeared tile.

Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

  • When following the steps to reproduce, the "temporarily hidden" audience whose zero-data state tile becomes re-shown should have its "Temporarily hidden" badge removed in the Selection Panel.
  • The underlying "temporarily hidden" state for the audience should be cleared, so the tile does not automatically re-hide and have its badge restored if the tile with data is re-added to the selection.

Implementation Brief

  • Amend the saveSettings() callback in the AudienceSelectionPanel/Footer component.
    • In the conditional block that runs when saveAudienceSettings() has run without error:
      • Determine the list of configured audiences that are also hidden (i.e. have a corresponding entry in hiddenTileDismissedItems).
      • Compare the length of this list to the length of configuredAudiences.
      • If the lengths match, add the first configured audience's dismissed item key to the list of items that is passed to removeDismissedItems().

Test Coverage

  • Add coverage for the above changes to the tests for AudienceSelectionPanel.

QA Brief

  • Follow the steps to reproduce and verify the "temporarily hidden" audience whose zero-data state tile becomes re-shown has its "Temporarily hidden" badge removed in the Selection Panel.
  • Re-add the tile with data to the selection, save the selection, and verify the "Temporarily hidden" badge is not re-added to the above audience.

Changelog entry

  • Remove the “Temporarily hidden” badge when temporarily hidden tiles reappear with only a single tile visible.
@wpdarren wpdarren added Type: Bug Something isn't working P0 High priority Module: Analytics Google Analytics module related issues labels Oct 8, 2024
@ivonac4 ivonac4 added the Team M Issues for Squad 2 label Oct 10, 2024
@techanvil techanvil assigned techanvil and unassigned techanvil Oct 10, 2024
@hussain-t hussain-t assigned hussain-t and unassigned hussain-t Oct 10, 2024
@ankitrox ankitrox assigned ankitrox and unassigned ankitrox Oct 14, 2024
@nfmohit nfmohit self-assigned this Oct 14, 2024
@nfmohit
Copy link
Collaborator

nfmohit commented Oct 14, 2024

Thank you for drafting the IB, @ankitrox . However, I don't think the approach you've outlined matches the expectations in the ACs.

Reading the ACs, it sounds like a temporarily hidden audience tile re-appearing when there are no other audience tiles to display is an expected behaviour, and we should clear its temporarily hidden state in this case. @techanvil please let me know if my statement is not correct.

@ankitrox Could you re-consider the ACs and update the IB accordingly? Let's wait for a confirmation from @techanvil if required so that we're all on the same page. Thank you!

@nfmohit nfmohit assigned ankitrox and unassigned nfmohit Oct 14, 2024
@techanvil
Copy link
Collaborator

Thanks @nfmohit, your read of the ACs is correct and it is indeed expected that a hidden audience will reappear when there are no other tiles to display.

The IB should take the approach whereby, while saving the selection, we check to see if there are only hidden audiences remaining in the selection. If so, we should clear the hidden state for one of them.

@ankitrox
Copy link
Collaborator

@ivonac4 @techanvil Unassigning myself as I am not resourced for SK this and next week.

@ankitrox ankitrox removed their assignment Oct 22, 2024
@techanvil techanvil assigned techanvil and unassigned techanvil Oct 23, 2024
@nfmohit nfmohit self-assigned this Oct 24, 2024
@nfmohit
Copy link
Collaborator

nfmohit commented Oct 24, 2024

IB ✅

@mohitwp
Copy link
Collaborator

mohitwp commented Nov 6, 2024

QA Update ✅

  • Tested on dev environment.
  • Tested on latest environment and I'm able to reproduce issue.
  • Verified on dev environment issue is resolved.

Latest environment

Recording.1566.mp4

Dev environment

Recording.1567.mp4

@mohitwp mohitwp removed their assignment Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Module: Analytics Google Analytics module related issues P0 High priority Team M Issues for Squad 2 Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants