zulip/static/styles
Shubham Padia 36707a33ca search: Add a basic implementation of search pills.
Following points have been implemented in this commit:
1.) Add search pill on selecting typeahead.
2.) Re-narrow after removing a search pill.
3.) Add quiet optional parameter to removeLastPill.
4.) Pre populate search pills in narrow.activate.
5.) Clear existing search pills on narrow.deactivate.

Description of above points:
1.) I tried out using the description from suggestions.lookup_table
to append a pill using appendValidatedData so that the description
had not to be calculated again. But the description in the suggestions
lookup contains html due to highlighting. This html is escaped when
inputed in a pill. An attempt was also made to remove the higlighting
by replacing the tags. But other espaced characters like < also
popped up, so it was better to use append_search_string.
3.) If one wants to refresh the pill using pill.clear and wants to
repopulate them, evaluating the event_handler associated with the
action of removing the pill may not be desired.
4.) Pill population code is added to narrow.activate. Pills are not
populated if the narrow was triggered by search as search handles the
addition and removal of pill by itself. The reason for not handling
search too in narrow.activate is to avoid clearing the pills and
repopulating them. Example of some of the triggers for narrow.activate
include `restore draft`, `topic change`,`sidebar`.

Also modifies tests for search.js
2018-07-23 11:29:10 -07:00
..
activity.scss webpack: Transition activity.css to use webpack. 2018-05-03 07:53:24 -07:00
alerts.scss css: Transition 'app.css' to SCSS. 2018-05-02 17:13:16 -07:00
app_components.scss HTML validation: Replace Drafts button with styled link. 2018-07-12 18:47:10 +05:30
archive.scss css/webpack: Moved archive styles to webpack bundle. 2018-05-03 19:15:49 -07:00
components.scss css: Transition 'app.css' to SCSS. 2018-05-02 17:13:16 -07:00
compose.scss input-pill: Refactor pills to eliminate fixed positioning of elements. 2018-07-23 10:21:13 -07:00
drafts.scss css: Transition 'app.css' to SCSS. 2018-05-02 17:13:16 -07:00
hotspots.scss hotspots: Style "How to reply" hotspot. 2018-05-31 12:56:37 -07:00
informational-overlays.scss css: Transition 'app.css' to SCSS. 2018-05-02 17:13:16 -07:00
input_pill.scss input-pill: Refactor pills to eliminate fixed positioning of elements. 2018-07-23 10:21:13 -07:00
landing-page.scss billing: Style upgrade page. 2018-07-13 18:32:29 +05:30
left-sidebar.scss left_sidebar.html: Upgrade to use font-awesome 4.7 icon prefixes. 2018-07-11 20:31:18 +05:30
lightbox.scss css: Transition 'app.css' to SCSS. 2018-05-02 17:13:16 -07:00
media.scss navbar.html: Upgrade to use font-awesome 4.7 icon prefixes. 2018-07-11 20:17:11 +05:30
night_mode.scss night mode: Fix loading-ellipsis visiblity on clicking "more topics". 2018-06-19 11:04:14 -07:00
popovers.scss user-groups: Centre align popover content. 2018-07-22 20:14:29 -07:00
portico-signin.scss help: Refactor help page CSS to eliminate padding on content containers. 2018-07-13 18:03:32 +05:30
portico-styles.scss webpack: Move font and pygments CSS to common.css. 2018-05-27 23:19:40 -07:00
portico.scss help: Limit width of documentation content. 2018-07-23 10:10:02 -07:00
pygments.scss css: Transition 'app.css' to SCSS. 2018-05-02 17:13:16 -07:00
reactions.scss emoji_popover_content.handlebars: Upgrade to font-awesome 4.7 icon prefixes. 2018-07-11 20:17:11 +05:30
reuseable_components.scss css: Use mixins in zulip.scss. 2018-05-08 10:35:40 -07:00
right-sidebar.scss right-sidebar: Narrow pm/group-pm on clicking unread count badge. 2018-06-27 11:26:24 -04:00
settings.scss settings: Improve styling of draggable profile field rows. 2018-07-13 18:17:03 +05:30
stats.scss stats: Fix incorrect data-user attribute on Everyone button. 2018-07-13 10:24:13 +05:30
subscriptions.scss subscriptions_settings_modal: Upgrade to font-awesome 4.7 icon prefixes. 2018-07-11 20:17:11 +05:30
typing_notifications.scss css: Transition 'app.css' to SCSS. 2018-05-02 17:13:16 -07:00
widgets.scss widgets: Add todo widget. 2018-07-10 11:18:05 +05:30
zulip.scss search: Add a basic implementation of search pills. 2018-07-23 11:29:10 -07:00