Background
The new mw.util.messageBox method provides a stable API for building message boxes instead of resorting to string stitching. Using this API means you do not need to change markup whenever Codex changes its markup. I've identified codebases impacted by this issue.
https://codesearch.wmcloud.org/deployed/?q=mw-message-box%7Ccdx-message&files=.*%5C.js%24&excludeFiles=%28tests%2F.*%7Cmodules%2Fflow%7Cmodules%2Fgraph.sandbox.js%29&repos=
User story
As a developer I don't want to update code markup every time Codex HTML changes.
Requirements
- Replace code in the form $( '<div>' ).addClass( 'cdx-message cdx-message--block cdx-message--warning' ) with a call to mw.util.messageBox (example)
- Make sure you are loading the associated Codex styles, with the CdxMessage component