Commit graph

40 commits

Author SHA1 Message Date
Ben Gotow 0c2da7a7a4 Always display non-inline image attachments as files in the composer for clarity #1653 2019-10-08 22:43:02 -05:00
Ben Gotow bf389079ac Fix a whole bunch of failing tests that needed ❤️ [7 left] 2019-09-23 13:24:15 -05:00
Ben Gotow 33048e3388 Allow Slate’s default drag-and-drop behavior to pass through the file dropzone 2019-06-14 01:45:38 -05:00
Ben Gotow dee76b0f56 Spring cleaning: codemod spread syntax in place of Object.assign({}, [].concat( 2019-06-11 00:46:17 -05:00
Ben Gotow 21bc2ef398
Upgrade to Slate 0.45.1 for better composer perf and "setStart on Range" error fix (#1518)
* Move to Slate 44, start using types more extensively in Composer

* More types and cleanup

* Expose the editor object to the draft session, try exposing editor to session

* Bump to Slate 45 for https://github.com/ianstormtaylor/slate/pull/2225/files

* How did the unsubscribe plugin get in here

* Bump Slate types, fix TS errors, start testing

* Polish

* Fix issue with emails not shrinking when you close quoted text

* Fix the “remove quoted text” button

* More polish

* Fix issues with PR, improve typings

* Remove spurious log
2019-06-10 19:15:07 -05:00
Matt Lyons f20e9c3f39 Add setting to disable email content max width (#251)
commit 84d0997cdca895d321ed6e70f1ab40cf03b14aa0
Author: Ben Gotow <ben@foundry376.com>
Date:   Sun Jun 9 17:36:38 2019 -0500

    A bit of polish

commit 066963a8111d510cab2d87caaa547bdabe581461
Merge: 06d2e4546 8ed229a7c
Author: Ben Gotow <ben@foundry376.com>
Date:   Sun Jun 9 17:07:20 2019 -0500

    Merge branch 'emailWidthFix' of https://github.com/mattlyons0/Mailspring into mattlyons0-emailWidthFix

    # Conflicts:
    #	app/internal_packages/message-list/lib/message-list.tsx
    #	app/internal_packages/message-list/styles/message-list.less
    #	app/src/config-schema.es6

commit 8ed229a7c7
Author: Matt Lyons <matt@mattlyons.net>
Date:   Wed Oct 25 03:02:03 2017 -0700

    Add setting to disable email content max width

    Closes #228
2019-06-09 17:38:57 -05:00
Ben Gotow df64fe293c Move the attach button to the left side of the composer footer #1508 2019-05-26 17:14:53 -05:00
Ben Gotow da4b34f08a Fix regression in removing quoted text caused by TS conversion #1434 2019-03-26 22:02:39 -07:00
Ben Gotow 149b389508
Replace Babel with TypeScript compiler, switch entire app to TypeScript 🎉 (#1404)
* Switch to using Typescript instead of Babel

* Switch all es6 / jsx file extensions to ts / tsx

* Convert Utils to a TS module from module.exports style module

* Move everything from module.exports to typescript exports

* Define .d.ts files for mailspring-exports and component kit… Yes it seems this is the best option :(

* Load up on those @types

* Synthesize TS types from PropTypes for standard components

* Add types to Model classes and move constructor constants to instance vars

* 9800 => 7700 TS errors

* 7700 => 5600 TS errors

* 5600 => 5330 TS errors

* 5330 => 4866 TS errors

* 4866 => 4426 TS errors

* 4426 => 2411 TS errors

* 2411 > 1598 TS errors

* 1598 > 769 TS errors

* 769 > 129 TS errors

* 129 > 22 TS errors

* Fix runtime errors

* More runtime error fixes

* Remove support for custom .es6 file extension

* Remove a few odd remaining references to Nylas

* Don’t ship Typescript support in the compiled app for now

* Fix issues in compiled app - module resolution in TS is case sensitive?

* README updates

* Fix a few more TS errors

* Make “No Signature” option clickable + selectable

* Remove flicker when saving file and reloading keymaps

* Fix mail rule item height in preferences

* Fix missing spacing in thread sharing popover

* Fix scrollbar ticks being nested incorrectly

* Add Japanese as a manually reviewed language

* Prevent the thread list from “sticking”

* Re-use Sheet when switching root tabs, prevent sidebar from resetting

* Ensure specs run

* Update package configuration to avoid shpping types

* Turn eslint back on - we will opt-in to the TS rules one by one
2019-03-04 11:03:12 -08:00
Ben Gotow 05bd2cdc8c Make all strings in the app run through intl lookup 2018-10-06 23:27:27 -07:00
Ben Gotow f6105daa14 Fix issue with dropping images within uneditable nodes not attaching them #822 2018-07-14 12:58:27 -07:00
Ben Gotow 08f5f8ce2c Fix crash when the draft has no recognized From participant #857 2018-05-22 16:19:57 -07:00
Ben Gotow 7e7447b6b1 Fix small list icon appearing when Chromium scrolls the viewport 2018-04-04 02:56:51 -07:00
Ben Gotow aa674989a0 Include bottom line of toolbar when animating it in, preload icon font 2018-04-04 01:30:23 -07:00
Ben Gotow 9d327cfd84 Composer perf: Defer plugins & toolbar component rendering 2018-02-13 23:37:55 -08:00
Ben Gotow 438705c9dc Fixes for miscelaneous bugs reported via Sentry 2018-02-04 20:02:57 -08:00
Ben Gotow 526a252c36 Wipe Slate’s undo history when unmounting the composer to reclaim RAM 2018-01-30 18:33:35 -08:00
Ben Gotow 8861fa50a8 Fix changing acccounts not changing signature to default signature of new account #570 2018-01-29 15:03:30 -08:00
Ben Gotow e6fb08af41 Don’t treat selection changes in the composer as modifications to the value 2018-01-27 10:28:53 -08:00
Ben Gotow 085c906527 Put tiny “remove quoted text” button back onto quoted text control 2018-01-26 10:57:01 -08:00
Ben Gotow 1a3cca8d0a
Totally overhauled composer based on Slate (#524)
* Remove the composer contenteditable, replace with basic <textarea>

* Beginning broader cleanup of draft session

* DraftJS composer with color, style support

* Serialization/unserialization of basic styles, toolbar working

* WIP

* Switch to draft-js-plugins approach, need to revisit HTML

* Move HTML conversion functionality into plugins

* Add spellcheck context menu to editor

* Initial work on quoted text

* Further work on quoted text

* BLOCK approach

* Entity approach - better, does not bump out to top level

* Hiding and showing quoted text via CSS

* Get rid of ability to inject another subject line component

* Clean up specs, DraftFactory to ES6

* Remove old initial focus hack

* Fix focusing, initial text selection

* Remove participant “collapsing” support, it can be confusing

* Correctly terminate links on carriage returns

* Initial signature support, allow removal of uneditable blocks

* Sync body string with body editorstate

* Simplify draft editor session, finish signatures

* Templates

* Minor fixes

* Simplify link/open tracking, ensure it works

* Reorg composer, rework template editor

* Omg the slowness is all the stupid emoji button

* Polish and small fixes

* Performance improvements, new templates UI

* Don’t assume nodes are elements

* Fix for sending drafts twice due to back-to-back saves

* Fix order of operations on app quit to save drafts reliably

* Improve DraftJS-Convert whitespace handling

* Use contentID throughout attachment lifecycle

* Try to fix images

* Switch to Slate instead of DraftJS… much better

* Fix newline handling

* Bug fixes

* Cleanup

* Finish templates plugin

* Clean up text editing / support for Gmail email styles

* Support for color + size on the same node, clean trailing whitespace

* Restore emoji typeahead / emoji picker

* Fix scrolling in template editor

* Fix specs

* Fix newlines

* Re-implement spellcheck to be faster

* Make spellcheck decorator changes invisible to the undo/redo stack

* Remove comment

* Polish themplates panel

* Fix #521
2018-01-11 15:55:56 -08:00
Ben Gotow 37cc05214a Add ability to automatically CC/BCC per-account #275 2017-12-28 11:30:43 -05:00
Ben Gotow 69c7a7aea7 Fix inline image attachment support 2017-11-12 19:37:48 +01:00
Ben Gotow ed71dfb66c Restore undo send functionality 2017-11-06 18:12:14 +01:00
Ben Gotow 5a145c415c Unsnooze to top of inbox by default, fallback to mark as unread #267 2017-10-30 17:02:05 -07:00
David Howell be256482a4 Fix syntax error and use internal event handler instead of duplicating it 2017-10-20 12:00:37 -07:00
David Howell 47032bb049 Added basic keyboard shortcut for selecting an attachment 2017-10-20 12:00:37 -07:00
Ben Gotow aad8c70498 Remove unnecessary console.logs 2017-10-18 23:14:29 -07:00
Ben Gotow 5c16dd08a6 Run CSS/LESS autoformatter on entrie codebase 2017-10-14 17:36:44 -07:00
Ben Gotow f15ba78cc5 Wait for draft changes to be saved before clearing change set 2017-09-27 10:28:47 -07:00
Ben Gotow d6360a1f5f Rename nylas-window, nylas-test-utils, remove old n1- prefixes 2017-09-26 11:55:33 -07:00
Ben Gotow b456dbc48d Rename nylas-api-request 2017-09-26 11:46:00 -07:00
Ben Gotow b6d962843e Rename nylas-component-kit, nylas-exports, nylas-store, nylas-observables 2017-09-26 11:42:18 -07:00
Ben Gotow 21a2427ddc Rename NylasEnv to AppEnv 2017-09-26 11:36:58 -07:00
Ben Gotow 0f54aa11b5 Adopt prettier , upgrade ESLint 2017-09-26 11:33:08 -07:00
Ben Gotow 40e932074a Fix misc attachment styling / changed Chrome APIs 2017-09-07 15:36:13 -07:00
Ben Gotow 2b9e96fc72 Swap replyToMessageId for replyToHeaderMessageId 2017-09-07 02:36:25 -07:00
Ben Gotow f051b52e8c Destroy drafts using ids not headerMessageIds 2017-09-05 13:15:37 -07:00
Ben Gotow 8445efec55 Stop accessing PropTypes from react (note still need to fix CJSX) 2017-08-26 15:33:29 -07:00
Ben Gotow 7f3731bc10 Clean up project directory structure, removing legacy packages folder 2017-08-10 19:24:10 -07:00