kleros / scout-snap

Repository for the Kleros Scout Snap
https://kleros.io
Apache License 2.0
0 stars 4 forks source link

Feature: deeplink to Curate for users to submit entries to the registries directly #27

Closed gmkung closed 1 year ago

gmkung commented 1 year ago

From what i remember, Curate allows us to deeplink to the submission form of a registry by encoding the form fields in the URL. Perhaps we can do that in the Snap, so that if the data is not present, someone can just click on the deeplink and go directly to Curate to contribute the submission? Though adding it might make the audit more problematic... @greenlucid

greenlucid commented 1 year ago

hmm but, how could we encode the form fields in the URL if we don't hold this information? where do we obtain this information?

greenlucid commented 1 year ago

All info we could possibly prefill, that I know of, is the contract address

How about:

If tagged, show:

Project: N.A

Contract Tag: XXXXX

If not tagged, show: (don't show "Project" because it's untagged anyway)

Contract Tag: Not Found (Tag me)

greenlucid commented 1 year ago

If it's a token... well, we can't tell if it's a token (we could call erc20 standard functions, but then that's more bandwidth consumption and slower loads, and we want to stay lean)

we could:

Offer user to tag it, if untagged

Is this a token? Tag it here


Don't show it if untagged, don't offer it.

If something is NOT a token, users might be annoyed at having to see this message every time. Besides, they will rarely see anything related to token, because metamask has a different wizard for token interactions.

gmkung commented 1 year ago

Hmm yea I guess this is only viable for the CDN (in which case it's the perfect opportunity as the domain and contract are there, and they can take a screenshot of the exact screen they are there as the 'proof').

greenlucid commented 1 year ago

For domains, it would be simple if it wasn't for the screenshot requirement.

Domain: This contract does NOT recognize this domain. (Is this wrong? Tag it here)

gmkung commented 1 year ago

Or for the others we can populate what we can like address and chain, and those who want, fill in the rest. Are we able to maybe minimise this to just a mini question mark that's like a tooltip? That'd be less intrusive.

greenlucid commented 1 year ago

(on the mini question tool tip:) I don't think thats an option, I don't see such a component.

https://docs.metamask.io/snaps/how-to/use-custom-ui/

But, we could be using some other concepts from this, such as the loading indicator while we wait for the subgraph to respond

gmkung commented 1 year ago

Yeah I like the usage of the loading indicator and I like this too:

Contract Tag: Not Found (Tag me)