Commit graph

1036 commits

Author SHA1 Message Date
Ben Gotow 4274753271 fix(sync-worker): Never paginate faster than 1 page per 1.5sec
This should prevent us from flooding the app with contacts (/contacts responds very quickly). Fixes T3475
2015-09-14 13:30:51 -07:00
Evan Morikawa b761afe960 fix(reply): better coverge for reply-all participants
Summary:
Fixes: T3550
Fixes: T3504

Test Plan: many of them

Reviewers: dillon, bengotow

Reviewed By: dillon, bengotow

Subscribers: mg

Differential Revision: https://phab.nylas.com/D2017
2015-09-14 16:18:55 -04:00
Evan Morikawa 91ccc940a6 fix(composer): fix popout composer and add spec 2015-09-14 16:12:28 -04:00
Ben Gotow 9b0ea76681 fix(atom-window): The worker window should also auto-reload on crash
Neverclose applies to both the main window and the worker window

T1640
2015-09-14 11:43:24 -07:00
Ben Gotow e094261470 fix(drafts): If a draft disappears during editing, re-save instead of blowing up (Sentry 2844, more.)
Summary:
Previously, if a draft was deleted while a DraftChangeSet had uncommitted changes, it would blow up trying to find the draft.

This is bad, and can happen in normal scenarios. There are several changes in this diff:

- The DraftChangeSet no longer retrieves the draft from the database before saving changes. Instead, the save logic is in the DraftStoreProxy which already has a version of the draft kept fresh by a subscription to the DraftStore.

- The SyncbackDraftTask already had logic for POSTing when a PUT to a draft returns a 404, so no new logic was necessary there. THe new "commit" logic causes us to put back the draft that was lost, and then when we save it we detatch it from it's serverId and re-save.

In manual testing, this transparently handles the case where you delete a draft from Gmail while editing it.

Test Plan: I've added 22 tests for the DraftChangeSet and DraftStoreProxy

Reviewers: dillon, evan

Reviewed By: dillon, evan

Differential Revision: https://phab.nylas.com/D2012
2015-09-14 11:30:16 -07:00
dillon 00839e37aa feat(account-sidebar): mail activity box now transitions in and out. fixes T3519.
Test Plan: tested manually, all tests still green

Reviewers: evan, bengotow

Reviewed By: bengotow

Maniphest Tasks: T3572, T3519

Differential Revision: https://phab.nylas.com/D2014
2015-09-14 11:04:24 -07:00
Evan Morikawa c03a63b9ea feat(composer): participants collapse
Summary:
Participants now collapse Gmail style in the composer field.

New, more declarative system for how we deal with "focusedFields" on the
composer.

Extracted a `CollapsedParticipants` and `ExpandedParticipants` component.

Test Plan: TODO

Reviewers: dillon, bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D2013
2015-09-14 10:37:00 -04:00
Ben Gotow 95c23ed497 tweak(jasmine): Double timeout in spec runner, see if it makes a difference 2015-09-11 16:16:21 -07:00
Ben Gotow 9bce73fb48 fix(toolbar): Don't close the floating toolbar when clicking in the link input
This is a bit of a quick and dirty fix, but fixes T3511
2015-09-11 16:10:20 -07:00
Ben Gotow 525e1419e3 fix(offline): /Generally/ a timeout is a temporary error code. Only SendDraftTask should bail and tell the user the draft failed to send 2015-09-11 15:14:52 -07:00
Ben Gotow 45fa6d0a8b cleanup(atom): Get rid of core.autoHideMenuBar option—we'll never show a menu bar on windows 2015-09-11 14:56:21 -07:00
Ben Gotow be103b22bf tweak(win32): Hide the app menu on Windows, show in a right-side button instead 2015-09-11 14:49:26 -07:00
Ben Gotow dc19680440 fix(spellcheck): Remove premature optimizations and avoid spellcheck on word being typed
Fixes T3537
2015-09-11 11:12:25 -07:00
Ben Gotow ad5086a06a bump(version): 0.3.6
Lots of bug fixes! See the commit history for more details. Many fixes in this release were reported from Sentry / user testing on Sept 8.
2015-09-10 19:01:15 -07:00
Ben Gotow 79d80464f3 tweak(event-card): Use 12-hour time rather than 24-hour time 2015-09-10 19:00:33 -07:00
Ben Gotow b86ef9b805 tweak(action-bridge): Always process.nextTick inbound IPC events, see comment 2015-09-10 18:50:14 -07:00
Ben Gotow 1d21666382 tweak(tooltip): Fix Sentry 2938 2015-09-10 18:37:15 -07:00
Ben Gotow 42d397fa76 tweak(win32): Make the window toolbar white on windows 2015-09-10 12:41:12 -07:00
Ben Gotow 59af9d61a0 fix(composer): Always open new composer windows from the main window so that AccountStore.current() is correct
Fixes T3479
2015-09-10 11:16:42 -07:00
Ben Gotow ee7266ffb5 fix(spellcheck): On Windows, right clicking a word doesn't select it
Summary: Minor tweaks so that the word is selected and spellcheck / replacement works

Test Plan: No test coverage at the moment - need to think about ways to test selection

Reviewers: evan, dillon

Reviewed By: dillon

Differential Revision: https://phab.nylas.com/D2006
2015-09-10 10:53:27 -07:00
dillon be7b52cb98 feat(categories): enable creating new labels and folders. addresses T3351.
Summary:
write tests for adding/removing existing labels and popover closing

add more tests

address code review comments

fix the tests

add test for creating label

add test for creating label and queueing change label task

add test for creating a folder

add syncback category task spec

make the rest of the tests pass

remove unnecessary parens

add a few more tests

add last test

Test Plan: added some tests. all tests green

Reviewers: bengotow, evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D2010
2015-09-10 10:34:09 -07:00
Ben Gotow ba00ad9cbe fix(scroll-region): Handle edge case where React nodes are not available (Sentry 2763) 2015-09-10 10:29:11 -07:00
Evan Morikawa 1a5dd2003f refactor(package): remove old, unused, or private package. Adds examples
Moved to git@github.com:nylas/N1-private-packages.git

Also started an "examples" folder at the root level with an example Github
package
2015-09-10 12:57:40 -04:00
Ben Gotow 0b4ce76ac6 fix(run-package-specs): Return if the user cancels out of the dialog (Sentry 812) 2015-09-09 17:26:34 -07:00
Ben Gotow cac8c4ec7a fix(thread-list-store): Preserve selection through moveThreads
Summary: Small change that resets focus and keyboard selection after moving threads

Test Plan: Run existing tests, plan to overhaul this whole class so no additioanl tests atm

Reviewers: dillon, evan

Reviewed By: evan

Maniphest Tasks: T3382

Differential Revision: https://phab.nylas.com/D1996
2015-09-09 16:09:51 -07:00
Evan Morikawa 5fdafcb899 fix(search): fix UI issues with search and add test
Summary:
Fixes:
- Search bar dropdown doesn’t go away if you focus into a message
- If a search times out, it continues to display nothing
- Clicked “Inbox” from a search and it didn’t clear the search box

Test Plan: edgehill --test

Reviewers: dillon, bengotow

Reviewed By: dillon, bengotow

Differential Revision: https://phab.nylas.com/D2000
2015-09-09 16:04:13 -07:00
Evan Morikawa 6a6619a106 fix(style): ignore corrupt inline styles 2015-09-09 16:02:47 -07:00
Ben Gotow e14e462f62 tweak(sheet-container): No deferred calls to setState! Will fix perf issues in another patch (Sentry 1525) 2015-09-09 15:55:30 -07:00
Ben Gotow 5535ec43d1 fix(message-toolbar): Handle scenario where toolbar items rapidly removed (Sentry 2861) 2015-09-09 15:27:42 -07:00
Ben Gotow ac9a86e6f3 tweak(react-remote): If window is closed very quickly, do not send sizing (Sentry 2888) 2015-09-09 15:25:52 -07:00
Ben Gotow 97442b9bcb tweak(category-picker): Be slightly more robust against missing inbox 2015-09-09 15:20:34 -07:00
Ben Gotow 1dd0237717 perf(delta-sync): Don't update work UI when window is hidden, don't save config as often (synchronous IPC) 2015-09-09 15:03:40 -07:00
Ben Gotow e1725e1c96 fix(loading-cover): Prevent strange overflow caused by position:absolute
Fixes T3539
2015-09-09 14:41:04 -07:00
Ben Gotow e3338ad3de fix(workspace): Pop to root sheet when switching view modes 2015-09-09 14:27:18 -07:00
Ben Gotow ac3ca9d8f8 fix(thread-list): Depressed+active state needs to be different for immediate click feedback 2015-09-09 14:05:03 -07:00
Ben Gotow 0b282f1d3d tweak(empty-state): Hellen only has one L 2015-09-09 14:05:03 -07:00
Ben Gotow 8db4f82dc4 fix(workspace-mode): Add to config schema so it defaults to list properly 2015-09-09 14:05:03 -07:00
Ben Gotow 748c4c899c tweak(menus): "Enter" and "Exit" fullscreen instead of "Toggle" 2015-09-09 14:05:03 -07:00
Ben Gotow ffb33f3c93 tweak(menus): Move Reload, Show Activity Window to Developer menu 2015-09-09 14:05:03 -07:00
Ben Gotow c3cf1d1c12 tweak(prefs): Remove the font size option until it's implemented 2015-09-09 14:05:03 -07:00
Evan Morikawa 7193c2175f fix(syncback): Handle synback errors better
Fixes "Cannot read property "method" of undefined in SyncbackDraftTest.
Now with more specs!
2015-09-09 11:44:36 -07:00
Ben Gotow 1bf220f1a6 fix(draft-list-store): Upgrade draft list store to NylasStore, fix issue where @_view is null 2015-09-08 18:39:00 -07:00
Evan Morikawa cbf9c9b9e7 fix(draft): DraftCountStore updates after send now 2015-09-08 18:32:35 -07:00
Ben Gotow 94226ad9be fix(errors): Send 400 errors from the Nylas API to Sentry 2015-09-08 18:09:11 -07:00
Ben Gotow 53252fcb97 fix(composer): Show "No Guesses Found" for misspellings without corrections, invalidate cache when learning spelling 2015-09-08 17:52:26 -07:00
Ben Gotow 089aba0b22 bump(version): 0.3.5
- Important flag for Gmail
- Fixes for drafts not disappearing
- Subject line display
2015-09-08 17:16:51 -07:00
Ben Gotow 18795d075b fix(window-controls): Proper @1x assets to avoid tiny white aliasing
Fixes T3501
2015-09-08 14:32:49 -07:00
EthanBlackburn f5792aae2e Archive button no longer appears in sent folder
Summary: Archive button doesnt appear in sent folder

Test Plan: tested manually

Reviewers: evan, bengotow

Reviewed By: bengotow

Maniphest Tasks: T3428

Differential Revision: https://phab.nylas.com/D1987
2015-09-08 14:16:51 -07:00
Ben Gotow 2eb4abb130 fix(react-remote): Put a title on the container region
Fixes T3512
2015-09-08 14:03:59 -07:00
Ben Gotow 15f5a6899f fix(mail-important): Fix broken specs when getStandardCategory('important') returns null 2015-09-08 13:45:46 -07:00