Implement the terminal user interface of the `mithril-setup signer` command

オープン
#3,699 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust
領域
cli

調査の方向性

Start in the mithril-setup crate, where ratatui is already added and the signer sub-command is wired, and read ADR 014 (https://mithril.network/doc/adr/14) for the intended form layout. The open work is the form screen (parameter table, in-place editing, buttons), the result screen with the install command, and an undecided error-handling approach. Done means both screens render from the setup orchestrator's output and the README documents them. Ask the maintainers about the error-handling choice before building it.

索引モデルが issue の本文から書いたものです。

説明

feature :rocket:

Why

The mithril-setup signer command must guide the operator through the setup of a Mithril signer in a terminal, with every parameter prefilled and editable in a single view, as decided in ADR 014 (https://mithril.network/doc/adr/14).

What

The mithril-setup signer command shows a form screen (a grid of the prefilled parameters with their provenance and status, editable in place) and a result screen (the install command to run), built with ratatui and driven by the setup orchestrator.

How

  • Add ratatui to the mithril-setup crate
  • Implement the form screen
    • Banner with the messages of the command
    • Table of the parameters with their value, provenance and status
    • Row selection, in place editing
    • Message of the selected row and key help
    • Abort and Continue buttons
  • Implement the result screen with the install command, the warnings line and the Exit button
  • How do deal with errors? (new screen or crash the TUI with error in the console, overwriting an existing file)
  • Wire the terminal interface in the signer sub-command
  • Document the screens in the mithril-setup README
  • Next fine tuning steps:
    • TBD
主要言語
Rust
スター
155
フォーク
52
平均マージ
2日 17時間
マージ済み PR(30日)
37

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

IntersectMBO/mithril のほかの issue

IntersectMBO/mithril の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。