Steve Howell
1114c8bf62
Extract message_fetch.js.
2017-03-19 21:03:45 -07:00
Tim Abbott
9866124b78
mypy: Fix some new errors flagged by latest mypy master.
...
Mostly list -> List bugs in annotations.
2017-03-19 21:03:45 -07:00
wangjames
e0813c7288
collapse: Fix new messages not being collapsed consistently.
...
This fixes a bug where newly received very-long messages would only
sometimes be collapsed properly until a second message arrived
(whether it did the right thing dependened on whether the new message
had the same recipient or a different recipient from other arriving
messages).
Apparently, we correctly called condense.condense_and_collapse in all
but one of the codepaths of `render` that add new messages. This
adds a call on the missing codepath.
Fixes #3978 .
2017-03-19 20:39:21 -07:00
Tim Abbott
7e74af3cea
docs: Shorten some keyboard shortcut descriptions.
...
In particular, this fixes some unnecessarily multi-line descriptions
that made the keyboard shortcuts display look bad.
2017-03-19 14:45:16 -07:00
Joshua Pan
93609cc39d
Update shortcuts modal and documentation with reaction hotkeys.
2017-03-19 14:45:00 -07:00
Joshua Pan
5ec21e2230
hotkey.js: Add opening reactions hotkey.
...
Add frontend tests for ":" hotkey.
Fixes #3911 .
2017-03-19 14:37:05 -07:00
Joshua Pan
b600e4d594
Pressing enter in reactions search picks first reaction.
2017-03-19 14:36:34 -07:00
Joshua Pan
9c3d63a80b
Add '+' hotkey to add thumbs up reaction.
...
Fixes #3910 .
2017-03-19 14:36:33 -07:00
Joshua Pan
c8f2da3f3e
reactions.js: Refactor reaction_popover_reaction_on_click.
2017-03-19 14:25:10 -07:00
Elliott Jin
356f57c831
refactor: Simplify pattern for adding external linters.
2017-03-19 14:13:38 -07:00
Elliott Jin
ac488fd45f
tools: Don't lint in pre-commit hook if no files changed.
2017-03-19 14:13:38 -07:00
Elliott Jin
5ada385b91
refactor: Check for empty list with `len(X) == 0` instead of `not X`.
2017-03-19 14:13:38 -07:00
Elliott Jin
750769f637
tools: Only lint changed template files in pre-commit hook.
2017-03-19 14:13:38 -07:00
Elliott Jin
2e246a936f
tools: Support checking specific files in `check-templates`.
2017-03-19 14:13:38 -07:00
Elliott Jin
357e1a001f
refactor: Move `check-templates` argument parsing to top level.
2017-03-19 14:13:38 -07:00
Elliott Jin
0d677042e7
tools: Remove assert in template linter.
...
Currently, in the case where `--modified` is not passed, the linter asserts
that it's checking at least 10 files. Removing this (somewhat arbitrary)
check makes it easier to:
- Add support for specifying files to check via command line arguments
- Reason about cases where `check-templates` is called from `lint-all`
2017-03-19 14:13:38 -07:00
wangjames
12eeb27442
js dependencies: Extract ui_state.js.
...
The function home_tab_obscured used to be in the ui_state
namespace via a shim, but now we have an actual module for
it.
2017-03-19 14:11:50 -07:00
Sarah Stringer
aa880b0419
Add organization description field to realm settings.
...
This adds an organization description field to the Realm model, as well as
an input field to the organization settings template. Added three tests.
Set the max length of the field to 100 characters.
Fixes #3962 .
2017-03-19 14:05:01 -07:00
Daw-Ran Liou
81f9de7cc8
Add "*" hotkey to toggle starred flag on the selected message.
2017-03-19 13:42:11 -07:00
Brock Whittaker
24e2f31d3d
Remove second background from #lighbox_overlay.
...
The child ".image-preview" has a background which is ordinarily
invisible (as it is the same color as the #lightbox_overlay bg,
however when fading in it is noticeable.
2017-03-19 12:43:10 -07:00
Joshua Pan
234e8b500e
Add tests for ctrl key functionality.
2017-03-19 12:17:28 -07:00
Joshua Pan
c053f786f7
Add ctrl+[ hotkey.
...
Fixes #4016 .
2017-03-19 12:17:28 -07:00
Joshua Pan
fcbc2e0cb9
Add ctrl key functionality to hotkeys.
2017-03-19 12:17:28 -07:00
Elliott Jin
bdf4b22772
tools: Only lint changed css files in pre-commit hook.
2017-03-19 11:49:19 -07:00
Elliott Jin
ac5b62359a
refactor: Use consistent naming for lint functions.
2017-03-19 11:49:19 -07:00
Jacob Hurwitz
0a76a609ec
Fix bugs with handling of the empty narrow.
...
An empty narrow (ie, the home view) can be represented in code as either
`None` or `[]` but we had incorrect handling that failed to fully
properly deal with either case.
(1) In `get_stream_name_from_narrow`, we failed to deal with `None` by
trying to always iterate over `narrow`.
(2) In several other places, we failed to deal with `[]` by explicitly
checking `if narrow is None` or `if narrow is not None`. Changing these
to truthiness checks should work for both the `None` and `[]` cases.
2017-03-19 11:47:03 -07:00
Daw-Ran Liou
f67751d1f0
Add hotkey "l" for opening image in lightbox.
...
Open the lightbox in the current selected message. Only the first image
shows in the lightbox.
2017-03-19 11:43:21 -07:00
Tim Abbott
e9f1531fc7
hotkey: Remap v hotkey -> P.
2017-03-19 11:41:02 -07:00
Steve Howell
eda046409c
Move paging methods into navigate.js.
2017-03-19 11:05:46 -07:00
Steve Howell
d026344b37
Extract js/ui_util.js.
2017-03-19 11:05:45 -07:00
Steve Howell
099f401b9b
Move mark_subscribed/mark_unsubscribed to stream_events.js.
2017-03-19 11:05:45 -07:00
Steve Howell
b98cd55ddb
Add ui_report shim.
2017-03-19 11:05:44 -07:00
Steve Howell
c67aebf633
Move keep_pointer_in_view() to message_viewport.js.
2017-03-19 10:56:09 -07:00
Steve Howell
1d7d6869c9
Extract stream_events.js
2017-03-19 10:56:09 -07:00
Steve Howell
cfd1e8cbc3
Extract stream_muting.js.
2017-03-19 10:56:09 -07:00
Steve Howell
5b2407bb22
Add ui_state.home_tab_obscured() shim.
2017-03-19 10:56:09 -07:00
Steve Howell
ab34b5ee9f
Extract ui_init.js.
2017-03-19 10:56:09 -07:00
Yago González
a5ecb5e5cf
docs: Fix minor link formatting.
2017-03-19 09:16:06 -07:00
Akash Kothawale
93a00d9772
docs: Add missing backtick in architecture-overview.
2017-03-19 09:12:14 -07:00
Yago González
30c0023847
docs: Explain Python 2/3 virtualenvs.
2017-03-19 08:56:19 -07:00
Steve Howell
203ced0ee6
minor: Rename var in filter_emojis().
2017-03-19 06:25:10 -07:00
Steve Howell
6f3f031791
Make visualizer tool scan each file just once.
...
Rather than having a bunch of regexes to look for, we just
have a single regex for a function call. And now we process
line by line, which allows us to more easily ignore comments.
2017-03-19 06:25:10 -07:00
Cynthia Lin
037eca4d64
Add Pygments syntax highlighting info to *Message formatting* modal.
2017-03-18 20:48:01 -07:00
Cynthia Lin
8241f7b40b
user docs: Update *Format your message using markdown* with Pygments.
...
Fixes #4081
2017-03-18 20:48:01 -07:00
Rishi Gupta
6ba11785ea
js dependencies: Change hashchange_encode to hash_util_encode in zerver.
...
This function formerly replicated the behavior of hashchange.encode, and now
replicates the behavior of hash_util.encode.
2017-03-18 20:40:34 -07:00
Rishi Gupta
19d8d16126
js dependencies: Split hash_util.js from hashchange.js.
2017-03-18 20:40:34 -07:00
Tim Abbott
767f57ef03
tests: Remove imports of deleted message_ids.
2017-03-18 20:40:34 -07:00
K.Kanakhin
3e397090e1
user-presence: Add client info to aggregated presence status.
...
Fixes zulip/zulip-android#454 .
2017-03-18 20:36:41 -07:00
Tim Abbott
4dbb17db64
test_helpers: Remove unused message_ids function.
2017-03-18 19:22:49 -07:00
Elliott Jin
1138057209
test-backend: Raise zerver/views/registration.py test coverage to 100%.
2017-03-18 18:11:59 -07:00