MostroP2P / mostrui

Mostro TUI
MIT License
8 stars 7 forks source link

feat(settings): add settings widget #21

Closed josefinalliende closed 1 month ago

josefinalliende commented 1 month ago

Context

Issue: https://github.com/MostroP2P/mostrui/issues/1

In Mostro web, there's a settings tab where the Mostro Nostr public key and the user's secret key are displayed. This PR introduces the first steps toward that feature in mostrui. This is how it looks in mostro web:

Screenshot 2024-10-17 at 10 14 00 PM

What has been done

Added a new widget called SettingsWidget to display the Mostro Nostr public key and the user's secret key.

Here's how it looks in my terminal:

Screenshot 2024-10-17 at 9 57 22 PM

(I've added light gray blocks to the screenshot, these blocks are not present in the actual terminal output)

What to check

This is my first time working with Rust, so any feedback would be greatly appreciated, especially on: