Repository navigation
Redesign the email editor's settings panel - #642
Merged
Merged
Conversation
The right-hand panel of the visual editor is rebuilt on a shared field kit
in the Nuit claire theme: collapsible sections that summarise their values,
a dot and a reset on fields whose value differs from the inherited one, help
in info tooltips, the display condition as a sentence strip, and a colour
picker that offers the email's own colours first.
Texts and links are typed in place and written on blur or Enter, so a word
is one undo step; typed numbers coalesce into one step per focus. Writes go
into the block as it is in the email now, so a change made meanwhile (AI
assistant) is kept.
Also fixed: an image background keeps its colour as a fallback; inherited
values come from mj-attributes (and, for a social element, from its
mj-social); unset or shorthand paddings no longer show 0; the root panel's
« TODO » is gone; button and image get target, rel and title; a social
element gets a label field and a custom icon on any network; Liquid
examples in messages no longer render as « {} ».
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #642 +/- ##
=======================================
Coverage 90.46% 90.47%
=======================================
Files 390 390
Lines 76569 76569
=======================================
+ Hits 69271 69274 +3
+ Misses 4740 4738 -2
+ Partials 2558 2557 -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.
Redesign of the right-hand settings panel of the visual email editor, in the Nuit claire theme. Console only: no Go, API or migration change.
What changes
contact.first_nameis true ») with its result on the test data; then collapsible sections that show a summary of their values and the count of set fields when closed. A section the user toggles stays so for the next block of the same type.ui/fields/): number with unit, segmented controls, corners, spacing box (with the button's inner padding nested), border, colour (the email's own colours first), font, background, and a draft text field that replaces the « Set value » popovers.Fixes along the way
this.getDefaults()instead of mj-attributes; Button, Image, Divider showed « center » whatever was inherited.paddingshorthands showed 0.mjmlpanel showed « TODO »: selecting it now shows the empty state.{{ url }},{{ variable }}) rendered as « {} »; also in the font import popover.Behaviour changes worth knowing
0px(it wrote nothing).ColorPickerWithPresets,StringPopoverInput,PaddingInput,BorderInput,BorderRadiusInput,BackgroundInput,FontStyleInput,AlignSelector,WidthInput,WidthPxInput,HeightInput,InputLayoutandPanelLayoutare replaced by the kit and deleted.Known limits
mj-titleandmj-previewpanels exist but are not reachable in the editor (imported titles and preview texts go to the template settings).Checks
tsc,eslint src, the full console suite andvite buildpass.Docs: Notifuse/docs#70 (to merge with this PR). The editor screenshot of the docs will be retaken after the merge.