Migrate components from phoenix

This is kind of out the scope of this PR, but we found this behaviour is a bit buggy, in the sense that sometimes it gives this error:
`TypeError: 'undefined' is not an object (evaluating 'this.$('> button').trigger')`