9561 Commits

Author SHA1 Message Date
Karl Stolley
75714bb44f compose: Remove competing transitions.
The transitions here do not work correctly across all
states, and directly interfere or look goofy with the
transitions in the recipient-row area.

Particularly with the removal from #message-content-container,
that had the annoying effect of just delaying the
appearance of the focus border, regardless of whether
focus was established via keyboard or mouse.
2025-09-16 11:53:46 -07:00
Karl Stolley
de7419a528 compose: Only transition when low-attention row hovered.
Previously, if the mouse cursor were in the vicinity of
the compose box, we'd see transitions even on keyboard
interactions, which should not have been happening.

This also allows instantaneous highlighting for keyboard
users, as well as avoiding any transitions when a
mouse user clicks into a recipient-row element (at
which point the hover transitions will have already
run).
2025-09-16 11:53:46 -07:00
Karl Stolley
2fce6fa317 compose: Offset low-attention pill outlines. 2025-09-16 11:53:46 -07:00
Karl Stolley
415f7610c9 compose: Avoid multiple 'input' handlers on topic box.
It's not good form to register an event handler on a
function that runs fairly frequently--especially one
that stands to override another listener's handler.
2025-09-16 11:53:46 -07:00
Anders Kaseorg
8a35871217 events: Remove realm_is_zephyr_mirror_realm from API.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-16 11:23:10 -07:00
Anders Kaseorg
40a022dcc3 zephyr: Remove Zephyr mirroring support.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-16 11:18:18 -07:00
Sahil Batra
fb13de4e10 stream-settings: Do not remove private stream row always.
Previously, private stream row was removed from the relevant
tab view in left panel in stream settings UI when a user was
subscribed or unsubscribed. Now we only remove the row if the
user does not permission to toggle the subscription state just
like we do for public streams where we keep the row as user
can toggle the subscription state again.

Also updated the comment in update_stream_row_in_settings_tab
to be more clear about the behavior.
2025-09-16 11:16:06 -07:00
Sahil Batra
683eca97a7 stream-settings: Replace "Not subscribed" tab with "Available".
This commit replaces "Not subscribed" tab in stream settings
with "Available" tab where only streams which the user can
subscribe to are shown.

Fixes #35919.
2025-09-16 11:16:06 -07:00
Evy Kassirer
24f678feb6 message: Remove unused sender_realm_str.
Briefly discussed here:
https://chat.zulip.org/#narrow/channel/6-frontend/topic/sender_realm_str.20and.20.20client.20in.20message.20objects/near/2254334
2025-09-16 10:55:56 -07:00
Aman Agrawal
e3371cfb72 inbox: Fix user scrolling to top on rerender if filters are focused.
If one of the filters is focused or if we cannot determine the
current focus location, any rerender call will scroll user to
top.

Fixed by only scrolling to top when navigating from other views
and when we don't have a cached scroll position.

Tested by calling `complete_rerender` at 1s intervals.
2025-09-16 10:52:19 -07:00
Evy Kassirer
182baa85ac todo_widget: Move TodoWidgetExtraData type to module. 2025-09-16 10:50:19 -07:00
Sayam Samal
3070c78cc5 popovers: Remove "light-border" Tippyjs theme usage.
The "light-border" theme was set as the default theme for all the
popovers, but was no longer in use, since all of our current popovers
either use the "popover-menu" theme or the "dropdown-widget" theme.

In response to the above reasoning, this commit removes the redundant
"light-border" Tippyjs theme usage from the codebase.
2025-09-15 09:25:39 -07:00
Sayam Samal
b9b1798a1e dark_theme: Clean up Tippy box styles.
Fixes part of #35880.
2025-09-15 09:25:39 -07:00
Sayam Samal
930eadb085 dark_theme: Clean up manage user profile footer border color.
Fixes part of #35880.
2025-09-12 13:10:09 -07:00
Sayam Samal
ad8c2b7275 dark_theme: Clean up user profile modal tables' related border colors.
In the light theme, the user profile modal tables were using two
different border colors, both very similar to one another. This commit
consolidates them into a single border color for consistency.
2025-09-12 13:10:09 -07:00
Sayam Samal
ec611fda69 dark_theme: Clean up user profile modal field name related colors. 2025-09-12 13:10:09 -07:00
Sayam Samal
5fa027a577 views_util: Use ".input-element" selector to check for focused inputs.
Previously, we were using the ".home-page-input" selector to check for
any focused input elements in the home page view of the Zulip Web UI.
Since all of these inputs, other than the navbar search input have now
been converted to filter inputs, we can simplify the logic to check for
any focused input elements with the ".input-element" selector.

The navbar search input has a different selector, "#search_query",
which is already accounted for in the views_util.is_in_focus() method.

Now, ".input-element" class will potentially be used for several other
inputs in the UI other than the home page view, but the is_in_focus()
method already accounts for other focused elements like compose,
overlays, popovers, etc, and thus the logic remains unaffected.

Fixes part of #35135.
2025-09-12 13:00:30 -07:00
Sayam Samal
c1e65280aa dark_theme: Cleanup todo widget colors.
Fixes part of #35880.
2025-09-10 12:28:40 -05:00
Sayam Samal
732cdaa800 dark_theme: Cleanup poll widget colors.
Fixes part of #35880.
2025-09-10 12:28:40 -05:00
Anders Kaseorg
2dc2255f26 todo_widget_tasks: Fix invalid <div> inside <label>.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-10 09:57:56 -07:00
Anders Kaseorg
0dbe85fd34 user_profile_modal: Fix invalid <div> inside <h1>.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-10 09:57:56 -07:00
Anders Kaseorg
056dff4c51 preferences_information: Fix invalid <span> inside <label>.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-10 09:57:56 -07:00
Anders Kaseorg
d476eb08b9 preferences_emoji: Fix invalid <div> inside <label>.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-10 09:57:56 -07:00
Anders Kaseorg
3075d51a24 add_new_bot_form: Fix invalid <div> inside <p>.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-10 09:57:56 -07:00
Anders Kaseorg
287681d331 send_later_popover: Fix invalid <div> inside <label>.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-10 09:57:56 -07:00
Anders Kaseorg
2d947073a1 templates: Fix invalid <div class="narrows_by_topic"> inside <span>.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-10 09:57:56 -07:00
Anders Kaseorg
9e8c9b68f6 templates: Fix invalid <div class="modal__spinner"> inside <button>.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-10 09:57:56 -07:00
Anders Kaseorg
99481eb47c templates: Fix invalid <h4> inside <label>.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-10 09:57:56 -07:00
Anders Kaseorg
c23cd837a0 todo_widget: Replace obsolete <strike> element.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-10 09:57:56 -07:00
Anders Kaseorg
460d63c4dc templates: Fix invalid <th> inside <thead> (missing <tr>).
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-10 09:57:56 -07:00
Anders Kaseorg
d3238e9a1b templates: Fix invalid lists inside <p>.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-10 09:57:56 -07:00
Evy Kassirer
9a5c41cb9d compose: Remove Zephyr mirroring custom logic.
Followup to https://github.com/zulip/zulip/pull/35921#discussion_r2320358287
2025-09-10 09:47:05 -07:00
Anders Kaseorg
d8c0eb91c1 postcss: Type-check PostCSS configuration.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-10 09:44:44 -07:00
Anders Kaseorg
7157a424a8 babel: Type-check Babel configuration.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-10 09:44:44 -07:00
Anders Kaseorg
56fc587dfd eslint: Type-check ESLint configuration.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-10 09:44:44 -07:00
Karl Stolley
8022e26ed4 search_pills: Increase opacity in dark mode. 2025-09-09 12:49:59 -07:00
Sayam Samal
fa154b675d dark_theme: Clean up feedback container styles.
The feedback container doesn't have a border so it doesn't make sense
to have a border color defined for the dark theme, and the hover color
change on the `a` tag was an unintended side effect of
commit d73a5d06c0, which while correcting
the hover effect on the typeaheads, also affected the link hover styles
in the feedback container.

This commit, due the reasons mentioned above, removes the entire CSS
block related to the feedback container from web/styles/dark_theme.css.

Fixes part of #35880.
2025-09-09 09:21:36 -07:00
Sayam Samal
f724ad7a33 dark_theme: Clean up read receipts modal styles.
Fixes part of #35880.
2025-09-09 09:21:16 -07:00
Evy Kassirer
093ce93fa4 message: Make sure submessages is always defined. 2025-09-09 09:20:40 -07:00
Evy Kassirer
d3ef72f1d6 message: Remove unused recipient_id.
I confirmed this isn't used in any .hbs templates, so
it doesn't seem to be being used anywhere.
2025-09-09 09:20:40 -07:00
Maneesh Shukla
7e43ee625c confirm-dialog: Rename "confirm_delete_user" to "confirm_deactivate_user_group".
This commit renames the template file "confirm_delete_user.hbs" to
"confirm_deactivate_user_group.hbs" since it has now text specific to
user-groups.
2025-09-08 14:43:53 -07:00
Maneesh Shukla
f0e1a56b1a user-group: Replace the deactivate modal text.
Previously, the modal text stated, "This action cannot be undone."
However, since it is now possible to reactivate the user-group at any
time, we should update the modal text to reflect this change.
2025-09-08 14:43:53 -07:00
Evy Kassirer
39aa0eea4c compose: Create new message object all at once.
This will be helpful for converting this file to typescript.
2025-09-08 14:43:13 -07:00
Evy Kassirer
d2f7b1a7ac compose: Remove create_message_object.
This will help with typescript conversion by reducing partially
formed message object types.
2025-09-08 14:43:13 -07:00
Evy Kassirer
28a7507b8e echo: Add reactions to LocalMessage.
This will make it easier to type the raw message in
process_new_message. The blueslip error is left here
as a precaution, but I'm fairly confident that if
RawMessage and LocalMessage both have reactions then
that codeblock will never be called.
2025-09-08 14:33:08 -07:00
Evy Kassirer
7b18e026bb echo: Make type of content_type more specific.
The only LocalMessage is created in insert_local_message
which has `content_type: "text/html"`.

This change lets us create LocalMessage objects with data
parsed from raw_message_schema.
2025-09-08 11:48:37 -07:00
Aman Agrawal
39b560e611 inbox: Remove empty space below filters for hidden folders.
Hidden folders occupied space due to bottom margin.

Fixed by moving the margin to elements which have `display: none`
property so that margin is removed.
2025-09-05 10:35:38 -07:00
Anders Kaseorg
29dd592f38 types: Add declarations for openapi-examples-validator.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-04 17:02:06 -07:00
Anders Kaseorg
49caa9dc85 dependencies: Upgrade JavaScript dependencies.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-04 15:20:47 -07:00
Anders Kaseorg
1a05b2c10f tabbed-instructions: Delete activate_correct_tab.
We no longer have any OS-specific tabs; we can just activate the first
one on the server side.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-04 09:37:34 -07:00