NEAR-DevHub / neardevhub-contract

NEAR DevHub contract
https://neardevhub.org
19 stars 15 forks source link

Support short URLs to proposal comments #121

Closed petersalomonsen closed 1 month ago

petersalomonsen commented 4 months ago

Today you can link directly to a proposal like this

https://truedove38.near.page/proposal/1 ( note that this will point you to a devhub.near proposal rather than the frontend used by truedove38.near because of this: https://github.com/NEAR-DevHub/neardevhub-contract/issues/120 )

Which then resolves to:

https://dev.near.org/megha19.near/widget/near-prpsls-bos.components.pages.app?page=proposal&id=1&accountId=trechriron71.near

It should also be possible to link to a comment of that proposal:

https://dev.near.org/megha19.near/widget/near-prpsls-bos.components.pages.app?page=proposal&id=1&accountId=trechriron71.near&blockHeight=119584976

The blockHeight should then be the third part of the URL:

https://truedove38.near.page/proposal/1/119584976

petersalomonsen commented 1 month ago

Linking to a proposal comment is now supported through https://github.com/NEAR-DevHub/neardevhub-contract/pull/142

Here is an example:

https://devhub.near.page/proposal/127?accountId=theori.near&blockHeight=121684702