A platform for community discussion. Free, open, simple.
UX: Improve intermediate state in social signup flow (#32887)
Penar Musaraj7974ed508b87
diff --git a/app/assets/javascripts/discourse/app/templates/signup.gjs b/app/assets/javascripts/discourse/app/templates/signup.gjsindex 329cee864ca..9c3757493a7 100644--- a/app/assets/javascripts/discourse/app/templates/signup.gjs+++ b/app/assets/javascripts/discourse/app/templates/signup.gjs@@ -56,16 +56,18 @@ export default RouteTemplate(@controller.authOptions.auth_provider}}>- <SignupProgressBar @step={{@controller.progressBarStep}} />- <WelcomeHeader- id="create-account-title"- @header={{i18n "create_account.header_title"}}- >- <PluginOutlet- @name="create-account-header-bottom"- @outletArgs={{lazyHash showLogin=(routeAction "showLogin")}}- />- </WelcomeHeader>+ {{#unless @controller.skipConfirmation}}+ <SignupProgressBar @step={{@controller.progressBarStep}} />+ <WelcomeHeader+ id="create-account-title"+ @header={{i18n "create_account.header_title"}}+ >+ <PluginOutlet+ @name="create-account-header-bottom"+ @outletArgs={{lazyHash showLogin=(routeAction "showLogin")}}+ />+ </WelcomeHeader>+ {{/unless}}{{#if @controller.showCreateForm}}<form id="login-form">{{#if @controller.associateHtml}}diff --git a/spec/system/social_authentication_spec.rb b/spec/system/social_authentication_spec.rbindex 372809b392c..60e99bb5458 100644--- a/spec/system/social_authentication_spec.rb+++ b/spec/system/social_authentication_spec.rb@@ -1,16 +1,16 @@# frozen_string_literal: true-shared_context "with omniauth setup" do |signup_page_object, login_page_object|+shared_context "with omniauth setup" doinclude OmniauthHelpers- let(:login_form) { login_page_object }- let(:signup_form) { signup_page_object }+ let(:login_form) { PageObjects::Pages::Login.new }+ let(:signup_form) { PageObjects::Pages::Signup.new }before { OmniAuth.config.test_mode = true }end-shared_examples "social authentication scenarios" do |signup_page_object, login_page_object|- include_context "with omniauth setup", signup_page_object, login_page_object+shared_examples "social authentication scenarios" do+ include_context "with omniauth setup"context "when user does not exist" docontext "with Facebook" do@@ -465,14 +465,10 @@ describe "Social authentication", type: :system dobefore { SiteSetting.full_name_requirement = "optional_at_signup" }context "when fullpage desktop" do- include_examples "social authentication scenarios",- PageObjects::Pages::Signup.new,- PageObjects::Pages::Login.new+ include_examples "social authentication scenarios"endcontext "when fullpage mobile", mobile: true do- include_examples "social authentication scenarios",- PageObjects::Pages::Signup.new,- PageObjects::Pages::Login.new+ include_examples "social authentication scenarios"endend