mozilla-b2g/gaia — pull request #8709 by jrburke (2013-03-19 01:18:58+00:00)
Title: Bug 846901: Use a separate card for account listing, instead of nested translateX

Splits out the account picker to a different card with an "overlay" animation, to avoid the nested translateX usage from before. Notable code changes:

* There is an AccountPickerCard in folder-cards.js now, and the parts of the account picker that FolderPickerCard used to do are now in that separate card. index.html now has
a card template for account-picker too.
* zindex for overlaid card decks are now incremented by just 10, instad of 100, because the shared dialog class only has a z-index of 100, and with two overlay decks (one for AccountPicker and one for the account config) that placed it under the zindex of 200, hiding the confirmation dialog. With increments of 10 it is now 100 vs 20. This should be fine as the 100 increment was arbitrary before, and probably too much of a jump.
* AccountPicker card shows the account config gear, but not last sync: since it seemed to make less sense in a listing of accounts.
* Clicking on the "Inbox" header in the far upper right, when AccountPicker is shown, results in a "navigate two cards back" navigation. So, two navigations stacked back to back. The _afterTransitionAction changes in mail-common.js are related to this. While it looks kind of neat, it is new, and may be undesirable. If this is not a desirable behavior, it will require a more invasive change to card navigation to sort out, as it was designed more around adjacent card navigation.

Because of the UX changes mentioned above, it should have a UX review, but I am not sure how to specify that for gaia code.