Mailspring/internal_packages
Juan Tejada d92506d8f1 fix(sync-status): Change old per model status, in favor of per folder
Summary:
Addresses T7275
Previously, we kept track of the sync status of each API model, and the progress
we'd made syncing all available models (e.g. all threads, messages, events, etc)

Given K2's set up, we are now keeping track of sync status per folder, i.e. what
percent of the folder's messages we've synced. This status is now reported from K2
to N1 via folder object deltas, and this commit rewrites the
NylasSyncStatusStore (in ES6) to reflect that.

The new Store keeps the sync state per account, which is the merged state of
per folder sync state, and delta connections state.
We also got rid of `CategoryStore.whenCategoriesReady` in favor of
`whenCategoryListSynced`, which is derived from the fact hat as long as we've
started syncing one folder, we've already synced the entire list of of folders/labels.

There are a couple of TODOs to be addressed in upcoming diffs:
- T7329 Restore the sidebar component to show sync progress, which was previously removed
- T7330 Figure out how to report sync progress per label, specifically, we are interested in knowing how much of the inbox we've synced, which is a label in Gmail. (This might be a non-issue if we sync the inbox very fast, first)

Depends on D3514

Test Plan: Manual

Reviewers: mark, evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D3515
2016-12-15 11:17:20 -08:00
..
account-sidebar fix(sidebar): Correctly show all accounts in sidebar during initial sync 2016-11-16 22:48:14 -08:00
attachments deps(*): Lift deps out of packages for simpler install / better deduping 2016-11-09 14:24:10 -08:00
category-picker fix(spec): add support for async specs and disable misbehaving ones 2016-12-15 13:02:00 -05:00
composer fix(spec): add support for async specs and disable misbehaving ones 2016-12-15 13:02:00 -05:00
composer-emoji rm(*): Internal packages don’t need engine version locking 2016-11-29 15:12:52 -08:00
composer-markdown 💄(md) Fix markdown styles 2016-11-18 15:38:26 -08:00
composer-signature fix(lint): update files to for new linter version 2016-11-15 10:20:39 -08:00
composer-spellcheck fix(spellchecker) Fix spellchecker specs 2016-11-17 14:51:24 -08:00
composer-templates fix(spec): add support for async specs and disable misbehaving ones 2016-12-15 13:02:00 -05:00
composer-translate rm(*): Internal packages don’t need engine version locking 2016-11-29 15:12:52 -08:00
draft-list deps(*): Lift deps out of packages for simpler install / better deduping 2016-11-09 14:24:10 -08:00
events deps(*): Lift deps out of packages for simpler install / better deduping 2016-11-09 14:24:10 -08:00
github-contact-card rm(*): Internal packages don’t need engine version locking 2016-11-29 15:12:52 -08:00
keybase rm(*): Internal packages don’t need engine version locking 2016-11-29 15:12:52 -08:00
main-calendar feat(event-search): Add event search to calendar 2016-11-15 17:27:31 -08:00
message-autoload-images fix(lint): update files to for new linter version 2016-11-15 10:20:39 -08:00
message-list fix(spec): add support for async specs and disable misbehaving ones 2016-12-15 13:02:00 -05:00
message-view-on-github rm(*): Internal packages don’t need engine version locking 2016-11-29 15:12:52 -08:00
mode-switch fix(copy): Updating language for onboarding tour 2016-09-14 14:16:19 -04:00
notifications fix(sync-status): Change old per model status, in favor of per folder 2016-12-15 11:17:20 -08:00
onboarding feat(auth): add better error state handling 2016-12-07 10:11:22 -08:00
participant-profile deps(*): Lift deps out of packages for simpler install / better deduping 2016-11-09 14:24:10 -08:00
personal-level-indicators rm(*): Internal packages don’t need engine version locking 2016-11-29 15:12:52 -08:00
phishing-detection rm(*): Internal packages don’t need engine version locking 2016-11-29 15:12:52 -08:00
plugins feat(plugin): don't show isHiddenOnPluginsPage 2016-11-16 16:00:56 -08:00
preferences fix(sync): Support N1Cloud auth errors. Fix LongConnection cleanup 2016-12-01 12:04:37 -05:00
print fix(thread-popout) Add missing packages to the 'thread-popout' window 2016-10-18 11:02:30 -07:00
remove-tracking-pixels rm(*): Internal packages don’t need engine version locking 2016-11-29 15:12:52 -08:00
screenshot-mode
search-index fix(cal): Disable event search for now 2016-11-21 13:50:09 -08:00
send-and-archive deps(*): Lift deps out of packages for simpler install / better deduping 2016-11-09 14:24:10 -08:00
system-tray deps(*): Lift deps out of packages for simpler install / better deduping 2016-11-09 14:24:10 -08:00
theme-picker deps(*): Lift deps out of packages for simpler install / better deduping 2016-11-09 14:24:10 -08:00
thread-list deps(*): Lift deps out of packages for simpler install / better deduping 2016-11-09 14:24:10 -08:00
thread-search fix(search): allow custom search result elements 2016-11-17 16:01:55 -08:00
thread-snooze fix(sync-status): Change old per model status, in favor of per folder 2016-12-15 11:17:20 -08:00
ui-dark build(*): electron-compile, electron-packager instead of custom tooling 2016-11-09 13:52:10 -08:00
ui-darkside (darkside) fixing composer fields spacing (#3020) 2016-11-07 09:49:25 -08:00
ui-less-is-more fix(lint): fix minor linter issue 2016-05-09 13:42:18 -04:00
ui-light build(*): electron-compile, electron-packager instead of custom tooling 2016-11-09 13:52:10 -08:00
ui-taiga feat(sidebar-notifs) Create sidebar notifications to replace old bars 2016-10-04 08:08:23 -07:00
ui-ubuntu fix(size): remove unused docs & screenshots 2016-09-01 11:32:52 -07:00
undo-redo deps(*): Lift deps out of packages for simpler install / better deduping 2016-11-09 14:24:10 -08:00
unread-notifications fix(spec): add support for async specs and disable misbehaving ones 2016-12-15 13:02:00 -05:00
verify-install-location lint(*): Bump to ESLint 3.8 2016-10-17 18:07:35 -07:00
worker-sync fix(sync-status): Change old per model status, in favor of per folder 2016-12-15 11:17:20 -08:00
worker-ui fix(spec): add support for async specs and disable misbehaving ones 2016-12-15 13:02:00 -05:00