Vishnu Ks
05af206392
management: Remove unused imports from import command.
2017-08-08 14:13:19 -07:00
Vishnu Ks
f58efdc3cb
management: Remove unused imports from export_usermessage_batch.
2017-08-08 14:13:19 -07:00
Vishnu Ks
28e76c990a
management: Remove unused imports from email_mirror command.
2017-08-08 14:13:19 -07:00
Vishnu Ks
6687b236bf
management: Remove unused imports from deliver_email command.
2017-08-08 14:13:19 -07:00
Vishnu Ks
b8dacf9bf6
management: Remove unused import from checkconfig command.
2017-08-08 14:13:19 -07:00
Vishnu Ks
5ce0d85ccf
management: Remove unused import from check_redis command.
2017-08-08 14:13:19 -07:00
Vishnu Ks
19f8da4995
management: Use self.get_realm in export command.
2017-08-08 14:13:19 -07:00
Vishnu Ks
4e9dff09fd
management: Use self.get_realm in dump_messages.
2017-08-08 14:13:19 -07:00
Vishnu Ks
bc48c68c09
management: Use self.get_realm in reactivate_realm command.
2017-08-08 14:13:19 -07:00
Vishnu Ks
279af33ea2
management: Use self.get_realm in deactivate_realm.
2017-08-08 14:13:19 -07:00
Vishnu Ks
349d604ad5
management: Use self.get_realm in create_user.
2017-08-08 14:13:19 -07:00
Vishnu Ks
679fece79d
management: Add argument for specifying help in add_realm_args.
2017-08-08 14:13:19 -07:00
Steve Howell
9cad3a009f
Add topic server history, but behind a feature flag.
...
You can now see full topic history if you set the flag
`feature_flags.use_server_topic_history` to `true`.
2017-08-08 17:07:09 -04:00
Steve Howell
3b88e592d0
Add topic_data.get_server_history().
...
This isn't connected to anything yet, but you can now get
all the historical topics for a stream by calling
topic_data.get_server_history().
2017-08-08 17:07:09 -04:00
Tim Abbott
9bbcb712ec
travis: Fix content-length test.
2017-08-08 13:22:22 -07:00
Brock Whittaker
7d80e0c78c
portico: Fix #registration padding.
...
This fixes the registration padding to not be really large. It was an
issue of margin + padding instead of using margin for both where the
result would be max(margin1, margin2).
2017-08-08 13:21:48 -07:00
Brock Whittaker
6a406e2b70
portico: Fix tables to be striped again.
...
This fixes tables to be in more of a compartment and striped again
(which they lost due toe the light grey background).
2017-08-08 13:21:48 -07:00
Brock Whittaker
9f2017c1aa
portico: Unify with smaller box shadows.
...
This unifies components with smaller, more consistent box shadows.
2017-08-08 13:21:48 -07:00
Brock Whittaker
3d4198c681
Replace `String.prototype.startsWith` with `indexOf`.
...
This replaces the `startsWith` string prototype method with `indexOf`
because no versions of Internet Explorer support this feature, and
it really is not difficult to just use `indexOf` instead and check
whether the starting index of the full string is 0.
2017-08-08 12:06:32 -07:00
Brock Whittaker
be33266f83
Make 4xx and 5xx pages full screen.
...
This makes the 4xx and 5xx pages full screen by changing the
`.error_page` div to be fixed and full screen height.
2017-08-08 11:58:22 -07:00
neiljp (Neil Pilgrim)
b782db48e1
mypy: Remove superfluous older 'type: ignore' annotations.
2017-08-08 11:27:51 -07:00
neiljp (Neil Pilgrim)
67f1a72aae
mypy: Ensure events test fails only due to settings absence.
2017-08-07 21:27:50 -07:00
neiljp (Neil Pilgrim)
3711da0dc9
mypy: Mark request_data as Optional based on requests API.
2017-08-07 21:27:50 -07:00
neiljp (Neil Pilgrim)
116b8dd9c9
mypy: Set assign_queue() parameter queue_type to not be Optional.
2017-08-07 21:27:50 -07:00
neiljp (Neil Pilgrim)
24cc14c10d
mypy: Refer to default_stream in if statement, allowing type inference.
2017-08-07 21:27:50 -07:00
neiljp (Neil Pilgrim)
982c0481d0
mypy: Mark log_file as Optional[str] in test_server.py.
2017-08-07 21:27:50 -07:00
neiljp (Neil Pilgrim)
60baedcab9
mypy: strict-optional fixes for Trello integration.
2017-08-07 21:27:50 -07:00
neiljp (Neil Pilgrim)
d9e36c8156
mypy: strict-optional fixes in zerver/tornado/socket.py.
2017-08-07 21:27:50 -07:00
neiljp (Neil Pilgrim)
b7103752dc
mypy: Add assertions relating to Popen.stdout with subprocess.PIPE use.
2017-08-07 21:27:50 -07:00
Greg Price
b6d90808a5
prod: Make `cp` copy a directory to its target, not into it.
...
This was causing `language_options.json` and the `django.mo` files
never to get updated by `upgrade-zulip-from-git` after first deploy.
The stale `django.mo` files meant that any message string which wasn't
in the original from-tarball installation of the server would never
get translated.
The same bug exists in several other spots in this file. Some of
our repetitive-yet-subtly-different uses of `cp` should probably
turn into just a list of arguments to one `rsync -R` command.
Also this should probably really use `rsync --delete` -- for example,
in prod on zulipchat.com we still have lying around a `locale/zh_CN`
directory, even though in a freshly-built static tree there's only
`locale/zh_Hans` instead.
2017-08-07 19:23:27 -07:00
Vaida Plankyte
cd560a80f2
settings.py: Add GOOGLE_OAUTH2_CLIENT_ID to DEFAULT_SETTINGS.
...
Allows the command-line help text to appear for Google
authentication, rather than a traceback.
2017-08-07 18:38:06 -07:00
Greg Price
8ccd8a7d27
settings: Wait for i18n setup before rendering settings nav.
...
Much like the parent commit and 038a2c769
, but this time for the
"Settings"/"Organization" nav at the upper-left of the settings overlay.
2017-08-07 18:22:51 -07:00
Greg Price
ee3ead2744
ui: Wait for i18n setup before rendering hotkeys help.
...
Much like 038a2c769
, but for the three tabs at the top of the
`?` help overlay for keyboard shortcuts.
2017-08-07 18:22:51 -07:00
Greg Price
8ab213e3e4
locale: Update Japanese strings.
2017-08-07 16:58:10 -07:00
Pweaver (Paul Weaver)
a20e1298ab
webpack: jQuery and underscore should be compilied normally to make errors readable.
...
We will use the normal compliation process so we can understand errors in development and production.
2017-08-05 19:53:56 -07:00
Jack Zhang
4ba5b2f364
docs: Create hotspots subsystem documentation.
2017-08-05 18:32:37 -07:00
Jack Zhang
d9c1ad5db2
hotspots.py: Add SEND_ALL flag.
...
Used to view all hotspots in development.
2017-08-05 18:32:37 -07:00
Jack Zhang
c69b5d7d65
hotkey: Add support for hotspots on enter.
2017-08-05 18:32:37 -07:00
Jack Zhang
04fda9e51f
hotspots: Decrease default hotspot icon z-index to 100.
...
This keeps hotspot icons positioned at the front of the message
viewport but behind sidebars (i.e. the left sidebar has a z-index
of 103). Hotspots associated with elements outside of the message
viewport should be individually adjusted at the bottom of hotspots.css.
2017-08-05 18:32:37 -07:00
Jack Zhang
1e40665e51
hotspots: Debounce hotspot placement on UI updates by 10ms.
...
A small delay to ensure that the event (i.e. a click) has completed
and the UI has updated before hotspot icon and popover placement
is recomputed.
2017-08-05 18:32:37 -07:00
Jack Zhang
5ce0db9f43
hotspots: Add friendly whale illustration to popover.
2017-08-05 18:32:37 -07:00
Jack Zhang
bbe8f73c23
popovers: Reimplement compute_placement.
...
compute_placement utilizes the dimensions of the viewport, viewport location of
an element, and dimensions of an element to determine if a popover will fit
horizontally and/or veritically given its orientation. The default placement
is now viewport_center, which displays the popover, without an arrow, in the
fixed center of the viewport.
This should be particularly useful for hotspots on mobile or large popovers
that contain a lot of content. The property hotspot.location.popover can be
optionally set to fix the orientation of a popover (most likely to
VIEWPORT_CENTER).
2017-08-05 18:32:37 -07:00
Vaida Plankyte
4b728eda1b
frontend: Fix unnecessary aria-hidden assignments in informational overlay modals.
...
Fixes #6024 .
2017-08-05 18:11:27 -07:00
Vaida Plankyte
ca19cb6900
frontend: Fix stream-creation aria-label assignment.
2017-08-05 18:11:27 -07:00
Vaida Plankyte
ee23e6f118
frontend: Fix default_language_modal aria-hidden assignment.
2017-08-05 18:11:27 -07:00
Harshit Bansal
5a5072730c
realm_emoji: Don't accept animated realm emoji with unequal dimensions.
...
Fixes : #3654 .
2017-08-05 18:07:21 -07:00
Brock Whittaker
4321f1f2b4
/help/: Remove "| User Documentation" string in narrow windows.
...
This responsively moves the header so that it doesn’t push the login,
registration nav options to the next row.
2017-08-05 17:57:07 -07:00
Brock Whittaker
ef3131c77b
help: Change .header nav to be on top of page elements.
...
WARNING: This change affects all portico pages, but it looks better.
This makes the nav sit on top and have a subtle box shadow.
2017-08-05 17:57:03 -07:00
Brock Whittaker
22eb102a8e
help: Change .markdown .content to be white.
2017-08-05 17:57:02 -07:00
Brock Whittaker
3f550a940b
help: Impose a max width for the .markdown .content.
2017-08-05 17:57:00 -07:00