Commit graph

2062 commits

Author SHA1 Message Date
Ben Gotow 71a5662553 🎨: Smaller buttons, smaller toolbar, smaller text
This should not be considered final, but we do plan to shrink the size of the entire UI slightly to match platform conventions.
2016-02-09 19:45:24 -08:00
Evan Morikawa aef2abdc9e Rename windows updater files 2016-02-09 16:16:56 -08:00
Drew Regitsky f3c64c3871 fix(plugin-auth): change auth function params 2016-02-09 15:50:55 -08:00
Ben Gotow f8e30513f8 fix(important): Icon does not update from nextProps 2016-02-09 15:02:11 -08:00
Ben Gotow ee17baacc7 fix(csp): other URL schemes don't count as '*' 😶 2016-02-09 15:02:11 -08:00
Evan Morikawa c9c5af6573 fix(updater): update to Squirrel.Windows 1.2.3
grunt-electron-installer 1.2.1 includes a bump to squirrel 1.2.3
2016-02-09 12:03:43 -08:00
Evan Morikawa 5e9e2b5f47 fix(win): fix typo in nylas-win-bootup 2016-02-09 11:43:30 -08:00
Ben Gotow 78f1473ca3 fix(csp): Allow image-src *, fixes #1254 2016-02-08 22:42:29 -08:00
Ben Gotow 6e49dbd2c3 bump(*): Electron 0.36.7, version to 0.4.6 2016-02-08 18:35:23 -08:00
Ben Gotow 99952bc2fa fix(delete-category): Resolve regression in error message (#1244) 2016-02-08 17:42:48 -08:00
Ben Gotow d4e7b7e712 fix(readme): Force github to refresh cache of screenshot 2016-02-08 14:52:07 -08:00
Ben Gotow 9bed0e6380 fix(tray): Do not show count on Mac OS X when 0. Fixes #1233 2016-02-08 10:31:13 -08:00
Ben Gotow e5a424c5bf bump(changelog): Notes for 0.4.5 2016-02-07 12:39:47 -08:00
Ben Gotow 9e14f2207f perf(accounts): Use cached contact objects in accountForEmail
This method is called for every contact on a thread in the thread list, so I figured we should see if one version was faster. I ran this test code:

```
d = Date.now(); for(var ii = 0; ii < 10000; ii ++){ $n.AccountStore.accountForEmail("ben.gotow@gmail.com") }; console.log(Date.now() - d);
```

The other approach which calls meUsingAlias takes `3784ms`, and this version which uses the alias contacts cached in aliases() only takes `264ms`. Confirmed that the tests still pass.
2016-02-07 11:23:19 -08:00
Ben Gotow 39e92afac3 fix(threads): Circular include blocking FocusdPerspectiveStore. Sentry #11763 2016-02-07 11:10:48 -08:00
Juan Tejada 88b86c2fb4 🎨(contact): Reuse AccountStore.accountForEmail inside isMe 2016-02-07 01:34:30 -08:00
Ben Gotow 562d121bd6 fix(categories): Fix Sentry #11613 2016-02-07 01:08:38 -08:00
Juan Tejada 58725b98ef fix(account-store): Correctly check alias email inside accountForAlias
- Add spec
2016-02-07 00:39:11 -08:00
Ben Gotow fcc8ca8b07 fix(system-start): Do not continue when checkAvailability returns false 2016-02-06 11:35:01 -08:00
Ben Gotow aa5d6da0da fix(remove-from-trash): Fixes Sentry #11551 2016-02-06 11:28:14 -08:00
Ben Gotow a2547dc9b2 fix(contacts): Allow for contacts with no emails (Sentry #11535) 2016-02-06 01:38:56 -08:00
Ben Gotow e405e595d2 Merge pull request #1210 from mbilker/fix-remote-undefined
Define the remote variable
2016-02-06 01:21:17 -08:00
mbilker 89c5279d7d fix(events): define the remote variable
This code triggers when a window is supposed to close, but this error
causes the DevTools to open and the window not exiting
2016-02-06 01:20:03 -05:00
Ben Gotow 0e661ec996 fix(undo): Ensure undo bar dismisses after re-appearing 2016-02-05 19:11:27 -08:00
Ben Gotow a6d8783dae fix(messages): Field label was always "To" 2016-02-05 18:42:29 -08:00
Ben Gotow ca31ee10bd feat(perspective): Restore through NylasEnv.savedState 2016-02-05 18:36:48 -08:00
Ben Gotow e6a2bf3f4f bump(changelog): Release notes for 0.4.4 2016-02-05 15:45:13 -08:00
Ben Gotow 1cd49d952d fix(message): Allow height to be 0, remove 150px min height 2016-02-05 15:33:07 -08:00
Ben Gotow 50bd559623 fix(tray): Fix accidental conversion to NaN 2016-02-05 14:37:55 -08:00
Juan Tejada 3e8ce3d2ff fix(account-store): Set focused perspective when account removed 2016-02-05 14:30:10 -08:00
Ben Gotow f15244e8ef fix(search): Don't show loading dots forever if requests fail 2016-02-05 14:29:02 -08:00
Juan Tejada 199150188d fix(sidebar): Handle edge cases for sidebar shortcuts
Summary:
- Update menus and shortcuts correclt when accounts change or focused
  accounts change
- Move menu logic into SidebarCommands to remove duplicated logic
- Make `Window` menu also contain checkboxes

Test Plan: - Manual

Reviewers: evan, bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D2534
2016-02-05 14:25:07 -08:00
Ben Gotow 57e7df8356 fix(db): Allow string attributes to be null. Never coerce to ""
- Fixes a bug where reply_to_message_id = "" when we receive drafts from the sever.
- In general behavior should be consistent with API. Since they allow null we should too.
2016-02-05 13:49:18 -08:00
Ben Gotow ddb91b7e75 fix(zoom): Disable "double tap to zoom" behavior 2016-02-05 13:25:54 -08:00
Ben Gotow cc8a32e22f fix(toolbar): Don't show the toolbar when rangeInScope is null 2016-02-05 13:11:09 -08:00
Ben Gotow 8a40af6830 fix(labels): Re-order so adding/removing same label does nothing 2016-02-05 12:00:58 -08:00
Ben Gotow eb5b849a03 revert(list-selection): Using clientIds had unintended consequences 2016-02-05 10:17:41 -08:00
Juan Tejada 2b6ed11828 fix(sidebar): Display correct keyboard shortcuts in account switcher
- Fixes #1203
2016-02-05 09:55:27 -08:00
Ben Gotow 1afd380118 lint(outbox): 😞 2016-02-04 20:20:33 -08:00
Ben Gotow 835e7fe9c8 perf(outbox): Only trigger when send draft tasks are present 2016-02-04 20:15:15 -08:00
Ben Gotow bbc4b792c9 fix(db): QuerySubscription should trigger if interim changes did not impact result set 2016-02-04 20:14:26 -08:00
Ben Gotow dea2926179 perf(threads): Add an index specifically for the "starred" view 2016-02-04 20:13:49 -08:00
Ben Gotow cbfad02d2b perf(threads): Add shortcut for common case in emailIsEquivalent, avoid RegExp.exec 2016-02-04 20:13:43 -08:00
Ben Gotow 1ca2e930ef perf(threads): Cache aliases to avoid GC thrashing in isMeAccount 2016-02-04 20:13:37 -08:00
Ben Gotow 40bfab40c0 revert(nylas-env): Moving windowEventHandler init broke menus 2016-02-04 20:12:55 -08:00
Juan Tejada c0e8dc7ccb fix(styles): Fix less lint error 2016-02-04 18:19:26 -08:00
Juan Tejada 359487a132 fix(thread-list): Fix drag and drop to new folders/labels 2016-02-04 18:18:22 -08:00
Juan Tejada 774957a5ff update(sidebar): Update sidebar design + context menus
Summary:
- Removes account switcher almost entirely
- Update context menu to edit and delete sidebar items
- Gross hardcoded position and size for the switcher icon -- will likely update with later redesign

Test Plan: - Visual

Reviewers: evan, bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D2527
2016-02-04 14:58:47 -08:00
Ben Gotow 91240f8979 feat(outbox): Sending status now appears beside drafts
Summary:
This diff adds an "OutboxStore" which reflects the TaskQueue and
adds a progress bar / cancel button to drafts which are currently sending.

- Sending state is different from things like Send later because drafts
  which are sending shouldn't be editable. You should have to stop them
  from sending before editing. I think we can implement "Send Later"
  indicators, etc. with a simple InjectedComponentSet on the draft list
  rows, but the OutboxStore is woven into the DraftList query subscription
  so every draft has a `uploadTaskId`.

- The TaskQueue now saves periodically (every one second) when there are
  "Processing" tasks. This is not really necessary, but makes it super
  easy for tasks to expose "progress", because they're essentially
  serialized and propagated to all windows every one second with the
  current progress value. Kind of questionable, but super convenient.

- I also cleaned up ListTabular and MultiselectList a bit because they
  applied the className prop to an inner element and not the top one.

- If a DestroyDraft task is created for a draft without a server id, it
  ends with Task.Status.Continue and not Failed.

- The SendDraftTask doesn't delete uploads until the send actually goes
  through, in case the app crashes and it forgets the file IDs it created.

Test Plan: Tests coming soon

Reviewers: juan, evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D2524
2016-02-04 14:14:24 -08:00
Dakota Nelson 2a692456b3 Disallow Gmail accounts from entering IMAP flow
Summary:
The error message from D2515 is being upgraded to also disable the
continue button so that a user is unable to sync an @gmail.com account
using the IMAP flow.

Test Plan: Tested locally.

Reviewers: bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D2516
2016-02-04 09:54:01 -08:00