Commit Graph

14854 Commits

Author SHA1 Message Date
Tim Abbott dd8fb093c8 Rename 'Stream Settings' to 'Stream settings'. 2017-01-16 18:00:10 -08:00
Sampriti Panda b4b6516ca0 narrow: Fix narrowing errors for topics with name 'home'.
Added a `.home-link` class to 'Home' links to separate them
from topic links with the name 'home'

Fixes #3340
2017-01-16 09:46:05 -08:00
Steve Howell 7b5bc40b42 Remove broken K+R link from reading list. 2017-01-16 09:00:20 -08:00
synicalsyntax b228221fdf docs: Document *Follow steps* macro in user documentation styling guide. 2017-01-15 11:17:16 -08:00
synicalsyntax c85274d665 docs: Add *Follow steps* macro to *Make a user an administrator* doc. 2017-01-15 11:16:18 -08:00
Cynthia Lin 9812e776c7 docs: Add *Follow steps* macro to *Invite a friend to Zulip* doc. 2017-01-15 11:16:18 -08:00
Cynthia Lin 12aa861b4f docs: Add *Follow steps* macro to *Configure mobile notifications* doc. 2017-01-15 11:16:18 -08:00
Cynthia Lin 7041a0d0e2 docs: Add *Follow steps* macro to *Change your organization's name* doc. 2017-01-15 11:16:18 -08:00
Cynthia Lin 84659574c9 docs: Add *Follow steps* macro to *Change a user's name* doc. 2017-01-15 11:16:18 -08:00
Cynthia Lin 1b173ee99a docs: Create *Follow steps* macro. 2017-01-15 11:16:18 -08:00
Cynthia Lin 67cc345fab docs: Fix x icon formatting. 2017-01-15 11:07:22 -08:00
Cynthia Lin 10769306b9 docs: Fix formatting error in *Upload and share files* doc. 2017-01-15 11:04:42 -08:00
Cynthia Lin 2cd8d0e70e docs: Conform *View an image at full size* doc to documentation styling guidelines. 2017-01-15 11:04:42 -08:00
synicalsyntax 760a267668 docs: Conform *View the exact time a message was sent* doc to documentation styling guidelines. 2017-01-15 11:04:42 -08:00
synicalsyntax 83946e29ec docs: Conform *View information about a message* doc to documentations styling guidelines. 2017-01-15 11:04:42 -08:00
synicalsyntax 6e77c9e9e6 docs: Update *View the markdown source of a message* doc.
Rewrite for better clarification.
2017-01-15 11:04:42 -08:00
synicalsyntax 191ef9fc33 docs: Update *Organize the Streams sidebar* doc.
Adds links to the stream actions described in the doc, also moves it to
a more relevant place in `index.md`
2017-01-15 11:04:42 -08:00
synicalsyntax f64cb818e2 docs: Update *About streams and topics* doc. 2017-01-15 10:56:24 -08:00
synicalsyntax ecc2259815 docs: Fix *Restrict user email addresses to certain domains* doc.
There were some formatting errors.
2017-01-15 10:56:24 -08:00
Steve Howell 44233cef4b Extract contrib_bots/bot_lib.py from run.py.
Splitting out some of the bot functions into a library
will make it easier for heavily customized bots to have
their own version of run.py, instead of the shared one
that we use for everyone now.  If they use bot_lib.py
directly, they will still most likely conform to
the "Handler" interface as long as they call
run_message_handler_for_bot.

Most bots should continue to use contrib_bots/run.py
for now.
2017-01-14 12:44:50 -08:00
JefftheBest1 69f9c300b8 ui: Change grey to gray in ui.js comment. 2017-01-14 12:36:06 -08:00
JefftheBest1 8e0aa90065 docs: Improved titles in signing-out.md. 2017-01-14 12:27:53 -08:00
Rafid Aslam b4c02edc6b create_user: Remove Python 3 related hack about bot_owner.
This commit reverts commit "29673411df8dffd50198c0f01c5db8561a782adf"
due to the bug is not reproducible anymore (it seems likely this was a
bug in Django fixed between Django 1.8 and 1.10).

Fixes #1297.
2017-01-14 12:22:38 -08:00
adnrs96 153ad18807 Lint for duplicate ids in templates.
In this commit we enhance our current template linter to detect
duplicate ids and report them during lint checks. html_branches.py
was topped up with a new function build_id_dict for the purpose.

Also the get_tag_info function in same file was updated to parse
ids and classes more robustly in cases of template variables.
split_for_id_and_class function was added to serve this purpose.

Unit tests for both the functions were created under
tests/test_html_branches. Also a directory under tests called
test_template_data was created to hold templates for testing under
newly created functionality.

check_templates was modified to print to console any duplicates
detected.
showell reviewed my commit and helped me out.

Fixes #2950.
2017-01-13 17:00:22 -08:00
Sampriti Panda 196cf4367b urls: Move /messages/render to POST endpoint 2017-01-13 16:11:51 -08:00
hackerkid 510659d402 Add virtualenv activation in .zprofile. 2017-01-13 15:13:44 -08:00
JefftheBest1 d71cf373ec docs: Added extra step to Restrict user email addresses to certain domains 2017-01-13 15:12:30 -08:00
JefftheBest1 02aec2b2e3 docs: Organize the streams sidebar. Fixes #3272 2017-01-13 14:48:28 -08:00
Yago González 814c24cfd6 docs: Reorganize steps in Documenting your integration. 2017-01-13 13:50:58 -08:00
Rafid Aslam 38331aa81a right-sidebar: Remove border on the top of user list
Remove the border on the top of user list, especially on the top
of "USERS" word. The border is moved to bottom of feedback section.
2017-01-13 10:25:28 -08:00
Robert Hönig b8fbfe305f Remove superfluous comment in triage_message(). (#3291) 2017-01-13 10:21:45 -08:00
Juan Verhook 4d500e626e interactive bots: Create your own virtual assistant 2017-01-13 07:22:04 -08:00
Rafid Aslam 85def38418 Change error handling in `get_subscribers()` in Zulip API client.
Fixes #3281.
2017-01-13 07:14:50 -08:00
Tim Abbott b6476fdd81 stream creation: Disable autocomplete on filter text box. 2017-01-12 22:53:05 -08:00
Maydha K dd23e09592 interactive bots: Create tic-tac-toe bot. 2017-01-12 17:26:19 -08:00
Robert Hönig 89a64de986 De-dup "outside_viewport" notifications on different tabs.
Pass down 'local_id' through functions that handle notifications for messages
that are sent locally. If 'local_id' is undefined, the message was not sent in
the respective tab, so no "outside_viewport" notification should be displayed.
This fixes #1783.
2017-01-12 17:08:18 -08:00
Katy310 7206685dae Make more streams visible when window is narrow.
When user list displays on the left, the maximum height of the
<code>stream-filters-container</code> is determined by the function
<code>confine_to_range(lo,val,high)</code>. By changing the value of
<code>lo</code> to 80, the <code>stream-filters-container</code>
resizes to 80 px instead of 40 px.

Fixes #2510.
2017-01-12 16:53:45 -08:00
Jackson 591efe2d64 interactive bots: Add FourSquare bot and documentation. 2017-01-12 16:51:13 -08:00
brockwhittaker b3b361bae0 Add onhover grey checkmarks for unsubscribe streams.
This adds styling such that when you hover over a stream in the streams
list and you are not subscribed, you will see a faint grey checkmark
that serves as a target of where to click so you can subscribe to a
stream.
2017-01-12 16:47:32 -08:00
brockwhittaker 7762614482 Add deep link to unsubscribed streams list.
This adds a deep link behind a “+” icon above the streams list on the
left-sidebar which opens the subscriptions page and then also toggles
the tabs to go to the unsubscribed stream list.
2017-01-12 16:47:32 -08:00
Yago González 5fea825260 docs: Add the Reading list. 2017-01-12 16:42:52 -08:00
Tim Abbott a64a1de023 lint: Be more permissive with Markdown links. 2017-01-12 16:42:51 -08:00
anirudhjain75 f2980f2504 docs: Edit about-streams-and-topics.md to conform to style guide 2017-01-12 16:30:01 -08:00
anirudhjain75 84d065265b docs: Edit browse-and-join-streams.md to conform to style guide 2017-01-12 16:28:42 -08:00
anirudhjain75 8b180b1455 docs: Edit create-a-stream.md to conform to style guide 2017-01-12 16:28:13 -08:00
Vamshi Balanaga 72cfc64144 docs: Fix grammatical error in Verify that your message has been succesfully sent 2017-01-12 15:48:30 -08:00
Anirudh Jain 705ae523db emoji picker: Add emoji next at cursor instead of end of message.
Simplified by tabbott.

Fixes: #3155
2017-01-12 15:31:18 -08:00
Steve Howell baef662dcb Add tools/review for reviewing PRs.
This script ensures you are starting on master in a pristine
state, and then it creates a branch called review-NNNN for
PR #NNNN in your local repo, along with some basic stats about
the PR.
2017-01-12 15:26:40 -08:00
Rafid Aslam d3ee53bdef Move endpoints to use stream_id instead of stream_name in their URLs
- Change `stream_name` into `stream_id` on some API endpoints that use
`stream_name` in their URLs to prevent confusion of `views` selection.

For example:
If the stream name is "foo/members", the URL would be trigger
"^streams/(?P<stream_name>.*)/members$" and it would be confusing because
we intend to use the endpoint with "^streams/(?P<stream_name>.*)$" regex.

All stream-related endpoints now use stream id instead of stream name,
except for a single endpoint that lets you convert stream names to stream ids.

See https://github.com/zulip/zulip/issues/2930#issuecomment-269576231

- Add `get_stream_id()` method to Zulip API client, and change
`get_subscribers()` method to comply with the new stream API
(replace `stream_name` with `stream_id`).

Fixes #2930.
2017-01-12 15:23:31 -08:00
Rafid Aslam 156eefacc2 API: Add `json/get_stream_id` endpoint
Add `json/get_stream_id` endpoint, used to convert `stream_name`
into `stream_id`.
2017-01-12 15:23:31 -08:00