From 0d1c7e49b34f845fd8db5cc1cb1006ca2c6fd045 Mon Sep 17 00:00:00 2001 From: Lautaro Mazzitelli Date: Thu, 26 Sep 2024 15:52:34 +0200 Subject: [PATCH 1/3] feat(launchpad): 35gb nodes --- node-launchpad/src/components/popup/manage_nodes.rs | 2 +- node-launchpad/src/components/status.rs | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/node-launchpad/src/components/popup/manage_nodes.rs b/node-launchpad/src/components/popup/manage_nodes.rs index 1810d02713..fd0e285660 100644 --- a/node-launchpad/src/components/popup/manage_nodes.rs +++ b/node-launchpad/src/components/popup/manage_nodes.rs @@ -23,7 +23,7 @@ use crate::{ use super::super::{utils::centered_rect_fixed, Component}; -pub const GB_PER_NODE: usize = 5; +pub const GB_PER_NODE: usize = 35; pub const MB: usize = 1000 * 1000; pub const GB: usize = MB * 1000; pub const MAX_NODE_COUNT: usize = 50; diff --git a/node-launchpad/src/components/status.rs b/node-launchpad/src/components/status.rs index b512a89311..f58e6c2898 100644 --- a/node-launchpad/src/components/status.rs +++ b/node-launchpad/src/components/status.rs @@ -678,9 +678,12 @@ impl Component for Status { ]); let line2 = Line::from(vec![Span::styled( - "Each node will use 5GB of storage and a small amount of memory, \ + format!( + "Each node will use {}GB of storage and a small amount of memory, \ CPU, and Network bandwidth. Most computers can run many nodes at once, \ but we recommend you add them gradually", + GB_PER_NODE + ), Style::default().fg(LIGHT_PERIWINKLE), )]); From 08f3c7f5e769ba7dc8079b99838d15b2db1d3471 Mon Sep 17 00:00:00 2001 From: Lautaro Mazzitelli Date: Thu, 26 Sep 2024 16:58:48 +0200 Subject: [PATCH 2/3] fix(launchpad): disable node selection --- node-launchpad/src/components/status.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/node-launchpad/src/components/status.rs b/node-launchpad/src/components/status.rs index f58e6c2898..c047a39249 100644 --- a/node-launchpad/src/components/status.rs +++ b/node-launchpad/src/components/status.rs @@ -175,7 +175,8 @@ impl Status { ); if !self.node_services.is_empty() && self.node_table_state.selected().is_none() { - self.node_table_state.select(Some(0)); + // self.node_table_state.select(Some(0)); + self.node_table_state.select(None); } Ok(()) @@ -200,7 +201,7 @@ impl Status { .collect() } - fn select_next_table_item(&mut self) { + fn _select_next_table_item(&mut self) { let i = match self.node_table_state.selected() { Some(i) => { if i >= self.node_services.len() - 1 { @@ -214,7 +215,7 @@ impl Status { self.node_table_state.select(Some(i)); } - fn select_previous_table_item(&mut self) { + fn _select_previous_table_item(&mut self) { let i = match self.node_table_state.selected() { Some(i) => { if i == 0 { @@ -417,10 +418,10 @@ impl Component for Status { return Ok(Some(Action::SwitchScene(Scene::ManageNodesPopUp))); } StatusActions::PreviousTableItem => { - self.select_previous_table_item(); + // self.select_previous_table_item(); } StatusActions::NextTableItem => { - self.select_next_table_item(); + // self.select_next_table_item(); } StatusActions::StartNodes => { debug!("Got action to start nodes"); From 1c46d76c6e86cc5baf1178a62ff3f37bd6c223ac Mon Sep 17 00:00:00 2001 From: Chris O'Neil Date: Tue, 1 Oct 2024 14:44:27 +0100 Subject: [PATCH 3/3] chore(release): stable release 2024.10.1.2 ================== Crate Versions ================== autonomi: 0.1.1 sn_auditor: 0.3.2 sn_build_info: 0.1.14 sn_cli: 0.95.2 sn_client: 0.110.2 sn_faucet: 0.5.2 sn_logging: 0.2.35 sn_metrics: 0.1.15 nat-detection: 0.2.6 sn_networking: 0.18.3 sn_node: 0.111.3 node-launchpad: 0.3.17 sn_node_manager: 0.10.5 sn_node_rpc_client: 0.6.30 sn_peers_acquisition: 0.5.2 sn_protocol: 0.17.10 sn_registers: 0.3.20 sn_service_management: 0.3.13 sn_transfers: 0.19.2 test_utils: 0.4.6 token_supplies: 0.1.53 =================== Binary Versions =================== faucet: 0.5.2 nat-detection: 0.2.6 node-launchpad: 0.3.17 safe: 0.95.2 safenode: 0.111.3 safenode-manager: 0.10.5 safenode_rpc_client: 0.6.30 safenodemand: 0.10.5 sn_auditor: 0.3.2 Also corrected an error in the changelog for the previous release. --- CHANGELOG.md | 11 ++++++++++- Cargo.lock | 2 +- node-launchpad/Cargo.toml | 2 +- release-cycle-info | 2 +- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b5e3e549dd..d7eabe0d6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,11 +9,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## 2024-10-01 +### Launchpad + +#### Changed + +- Disable node selection on status screen +- We change node size from 5GB to 35GB + +## 2024-10-01 + ### Network #### Changed -- Increase node storage size from 4GB to 32GB +- Increase node storage size from 2GB to 32GB ## 2024-09-24 diff --git a/Cargo.lock b/Cargo.lock index 11c6d9f36b..f0db3eced7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4709,7 +4709,7 @@ dependencies = [ [[package]] name = "node-launchpad" -version = "0.3.16" +version = "0.3.17" dependencies = [ "ansi-to-tui", "atty", diff --git a/node-launchpad/Cargo.toml b/node-launchpad/Cargo.toml index b4c1bb860f..19511b1c9e 100644 --- a/node-launchpad/Cargo.toml +++ b/node-launchpad/Cargo.toml @@ -2,7 +2,7 @@ authors = ["MaidSafe Developers "] description = "Node Launchpad" name = "node-launchpad" -version = "0.3.16" +version = "0.3.17" edition = "2021" license = "GPL-3.0" homepage = "https://maidsafe.net" diff --git a/release-cycle-info b/release-cycle-info index fff8df8bb2..1bc2281ec8 100644 --- a/release-cycle-info +++ b/release-cycle-info @@ -15,4 +15,4 @@ release-year: 2024 release-month: 10 release-cycle: 1 -release-cycle-counter: 1 +release-cycle-counter: 2