Here's an extension with lots of HTML concatenation, a mixture of logic and presentation, and very little unusual interactivity or extensibility. Perfect for a little Codex pilot port!
We've given ourselves the following requirements:
- Leave the existing workflow untouched
- Implement the Codex port as an additional feature hidden behind a feature flag and an URL parameter so we can give this out to testers
- First implement the dynamic change of editable elements on the Special page
- Write some minimal tests to demonstrate principles
- Include a "noscript" block so that these users at least see an explanation of why the Codex interface is absent for them
Note: If necessary, interactions can be changed but we'll eventually need Product and UX review.
Additional code to review: