near / near-discovery

The homebase for Near Builders
https://dev.near.org
The Unlicense
49 stars 73 forks source link

Expose `setURLSearchParams` and `scrollTo` functions to Applications page (NEAR Catalog component) #1301

Closed think-in-universe closed 2 months ago

think-in-universe commented 2 months ago

Since NEAR Catalog, the BOS component behind the Applications page (https://dev.near.org/applications), is migrating to a new version (https://nearcatalog.xyz/) built with React, we need to update the BOS component source code with an embedded iframe that renders the https://nearcatalog.xyz/ page inside the component.

To make sure the URL query parameters are updated properly after clicking links inside the iframe, we'd like to expose the setURLSearchParams function to the nearcatalog.near/widget/Index component. For example, when user clicks on Ref Finance project, the URL should be updated to https://dev.near.org/application?id=ref-finance. But BOS VM doesn't allow updating URL query parameters programmatically, so we propose to add an additional function at gateway level.

For better navigation inside the page, we also need the scrollTo function to be accessible in the nearcatalog.near/widget/Index component.

vercel[bot] commented 2 months ago

@think-in-universe is attempting to deploy a commit to the Near Developer Console Team on Vercel.

A member of the Team first needs to authorize it.

think-in-universe commented 2 months ago

@calebjacob Thanks Caleb! When do you think the change will be deployed if the PR is merged? We'd like to get some estimation since the release of NEAR Catalog is dependent on this change.

calebjacob commented 2 months ago

@think-in-universe I'll get it deployed right now 👍