You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
shorter rendered output (but needs a small "hack" in Any value renderer)
Pros of keeping the line:
Consistency, when thinking about value renderers.
For example, for nested fields, we use:
My field: [[MsgSend object
> From address: cosmos1ulav3hsenupswqfkw2y3sup5kgtqwnvqa8eyhs]]
Which has a clear spec: <field name>: <value-rendered msg>, where the part between brackets [[ ]] denotes the message value renderer output (the brackets themselves are not shown on screen, just here to clarify the purpose).
The Any spec is:
<Type URL>
<value-renderer msg>
which gives the initial output with the message header screen.
So it's a tradeoff between shorter screens vs consistency.
The text was updated successfully, but these errors were encountered:
In Jim's PR, I approved to go with the additional header screen, because it felt more correct code-wise.
However, I'm changing my mind, and I think Textual is about human readability before anything, and shorter is better in this case. Morever, I suspect that the above consistency argument only stands because of our chosen implementation.
Summary
The proposal is to remove the line in red in the current Any value renderer.
{ "text": "This transaction has 1 Message" }, { "text": "Message (1/1): Object: /cosmos.bank.v1beta1.MsgSend" }, { "text": "Message (1/1): /cosmos.bank.v1beta1.MsgSend" }, - { "text": "MsgSend object" }, { "text": "From address: cosmos1ulav3hsenupswqfkw2y3sup5kgtqwnvqa8eyhs" }, { "text": "To address: cosmos1abc" }, ... // indentation omitted
Problem Definition
Context:
MsgSend
line, as it's redundantProposal
Pros of removing the line:
Pros of keeping the line:
For example, for nested fields, we use:
Which has a clear spec:
<field name>: <value-rendered msg>
, where the part between brackets[[ ]]
denotes the message value renderer output (the brackets themselves are not shown on screen, just here to clarify the purpose).The Any spec is:
which gives the initial output with the message header screen.
So it's a tradeoff between shorter screens vs consistency.
The text was updated successfully, but these errors were encountered: