Commit graph

2666 commits

Author SHA1 Message Date
Jackie Luo
5be8811e33 fix(theme-picker): Move launch command to activate() 2016-03-08 17:32:23 -08:00
Jackie Luo
f526bb2736 feat(theme-picker): Uninstall themes on click
Summary: Themes can now be uninstalled by clicking a button in the theme picker, instead of going to `~/.nylas/packages` to delete the directory.

Test Plan: Tested locally.

Reviewers: evan, bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D2700
2016-03-08 17:08:35 -08:00
Drew Regitsky
327eb43932 fix(sync-errors): Handle account deltas indicating sync issues
Summary:
Changes the delta code to handle new deltas on the Account object,
which are triggered by changes in sync state indicating various backend
issues. Saves the sync state in a new field on the Account object, which
is persisited in `config.cson`.

Includes several UI changes to display more information when an account has
backend sync issues. Adds better messages and new actions the user can take
based on the type of sync issue.

Additionally, fixes bug in action bridge that was preventing multi-arg global
actions from working.

Test Plan:
Manual, by testing different sync state values and triggering deltas from the
backend

Reviewers: juan, evan, bengotow

Reviewed By: evan, bengotow

Subscribers: khamidou

Differential Revision: https://phab.nylas.com/D2696
2016-03-08 16:06:04 -08:00
Jackie Luo
dc32533bf8 update(readme): Add Material 2016-03-08 15:51:11 -08:00
Ben Gotow
0c430a470c bump(asar): 0.10, use ordering feature we PR'd [TEST CI] 2016-03-08 15:21:28 -08:00
Ben Gotow
0393ab38da Merge pull request #1506 from nylas/osx-shortcuts-improvement
Add Mail.app keybinds
2016-03-08 14:14:02 -08:00
sdewith
cd715359f5 Some fixes
Fixed based on Ben’s feedback, should be good to go now.
2016-03-08 13:23:18 -08:00
Ben Gotow
3c0b86233d fix(body-processor): Observe the db to clear cache. Fixes #1133
Summary:

Test Plan:

Reviewers:

Subscribers:
2016-03-08 13:14:06 -08:00
Ben Gotow
099b525bf3 Merge pull request #1592 from brycedorn/patch-1
add toogabooga theme to readme
2016-03-08 11:02:42 -08:00
Ben Gotow
2376dd1a0f fix(specs): Override configDirPath when running specs within app. Fixes #1133 2016-03-08 10:54:39 -08:00
Ben Gotow
025d4b4081 fix(launch): Do not create global symlinks to N1 and apm. Closes #1553 2016-03-08 10:34:12 -08:00
Ben Gotow
2a7a97eebc fix(autolinker): PR accepted into 0.24.1, fixes #839 2016-03-08 10:22:08 -08:00
Evan Morikawa
0f395b8918 fix(lint): fix linter issues 2016-03-08 13:02:10 -05:00
Drew Regitsky
b2db5190c8 test(plugins): Add specs, refactor/fixes for open and link tracking
Summary:
Add specs to test the components of open tracking and link
tracking. Notably does not test the overall functionality, which
still needs specs.

Test Plan: adds specs

Reviewers: juan, evan, bengotow

Reviewed By: evan, bengotow

Differential Revision: https://phab.nylas.com/D2667
2016-03-07 20:54:43 -08:00
Drew Regitsky
f1d3959591 fix(send): make send/syncback draft tasks cooperate, fix task ordering tracking
Summary:
Fixes an issue with sending where certain conditions could result in a
duplicated message.

Fixes task dependency logic for draft syncback and send. Changes `createdAt`
on tasks to instead be `sequentialId`, assigned when the task is queued, to
track order of enqueueing. Renames `isDependentTask` => `isDependentOnTask`
and adds comments for clarity.

Test Plan:
Specs updated. Might be good to add some later to test this particular
edge case.

Reviewers: juan, evan, bengotow

Reviewed By: evan, bengotow

Differential Revision: https://phab.nylas.com/D2681
2016-03-07 20:14:58 -08:00
Drew Regitsky
8961781ed5 fix(msg-ctrls): reorder hidden options to reduce accidental error reports 2016-03-07 18:24:31 -08:00
Ben Gotow
43857d4b79 fix(autoload-images): Bar disappears when you choose to load images 2016-03-07 18:19:17 -08:00
Ben Gotow
9fd0f82aa5 💄(search): Show focus around search input 2016-03-07 18:19:17 -08:00
Juan Tejada
37af2ba42c fix(remove-from-view): Fix logic for delete/remove-from-view behavior:
Summary:
- Separate gmail's remove-from-view and delete behaviors and write logic
  for each of those
  - Remove MailboxPerspective::{canArchiveThreads, canTrashThreads,
    removeThreads} and some unecessary code in TaskFactory
  - Instead, add MailboxPerspective::tasksForRemovingFromPerspective (I
    know its a bit of a mouthful)
  - I initially tried to put all of the logic for each execution path
    inside the TaskFactory by checking perspective types, but it made
    more sense to use the polymorphism already in place for the different
    perspective types.
  - There is a default delete/remove-from-view behavior which is
    configurable via simple ruleset objects. The gmail behavior is
    configured in this way.
- Update swipe css classes based on destination of threads
- Fixes #1460:
  - Update logic to display archive/trash buttons and context menu options correctly
    when selected threads can be archived/trashed (not based on
    perspective)
  - Same for swiping
- Add a bunch of specs
- Convert some code to ES6
- TODO write some docs for new functions

Test Plan: Unit tests

Reviewers: drew, evan, bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D2682
2016-03-07 18:16:37 -08:00
Juan Tejada
848bb09f84 fix(date-utils): Add localization to date formats
Summary:
- Setting the locale in moment was not sufficient to actually use the
  correct localized formats.
- Moment provides localized format via the formats : 'L', 'LL', 'll',
  etc. See: http://momentjs.com/docs/#/displaying/format/
- Updates to set our date formats based on localized formats:
  - Unfortunately, localized formats always contain the year, so I
    manually removed the year from our short format.
- Actually fixes: #1515
- Fixes bug where setting nextWeek or thisWeekend returned incorrect
  date if the current day was saturday or sunday
- Add specs

Test Plan: Unit tests

Reviewers: evan, drew, bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D2688
2016-03-07 16:44:54 -08:00
Bryce Dorn
cdbfb84237 add toogabooga 🐃 2016-03-07 11:24:21 -06:00
Jackie Luo
7758cf2a61 spec(theme-picker): Remove filter for theme picker spec 2016-03-06 16:37:36 -08:00
Jackie Luo
22189f91e6 🎨(theme-picker): Add inline style to close button 2016-03-06 16:36:28 -08:00
Jackie Luo
2fe8650cc4 fix(theme-picker): Fix linter issue 2016-03-06 15:25:52 -08:00
Juan Tejada
02ca6ff73e bump(submodule): Add eslint to arc 2016-03-06 14:47:49 -08:00
Ben Gotow
765c804963 Merge pull request #1574 from mxstbr/master
Fix link to cypher
2016-03-05 15:52:21 -08:00
Ben Gotow
1dcb7ace96 bump(version): 0.4.11 beta 2016-03-05 12:13:15 -08:00
Jackie Luo
5f2d6c2e35 fix(theme-picker): Update spec to work with iFrame rewriting function 2016-03-05 11:24:37 -08:00
Max
092983aaf4 Fix link to cypher 2016-03-05 18:17:00 +01:00
Jackie Luo
8b93d34c18 fix(readme): Update theme starter link 2016-03-04 16:59:02 -08:00
Jackie Luo
36ac03de5d update(readme): Add link to theme starter code 2016-03-04 16:57:10 -08:00
Jackie Luo
ba0312501a feat(theme-picker): Add visual theme picker to menu
Summary: Adds a new visual theme picker to the menu that allows users to select different themes based on color palettes and then change their themes live.

Test Plan: Test included.

Reviewers: evan, bengotow

Reviewed By: evan, bengotow

Differential Revision: https://phab.nylas.com/D2669
2016-03-04 15:34:48 -08:00
Evan Morikawa
b1c6527990 feat(onboarding): update account-choose page 2016-03-04 16:53:26 -05:00
Evan Morikawa
ec187ab63f feat(onboarding): restyle step 3 2016-03-04 16:48:16 -05:00
Evan Morikawa
1b69adb1bb feat(onboarding): style page 2 2016-03-04 16:48:16 -05:00
Evan Morikawa
6a690723ae feat(onboarding): style page 1 2016-03-04 16:48:16 -05:00
Ben Gotow
5a3f7ad26c fix(auth): re-enable ssl_required checkbox with backend support 2016-03-04 13:29:18 -08:00
Evan Morikawa
c79e60cd57 fix(win): fix minor styling for buttons on windows 2016-03-04 14:37:11 -05:00
logandavis
1dae837828 Allow testing against local auth stack
Summary:
This commit changes how N1 parses config.cson very slightly
so that when "env" is set to "local" N1's auth flow can be
tested against local copies of Nylas' auth servers.

Test Plan: I tested it manually against a local auth stack. It worked!

Reviewers: bengotow

Reviewed By: bengotow

Subscribers: kav-ya

Maniphest Tasks: T6690

Differential Revision: https://phab.nylas.com/D2671
2016-03-04 11:16:43 -08:00
Jackie Luo
30fd7ff25f update(readme): Update themes and add new plugins 2016-03-04 11:14:54 -08:00
Juan Tejada
248467894e fix(lint) 2016-03-04 10:28:48 -08:00
Ben Gotow
ba0a2f0294 fix(onboarding): Do not load themes in the onboarding window
Do not load user themes into the onboarding window, because it uses a wide range of hard-coded colors and assets and should always be on-brand.
2016-03-03 18:14:03 -08:00
Ben Gotow
7219dd91d7 fix(downloads): Replace stripped extensions, remember folder 2016-03-03 18:00:43 -08:00
Evan Morikawa
e7ebf0ba2c feat(quote): add new quoted text detector for quote strings 2016-03-03 17:30:36 -08:00
Evan Morikawa
4e05fc45c8 fix(quoted-text): add test case for intentional quote text failure 2016-03-03 17:30:36 -08:00
Ben Gotow
422f2f08e5 build(32-bit): Move a few docker files out of root of repo 2016-03-03 17:03:14 -08:00
Ben Gotow
2a69385918 fix(phishing): Tie to MessageStore so it works when msgs aren't ready 2016-03-03 14:39:15 -08:00
Ben Gotow
78fb480642 💄(bars): No email address overflowing phising / autoload images bars 2016-03-03 14:16:54 -08:00
Ben Gotow
6a190f36f8 Merge pull request #1342 from mbilker/linux-32bit-docker
[RFC] Linux 32-bit Docker build
2016-03-03 14:10:41 -08:00
Mehdi Rejraji
cc145132da Updated Regex to exclude mailto: links only
The rationale being it's covering all of the cases while still having a good performance.
Tracking a non-standard URL is not a user experience problem in a way. It's embedded in a <a href> tag.
2016-03-03 13:46:41 -08:00