Commit graph

2134 commits

Author SHA1 Message Date
Juan Tejada
9408feb7aa fix(default-alias):Show correct list of accounts and aliases in composer 2016-02-01 18:34:42 -08:00
Ben Gotow
c0142a6c41 bump(version): 0.4.1 Beta 2016-02-01 18:31:04 -08:00
Juan Tejada
617e2aed09 fix(remove-from-view): Update remove from view (shortcut) behavior
Summary:
- Now behaves exactly like in Gmail:
  - If viewing inbox, it will archive or trash, depending on setting
  - If viewing starred, will unstar
  - If viewing trash, will move to inbox
  - If viewing label, will remove label (no folder support)
  - No op otherwise
- Updates TaskFactory helpers and adds some helper methods
- Updates specs

Test Plan: - Manual

Reviewers: evan, bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D2492
2016-02-01 17:40:42 -08:00
Ben Gotow
648bf1b309 fix(send-and-archive): Was disabling signatures due to name collision 2016-02-01 17:33:18 -08:00
Ben Gotow
809f51f960 feat(reorder): Re-order mail rules (#1074) and accounts (#631)
Summary:
This implements EditableList re-ordering via a new prop callback.
You can drag and drop items in the mail rules list and the accounts list.
Note that you can't drag between lists - right now this is just to enable
re-ordering.

Test Plan: No new specs yet

Reviewers: evan, juan

Reviewed By: juan

Differential Revision: https://phab.nylas.com/D2495
2016-02-01 14:06:54 -08:00
Ben Gotow
ea99c57e46 feat(rules): Add "Starred" as an available mail rule filter (#1074) 2016-02-01 13:18:16 -08:00
Juan Tejada
46f331c0b1 fix(alias-list): Editable list wont create empty items
- Update alias coercion to include name by default
2016-02-01 12:45:52 -08:00
Juan Tejada
a00adca3e5 fix(shortcuts): Add shortcut to mark as spam, fixes #765
- Minor cleanup + docs
2016-02-01 12:21:42 -08:00
Ben Gotow
3453cfecb5 fix(mailto): test case / parsing for url encoded To field 2016-02-01 11:22:23 -08:00
Ben Gotow
32cb3fdb7a fix(eslint): Avoid eslint/eslint/issues/5125 by specifying escope version 2016-02-01 11:08:15 -08:00
Ben Gotow
db1cd95a64 fix(zoom): Don't zoom the onboarding window 2016-02-01 10:49:34 -08:00
Ben Gotow
5ac5b55f53 bump(spellcheck): Fixes #1168, #895, #855, #1158
https://github.com/atom/node-spellchecker/issues/30
2016-02-01 10:01:17 -08:00
Evan Morikawa
039be8d8db Merge pull request #1177 from mbilker/update-csslint
Bump grunt-contrib-csslint to to ~0.5.0
2016-02-01 11:31:05 -05:00
mbilker
7c5790258e bump(grunt-contrib-csslint): update to ~0.5.0 2016-02-01 10:10:12 -05:00
Ben Gotow
bf0f3828dc fix(thread-list): Remove dup accountIds to avoid extra work 2016-01-30 15:00:20 -08:00
Ben Gotow
0abc5d5def security(*): Disable eval in all windows (#1159) 2016-01-29 19:25:31 -08:00
Ben Gotow
e37c95bb4d fix(send+archive): Update to use focused perspective 2016-01-29 19:01:47 -08:00
Ben Gotow
c8d8bd0aee fix(thread-list): AccountId resolution for items outside loaded range 2016-01-29 17:56:57 -08:00
Evan Morikawa
ec553b0c3d fix(pref): check for mounting on async launch service 2016-01-29 17:11:54 -08:00
Ben Gotow
e6360cf18b feat(screenshot-mode): Minor fix to unmount method 2016-01-29 16:59:51 -08:00
Ben Gotow
d61becc549 feat(screenshot-mode): Tiny feature for removing PII when taking debug screenshots 2016-01-29 16:39:07 -08:00
Ben Gotow
3c9db9bd85 fix(activity): "Long Polling" => "Delta Streaming" because we don't really poll. 2016-01-29 16:06:33 -08:00
Ben Gotow
eec7c829ce fix(dropdown): Open up or down depending on position 2016-01-29 15:52:40 -08:00
Ben Gotow
2027901deb fix(uploads): Consolidate logic, use Promisify, path.join 2016-01-29 14:45:53 -08:00
Ben Gotow
960d2cf67b fix(drafts): Increase syncback delay to 10s 2016-01-29 14:43:52 -08:00
Juan Tejada
a3b686e546 fix(electron): Update api usage to require('electron') 2016-01-29 14:24:33 -08:00
Juan Tejada
d8e139764a fix(electron): Update beforeunload event handler (see details):
- This fixes unresponsive draft items in the draft list, i.e. draft
  windows would not reopen after opening them the first time.
- The `beforeunload` handler will no longer hide a window before its
  actually closed. To reduce visible latency when closing, we moved
  saving window state to the `unload` event handler.
- Before unload was hiding the window before actually closing it. A
  hidden window causes chromium to throttle its renderer process for
  performance, even though `pageVisibility` was set to true (see
  https://github.com/atom/electron/issues/3225 for more detils).

  NylasEnv.finishUnload is used in this context: When a `beforeunload`
  callback prevents the window from closing, it can close it at some point
  in the future using finishUnload. NylasEnv.finishUnload uses _.defer to make
  sure we don't call `close` inside the `beforeunload` call stack so the
  window doesn't go crazy.

  However, since _.defer was being called in the renderer process of a
  hidden window, the deferred callback execution could end up delayed by
  a second or more, which effectively delayed closing the window by a
  second.

  If we tried to reopen a window with the same window props, e.g. a
  draft window, before it was actually closed, the app would go crazy
  and wouldn't open it.

  So now we just don't hide windows on beforeunload
2016-01-29 14:24:33 -08:00
Ben Gotow
48a64e7fef fix(focus): Don't clear when item is scrolled out of retained range 2016-01-29 12:34:58 -08:00
Ben Gotow
86c154db9d fix(mail-rules): Preserve through db version change until cloud metadata service is ready 2016-01-29 11:56:53 -08:00
Juan Tejada
5c6a40ae96 fix(styles): Actually fix styles for faded recipient list 2016-01-29 11:18:28 -08:00
Juan Tejada
f4f9db9310 fix(styles): Fix styles for faded recipient list 2016-01-29 11:13:25 -08:00
Juan Tejada
6c8a8bca8c fix(styles): Cleanup less files for account sidebar and switcher 2016-01-29 11:03:52 -08:00
Ben Gotow
178f843a0d fix(contacts): Bound the size of the ranked contact cache 2016-01-29 10:58:28 -08:00
Ben Gotow
180da72b77 fix(notifs): Categories inside Threads need accountId. Fixes #1155 2016-01-29 10:49:45 -08:00
Juan Tejada
21ebd82ece fix(sidebar): Update sidebar correctly when an account added or removed 2016-01-29 10:21:49 -08:00
Evan Morikawa
0606d9009e Merge pull request #1145 from mbilker/fix-linux-spellchecker
Fix logic for en_US default dictionary on Linux
2016-01-29 10:16:20 -08:00
Juan Tejada
c674be10ec fix(lint): Indentation 2016-01-29 10:01:11 -08:00
Ben Gotow
f1a9080518 feat(me): Display "Me (Account Label)" in unified inbox 2016-01-29 09:29:25 -08:00
Ben Gotow
21aa4b4291 perf(accounts): Cache accountForId - need ordered map...
In general, we call the functions in AccountStore and CategoryStore / constantly / and inside of critical places like thread list render. Would be nice to create a safe and generic way of caching things and invalidating them when data changes.
2016-01-29 00:42:56 -08:00
Ben Gotow
08935e1044 fix(msg-list): Stop computing timestamps inside invisible tooltip 2016-01-29 00:37:32 -08:00
Ben Gotow
0aac00756a fix(query): Invalidate in-flight updates when query changes 2016-01-29 00:31:58 -08:00
Ben Gotow
183cbaff17 fix(config): observe fires immediately, causing re-renders 2016-01-29 00:31:10 -08:00
Ben Gotow
140162dcd3 fix(db): Pool, flush change records rather than cancel queries 2016-01-28 23:20:19 -08:00
Ben Gotow
45d897ce0a fix(json-blob): ClientIds on JSONBlob should just be key 2016-01-28 23:20:19 -08:00
Juan Tejada
d3766c1990 fix(thread-model): Remove check that prevents thread to update correctly
- Since Thread#labels and Thread#folders are now aliased to
  Thread#categories, Thread#fromJSON had to populate the categories array
  correctly. However it, was only being populated from json if the
  categories array was undefined, which prevented the categories from
  being populated when API updates were received.
2016-01-28 19:55:42 -08:00
Juan Tejada
be73b8bea8 fix(account-switcher): Don't display "All Accounts" when only 1 account 2016-01-28 19:53:12 -08:00
mbilker
6da8b2c824 fix(spellchecker): add back in split call
Fixes the spec test when only the language (e.g. 'en') is supplied and still
recognize the language.
2016-01-28 22:10:01 -05:00
mbilker
a559e41ba0 fix(spellchecker): check both replacements of '_' and '-' in dictionary array 2016-01-28 22:10:01 -05:00
mbilker
dbdd460e71 fix(spellchecker): broken array check logic for en_US default 2016-01-28 22:10:01 -05:00
Greg Bowler
4b68f47040 Check metaKey and ctrlKey presence for multi platform support
Fixes #388
2016-01-28 18:34:59 -08:00