When user's session expires and one tries switching between the lists on Content Translation dashboard, JS errors occur, and empty lists are displayed, leaving users without much clue about what happened.
Switching to translation lists after session has expired
jQuery.Deferred exception: Cannot read property 'contenttranslation' of undefined TypeError: Cannot read property 'contenttranslation' of undefined at http://cx2-testing.wmflabs.org/extensions/ContentTranslation/modules/dashboard/ext.cx.translationlist.js?79764:72:24 at mightThrow (http://cx2-testing.wmflabs.org/load.php?debug=true&lang=en&modules=jquery%7Cmediawiki.base&only=scripts&skin=vector&version=069i1tc:3583:29) at process (http://cx2-testing.wmflabs.org/load.php?debug=true&lang=en&modules=jquery%7Cmediawiki.base&only=scripts&skin=vector&version=069i1tc:3651:12) undefined
Switching to suggestion lists after session has expired
jQuery.Deferred exception: Cannot read property 'contenttranslation' of undefined TypeError: Cannot read property 'contenttranslation' of undefined at http://cx2-testing.wmflabs.org/extensions/ContentTranslation/modules/dashboard/ext.cx.recommendtool.client.js?80968:57:39 at mightThrow (http://cx2-testing.wmflabs.org/load.php?debug=true&lang=en&modules=jquery%7Cmediawiki.base&only=scripts&skin=vector&version=069i1tc:3583:29) at process (http://cx2-testing.wmflabs.org/load.php?debug=true&lang=en&modules=jquery%7Cmediawiki.base&only=scripts&skin=vector&version=069i1tc:3651:12) undefined jQuery.Deferred exception: Cannot read property 'contenttranslation' of undefined TypeError: Cannot read property 'contenttranslation' of undefined at http://cx2-testing.wmflabs.org/extensions/ContentTranslation/modules/dashboard/ext.cx.recommendtool.client.js?80968:57:39 at mightThrow (http://cx2-testing.wmflabs.org/load.php?debug=true&lang=en&modules=jquery%7Cmediawiki.base&only=scripts&skin=vector&version=069i1tc:3583:29) at process (http://cx2-testing.wmflabs.org/load.php?debug=true&lang=en&modules=jquery%7Cmediawiki.base&only=scripts&skin=vector&version=069i1tc:3651:12) undefined jQuery.Deferred exception: Cannot read property 'contenttranslation' of undefined TypeError: Cannot read property 'contenttranslation' of undefined at http://cx2-testing.wmflabs.org/extensions/ContentTranslation/modules/dashboard/ext.cx.recommendtool.client.js?80968:57:39 at mightThrow (http://cx2-testing.wmflabs.org/load.php?debug=true&lang=en&modules=jquery%7Cmediawiki.base&only=scripts&skin=vector&version=069i1tc:3583:29) at process (http://cx2-testing.wmflabs.org/load.php?debug=true&lang=en&modules=jquery%7Cmediawiki.base&only=scripts&skin=vector&version=069i1tc:3651:12) undefined
Proposed solution
T192066 proposes to display the login dialog when the session expires on translation view, and we could utilize the same approach for the dashboard as well: