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

🚧 Set list viewer and editor #163

Merged
merged 6 commits into from
Oct 15, 2024
Merged

🚧 Set list viewer and editor #163

merged 6 commits into from
Oct 15, 2024

Conversation

foysalit
Copy link
Contributor

@foysalit foysalit commented Aug 18, 2024

Screen.Recording.2024-09-19.at.20.58.45.mov

Copy link

render bot commented Aug 18, 2024

@arcalinea arcalinea temporarily deployed to sets - ozone-staging PR #163 October 11, 2024 20:33 — with Render Destroyed
@foysalit foysalit marked this pull request as ready for review October 11, 2024 20:36
@@ -0,0 +1,9 @@
export const createSetPageLink = (queryParams: Record<string, string>) => {
const url = new URL(window.location.href.replace(window.location.search, ''))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does the base URL need to be dynamic like this? Could it look something like:

  const searchParams = new URLSearchParams()
  Object.entries({ tab: 'sets', ...queryParams }).forEach(([key, value]) => {
    searchParams.set(key, value)
  })
  return `/base/page/path?${searchParams.toString()}`

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah there's at least one place where we want to navigate to a nested view while maintaining the parent view so this is the safest way of making sure that we don't lose parent view because of param change.

@foysalit foysalit merged commit d69ec63 into main Oct 15, 2024
3 checks passed
@matthieusieben matthieusieben deleted the sets branch November 15, 2024 14:53
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.

3 participants