Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(textual): Use Title/Content instead of Text #14730

Merged
merged 19 commits into from
Feb 2, 2023

Conversation

amaury1093
Copy link
Contributor

Description

Closes: #14665


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • included the correct type prefix in the PR title
  • added ! to the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • followed the guidelines for building modules
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • included comments for documenting Go code
  • updated the relevant documentation or specification
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed ! in the type prefix if API or client breaking change
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic
  • reviewed API design and naming
  • reviewed documentation is accurate
  • reviewed tests and test coverage
  • manually tested (if applicable)

@amaury1093 amaury1093 marked this pull request as ready for review January 23, 2023 14:58
@amaury1093 amaury1093 requested a review from a team as a code owner January 23, 2023 14:58
@github-prbot github-prbot requested review from a team, aaronc and tac0turtle and removed request for a team January 23, 2023 14:58
Copy link
Member

@tac0turtle tac0turtle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@facundomedica facundomedica self-assigned this Feb 1, 2023
Copy link
Member

@facundomedica facundomedica left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK but looks good to me

@amaury1093 amaury1093 enabled auto-merge (squash) February 2, 2023 12:43
@amaury1093 amaury1093 merged commit 4562419 into main Feb 2, 2023
@amaury1093 amaury1093 deleted the am/14665-textual-screen branch February 2, 2023 14:22
type Screen struct {
Text string text // possibly size limited to, e.g. 255 characters
Indent uint8 // size limited to something small like 16 or 32
Title string // possibly size limited to, e.g. 64 characters
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider "advised to X characters".

)

// encode encodes an array of screens according to the CDDL:
//
// screens = [* screen]
// screen = {
// ? text_key: tstr,
// ? title_key: tstr,
// ? content_key: tstr,
// ? indent_key: uint,
// ? expert_key: bool,
// }
// text_key = 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to title_key = 1.

"amount": [{ "denom": "uatom", "amount": "10000000" }]
}
],
"messages": [{ "@type": "/cosmos.bank.v1beta1.MsgSend", "from_address": "cosmos1ulav3hsenupswqfkw2y3sup5kgtqwnvqa8eyhs", "to_address": "cosmos1ejrf4cur2wy6kfurg9f2jppp2h3afe5h6pkh5t", "amount": [{ "denom": "uatom", "amount": "10000000" }] }],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Split the long line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Textual: Use Key+Value instead of simply Text
5 participants