Commit Graph

10241 Commits

Author SHA1 Message Date
Aman Agrawal
a052d24231 recent_topics: Support arrow key navigation.
Add arrow key navigation support for recent topics.

Simple jquery is used to allow navigation for filter buttons,
a grid system is used for navigation inside table.
2020-06-20 22:50:47 -07:00
Aman Agrawal
05f7cb7750 click_handlers: Trigger click on enter keypress on icons in RT.
To allow user to perform all actions using keyboard in recent
topics overlay, we convert enter to click event on icons.
2020-06-20 22:29:48 -07:00
Aman Agrawal
34e62f06f4 recent_topics: Renamed 'muted' filter for clarity. 2020-06-20 22:29:48 -07:00
sahil839
318bc0ca1e stream: Fix message on clicking add button with empty subscribers form.
This commit corrects the message shown when we click the add button
for subscribing users to stream with empty input.
We show 'No user to subscribe.' as the message when trying to add
subscribers with empty input.

Fixes #15450.
2020-06-20 17:55:23 -07:00
SiddharthVarshney
3e1a0c0e32 portico: Fix UI of /accounts/go page.
Fixes: #14809
2020-06-20 17:54:06 -07:00
SiddharthVarshney
92059a5379 css: Use SCSS nesting for .portico-landing.hello .gradients .gradient. 2020-06-20 17:46:08 -07:00
SiddharthVarshney
5f8b8d62b9 css: Use SCSS nesting for .portico-landing.hello .hero. 2020-06-20 17:46:08 -07:00
SiddharthVarshney
c3847c9b30 css: Use SCSS nesting for .portico-landing.hello .hero header. 2020-06-20 17:46:08 -07:00
SiddharthVarshney
0453c0bc36 css: Use SCSS nesting for .portico-landing.hello .hero header button. 2020-06-20 17:46:08 -07:00
SiddharthVarshney
5a02fd4a6b css: Use SCSS nesting for .portico-landing.hello .hero .content. 2020-06-20 17:46:08 -07:00
SiddharthVarshney
cabdc72722 css: Use SCSS nesting for .portico-landing.hello .hero .waves. 2020-06-20 17:46:08 -07:00
SiddharthVarshney
45ea511225 css: Use SCSS nesting for .portico-landing.hello .hero .waves .wave. 2020-06-20 17:46:08 -07:00
SiddharthVarshney
f96e38a8bd css: Reorder css for .portico-landing.hello .hero. 2020-06-20 17:46:08 -07:00
SiddharthVarshney
be8027cb54 css: Use SCSS nesting for .portico-landing.features-app. 2020-06-20 17:46:08 -07:00
SiddharthVarshney
ce9a365c62 css: Use SCSS nesting for .portico-landing.features-app .feature-block. 2020-06-20 17:46:08 -07:00
SiddharthVarshney
d8a3ca0b2e css: Use SCSS nesting for .portico-landing.features-app .cta. 2020-06-20 17:46:08 -07:00
SiddharthVarshney
c37d83347c css: Use SCSS nesting for .portico-landing.features-app .cta:hover. 2020-06-20 17:46:08 -07:00
SiddharthVarshney
7ea662e035 css: Use SCSS nesting for .portico-landing.features-app section. 2020-06-20 17:46:08 -07:00
SiddharthVarshney
b3db95e879 css: Use SCSS nesting for .portico-landing.features-app section a. 2020-06-20 17:46:08 -07:00
SiddharthVarshney
544622a435 css: Use SCSS nesting for .portico-landing.features-app section a.feature-block. 2020-06-20 17:46:08 -07:00
SiddharthVarshney
553c3f1a50 css: Use SCSS nesting for .portico-landing.features-app section .headliner. 2020-06-20 17:46:08 -07:00
SiddharthVarshney
17ddbf33b1 css: Use SCSS nesting for .portico-landing.features-app section.notifications. 2020-06-20 17:46:08 -07:00
SiddharthVarshney
acfd7755bb css: Use SCSS nesting for .portico-landing.features-app section.notifications .feature-list. 2020-06-20 17:46:08 -07:00
SiddharthVarshney
b19902e00c css: Use SCSS nesting for .portico-landing.features-app section.notifications .feature-list h3. 2020-06-20 17:46:08 -07:00
SiddharthVarshney
88c2dfa580 css: Merge css for .portico-landing.features-app section.notifications. 2020-06-20 17:46:08 -07:00
SiddharthVarshney
6ec11e549d css: Use SCSS nesting for .portico-landing.features-app section.messages. 2020-06-20 17:46:08 -07:00
SiddharthVarshney
ea1d2688c8 css: Use SCSS nesting for .portico-landing.features-app section.messages .features. 2020-06-20 17:46:08 -07:00
SiddharthVarshney
9a7c6504bb css: Use SCSS nesting for .portico-landing.features-app section.keyboard-shortcuts. 2020-06-20 17:46:08 -07:00
SiddharthVarshney
621dd2a445 css: Use SCSS nesting for .portico-landing.features-app section.keyboard-shortcuts img. 2020-06-20 17:46:08 -07:00
SiddharthVarshney
00eb90a551 css: Use SCSS nesting for .portico-landing.features-app section.hero. 2020-06-20 17:46:08 -07:00
SiddharthVarshney
68268c8c1e css: Use SCSS nesting for portico-landing.show. 2020-06-20 17:46:08 -07:00
SiddharthVarshney
d61fd5d9eb css: Reorder .portico-landing and .portico-landing.show. 2020-06-20 17:46:08 -07:00
arpit551
0c6488b284 analytics: Added frontend for messages read over time graph.
The chart added is similar to the messages sent over time chart.

Fixes #15167
2020-06-20 16:52:33 -07:00
SiddharthVarshney
e763d30f18 help: Update help docs for ellipsis.
Update help docs where chevron was previously
mentioned for sidebar manu icons.

Add css for `i.zulip-icon` to position icon
properly.
2020-06-20 16:47:43 -07:00
Ryan Rehman
d59ccd4c0f message view: Fix link generation logic of the end of results notice.
This improves the logic and fixes the bug where the href was calculated
based on the current URL and not the filter of the current message list.

We now add the '/streams/public/' operator at the start of the operators,
similar to how it is represented in all other cases.

Fixes #15405
2020-06-20 16:26:25 -07:00
Rohitt Vashishtha
fca7897d76 minor: Fix typos in migration to image upload widget.
We were showing the organisation profile picture  in place of the
logo and night-mode logo after the migration. This change fixes it.

Fixes #15493.
2020-06-20 16:21:02 -07:00
SiddharthVarshney
b122ad7da4 topic-popover: Add chevron-right icon in topic popover title. 2020-06-20 14:57:54 -07:00
Ryan Rehman
aa82008503 search pills: Fix pills misalignment bugs visible in firefox.
The `.search_icon` lies inside the `.pill_container` so we had to
remove it's display attribute which should have no visual changes.

We add `flex-wrap: nowrap` to prevent the cursor from moving onto
a new line, below the pills.

Fixes #15480.
2020-06-20 14:50:56 -07:00
sahil839
5f62696bc5 subs: Remove click handler for a non-existent class.
This commit removes the click handler used for
'empty_feed_sub_unsub' class.
This class was used only in home.html and was replaced
by 'stream_sub_unsub_button' in 576be51.
2020-06-20 14:21:28 -07:00
Ryan Rehman
21cdc26193 search: Support multiple search pills creation.
This reverts part of b0d632577f.
The problem was that multiple queries were combined as a single
search pill. And since we create the pills then narrow / search,
we added a comma seperator between them for the typeahead lookups
as required by the logic in `input_pill.js`.

This however introduced a new bug where the search suggestions
were incorrect as the typeahead lookup table wasn't updated, so
every time an item from the type ahead was selected it updated
the input string with an invalid operator.

Thus to resolve the first problem, we follow a simpler approach
by extracting all operators from the search string using our
`Filter.parse` logic and next add the pills, one by one.
2020-06-19 16:18:52 -07:00
Ryan Rehman
70b92c7eb3 search: Clicking on a search pill should not lose searchbox focus.
Whenever a search pill is selected or deleted by a click the navbar
gets rendered as the searchbox loses focus. This allows the user to
be able to continue editing the search query without having to refocus
the searchbox.
2020-06-19 16:18:52 -07:00
Ryan Rehman
63643c9d9d search: Fix blur event handler for search_query_box.
A main change is that we now display the navbar if the search box
is not focused. This was already present in the search pills version
but adding it to the legacy version is an improvement.

We sufficiently increase the timeout so that the pills are actually
deleted. This was required when `filter.is_common_narrow()` is true,
as then only we render the narrow description and close the search bar.

This commit also matches another behaviour of the legacy search.
i.e. We narrow every time a search suggestion is clicked.

The now redundant "focusin" and "focusout" event handler tests are
also removed.
2020-06-19 16:18:52 -07:00
Ryan Rehman
897bfb8b95 typeahead: Prevent lookup on backspace keyup event on searchbox.
This change was only required for the search pills enabled
search. As there is a valid use-case where the user might
want to remove just the latest pill(s) and then narrow.

This wasn't possible previously because, the typeahead was
looked up every time the backspace key was pressed. And since
the only way to narrow in search is through the enter key,
if the user entered it then the searchbox would get updated
with the first suggestion in the typeahead.
The alternative for the user would be to first lose focus on
the searchbox (by clicking outside) the focus again which
doesn't generate the typeahead. Then only the enter key would
be available for narrowing.

We do not display the typeahead after the search pills are
created. This is done just to match the behaviour for the
deletion of pills case too.

We use this approach and we don't just change the line
in `search.js` from  `helpOnEmptyStrings: true` to
`helpOnEmptyStrings: !page_params.searchpills enabled`
because we still need to provide suggestions for '',
on initial lookup or every time the empty input searchbox
with search pills present gains focus.
2020-06-19 16:18:52 -07:00
jagansivam28
9038c7f28f settings CSS : Fix 'user-avatar-source' text reflow bug.
When we move the avatar upload widget to `image_upload_widget.hbs` file
the CSS `position:absolute` for `avatar-source` is preserved.
by removing CSS `position:absolute` we can fix the bug.
2020-06-19 15:53:51 -07:00
Steve Howell
00e60c0c91 events: Use stream_id for peer_add/peer_remove.
Two things were broken here:
    * we were using name(s) instead of id(s)
    * we were always sending lists that only
      had one element

Now we just send "stream_id" instead of "subscriptions".

If anything, we should start sending a list of users
instead of a list of streams.  For example, see
the code below:

    if peer_user_ids:
        for new_user_id in new_user_ids:
            event = dict(type="subscription", op="peer_add",
                         stream_id=stream.id,
                         user_id=new_user_id)
            send_event(realm, event, peer_user_ids)

Note that this only affects the webapp, as mobile/ZT
don't use this.
2020-06-19 14:48:42 -07:00
Rohitt Vashishtha
df6530529a settings: Fix race condition in getting users' last active time.
We recently removed an API call for fetching user list for our
Settings>Users/Deactivated panels, which introduced a bug where
we rendered the users table before last active information is
processed by the frontend.

This commit makes us process presence before rendering our settings
panels. We move the presence init above because we need to initialize
settings_sections before hashchange.

Fixes #15453.
2020-06-19 13:08:40 -07:00
Rohitt Vashishtha
c3bfa3de0d timestamp: Update night mode css after the syntax change. 2020-06-19 13:07:16 -07:00
Dinesh
88821ec3f2 apple_auth: Add icon for log in and sign up buttons.
This should have been included in 04453114, but I've
forgotten to include it. So, fixing it with this.
2020-06-19 12:55:24 -07:00
Pragati Agrawal
d453520022 settings_user: Fix event propagation for bot and user edit form modal.
When the user clicks a button that opens a modal, and if we don't break off
the corresponding click event. This condition in the global click handler
will become true and enables all mouse events outside modal.

```js
    $(document).on('click', function (e) {
        ...
        // If user clicks outside an active modal
        if ($('.modal.in').has(e.target).length === 0) {
            // Enable mouse events for the background as the modal closes
            $('.overlay.show').attr("style", null);
        }
```

Related to #12369.
2020-06-19 12:53:13 -07:00
Tim Abbott
9173f32a10 api docs: Fix formatting in changelog.
The CSS changes prevent our API docs markdown processor from
preserving line breaks within inline code block content.
2020-06-18 22:38:05 -07:00