Repository navigation
Make the sample data in db.json valid - #3
Merged
Merged
Conversation
The tree held test leftovers (123, 1, 2222, {{ddd}}, Hello1) and two
{{twoBlocks}} nodes under the root with no matching slot in the root
HTML, so they never rendered. The {{twoBlocks}} library element also
had 49 literal "\n" sequences that showed up as text in the email.
The root's three slots now hold three two-column rows with the six
recipes named in the issue's intro, each with a link, photo, title
and subtitle. The library has three clean elements: {{twoBlocks}},
{{recipeCard}} and {{textBlock}}. Regenerated nmtgTemplate.html and
described the sample data in the README.
1 of 7 tasks
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.
What was wrong
123,1,2222,{{ddd}},{{simpleTest}}andHello1.{{twoBlocks}}nodes sat under the root, but the root HTML has no slot for them.{{twoBlocks}}contained 49 literal\nsequences, which appear as visible "\n" text in the email.What it is now
A complete No More To-Go "Weekly Menu" issue:
{{items}},{{items2}},{{items3}}) hold three two-column rows. The six recipes are the ones named in the issue's intro, and each has a link, a photo fromnomoretogo_email_template, a title and a subtitle.{{twoBlocks}},{{recipeCard}}and{{textBlock}}.public/generated/nmtgTemplate.htmlis regenerated, and the README has a short "Sample data" section.Checks
PUT /treewith the new tree returns 204, so the data passes zod validation.POST /generaterenders all six recipes in order, with no{{…}}left over.npm test(52 passed) andnpm run format:checkpass.The frontend's README screenshots use this data: LLazyEmail/email-template-editor-reactjs (PR to follow).