Skip to content

Commit

Permalink
Merge branch 'main' into upload_book_initially
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuef authored Jun 4, 2024
2 parents 04a020b + 30c2d2c commit 1fc2be0
Show file tree
Hide file tree
Showing 33 changed files with 325 additions and 111 deletions.
26 changes: 13 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion nat-detection/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ libp2p = { version = "0.53", features = [
"macros",
"upnp",
] }
sn_networking = { path = "../sn_networking", version = "0.16.0" }
sn_networking = { path = "../sn_networking", version = "0.16.2" }
tokio = { version = "1.32.0", features = ["full"] }
tracing = { version = "~0.1.26" }
tracing-log = "0.2.0"
Expand Down
89 changes: 89 additions & 0 deletions node-launchpad/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,95 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.3.2](https://github.com/joshuef/safe_network/compare/node-launchpad-v0.3.1...node-launchpad-v0.3.2) - 2024-06-03

### Added
- provide `--autostart` flag for `add` command
- configure winsw in `node-launchpad`
- *(launchpad)* use nat detection server to determine the nat status
- *(launchpad)* update the start stop node popup
- *(launchpad)* keep track of the nodes to start
- *(launchpad)* update manage nodes ui
- *(launchpad)* implement help pop up
- *(launchpad)* revamp the beta programme flow
- *(launchpad)* update footer to include two lines of commands
- *(launchpad)* setup the basic device status table
- *(launchpad)* set a new header for the home scene
- *(launchpad)* set new discord id on change
- *(manager)* implement nat detection during safenode add
- *(launchpad)* provide safenode path for testing
- *(manager)* maintain n running nodes
- *(auditor)* add new beta participants via endpoint
- *(launchpad)* accept peers args
- supply discord username on launchpad
- provide `--owner` arg for `add` cmd
- *(nodeman)* add LogFormat as a startup arg for nodes
- *(node-launchpad)* discord name widget styling
- *(node-launchpad)* tweaks on resource allocation widget
- *(launchpad)* initial automatic resource allocation logic
- *(launchpad)* allow users to input disk space to allocate
- *(launchpad)* store discord username to disk
- *(launchpad)* use escape to exit input screen and restore old value
- *(launchpad)* have customizable footer
- *(launchpad)* add discord username scene
- *(launchpad)* remove separate ai launcher bin references
- *(launchpad)* ensure start mac launchapd with sudo only if not set

### Fixed
- *(launchpad)* make the bg colors work better
- *(manager)* update nat detection exit code
- retain options on upgrade and prevent dup ports
- *(launchpad)* check if component is active before handling events
- *(launchpad)* prevent mac opening with sudo
- use fixed size popups
- *(launchpad)* prevent loops from terminal/sudo relaunching
- *(launchpad)* do not try to run sudo twice

### Other
- *(release)* sn_faucet-v0.4.21/sn_service_management-v0.3.2/sn_transfers-v0.18.3/sn_auditor-v0.1.19/sn_client-v0.107.2/sn_networking-v0.16.1/sn_cli-v0.93.1/sn_node-v0.107.1/node-launchpad-v0.3.1/sn-node-manager-v0.9.1/sn_peers_acquisition-v0.3.1
- bump versions to enable re-release with env vars at compilation
- *(release)* sn_auditor-v0.1.18/sn_client-v0.107.0/sn_networking-v0.16.0/sn_protocol-v0.17.0/sn_transfers-v0.18.2/sn_peers_acquisition-v0.3.0/sn_cli-v0.93.0/sn_faucet-v0.4.20/sn_metrics-v0.1.8/sn_node-v0.107.0/sn_service_management-v0.3.1/node-launchpad-v0.3.0/sn-node-manager-v0.9.0/sn_node_rpc_client-v0.6.19
- *(launchpad)* typo fix, use program
- *(launchpad)* fixes for white terminal theme
- *(launchpad)* disable unused stats
- *(launchpad)* disable start stop if node count not set
- *(launchpad)* use the correct styling throughout
- *(launchpad)* update scene variant name to BetaProgramme
- *(launchpad)* removed the splash screen on discord id submition
- *(launchpad)* set new color scheme for home
- *(launchpad)* update node status box
- *(manager)* move nat detection out of add subcommand
- *(release)* sn_auditor-v0.1.17/sn_client-v0.106.3/sn_networking-v0.15.3/sn_transfers-v0.18.1/sn_logging-v0.2.27/sn_cli-v0.92.0/sn_faucet-v0.4.19/sn_node-v0.106.5/sn_service_management-v0.3.0/node-launchpad-v0.2.0/sn-node-manager-v0.8.0/sn_protocol-v0.16.7/sn_node_rpc_client-v0.6.18
- update sn-releases
- update based on comment
- *(release)* sn_auditor-v0.1.16/sn_cli-v0.91.4/sn_faucet-v0.4.18/sn_metrics-v0.1.7/sn_node-v0.106.4/sn_service_management-v0.2.8/node-launchpad-v0.1.5/sn-node-manager-v0.7.7/sn_node_rpc_client-v0.6.17
- check we are in terminal before creating one
- *(release)* node-launchpad-v0.1.4
- use published versions of deps
- *(release)* node-launchpad-v0.1.3/sn-node-manager-v0.7.6
- *(release)* sn_auditor-v0.1.15/sn_cli-v0.91.3/sn_faucet-v0.4.17/sn_metrics-v0.1.6/sn_node-v0.106.3/sn_service_management-v0.2.7/node-launchpad-v0.1.2/sn_node_rpc_client-v0.6.16
- *(launchpad)* removing redudnat for loops
- move helper text inside popup
- change trigger resource allocation input box keybind
- *(launchpad)* highlight the table in green if we're currently running
- *(launchpad)* add more alternative keybinds
- change terminal launch behaviour
- use consistent border styles
- *(launchpad)* use safe data dir to store configs
- *(release)* sn_auditor-v0.1.13/sn_client-v0.106.1/sn_networking-v0.15.1/sn_protocol-v0.16.6/sn_cli-v0.91.1/sn_faucet-v0.4.15/sn_node-v0.106.1/node-launchpad-v0.1.1/sn_node_rpc_client-v0.6.14/sn_peers_acquisition-v0.2.12/sn_service_management-v0.2.6
- *(release)* sn_auditor-v0.1.12/sn_client-v0.106.0/sn_networking-v0.15.0/sn_transfers-v0.18.0/sn_peers_acquisition-v0.2.11/sn_logging-v0.2.26/sn_cli-v0.91.0/sn_faucet-v0.4.14/sn_metrics-v0.1.5/sn_node-v0.106.0/sn_service_management-v0.2.5/test_utils-v0.4.1/node-launchpad-v/sn-node-manager-v0.7.5/sn_node_rpc_client-v0.6.13/token_supplies-v0.1.48/sn_protocol-v0.16.5
- *(versions)* sync versions with latest crates.io vs for nodeman
- *(versions)* sync versions with latest crates.io vs
- rename sn_node_launchpad -> node-launchpad
- rename `node-launchpad` crate to `sn_node_launchpad`
- rebased and removed custom rustfmt
- *(tui)* rename crate

## [0.3.1](https://github.com/joshuef/safe_network/compare/node-launchpad-v0.3.0...node-launchpad-v0.3.1) - 2024-06-03

### Other
- bump versions to enable re-release with env vars at compilation

## [0.3.0](https://github.com/joshuef/safe_network/compare/node-launchpad-v0.2.0...node-launchpad-v0.3.0) - 2024-06-03

### Added
Expand Down
8 changes: 4 additions & 4 deletions node-launchpad/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
authors = ["MaidSafe Developers <[email protected]>"]
description = "Node Launchpad"
name = "node-launchpad"
version = "0.3.0"
version = "0.3.2"
edition = "2021"
license = "GPL-3.0"
homepage = "https://maidsafe.net"
Expand Down Expand Up @@ -47,10 +47,10 @@ ratatui = { version = "0.26.0", features = ["serde", "macros", "unstable-widget-
serde = { version = "1.0.188", features = ["derive"] }
serde_json = "1.0.107"
signal-hook = "0.3.17"
sn-node-manager = { version = "0.9.0", path = "../sn_node_manager" }
sn_peers_acquisition = { version = "0.3.0", path = "../sn_peers_acquisition", features = ["network-contacts"]}
sn-node-manager = { version = "0.9.2", path = "../sn_node_manager" }
sn_peers_acquisition = { version = "0.3.1", path = "../sn_peers_acquisition", features = ["network-contacts"]}
sn-releases = "~0.2.6"
sn_service_management = { version = "0.3.1", path = "../sn_service_management" }
sn_service_management = { version = "0.3.3", path = "../sn_service_management" }
strip-ansi-escapes = "0.2.0"
strum = { version = "0.26.1", features = ["derive"] }
sysinfo = "0.30.12"
Expand Down
7 changes: 7 additions & 0 deletions node-launchpad/src/components/home.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,13 @@ impl Component for Home {
},
Action::StoreNodesToStart(count) => {
self.nodes_to_start = count;
if self.nodes_to_start == 0 {
info!("Nodes to start set to 0. Sending command to stop all nodes.");
return Ok(Some(Action::HomeActions(HomeActions::StopNodes)));
} else {
info!("Nodes to start set to: {count}. Sending command to start nodes");
return Ok(Some(Action::HomeActions(HomeActions::StartNodes)));
}
}
Action::StoreDiscordUserName(username) => {
let reset_safenode_services = (self.discord_username != username)
Expand Down
Loading

0 comments on commit 1fc2be0

Please sign in to comment.