lucky_cli icon indicating copy to clipboard operation
lucky_cli copied to clipboard

Rename SignIn to LogIn

Open paulcsmith opened this issue 5 years ago • 11 comments

SignUp and SignIn are very similar and it takes a moment to figure out what they are doing, especially for non-native English speakers. We should use a different term for "creating an account". I think a common one is "Register" or just "Create Account"

  • SignUps::New/Create -> Registrations::New/Create
  • SignUpUser -> RegisterUser

Who uses this:

  • etsy (sign in/register)
  • google (sign in/create account)
  • wikipedia (log in/create account)
  • amazon (sign in/create account)

Alternatives

Change SignIn to LogIn and keep SignUp

Who uses this nomenclature:

  • facebook
  • heroku
  • reddit
  • pinterest
  • wikipedia (log in/create account)
  • stackoverflow
  • netlify identity widget (log in/sign up)

I'm leaning toward Sign In -> Log In

paulcsmith avatar Mar 11 '20 14:03 paulcsmith

Sort of related https://github.com/luckyframework/lucky/issues/1003. If we get rid of the auto generated routes, then it won't be an issue, but with them we run in to issues with /signins -> /logins, etc..

jwoertink avatar Mar 11 '20 15:03 jwoertink

Yeah good point, I think we should start moving the generators to manually defined routes to start out with! That should be an "easy" change

paulcsmith avatar Mar 11 '20 15:03 paulcsmith

@jwoertink I was having a bit of trouble following from the previous title through all the comments, but it sounds like we landed on using the terms LogIn and SignUp, right?

stephendolan avatar Apr 19 '21 19:04 stephendolan

I'm pretty indifferent to this change. I remember a while back there was someone that brought it up, but I haven't heard anyone mention issues with the wording in a long time. But yes, LogIn and SignUp. This might be a good one to get a community feel on.

jwoertink avatar Apr 19 '21 20:04 jwoertink

Yeah, I haven't really heard a peep in Discord about this lately, but I guess that our English-speaking chat kind of naturally selects against the non-English-speaking confusion Paul cited in the original description.

stephendolan avatar Apr 19 '21 21:04 stephendolan

That's true. I guess if it makes it a bit more friendly, then it's worth the change 👍

jwoertink avatar Apr 19 '21 21:04 jwoertink

Along with this, I'd also like to change the name of the default Layouts. Using AuthLayout to say you're not logged in, as where MainLayout is where you are logged in really only seems to work if your site has no public pages aside from the sign-in/up pages... (oddly enough, one of my Lucky apps fits that exact description lol). For me, I think better names might be MainLayout, and AppLayout. OR... we could just swap them.. AuthLayout meaning you're Authenticated / Authorized... and MainLayout just being your main one...

What do you think @stephendolan ?

jwoertink avatar Apr 27 '21 23:04 jwoertink

@jwoertink I actually think the fact that we could use it for both of these purposes is enough of a reason to nix AuthLayout altogether.

I remember when I used a web framework (Rails) for the very first time, AppLayout and GuestLayout just made sense to me. There's probably a great reason Paul didn't go with GuestLayout, but I think it's the most discoverable and newbie-friendly term to use.

stephendolan avatar Apr 28 '21 01:04 stephendolan

It came up for me because I was writing the tutorial, and I wrote this bit:

The MainLayout is currently setup to be our site layout for users that are logged in to the app. The AuthLayout is used for pages like the login/signup pages, and now our Home Page.

And I had to instruct the user to update the home page to inherit fromAuthLayout instead of MainLayout. I felt it was confusing to explain.

I'm not that great with naming things, but I do feel like this one in particular could be a weird confusion for new people.

jwoertink avatar Apr 28 '21 14:04 jwoertink

I agree, AuthLayout is confusing To me, it sounds like "The layout that is only displayed when user is auth'd"

grepsedawk avatar Jan 10 '22 23:01 grepsedawk

+1 for AppLayout and GuestLayout, as previously suggested by Jeremy and Stephen. This is coincidentally the same naming scheme used by the Laravel Breeze package for it's auth bootstrapping.

When not bootstrapping auth, MainLayout is a perfectly fine name.

splashsky avatar Oct 07 '22 22:10 splashsky