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

Đang mở
#3,699 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
cli

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
Rust
Star
155
Fork
52
Merge trung bình
2 ngày 17 giờ
Pull request đã merge (30 ngày)
37

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của IntersectMBO/mithril

Tất cả issue của IntersectMBO/mithril

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.