Brock Whittaker
f651c7fb18
user-profile: Add mobile-responsive styling.
...
This changes the styling of the user profile popup to be responsive
to mobile devices. In this case it is converted to a modal form using
flex to center it on devices with screen sizes under 768px in width.
Fixes #4669 .
2017-05-10 16:49:42 -07:00
Tejas Kasetty
5dd5c84854
Add support for emoji picker hotkeys in compose context.
...
This is a follow-up to merging the compose and reactions emoji
pickers. The logic for what happens when the user picks an emoji via
the hotkeys (i.e. hits `enter`) was still attempting to add a reaction
to the currently selected message unconditionally.
This commit adds a check in the two `enter` key code paths, and does
the correct thing in each case.
Fixes #4736 .
2017-05-10 16:26:58 -07:00
Brock Whittaker
52059d21a4
product-pages: Fix broken click target on .hamburger.
...
The click target was still for #hamburger even though it has since
been changed to .hamburger. This fixes the selectors to make it work
with the new className declaration over ID.
2017-05-10 14:56:36 -07:00
Tim Abbott
e8eaec0a18
mypy: Fix various errors caught by removing cache_with_key.
2017-05-10 14:37:20 -07:00
Tim Abbott
e55b4b0d43
invites: Fix buggy access to non-existant user_profile.name.
2017-05-10 14:31:24 -07:00
Tim Abbott
a85c066722
confirmation: Fix race with invite and email change.
2017-05-10 14:31:24 -07:00
Tim Abbott
df8a577aa6
zephyr_mirror: Include URL for mirroring server.
2017-05-10 11:54:09 -07:00
Tim Abbott
b595ec6fbe
zephyr_mirror: Fix buggy zephyr_mirror_backend import.
2017-05-10 11:52:34 -07:00
Tim Abbott
4c572ea296
zmirror-renew-kerberos: Clean up hardcoding of user ID.
2017-05-10 11:52:34 -07:00
Tim Abbott
66e52037c0
zephyr_mirror: Avoid transmitting null characters to server.
2017-05-10 11:52:34 -07:00
Tim Abbott
87f06fd837
zephyr_mirror: Add support for discuss-format messages.
2017-05-10 11:52:34 -07:00
Tim Abbott
a0a50d410c
test_docs: Add tests to ensure all integrations present.
2017-05-10 11:30:32 -07:00
Tim Abbott
a3ddd94aa3
integrations: Remove unnecessary email_integration_enabled.
...
Previously, we were ending up with 2 copies of the email integration
in there.
2017-05-10 11:24:25 -07:00
Tim Abbott
f94193c231
integrations: Remove unnecessary conditional.
2017-05-10 11:21:10 -07:00
Tim Abbott
248785e66e
integrations: Fix missing links to non-webhook integrations.
...
Apparently help_content was attached to the wrong class.
Fixes #4744 .
2017-05-10 11:17:56 -07:00
Tim Abbott
232592cc9f
test_sessions: Extends tests to reach 100% coverage of sessions.py.
...
Fixes #3980 .
2017-05-10 10:12:21 -07:00
andrewallen00
53f1f75fcb
Add tests for zerver/lib/sessions.py.
2017-05-10 10:12:14 -07:00
Steve Howell
f60a829b4d
Remove lightbox.is_open property.
...
Outside of lightbox.js, we now use modals.lightbox_open() to
detect that the lightbox modal is open.
2017-05-10 09:46:21 -07:00
Steve Howell
1d7f93e550
Avoid re-opening the lightbox.
...
If the lightbox is already open, don't re-open it.
2017-05-10 09:46:21 -07:00
Tim Abbott
0e05f3f4ee
emails: Remove pre-email-migration scheduled jobs.
...
This fixes an issue introduced when we migrated the format of all of
our emails, which caused any old ScheduledJob rows to be corrupted.
2017-05-10 09:45:40 -07:00
Tim Abbott
c2a11655ef
css: Decrease stream padding in left sidebar.
2017-05-10 09:45:40 -07:00
Tim Abbott
9f7236eec1
message: Remove unused old gravatar_hash field from message dicts.
...
This was deprecated and replaced some 4 years ago.
2017-05-09 22:33:27 -07:00
Tim Abbott
e3505bd5ae
avatar: Fix memcached query loop fetching messages.
...
This fixes a major performance issue, where we would fetch
user_profile objects inside a code path that had already bulk-fetched
the necessary user objects.
Like the similar related changes we just made, the fix is to marshall
and pass the data into the avatar library directly.
2017-05-09 22:33:27 -07:00
Tim Abbott
0990246289
avatar: Fix memcached query loop fetching bots.
...
Similar to the related issue with users, the new avatar storage had
accidentally added database queries in a loop to this code path.
2017-05-09 22:33:27 -07:00
Tim Abbott
8e47dc73bd
avatar: Fix loop doing database queries in register.
...
Due to the refactoring of the avatar URL codepath that added realm IDs
to the URLs, we ended up calling `get_user_profile_by_email` inside
`get_avatar_url`, which in turns was called in a loop over all users
in a realm.
Needless to say, this resulted in a significant performance problem.
We fix this issue by passing in the data needed to compute the avatar
URL, rather than looking it up by email address.
2017-05-09 22:33:27 -07:00
Tim Abbott
676d4f32fc
avatar_url: Fix unnecessary database query.
...
If we have a user_profile object, there's no reason to fetch it again
from memcached.
2017-05-09 22:33:27 -07:00
Tim Abbott
c8b0ac0a05
avatar_hash: Extract user_avatar_path_from_ids.
2017-05-09 22:31:24 -07:00
Tim Abbott
e94586adb4
puppet: Fix path to events_deliver_enqueued_emails.log.
2017-05-09 22:29:58 -07:00
Tim Abbott
c21d336bfe
css: Use the Zulip static asset pipeline for emoji sprite sheet CSS.
...
This should be a nonfunctional change in most cases; the main benefit
should be preventing caching issues if/when our sprite sheets change.
2017-05-09 19:45:57 -07:00
Tim Abbott
3d5350408b
css: Fix vertical alignment of global filter counts..
2017-05-09 19:17:33 -07:00
Tim Abbott
60a81fef43
design: Restore font color in left sidebar to #333 .
...
This fixes a major complaint with the left sidebar styling.
2017-05-09 19:00:46 -07:00
Brock Whittaker
7dbf0c8811
Normalize left and right sidebar font size.
...
This normalizes the left and right sidebar font size to be 0.89rem.
2017-05-09 18:54:10 -07:00
Brock Whittaker
242eb9b346
portico-sidebar: Fix sidebar logo to be current logo.
...
This fixes the sidebar logo to be the current zulip logo rather
than a mockup of a potential logo that was from the redesign.
2017-05-09 18:48:33 -07:00
Steve Howell
5c52495b64
Use modals.settings_open().
...
We now uses modals.settings_open() to check for the settings
modal being open, rather than doing a regex check on
windows.location.hash.
2017-05-09 18:44:08 -07:00
Steve Howell
37254c9031
Simplify ESC handling for modals.
...
Rather than checking every modal individually in hotkey.js for
handing the escape key, we now use the modals API:
is_active: says whether any modal is open
close_active: closes the active modal
2017-05-09 18:44:08 -07:00
Steve Howell
23b7be90c2
Fix console errors with closing settings.
...
We were mapping the escape key to fake-click a redundant
click handler when the settings pages were open. This fix
lets the actual click handling work via modals.js, and it
lets keyboard handling directly calls modals.close_settings().
2017-05-09 18:44:08 -07:00
Tim Abbott
bd3e338c35
templates: Fix URL coverage for new files.
2017-05-09 18:42:24 -07:00
Tim Abbott
fc24a56fc5
test_docs: Fix expected text in /hello page.
2017-05-09 17:23:38 -07:00
Tim Abbott
df6dba9673
test_home: Fix expected text in /hello page.
2017-05-09 16:59:33 -07:00
Brock Whittaker
3fd3ae4199
Restyle /hello/ page.
...
This restyles the /hello/ page to be the new portico branding.
2017-05-09 16:31:57 -07:00
Brock Whittaker
a82a0d16d5
Add landing page assets.
...
This adds the required logos and other assets for the /hello/ page.
2017-05-09 15:26:45 -07:00
Tim Abbott
484adf1461
about: Update words of developer documentation.
2017-05-09 15:04:17 -07:00
Tim Abbott
6dd85a78ce
about: Update to have slightly more current numbers.
2017-05-09 15:03:30 -07:00
Tim Abbott
937dcdde59
docs: Update which projects are marked complete in roadmap.
...
We need to do a more significant update soon, but this will at least
make things passable for now.
2017-05-09 14:34:53 -07:00
Tim Abbott
68be0edc67
Update changelog since the Zulip 1.5 release.
...
It's amazing how much we've done in the last few months.
2017-05-09 14:02:24 -07:00
Tim Abbott
2d97db3518
streams: Add endpoint for modifying properties of a single stream.
...
This is likely to be the more common endpoint for API clients like the
mobile apps to interact with when modifying streams.
2017-05-09 13:42:34 -07:00
kunall17
e087bc24f8
streams: Migrate stream property changes to new REST endpoint.
...
This is one of the last major endpoints that were still done in the
pre-REST style.
While we're at it, we change the endpoint to expect a stream ID, not a
stream name.
2017-05-09 13:39:23 -07:00
Rishi Gupta
a75af36039
stats: Change sort order of client labels to match default view.
2017-05-09 11:32:35 -07:00
Rishi Gupta
ee16abaf3b
analytics: Fix sort function in views.sort_client_labels.
...
sort_client_labels sorts first by total, and then to ensure deterministic
outcomes, sorts (reverse) alphabetically by label.
Fixes regression introduced in 0c0e539
.
2017-05-09 11:32:35 -07:00
Rohitt Vashishtha
0414ac6df5
bugdown: Convert GitHub image-preview urls to image urls.
...
This makes inline image previews work for links to image files' pages
on GitHub.
Fixes #4658 .
2017-05-09 11:22:37 -07:00