DA0-DA0 / dao-dao-ui

InterChain DAO tooling UI.
https://daodao.zone
24 stars 17 forks source link

Sort proposal modules by prefix before selection #1794

Closed ismellike closed 4 weeks ago

ismellike commented 1 month ago

In the Arena DAO, we have 2 single proposal modules with different prefixes 'A' and 'B'. We want 'A' to be preferred, because 'B' does not allow all types of messages to be proposed. If we do a simple sort by prefix, then this is fixed.

image

NoahSaso commented 1 month ago

ah nice! i remember you mentioned this a while ago, and i thought i fixed it, but i must have just fixed the order in the selector and not actually the default. thanks for following up with this!

what if instead of sorting the array where it's used, you just sort the source proposal modules list (in the DAO info retrieval query)?

ismellike commented 1 month ago

yes, much better now