Garvit
b9826e9067
Add filters for toMarkdown to paste data to compose-box.
...
This fixes bugs with pasting headings and italic styling.
Fixes #7485 .
2017-11-28 09:56:48 -08:00
Tommy Ip
29e9d16ac7
refactor: s/upload-bar/compose-upload-bar.
2017-11-27 21:35:14 -08:00
Tommy Ip
6a694418b2
refactor: s/error-msg/compose-error-msg.
2017-11-27 21:35:14 -08:00
Tommy Ip
b9c2f479d3
refactor: s/send-status-close/compose-send-status-close.
2017-11-27 21:35:14 -08:00
Tommy Ip
c0c58f9761
refactor: s/send-status/compose-send-status.
2017-11-27 21:35:14 -08:00
Tommy Ip
19b518c801
refactor: Extract tests for upload mechanics.
...
This temporarily removes the tests for clear_out_file_list since
fixing that test proved to be difficult.
2017-11-27 21:34:55 -08:00
Tommy Ip
ddaff4cd2a
refactor: Extract upload mechanics to new JS module.
...
Tweaked by tabbott to move changes from the next commit that are
required for this to pass tests into this commit.
Note that this exports a few items that were not previously exported.
2017-11-27 21:31:51 -08:00
Rishi Gupta
83149a953a
copy paste: Turn off toMarkdown in production.
...
At least until some of the TODOs at the bottom of
node_tests/copy_and_paste.js are done.
2017-11-27 16:44:16 -08:00
Rishi Gupta
3fcfcd2a55
copy paste: Add toMarkdown test for `1. text`.
2017-11-27 16:44:16 -08:00
Rohitt Vashishtha
8082780853
typeahead: Update @mention to not autocomplete "@ " (@space).
...
Tweaked by tabbott to also cover "@** ".
Fixes #7533 .
2017-11-27 15:15:56 -08:00
Steve Howell
025b8c19ae
Simplify code to warn about private stream links.
...
This change does a few things:
* I use "early return" to make the code a bit flatter
and easier to comment.
* I added more comments.
* I removed some unneeded passing of `invite_only` into
the template.
2017-11-27 10:41:10 -08:00
Steve Howell
e74118e730
tests: Improve templates.compose_private_stream_alert() test.
...
I assert that the stream_name gets properly placed into the HTML.
2017-11-27 10:41:10 -08:00
Umair Khan
8f190e0746
user-groups: Update marked.js to do proper local echo for mentions.
...
We implement markdown in the JS as well to improve the
usability. Comes complete withunit tests.
Fixes #7381 .
2017-11-27 09:16:09 -08:00
Umair Khan
90994bccac
user-groups: Recognize single asterisk for group mentions.
...
The character combination of @* now begins a group mention, so
this test is no longer valid.
2017-11-27 09:16:09 -08:00
Umair Khan
c78846a274
markdown.js: Add error function to blueslip.
...
If we do not add this, we get an exception before we reach the
assertion.
2017-11-27 09:08:30 -08:00
Rhea Parekh
1d826ae201
composebox: Warn when linked to private streams.
...
Fix issue #6860
2017-11-27 07:41:59 -08:00
Shubham Dhama
5e23bfa779
typeahead: show typeahead for syntax of the from @**... or #**...
...
Fixes : #7494 .
2017-11-26 11:18:47 -08:00
Tim Abbott
0f8ee343de
node: Fix copy_and_paste test output.
...
I'm confused how this was passing when I tested previously.
2017-11-23 14:18:28 -08:00
Tim Abbott
cc8c8ab21c
node: Fix style in copy-paste test.
...
This bug got merged due to a problem with Travis CI.
2017-11-23 13:06:17 -08:00
Tim Abbott
4d4532a27e
copy_and_paste: Add a simple extensible test suite.
...
This commit is mostly about adding the test suite; some of the results
are things we'd like to change.
2017-11-23 12:59:01 -08:00
Tim Abbott
9fa58a3c16
compose_ui: Automatically resize textarea after adding new syntax.
...
This fixes existing problems as well as an upcoming problem that
copy-and-pasting in markdown should usually expand the compose text
area.
2017-11-21 19:52:47 -08:00
Vishnu Ks
34689370cd
settings: Create UI and backend for setting signups stream.
2017-11-21 17:39:51 -08:00
Harshit Bansal
8a4fc9970f
reactions.js: Migrate webapp to use the new reactions API.
...
Fixes : #6909 .
2017-11-20 15:27:20 -08:00
Brock Whittaker
ce62abce73
dark-mode: Add "T" hotkey for dark mode theme.
2017-11-15 16:45:34 -08:00
Florian Jüngermann
b31917be1d
frontend: Remove redundant stream separator in the left sidebar.
...
In the case of no 'normal' streams (only pinned and dormant ones) there are two separators
between the groups of streams. My commit removes one.
2017-11-15 10:06:25 -08:00
Cynthia Lin
940ca17c46
hotkeys: Expand collapsed sidebars when sidebar searches are initiated.
...
Fixes #7351 .
2017-11-14 11:12:13 -08:00
Umair Khan
7e2b452f6a
user-groups: Add composebox_typeahead tests.
2017-11-13 11:43:16 -08:00
Umair Khan
597a6e6c74
user-groups: Add user groups in typeahead code.
2017-11-13 11:42:17 -08:00
Steve Howell
d7254a0556
Append space as needed in compose_ui.smart_insert().
2017-11-09 09:49:20 -08:00
Steve Howell
f935afa241
Prepend space as needed in compose_ui.smart_insert().
2017-11-09 09:49:20 -08:00
Steve Howell
1b1858aa64
node tests: Test compose_ui.smart_insert().
2017-11-09 09:49:20 -08:00
Steve Howell
12dc567a89
Move insert_syntax_and_focus() to compose_ui.js.
...
This change also removes a couple lines of test code that
weren't really testing anything.
2017-11-09 09:49:20 -08:00
derAnfaenger
19bc55aa45
Fix various typos.
...
The typos and their corrections were found with the
aid of https://github.com/lucasdemarchi/codespell .
2017-11-09 16:26:38 +01:00
Steve Howell
c3b89845c9
node tests: Use zrequire in typing_status.js.
2017-11-08 12:24:17 -08:00
Steve Howell
0fc20bf943
node tests: Use zrequire in typing_data.js.
2017-11-08 12:24:17 -08:00
Steve Howell
c32f69bef6
node tests: Use zrequire in topic_data.js.
2017-11-08 12:24:17 -08:00
Steve Howell
1dc5218ef5
node tests: Use zrequire in rtl.js.
2017-11-08 12:24:17 -08:00
Steve Howell
f65d3316e0
node tests: Use zrequire in recent_senders.js.
2017-11-08 12:24:17 -08:00
Steve Howell
34bddd26d8
node tests: Use zrequire in pm_conversations.js.
2017-11-08 12:24:17 -08:00
Steve Howell
99695da799
node tests: Use zrequire in people.js.
2017-11-08 12:24:17 -08:00
Steve Howell
6304aea4bc
node tests: Use zrequire in hotkey.js.
2017-11-08 12:24:17 -08:00
Steve Howell
bf0ed5915c
node tests: Use zrequire in common.js.
2017-11-08 12:24:17 -08:00
Steve Howell
adb02b37ce
node tests: Use zrequire in colorspace.js.
2017-11-08 12:24:17 -08:00
Steve Howell
e0fa317be1
node_tests: Remove unneeded var statements.
...
Variables like Dict/_/assert are already globally defined.
2017-11-08 12:24:17 -08:00
Steve Howell
bef176f5f6
node tests: Use zrequire in channel.js.
2017-11-08 12:24:17 -08:00
Steve Howell
7a68add9a4
Remove unneeded requires in activity.js.
2017-11-08 12:24:17 -08:00
Steve Howell
a1c5b0928e
node tests: Use zrequire in util.js.
2017-11-08 12:24:17 -08:00
Steve Howell
8cdd08a02a
node tests: Use zrequire in user_events.js.
2017-11-08 12:24:17 -08:00
Steve Howell
9b9ff5cce3
node tests: Use zrequire in unread.js.
2017-11-08 12:24:17 -08:00
Steve Howell
c233bb53fd
node tests: Use zrequire in typeahead_helper.js.
2017-11-08 12:24:17 -08:00