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
Restructure the forms structure in the setting page #48913
platform: learnUI side of the client application that needs familiarity with React, Gatsby etc.status: discussingUnder discussion threads. Closed as stale after 60 days of inactivity.
Describe the feature
We have multiple forms with multiple saving buttons in the setting page, I think this confuses the people who are interacting with the page.
We can have cleaner HTML syntax by having one form that carries the camper's account setting, and one save button that save the camper inputs in these setting.
We can do this by:
Delete the save button in privacy setting, because the buttons there are toggle and can save after switching them.
Combine email setting with account setting, and have one save button and one form for all the three of them.
I like the idea of getting rid of the Save button for the privacy settings. That way these toggles will function the same as the toggles that take effect immediately (e.g. Night Mode).
As for combining all the text inputs to use one Save button, I'm wondering if there might be a good reason to keep some of them separate. For example, changing your username seems to be a pretty big deal to me. What if the user accidentally changed that field and didn't notice and then clicked the Save button thinking they were only changing another field? Seems like we might want to keep changing the username as a completely separate function in order to avoid an accident like that.
The current email and account settings are not bad. I would look into other websites for similar patterns. Twitter for example has completely separate save button for changing usernames, etc..
I like the idea of getting rid of the Save button for the privacy settings. That way these toggles will function the same as the toggles that take effect immediately (e.g. Night Mode).
This was implemented on purpose to reduce the api calsl when a user sets privacy settings.
This was implemented on purpose to reduce the api calls when a user sets privacy settings.
Ahh, thanks for that info. So it sounds like we would not want to change the functionality of the privacy toggles and continue to require them to use the Save button.
platform: learnUI side of the client application that needs familiarity with React, Gatsby etc.status: discussingUnder discussion threads. Closed as stale after 60 days of inactivity.
Activity
bbsmooth commentedon Jan 4, 2023
I like the idea of getting rid of the Save button for the privacy settings. That way these toggles will function the same as the toggles that take effect immediately (e.g. Night Mode).
As for combining all the text inputs to use one Save button, I'm wondering if there might be a good reason to keep some of them separate. For example, changing your username seems to be a pretty big deal to me. What if the user accidentally changed that field and didn't notice and then clicked the Save button thinking they were only changing another field? Seems like we might want to keep changing the username as a completely separate function in order to avoid an accident like that.
Sboonny commentedon Jan 4, 2023
Valid point, we can add logic that shows a model with warning, if camper change the email or username, otherwise save without modal like the usual. 🤔
ahmaxed commentedon Jan 9, 2023
The current email and account settings are not bad. I would look into other websites for similar patterns. Twitter for example has completely separate save button for changing usernames, etc..
This was implemented on purpose to reduce the api calsl when a user sets privacy settings.
harshit-002 commentedon Jan 10, 2023
Hello, I am a newbie, Yesterday I setup freecodecamp locally on my system, and http://localhost:8000/ worked fine, but today on opening the server i am getting this error, I didn't make any changes to any file, I searched StackOverflow, google for hours but couldn't find any solution.
Can someone help me out?
bbsmooth commentedon Jan 10, 2023
Ahh, thanks for that info. So it sounds like we would not want to change the functionality of the privacy toggles and continue to require them to use the Save button.
Sboonny commentedon Jan 11, 2023
@harshit-002, please head to our chat room or the forum if you need help contributing, our moderators will guide you through this.