Fix bot review

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-01-30 19:13:10 +04:00
parent e13ff134ed
commit d9c07ecdef
20 changed files with 54 additions and 31 deletions

View File

@@ -257,7 +257,7 @@ func (p *Presenter) RenderTrustCenterDocumentAccessRejected(
return fmt.Sprintf(subjectTrustCenterDocumentAccessRejected, organizationName), textBody, htmlBody, err
}
func (p *Presenter) RenderMagicLink(magicLinkUrlPath string, tokenDuration time.Duration, organizationName string) (subject string, textBody string, htmlBody *string, err error) {
func (p *Presenter) RenderMagicLink(magicLinkUrlPath string, tokenString string, tokenDuration time.Duration, organizationName string) (subject string, textBody string, htmlBody *string, err error) {
data := struct {
PresenterVariables
MagicLinkURL string
@@ -265,7 +265,7 @@ func (p *Presenter) RenderMagicLink(magicLinkUrlPath string, tokenDuration time.
OrganizationName string
}{
PresenterVariables: p.variables,
MagicLinkURL: baseurl.MustParse(p.variables.BaseURL).WithPath(magicLinkUrlPath).MustString(),
MagicLinkURL: baseurl.MustParse(p.variables.BaseURL).WithPath(magicLinkUrlPath).WithQuery("token", tokenString).MustString(),
DurationInMinutes: int(tokenDuration.Minutes()),
OrganizationName: organizationName,
}

View File

@@ -4,7 +4,7 @@ import * as React from 'react';
export function Logo() {
return (
<Img
className="max-width-[220px]"
style={{ maxWidth: "220px" }}
src="{{.SenderCompanyLogoURL}}"
alt="{{.SenderCompanyName}}"
height="60"

View File

@@ -1,6 +1,6 @@
Probo
Hi {{.FullName}},
Hi {{.RecipientFullName}},
Thanks for joining Probo! Please confirm your email address by clicking the link below:

View File

@@ -1,6 +1,6 @@
Probo
Hi {{.FullName}},
Hi {{.RecipientFullName}},
Your document export has been completed successfully. Click the link below to download it:

View File

@@ -1,6 +1,6 @@
Probo
Hi {{.FullName}},
Hi {{.RecipientFullName}},
You're receiving this message because your company, {{.OrganizationName}}, has shared a new compliance document that requires your review and signature.

View File

@@ -1,6 +1,6 @@
Probo
Hi {{.FullName}},
Hi {{.RecipientFullName}},
Your framework export has been completed successfully. Click the link below to download it:

View File

@@ -1,6 +1,6 @@
Probo
Hi {{.FullName}},
Hi {{.RecipientFullName}},
You have been invited to join organization {{.OrganizationName}} on Probo. Click the link below to accept the invitation:

View File

@@ -1,8 +1,8 @@
Probo
Hi {{.FullName}},
Hi {{.RecipientFullName}},
Please use this link to connect to Probo:
Please use this link to connect to {{.OrganizationName}}'s Compliance Page:
{{.MagicLinkURL}}

View File

@@ -1,6 +1,6 @@
Probo
Hi {{.FullName}},
Hi {{.RecipientFullName}},
You have requested a password reset for your Probo account. Click the link below to reset your password:

View File

@@ -1,6 +1,6 @@
Probo
Hi {{.FullName}},
Hi {{.RecipientFullName}},
You have been granted access to {{.OrganizationName}}'s compliance page! Click the link below to access it:

View File

@@ -1,6 +1,6 @@
Probo
Hi {{.FullName}},
Hi {{.RecipientFullName}},
Your access request to the following files in {{.OrganizationName}}'s compliance page has been rejected: