Chat commands are:
- only available in 1x1 chats
- identified by a global unique verb
- associated with a list of arguments
- typed : free (string, float, int), constrained (query result)
- can trigger a suggestion component : reuse regular list components?
- trigger a callback when fired (call an events, visual feedback? always send a message?)
These constraints over-fit the currently available three commands.
why?
makes sense
yes, also we've repeatedly had requests for optional arguments. e.g. if I
/send SNT
and then press send, I'd get to the Wallet Send screenwith recipient and asset pre-selected but amount left for me to type in.
not sure I understand what's typed here, arguments?
yes, but we should allow a free form (or at least free text) suggestion. e.g. list component fits the "combo box" model fine, but sometimes
we really only want a regular text input and some text explaining the context for the user. This is not visible right now because suggestion box for the amount param hasn't been implemented yet, but it should contain the fiat value of chosen amount, no not a selection from a list.
I actually wouldn't couple messages with commands at all. It should be possible to programmatically send any message type with any data, be it from a command or not.