Commit Graph

63435 Commits

Author SHA1 Message Date
evykassirer
04e30ab1df typeahead: Scale header text with font size. 2025-02-27 09:23:05 -08:00
Aditya Kumar Kasaudhan
18d83534ff github: Include old issue number in transfer message for new repo.
This commit updates the GitHub webhook integration to include the
old issue number in the transfer message sent for the new repository,
alongside the old repository's full name.
2025-02-27 09:22:15 -08:00
Sahil Batra
f9107adaa4 streams: Do not archive vacant private streams.
We no longer archive private streams when they become vacant,
since user can still have permissions to subscribe to it.

And streams can anyways be archived manually if needed.

Fixes #33689.
2025-02-27 09:21:03 -08:00
Aman Agrawal
96eb49d947 hotkey: Fix = to toggle reaction results in error.
Fixes #33574

This was due to the method used to get the emoji name was incorrect.
2025-02-27 09:13:48 -08:00
Prakhar Pratyush
cee474876d message_edit_history: Fix empty string topic not displaying correctly.
Earlier, for topic-edit involving empty string topic the rendered
topic name was not buggy.

We used to display `""` instead of `realm_empty_topic_display_name`
with proper styling.

This commit fixes the bug.
2025-02-27 09:09:06 -08:00
Tim Abbott
9107101fe0 popovers: Disable move-messages count due to logic errors.
Until we've fixed the bugs that display incorrect numbers, this is a
simple way to hide the component.

This will be reverted once #32892 is complete.
2025-02-26 17:29:19 -08:00
Sayam Samal
bd1ccfbf6d inline_topic_edit: Update styling for confirm and cancel buttons. 2025-02-26 17:26:35 -08:00
Sayam Samal
4c9d47c390 inline_topic_edit: Disable save button and show tooltip on empty topic.
This commit disables the save button when the topic name is considered
as empty as part of the `realm_mandatory_topics` being set to True.

Since disabled elements do not fire events, it is not possible to
trigger tippy tooltips on disabled elements – such as the Save button
in the inline topic edit UI. Thus this commit adds a tooltip to the
disabled save button by wrapping/unwrapping it inside a `span` wrapper
pragmatically via the `ui_util.disable_element_and_add_tooltip` and
`ui_util.enable_element_and_remove_tooltip` helper methods.
2025-02-26 17:26:35 -08:00
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
Sayam Samal
faa08b6000 inline_topic_edit: Remove overflowing error text on saving empty topic. 2025-02-26 17:26:35 -08:00
Sayam Samal
62bd5f36dc inline_topic_edit: Fix keydown logic inside the inline topic edit form.
Previously, anytime Enter was pressed anywhere inside the inline topic
edit UI, it led to the submission of the form. This logic resulted in
the unintentional saving of the new topic name when Enter was pressed
even on the cancel button; which should have actually closed the inline
topic edit UI instead.

This commit makes sure to only save the new topic name when the user
presses enter when focused on the text input element or the save button.
2025-02-26 17:26:35 -08:00
Sayam Samal
8935abec16 inline_topic_edit: Change ID->Class since multiple instances can exist.
Since multiple inline topic edit forms can exist in a channel feed, when
multiple topic names are being edited, we change the ID to classname.
2025-02-26 17:26:35 -08:00
Sayam Samal
e729020d13 buttons: Set "button" type to prevent default submission in forms. 2025-02-26 17:26:35 -08:00
Sayam Samal
2723adac54 inline_topic_edit: Improve design of inline topic edit UI.
This commit improves the design of the inline topic edit UI by making
the following changes:
- Increases the dimensions of the text input element.
- Fixes the font scaling inside text input element.
- Replaces the old save and cancel buttons with the new icon buttons.

Fixes #33155.
2025-02-26 17:26:35 -08:00
Sayam Samal
1e0318e948 inline_topic_edit: Hide all recipient bar controls on topic edit.
This commit hides all the recipient bar controls from the recipient
bar when the topic edit UI opens.

Previously we used to only hide some of the controls while some other
were still visible alongside the save and cancel buttons from the
inline topic edit UI which led to confusion.
2025-02-26 17:26:35 -08:00
Sayam Samal
97bbff54f4 buttons: Add option in hbs template to enable squared icon buttons. 2025-02-26 17:26:35 -08:00
Sayam Samal
c05bfba151 buttons: Use snake_case for the button handlebars template filenames.
This renames the button handlebars template filenames to follow the
snake_case naming convention used throughout the codebase.
2025-02-26 17:26:35 -08:00
Alya Abbott
02c4d9c4ae help: Document nice syntax for linking in the current channel. 2025-02-26 17:22:13 -08:00
Alya Abbott
71da6f261c help: Document "general chat" topic. 2025-02-26 16:50:46 -08:00
Shubham Padia
5cca30d971 message: Allow accessing archived channel when not modifying message.
Fixes #33567.

We have used the flag `is_modifying_message` since it's more generic
than an archived channel specific flag and helps us understand better
what is the condition where we do not want to allow archived channels.
We have not added tests for message edit since it  has an existing test
for this.
2025-02-26 16:39:41 -08:00
Anders Kaseorg
c71aeae34d dependencies: Upgrade JavaScript dependencies.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-02-26 16:20:47 -08:00
Anders Kaseorg
579447bb43 eslint: Fix unicorn/consistent-date-clone.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-02-26 16:20:47 -08:00
Anders Kaseorg
a309bbe121 eslint: Fix unicorn/consistent-assert.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-02-26 16:20:47 -08:00
Anders Kaseorg
37c9505a46 tests: Remove unusual ‘this’ usage.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-02-26 16:20:47 -08:00
Anders Kaseorg
3af4900891 install-node: Upgrade Node.js from 22.12.0 to 22.14.0.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-02-26 16:20:47 -08:00
Karl Stolley
c1e86a9144 navbar: Remove realm navbar icon logo. 2025-02-26 15:52:49 -08:00
Karl Stolley
8cd87eb05e specator_view: Prevent large login button from colliding with search box. 2025-02-26 15:52:49 -08:00
Karl Stolley
51eb43b830 navbar_search: Adjust z-index to keep collpased search clickable. 2025-02-26 15:52:24 -08:00
Karl Stolley
34cd1e2c27 right_sidebar: Better handle manually hidden right sidebar.
With the larger, flexibly sized right sidebar, we want to allow
for the middle column to expand to fill its place even outside of
the "Use full width on wide screens" setting.
2025-02-26 15:52:24 -08:00
Karl Stolley
1c74b1635b viewports: Re-engineer breakpoint detection from JavaScript. 2025-02-26 15:52:24 -08:00
Karl Stolley
f27a69be71 container_queries: Add baseline container queries and fallbacks. 2025-02-26 15:52:24 -08:00
Karl Stolley
c7702ae3ba container_queries: Establish new breakpoints. 2025-02-26 15:52:24 -08:00
Karl Stolley
d33d09eaf3 app_layout: Establish containers for spec-aligned browsers. 2025-02-26 15:52:24 -08:00
Karl Stolley
430c4d179a container_queries: Detect spec-aligned support.
Some browsers, notably Safari on both iOS and macOS, are not yet
aligned with the CSS specification, which does not force layout
containment but does force an independent formatting context
(see https://github.com/w3c/csswg-drafts/issues/10544).

The little test here will allow us to deliver em-aware container
queries to browsers that are spec aligned, and fall back to media
queries in browsers that are lagging.
2025-02-26 15:52:24 -08:00
Karl Stolley
c2cf7ef571 right_sidebar: Set em-based min and max width, flexible column width. 2025-02-26 15:52:24 -08:00
Shubham Padia
4da8cf35bf right_sidebar: Rename to right column wherever applicable.
In our css variables, we were using sidebar and column interchangably.
But, sidebar is 10px less wider than the column. This commit makes no
behaviour change, but renames variables to use column where necessary
and uses variable for sidebar instead of a fixed 240px value.
2025-02-26 15:52:23 -08:00
Karl Stolley
dc326dd5ed css_variables: Remove unused breakpoints. 2025-02-26 15:52:23 -08:00
Prakhar Pratyush
087abb4314 composebox: Show 'Enter a topic (skip for general chat)' placeholder.
Use a more instructive placeholder instead of "Topic" when
topic is not mandatory in a realm.

Updated placeholder:
'Enter a topic (skip for general chat)'.
2025-02-26 14:03:24 -08:00
Prakhar Pratyush
2b4d2f15f2 compose_recipient: Early return in on_hidden_callback if no item click.
Previously, the topic / direct message recipient input box was always
focused when the compose select recipient dropdown got closed, even if
the user clicked elsewhere. This resulted in unwanted trigger of
onFocus event listener etc.

This adds an early return to ensure focus updates only when an item
is clicked.
2025-02-26 14:03:22 -08:00
Prakhar Pratyush
9a29320d61 composebox_topic_typeahead: Add support for empty string topic.
This commit adds support to show `realm_empty_topic_display_name`
value in the composebox topic typeahead for empty string topic.

The item is italicized.

The 'New' label is not shown for empty string topic.
2025-02-26 13:59:03 -08:00
Karl Stolley
dfb03251b0 compose: Correctly restore general-topic drafts. 2025-02-26 13:59:03 -08:00
Karl Stolley
a3a43c2f8b compose: Handle fading with general chat.
This commit also attempts to fix a bug, present in main, where a
draft restored directly to the compose box loses its original topic
upon switching to other topic narrows.

Co-authored-by: Prakhar Pratyush <prakhar@zulip.com>
2025-02-26 13:59:03 -08:00
Karl Stolley
4723492e12 compose: Suppress 'general chat' with open recipient widget. 2025-02-26 13:59:03 -08:00
Karl Stolley
562bfd5671 compose: Handle topic-box focus and blur. 2025-02-26 13:59:03 -08:00
Karl Stolley
30b1ae7111 compose: Correctly focus when replying to general chat. 2025-02-26 13:59:03 -08:00
Karl Stolley
1bc53831c7 compose: Conditionally render placeholder for general chat. 2025-02-26 13:59:02 -08:00
Prakhar Pratyush
29fb5ff934 compose: Update textarea placeholder with general chat. 2025-02-26 13:59:02 -08:00
Karl Stolley
cae48d3faa compose: Rename placeholder update function for clarity. 2025-02-26 13:59:02 -08:00
Karl Stolley
81b6879464 compose: Match topic input text color to channel. 2025-02-26 13:59:02 -08:00
apoorvapendse
ea3e89cdd9 composebox_typeahead: Add support for empty string topic in textarea.
This commit adds support for empty string topic in compose textarea
typeahead.
2025-02-26 13:59:02 -08:00