Tomasz Kolek
61d5d41067
Add Slack importer bot.
2017-05-09 10:48:08 -07:00
Mahim Goyal
49fec57768
Add hotkey for narrowing to next unread topic.
...
Fixes : #4199 .
2017-05-09 10:02:54 -07:00
Tim Abbott
40e43d8cba
narrow: Remove unused by_conversation_and_time and by_id helpers.
...
Now that we just copy links to the clipboard, neither of these are
used. (Actually, the narrow.by_id helper has been dead code for
years).
2017-05-09 09:59:37 -07:00
Mahim Goyal
a2adcfd7fc
popovers: Add direct copy to clipboard link feature.
...
Change the onClick function of copy link of
conversation to actually copy the link to clipboard.
Fixes : #4621 .
2017-05-09 09:59:23 -07:00
Mahim Goyal
6fe0728afa
Return absolute URL from narrow.by_conversation_and_time_uri
2017-05-09 09:55:38 -07:00
Umair Khan
4971b7ff9f
testing: Add errored tests to failed tests list.
...
Fixes : #4716 .
2017-05-09 09:36:59 -07:00
Steve Howell
70d4ac93ce
Add modals.info_overlay_open().
...
This also removes ui_state.js, since its last function
is now replaced by modals.info_overlay_open().
2017-05-09 09:19:27 -07:00
rht
00e057bf44
install-node: bypass nvm wrapper for faster node startup.
...
This fixes a significant performance issue with LaTeX rendering (and
other things that invoked node) where starting up node took a few
hundred milliseconds due to nvm initialization.
Tweaked by tabbott to avoid copying the node binary itself, instead
using a tiny wrapper script.
This is important primarily because it's possible a future version of
node will expect to find libraries/dependencies/etc. installed via NVM
at some path related to the path of the node binary itself, and that's
more guaranteed with this new model.
Fixes #4618 .
2017-05-09 09:17:54 -07:00
Steve Howell
86a9283471
Update JS dependency configuration.
2017-05-08 22:04:56 -07:00
Steve Howell
742c55f514
Speed up key handling by adding modals.is_active().
...
The function modals.is_active() can see if modals are open
without having to look at the DOM. This should make it snappier
to type in the compose box. Even if the speedup is pretty minor,
not having to worry about jQuery slowness should make it easier
to diagnose future compose box issues.
The new function gets used in other places, too, where performance
isn't so much an issue.
2017-05-08 22:04:56 -07:00
Steve Howell
3c0ef6295f
Enforce that only one modal can be open at any time.
2017-05-08 22:04:56 -07:00
Steve Howell
ddded59a6d
Remove modals.set_close_handler().
2017-05-08 22:04:56 -07:00
Steve Howell
07248ee7bd
Use modal.open_overlay() for info overlays.
2017-05-08 22:04:56 -07:00
Steve Howell
4bcb4d6c15
Use modal.open_overlay() in subs.js.
2017-05-08 22:04:56 -07:00
Steve Howell
0965fc5a05
Use modal.open_overlay() in settings/admin.
2017-05-08 22:04:56 -07:00
Steve Howell
b82a802c22
Use modal.open_overlay() in lightbox.js.
2017-05-08 22:04:56 -07:00
Steve Howell
02c743853c
Use modal.open_overlay() in invite.js.
2017-05-08 22:04:56 -07:00
Steve Howell
6d1a6934b8
Use modal.open_overlay() in drafts.js.
2017-05-08 22:04:56 -07:00
Steve Howell
09a37ec179
Add modals.open_overlay().
2017-05-08 22:04:56 -07:00
Steve Howell
2f6edf47bc
Fix code format of modals.js.
...
Our de facto coding standard for JS modules is not indent
within the boilerplate, and we assign functions to `exports`
in single JS statements.
2017-05-08 22:04:56 -07:00
Tim Abbott
9da63bc087
ui: Initialize settings_sections before hashchange.
...
This is important, since settings_sections must be initialized in
order to load the page with a hash in the settings UI.
2017-05-08 22:02:56 -07:00
Mahim Goyal
6464514ca9
Break compose.js and drafts.js dependency.
2017-05-08 14:43:49 -07:00
Steve Howell
b609911656
Remove unused get_user_profile_by_email() imports.
2017-05-08 11:57:38 -07:00
Steve Howell
3b2a3601c1
tests: Add ZulipTestCase.notification_bot().
2017-05-08 11:57:38 -07:00
Steve Howell
3a031f6814
test: Use example_user() in more places.
...
This commit replaces calls to get_user_profile_by_email() with
calls to self.example_user() by introducing a local variable.
2017-05-08 11:57:38 -07:00
Steve Howell
7f9057ba99
tests: Use example_user() in more places.
2017-05-08 11:57:38 -07:00
Steve Howell
6bc8424c71
Use self.example_user() in more places.
...
This fixes most cases where we were assigning a user to
the var email and then calling get_user_profile_by_email with
that var.
(This was fixed mostly with a script.)
2017-05-08 11:57:38 -07:00
Steve Howell
942db9b6c5
tests: Added ZulipTestCase.example_user() function.
...
The example_user() function is specifically designed for
AARON, hamlet, cordelia, and friends, and it allows a concise
way of using their built-in user profiles. Eventually, the
widespread use of example_user() should help us with refactorings
such as moving the tests users out of the "zulip.com" realm
and deprecating get_user_profile_by_email.
2017-05-08 11:57:38 -07:00
Mahim Goyal
a44a291cdf
Don't open compose when clicking links containing search terms.
...
Link that is a search term opens compose box, add this exception to
the is_clickable_message_element.
Fixes : #4651 .
2017-05-08 11:39:00 -07:00
Tim Abbott
abd09cebb2
git tools: Make error messages more clear.
2017-05-08 10:51:59 -07:00
derAnfaenger
d63fdf5bc6
Fix Twitter bot breaking layout with long words/links.
...
Long words and links now get automatically broken down in the
'twitter-tweet' div; prevents a message box overflow.
Fixes #4659 .
2017-05-08 09:56:35 -07:00
Aditya Bansal
3a097a2a6c
pep8: Add compliance with rule E261 to semaphore/view.py.
2017-05-07 23:21:50 -07:00
Aditya Bansal
f4a7791d95
pep8: Add compliance with rule E261 to test_template_parser.py.
2017-05-07 23:21:50 -07:00
Aditya Bansal
9fb6d976ca
pep8: Add compliance with rule E261 to test_server.py.
2017-05-07 23:21:50 -07:00
Aditya Bansal
2820eb5a54
pep8: Add compliance with rule E261 to wsgi.py.
2017-05-07 23:21:50 -07:00
Aditya Bansal
462786e8b0
pep8: Add compliance with rule E261 to local_settings.py.
2017-05-07 23:21:50 -07:00
Aditya Bansal
bbccd8ab28
pep8: Add compliance with rule E261 to zilencer/models.py.
2017-05-07 23:21:50 -07:00
Aditya Bansal
b07273c2d0
pep8: Add compliance with rule E261 to commands/profile_request.py.
2017-05-07 23:21:50 -07:00
Aditya Bansal
bf24e0c9db
pep8: Add compliance with rule E261 to stripe/view.py.
2017-05-07 23:21:50 -07:00
Aditya Bansal
3791638985
pep8: Add compliance with rule E261 to semaphore/tests.py.
2017-05-07 23:21:50 -07:00
Aditya Bansal
21dd1384b4
pep8: Add compliance with rule E261 to pivotal/view.py.
2017-05-07 23:21:50 -07:00
Aditya Bansal
43c978e0f4
pep8: Add compliance with rule E261 to pagerduty/view.py.
2017-05-07 23:21:50 -07:00
Aditya Bansal
54989605e0
pep8: Add compliance with rule E261 to github/tests.py.
2017-05-07 23:21:50 -07:00
Aditya Bansal
f3c1557529
pep8: Add compliance with rule E261 to beanstalk/view.py.
2017-05-07 23:21:50 -07:00
Aditya Bansal
27a1b23392
pep8: Add compliance with rule E261 to ioloop_logging.py.
2017-05-07 23:21:50 -07:00
Aditya Bansal
5c82319101
pep8: Add compliance with rule E261 to handlers.py.
2017-05-07 23:21:50 -07:00
Aditya Bansal
72d5760d7c
pep8: Add compliance with rule E261 to descriptors.py.
2017-05-07 23:21:50 -07:00
Aditya Bansal
b48f07ebc0
pep8: Add compliance with rule E261 to test_users.py.
2017-05-07 23:21:50 -07:00
Aditya Bansal
feb332920c
pep8: Add compliance with rule E261 to test_typing.py.
2017-05-07 23:21:50 -07:00
Aditya Bansal
191fead5a3
pep8: Add compliance with rule E261 to test_type_debug.py.
2017-05-07 23:21:50 -07:00