zulip/web/src
Karl Stolley 715fa3aff6 scheduled_messages: Extract options logic from popover.
This commit extracts date-based logic from the popover menu file and
puts it in with the scheduled-messages logic.

The aim is for greater testability, with some initial tests now
presented on the date-based logic.
2023-05-04 13:52:22 -07:00
..
analytics support: Fix scrubbing realms if string_id is a number. 2023-03-27 10:07:41 -07:00
billing web: Avoid slow jQuery :selected selector. 2023-05-01 22:39:31 -07:00
bundles scheduled_messages: Add overlay to display and edit them. 2023-04-17 16:59:25 -07:00
portico web: Avoid slow jQuery :selected selector. 2023-05-01 22:39:31 -07:00
stats eslint: Fix unicorn/prefer-spread. 2023-03-02 12:16:56 -08:00
types/stacktrace-gps eslint: Fix @typescript-eslint/consistent-indexed-object-style. 2023-04-19 16:52:39 -07:00
about_zulip.js
activity.js narrow: Add frontend support for `dm:` narrow and `/dm/...` URL. 2023-04-25 09:07:08 -07:00
add_subscribers_pill.js
admin.js js: Break cyclic dependency between `admin.js` and `settings.js`. 2023-04-19 16:41:49 -07:00
alert_popup.ts
alert_words.js
alert_words_ui.js help: Update filenames "private message" -> "direct message". 2023-02-28 16:55:13 -08:00
all_messages_data.js
assets.d.ts ts migration: Convert `favicon.js` to `favicon.ts`. 2023-04-06 13:56:59 -07:00
attachments_ui.js refactor: Move simplebar helper functions from `ui` to `scroll_util`. 2023-04-26 12:59:08 -07:00
avatar.js
blueslip.ts blueslip: Only show in dev mode, or report to Sentry. 2023-04-13 14:59:58 -07:00
blueslip_stacktrace.ts eslint: Fix @typescript-eslint/consistent-indexed-object-style. 2023-04-19 16:52:39 -07:00
bot_data.js eslint: Fix unicorn/prefer-spread. 2023-03-02 12:16:56 -08:00
browser_history.js
buddy_data.js timerender: Reword user activity info from "Last active:" to "Active". 2023-04-07 09:24:15 -07:00
buddy_list.js refactor: Move simplebar helper functions from `ui` to `scroll_util`. 2023-04-26 12:59:08 -07:00
channel.js dialog_widget: Refactor `AjaxRequest` type and moved it to `types.ts`. 2023-04-19 16:43:27 -07:00
click_handlers.js click handlers: Don't move focus for clicks in compose box while composing. 2023-04-27 17:04:19 -07:00
color_data.ts eslint: Fix unicorn/prefer-spread. 2023-03-02 12:16:56 -08:00
colorspace.ts
common.ts
components.ts
compose.js compose: Pass a container to which the banner should be applied. 2023-05-02 14:09:09 -07:00
compose_actions.js schedule: Remove 'Schedule' state of compose box. 2023-05-01 22:45:03 -07:00
compose_banner.ts compose: Pass a container to which the banner should be applied. 2023-05-02 14:09:09 -07:00
compose_closed_ui.js message_list: Extract visibly_empty helper method. 2023-05-03 18:40:59 -07:00
compose_fade.js
compose_fade_helper.js
compose_fade_users.js
compose_pm_pill.js compose: Move functions around to reduce circular imports. 2023-04-27 17:04:19 -07:00
compose_recipient.js compose: Pass a container to which the banner should be applied. 2023-05-02 14:09:09 -07:00
compose_state.js compose: Rename stream selection widget to "select_recipient". 2023-04-27 17:04:19 -07:00
compose_textarea.js refactor: Create `compose_textarea` and extracted related handlers from `ui.js`. 2023-04-26 12:59:08 -07:00
compose_ui.js schedule: Remove 'Schedule' state of compose box. 2023-05-01 22:45:03 -07:00
compose_validate.js compose: Pass a container to which the banner should be applied. 2023-05-02 14:09:09 -07:00
composebox_typeahead.js compose: Pass a container to which the banner should be applied. 2023-05-02 14:09:09 -07:00
condense.js
confirm_dialog.js
copy_and_paste.js
csrf.ts
css_variables.js Revert "ts: Convert css_variables.js to TypeScript." 2023-04-04 10:54:01 -07:00
dark_theme.ts dark_theme: Fix dark recipient background in light theme for spectators. 2023-04-28 12:39:46 -07:00
debug.ts eslint: Fix @typescript-eslint/prefer-nullish-coalescing. 2023-04-19 16:52:39 -07:00
deprecated_feature_notice.js hotkey: Update deprecation notices to use Shift for capital letters. 2023-05-01 20:32:58 -07:00
desktop_integration.js
dialog_widget.ts web: Avoid slow jQuery :input, :checkbox, :radio selectors. 2023-05-01 22:39:31 -07:00
drafts.js narrow: Add frontend support for `dm:` narrow and `/dm/...` URL. 2023-04-25 09:07:08 -07:00
dropdown_list_widget.js dropdown_list_widget: Colorize stream privacy icons. 2023-04-26 10:55:58 -07:00
echo.js ui: Move update_message_lists related functions to other related modules. 2023-04-26 12:59:08 -07:00
emoji.ts ts: Convert input_pill.js to TypeScript. 2023-04-25 09:09:48 -07:00
emoji_picker.js refactor: Move simplebar helper functions from `ui` to `scroll_util`. 2023-04-26 12:59:08 -07:00
emojisets.js emojiset: Promise reject calls want an error, not an event. 2023-03-23 15:58:11 -07:00
favicon.ts blueslip: Only show in dev mode, or report to Sentry. 2023-04-13 14:59:58 -07:00
feedback_widget.js
fetch_status.js
filter.js narrow: Remove frontend support for "group-pm-with" operator. 2023-04-25 09:07:08 -07:00
flatpickr.js time_picker: Reduce increment of minutes to one. 2023-04-14 11:02:10 -07:00
fold_dict.ts eslint: Fix @typescript-eslint/prefer-return-this-type. 2023-04-19 16:52:39 -07:00
gear_menu.ts web: Use `uri` instead of `url`. 2023-04-10 10:26:48 -07:00
giphy.js compose: Have at least 1 new line before and after a giphy gif. 2023-04-11 10:40:19 -07:00
global.d.ts eslint: Fix @typescript-eslint/consistent-type-definitions. 2023-04-19 16:52:39 -07:00
group_permission_settings.ts eslint: Fix @typescript-eslint/consistent-generic-constructors. 2023-04-19 16:52:39 -07:00
hash_util.js narrow: Add frontend support for `dm-including:` narrow. 2023-04-25 09:07:08 -07:00
hashchange.js hashchange: Hide popovers on change in hash. 2023-05-02 15:41:37 -07:00
hbs.d.ts
hotkey.js message_list: Extract visibly_empty helper method. 2023-05-03 18:40:59 -07:00
hotspots.js hotspots: Keep track of open state in js. 2023-03-13 17:14:02 -07:00
huddle_data.js eslint: Fix unicorn/prefer-spread. 2023-03-02 12:16:56 -08:00
i18n.ts dependencies: Upgrade JavaScript dependencies. 2023-03-20 15:48:29 -07:00
info_overlay.js info_overlay: Fix initial keyboard focus in keyboard shortcuts help. 2023-04-27 10:34:18 -07:00
input_pill.ts ts: Convert input_pill.js to TypeScript. 2023-04-25 09:09:48 -07:00
invite.js web: Avoid slow jQuery :input, :checkbox, :radio selectors. 2023-05-01 22:39:31 -07:00
keydown_util.ts eslint: Fix @typescript-eslint/prefer-nullish-coalescing. 2023-04-19 16:52:39 -07:00
lazy_set.ts eslint: Fix unicorn/prefer-spread. 2023-03-02 12:16:56 -08:00
lightbox.js
linkifiers.ts linkifier: Support URL templates for linkifiers. 2023-04-19 12:20:49 -07:00
list_cursor.js
list_util.ts
list_widget.js refactor: Move simplebar helper functions from `ui` to `scroll_util`. 2023-04-26 12:59:08 -07:00
loading.ts
local_message.js
localstorage.ts lint: Fix TypeScript linter error in localstorage.ts. 2023-04-24 13:24:08 -07:00
markdown.js linkifier: Support URL templates for linkifiers. 2023-04-19 12:20:49 -07:00
markdown_config.js
message_edit.js message_edit: Show modal if user cannot resolve topics. 2023-04-17 11:25:28 -07:00
message_edit_history.js
message_events.js events: Fix live update when deleting a starred message. 2023-04-19 12:43:13 -07:00
message_fetch.js message_fetch: Fix stream narrows when everything recent is muted. 2023-05-03 18:40:59 -07:00
message_flags.js ui: Move update_message_lists related functions to other related modules. 2023-04-26 12:59:08 -07:00
message_helper.js
message_list.js message_list: Don't show empty narrow message unless certain. 2023-05-03 18:40:59 -07:00
message_list_data.js message_list: Fix incorrect usage of visible empty check. 2023-05-03 18:40:59 -07:00
message_list_view.js message_list_view: Fix exception prepending when visibly empty. 2023-05-03 18:40:59 -07:00
message_lists.js message_list: Update recipient bar color on theme change. 2023-04-10 23:41:30 -07:00
message_live_update.js ui: Move update_message_lists related functions to other related modules. 2023-04-26 12:59:08 -07:00
message_parser.ts eslint: Fix @typescript-eslint/consistent-type-definitions. 2023-04-19 16:52:39 -07:00
message_scroll.js message_list: Extract visibly_empty helper method. 2023-05-03 18:40:59 -07:00
message_store.js
message_user_ids.ts eslint: Fix unicorn/prefer-spread. 2023-03-02 12:16:56 -08:00
message_util.js
message_view_header.js popovers: Fix popovers not hiding when clicked on search. 2023-04-24 17:09:36 -07:00
message_viewport.js popover: Scroll to top of long message when viewing message actions. 2023-04-18 17:06:24 -07:00
muted_topics_ui.js recipient_row: Use unmute icon for topics in muted stream. 2023-04-25 13:35:38 -07:00
muted_users.ts eslint: Fix @typescript-eslint/prefer-optional-chain. 2023-04-19 16:52:39 -07:00
muted_users_ui.js
narrow.js message_list: Extract visibly_empty helper method. 2023-05-03 18:40:59 -07:00
narrow_banner.js narrow: Remove frontend support for "group-pm-with" operator. 2023-04-25 09:07:08 -07:00
narrow_error.ts ts: Migrate narrow_error to TypeScript. 2023-03-28 15:04:57 -07:00
narrow_state.js narrow: Add frontend support for `dm:` narrow and `/dm/...` URL. 2023-04-25 09:07:08 -07:00
navbar_alerts.js
navigate.js message_list: Extract visibly_empty helper method. 2023-05-03 18:40:59 -07:00
notifications.js compose: Pass a container to which the banner should be applied. 2023-05-02 14:09:09 -07:00
overlays.ts eslint: Fix @typescript-eslint/prefer-nullish-coalescing. 2023-04-19 16:52:39 -07:00
padded_widget.ts
page_params.ts ts: Migrate gear_menu.js to TypeScript. 2023-03-29 09:36:52 -07:00
password_quality.ts
peer_data.js eslint: Fix unicorn/prefer-spread. 2023-03-02 12:16:56 -08:00
people.js narrow: Remove frontend support for "group-pm-with" operator. 2023-04-25 09:07:08 -07:00
pill_typeahead.js eslint: Fix unicorn/prefer-spread. 2023-03-02 12:16:56 -08:00
pm_conversations.js recent_conversations: Parsing of user_ids is done using function call. 2023-03-28 14:40:50 -07:00
pm_list.js refactor: Move simplebar helper functions from `ui` to `scroll_util`. 2023-04-26 12:59:08 -07:00
pm_list_data.js left_sidebar: Replace the presence dot with bot icon for bots. 2023-04-28 19:14:00 -07:00
pm_list_dom.js
poll_widget.js
popover_menus.js scheduled_messages: Extract options logic from popover. 2023-05-04 13:52:22 -07:00
popover_menus_data.js actions_popover: Hide "Add emoji reaction" in action menu in spectator mode. 2023-04-28 20:09:24 -07:00
popovers.js reminder: Remove feature from zulip. 2023-04-28 17:25:00 -07:00
presence.js eslint: Fix unicorn/prefer-spread. 2023-03-02 12:16:56 -08:00
reactions.js reactions: Pass missing vote_text to Handlebars template. 2023-03-23 13:26:37 -07:00
read_receipts.js read_receipts: Open the help link in a new tab. 2023-03-30 09:10:20 -07:00
realm_icon.js
realm_logo.js ui_util: Extract listener for change in `preferred-color-scheme`. 2023-04-10 23:41:30 -07:00
realm_playground.js eslint: Fix unicorn/prefer-spread. 2023-03-02 12:16:56 -08:00
realm_user_settings_defaults.ts user_settings: Add option to not mark messages as read on scroll. 2023-04-18 18:32:02 -07:00
recent_senders.js people: Add function get participants from user_ids_string. 2023-03-07 15:43:03 -08:00
recent_topics_data.js eslint: Fix unicorn/prefer-spread. 2023-03-02 12:16:56 -08:00
recent_topics_ui.js timerender: Extract new variant of get_full_datetime. 2023-04-30 22:39:52 -07:00
recent_topics_util.js
reload.js js: Break cyclic dependency between `reload,js` and `server_events.js`. 2023-04-19 16:42:45 -07:00
reload_state.ts
rendered_markdown.js popovers: Add Copied! tooltip when `copy code` button is clicked. 2023-04-24 11:10:19 -07:00
resize.js
rows.js
rtl.js eslint: Fix unicorn/prefer-spread. 2023-03-02 12:16:56 -08:00
scheduled_messages.js scheduled_messages: Extract options logic from popover. 2023-05-04 13:52:22 -07:00
scheduled_messages_overlay_ui.js scheduled messages: Use data-scheduled-message-id. 2023-05-01 22:45:03 -07:00
schema.js
scroll_bar.ts ts: Migrate scroll_bar.js to typescript. 2023-04-01 11:43:58 -07:00
scroll_util.ts ts: Migrate `scroll_util.js` to TypeScript. 2023-04-27 09:00:13 -07:00
search.js search: Fix display of suggestion box when search bar empty. 2023-04-24 21:45:06 -07:00
search_pill.js
search_pill_widget.js
search_suggestion.js narrow: Remove frontend support for "group-pm-with" operator. 2023-04-25 09:07:08 -07:00
search_util.ts
sent_messages.js
sentry.ts eslint: Fix @typescript-eslint/prefer-nullish-coalescing. 2023-04-19 16:52:39 -07:00
server_events.js message_list: Extract visibly_empty helper method. 2023-05-03 18:40:59 -07:00
server_events_dispatch.js scheduled_messages: Add left sidebar count. 2023-05-02 15:26:33 -07:00
settings.js js: Break cyclic dependency between `admin.js` and `settings.js`. 2023-04-19 16:41:49 -07:00
settings_account.js settings: Update disabled state of button in email change modal. 2023-04-30 20:56:51 -07:00
settings_bots.js web: Avoid slow jQuery :selected selector. 2023-05-01 22:39:31 -07:00
settings_config.ts settings: Update the 'Muted topics' setting. 2023-04-25 12:46:05 -07:00
settings_data.ts settings_data: Extract TimePreferences. 2023-03-16 10:47:12 -07:00
settings_display.js user_settings: Add option to not mark messages as read on scroll. 2023-04-18 18:32:02 -07:00
settings_emoji.js refactor: Move simplebar helper functions from `ui` to `scroll_util`. 2023-04-26 12:59:08 -07:00
settings_exports.js refactor: Move simplebar helper functions from `ui` to `scroll_util`. 2023-04-26 12:59:08 -07:00
settings_invites.js
settings_linkifiers.js refactor: Move simplebar helper functions from `ui` to `scroll_util`. 2023-04-26 12:59:08 -07:00
settings_muted_users.js refactor: Move simplebar helper functions from `ui` to `scroll_util`. 2023-04-26 12:59:08 -07:00
settings_notifications.js notifications: Warn if all PM notifications will be disabled. 2023-03-28 18:36:56 -07:00
settings_org.js dropdown_list_widget: Add privacy icons for stream options. 2023-04-13 10:46:14 -07:00
settings_panel_menu.js refactor: Move simplebar helper functions from `ui` to `scroll_util`. 2023-04-26 12:59:08 -07:00
settings_playgrounds.js refactor: Move simplebar helper functions from `ui` to `scroll_util`. 2023-04-26 12:59:08 -07:00
settings_profile_fields.js web: Pass missing data to Handlebars templates. 2023-03-22 17:10:28 -07:00
settings_realm_domains.js
settings_realm_user_settings_defaults.js
settings_sections.js user_topics: Rename 'settings_muted_topics.js'. 2023-04-25 12:46:05 -07:00
settings_streams.js refactor: Move simplebar helper functions from `ui` to `scroll_util`. 2023-04-26 12:59:08 -07:00
settings_toggle.js
settings_ui.js
settings_user_groups_legacy.js eslint: Fix unicorn/prefer-spread. 2023-03-02 12:16:56 -08:00
settings_user_topics.js refactor: Move simplebar helper functions from `ui` to `scroll_util`. 2023-04-26 12:59:08 -07:00
settings_users.js refactor: Move simplebar helper functions from `ui` to `scroll_util`. 2023-04-26 12:59:08 -07:00
setup.js
spectators.js
spoilers.ts eslint: Fix @typescript-eslint/prefer-nullish-coalescing. 2023-04-19 16:52:39 -07:00
starred_messages.js popovers: Refactor topic_menu visible check and hide logic. 2023-04-05 16:47:39 -07:00
starred_messages_ui.js
stream_bar.js compose: Add privacy icons to the stream dropdown menu. 2023-04-20 16:09:55 -07:00
stream_color.js stream_color: Try a different color mix for recipient bar color. 2023-04-24 17:29:06 -07:00
stream_create.js web: Avoid slow jQuery :input, :checkbox, :radio selectors. 2023-05-01 22:39:31 -07:00
stream_create_subscribers.js streams: Allow sorting of stream members. 2023-03-01 17:29:01 -08:00
stream_create_subscribers_data.js eslint: Fix unicorn/prefer-spread. 2023-03-02 12:16:56 -08:00
stream_data.js js: Break cyclic dependency between modules related to `stream_data`. 2023-04-25 10:05:59 -07:00
stream_edit.js refactor: Move simplebar helper functions from `ui` to `scroll_util`. 2023-04-26 12:59:08 -07:00
stream_edit_subscribers.js refactor: Move simplebar helper functions from `ui` to `scroll_util`. 2023-04-26 12:59:08 -07:00
stream_events.js compose: Extract a compose_recipient module. 2023-04-20 16:09:55 -07:00
stream_list.js refactor: Move simplebar helper functions from `ui` to `scroll_util`. 2023-04-26 12:59:08 -07:00
stream_list_sort.js refactor: Rename `stream_sort.js` to `stream_list_sort.js`. 2023-04-25 10:05:59 -07:00
stream_muting.js message_list: Deduplicate stream muting live update code path. 2023-04-21 13:52:02 -07:00
stream_pill.js eslint: Fix unicorn/prefer-spread. 2023-03-02 12:16:56 -08:00
stream_popover.js compose: Add privacy icons to the stream dropdown menu. 2023-04-20 16:09:55 -07:00
stream_settings_containers.js
stream_settings_data.js stream_color: Fix duplicate ids for colored privacy icons. 2023-03-27 22:24:45 -07:00
stream_settings_ui.js refactor: Move simplebar helper functions from `ui` to `scroll_util`. 2023-04-26 12:59:08 -07:00
stream_topic_history.js eslint: Fix unicorn/prefer-spread. 2023-03-02 12:16:56 -08:00
stream_topic_history_util.js
stream_ui_updates.js streams: Make stream settings and create stream UI more consistent. 2023-04-24 17:02:33 -07:00
sub_store.ts
submessage.js
subscriber_api.js
templates.js templates: Allow the same line-wrapping in {{t}} as in {{#tr}}. 2023-03-16 11:26:45 -07:00
timerender.ts timerender: Extract new variant of get_full_datetime. 2023-04-30 22:39:52 -07:00
tippyjs.js tooltips: Add `S` hotkey hint to `narrow-to` tippy tooltips. 2023-05-02 13:50:46 -07:00
todo_widget.js todo_widget: Fix cursor focus in todo lists. 2023-04-24 16:11:20 -07:00
top_left_corner.js top_left_corner: Fix new mention animation when loading app. 2023-05-03 11:12:52 -07:00
topic_generator.js refactor: Rename `stream_sort.js` to `stream_list_sort.js`. 2023-04-25 10:05:59 -07:00
topic_list.js topic_list: Show muted unread counts in muted streams. 2023-05-01 21:13:53 -07:00
topic_list_data.js topic_list: Show muted unread counts in muted streams. 2023-05-01 21:13:53 -07:00
topic_zoom.js left_sidebar: Fix 'more topics' view scroll position. 2023-04-17 17:40:35 -07:00
transmit.js reminder: Remove feature from zulip. 2023-04-28 17:25:00 -07:00
tutorial.js
typeahead_helper.js typeahead: Do not prioritize exact name matches for users. 2023-05-01 17:10:59 -07:00
types.ts dialog_widget: Refactor `AjaxRequest` type and moved it to `types.ts`. 2023-04-19 16:43:27 -07:00
typing.js
typing_data.ts eslint: Fix @typescript-eslint/prefer-nullish-coalescing. 2023-04-19 16:52:39 -07:00
typing_events.js narrow: Add frontend support for `dm:` narrow and `/dm/...` URL. 2023-04-25 09:07:08 -07:00
ui_init.js scheduled_messages: Add left sidebar count. 2023-05-02 15:26:33 -07:00
ui_report.ts eslint: Enable @typescript-eslint/recommended plugin. 2023-03-16 13:24:27 -07:00
ui_util.ts refactor: Move `replace_emoji_with_text` from `ui` to `ui_util`. 2023-04-26 12:59:08 -07:00
unread.js unread: Fix exception handling mentions in private messages. 2023-05-03 13:29:41 -07:00
unread_ops.js unread_ops: Add `unread` class to messages instead of a full rerender. 2023-04-21 09:43:24 -07:00
unread_ui.js top_left_corner: Fix new mention animation when loading app. 2023-05-03 11:12:52 -07:00
upload.js compose: Pass a container to which the banner should be applied. 2023-05-02 14:09:09 -07:00
upload_widget.ts image_upload_widget: Refactor style of upload_widget's preview_image. 2023-03-27 10:19:29 -07:00
url-template.d.ts eslint: Fix @typescript-eslint/consistent-type-definitions. 2023-04-19 16:52:39 -07:00
user_events.js
user_group_create.js
user_group_create_members.js user groups: Enabled sorting of subscribers. 2023-03-03 11:03:12 -08:00
user_group_create_members_data.js eslint: Fix unicorn/prefer-spread. 2023-03-02 12:16:56 -08:00
user_group_edit.js refactor: Move simplebar helper functions from `ui` to `scroll_util`. 2023-04-26 12:59:08 -07:00
user_group_edit_members.js refactor: Move simplebar helper functions from `ui` to `scroll_util`. 2023-04-26 12:59:08 -07:00
user_group_pill.js eslint: Fix unicorn/prefer-spread. 2023-03-02 12:16:56 -08:00
user_group_ui_updates.js
user_groups.ts user_groups: Refactor get_realm_user_groups_for_dropdown_list_widget. 2023-04-11 09:02:09 -07:00
user_groups_settings_ui.js refactor: Move simplebar helper functions from `ui` to `scroll_util`. 2023-04-26 12:59:08 -07:00
user_pill.js
user_profile.js web: Add missing CSS.escape calls. 2023-03-31 18:31:30 -07:00
user_search.js
user_settings.ts user_settings: Add option to not mark messages as read on scroll. 2023-04-18 18:32:02 -07:00
user_status.js
user_status_ui.js css: Hyphenate .status-emoji-wrapper selector. 2023-03-27 17:31:31 -07:00
user_topics.js compose: Add banner for unmuting the muted topic a message is sent to. 2023-04-25 16:16:47 -07:00
util.ts util: Speed up clean_user_content_links by persisting an inert document. 2023-05-01 20:55:01 -07:00
vdom.js
watchdog.ts
webpack_public_path.js
widgetize.js
zcommand.js compose: Pass a container to which the banner should be applied. 2023-05-02 14:09:09 -07:00
zform.js
zulip_test.js