Varun Singh
8570cd81b1
message_events_util: Convert module to TypeScript.
2024-07-31 14:33:11 -07:00
Prakhar Pratyush
3090247221
process_from_server: Fix message sent in search view not appearing.
...
Earlier, on sending a new message in a search view it didn't
appear in that view for the sender.
This was because the message event received by the sender
was processed by 'msg_list.view.rerender_messages' which
effectively did nothing because the message is not
rendered in the first place during local echo in that
message list view.
We can't determine locally if the message should be added
to the search narrow. So, we use maybe_add_narrowed_messages
when narrowed to such views.
This fixes the bug and the message appears in the search view.
2024-07-17 11:35:47 -07:00
Alex Vandiver
556b92810b
thumbnail: Advertize the thumbnail formats at client registration.
2024-07-16 13:22:15 -07:00
Varun Singh
884317e407
server_message: Create zod schema to parse message recieved from server.
...
The commit creates a `server_message.ts` module which
will home our `zod` schema for the messages received
from server. We can then import the schema to parse
the data in needed modules at the API boundaries.
This will also help us write better tests.
2024-07-15 13:55:13 -07:00
Anders Kaseorg
e08a24e47f
ruff: Fix UP006 Use `list` instead of `List` for type annotation.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-07-13 22:28:22 -07:00
evykassirer
11bb44c7cc
search pills: Direct message group pill support.
...
This supports adding users to DM pills by simply typing
a user's name in the text input directly after a complete
dm pill. It only works for DM pills at the end of search
input.
Clicking the X button removes a user from its user pill
container, and if that user was the last user left in the
container, then the whole container is also removed.
2024-07-09 17:08:45 -07:00
evykassirer
38e58ea3d6
search: Use pills in the search bar.
...
This initial commit is fairly bare-bones, and does not have the full
contemplated functionality.
2024-07-09 17:08:45 -07:00
Varun Singh
8236ed8205
emoji_picker: Convert module to TypeScript.
2024-07-07 11:36:38 -07:00
afeefuddin
5ff32c7ad0
user_group_create: Convert module to TypeScript.
2024-07-05 16:17:59 -07:00
Varun Singh
8409a04c03
user_group_edit_members: Convert module to TypeScript.
2024-07-03 12:34:30 -07:00
afeefuddin
cb1c293030
compose_popovers: Convert module to TypeScript.
2024-07-01 11:09:12 -07:00
Sayam Samal
2417155828
theme: Rename dark_theme.ts -> theme.ts.
...
The dark_theme module now contains logic for light, dark, and automatic
theme switching. Thus, we rename it a more generic name, `theme.ts`.
2024-06-27 16:24:49 -07:00
afeefuddin
22a58c739c
left_sidebar_navigation_area_popover: Convert module to TypeScript.
2024-06-26 14:08:39 -07:00
sanchi-t
2d79ce2e93
invite: Replace stream checkboxes list with stream pills.
...
Introduce an input field with typeahead functionality, initially
populated with the default streams for the organization.
Fixes #26871 .
2024-06-22 20:04:28 -07:00
Anders Kaseorg
ca5fba258e
giphy: Split is_giphy_enabled to a separate module.
...
This removes giphy from the critical path of the TypeScript migration.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-06-22 08:21:08 -07:00
Varun Singh
80cf16a303
stream_edit_subscribers: Convert module to TypeScript.
2024-06-21 09:54:08 -07:00
Aman Agrawal
e3cd3756bc
navigate: Convert back to JS.
...
Need to import message_view which is not migrated to TS yet.
2024-06-17 16:08:51 -07:00
Varun Singh
fee7fb6c87
user_group_create_members: Convert module to TypeScript.
2024-06-11 11:58:12 -07:00
Varun Singh
78f105475a
stream_create_subscribers: Convert module to TypeScript.
2024-06-11 11:57:46 -07:00
Anders Kaseorg
c9e822f7ad
custom_profile_fields_ui: Convert module to TypeScript.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-06-07 09:49:40 -07:00
Varun Singh
4ac12022ca
navigate: Convert module to TypeScript.
2024-06-06 11:10:05 -07:00
Aman Agrawal
f58c586bee
narrow: Rename to `message_view`.
...
This brings it in sync with other libraries like `message_list`
and `message_list_data`.
2024-06-05 12:03:59 -07:00
Varun Singh
6b42c18220
settings_preferences: Convert module to TypeScript.
2024-06-04 08:50:07 -07:00
afeefuddin
394e8fc856
navbar_alerts: Convert module to TypeScript.
2024-06-03 12:19:58 -07:00
afeefuddin
9cf9cec43a
compose_call_ui: Convert module to TypeScript.
2024-06-02 21:49:49 -07:00
Varun Singh
a177d8fa49
settings_streams: Convert module to TypeScript.
2024-05-31 15:19:43 -07:00
Varun Singh
f7e1403a12
starred_messages_ui: Convert module to TypeScript.
2024-05-25 17:50:00 -07:00
afeefuddin
8a13bbd953
muted_users_ui: Convert module to TypeScript.
2024-05-24 15:18:35 -07:00
afeefuddin
64d8a18b76
settings_profile_fields: Convert Module to TypeScript.
2024-05-20 11:17:58 -07:00
evykassirer
96c9950115
composebox_typeahead: Convert module to typescript.
2024-05-16 14:53:26 -07:00
Anders Kaseorg
fba81d1cd5
upload: Convert module to TypeScript.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-15 10:53:09 -07:00
Anders Kaseorg
b132fc50b3
compose_reply: Convert module to TypeScript.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-15 10:53:09 -07:00
Anders Kaseorg
941e2ae5dc
inbox_ui: Convert module to TypeScript.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-15 10:53:09 -07:00
Anders Kaseorg
4d407c6b8d
copy_and_paste: Convert module to TypeScript.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-14 14:12:05 -07:00
Anders Kaseorg
a41d0b16e6
user_topics_ui: Convert module to TypeScript.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-14 14:01:04 -07:00
Anders Kaseorg
6479cc5970
unread_ops: Convert module to TypeScript.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-14 12:15:44 -07:00
afeefuddin
d36e19389d
add_subscribers_pill: Convert module to TypeScript.
2024-05-13 16:57:02 -07:00
evykassirer
724306df10
recent_view_ui: Convert module to typescript.
2024-05-13 12:51:00 -07:00
Temidayo32
91bd6e2b12
compose_closed_ui: Migrate module to TypeScript.
2024-05-12 17:41:22 -07:00
Prakhar Pratyush
bf2360bcf2
onboarding_steps: Remove hotspot as an onboarding_step.
...
Earlier, hotspots and one-time notices were the valid
type of onboarding step.
Now, one-time notice is the only valid type.
Fixes #29296 .
2024-05-10 12:30:22 -07:00
Anders Kaseorg
d507706371
zulip_test: Convert module to TypeScript.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-04 18:55:17 -07:00
Anders Kaseorg
fd8b2c557f
global: Rename with normal TypeScript module extension.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-04 18:55:17 -07:00
Aman Agrawal
103c37f23a
message_list: Don't always cache "Combined feed" view.
...
Important changes in this commit:
* We only cache message list for "Combined feed" if it is the
default view.
* We modify existing handling of home message list code so that
it can be used to for any message list that we want to cache
using a new `preserve_rendered_state` variable.
* narrow_state.filter() returns the filter of combined feed view list
instead of `undefined`.
* We start fetching messages from the latest message on app load.
* Messages in all messages data and Recent view are always synced.
* If combined feed view list is not cached, we don't track it's
last pointer, effectively sending user to the latest unread
message always .
2024-04-25 09:20:43 -07:00
evykassirer
0e369e7ff3
compose_send_menu_popover: Rename module to reflect broader uses.
2024-04-20 13:27:25 -07:00
Varun Singh
ee232bba05
settings_linkifiers: Convert module to TypeScript.
2024-04-13 21:45:44 -07:00
Karl Stolley
7291f0a919
info_density: Set font size, line height vars in dev.
2024-04-11 10:25:03 -07:00
evykassirer
16bf8d3df6
views_util: Convert module to typescript.
2024-04-10 12:19:52 -07:00
afeefuddin
61966e9d6e
compose_tooltips: Convert module to TypeScript.
2024-04-10 11:17:20 -07:00
evykassirer
d6f4424102
compose_actions: Convert module to typescript.
2024-04-04 16:34:42 -07:00
afeefuddin
b32c837c6b
settings_playgrounds: Convert module to TypeScript.
2024-04-04 10:45:53 -07:00