Mailspring/internal_packages
Ben Gotow e8f7f76080 feat(window-manager): Refactor window code, actually destroy main window when logging out
Summary:
Resolves T1200 and probably others.

This diff moves all the window management / hot loading into a new class called the WindowManager
and also changes the way the app transitions between onboarding and main window. When you log out,
the main window clears config and clearing the config causes the window manager to close the main
window and open the login window. When it detects a token again, it opens the main window.

This means you can't:
- Open the main window from the login window
- Open mailto: links and accidentally see the main window or a composer, since the draft store isn't
  running anywhere.
- Don't need to worry about properly resetting thigns when namespaces change, since the window
  is now actually re-created from scratch with the new auth token.

Be a little more defensive about namespace checks in draft-store

Move window code to window-manager

Rename AtomApplication to just `Application`

Specs fix

Test Plan: Run tests, would be good to have more for this.

Reviewers: evan

Reviewed By: evan

Maniphest Tasks: T1200

Differential Revision: https://review.inboxapp.com/D1501
2015-05-14 14:54:29 -07:00
..
account-sidebar fix(friday): Bugs and initial pass at the Today view without content (see summary) 2015-05-08 16:36:48 -07:00
attachments feat(unsafe-components): Wrap injected components, catch exceptions, clean up ComponentRegistry 2015-04-30 16:10:15 -07:00
calendar-bar refactor(react): convert to class-based React components 2015-04-30 13:08:29 -07:00
composer fix(composer): pasting into composer sanitizes and preserves whitespace 2015-05-11 18:07:06 -07:00
file-list feat(unsafe-components): Wrap injected components, catch exceptions, clean up ComponentRegistry 2015-04-30 16:10:15 -07:00
inbox-activity-bar feat(window-manager): Refactor window code, actually destroy main window when logging out 2015-05-14 14:54:29 -07:00
inbox-contact-elements feat(unsafe-components): Wrap injected components, catch exceptions, clean up ComponentRegistry 2015-04-30 16:10:15 -07:00
inbox-light-ui fix(speed): Mark packages as engine:atom, don't include coffee,cjsx in compiled app 2015-03-20 17:53:11 -07:00
message-list feat(tags): Tags dropdown and new features for Menu and Popover 2015-05-13 12:01:41 -07:00
message-templates feat(unsafe-components): Wrap injected components, catch exceptions, clean up ComponentRegistry 2015-04-30 16:10:15 -07:00
mode-switch feat(unsafe-components): Wrap injected components, catch exceptions, clean up ComponentRegistry 2015-04-30 16:10:15 -07:00
notification-mailto fix(speed): Mark packages as engine:atom, don't include coffee,cjsx in compiled app 2015-03-20 17:53:11 -07:00
notification-update-available feat(window-manager): Refactor window code, actually destroy main window when logging out 2015-05-14 14:54:29 -07:00
notifications feat(unsafe-components): Wrap injected components, catch exceptions, clean up ComponentRegistry 2015-04-30 16:10:15 -07:00
onboarding feat(window-manager): Refactor window code, actually destroy main window when logging out 2015-05-14 14:54:29 -07:00
search-bar feat(tags): Tags dropdown and new features for Menu and Popover 2015-05-13 12:01:41 -07:00
sidebar-fullcontact fix(salesforce): convert to use new ComponentRegistry 2015-05-01 15:58:25 -04:00
sidebar-inbox-internal fix(salesforce): convert to use new ComponentRegistry 2015-05-01 15:58:25 -04:00
thread-list fix(thread-list): Archive performance improvements, white rows fix 2015-05-14 14:12:53 -07:00
today fix(friday): Bugs and initial pass at the Today view without content (see summary) 2015-05-08 16:36:48 -07:00
tooltip refactor(react): convert to class-based React components 2015-04-30 13:08:29 -07:00
unread-badge fix(friday): Bugs and initial pass at the Today view without content (see summary) 2015-05-08 16:36:48 -07:00
unread-notifications fix(unread-notifications): Fix failing tests, add one for "Unknown" sender 2015-05-10 12:21:18 -07:00