Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding static content and removing Markdown from sample templates #16

Merged
merged 1 commit into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const ONE_TIME_PASSCODE: TEditorConfiguration = {
},
props: {
level: 'h1',
text: '{{passcode}}',
text: '0123456',
},
},
},
Expand All @@ -102,7 +102,7 @@ const ONE_TIME_PASSCODE: TEditorConfiguration = {
},
},
props: {
text: 'This code will expire in {{expiresIn}}.',
text: 'This code will expire in 30 minutes.',
},
},
},
Expand All @@ -124,7 +124,7 @@ const ONE_TIME_PASSCODE: TEditorConfiguration = {
},
},
props: {
text: '*Problems? Just reply to this email.*',
text: 'Problems? Just reply to this email.',
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {
},
props: {
level: 'h2',
text: '{{store.name}}',
text: 'Unbranded Supply',
},
},
},
Expand Down Expand Up @@ -84,7 +84,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {
},
},
props: {
text: '#{{order.id}}',
text: '#103571871',
},
},
},
Expand Down Expand Up @@ -194,7 +194,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {
},
},
props: {
text: 'Hi {{order.customer.displayName}},\n\nWe are preparing your package. Your tracking number will be generated once the package is ready to ship.',
text: 'Hi Jordan,\n\nWe are preparing your package. Your tracking number will be generated once the package is ready to ship.',
},
},
},
Expand All @@ -221,7 +221,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {
fullWidth: false,
size: 'large',
text: 'View your order',
url: 'https://www.example.com/orders/{{order.id}}',
url: 'https://example.usewaypoint.com/orders/103571871',
},
},
},
Expand Down Expand Up @@ -326,7 +326,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {
},
},
props: {
text: '{{lineItem.productName}} x {{lineItem.qty}}',
text: 'Unbranded Pen x 5',
},
},
},
Expand All @@ -348,7 +348,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {
},
},
props: {
text: '{{lineItem.variant}}',
text: 'Black / Black ink',
},
},
},
Expand Down Expand Up @@ -412,7 +412,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {
},
},
props: {
text: '({{lineItem.discount}})',
text: '($5.00)',
},
},
},
Expand Down Expand Up @@ -519,7 +519,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {
},
},
props: {
text: '<s>{{lineItem.originalPrice}}</s>',
text: 'Original: $30.00',
},
},
},
Expand All @@ -541,7 +541,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {
},
},
props: {
text: '{{lineItem.price}}',
text: '$25.00',
},
},
},
Expand Down Expand Up @@ -685,7 +685,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {
},
},
props: {
text: 'Discount {% if order.discountCode %} ({{order.discountCode}}){% endif %}',
text: 'Discount (BLKFRI)',
},
},
},
Expand Down Expand Up @@ -726,7 +726,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {
},
},
props: {
text: '{{order.discount}}',
text: '$5.00',
},
},
},
Expand Down Expand Up @@ -855,7 +855,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {
},
},
props: {
text: '{{order.subtotal}}',
text: '$25.00',
},
},
},
Expand Down Expand Up @@ -984,7 +984,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {
},
},
props: {
text: '{{order.shipping}}',
text: '$5.00',
},
},
},
Expand Down Expand Up @@ -1113,7 +1113,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {
},
},
props: {
text: '{{order.taxes}}',
text: '$0.00',
},
},
},
Expand Down Expand Up @@ -1260,7 +1260,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {
},
},
props: {
text: '{{order.total}}',
text: '$30.00',
},
},
},
Expand Down Expand Up @@ -1465,7 +1465,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {
},
},
props: {
text: '{{order.shippingAddress.name}}\n{{order.shippingAddress.line1}}\n{{order.shippingAddress.city}}, {{order.shippingAddress.state}} {{order.shippingAddress.zip}}\n{{order.shippingAddress.country}}',
text: 'Jordan Isip\n123 Main St\nNew York, NY 10002\nUnited States',
},
},
},
Expand Down Expand Up @@ -1528,7 +1528,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {
},
},
props: {
text: '{{order.shippingAddress.name}}\n{{order.shippingAddress.line1}}\n{{order.shippingAddress.city}}, {{order.shippingAddress.state}} {{order.shippingAddress.zip}}\n{{order.shippingAddress.country}}',
text: 'Jordan Isip\n123 Main St\nNew York, NY 10002\nUnited States',
},
},
},
Expand Down Expand Up @@ -1638,7 +1638,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {
},
},
props: {
text: '{{order.shippingMethod}}',
text: 'Ground – Standard',
},
},
},
Expand Down Expand Up @@ -1678,7 +1678,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {
},
},
props: {
text: 'If you have any questions, just reply to this email.\n\n[Edit or Cancel Order](https://www.example.com/orders/{{order.id}}/edit)\n\n[Reorder](https://www.example.com/orders/{{order.id}}/reorder)',
text: 'If you have any questions, just reply to this email.',
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ const POST_METRICS_REPORT: TEditorConfiguration = {
props: {
size: 32,
shape: 'circle',
imageUrl: '{{user.avatarUrl}}',
fallbackText: '{{user.displayName}}',
imageUrl: '',
fallbackText: 'Jordan',
fallbackColor: null,
},
},
Expand Down Expand Up @@ -169,7 +169,7 @@ const POST_METRICS_REPORT: TEditorConfiguration = {
},
props: {
level: 'h3',
text: '{{report.duration}}, your posts received',
text: 'Last week, your posts received',
},
},
},
Expand All @@ -191,7 +191,7 @@ const POST_METRICS_REPORT: TEditorConfiguration = {
},
},
props: {
text: '{{report.metric.value}}',
text: '1,511',
},
},
},
Expand All @@ -213,7 +213,7 @@ const POST_METRICS_REPORT: TEditorConfiguration = {
},
},
props: {
text: '{{report.metric.title}}',
text: 'Post impressions',
},
},
},
Expand All @@ -240,7 +240,7 @@ const POST_METRICS_REPORT: TEditorConfiguration = {
fullWidth: false,
size: 'medium',
text: 'View your analytics →',
url: 'https://narrative.example.com/{{user.username}}/analytics',
url: 'https://example.usewaypoint.com/jordanisip/analytics',
},
},
},
Expand All @@ -262,7 +262,7 @@ const POST_METRICS_REPORT: TEditorConfiguration = {
},
props: {
level: 'h3',
text: 'Top performing post {{report.duration | downcase}}',
text: 'Top performing post last week',
},
},
},
Expand All @@ -284,7 +284,7 @@ const POST_METRICS_REPORT: TEditorConfiguration = {
},
},
props: {
text: '{{report.topPerformingPost}}',
text: 'So excited to now have drag and drop on Waypoint. This builds on top of our new Navigator feature that we shipped earlier this week 🚢.',
},
},
},
Expand Down Expand Up @@ -349,7 +349,7 @@ const POST_METRICS_REPORT: TEditorConfiguration = {
fullWidth: false,
size: 'medium',
text: 'Show more',
url: 'https://narrative.example.com/{{user.username}}/posts',
url: 'https://example.usewaypoint.com/jordanisip/posts',
},
},
},
Expand Down
Loading
Loading