zulip/frontend_tests/node_tests
Steve Howell f0d101edf5 pills: Streamline input pills (for user groups).
The main point of this change is to streamline the core
code for input pills, and we use also modify user groups.

The main change to input_pill.js is that you now
configure a function called `create_item_from_text`, and
that can return an arbitrary object, and it just needs
a field called `display_value`.

Other changes:
    * You now call `input.create(opts)` to create the
      widget.
    * There is no longer a cache, because we can
      write smarter code in typeahead `source` functions
      that exclude ids up front.
    * There is no value/optinalKey complexity, because
      the calling code can supply arbitrary objects and
      do their own external data management on the pill
      items.
    * We eliminate `prependPill`.
    * We eliminate `data`, `keys`, and `values`, and just
      have `items`.
2018-03-07 15:53:11 -08:00
..
activity.js right-sidebar: Enable up and down arrow keys. 2018-02-12 15:38:23 -08:00
alert_words.js node tests: Use zrequire in alert_words.js. 2017-11-08 12:24:17 -08:00
bot_data.js frontend: Store embedded bot data in bot_data.js. 2018-03-01 08:25:43 -08:00
channel.js node tests: Use zrequire in channel.js. 2017-11-08 12:24:17 -08:00
colorspace.js node tests: Use zrequire in colorspace.js. 2017-11-08 12:24:17 -08:00
common.js node tests: Use zrequire in common.js. 2017-11-08 12:24:17 -08:00
compose_actions.js compose: Use insert_syntax_and_focus to insert text in compose textarea. 2018-03-01 08:00:42 -08:00
compose_fade.js node tests: Use zrequire in compose_fade.js. 2017-11-08 12:24:17 -08:00
compose_ui.js compose: Append space when text added at the end of textarea. 2018-03-04 13:16:17 -08:00
compose.js message edit: Allow uploading files. 2018-03-05 10:42:38 -08:00
composebox_typeahead.js typeahead: Fix last word issues with latest typeahead feature. 2018-03-01 16:00:33 -08:00
copy_and_paste.js copy_and_paste: Fix quirks with some parts of toMarkdown. 2018-02-22 08:26:45 -08:00
dict.js node_tests: Remove unneeded var statements. 2017-11-08 12:24:17 -08:00
dispatch.js settings: Fix real-time sync with notifications settings. 2018-03-07 17:05:15 +05:30
drafts.js refactor: new message content -> compose textarea. 2017-11-28 12:53:40 -08:00
emoji_picker.js node tests: Use zrequire in emoji_picker.js. 2017-11-08 12:24:17 -08:00
emoji.js emoji: Add support for translating emoticons. 2018-03-04 15:37:24 -08:00
filter.js refactor: Stop using flags array for unread counts. 2017-12-26 09:01:21 -05:00
hashchange.js Add stream ids to urls for stream-related narrows. 2018-02-19 09:03:11 -08:00
hotkey.js hotkeys: Add "p" to narrow to next unread PM thread. 2018-02-27 07:20:31 -05:00
i18n.js settings: Remove autoscroll_forever setting. 2018-01-02 10:35:49 -05:00
markdown.js emoji: Add support for translating emoticons. 2018-03-04 15:37:24 -08:00
message_edit.js node tests: Use zrequire in message_edit.js. 2017-11-08 12:24:17 -08:00
message_list_view.js drafts: Add timestamps showing when last modified. 2018-02-19 09:55:50 -08:00
message_list.js node tests: Use zrequire in message_list.js. 2017-11-08 12:24:17 -08:00
message_store.js refactor: Extract pm_conversations.recent. 2018-02-12 09:34:59 -08:00
muting.js node tests: Use zrequire in muting.js. 2017-11-08 12:24:17 -08:00
narrow_state.js Add narrow_state.pm_string(). 2018-02-12 09:34:59 -08:00
narrow.js node_tests: Remove unneeded var statements. 2017-11-08 12:24:17 -08:00
notifications.js Node Unit Tests: Create test for notifications.message_is_notifiable 2018-02-26 16:50:14 -05:00
password.js node tests: Use zrequire in password.js. 2017-11-08 12:24:17 -08:00
people_errors.js Change warn -> error in people.report_late_add(). 2017-11-07 09:51:10 -08:00
people.js node tests: Use zrequire in people.js. 2017-11-08 12:24:17 -08:00
pm_conversations.js Add pm_conversations.recent.get_strings(). 2018-02-12 09:34:59 -08:00
pm_list.js refactor: Extract pm_conversations.recent. 2018-02-12 09:34:59 -08:00
presence.js node tests: Use zrequire in presence.js. 2017-11-08 12:24:17 -08:00
reactions.js emoji: Remove now unused emojis_name_to_css_class dict. 2018-02-21 12:48:27 -08:00
recent_senders.js recent senders: Use message ids instead of timestamps for sorting. 2018-02-08 18:39:10 -08:00
rtl.js node tests: Use zrequire in rtl.js. 2017-11-08 12:24:17 -08:00
search_suggestion.js node tests: Use zrequire in search_suggestion.js. 2017-11-08 12:24:17 -08:00
server_events.js local echo: Bypass message.flags array. 2017-12-26 09:01:21 -05:00
settings_bots.js bot settings: Generate embedded bot selector in handlebars. 2018-03-01 08:25:43 -08:00
settings_org.js message editing: Move update msg-topic-edit-icon func to message_edit.js. 2018-03-06 07:17:28 -08:00
settings_user_groups.js pills: Streamline input pills (for user groups). 2018-03-07 15:53:11 -08:00
stream_color.js node tests: Use zrequire in topic_data.js. 2017-11-08 12:24:17 -08:00
stream_data.js default stream: Fix default stream suggestion do not include private stream. 2018-03-04 13:42:28 -08:00
stream_events.js Fix various typos. 2017-11-09 16:26:38 +01:00
stream_list.js Add stream ids to urls for stream-related narrows. 2018-02-19 09:03:11 -08:00
stream_sort.js node tests: Use zrequire in stream_sort.js. 2017-11-08 12:24:17 -08:00
subs.js node tests: Use zrequire in subs.js. 2017-11-08 12:24:17 -08:00
templates.js deactivation-stream-modal: Make stream name a template variable. 2018-03-04 19:26:50 -08:00
timerender.js drafts: Add timestamps showing when last modified. 2018-02-19 09:55:50 -08:00
top_left_corner.js Extract top_left_corner.js. 2017-08-14 13:03:57 -07:00
topic_data.js node tests: Use zrequire in topic_data.js. 2017-11-08 12:24:17 -08:00
topic_generator.js Add topic_generator.get_next_unread_pm_string(). 2018-02-12 09:34:59 -08:00
topic_list.js Add stream ids to urls for stream-related narrows. 2018-02-19 09:03:11 -08:00
transmit.js refactor: Extract transmit.js from compose.js. 2018-02-20 09:29:26 -08:00
typeahead_helper.js recent senders: Use message ids instead of timestamps for sorting. 2018-02-08 18:39:10 -08:00
typing_data.js node tests: Use zrequire in typing_data.js. 2017-11-08 12:24:17 -08:00
typing_status.js node tests: Use zrequire in typing_status.js. 2017-11-08 12:24:17 -08:00
unread.js refactor: Stop using flags array for unread counts. 2017-12-26 09:01:21 -05:00
upload.js message edit: Allow uploading files. 2018-03-05 10:42:38 -08:00
user_events.js settings: Fix real-time sync for account settings. 2018-02-01 16:38:26 -08:00
user_groups.js user_groups: Convert members to a dict in frontend. 2018-03-04 09:45:31 -08:00
util.js markdown: Require double-asterisk around all mentions. 2018-02-16 11:45:08 -08:00
zjquery.js zjquery: Add $.create() method. 2017-07-08 10:32:32 -04:00