From 9707812ae9e46e255c5040d0fbfddb2dedcd1a48 Mon Sep 17 00:00:00 2001 From: aeneasr <3372410+aeneasr@users.noreply.github.com> Date: Fri, 1 Mar 2024 16:06:21 +0100 Subject: [PATCH] feat: improve messages --- cmd/clidoc/main.go | 1 - text/message_login.go | 6 +++--- text/message_node.go | 8 -------- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/cmd/clidoc/main.go b/cmd/clidoc/main.go index ef3027a936a3..998692c8e67d 100644 --- a/cmd/clidoc/main.go +++ b/cmd/clidoc/main.go @@ -147,7 +147,6 @@ func init() { "NewErrorValidationRecoveryStateFailure": text.NewErrorValidationRecoveryStateFailure(), "NewInfoNodeInputEmail": text.NewInfoNodeInputEmail(), "NewInfoNodeResendOTP": text.NewInfoNodeResendOTP(), - "NewInfoNodeLoginAndLinkCredential": text.NewInfoNodeLoginAndLinkCredential(), "NewInfoNodeLabelContinue": text.NewInfoNodeLabelContinue(), "NewInfoSelfServiceSettingsRegisterWebAuthn": text.NewInfoSelfServiceSettingsRegisterWebAuthn(), "NewInfoLoginWebAuthnPasswordless": text.NewInfoLoginWebAuthnPasswordless(), diff --git a/text/message_login.go b/text/message_login.go index c94db4538704..01ebdabbcb67 100644 --- a/text/message_login.go +++ b/text/message_login.go @@ -61,7 +61,7 @@ func NewInfoLoginLinkMessage(dupIdentifier, provider, newLoginURL string) *Messa ID: InfoSelfServiceLoginLink, Type: Info, Text: fmt.Sprintf( - "Signing in will link your account to %q at provider %q. If you do not wish to link that account, please start a new login flow.", + "Once signed in, your account will be linked to %s at %s. If you do not wish to link that account, please abort the flow.", dupIdentifier, provider, ), @@ -76,7 +76,7 @@ func NewInfoLoginLinkMessage(dupIdentifier, provider, newLoginURL string) *Messa func NewInfoLoginAndLink() *Message { return &Message{ ID: InfoSelfServiceLoginAndLink, - Text: "Sign in and link", + Text: "Continue", Type: Info, } } @@ -119,7 +119,7 @@ func NewInfoLoginWith(provider string) *Message { func NewInfoLoginWithAndLink(provider string) *Message { return &Message{ ID: InfoSelfServiceLoginWithAndLink, - Text: fmt.Sprintf("Sign in with %s and link credential", provider), + Text: fmt.Sprintf("Continue with %s", provider), Type: Info, Context: context(map[string]any{ "provider": provider, diff --git a/text/message_node.go b/text/message_node.go index e2dfb7d6dc32..3af122ae542b 100644 --- a/text/message_node.go +++ b/text/message_node.go @@ -109,11 +109,3 @@ func NewInfoNodeResendOTP() *Message { Type: Info, } } - -func NewInfoNodeLoginAndLinkCredential() *Message { - return &Message{ - ID: InfoNodeLabelLoginAndLinkCredential, - Text: "Login and link credential", - Type: Info, - } -}