Repository navigation
Edit the font import in the panel, mark changed heading styles, drop the title and preview panels - #645
Merged
Conversation
…the title and preview panels The font import is edited in the settings panel instead of a popover: a popular Google Font fills in the name and the stylesheet in one step, the name and the stylesheet are written on blur, and a stylesheet must be an http(s) address or a Liquid output. A warning stays visible while the name or the stylesheet is missing. Heading styles show which rows and levels differ from their defaults, with a reset per row; « Reset Hn » appears only for a changed level, and the closed Headings section counts the changed fields. mj-title and mj-preview have no panel any more: the server rewrites both blocks from the template's subject and preview text on every save, and the editors that show the email tree hide them.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #645 +/- ##
=======================================
Coverage 90.46% 90.46%
=======================================
Files 391 391
Lines 76560 76560
=======================================
+ Hits 69258 69260 +2
+ Misses 4742 4741 -1
+ Partials 2560 2559 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up of #642: the three points it left out. Console only.
Font import edited in the panel
javascript:,data:,mailto:and relative addresses stay in the field, in red, and are not written. The link button opens a web address only (fontStylesheetUrl).Heading styles show what changed
0and0px,1.30and1.3), colours by their hex.No panel for mj-title and mj-preview
The server rewrites both blocks from the template's subject and preview text on every save (
updateEmailMetadataBlocksininternal/service/template_service.go), and both editors that show the email tree (CreateTemplateDrawer,TemplateTranslationsTab) hide them, so an edit made in their panel would not last. The blocks stay; their panel components and strings are removed.Checks
tsc,eslint src, the full console suite andvite buildpass on the branch merged with dev.