Skip to content

Add a flag to url when see more is clicked #2437

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

vyktoremario
Copy link

No description provided.

Copy link

vercel bot commented Mar 5, 2025

@vyktoremario is attempting to deploy a commit to the Chainlink Labs Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

@Zelig880 Zelig880 left a comment

Choose a reason for hiding this comment

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

I sync our fork, so you may want to rebase

Comment on lines 29 to 35
const handleSeeMoreClick = () => {
setSeeMore(true)
const urlParams = new URLSearchParams(window.location.search)
urlParams.set("showAll", "true")
const newUrl = `${window.location.pathname}?${urlParams.toString()}`
window.history.replaceState({ path: newUrl }, "", newUrl)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Three points:

  • I do not think we should show the parameter if someone clicks the show all manually, it is good to keep it hidden
  • Add a comment on the "seeMore" logic, so that people know why it has been added (algolia crawler)
  • Auto "show" also all the tokens in this page

Comment on lines 70 to 77
const handleSeeMoreClick = () => {
setSeeMore(true)
const urlParams = new URLSearchParams(window.location.search)
urlParams.set("showAll", "true")
const newUrl = `${window.location.pathname}?${urlParams.toString()}`
window.history.replaceState({ path: newUrl }, "", newUrl)
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above, remove this and add comment

@vyktoremario vyktoremario requested a review from Zelig880 March 5, 2025 11:59
Copy link
Contributor

@Zelig880 Zelig880 left a comment

Choose a reason for hiding this comment

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

All good now!

Copy link

vercel bot commented Mar 5, 2025

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

Name Status Preview Updated (UTC)
documentation ❌ Failed (Inspect) Mar 5, 2025 6:25pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants