-
Notifications
You must be signed in to change notification settings - Fork 386
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
[gnoweb/realms] Standardize hyperlink structure #2602
Comments
Since connecting a wallet to gno.land seems on standby ATM (#1803), The current markdown production which can point to
Assuming we kept the
If we don't think about the technology, I like the idea of first being taken to a page on gno.land, (In addition to those there is another thing that could be done, which I hope will come true. |
@grepsuzette Thanks for the considerations. Since currently we do not want to include non-core-developed products in This would still need link standardization between |
Oh do you mean on the help page itself, like this?
(Or the link is on a new line, or even on a new row). I like it! About the connection. If we take art/millipede as a case study, it has a
So what you're after seems to be how to prefill parameters like |
There is a temptation to use a
Security considerations need to be double-checked but:
Some plugins could have access to what's typed, but if you care you would just type everything in a terminal and use gnokey (plus that risk would not just concern gnoweb). @leohhhn something like this? |
Norman mentionned during the Core contributors weekly meeting: " https://eips.ethereum.org/EIPS/eip-6963 I think something like eip-6963 is better than a custom uri scheme since the communication between the page and the wallet is quite complex but it could work for basic signing." |
This PR aimed to promote the use of a `p/` library for managing special help links from contracts. It also provided an opportunity for me to realize that our discussion about changing the `$` symbol would require some parsing and detection from the `gnoweb` perspective. If we want a simple library like this one, the goal should be to ideally craft a link to the current package without specifying the realm path. Relative URLs worked well with `?`, but they won't function with `$`. As an alternative, we can have this package look for `std.PrevRealm().PkgAddr` if it is not specified. cc @jeronimoalbi @thehowl @leohhhn Related with #2602 Related with #2876 --------- Signed-off-by: moul <[email protected]> Co-authored-by: Leon Hudak <[email protected]>
Txlink has been released and addresses most, if not all, of the I have opened a new one to discuss an extension: #3283. |
Description
With the revamp of
gnoweb
coming along, we should think about how we can standardize links so that they can be used by other apps.For example, currently we can get the help page of
gnoweb
to display all available realm functions with simplypkgpath?help
- example here.We can also specify a concrete function name, as well as its parameters:
pkgpath?help&__func=ModAddPost&title=NewBlogPost
- example here. This will show only the specified function with the prefilled arguments to it from the link.Standardizing this link pattern would also allow other apps, such as GnoStudio Connect, to directly be able to lead users to a specific function call with a specific argument set - which would be very useful for people who do not know how to use
gnokey
or the CLI altogether.@ilgooz @salmad3 - do you think we could support this link structure in Connect?
I would like to be able to display, say, an EDIT button on gnoweb for a specific blog post. The blog realm could have a base link for Connect, where clicking EDIT would lead the user to the specific function call with arguments embedded in the realm, such as the post ID, which would be needed to run the actual function. For example, the EDIT button could lead to
gno.studio/connect&pkgpath=blogrealm&func=EditPost&id=1
or similar. I understand its a bit more complex due to having to include the chainID and other info in the link, but this feature would be super useful. Let's discuss.The text was updated successfully, but these errors were encountered: