Commit graph

1806 commits

Author SHA1 Message Date
Ben Gotow
78fe32350c Merge pull request #903 from mbilker/fix-debian-icons
Copy app icons to `hicolor` on Debian
2016-01-05 16:45:53 -08:00
Ben Gotow
a3eb845e78 bump(changelog): New features / fixes in 0.3.36 2016-01-05 16:28:25 -08:00
mbilker
24af963bc8 fix(mkdeb): specify hard path to icon files 2016-01-05 17:44:14 -05:00
Ben Gotow
1d94fcaaf9 fix(sig): Remove selectEnd, place cursor before sig
Summary: When focusing the composer, select the end of the last text block above any signatures / quoted text (which can be visible by default in Fwd:).

Test Plan: Run tests

Reviewers: juan, evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D2411
2016-01-05 14:31:55 -08:00
mbilker
f4b136df30 fix(mkdeb): copy app icons to hicolor on Debian 2016-01-05 15:24:49 -05:00
Ben Gotow
a3db2ed3d4 bump(version): 0.3.36 2016-01-05 11:45:05 -08:00
Ben Gotow
7f80cc8038 fix(focus): Minor changes to composer focus logic to focus new drafts
Summary:
Remove FocusTrackingRegion—all CommandRegions should be focusable, and nesting the two creates varying behavior based on which is the parent

Calling focus() on an injected / unsafe component should always do /something/. Try the inner React method, inner DOM method, or call on ourselves

Rename contentEditable._focusEditor to "focus" since it intends to replace default focus behavior

In ComposerView, always change focus via setState, never by calling focus() directly. Rather than tracking `_lastFocusedField`, just focus whenever the activeElement isnt within the focusedField. Make body initial focus when draft is pristine...

...(ensures new drafts are focused)

Test Plan: Run tests

Reviewers: evan, juan

Reviewed By: evan, juan

Differential Revision: https://phab.nylas.com/D2406
2016-01-05 11:34:26 -08:00
Ben Gotow
cb226d2a6f fix(icon): Use app icon on win32, use correct path on Linux 2016-01-05 11:25:36 -08:00
Ben Gotow
9f8791762d Merge pull request #892 from colinking/hoveractions_injectable
Move quick actions inside of flexbox with injectable component set
2016-01-05 10:53:23 -08:00
Ben Gotow
2719f8d9ac Merge pull request #899 from mbilker/fix-linux-grunt-install
Grunt `install` task: Replace `shareDir` with `linuxShareDir` to reflect global changes
2016-01-05 10:03:35 -08:00
mbilker
8182f2ef89 fix(grunt): replace shareDir with linuxShareDir to reflect global changes
The `install` task would fail since `linuxShareDir` was undefined for the
template `.desktop` file.
2016-01-04 22:08:20 -05:00
Colin King
6d557961db Moved all quick actions within flexbox from injectable component
Fixed linting issues

Moved away from ComponentRegistry towards InjectComponentSet children
2016-01-04 20:25:59 -05:00
Evan Morikawa
3cd42303ae fix(build): debian packages use different share dir 2016-01-04 16:39:43 -08:00
Ben Gotow
d21fcf7069 Merge pull request #866 from mbilker/remove-module-list
Remove log of integration test package installation by default
2016-01-04 12:14:46 -08:00
Ben Gotow
17480ad706 Merge pull request #873 from dcposch/master
Make test output selectable
2016-01-04 12:13:48 -08:00
Ben Gotow
f810c05d09 Merge pull request #880 from mbilker/remove-invitation-contributing-md
Remove invitation references from `CONTRIBUTING.md`
2016-01-04 12:13:31 -08:00
Ben Gotow
59dc38dbcb bump(version): 0.3.35 beta 2016-01-04 11:43:40 -08:00
Juan Tejada
dca00af8de fix(extensions): Add other missing return values 2016-01-04 13:30:52 -05:00
Juan Tejada
d12e4fdc81 fix(extensions): Add missing return values 2016-01-04 13:23:45 -05:00
Evan Morikawa
9530a84877 feat(build): new rpm builds
Summary: Now builds RPM on Travis

Test Plan: manual

Reviewers: juan, bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D2391
2016-01-04 09:56:14 -08:00
Evan Morikawa
616821d09e fix(date): copyright year auto-updates 2016-01-04 09:41:28 -08:00
Juan Tejada
1f4f94c56d fix(extensions):Add missing api adapters for ComposerExtension methods 2016-01-04 10:52:39 -05:00
mbilker
2b5ac044c5 fix(contributing): grammar corrections 2016-01-01 18:43:22 -05:00
mbilker
ecc5a50451 fix(contributing): remove invitation references
In response to #879
2016-01-01 18:39:43 -05:00
Ben Gotow
0f0f7430e1 Merge pull request #876 from nylas/Inbox-Shortcuts
Inbox shortcuts
2015-12-31 14:46:48 -08:00
GMPolyakov
3eca5faebd fix
removed shortcuts not shown on Inbox shortcuts page
2015-12-31 14:30:16 -08:00
GMPolyakov
28f0ebdd65 Add Inbox Shortcuts
Added keyboard shortcuts for Google Inbox (different from Gmail).
2015-12-31 14:09:18 -08:00
DC
a423e406c2 Make test output selectable 2015-12-31 04:06:18 -08:00
Drew Regitsky
6a7be8c4eb fix(templates): Fix a few leftover bugs in templates plugin 2015-12-30 18:14:26 -08:00
Ben Gotow
f2f7edea26 fix(spec): Participant tests breaking on Travis 2015-12-30 18:09:16 -08:00
Drew Regitsky
f9cb96a6ef fix(templates): Fix method calls that weren't passing args hash 2015-12-30 16:51:23 -08:00
Drew Regitsky
d3572f3206 fix(quickschedule): properly handle errors from QuickSchedule server 2015-12-30 16:46:19 -08:00
Juan Tejada
f640ef4ee0 fix(extensions):Fix extension method calls that weren't passing args hash 2015-12-30 19:05:27 -05:00
Juan Tejada
ebf9185fb0 fix(specs): Fix extension test 2015-12-30 18:08:33 -05:00
Evan Morikawa
11b731891f feat(extension): async extensions
Summary:
WIP:

This is a quick patch for Drew to make extensions async

We'll need to think through the upgrade/deprecation plan to roll out async
extensions across all of our APIs.

Test Plan: TODO

Reviewers: drew, evan, bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D2392
2015-12-30 18:04:52 -05:00
Juan Tejada
2800cc0dc8 fix(specs): Remove fdescribe 2015-12-30 15:24:50 -05:00
Juan Tejada
a8e771c033 fix(contenteditable): Fix nested list behavior:
Summary:
- Fixes #862
- Makes it behave like hackpad -- adding nested lists will indent the
  current list item
- Fix lint errors

Test Plan: - Integration tests

Reviewers: evan, bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D2402
2015-12-30 15:21:05 -05:00
Juan Tejada
b452be933a feat(column-width): Store column width state in the app
Summary:
- Fixes #833
- Allows column widths to be persisted between sessions

Test Plan: - Manual

Reviewers: evan, bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D2401
2015-12-30 15:18:38 -05:00
Juan Tejada
6315bc9d80 fix(extension-adapter): Update adapter to support all versions of extension api we've used
Summary:
- Rewrites composer extension adpater to support all versions of the
  ComposerExtension API we've ever declared. This will allow old plugins (or
  plugins that haven't been reinstalled after update) to keep functioning
  without breaking N1
- Adds specs

Test Plan: - Unit tests

Reviewers: evan, bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D2399
2015-12-30 15:11:37 -05:00
mbilker
6e6daf7f0e fix(bootstrap): remove log of integration test package installation by default 2015-12-29 22:11:04 -05:00
Drew Regitsky
4628643195 fix(signatures-tests): actually fix the signatures tests 2015-12-29 18:31:10 -08:00
Juan Tejada
73f76de7fc fix(composer-focus): Fix focus behavior + update InjectedComponent props
Summary:
- Fixes bug with Composer focus caused by injected component. The composer body
  was being focused, but the cursor remained at the beginning of the content
  instead of at the end. This was caused because the focus method was being
  called before the content had actually been rendered to the dom.
  - Adds a callback to check when injected comp was actually rendered, and uses
    that to focus the body at the correct time.
  - Updates specs
- Updates behavior of focusing composer body when selecting threads in split
  mode --  resolves #T3444
  - It will focus the body when a thread is selcted via a click
  - It wont focus the body when a thread is selected via arrow keys
  - It will focus the body when a new inline reply is created
  - Updates specs

Test Plan: - Unit tests

Reviewers: evan, bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D2393
2015-12-29 21:28:15 -05:00
Drew Regitsky
0f58618e2a fix(signatures-tests): update tests for new signatures code 2015-12-29 18:00:18 -08:00
Drew Regitsky
da15d4598c fix(signatures): Wrap signature in a nylas-n1-signature div to allow easy detection
Summary:
Changes the internal signatures plugin to wrap the signature in a
`<div class="nylas-n1-signature">` block, to make it easier to detect and handle
signatures from within other plugins.

Also:
- Fixes the QuickSchedule plugin to place the scheduling block above the signature.
- Fixes a small syntax error in Translate plugin

Test Plan: manual

Reviewers: evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D2383
2015-12-29 15:33:49 -08:00
Drew Regitsky
be800ac89a refactor(templates): major additions and refactoring for the Templates plugin.
Summary:
Adds several new features to the templates plugin, fixes some existing bugs, and
refactors existing code.

New Plugin Features/Fixes:
- Changes the templates editor in preferences to allow variables to be entered with
 `{{brackets}}`. Handles many contenteditable complexities to implement.
- Better interaction for renaming and deleting of templates in the editor.
- Changes tabbing behavior when using templates. Tabbing between variables now wraps
  around, and typing tab from outside a variable region highlights the closest region.
- Prevents "Enter" key in the composer when inside a variable region, and strips all
  formatting/tags from within the region - this prevents major contenteditable issues
  that can result in inline CSS in the style of our variable regions, which will not be
  removed when sending.
- Shows a warning when choosing a template if it will replace existing text in a draft.
- Prevents invalid characters in template names (due to filenames, esp. on Windows),
  and shows an error message. Strips these characters from draft titles when making a
  template.
- Fixes a bug where TemplateStore's initialization code was being called multiple times.

New N1 code:
- Several new methods in `DOMUtils` useful for working with contenteditable.
- Implement some missing methods in `Editor`

Refactor:
- Major refactor/rewrite of template composer extension to use new DOMUtils methods
  and simplify the logic (while adding new functionality).

Remaining issues:
- `preferences-tempaltes.cjsx` and `template-editor.coffee` should be rewritten in ES6
  for consistency
- Need tests for new DOMUtils functions and for new Templates plugin code.

Test Plan: manual, need to update specs

Reviewers: evan, bengotow

Reviewed By: evan, bengotow

Subscribers: juan

Differential Revision: https://phab.nylas.com/D2382
2015-12-29 15:11:04 -08:00
Drew Regitsky
4bd46b055f fix(contenteditable): revert 36b4f3, call onClick in mouse-service 2015-12-29 14:57:07 -08:00
Ben Gotow
9dfb03727d lint(mail-rules): Fix build failure from linter issue 2015-12-29 14:41:30 -08:00
Drew Regitsky
c09632966d fix(contenteditable): hook up onClick handler for extensions
Summary: Add missing code to make onClick work in contenteditable extensions.

Test Plan: manual

Reviewers: juan, evan, bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D2395
2015-12-29 14:41:00 -08:00
Ben Gotow
3c4d6b503b fix(mail-rules): Bail if a message is missing a thread 2015-12-29 14:21:42 -08:00
Ben Gotow
7973135dd3 fix(uploads): Cancel uploads when offline (#365), mark for refactor 2015-12-29 14:21:42 -08:00