Brock Whittaker
00d11fb0af
input-pill: Add styling.
...
This adds some styling for the default case of the input pills and some
custom styling.
2017-11-10 14:14:03 -08:00
Brock Whittaker
74d91bff22
input-pill: Add `onpillcreate` method.
2017-11-10 14:14:03 -08:00
Brock Whittaker
5a0bba2afc
input-pill: Add validation callback for pills.
...
This adds a validator that when calling `reject` will reject a pill
from being added.
2017-11-10 14:14:03 -08:00
Brock Whittaker
5d0aae283f
input-pill: Add key/value caching.
...
Some of the calls in our codebase will call for the `.keys()` method a
lot, so this caches the results and returns them rather than mapping
the array if it knows the state to be the same as before.
2017-11-10 14:14:03 -08:00
Brock Whittaker
93141cbe39
input-pill: Have all clicks directly on container focus input.
...
If a user clicks on the pill container and not directly on a pill
or on an "x" inside of a pill, it should be presumed they are
trying to input new text. This effectively makes the whole non-pill
section an input bar.
2017-11-10 14:14:03 -08:00
Brock Whittaker
7b00736fa2
input-pill: Add "input_pill" class and documentation.
2017-11-10 14:14:03 -08:00
Brock Whittaker
d27882325c
hotkeys: Refactor text selectors to be array.
...
This makes it easier in the future to see diffs and to add/remove text
selectors for hotkey prevention.
2017-11-10 14:14:03 -08:00
derAnfaenger
032fad2cf1
queue_processors: Add error coverage for MessageSenderWorker.
2017-11-10 13:23:53 -08:00
derAnfaenger
d9571698f2
queue_processors: Add coverage for get_active_worker_queues().
2017-11-10 13:23:53 -08:00
derAnfaenger
d3bee4fcc5
queue_processors: Exclude various lines from coverage.
...
The os.mkdir call is straightforward and doesn't testing.
Workers relying on LoopQueueProcessingWorker are tested
with its consume method that exists solely for this purpose.
2017-11-10 13:23:53 -08:00
derAnfaenger
7777a81dbf
queue_processors: Add full coverage for SlowQuery.
2017-11-10 13:23:53 -08:00
Cynthia Lin
1bcc07f7dd
popovers: Add bot icon to user profile popovers for bots.
...
Fixes #7176 .
2017-11-10 11:18:43 -08:00
Cynthia Lin
a3e5f2a887
message view: Use new custom bot icon in messages.
2017-11-10 11:18:43 -08:00
Cynthia Lin
0b800b0a7d
icons: Create framework for custom icons and add new bot icon.
2017-11-10 11:18:42 -08:00
Steve Howell
b6ebead827
tests: Add test_raw_unread_stream().
2017-11-10 10:50:57 -08:00
Steve Howell
23f7615adb
tests: Add test_raw_unread_huddle().
2017-11-10 10:50:57 -08:00
Steve Howell
db8c69ff03
tests: Add test_raw_unread_personal().
2017-11-10 10:50:57 -08:00
Steve Howell
5a99fa4990
tests: Extract GetUnreadMsgsTest.mute_(stream,topic) helpers.
...
This also introduces the GetUnreadMsgsTest class, and it fixes
the topic_name field that was accidentally hard coded in mute_topic.
2017-11-10 10:50:57 -08:00
Steve Howell
f54146b6d8
mypy: Add RawUnreadMessagesResult type.
2017-11-10 10:50:57 -08:00
Steve Howell
c799ec0ca6
minor: Inline get_unread_message_ids_per_recipient().
...
This method was only used in one test.
2017-11-10 10:50:57 -08:00
Harshit Bansal
e062b244b4
requirements: Remove unused `diff-match-patch` package.
...
This package was used for generating diffs for message edits. But
we have now switched to `lxml` for producing diffs so this is no
longer required.
2017-11-10 10:19:32 -08:00
Tommy Ip
8480deb754
integration docs: Fix broken desk.com markdown.
2017-11-10 17:33:42 +00:00
Tommy Ip
325ca0df62
integration docs: Fix broken Stripe markdown.
...
More information: https://chat.zulip.org/#narrow/stream/issues/topic/.237336
2017-11-10 17:19:52 +00:00
Umair Khan
4c6a376fd5
user-groups: Add groups to page_params.
2017-11-09 17:35:46 -08:00
Umair Khan
ef545b9180
user-groups: Add css for user-group-mention class.
2017-11-09 17:35:46 -08:00
Umair Khan
b1603d289c
user-groups: Add update members API endpoint.
...
Significantly modified by tabbott to fix some bugs.
2017-11-09 17:35:37 -08:00
Umair Khan
a1b894a786
user-groups: Add delete API endpoint.
...
Significantly modified by tabbott to fix some bugs.
2017-11-09 17:35:30 -08:00
Umair Khan
eeaf0f1742
user-groups: Add edit API endpoint.
...
Significantly modified by tabbott to fix some bugs.
2017-11-09 17:35:22 -08:00
Umair Khan
1bbe84af49
user-groups: Add create API endpoint.
...
Significantly modified by tabbott for better security structure.
2017-11-09 17:26:14 -08:00
Umair Khan
39ca38837e
user-groups: Add description to groups.
2017-11-09 16:35:52 -08:00
Umair Khan
18aecb82d7
user-groups: Get members from membership.
2017-11-09 16:18:40 -08:00
derAnfaenger
7798aae6ca
queue processors: Add full coverage for DigestWorker.
2017-11-09 16:01:24 -08:00
derAnfaenger
dac44dda92
Cover users without activity record in email queue digest tests.
2017-11-09 16:01:24 -08:00
derAnfaenger
970e8c5df2
queue processors: Add full coverage for FetchLinksEmbedData.
2017-11-09 16:01:24 -08:00
Tommy Ip
bcd575d8de
bugdown: Rewrite links to local server to be relative links.
...
Fixes #7247
2017-11-09 15:59:31 -08:00
Tim Abbott
982bd9c38d
Fix push notifications for soft-deactivated users.
...
Previously, these push notification events were being generated, but
then ignored in handle_push_notification because there was no
user_message object.
2017-11-09 15:52:29 -08:00
Tim Abbott
c99d20db63
push_notifications: Shrink scope of try/except block.
...
There's no reason this needed to indent the entire function.
2017-11-09 15:30:21 -08:00
derAnfaenger
3ac09b3e9b
queue processors: Add coverage for SlowQueryWorker.
2017-11-09 15:20:40 -08:00
Tim Abbott
25c669df52
queue_processors: Extract LoopQueueProcessingWorker class.
...
This should help make it easier to add tests coverage for these queue
processors, since they now use a system more similar to the other
queue processors.
2017-11-09 15:20:40 -08:00
Tim Abbott
64b4d83038
push_notifications: Improve debugging of lookup problems.
...
We're having this error being thrown often, and don't know why.
2017-11-09 15:20:24 -08:00
Tommy Ip
7477fbb14e
docs: Remove dangling </p> tag.
...
Fixes #7336
2017-11-09 14:39:40 -08:00
Garvit
8084f2dc55
Add: Profile picture popover on clicking mentions in chats.
...
Fixes #6380
2017-11-09 12:21:16 -08:00
Steve Howell
9b723c7a32
Use encode() in zerver/lib/logging_util.py.
2017-11-09 10:43:20 -08:00
Steve Howell
3158ed01bf
Remove force_str() in upload.py.
2017-11-09 10:43:20 -08:00
Steve Howell
531a3ee9de
refactor: Fix parse.quote(force_str(s)) calls in bugdown.
2017-11-09 10:43:20 -08:00
Steve Howell
8eaeba8615
refactor: Remove dict_with_str_keys().
...
This function is no longer needed in python3, as it was decoding
keys that already came for a JSON-decoded string.
2017-11-09 10:43:20 -08:00
Steve Howell
b0bb09cdb8
Remove force_text() in get_signed_upload_url().
2017-11-09 10:43:20 -08:00
Steve Howell
7da6beac99
Remove force_text() in upload.get_file_info().
2017-11-09 10:43:20 -08:00
Steve Howell
a9f42e6266
Remove force_text() from sanitize_name().
2017-11-09 10:43:20 -08:00
Steve Howell
17cfead19a
Remove force_text() in twitter_text().
2017-11-09 10:43:20 -08:00