You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Warn that settings changed while node is running will not take into affect until the next startup #43
When a user makes changes to a setting after onboarding and when the node is running, those settings will not take into affect until the next node restart. The UI should provide a clear warning about this to the user.
In the Qt Widgets GUI this is accomplished like so, notice the red warning at the bottom of the screenshot:
I think we could do something like the following in the screenshots below. Whenever a setting is changed, the main node setting page will display a warning at the bottom. And the gear icon in the setting screen can show a warning icon.
Here's a mock-up. I would not use red, seems too much like an error. I think it's also important that the copy makes it clear that it's about the changes the user has just made. It should not be passive or indirect ("...this change would require...", "Changes to settings...").
A slightly unrelated question here. Should there be 3 options for the mode: Light, Dark, and Automatic (= based on OS settings)?
If I recollect correctly, @jarolrod said today that restart is possible but that would require some reworking of the codebase. So for now, we design for & communicate manual restart. Please correct if this is inaccurate in any way.
While we're at it, let's design both versions, and keep the one we want eventually as a future issue to tackle. That way we don't have to come back to thinking through this specific issue months down the road.
@GBKS do we want to go with @yashrajd suggestion here? If so can this go in the main design file? I'm working on a rework of optionsmodel to be able to take into account:
All configuration values, and where they come from -> so we can show where a value is overriden from
If a setting is modifable or not - a setting is modifiable if it is not overridden by bitcoin.conf or a terminal parameter
Knowledge of when a value has changes, but a restart is required for the value to be applied
In conversation with @pablomartin4btc around the proxy screen here, I proposed a solution that I also prototyped here.
There's a greyed-out notification on the top of the screen, informing the user that changes require a restart
When the user makes changes, and now has unsaved changes, the notification lights up
The top bar has two buttons, Back and Done, matching the iOS mobile pattern shown here. Back cancels out, and Done saves
If possible, Done also shows a model that asks the user whether they want to restart now, and the application could restart itself. If that is technically possible, I'd slightly adjust the copy in the prototype
Generally, especially on mobile, it is pretty common in many applications that you don't need to have an explicit save button. But sometimes you do, like here.
In conversation with @pablomartin4btc around the proxy screen here, I proposed a solution that I also prototyped here.
Love these prototypes <3 one update I'll suggest is that if (for eg) IP/port field is left empty after enabling the toggle, it should trigger an error message saying something like "Enter the proxy address in the IP:port format"
There's a greyed-out notification on the top of the screen, informing the user that changes require a restart
This is a new for me, where the message is shown even if the user hasn't made any change. Qt and our previous approach (see mockups above) is to only show the message once a change is made, think I might prefer that.
When the user makes changes, and now has unsaved changes, the notification lights up
The top bar has two buttons, Back and Done, matching the iOS mobile pattern shown here. Back cancels out, and Done saves
I've been burnt by this pattern in macOS electron apps where you must click on Save after editing something to apply changes and if you forget to do that you lose changes. That's not something we're used to nowadays (word processors, email clients, most mobile apps auto-save) as you mentioned too.
If we must use this pattern, how about showing a modal with "Save" and "Discard" buttons when the user has made changes but clicks on Back?
If possible, Done also shows a model that asks the user whether they want to restart now, and the application could restart itself. If that is technically possible, I'd slightly adjust the copy in the prototype
Perhaps "Done" can be changed to something like "Save & Restart"?
Generally, especially on mobile, it is pretty common in many applications that you don't need to have an explicit save button. But sometimes you do, like here.
The problem is the user might not know/understand which pattern is applicable when, or simply forget to click on Save/Done
if (for eg) IP/port field is left empty after enabling the toggle, it should trigger an error message saying something like "Enter the proxy address in the IP:port format"
This seems like it should be done when trying to save. Having error messages all the time for empty fields is a bit annoying.
This is a new for me, where the message is shown even if the user hasn't made any change. Qt and our previous approach (see mockups above) is to only show the message once a change is made, think I might prefer that.
Logic is that this screen has a unique interaction model that we want to be explicit about.
If we must use this pattern, how about showing a modal with "Save" and "Discard" buttons when the user has made changes but clicks on Back?
Good idea.
Perhaps "Done" can be changed to something like "Save & Restart"?
Too long on mobile. We already have a very clear and explicit message at the top of the screen.
The problem is the user might not know/understand which pattern is applicable when, or simply forget to click on Save/Done
Not a big deal if they do. This seems overly cautious. There are no funds at risk here. It's 1-2 input fields, so not much effort. We're very explicit with the message at the top.
Overall, considering this issue has been open for a year now, I'd really like us to roll with this and focus on getting the implementation right. If someone wants to propose a different interaction model, I'd ask you to take on this whole design task altogether and make it happen. Sorry if that sounds snappy, but this is interaction model works, and we're dealing with a nested settings screen that is not something 95% of users will have crucial interactions with.
Activity
GBKS commentedon Feb 6, 2023
Here's a mock-up. I would not use red, seems too much like an error. I think it's also important that the copy makes it clear that it's about the changes the user has just made. It should not be passive or indirect ("...this change would require...", "Changes to settings...").
A slightly unrelated question here. Should there be 3 options for the mode: Light, Dark, and Automatic (= based on OS settings)?
yashrajd commentedon Jul 5, 2023
A few suggestions:
For mobile: what does the restart requirement mean? Most users rarely/never quit an app on their phone. Can we relaunch the app for the user?
Happy to do mockups as needed...
GBKS commentedon Jul 6, 2023
Good suggestions. Let's start with the logic.
rabbitholiness commentedon Jul 12, 2023
In short: any changes that touch Bitcoin :-)
yashrajd commentedon Jul 14, 2023
Yes, and it makes total sense. Wonder if there are any exceptions/additional settings...
@jarolrod /@johnny9 will also look into the restart query and get back.
I'd like to work on this issue...
yashrajd commentedon Jul 20, 2023
If I recollect correctly, @jarolrod said today that restart is possible but that would require some reworking of the codebase. So for now, we design for & communicate manual restart. Please correct if this is inaccurate in any way.
GBKS commentedon Jul 20, 2023
While we're at it, let's design both versions, and keep the one we want eventually as a future issue to tackle. That way we don't have to come back to thinking through this specific issue months down the road.
yashrajd commentedon Aug 2, 2023
jarolrod commentedon Oct 27, 2024
@GBKS do we want to go with @yashrajd suggestion here? If so can this go in the main design file? I'm working on a rework of optionsmodel to be able to take into account:
Will look something like this:
yashrajd commentedon Dec 1, 2024
Hi @GBKS, it's great to see the great progress Jarol & co. made on this... would love to see it get done.
GBKS commentedon Jan 15, 2025
In conversation with @pablomartin4btc around the proxy screen here, I proposed a solution that I also prototyped here.
Generally, especially on mobile, it is pretty common in many applications that you don't need to have an explicit save button. But sometimes you do, like here.
What do you think?
pablomartin4btc commentedon Jan 15, 2025
@GBKS, I do agree with points, tested them all on your prototype (except ofc for the restart, we can discuss it later).
Tested invalid IP address format on prototype -> screenshot ("Done" button is disabled - it doesn't allow to save).
Tested correct IP address format on prototype -> screenshot ("Done" button is enabled - it allows to save).
Many thanks!
(P.S.: small observation, the "back" button returns to the "Settings" page, not the one strictly before which is "Connection Settings" page.)
GBKS commentedon Jan 20, 2025
Thanks for testing. I'd keep the notification lit up. You still have unsaved changes, even if they are not acceptable.
yashrajd commentedon Jan 20, 2025
Love these prototypes <3 one update I'll suggest is that if (for eg) IP/port field is left empty after enabling the toggle, it should trigger an error message saying something like "Enter the proxy address in the IP:port format"
This is a new for me, where the message is shown even if the user hasn't made any change. Qt and our previous approach (see mockups above) is to only show the message once a change is made, think I might prefer that.
I've been burnt by this pattern in macOS electron apps where you must click on Save after editing something to apply changes and if you forget to do that you lose changes. That's not something we're used to nowadays (word processors, email clients, most mobile apps auto-save) as you mentioned too.
If we must use this pattern, how about showing a modal with "Save" and "Discard" buttons when the user has made changes but clicks on Back?
Perhaps "Done" can be changed to something like "Save & Restart"?
The problem is the user might not know/understand which pattern is applicable when, or simply forget to click on Save/Done
GBKS commentedon Jan 22, 2025
This seems like it should be done when trying to save. Having error messages all the time for empty fields is a bit annoying.
Logic is that this screen has a unique interaction model that we want to be explicit about.
Good idea.
Too long on mobile. We already have a very clear and explicit message at the top of the screen.
Not a big deal if they do. This seems overly cautious. There are no funds at risk here. It's 1-2 input fields, so not much effort. We're very explicit with the message at the top.
Overall, considering this issue has been open for a year now, I'd really like us to roll with this and focus on getting the implementation right. If someone wants to propose a different interaction model, I'd ask you to take on this whole design task altogether and make it happen. Sorry if that sounds snappy, but this is interaction model works, and we're dealing with a nested settings screen that is not something 95% of users will have crucial interactions with.
Connection settings iteration
Connection settings iteration (#151)