Commit Graph

7 Commits

Author SHA1 Message Date
Sayam Samal
196fcd5c0a inline_topic_edit: Show invalid input error visually on empty topic.
This commit adds the `invalid-input` class to the inline topic edit
input element when the new topic name is considered empty as a result
of realm_mandatory_topics property being set to True. This adds the
red glow borders to the invalid input field, which visually
communicates that some thing is wrong with the new topic name.
2025-02-26 17:26:35 -08:00
Lauryn Menard
078ce89380 util: Extract helper function for backoff of retries on error response.
Extracts message_fetch and get_events algorithms for calculating the
exponential backoff into a shared helper function.

These match the algorithm that were designed for the Python API, except
that we use a ratio of 2 rather than sqrt(2) in the message_fetch code
path.
2025-01-29 15:00:23 -08:00
Prakhar Pratyush
e9553daee4 topic-list-item: Show realm_empty_topic_display_name for topic="".
This commit adds support to display `realm_empty_topic_display_name`
value in the left sidebar for topics having the actual value of
empty string.
2025-01-10 14:32:55 -08:00
Steve Howell
8583e64037 util node tests: Prevent Intl.ListFormat leaks.
These never happen in practice since util is near the
end of the alphabet, but if you had run the tests in
reverse order, you would have seen this leak.

This leak was introduced in the efb2a5a38d commit.
2025-01-07 09:43:33 -08:00
Lauryn Menard
d6db6e3806 invite-modal: Fix invalid custom input to not show "NaN".
Updates the invite modal so that if the custom input is 0, the
submit button is deactivated, since an email invitation or invite
link that immediately expired would be unusable.

Also, updates the custom input to show 0 if a user navigates away
from and back to the custom input option afer putting in an invalid
value, e.g. "abc" or "-20". Previously, the custom input showed
"NaN" in that case.
2024-12-31 16:51:59 -08:00
Sahil Batra
ded36004bb group-settings: Show membership details in right panel.
We now mention if user is member of the group in the "Members"
tab, also including the details about whether the user is direct
member or is member by being direct member of one of the subgroups.
2024-12-05 10:35:41 -08:00
Anders Kaseorg
687f1b1651 tests: Rename the Node tests to *.cjs.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-11-13 09:18:56 -08:00