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

EIC Features > main #752

Merged
merged 46 commits into from
Dec 5, 2023
Merged

EIC Features > main #752

merged 46 commits into from
Dec 5, 2023

Conversation

hanbyul-here
Copy link
Collaborator

@hanbyul-here hanbyul-here commented Nov 16, 2023

Background for this pr: As new A&E launch being delayed, it will be better for all the changes to stay on the same branch, and release the version properly so we don't have to manage multiple feature branches at the same time.

The change includes

hanbyul-here and others added 30 commits November 3, 2023 10:52
Add Content Override for Stories Hub page for EIC.
I also got rid of page local nav.

Close NASA-IMPACT/veda-config-eic#6
hanbyul-here and others added 12 commits November 13, 2023 08:58
It seems EIC will require plenty of Embedded content. This PR wraps
`Embed` component (which is essentially iframe) into `<Lazyload >`
element, so embedded contents can load only when it is in the view.

Lazy embed example:
https://deploy-preview-743--veda-ui.netlify.app/stories/life-of-water
Rather than dealing with 'multi catalog' issue, this PR narrows down the
scope and makes the layer to be responsible to bring stac and tile
endpoints when needed. (`stacApiEndpoint` and `tileApiEndpoint` to data
mdx.)


~~We are using `stacCol` as an identifier in layer fetching logic,
especially in `context/layer-data`. This will make a problem if there
exist the same collection ids in different stac instances. So, we need
to figure out a unique identifier for the layer fetching. But with the
new A&E page coming and everything, I feel more biased towards
documenting this as a caveat (no duplicate stac collection IDs are
allowed) and moving forward for now. What do you think @danielfdsilva ?
@sandrahoang686 ?~~ : Welp 💦 It was less amount of effort than I thought
so I just went ahead and added 'stacEndpoint' as an additional
identifier.
 
 
ex. Previous attempt to implement multi-catalog (from @slesaad ) :
https://github.com/NASA-IMPACT/veda-config/pull/301/files
I realized that there are multiple props that iframe can accept to make
the communication safe/ more compatible with standard (such as
https://github.com/NASA-IMPACT/veda-config-eic/pull/23/files#diff-9a900b0095d3eecf847dc69b3300d909fb529d47ce3ffe375330081d0bcdee76R145)

This PR makes all those props be passed to iframe element.
I made this change because of the strong request from EIC. 

I am very hesitant about suggesting this change because there is no way
to prevent the navigation bar from breaking with this change when a user
passes too many 'navMainItem' (or even items with long names). We have
to clearly communicate that veda-ui is not in charge of the breaks that
can be introduced from`navMainItem`.

Look at how it can look like :
NASA-IMPACT/veda-config-eic#24
Copy link

netlify bot commented Nov 16, 2023

Deploy Preview for veda-ui ready!

Name Link
🔨 Latest commit e838378
🔍 Latest deploy log https://app.netlify.com/sites/veda-ui/deploys/656da0a373d7850008d81cde
😎 Deploy Preview https://deploy-preview-752--veda-ui.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 EIC Features EIC Features > main Nov 16, 2023
Copy link
Collaborator

@danielfdsilva danielfdsilva left a comment

Choose a reason for hiding this comment

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

@hanbyul-here Loos good! let's solve the conflicts and get this merged! 🦾

@hanbyul-here hanbyul-here merged commit afe7133 into main Dec 5, 2023
7 checks passed
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