-
Notifications
You must be signed in to change notification settings - Fork 927
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make preferences page editable without clicking 'Edit Preferences' #5449
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea is fine but I think we should probably keep the edit
action and get rid of the show
action instead of moving edit to show? That's how the settings page works...
This comment was marked as spam.
This comment was marked as spam.
Keeping Open My Settings page. Your location is going to be I guess we can add a redirect from I think that |
One option would be to keep the |
Does anyone need the |
No, I guess not. I've done a small amount of research into this, to see what other similar applications do - just to see if there's any conventions. Github, Mastodon and Discourse all show forms and don't appear to have a show/edit split. Mastodon has its source code available, and they use show+update actions, with the form on the show page. This avoids the whole issue around the path changing when forms are redisplayed and therefore breaking refresh. https://github.com/mastodon/mastodon/tree/3c7f3b190cbaf6b6db25b15c16c8dc0bff599c00/app/controllers/settings/preferences (they've split their preferences into multiple pages, but BaseController#update shows the logic). So maybe our convention should be that where it isn't useful to have separate show and edit pages, then we put the form on the show page. I'd be happy to hear from anyone who has advice based on other similar rails projects! |
When you select My Preferences from the user dropdown, you get to
/preferences
, which is a page that shows you your preferences but doesn't let you edit them. If you want to edit, you'll have to make one extra click on the Edit Preferences button. See #5324 (comment) for some click count considerations.The question is why do you need the uneditable preferences page. It was added in 2403630. The reasoning according to #3167 was to split the settings form. But that doesn't explain why the uneditable page was added. When you click My Settings, you get to an editable page. When you click My Preferences, you don't. If you don't want to edit your preferences, can you just view them on the editable page? I think you can. Why don't we make My Preferences always editable?