12 Commits

Author SHA1 Message Date
Vector73
6094bbe8a5 stream_settings: Add new topics_policy setting.
Added `topics_policy` channel setting to configure sending
messages in the empty topic.

Fixes #33549.
2025-06-17 17:05:58 -07:00
Sayam Samal
955ddc011f inline_topic_edit: Make inline topic edit input field width dynamic.
This commit adds a hidden `topic_value_mirror` span element, and uses
that to dynamically set the width of the input field to the width of
the topic text inside it + some cushion.

Fixes #33844.
2025-03-13 15:58:26 -07:00
Sayam Samal
7753c6bbea inline_topic_edit: Update save button to neutral + quiet button style. 2025-03-13 15:58:26 -07:00
Prakhar Pratyush
280fd40892 inline_topic_edit: Improve placeholder when topic is not mandatory.
Earlier, we used to show "general chat" as the placeholder.

This commit adds support to show "Enter a topic (skip for general
chat)" as the placeholder when topic is not mandatory in the
inline topic edit input box.

We show "general chat" (as we show in compose topic input box)
when inline topic edit input box is not focused and topic="".

Fixes part of #33846.
2025-03-13 11:30:58 -07:00
Maneesh Shukla
325f077d3f action_button: Rename type to attention to describe the attention level of the action button.
Currently, we are using type to describe the attention level of the
action button. We want to rename the type parameter to attention
as we need the type parameter separately for describing the type of
button.
2025-03-11 14:08:34 -07:00
Sayam Samal
bd1ccfbf6d inline_topic_edit: Update styling for confirm and cancel buttons. 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
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
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
Prakhar Pratyush
9a72a4df03 topic_edit: Show "general chat" placeholder when mandatory_topics=false.
This commit updates the inline topic edit form to always show
the empty string topic placeholder when `mandatory_topics = false`.

It also improves the styling to make it italics.
2025-02-14 09:20:41 -08:00
Hardik Dharmani
cfbcbe901a topic_edit: Rename inline_topic_edit to move_messages_edit_topic.
In move_topic modal, Renamed inline_topic_edit to
move_messages_edit_topic to be more specific selector as
inline_topic_edit is also used in message header.

Additionally, Removed id inline_topic_edit as it was only used
in zulip.css instead used `.inline_topic_edit` selector as that
element also have class with same name inline_topic_edit.

Fixes #24805
2023-05-09 13:51:07 -07:00
Anders Kaseorg
c1675913a2 web: Move web app to ‘web’ directory.
Ever since we started bundling the app with webpack, there’s been less
and less overlap between our ‘static’ directory (files belonging to
the frontend app) and Django’s interpretation of the ‘static’
directory (files served directly to the web).

Split the app out to its own ‘web’ directory outside of ‘static’, and
remove all the custom collectstatic --ignore rules.  This makes it
much clearer what’s actually being served to the web, and what’s being
bundled by webpack.  It also shrinks the release tarball by 3%.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-02-23 16:04:17 -08:00