Steve Howell
e53b0f564f
subject/topic: Rename unread_subjects to unread_topics.
2016-08-26 20:26:24 -07:00
Brock Whittaker
64079b382f
Channel popup unsubscribe button.
...
From the popups that appear when clicking the down-arrow in the left
column's streams, you can now unsubscribe from that particular
channel. This runs on the same function that unsubscribes you from
streams in the "Subscriptions" tab.
Fixes : #1554 .
[tweaked by tabbott to fix some errors]
2016-08-26 20:22:11 -07:00
Brock Whittaker
8f73701b96
Upgrade jQuery to 1.12.1 and fetch from node_modules.
...
Fixes : #1196 .
2016-08-25 15:32:08 -07:00
Steve Howell
4dbeb66a4c
tests: Add render.init() to node tests.
...
This makes sure we are explicit about partials in
individual test modules. Eventually, we should figure
out a way to make partials automatically compile as
part of the node tests.
2016-08-25 13:56:08 -07:00
Steve Howell
8e38503d8c
tests: Add sidebar_private_message_list() template test.
2016-08-25 13:56:08 -07:00
Tomasz Kolek
b1b864341c
Fix @all spam warning when typing @all in backticks.
...
When user'd like to send a message with @all in backticks
they see spam warning in spite of the fact that nobody
would be alerted.
Fixes : #1505 .
2016-08-18 16:10:09 -07:00
Steve Howell
01d28458fc
Add frontend_tests/node_tests/dispatch.js.
...
This tests the dispatching code in server_events.js.
2016-08-09 18:49:13 -07:00
Steve Howell
48af751e8d
Clean up server_events.js (minor stuff).
...
Make exceptions more clear and upstream patching of builtins to index.js.
2016-08-09 18:49:13 -07:00
Steve Howell
ebe76dd2c3
Add stub_out_jquery() for node tests.
2016-07-30 14:54:30 -07:00
Steve Howell
6ce8f3da6d
Fix node tests to be able to run standalone.
...
These tests would work as part of the whole suite, but
not standalone, because they were getting objects out
of node's require cache that a previous test had cleaned up.
Now they should work standalone as well, and the tests
are more explicit about their dependencies.
2016-07-30 14:54:30 -07:00
Steve Howell
55d8a1e960
Remove unneeded require in node_tests/activity.js
2016-07-30 14:54:30 -07:00
Steve Howell
6a65b3482c
Move index.js to frontend_tests/zjsunit.
2016-07-30 14:54:30 -07:00
Steve Howell
c57bbf6c77
Introduce index.html for test-js-with-node output.
...
We now have an index.html for test-js-with-node output
that links to specific HTML files for various handlebar
tests.
2016-07-29 22:07:24 -07:00
Steve Howell
1d7a6c9941
Fix output from test_tr_tag_settings().
...
For its HTML output, it was using a wrong label and a CSS
setting that clobbered other output.
2016-07-29 22:07:24 -07:00
Steve Howell
f301ccdb3e
Move source code for settings_tab() in templates.js
2016-07-29 22:07:24 -07:00
Steve Howell
b3553859f9
Move source code for propagate_notification_change() in templates.js
2016-07-29 22:07:24 -07:00
Steve Howell
9e8bff5628
Move source code for message_edit_form() in templates.js
2016-07-29 22:07:24 -07:00
Steve Howell
83a92704ee
Move source code for admin_tab() in templates.js
2016-07-29 22:07:24 -07:00
Steve Howell
ec12ea5773
Consolidate bookend tests in node_tests/templates.js.
...
In templates.js we want to enforce outputting just
one output file per template, and we also keep the source
alphabetical by template name. This isn't a permanent
decision, but it makes organizing the ouput a little
easier for now.
2016-07-29 22:07:24 -07:00
Steve Howell
5a3a4595f1
Move source code for admin_emoji_list() to top of its file.
...
We alphabetize the functions in node_tests/templates.js. This
makes it easier for the test output to be rendered in order.
2016-07-29 22:07:24 -07:00
Steve Howell
87dbdaac68
Extract write_handlebars_output() in node tests.
2016-07-29 22:07:24 -07:00
Steve Howell
6b8e2c406b
Write node test output to var/test-js-with-node/output.html
...
This also fixes some CSS path issues that were regressed
when files were written to 'var.'
2016-07-29 22:07:24 -07:00
Tim Abbott
beedfb2939
Revert "[third] Upgrade jquery to version 1.8.3."
...
This reverts commit be93b6ea28
.
Unfortunately, the newer jquery comes with a huge performance
regression affecting the hotkeys code, which has the effect of making
typing super slow.
Fixes : #1449 .
2016-07-28 11:39:06 -07:00
Tim Abbott
375551aaa6
Clean up most hardcoding of mit.edu domain checks.
...
This moves all this code to be gated on a few virtual realm settings.
2016-07-26 20:30:12 -07:00
Taranjeet Singh
9b31f0a67a
node tests: Move .test-js-with-node.html to var/."
2016-07-20 18:23:56 -07:00
Tim Abbott
be93b6ea28
[third] Upgrade jquery to version 1.8.3.
...
Also use the modern NPM name of 'jquery' (all lower case), which is
required as part of this migration.
Fixes #1141 .
2016-07-08 11:09:54 -07:00
Tomasz Kolek
c15695e514
Add support for running test-js-with-node on particular files.
...
Fixed : #1127 .
2016-07-07 14:32:07 -07:00
Kartik Maji
f8bb7503e6
Add ability to pin streams to top of the streams sidebar list.
...
Based on work by Lauren Long, with some tweaks by tabbott.
2016-06-30 22:26:09 -07:00
Alex Wilson
b040839c76
Add unicode emoji to frontend markdown parser.
...
Fixes 2nd half of #1011 .
2016-06-30 15:48:02 -07:00
Alex Wilson
434c8d4b08
Add codepointat.js, a polyfill for String.prototype.codePointAt().
2016-06-30 15:48:02 -07:00
Preston Hansen
57dec15c6c
Update alert word UI to match the style of bots.
...
Resolves #1075 .
2016-06-24 16:43:19 -07:00
Umair Khan
c8d139b2b1
Fix emoji urls interaction with i18n.
...
When accessing emojis with relative urls we should start the urls with
a slash so that language code doesn't become part of these urls.
Fixes #1014 .
2016-06-13 09:10:11 -07:00
Vishnu Ks
f9f31b79d0
Make default_streams web controllable.
...
Fixes : #665
2016-06-09 15:24:32 -07:00
Caroline Liu
60e5140406
Add warning for @all / @everyone.
...
* The warning contains a count of the number of people in the stream.
* An error appears if the warning is ignored and the user tries to
send the message anyway.
* The message cannot be sent until the warning is acknowledged or @all
/ @everyone is removed.
* This only applies to stream messages and not private messages.
Fixes #853 .
2016-06-09 14:38:58 -07:00
Tim Abbott
b25562ca1d
Add and use util.is_current_user helper function.
...
Previously, we were checking if a particular user was the current user
in dozens of places in the codebase, and correct case-insensitive
checks were not used consistently, leading to bugs like #502 .
2016-06-07 21:58:44 -07:00
Givorenon
0bf2d171ae
Fix fading of messages in dialog and users in side-bar.
...
Make comparison of emails in compose_fade.js and util.js
case-insensitive to fix fading of users and messages respectively.
2016-06-07 21:31:47 -07:00
Vishnu Ks
d30ea0bc44
Move recent_subjects to stream_data.
2016-06-07 17:50:16 -07:00
Umair Khan
82b5d9304b
[third] Integrate i18next with Handlebars
2016-05-19 22:58:25 -07:00
Kartik Maji
3d77aa49db
Add subscribe button in narrowed view when stream has no messages.
...
A temporary message appears on successful subscription, with a button
offering to unsubscribe in case the user subscribed by accident.
2016-05-18 20:06:30 -07:00
Kartik Maji
206452c867
Add stream subscription button added narrowed views.
...
Fixes : #273
2016-05-18 20:06:23 -07:00
Tim Abbott
5bd94c15c7
Use camo to avoid mixed content warnings when displaying emoji.
2016-05-02 17:21:31 -07:00
Vladislav Manchev
f5e6176aea
Add custom realm emoji UI to administration page.
2016-04-26 13:15:54 -07:00
Vishnu Ks
ae49ad383d
Rename all function on MessageList to all_messages.
2016-04-25 13:45:18 -07:00
Vishnu Ks
35b0af2852
Move all_msg_list to message_list.js.
2016-04-21 17:46:21 -07:00
Vishnu Ks
ee39f5009f
Make message_list.js work like the other modules.
2016-04-20 15:29:30 -07:00
Tim Abbott
a72385246e
Fix missing whitespace after '=' in python/js code.
2016-04-20 11:36:14 -07:00
Tim Abbott
93b3feda43
Fix node test broken by reloading changes.
2016-03-30 23:40:00 -07:00
Kartik Maji
2b3312cd6e
Update unread counts for streams when muting topics.
...
Fixes #427 .
2016-03-27 13:49:52 -07:00
Tim Abbott
29b8d71871
Remove throttling of presence updates coming from server events.
...
Now that we're doing presence updates in a performant fashion, we
don't need to throttle processing these events, and in fact the
throttling of these events created a correctness problem, since we're
now doing incremental updates rather than just rerendering everything
after each event.
2016-03-21 20:28:05 -07:00
Varshit
72033069ed
Extend lint-all to check for newlines at the end of files.
2016-03-17 23:03:56 -07:00