paideiadao / paideia-app

paideia-app.vercel.app
MIT License
5 stars 6 forks source link

Create proposals should automatically display the first "choose an action" #84

Closed esot321c closed 2 months ago

esot321c commented 11 months ago

image

If this is the first action, it should automatically just show this screen:

image

esot321c commented 11 months ago

Once the first action is selected, then "add another action" can appear

thesloppyguy commented 10 months ago

@esot321c Made a pull request for this issue. Please review when possible.

esot321c commented 10 months ago

Adding this comment here too:

@thesloppyguy there is still one issue. The "add another action" doesn't activate once you've selected what type of action the first one will be.

thesloppyguy commented 10 months ago

@noob77777 can you explain why this condition is being checked. This is the reason for the issue mentioned by @esot321c and you seem to have committed to this last.

disabled={context?.api?.value?.actions?.length >= 1}
noob77777 commented 10 months ago

@thesloppyguy to add multiple actions we must make sure that the output boxes for them are also generated correctly. This check was added as adding multiple actions in the request payload is not done. We must also test that the actions are added correctly to the request when removing this check.