Closed gmkung closed 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?
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)
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:
Is this a token? Tag it here
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.
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').
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)
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.
(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
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