Commit graph

1031 commits

Author SHA1 Message Date
Ben Gotow dc83e44088 fix(warnings): Warnings due to props not provided before React.cloneElement
See https://github.com/facebook/react/issues/4494
2016-02-02 11:39:53 -08:00
Ben Gotow 77c6026650 💄(composer): Account dropdown aliases styling 2016-02-02 11:33:08 -08:00
Ben Gotow b784dcc3e7 💄(thread-list): Correct top border on selected threads. Fixes #1189 2016-02-02 11:12:28 -08:00
Juan Tejada ae039a6752 Revert "fix(sidebar): Correctly update sidebar when a notif is selected"
This reverts commit 0828badb921c81a9779b2e52ab4829bf0db07410.
2016-02-02 10:58:24 -08:00
Juan Tejada cd2d8f0629 fix(sidebar): Correctly update sidebar when a notif is selected
- Clean up AccountSwitcher a bit
2016-02-02 10:44:18 -08:00
Juan Tejada 7a8e10af0d fix(lint): Fix new eslint rule introduced with babel-eslint upgrade.
See https://phabricator.babeljs.io/T6925
2016-02-01 20:07:36 -08:00
Ben Gotow e5c6036bda fix(contact): Converge on displayName(), don't show account label in ThreadList. Fixes #1157 2016-02-01 19:12:06 -08:00
Juan Tejada 06062fdfe8 fix(prefs): Fix selector for default account for send 2016-02-01 18:34:42 -08:00
Juan Tejada 65a29a250c fix(default-alias):Show correct list of accounts and aliases in composer 2016-02-01 18:34:42 -08:00
Juan Tejada a5383d492f 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 0fb109aeee 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 7612ecc8cd feat(rules): Add "Starred" as an available mail rule filter (#1074) 2016-02-01 13:18:16 -08:00
Juan Tejada 0cfa9848e7 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 4861c3e2ab fix(shortcuts): Add shortcut to mark as spam, fixes #765
- Minor cleanup + docs
2016-02-01 12:21:42 -08:00
Ben Gotow 3d3f7fa315 fix(mailto): test case / parsing for url encoded To field 2016-02-01 11:22:23 -08:00
Ben Gotow 9fb5be752c fix(zoom): Don't zoom the onboarding window 2016-02-01 10:49:34 -08:00
Ben Gotow 685fa625a5 fix(send+archive): Update to use focused perspective 2016-01-29 19:01:47 -08:00
Ben Gotow 12f3ca4f3b fix(dropdown): Open up or down depending on position 2016-01-29 15:52:40 -08:00
Ben Gotow 10a8defc40 fix(uploads): Consolidate logic, use Promisify, path.join 2016-01-29 14:45:53 -08:00
Ben Gotow e56608c254 fix(drafts): Increase syncback delay to 10s 2016-01-29 14:43:52 -08:00
Juan Tejada ced31d7f5d fix(electron): Update api usage to require('electron') 2016-01-29 14:24:33 -08:00
Juan Tejada f35aa79bde 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 1309ebb716 fix(mail-rules): Preserve through db version change until cloud metadata service is ready 2016-01-29 11:56:53 -08:00
Ben Gotow e4727f0562 fix(contacts): Bound the size of the ranked contact cache 2016-01-29 10:58:28 -08:00
Ben Gotow 422d5f8d8f fix(notifs): Categories inside Threads need accountId. Fixes #1155 2016-01-29 10:49:45 -08:00
Evan Morikawa 87a1fc6d29 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 81d9a189e8 fix(lint): Indentation 2016-01-29 10:01:11 -08:00
Ben Gotow 395b7b9226 feat(me): Display "Me (Account Label)" in unified inbox 2016-01-29 09:29:25 -08:00
Ben Gotow b548707671 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 9f97cf2fd5 fix(msg-list): Stop computing timestamps inside invisible tooltip 2016-01-29 00:37:32 -08:00
Ben Gotow d8cc0d52d5 fix(query): Invalidate in-flight updates when query changes 2016-01-29 00:31:58 -08:00
Ben Gotow 179626dc20 fix(config): observe fires immediately, causing re-renders 2016-01-29 00:31:10 -08:00
Ben Gotow cbf97d5c4f fix(db): Pool, flush change records rather than cancel queries 2016-01-28 23:20:19 -08:00
Ben Gotow 333b0b7f36 fix(json-blob): ClientIds on JSONBlob should just be key 2016-01-28 23:20:19 -08:00
Juan Tejada 49e660182d 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
mbilker fab11f649d 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 8efb711bfe fix(spellchecker): check both replacements of '_' and '-' in dictionary array 2016-01-28 22:10:01 -05:00
mbilker 3ec81c5707 fix(spellchecker): broken array check logic for en_US default 2016-01-28 22:10:01 -05:00
Greg Bowler 878d1c0617 Check metaKey and ctrlKey presence for multi platform support
Fixes #388
2016-01-28 18:34:59 -08:00
Evan Morikawa 8f384bb4e8 fix(quoted): fix quoted text issue with single blockquotes
Fixes #1084
Also fixes broken tokenizing text field specs
Also protects `MessageBodyExtension`s from errors
2016-01-28 17:25:36 -08:00
Ben Gotow 12b60e4360 fix(important): Hide important in message column of unified unless Gmail 2016-01-28 16:57:24 -08:00
Ben Gotow db06df0902 fix(account-sidebar): onToggleCollapsed => onCollapseToggled 2016-01-28 16:57:24 -08:00
Ben Gotow 7d782ea084 fix(drag-drop): Fix drop styles in account sidebar 2016-01-28 16:57:24 -08:00
Evan Morikawa b89da75c01 fix(composer): don't blur input field when app blurs
Fixes #852
2016-01-28 16:37:07 -08:00
Evan Morikawa 470a1723a9 fix(sql): fix single quote escaping in array queries 2016-01-28 16:28:10 -08:00
Juan Tejada 5eca866b43 fix(syncback-category-task): Correct request path when updating 2016-01-28 16:25:17 -08:00
Juan Tejada 0c3ca4b6e4 fix(sidebar): Prevent editing items in OutlineView when not allowed
- Fix check in OutlineViewItem
2016-01-28 16:21:21 -08:00
Evan Morikawa decd7c787e fix(apm): no longer overrides apm
Summary: Fixes #39

Test Plan: new tests

Reviewers: juan, bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D2481
2016-01-28 16:06:27 -08:00
Juan Tejada 10a6b76fb7 add(docs): Add docs for OutlineView and OutlineViewItem
- Renames some stuff
2016-01-28 15:28:15 -08:00
Ben Gotow e27c9eaca5 fix(important): Fix bugs in "important" label categorization 2016-01-28 15:27:03 -08:00