Building Courier Design Studio required solving several difficult frontend problems, one of which was how to edit a detailed email layout, a short SMS, a push message and an in-app version in the same notification template. These messages can pull in data and include translations, and brand settings can be shared across them. Also customers can edit the messages, preview them with test data, compare versions and publish template changes in the Courier console.
Switching channels or going from editing to preview changes what you see, not what you've put in the template. The width you set on an email column, for example, has to make it into both the saved template and the rendered email. Each translation stays with the text it belongs to. And if you just want to see what an old version looked like, you can do that without overwriting the draft.
I worked on the initial integration with the Courier console, and continued developing the editing and publishing functionality with the team. Much of my work was in the shared editor library, also used in Courier Create, the editor embedded within customer products.
Editing Across Channels
I implemented Email, SMS, Push and In-App editing in the shared editor library. Email was the most complex, combining rich text, images and layout controls. SMS needed plain text and a segment count, while Push and In-App had their own title, body and actions. In the console, I worked on the initial channel settings and integration with Courier's backend.
For email, I built column blocks. You can drag a block into a cell or move it between cells, and a handle lets you adjust the width of each column. A cell can have its own padding, background and borders.
The email might look right when it arrives, but could you reopen the template and drag that same column handle again? I worked on the conversion in both directions: TipTap to Elemental, which Courier saves and renders, then back to editable blocks in their original cells, with the widths and styling intact.
I also built a custom HTML block and helped integrate it into Studio, so anyone who needed to write HTML for a particular section could still use the visual blocks for the rest of the message.
Working With Data
An order confirmation might use the recipient's name in the greeting, but the list of purchases comes from the order itself. How many rows should the author put in the email? With the loops I added to List blocks, you lay out just one and point the list at an array such as data.products. An order for three different products gets three rows.
What would $.item mean up in the greeting? There's no current product there. In the row, $.item is the product and $.index is its position, so that's where autocomplete offers the two names and validation accepts them. I also kept the loop and its path on the trip from TipTap to Elemental and back. Otherwise you'd reopen the template to find your row still there, but nothing telling it to repeat.
For localization, I worked on pulling out the fields that contained copy so translators could edit formatted text and save it for each locale. Say the author changes “Your order has shipped” to “Part of your order has shipped.” The translated text is still there, which is what we want; the question is whether it still says the right thing.
I stored a hash of the default wording with the translation and kept it through document conversion. Now the application can tell a translator which entries predate that change. The hash can't tell whether a translation already makes the distinction about the shipment; that's for the person reading it.
Shared Branding
Picture two blue buttons in emails that share a brand. When the brand changes from blue to green, should both buttons turn green? Only if both were using the brand color. An author who picked that particular blue for one button expects it to stay blue.
I proposed putting the link on the color field itself. In the linked state you'd see the brand's blue beside a connected icon, in a field you couldn't type into. Clicking the icon would let you enter a color just for this button. The template would keep its brand, and none of its other fields would be disconnected.
Click again after the change to green and the field would pick up green, not the blue it had when you disconnected it. It would also go back to read-only. That's why the icon mattered even when the two HEX values matched: you could tell which button would change without waiting for someone to update the brand.
I added brand-color references to the shared picker. What the author sees is blue or green, but what we save in Elemental for a linked field is {brand.colors.primary}. Saving the HEX code there would freeze the color. Courier's backend could already look up the reference when rendering the email.
Color wasn't the only part of an email a brand could supply. I also worked on the brand editor's custom mode for writing shared headers and footers in HTML or MJML.
Routing And Delivery
A routing strategy holds the channels, fallbacks and providers separately from the message. That way, when several templates are meant to use the same delivery rules, their authors can all pick the same strategy.
Basic is the mode for sending on every channel you've enabled. The flowchart below shows an Advanced route, where email is the only channel in the always-send list and SMS is first on the fallback list. It's the failure of the last channel in the first list that sends Courier to the second one. Here that's email, so SMS is the first fallback it tries, and it only moves down the list if that send fails. You can see the order from the arrows without opening the configuration.
I built the Basic routing frontend, the flow for creating strategies from the designer, and a page for managing reusable strategies.
There's a difference between changing a route and looking at it in the other mode. I worked on switching to Basic and back without losing the Advanced settings, so the route you'd built was still there when you came back.
Reviewing And Publishing
Normal sends use the published message. Authors can still edit a draft. I implemented frontend operations to load, save and publish templates, and worked on version history and rollback.
Previous versions can be viewed using the same editors. I added shared read-only rendering across the channel editors and worked on comparison functionality. This included a fix for viewing an older version overwriting current template data. Inspecting previous messages should not change the draft being edited.
Checking The Result
I added Playwright infrastructure to test the Studio flow through content creation, autosaving, publishing and sending via Courier's API.
For columns I wanted a test that kept going after the edit, because the output is an email, not what you see in Studio. I added visual tests that convert the edited layout to Elemental, render it with Courier's backend and check the email for the column widths and padding, as well as formatted links and dynamic content. That's coverage for those cases, not for every template or email client.