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

[Do not merge] Test navigation with query parameters from data catalog view #421

Closed
wants to merge 6 commits into from

Conversation

hanbyul-here
Copy link
Collaborator

Opening to test NASA-IMPACT/veda-ui#1021

Copy link

netlify bot commented Jun 26, 2024

Deploy Preview for ghg-demo ready!

Name Link
🔨 Latest commit 1d4c39f
🔍 Latest deploy log https://app.netlify.com/sites/ghg-demo/deploys/667ecac4432edd000863ec79
😎 Deploy Preview https://deploy-preview-421--ghg-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@hanbyul-here hanbyul-here changed the title [Do not merge] Test navigation through query parameters from data catalog view [Do not merge] Test navigation with query parameters from data catalog view Jun 26, 2024
hanbyul-here added a commit to NASA-IMPACT/veda-ui that referenced this pull request Jun 28, 2024
…nd new E&A page (#1021)

**Related Ticket:** #1016 

### Description of Changes

This PR makes Catalog View on the data-catalog page use QS-state for
query parameters, while Catalog View on the new E&A page uses Jotai. The
current Atoms related to URL management is not designed for cross-page
navigation. I drew a diagram to describe the navigation problem between
catalog page and overview page.

![Screenshot 2024-06-26 at 1 19
05 PM](https://github.com/NASA-IMPACT/veda-ui/assets/4583806/c11f216d-b3a9-4c01-b3b5-fa747d8999b1)

More context: 
We moved our query parameter management to use Jotai because of the
concerns about the mix-use of QS-State and Jotai for query parameters on
the same page. (Specifically - for the new E&A page, other parameters
are managed by Jotai). More details on this PR that initially introduced
data-catalog view to new E&A page:
#989 (comment)
In the end, we ditched the Query parameter manipulation thinking that we
don't need. (Details are in this comment:
#989 (comment))
But the bug reported #1016 made me realize that was a wrong call.


### Notes & Questions About Changes
- We need a better solution for long-term url management. 

### Validation / Testing
Navigate back and forth from data catalog to overview, from overview to
data catalog (especially through taxonomy pills on the overview page)
Navigate to the new E&A page through the 'Explore Data' button on the
overview page.


I opened a pr on ghg for testing:
US-GHG-Center/veda-config-ghg#421
@hanbyul-here hanbyul-here deleted the test-query-param-no-merge branch July 1, 2024 19:50
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.

1 participant