Commit Graph

14231 Commits

Author SHA1 Message Date
Rishi Gupta 2b0a7fd0ba Rename models.get_realm_by_string_id to get_realm.
Finishes the refactoring started in c1bbd8d. The goal of the refactoring is
to change the argument to get_realm from a Realm.domain to a
Realm.string_id. The steps were

* Add a new function, get_realm_by_string_id.

* Change all calls to get_realm to use get_realm_by_string_id instead.

* Remove get_realm.

* (This commit) Rename get_realm_by_string_id to get_realm.

Part of a larger migration to remove the Realm.domain field entirely.
2017-01-04 17:12:23 -08:00
Tim Abbott 0a6d960f37 emoji: Fix graphical artifacts of adjacent emoji in sprite sheet.
We didn't have any margin between the different emoji symbols
previously.
2017-01-04 17:12:23 -08:00
Jackson 652ae2639e help: Replace screenshots and cleanup markdown source article.
With some small copy edits by tabbott.

Fixes #2987.
2017-01-04 16:28:36 -08:00
Bojidar Marinov e293a84331 narrow: Fix the client sending more than one search operator. 2017-01-04 16:02:41 -08:00
Bojidar Marinov ffabf5fc49 Add .editorconfig for most file extensions with more than one use.
I didn't add anything about the following extensions since they had
way too many different styles:

- .txt
- .conf
- .erb (saw tab, 2-spaced, 4-spaced and 8-spaced files around the codebase)

Fixes #3099.
2017-01-04 15:15:31 -08:00
Brock Whittaker 6079584c85 perf: Use offsetHeight rather than getBoundingClientRect() in condenser.
Using the offsetHeight getter is ~2.5x faster than
getBoundingClientRect() on what can be an expensive operation to do in
the hundreds of times.

Note: Tim thinks that this may have been different a few years ago,
since we tested fairly carefully before settling on
getBoundingClientRect, but benchmarks pretty clearly show offsetHeight
is faster today, so we should use that.
2017-01-04 12:42:16 -08:00
Brock Whittaker e7687bff6f Hide/Show Optimization with #group-pm-list.
The #group-pm-list now only should change state from hidden to
displayed once, which removes time spent recalculating styles in the
DOM.
2017-01-04 12:36:55 -08:00
Yago González a2ebb066b4 docs: Fix formatting typo. 2017-01-04 10:12:07 -08:00
Cynthia Lin bf063cebbc docs: Update documentation styling guide with new macro information. 2017-01-04 08:50:38 -08:00
Cynthia Lin 7d4949f897 user docs: Remove unnecessary images. 2017-01-04 08:50:38 -08:00
Cynthia Lin 7fec4d4074 user docs: Add *Subscriptions* macro to *Rename a stream* doc. 2017-01-04 08:50:38 -08:00
Cynthia Lin 26ea7ac328 user docs: Add *Administration* macro to *Set default streams for new users* doc. 2017-01-04 08:50:38 -08:00
Cynthia Lin 58d364f3ae user docs: Add *Administration* macro to *Delete a stream* doc. 2017-01-04 08:50:38 -08:00
Cynthia Lin 00c940f91d user docs: Add *Administration* macro to *Change a user's name* doc. 2017-01-04 08:50:38 -08:00
Cynthia Lin ae03816cae user docs: Add *Administration* macro to *View a list of bots in your organization* doc. 2017-01-04 08:50:38 -08:00
Cynthia Lin e49b76ee11 user docs: Add *Administration* macro to *Make a user an administrator* doc. 2017-01-04 08:50:38 -08:00
Cynthia Lin cfc63a55a8 user docs: Add *Administration* macro to *Deactivate or reactivate a bot* doc. 2017-01-04 08:50:38 -08:00
Cynthia Lin 329f2b278f user docs: Add *Administration* macro to *Deactivate or reactivate a user* doc. 2017-01-04 08:50:38 -08:00
Cynthia Lin 31fdc56260 user docs: Add *Administration* macro to *Add a custom linkification filter* doc. 2017-01-04 08:50:38 -08:00
Cynthia Lin 0241b8baa9 user docs: Add *Administration* macro to *Add custom emoji* doc. 2017-01-04 08:50:38 -08:00
Cynthia Lin 6f58710b48 user docs: Add *Administration* macro to *Change the default language of your organization* doc.
Renaming doc in accordance with https://github.com/zulip/zulip/issues/3031
2017-01-04 08:50:38 -08:00
Cynthia Lin 6d13b92b14 user docs: Add *Administration* macro to *Restrict editing of old messages and topics* doc. 2017-01-04 08:50:38 -08:00
Cynthia Lin 9fbfc275e5 user docs: Add *Administration* macro to *Only allow administrators to invite new users* doc. 2017-01-04 08:50:38 -08:00
Cynthia Lin ac04e5ce9c user docs: Add *Administration* macro to *Allow anyone to join without an invitation* doc. 2017-01-04 08:50:38 -08:00
Cynthia Lin b6b42c3b4c user docs: Add *Administration* macro to *Change your organization's name* macro 2017-01-04 08:50:38 -08:00
synicalsyntax e1c9d0f814 user docs: Modify *Settings* macro to use *Go to the* macro.
Created a *Go to the* macro that can be used by both *Settings* and
*Administration* macro.
2017-01-04 08:50:38 -08:00
synicalsyntax a36d39f774 user docs: Create *Administration* macro. 2017-01-04 08:50:38 -08:00
synicalsyntax ab9356ad44 user docs: Remove outdated *Settings* macro. 2017-01-04 08:50:38 -08:00
Steve Howell 8655472135 Use zproject.settings in tools/diagnose. 2017-01-04 08:48:54 -08:00
Steve Howell 7029917129 Add check_migrations() to tools/diagnose script. 2017-01-04 07:51:22 -08:00
Steve Howell cd16a26c9a Add check_venv() to tools/diagnose script. 2017-01-04 07:51:22 -08:00
Steve Howell 0fd9f23505 Add tools/diagnose script.
This script does a basic sanity check on a dev environment.
2017-01-04 07:51:22 -08:00
Umair Khan f208813ea3 Add Find My Team feature. 2017-01-03 21:33:42 -08:00
vaibhav 268770489b typeahead: Prevent duplicate private message recipients.
This matches the recipients and displays the ones which haven't been
added already.

Fixes: #2499.
2017-01-03 20:37:47 -08:00
Tim Abbott fa3a1de9c7 zulip_codebase_mirror: Move Text/six imports after sys.path changes. 2017-01-03 20:24:03 -08:00
AZtheAsian c155b9162d mypy: Annotate api/integrations/codebase/zulip_codebase_mirror. 2017-01-03 20:23:06 -08:00
Vamshi Balanaga fb6ae449da integrations: Add documentation for solano labs. 2017-01-03 20:18:34 -08:00
Vamshi Balanaga 234310bfd1 integrations: Add webhook code, API endpoint, and tests for solano labs. 2017-01-03 20:18:34 -08:00
Vamshi Balanaga d6b551d508 integrations: Add webhook payloads for solano labs 2017-01-03 20:18:34 -08:00
Alex Morozov 338c05a15b docs: Create a Russian translation style guide. 2017-01-03 19:33:43 -08:00
Bojidar Marinov 1c044688a4 compose: Make ctrl-enter, meta-enter, etc. add newline with enter_sends.
Tweaked by tabbott to ensure we update the compose box size as well.

Fixes #2989.
2017-01-03 19:14:38 -08:00
Tim Abbott e943c1d247 compose: Export autosize_textarea. 2017-01-03 19:14:38 -08:00
Tommy Ip 92dd4c1b98 Automatically hide all popovers on scroll. 2017-01-03 18:45:21 -08:00
anirudhjain75 3bd70075c4 doc: Add user documentation for view the list of bots in an organization.
With several cleanups by tabbott.
2017-01-03 18:44:37 -08:00
Cynthia Lin 4f17d6cc61 docs: Add user guide for *Configure audible notifications* feature 2017-01-03 18:39:22 -08:00
Tim Abbott 767f30a7e5 zulip_basecamp_mirror: Move some imports after sys.path updates. 2017-01-03 18:36:12 -08:00
Jackson 98ca518461 mypy: Add annotations to api/integrations/basecamp/zulip_basecamp_mirror 2017-01-03 18:34:26 -08:00
Brock Whittaker d8fc30a776 Change escape key interception with subscription overlay.
The escape key used to be intercepted if the subscription pay display
was set to “block”, but now since we use the class “show” and lack to
hide and show the overlay, the query needs to change.
2017-01-03 17:55:22 -08:00
Alicja Raszkowska e21fe8b886 css: Create a separate file for right-sidebar CSS.
Create a new file right-sidebar.css.
Move all right-sidebar CSS from zulip.css to right-sidebar.css.
2017-01-03 16:57:51 -08:00
Tim Abbott 0018cd588e docs: Clean up testing with casper selectors discussion. 2017-01-03 16:56:50 -08:00