Skip to content

Implement Code Context #9

@dOrgJelli

Description

@dOrgJelli

Implement the Code context:

<Proposal.Code>
{code => (
  <button onClick={() => await code.upvote(arg)}/>
)}
</Proposal.Code>

This is bound to be complex because of the asynchronous nature of the transaction calls. The ideal user experience is:

  • initiate transaction
  • sign
  • be notified it was submitted
  • know they're waiting for it to complete somehow via a spinner or something.
  • know what values are going to be affected.
  • easily see what the status is or if errors have occurred.
  • understand what transactions are currently pending.

The above "UX wants" will inevitably bleed into the DevExp, so I'll leave the above code sample as a starting point and we'll see where it goes from there.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions