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(ia): refresh on audience setup complete #3839

Open
wants to merge 775 commits into
base: trunk
Choose a base branch
from

Conversation

miguelpeixe
Copy link
Member

@miguelpeixe miguelpeixe commented Mar 17, 2025

All Submissions:

Changes proposed in this Pull Request:

1205919985867982-as-1209464932054174/f

After the audience setup, a full page refresh is required. The current approach runs only a window.location.replace() which will not do a full page load if the replacement is just a hash change.

This PR forces a reload after the location is replaced.

How to test the changes in this Pull Request:

  1. Go through a fresh Audience setup flow
  2. Confirm you're redirected to the audience home wizard on completion and you get the following notice along with all the tabs unlocked:
image

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes, as applicable?
  • Have you successfully ran tests with your changes locally?

jaredrethman and others added 30 commits October 23, 2024 15:49
…3495)

* feat(ia-admin-header-selected): Allow ability to force selected tab

* Update src/wizards/admin-header/index.tsx

Co-authored-by: Jared Rethman <[email protected]>

---------

Co-authored-by: Jared Rethman <[email protected]>
…brands

feat(ia): settings additional brands
…ging

fix: only apply merging to plain objects
@miguelpeixe miguelpeixe added [Status] Needs Review The issue or pull request needs to be reviewed Information Architecture labels Mar 17, 2025
@miguelpeixe miguelpeixe self-assigned this Mar 17, 2025
@miguelpeixe miguelpeixe requested a review from a team as a code owner March 17, 2025 20:43
Copy link
Contributor

@chickenn00dle chickenn00dle left a comment

Choose a reason for hiding this comment

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

This fixes the issue, but now this introduces some strangeness in the UI. After completing setup, the page appears to reload twice as a result of calling replace and then reload:

Screen.Recording.2025-03-18.at.12.34.39.mov

Maybe we can replace both of these with window.location.href = url?

@miguelpeixe
Copy link
Member Author

Maybe we can replace both of these with window.location.href = url?

That will have the same behavior as .replace() for hash changes.

How about 7318b60?

Copy link
Contributor

@chickenn00dle chickenn00dle left a comment

Choose a reason for hiding this comment

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

How about 7318b60?

Thanks for clarifying! I am still seeing this strange double reload in the UI with this change:

Screen.Recording.2025-03-19.at.14.56.06.mov

It would be great if we could remain in the completed card until the reload triggers.

@miguelpeixe
Copy link
Member Author

Hmm, that's strange. I can't reproduce it. Which browser is that?

@chickenn00dle
Copy link
Contributor

This is on Firefox 136.0.2

Base automatically changed from epic/ia to trunk March 26, 2025 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Information Architecture [Status] Needs Review The issue or pull request needs to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants