Commit graph

1681 commits

Author SHA1 Message Date
Annie
cd1f39f2fa fix(email): Fix email body height bug #1280
Summary: Some emails were having their body height set to 0 if their height was dependent upon the iframe height -- e.g. body.height equals 100% or inherit. Added a check to see if height computed to 0px and if so, set the height to auto.

Test Plan: Tested with emails on my computer

Reviewers: juan

Reviewed By: juan

Differential Revision: https://phab.nylas.com/D3100
2016-07-19 16:38:59 -07:00
Evan Morikawa
eebc6c5c9b fix(delta): add N1 token to delta stream connection 2016-07-13 22:02:48 -07:00
Evan Morikawa
192f6a75b6 fix(login): fix error thrown when login fails for IMAP 2016-07-13 15:55:45 -07:00
Carson Ip
347fcd8c2d Fix incorrect port number when using https (#2600)
When APIRoot is using https, the port will forced to be 443 even when APIRoot
indicates another port. This is because of the line options.port = 443
overwriting the correct options.port extracted by url.parse. This is fixed by
removing the problematic line. The default port is still 443 if you look into
https.js. In case we want a different default port in the future, we can do
options.port = options.port || 443.
2016-07-12 12:03:13 -07:00
Evan Morikawa
6661693860 fix(onboarding): Fix Rx.Observable.fromQuery not defined bug 2016-07-11 18:07:45 -07:00
Annie
39e5a2ee96 refactor(signatures): Removed old signature imgs and made static empty signatures page
Summary:
Refactored signature preferences page to allow more signatures than the previous 1-1 mapping for signatures and accounts. Created a multi select dropdown of the accounts for which a certain signature is set as default for. Added a button into the draft header From field to toggle between saved signatures.

refactor(signatures): Add basic add/remove capabilities to static

refactor(signatures): Hooked up signature actions and signature store for basic functionality

fix(signatures): Cleaned up signature store and started on multiselectdropdown

fix(signatures): Add multi signature toggle select to multiselect dropdown

build(signatures): Built framework for multiselect dropdown

build(signatures): Toggle button functionality for dropdown

build(signatures): Build multi select from components and add debounce

refactor(signatures): Move signature actions and signature store into flux

fix(signatures): Styled composer signatures button/dropdown and fixed preferences checkmarks

build(signatures): Finish main functionality, about to refactor composer signature button into injected component

fix(signatures): Changed position styles

fix(signatures): Fixed background color for dropdown button when blurred

build(signatures): Began to write tests for signatures store, preferences and dropdown

Test Plan: Wrote tests for preferences signatures, signature store, signature composer dropdown and refactored tests for signature composer extension. For signature composer extension I removed applyTransformsToDraft and unapplyTransformsToDraft and tested by sending emails with signatures to different providers to make sure the <signature> tag caused problems.

Reviewers: bengotow, juan

Reviewed By: juan

Differential Revision: https://phab.nylas.com/D3073
2016-07-11 12:35:41 -07:00
Aaron Sikes
e3380508a6 Clear notifications when emails are read
Fixes #1393

The objects returned by `new Notification()` have  a `.close()` method.
So we can just keep a list of notifications that have been sent, and
close them when that message has been read.

Conflicts:
	internal_packages/unread-notifications/lib/main.es6
2016-07-08 11:36:51 -07:00
Aaron Sikes
7d66cdbcac Change pending unread notification stack to be a queue (#2517)
* Remove double negative from test label

It always takes me a second to read a double negative, and be sure I
understood correctly. It's also particularly troublesome for non-native
English speakers.

* Change pending unread notification stack to be a queue

Consider the case where a user launches N1, and has 3 unreads since
their last launch. Additionally, after N1 has launched, they begin
receiving a new mail every 2 seconds.

Current behavior would be a notification for 1 of the 3 unread emails,
then every 2 seconds a notification for the most recently received mail.
They would only finally receive notifications for the other 2 original
messages once they stopped getting new mail.
2016-07-08 11:30:33 -07:00
Logan Davis
d1003fbac4 pgp-plugin update (#2534)
* Fix private key email-adder, add "no private key" error

The decrypt UI is seriously confusing some people. This commit
adds an error message that should at least stop them from trying
to decrypt a message without a private key to speak of. Also,
there was a dumb hardcoded true in validAddress.

* Adds incorrect passphrase notification; enables carriage return for popover

The passphrase popover was woefully inadequate. It didn't tell users
when they had the wrong password - it just closed without saying anything -
and you couldn't even use carriage return to submit the password.
This commit fixes those mistakes by buffing out passphrase-popover.cjsx.

* Adds private key popover to decrypt button

The decrypt UI was confusing and didn't provide the user with
an option to get a key imported from the message view. This
mondo commit adds an entirely new popover so that the user
never again will be forced to go to the preferences page.

* Adds more forgiving encrypted block parsing

* Overhauls decryption error handling

The decrypt UI didn't clearly communicate error messages from the
failure in PGPKeyStore.decrypt up to the user. This commit adds
nice error surfacing as well as some pretty colors.

* Fix encrypt modal key miscount error via getKeyContents coercion

On Linux and Windows, fs.watch double-triggers on some actions in
the key folder, for reasons that aren't super clear. This was causing
issues where the encrypt modal would report not having a key loaded
even though the key was totally loaded and saved. This commit sort
of kludgily forces the modal to run getKeyContents for every key
it has saved right before it returns them all. This would probably
be better fixed with a refactor the the PGP Keystore.

* remember to close popover, d'oh

* patch key picker modal styling for Linux and Windows

* response to review
2016-07-08 11:29:10 -07:00
Ollie Ford
4b7b2f20f5 removes phishing warning for different subdomains (#2420)
This commit improves on nylas/N1#2343 (which allowed From and
Reply-To to be different aliases @ the same domain) by allowing the
address to differ by a subdomain.

For example, the pairs:

    From: foo@bar.com
    Reply-To: foo@sub.bar.com

    From: foo@bar.co.uk
    Reply-To: foo@other.bar.co.uk

    From: foo@bar.com
    Reply-To: foobar@bar.com
are each now allowed without warning.
2016-07-08 11:20:19 -07:00
Ben Gotow
6c3bcf99ad fix(auth): ssl_required => true instead of "on" 2016-06-30 13:38:54 -07:00
Evan Morikawa
53eb7f58aa fix(github): fix view on Github buttton
Error due to action import.
Convert to ES6
2016-06-17 10:07:05 -04:00
Juan Tejada
e87096d7a3 fix(quoted-text): Add option to remove quoted-text, fix styles
- #2323
2016-06-16 15:37:58 -07:00
Jackie Luo
42e876ab1f feat(spellcheck): Add option to disable spellcheck 2016-06-16 15:12:19 -07:00
Jackie Luo
a04c1f4224 fix(subscription): Change copy to be less confusing 2016-06-16 12:23:06 -07:00
Annie
7004bf94ce fix(label-nesting): maintain nested labels when renaming a label
Summary:
when renaming nested labels, maintain nested path
fixes #2402

Test Plan: created nested labels and successfully tested in dev

Reviewers: juan

Reviewed By: juan

Subscribers: evan

Differential Revision: https://phab.nylas.com/D3028
2016-06-15 16:48:26 -07:00
Halla Moore
ce8cdf8cd7 fix(specs): Fix specs on Linux
Summary: Specs were failing on Linux, this diff fixes them.

Test Plan: Unit tests

Reviewers: evan, juan

Reviewed By: juan

Differential Revision: https://phab.nylas.com/D3029
2016-06-15 16:30:52 -07:00
Keith Armstrong
4ed1f590ce Update broken links for guides, docs, and API (#2455)
Also updated schemes of some links to https for consistency
2016-06-15 15:29:52 -07:00
Jackie Luo
2f48b77d1a fix(identity): Convert datetimes to milliseconds 2016-06-14 15:04:18 -07:00
Ben Gotow
0a45a5b039 fix(keybase): Don't run specs which require keybase API 2016-06-14 13:26:10 -07:00
Ben Gotow
72cd732ebf Pgp patch (#2430)
* update icons

* style commit

* Debugs export function

The key Export function used to not successfully show items in
their directories and also depend on the most recent attachment
download location. This commit adds a new savedState attribute
just for Keybase keys and also handles the case where that value
is null.

* Forces delete to populate

fs.watch() was acting up and not triggering populates on deletes.
Now deleteKey() just triggers a populate.

* Re-enables decryption of attachments from Enigmail

Decryption of attachments was disabled in the Great Password Popover
Refactor of Early June 2016. This commit adds that feature back
(and makes some changes to getKeyContents to facilitate that
change).
2016-06-14 13:22:38 -07:00
Ben Gotow
5810aeeefc fix(keybase): Invite fetch doesn't need JSON parse 2016-06-14 12:26:43 -07:00
Ben Gotow
e1a565b061 fix(keybase): Add a small button to redeem a keybase invite 2016-06-13 17:40:21 -07:00
Jackie Luo
47115a5000 fix(view-on-github): Import Actions correctly 2016-06-13 16:19:46 -07:00
Ben Gotow
e44e4e27c4 fix(onboarding): Minor asset tweaks 2016-06-13 15:19:01 -07:00
Ben Gotow
76fac0c6c0 fix(pro): Add manual refresh to identity page 2016-06-13 12:06:53 -07:00
Evan Morikawa
ce16e2e033 fix(identity): enable proper People support 2016-06-12 21:13:46 -04:00
Ben Gotow
182683cd06 fix(pro): Replace subscriptionRequiredAfter 2016-06-10 14:36:37 -07:00
Ben Gotow
d4d366edc0 fix(sending): Minor changes to cleanup phase of sending 2016-06-10 12:35:56 -07:00
Ben Gotow
aba4b7d6b9 fix(emoji): Remove vertical overflow from composer, allow for popups 2016-06-09 17:51:08 -07:00
Jackie Luo
6743f85278 fix(emoji): Stop checking text outside of current div for matches 2016-06-09 16:50:49 -07:00
Jackie Luo
31edbfc361 🎨(darkside): Add UI tweaks for activity list 2016-06-09 16:11:27 -07:00
Evan Morikawa
f593fbf6cd fix(templates): fix new templates from draft 2016-06-09 15:21:20 -07:00
Evan Morikawa
7cafc3ac1b fix(template): can hit enter to save template names 2016-06-09 15:21:20 -07:00
Jackie Luo
8ef4d8c0f3 fix(typo): Correct spelling in error message 2016-06-09 15:04:00 -07:00
Evan Morikawa
903e5834c1 fix(templates): detect empty bodies and fix CSS 2016-06-09 15:00:58 -07:00
Ben Gotow
4543f47709 fix(auth): Don't use a persistent session for webview 2016-06-09 10:30:27 -07:00
Ben Gotow
9373aee8fb fix(prefs): Use labels instead of email addresses 2016-06-08 18:25:45 -07:00
Evan Morikawa
4c0da37b00 fix(welcome): pass utm on to welcome 2016-06-08 14:19:40 -07:00
Ben Gotow
3ed9ca6058 fix(onboarding): Switch images into appropriate places 2016-06-08 14:10:09 -07:00
Ben Gotow
5ff40f989a fix(onboarding): Final tutorial screenshot 2016-06-08 14:05:18 -07:00
Ben Gotow
7d52bb0d3c fix(onboarding): Don't allow going back into N1 signin 2016-06-08 13:48:56 -07:00
Evan Morikawa
5214294e6f fix(analytics): fix identify 2016-06-07 18:19:41 -07:00
Jackie Luo
adf1113361 fix(plugins): Update plugin descriptions 2016-06-07 16:41:04 -07:00
Ben Gotow
63972d4390 fix(keybase): Remove fdescribe 2016-06-07 14:50:33 -07:00
Juan Tejada
38e3897407 fix(search): Prevent from adding duplicate threads to the search index
- We have to manually check if we are inserting a thread to the index
that already exists because the virtual table does not support unique
indexes
- Add versioning to the index to be able to rebuild it for the next
update
2016-06-07 14:41:39 -07:00
Ben Gotow
78166a9d10 fix(keybase): Minor linter errors 2016-06-07 14:25:59 -07:00
Ben Gotow
c35e9a564d fix(keybase): Disable by default, remove duplicate dependencies 2016-06-07 14:15:54 -07:00
Evan Morikawa
445d98c59a fix(analytics): update people traits 2016-06-07 13:52:08 -07:00
Evan Morikawa
c7e2beee8b fix(analytics): improved analytics 2016-06-07 13:38:47 -07:00