Write static UI elements.
Write tests.
Write model code to pass tests.
Add widget Javascript.
Add imports and dependencies.