Commit Graph

44950 Commits

Author SHA1 Message Date
Anders Kaseorg
c6ed5c81de styles: Format CSS with Prettier.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-08-04 16:34:19 -07:00
Anders Kaseorg
6c0afbb68d stylelint: Move .stylelintrc to stylelint.config.js.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-08-04 16:32:04 -07:00
SiddharthVarshney
5d6df3dc01 css: Use SCSS nesting for .carousel-indicators. 2020-08-04 16:24:12 -07:00
SiddharthVarshney
7f2c5a7015 css: Use SCSS nesting for .carousel-indicators li. 2020-08-04 16:24:12 -07:00
SiddharthVarshney
7af8b7ff6c css: Use SCSS nesting for .tour .carousel-control. 2020-08-04 16:24:12 -07:00
SiddharthVarshney
1531e38bc2 css: Use SCSS nesting for .tour .carousel-inner .call-to-action. 2020-08-04 16:24:12 -07:00
SiddharthVarshney
d0d4a066d1 css: Use SCSS nesting for .tour .carousel-inner .other-resources. 2020-08-04 16:24:12 -07:00
SiddharthVarshney
26d1df58f7 css: Use SCSS nesting for .tour .carousel-inner .other-resources .other-resources-section. 2020-08-04 16:24:12 -07:00
SiddharthVarshney
a57d979a46 css: Use SCSS nesting for .tour .carousel-inner .comparison-slack img. 2020-08-04 16:24:12 -07:00
SiddharthVarshney
9a67565c12 css: Use SCSS nesting for .tour .carousel-inner img. 2020-08-04 16:24:12 -07:00
SiddharthVarshney
fdf893c0af css: Use SCSS nesting for .tour .carousel-inner .zulip-slack-comparison. 2020-08-04 16:24:12 -07:00
SiddharthVarshney
8487110cca css: Reorder css for .tour .carousel-inner .zulip-slack-comparison .caption. 2020-08-04 16:24:12 -07:00
SiddharthVarshney
e91d3664c3 css: Use SCSS nesting for .tour .carousel-inner .zulip-slack-comparison img. 2020-08-04 16:24:12 -07:00
SiddharthVarshney
b05031530d css: Reorder css for .tour .carousel-inner .zulip-slack-comparison img. 2020-08-04 16:24:12 -07:00
SiddharthVarshney
e8a516aa4d css: Use SCSS nesting for .tour .carousel-inner .start-button. 2020-08-04 16:24:12 -07:00
SiddharthVarshney
d3208c61d7 css: Use SCSS nesting for .carousel.carousel-fade .carousel-inner. 2020-08-04 16:24:12 -07:00
SiddharthVarshney
a8c8aae6f5 css: Use SCSS nesting for .carousel.carousel-fade .carousel-inner .item. 2020-08-04 16:24:12 -07:00
SiddharthVarshney
bfb3e86eab css: Use SCSS nesting for .carousel.carousel-fade .carousel-inner .item.active. 2020-08-04 16:24:12 -07:00
SiddharthVarshney
6371fe7b37 css: Use SCSS nesting for .portico-landing.hello .open-source. 2020-08-04 16:24:12 -07:00
SiddharthVarshney
0e47e2bd2a css: Merge .portico-landing.hello .open-source img css. 2020-08-04 16:24:12 -07:00
SiddharthVarshney
b7216af233 css: Use SCSS nesting for .portico-landing.hello .features. 2020-08-04 16:24:12 -07:00
SiddharthVarshney
4e20923421 css: Use SCSS nesting for .portico-landing.hello .features .col-2. 2020-08-04 16:24:12 -07:00
SiddharthVarshney
7f5f61267e css: Use SCSS nesting for .portico-landing.hello .screen. 2020-08-04 16:24:12 -07:00
SiddharthVarshney
ba4709b000 css: Use SCSS nesting for .portico-landing.hello .screen.hero-screen. 2020-08-04 16:24:12 -07:00
SiddharthVarshney
1b5138d546 css: Use SCSS nesting for .screen. 2020-08-04 16:24:12 -07:00
SiddharthVarshney
db3530d984 css: Use SCSS nesting for .screen .message-feed. 2020-08-04 16:24:12 -07:00
SiddharthVarshney
9b2b5ef3c2 css: Use SCSS nesting for .screen .center-page. 2020-08-04 16:24:12 -07:00
SiddharthVarshney
605431d187 css: Use SCSS nesting for .screen .top. 2020-08-04 16:24:12 -07:00
SiddharthVarshney
2d8391608f css: Use SCSS nesting for .screen .col-4 .action-block. 2020-08-04 16:24:12 -07:00
SiddharthVarshney
af09b49ae7 css: Use SCSS nesting for .screen .line. 2020-08-04 16:24:12 -07:00
Ryan Rehman
60eef68f59 refactor: Extract set_up_typeahead_on_pills to a new file.
We move this function from `user_pill.js` to `pill_typeahead.js`.
The function has also been renamed to `set_up`.

The move was made because there are plans to update the pills
typeahead (i.e. to include user-groups/streams in the results).
Thus this function should not belong in `user_pill.js`.
2020-08-04 15:58:12 -07:00
Anders Kaseorg
a0a0189df1 puppeteer_tests: Fix Prettier formatting of 05-stars.js.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-08-04 15:51:54 -07:00
Ryan Rehman
b4888c1251 subscriptions: Refactor template rendering of stream_privacy_policy.
This makes it similar to `stream_post_policy`.
2020-08-04 15:48:35 -07:00
Ryan Rehman
73fac8e1d7 toggler: Allow skipping over disabled tabs.
This commit allows skipping over any disabled tabs
that are in the middle when using the left or right
arrow keys.

We also add `enable_tab` to the `components` API.
2020-08-04 15:48:34 -07:00
Ryan Rehman
806da412ac subscriptions: Simplify the displaying of subs pane.
".stream-info-title" selector is used to hide both
"#add_new_stream_title" and "#stream_settings_title"
classes. This will be helpful when we add new html
elements to display in the title area..

`clear_edit_panel` can be removed as the next line to
where it is called makes it redundant, we only need
to de-select the stream row, as done in this commit.
2020-08-04 15:30:07 -07:00
Ryan Rehman
e0b5c2ec49 subscriptions: Update get_active_data.tabs to be more specific.
Since the subscriptions container contains multiple toggler components,
it is helpful to know that the function's tab key returns all the active
tabs in the page (currently there are 2). Thus `tab` is changed to `tabs`.

Also, which togglers tab data is being used has been made more specific.
2020-08-04 15:30:07 -07:00
Aman Agrawal
1b05f8e6c9 stream_topic_history: Update max msg id of stream post msg deletion.
After the latest message in a stream is deleted, we should update
the max_message_id in the stream.

Removed false comment in message_util.get_messages_in_topic
this method only takes 2ms for 10,000 messages loaded locally.
2020-08-04 15:29:03 -07:00
Aman Agrawal
b32dc5e58f stream_topic_history: Update topic last msg_id after msg deletion.
Fixes #15992.
If the last message of the topic was deleted, we update the stored
message_id in the topic history so that the topic order in topic_list
is updated correctly.
2020-08-04 15:29:03 -07:00
Tim Abbott
dc2b9fd4f6 docs: Clarify the status of thumbor-based thumbnailing.
This design document was confusing as it didn't clarify that this
wasn't ready for production use.
2020-08-04 14:52:06 -07:00
Dinesh
b05bb93425 puppeteer: Add edit test. 2020-08-04 14:41:00 -07:00
Dinesh
31b46fd0ee puppeteer: Add stars test. 2020-08-04 14:40:59 -07:00
Dinesh
50a01311c0 puppeteer: Fix messages not being echoed locally.
When messages weren't locally echoed,
`wait_for_full_processes_message` fails to assert that the message
is being sent. It was figured out by tabbott that the messages
aren't locally echoed because of content no loading completely.

So, this commit changes the `log_in` function to wait till
the selector '#zhome .message_row' is visible which indicates
that the cotent is loaded.

Removed the waitForNavigation in the `log_in` as it would
become a redundant check after this change.

Also removed this same check present in 03-compose.js which
becomes reduntant as we already do it in `log_in`.
2020-08-04 14:33:37 -07:00
Dinesh
90d956d2ed puppeteer: Rename settings test to be the last test.
This test changes user password causing all subsequent
tests to fail. Since rechanging the password would be
a redudant test/task or having manually entering the
new password in every test after this aren't good ideas,
this commit makes the settings test run in the end by
renaming it be numbered 16. It is assumed that we'll
end up having 16 tests seeing the number of tests in
casper and considering 03 and 02 from casper are being
combined as 02-message-basics.js. Though 03 of casper
has not yet been added in message-basics test it will
soon be added.
2020-08-04 14:33:37 -07:00
Priyank Patel
cbf1404c2d github-actions: Cancel previous runs on pushes to forks and PRs.
It only cancel previous runs on forks or for pull request builds
and does not run for zulip/zulip repo pushes. It finishes pretty
quickly (under 1 minute) so it fine to have it as a workflow
rather than to add a new step under every single job to cancel it's
previous runs.

The only downside to this is that GitHub creates a notification for
the cancelled job just like it does for failed jobs!!!
2020-08-04 14:32:03 -07:00
sahil839
ead18b70fd dev_settings: Add EMAIL_PORT setting in zproject/dev_settings.py.
This commit adds EMAIL_PORT setting for explicitly specifying the
port of SMTP provider in dev_settings.py.

We also change email_backends.send_email_smtp to pass EMAIL_PORT
along with EMAIL_HOST to smtplib.SMTP.

After this change, we will not need to include the port along with
host in EMAIL_HOST.

Also updated the email.md docs accordingly for this change.
2020-08-04 11:03:40 -07:00
orientor
8108acbdfd openapi_py: Make /events checking strict.
Previously there was a documented_events set which provided for partial
OpenAPI documentation while documentation was still going on. But since
the documentation is complete now, remove it.
2020-08-03 18:07:35 -07:00
orientor
e7c9c55664 api: Complete get_events response format documetation.
This giant commit completes basic OpenAPI documentation for all events
in Zulip's real-time events API.

Further work will be required in the near future to make
/api/get_events usable.

With many edits by tabbott for wording and correctness (especially
around which clients receive events, and their purpose).
2020-08-03 18:07:09 -07:00
Tim Abbott
00fd9afad5 embed: Remove useless 'sender' field.
The variant `update_message` events have this extra sender field not
present in normal update_message events; this field has no purpose, so
we remove it.
2020-08-03 18:04:38 -07:00
Tim Abbott
99a54ba67e tornado: Fix ID lists leaked to the events API.
Apparently, `update_message` events unexpectedly contained what were
intended to be internal data structures about which users were
mentioned in a given message.

The bug has been present and accumulating new data structures for
years.

Fixing this should improve the performance of handling update_message
events as well as cleaning up this API's interface.

This was discovered by our automated API documentation schema checking
tooling detecting these unexpected elements in these event
definitions; that same logic should prevent future bugs like this from
being introduced in the future.
2020-08-03 17:52:39 -07:00
orientor
d036a01516 test_events: Convert tuples to arrays for OpenAPI testing.
Use `ujson.loads(ujson.dumps())` wrapper on events sent for OpenAPI
testing so that all tuples are converted into arrays as tuples aren't
valid in JSON.
2020-08-03 16:55:36 -07:00