Closed petersalomonsen closed 4 months ago
@race-of-sloths please, include my PR in the race
@petersalomonsen Thank you for your contribution! Your pull request is now a part of the Race of Sloths! New Sloth joined the Race! Welcome!
[
@petersalomonsen Can you provide an example link to test?
yeah, you can also find it in the frontend PR as referred to in the description, but here is a link the deployment on testnet ( with a frontend that points to mainnet ): https://devhublink.testnet.page/proposal/127?accountId=theori.near&blockHeight=121684702
The preview does not work for me: ![Uploading Screenshot 2024-07-18 at 17.35.46.png…]()
@Tguntenaar I find it not the best solution:
context
(next to context.networkId
) or maybe at least via props
(e.g. implicitly passing ?gateway=devhub.near.page
when rendering the top-level component)?@Tguntenaar the preview link works now ( it was pointing to devgovgigs.petersalomonsen.near preview environment which I have deleted, now it is pointing to devhub.near )
@frol @Tguntenaar Regarding tracking the gateway being used. We don't need to include it in the contract build process.
There are other alternatives, and the easiest is to pass the additional information we want to track into props
. Then it will be automatically visible in PostHOG too.
Passing into context
seems not to be supported out of the box in the VM, so I think props
is better then.
We can also go into more "hacky" alternatives like extracting the key from the widget, but I would prefer just passing the information we want to track into props
.
And finally, regarding this PR. The solution on looking for an element id to scroll to, is an attempt to create a generic solution for finding such elements that can be scrolled to. An alternative would be to lock it to only proposals, and only then wait for the element to appear. In that case we need to revisit this every time we want to support scrolling to a comment element for something else than proposals, so I would prefer the current solution @frol .
Thanks for the quick feedback guys, @petersalomonsen the preview looks good to me!
Just for reference the issue we are talking about #879
@frol, thank you for scoring this pull request in the Race of Sloths!
Your contribution is much appreciated with a final score of 3! You have received 45 (30 base + 15 weekly bonus) Sloth points for this contribution
Another weekly streak completed, well done @petersalomonsen! To keep your weekly streak and get another bonus make pull request next week! Looking forward to see you in race-of-sloths
Enables "scroll into view" for proposal comments functionality for https://github.com/NEAR-DevHub/neardevhub-bos/pull/868
Example link to comment being scrolled into view: https://devhublink.testnet.page/proposal/127?accountId=theori.near&blockHeight=121684702