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 #885 - Properly handle tabs on page rehydrate #893

Merged
merged 3 commits into from
Dec 10, 2021
Merged

Conversation

halkeye
Copy link
Member

@halkeye halkeye commented Dec 8, 2021

@halkeye halkeye requested a review from a team as a code owner December 8, 2021 01:36
@zbynek
Copy link
Contributor

zbynek commented Dec 8, 2021

The highlighting of the tabs/pills seems wrong: in your link "documentation" is highlighted, when you click "releases" you get two selected tabs...

I like this more than #890 since hashes are imho better fit for client side navigation 👍

@halkeye
Copy link
Member Author

halkeye commented Dec 8, 2021

I like this more than #890 since hashes are imho better fit for client side navigation 👍

yea but hashes are page anchors. These are not page anchors. So kinda using a system for a different purpose.

looking into the buttons, its hard to test because dev mode is client side only routing.

@halkeye
Copy link
Member Author

halkeye commented Dec 8, 2021

so none of the javascript fires until you click on something (like the other tabs).

@halkeye
Copy link
Member Author

halkeye commented Dec 8, 2021

image

hrmmmmmmm, the tab isn't rendering properly, yets being run and setup properly.

@halkeye
Copy link
Member Author

halkeye commented Dec 8, 2021

okay, not totally psyched about the solution, but https://pensive-galileo-3fa514.netlify.app/scp/#dependencies is now client side only, and seems to work right.

@MarkEWaite
Copy link
Contributor

okay, not totally psyched about the solution, but https://pensive-galileo-3fa514.netlify.app/scp/#dependencies is now client side only, and seems to work right.

When I use that site and try to hover over one of the headings in the documentation tab, the hyperlink moves away from me. For example, I hover over the "Change Log" heading and see a clickable link hovering on the "Version 1.9" below. If I move to the icon to the right of "Version 1.9", the clickable link disappears while the link is still visible on the "Version 1.8" below it.

@halkeye
Copy link
Member Author

halkeye commented Dec 8, 2021

Is that something I introduced by this change? What browser? got a video or anything (screentogif is awesome)

@halkeye
Copy link
Member Author

halkeye commented Dec 8, 2021

I'm def seeing it on ie11, but I don't think its new for this change?

https://app.saucelabs.com/tests/4a03e344d8134ffb8bc9e052cbed6b14#1

@halkeye
Copy link
Member Author

halkeye commented Dec 8, 2021

yea confirmed, same issue on ie11 on plugins.jenkins.io, so don't think introduced here.

@MarkEWaite
Copy link
Contributor

MarkEWaite commented Dec 8, 2021

yea confirmed, same issue on ie11 on plugins.jenkins.io, so don't think introduced here.

I hadn't noticed it before, but I confirm that https://plugins.jenkins.io/scp/ shows the same "chase the link" behavior on Google Chrome. Behavior is not from this change.

@timja
Copy link
Member

timja commented Dec 8, 2021

It was reported in docs gitter today: https://gitter.im/jenkinsci/docs?at=61b0bf1f76e379175528af62

@MarkEWaite
Copy link
Contributor

It was reported in docs gitter today: https://gitter.im/jenkinsci/docs?at=61b0bf1f76e379175528af62

I think that's reporting a different condition. On the page https://plugins.jenkins.io/docker-workflow/#plugin-content-changelog I can hover over the heading "Demo" and see the link icon appear on the right. When I move to the right, I can click the icon and it updates the browser URL with that id (as in https://plugins.jenkins.io/docker-workflow/#plugin-content-demo )

When I hover over "Change Log" on the page https://plugins.jenkins.io/scp/ , the link appears to the right of the text. When I move to the right in order to click the link, the link disappears.

@timja
Copy link
Member

timja commented Dec 8, 2021

Pretty sure it's the same root cause

@halkeye
Copy link
Member Author

halkeye commented Dec 8, 2021

the hovering over elements is css, the h1 is a weird bounding box I couldn't figure out, the SVG shows up on h1:hover type thing.

The linking to wrong section things? We are partially using github HTML, and partially using our own, so the ids don't match, that'll have to be a different pr to link them up.

@halkeye
Copy link
Member Author

halkeye commented Dec 9, 2021

Pretty sure it's the same root cause

that being said, if you know what the cause is, please let me know

@halkeye
Copy link
Member Author

halkeye commented Dec 10, 2021

okay, jenkins-infra/jenkins.io#4758 is the fix for the other issue.

Merging this one!

@halkeye halkeye merged commit 735fd83 into master Dec 10, 2021
@halkeye halkeye deleted the fix-885-again branch December 10, 2021 01:55
@halkeye halkeye added the bug label Dec 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Menu is broken when opening anchor links
4 participants