You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c546673
Browse filesBrowse the repository at this point in the historyBrowse files
Share the dashboard's mail building blocks from email-blocks
Hosts such as CourseLit were re-implementing pieces of the dashboard and
drifting from it (a host's preview kept the "View in browser" link after the
setting was turned off). Move them into @sendlit/email-blocks and use them
from the dashboard too:
- SequenceAnalytics takes onRefresh and shows a refresh button
- sequenceStatsMetrics maps SequenceStats to analytics metrics
- ViewInBrowserSetting is the shared "View in browser" switch
- footer exports marketingPreviewContext and DEFAULT_FOOTER_LABELS;
createFooterBlock() defaults to those labels
Share more of the dashboard's mail building blocks so hosts don't re-implement them:
6
+
7
+
- `SequenceAnalytics` takes `onRefresh` and shows a refresh button in its header.
8
+
- `sequenceStatsMetrics` maps `SequenceStats` to `SequenceAnalytics` metrics.
9
+
- `ViewInBrowserSetting` is the "View in browser" switch for a broadcast or sequence.
10
+
- `@sendlit/email-blocks/footer` exports `marketingPreviewContext`, which leaves the "View in browser" link out of previews when the setting is off, and `DEFAULT_FOOTER_LABELS`; `createFooterBlock()` uses those labels when none are given.
0 commit comments