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

Aperta
#3,699 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
cli

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
Rust
Stelle
155
Fork
52
Merge medio
2g 17h
PR unite (30g)
37

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di IntersectMBO/mithril

Tutte le issue di IntersectMBO/mithril

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.