Skip to content

Commit

Permalink
feat: improve messages
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Mar 1, 2024
1 parent d4c4257 commit 9707812
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
1 change: 0 additions & 1 deletion cmd/clidoc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
6 changes: 3 additions & 3 deletions text/message_login.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
Expand All @@ -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,
}
}
Expand Down Expand Up @@ -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,
Expand Down
8 changes: 0 additions & 8 deletions text/message_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,3 @@ func NewInfoNodeResendOTP() *Message {
Type: Info,
}
}

func NewInfoNodeLoginAndLinkCredential() *Message {
return &Message{
ID: InfoNodeLabelLoginAndLinkCredential,
Text: "Login and link credential",
Type: Info,
}
}

0 comments on commit 9707812

Please sign in to comment.