Modal Views - can we agree on a best practice?

Some good ideas on this topic was brought up in this thread about Discourse’s modals.

Elegantly formulates the lack of mapping to a “higher state” which I think is true for many modal scenarios.

Brings up the usage of how StateMangers could be used for modals. I think there might be a lot of cool stuff that could be done with state machines for both simple and more complex, wizard flow kind of, modals.

I think this part of Peter Bergströms “Ember.js in the Wild” (slides) talk shows some really cool use cases for StateManagers which would marry well with modals.

Another requirement on modals should be that they need to work well with browser history (back/forward buttons). E.g. Discourse’s modals remain on screen even when you navigate away from the context that triggered them.