eigerco / nebula

A soroban contract library
https://nebula.eiger.co
Apache License 2.0
7 stars 2 forks source link

Improve wizard UI/UX [discussion] #85

Open mariopil opened 1 year ago

mariopil commented 1 year ago

An idea came to my mind how we could improve the wizard UX. Instead of having a plain code display with a list of contracts to choose from, let's divide the wizard into 3 parts/dialogs:

  1. Display a list of available contracts to choose from in a form of fancy icons - each contract would have its own unique colourful icon, plus a search bar would be available too.
  2. User selects a contract and another dialog opens up with fields to setup the contract (e.g. ticket price for Lottery, min number of participants required, etc.)
  3. Finally a code is generated which user could copy and invoke.

Untitled document (1)

The generated code would be a new contract:

Everything would be fully automated, no hardcoding. The only thing we would have to stick with is the init function of the contract so that UI knows where to start from.

eloylp commented 12 months ago

I think this idea is somehow related with #104 . I see them as different tools from an user perspective:

So both kind of ways of accesing the data would be important IMO. How to combine them ? :thinking:

geofmureithi commented 11 months ago

A listing of contracts is better to showcase what are some of the posibilites.

This works well. We have to figure out how to pull network contracts as code, unless we mean to import as an interface. Maybe we can generate shell methods if its the former using FunctionSpec.