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

chore: global backbutton on history page and fix e2e tests #20295

Open
wants to merge 1 commit into
base: v5/main
Choose a base branch
from

Conversation

jhoward1994
Copy link
Contributor

@jhoward1994 jhoward1994 commented May 10, 2024

What does it do?

Uses the global app Back Button on history pages
Fixes history E2E tests according to this change (I think they have been failing on any PR into v5/main)

Why is it needed?

CI stability and consistent back button behaviour

@jhoward1994 jhoward1994 self-assigned this May 10, 2024
@jhoward1994 jhoward1994 added the pr: enhancement This PR adds or updates some part of the codebase or features label May 10, 2024
@jhoward1994
Copy link
Contributor Author

Hey @markkaylor & @remidej

Let me know what you think of this change? It seems something like this is definitely needed to improve the history e2e tests. It also seems nice to keep the back button behaviour consistent wherever we can but I don't have the full context on this feature and maybe theres something I missed?

Copy link

vercel bot commented May 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
contributor-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 10, 2024 11:04am

@joshuaellis
Copy link
Member

I think if we want to use the global back button we need to add a fallback prop, the issue on CH is it's a complete overlay of the UI so if you refresh your page, you're stuck there. But it would be nice to make it consistent :)

@remidej
Copy link
Contributor

remidej commented May 22, 2024

Hey @jhoward1994, thanks for looking into this. I don't think I can merge this because it's not the only issue with the history e2e tests, so I would rather bundle this with the other fixes I'm working on, to hopefully get to the point where the CI goes green on the fix PR.

I agree with Josh, we would need a fallback. I added one on my end and played with it, but in my experience the fact that clicking "back" after toggling through history versions only changes the active history version is a real problem. We could customize BackButton further to let it know if it should ignore query params, but I feel like that's too much complexity for a simple abstraction, when the alternative it to keep using a simple link.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: enhancement This PR adds or updates some part of the codebase or features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants