Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Add fixes for sentry errors (#3522)
- Add fixes for sentry errors
- Loading branch information
1 parent
2be71e7
commit 2f63ebb
Showing
11 changed files
with
124 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
module MessageFormatHelper | ||
include RegexHelper | ||
|
||
def transform_user_mention_content(message_content) | ||
message_content.gsub(MENTION_REGEX, '\1') | ||
end | ||
|
||
def render_message_content(message_content) | ||
# rubocop:disable Rails/OutputSafety | ||
CommonMarker.render_html(message_content).html_safe | ||
# rubocop:enable Rails/OutputSafety | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
json.id @contact.id | ||
json.name @contact.name | ||
json.email @contact.email |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,112 +1,94 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> | ||
|
||
<head> | ||
<html xmlns="http://www.w3.org/1999/xhtml" style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> | ||
<head> | ||
<meta name="viewport" content="width=device-width" /> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||
<title></title> | ||
|
||
<style type="text/css"> | ||
img { | ||
max-width: 100%; | ||
} | ||
img { | ||
max-width: 100%; | ||
} | ||
body { | ||
-webkit-font-smoothing: antialiased; | ||
-webkit-text-size-adjust: none; | ||
width: 100% !important; | ||
height: 100%; | ||
line-height: 1.6em; | ||
} | ||
body { | ||
-webkit-font-smoothing: antialiased; | ||
-webkit-text-size-adjust: none; | ||
height: 100%; | ||
line-height: 1.6em; | ||
width: 100% !important; | ||
} | ||
body { | ||
background-color: #F8FAFC; | ||
} | ||
@media only screen and (max-width: 640px) { | ||
body { | ||
background-color: #f6f6f6; | ||
padding: 0 !important; | ||
} | ||
@media only screen and (max-width: 640px) { | ||
body { | ||
padding: 0 !important; | ||
} | ||
h1 { | ||
font-weight: 800 !important; | ||
margin: 20px 0 5px !important; | ||
} | ||
h2 { | ||
font-weight: 800 !important; | ||
margin: 20px 0 5px !important; | ||
} | ||
h3 { | ||
font-weight: 800 !important; | ||
margin: 20px 0 5px !important; | ||
} | ||
h4 { | ||
font-weight: 800 !important; | ||
margin: 20px 0 5px !important; | ||
} | ||
h1 { | ||
font-size: 22px !important; | ||
} | ||
h2 { | ||
font-size: 18px !important; | ||
} | ||
h3 { | ||
font-size: 16px !important; | ||
} | ||
.container { | ||
padding: 0 !important; | ||
width: 100% !important; | ||
} | ||
.content { | ||
padding: 0 !important; | ||
} | ||
.content-wrap { | ||
padding: 10px !important; | ||
} | ||
.invoice { | ||
width: 100% !important; | ||
} | ||
h1 { | ||
font-size: 22px !important; | ||
font-weight: 800 !important; | ||
margin: 20px 0 5px !important; | ||
} | ||
h2 { | ||
font-size: 18px !important; | ||
font-weight: 800 !important; | ||
margin: 20px 0 5px !important; | ||
} | ||
h3 { | ||
font-size: 16px !important; | ||
font-weight: 800 !important; | ||
margin: 20px 0 5px !important; | ||
} | ||
h4 { | ||
font-weight: 800 !important; | ||
margin: 20px 0 5px !important; | ||
} | ||
.container { | ||
padding: 0 !important; | ||
width: 100% !important; | ||
} | ||
.content { | ||
padding: 0 !important; | ||
} | ||
.content-wrap { | ||
padding: 10px !important; | ||
} | ||
} | ||
</style> | ||
</head> | ||
|
||
<body itemscope itemtype="http://schema.org/EmailMessage" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none; width: 100% !important; height: 100%; line-height: 1.6em; background-color: #f6f6f6; margin: 0;" bgcolor="#f6f6f6"> | ||
</head> | ||
|
||
<table class="body-wrap" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; width: 100%; background-color: #f6f6f6; margin: 0;" bgcolor="#f6f6f6"> | ||
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> | ||
<td style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;" valign="top"></td> | ||
<td class="container" width="600" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; display: block !important; max-width: 600px !important; clear: both !important; margin: 0 auto;" valign="top"> | ||
<div class="content" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; max-width: 600px; display: block; margin: 0 auto; padding: 20px; text-align:center;"> | ||
<table class="main" width="100%" cellpadding="0" cellspacing="0" itemprop="action" itemscope itemtype="http://schema.org/ConfirmAction" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; border-radius: 4px; background-color: #fff; text-align:left; margin: 0; border: 1px solid #e9e9e9; box-shadow:0 2px 11px 0 rgba(0,0,0,0.15)" bgcolor="#fff"> | ||
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> | ||
<td class="content-wrap" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 20px;" valign="top"> | ||
<meta itemprop="name" content="Confirm Email" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;" /> | ||
<table width="100%" cellpadding="0" cellspacing="0" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> | ||
{{ content_for_layout }} | ||
</table> | ||
</td> | ||
</tr> | ||
</table> | ||
<div class="footer" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; width: 100%; clear: both; color: #999; margin: 0; padding: 20px;"> | ||
<table width="100%" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> | ||
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> | ||
{% if global_config['BRAND_NAME'] != '' %} | ||
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> | ||
<td class="content-block" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;" valign="top"> | ||
Powered by | ||
<a href="{{ global_config['BRAND_URL'] }}" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; color: #999; text-align: center; margin: 0; padding: 0 0 20px;" align="center" valign="top"> | ||
{{ global_config['BRAND_NAME'] }} | ||
</a> | ||
</td> | ||
</tr> | ||
{% endif %} | ||
</tr> | ||
</table> | ||
</div> | ||
</div> | ||
</td> | ||
<td style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;" valign="top"></td> | ||
</tr> | ||
<body itemscope itemtype="http://schema.org/EmailMessage" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none; width: 100% !important; height: 100%; line-height: 1.6em; background-color: #F8FAFC; margin: 0;" bgcolor="#F8FAFC"> | ||
<table class="body-wrap" style="width: 100%; background-color: #F8FAFC; margin: 0;" bgcolor="#F8FAFC"> | ||
<tr style="margin: 0;"> | ||
<td class="container" width="600" style="display: block !important; max-width: 600px !important; clear: both !important; margin: 0 auto;" valign="top"> | ||
<div class="content" style="display: block; margin: 0 auto; padding: 20px; text-align:center;"> | ||
<table class="main" width="100%" cellpadding="0" cellspacing="0" itemprop="action" itemscope itemtype="http://schema.org/ConfirmAction" style="border-radius: 6px; background-color: #fff; text-align:left; margin: 0; border: 1px solid #e9e9e9; border-top:3px solid #0080f8;" bgcolor="#fff"> | ||
<tr style="margin: 0;"> | ||
<td class="content-wrap" style="vertical-align: top; margin: 0; padding: 20px; font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;" valign="top"> | ||
<table width="100%" cellpadding="0" cellspacing="0" style="margin: 0;"> | ||
{{ content_for_layout }} | ||
</table> | ||
</td> | ||
</tr> | ||
</table> | ||
</div> | ||
<div class="footer" style="color: #93AFC8; margin: 0; padding: 0 20px 40px; text-align: center"> | ||
<table width="100%" style="margin: 0;"> | ||
<tr style="margin: 0;"> | ||
{% if global_config['BRAND_NAME'] != '' %} | ||
<td class="content-block" style="font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif; vertical-align: top; margin: 0; padding: 0 0 20px;" valign="top"> | ||
Powered by | ||
<a href="{{ global_config['BRAND_URL'] }}" style="vertical-align: top; color: #93AFC8; text-align: center; margin: 0; padding: 0 0 20px;" align="center" valign="top"> | ||
{{ global_config['BRAND_NAME'] }} | ||
</a> | ||
</td> | ||
{% endif %} | ||
</tr> | ||
</table> | ||
</div> | ||
</td> | ||
</tr> | ||
</table> | ||
</body> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters