Skip to content

Restructure the forms structure in the setting page #48913

Closed as not planned
Closed as not planned

Description

@Sboonny

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.

image


Combine email setting with account setting, and have one save button and one form for all the three of them.

image
image

Activity

  1. added
    platform: learn
    status: discussing
    on Jan 3, 2023
  2. bbsmooth commented on Jan 4, 2023

    @bbsmooth
    Contributor

    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.

  3. Sboonny commented on Jan 4, 2023

    @Sboonny
    MemberAuthor

    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. 🤔

  4. ahmaxed commented on Jan 9, 2023

    @ahmaxed
    Member

    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.

  5. harshit-002 commented on Jan 10, 2023

    @harshit-002

    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?

    Screenshot (4)
    Screenshot (5)

  6. bbsmooth commented on Jan 10, 2023

    @bbsmooth
    Contributor

    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.

  7. Sboonny commented on Jan 11, 2023

    @Sboonny
    MemberAuthor

    @harshit-002, please head to our chat room or the forum if you need help contributing, our moderators will guide you through this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform: learnstatus: discussing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions