Commit Graph

9109 Commits

Author SHA1 Message Date
Aman Agrawal
8207eaab55 left_sidebar: Refactor to support user's navigation view preference.
Co-authored-by: Aditya Chaudhary <aditya.chaudhary1558@gmail.com>
2025-08-04 18:33:36 -07:00
Aman Agrawal
87aaf6dd4d left_sidebar: Remove unused home-link class. 2025-08-04 18:33:36 -07:00
Aditya Kumar Kasaudhan
a0ae465b46 sidebar: Refactor left sidebar navigation list import.
This commit refactors to import the full
`left_sidebar_navigation_area` module instead of
individual functions. This allows calling multiple
functions easily and prepares for upcoming navigation
view changes.
2025-08-04 18:33:36 -07:00
Prakhar Pratyush
e3c500cebe onboarding: Add highlighted-element class to <b> in onboarding modals.
This commit adds 'highlighted-element' class to <b> tags in
the following onboarding modals:
* introduce inbox view modal
* introduce recent conversations view modal
* introduce resolve topic modal
* introduce first channel created modal

'highlighted-element' class sets the 'font-weight: 600',
replacing the default of 700.
2025-08-04 18:25:49 -07:00
Prakhar Pratyush
4070f5e512 onboarding: Remove <b> from the headings of introduce zulip view modals.
This commit removes bold from the heading of:
* introduce inbox view modal
* introduce recent conversations view modal
2025-08-04 18:25:49 -07:00
Prakhar Pratyush
d73397a221 onboarding: Remove channel name from channel created modal heading.
This commit removes the channel name from the heading of the
first channel created modal.
2025-08-04 18:25:49 -07:00
Sahil Batra
524442bf44 streams-ui: Add UI to update and archive channel folders.
This commit adds edit and delete buttons in the dropdown
list for folder.

Fixes #35498.
2025-08-04 13:22:11 -07:00
Sahil Batra
da53d5b978 dropdown-widget: Handle button click in a separate click handlers.
This commit refactors code for DropdownWidget to handle clicks
on edit and delete buttons in a separate click event handler
and not in the handler for selecting one of the items in
dropdown.

This is important to make sure that selected value stored for
dropdown widget is not updated on clicking the icon.
2025-08-04 13:22:11 -07:00
Sahil Batra
e70d8c7a80 streams-ui: Reset folder dropdown if selected folder is archived.
This commit adds live-update code to reset the dropdown when user
is changing the folder for a channel or setting the folder for a
new channel and the selected folder is archived.
2025-08-04 13:22:11 -07:00
Sahil Batra
7be824d090 settings: Move function to set up folder widget dropdown. 2025-08-04 13:22:11 -07:00
Sahil Batra
e7cb472188 dropdown-widget: Pass aria-label for icon buttons in options.
This commit updates code to pass aria-label for icon buttons
in dropdown widget options so that they can be used in
dropdown_list.hbs template instead of directly defining them
in the template file.

We currently show buttons in saved snippets dropdown only
so defining the labels in template file worked correctly
but it is good to pass them as variables so that it is
simpler to add buttons for other dropdowns when required.
2025-08-04 13:22:11 -07:00
Karl Stolley
b87d22c9fa rendered_markdown: Remove now-unnecessary layout adjustments. 2025-08-04 12:55:53 -07:00
Karl Stolley
2d68beda07 me_messages: Improve grid, layout. 2025-08-04 12:55:53 -07:00
Karl Stolley
a07ed96526 message_row: Align content, not items. 2025-08-04 12:55:53 -07:00
Maneesh Shukla
74148f2e0b desktop-notification-banner: Remove the banner form the org settings.
The `update_desktop_notification_banner` line removed had been added in #34865,
to handle the case of opening the default user settings panel after previously opening
the personal; notifications settings panel, and is no longer required.
2025-08-04 10:02:07 -07:00
Lauryn Menard
7a9b78f1f5 settings: Add user setting to ignore channel folders in left sidebar.
Fixes #35573.
2025-08-01 09:18:19 -07:00
Maneesh Shukla
e5864eb103 banners: Use "fit-content" width for organization settings banners.
This commit updates the organization settings banners to use
`width: fit-content`, ensuring they no longer span the full available
width. While this change does not yet support wrapping the action button
to a new line, it works reliably for these banners.

Currently, flex-wrap is set to `nowrap` to prevent buttons from wrapping
to the next line, as using `min-content` or `fit-content` forces
wrapping when space runs out. This approach limits the banner width to
its content size while maintaining layout consistency.

Making this as a separate commit since this is an experimental change
and we can tinker this later when we have a solid solution.
2025-08-01 09:08:30 -07:00
Maneesh Shukla
021af590e6 upload-stat: Redesign upload space stats banners.
Fixes: #34252.
2025-08-01 09:08:30 -07:00
Maneesh Shukla
da5c411054 banners: Redesign the invitation permission banners.
Fixes part of #34252.
2025-08-01 09:08:30 -07:00
Maneesh Shukla
13b78b7039 banners: Redesign mobile push notifications banner.
Fixes part of #34252.
2025-08-01 09:08:30 -07:00
Maneesh Shukla
b0241bfa3c banners: Redesign group info banner.
Fixes part of #34252.
2025-08-01 09:08:30 -07:00
Maneesh Shukla
3651748d31 banners: Redesign stream info banner.
Fixes part of #34252.
2025-08-01 09:08:30 -07:00
Maneesh Shukla
a93a015b21 banners: Redesign organization upgrade banners.
This commit redesigns the upgrade and sponsorship banners by adding
AVAILABLE_ON_STANDARD, UPGRADE_ACCESS_BANNER, and
UPGRADE_OR_SPONSORSHIP_BANNER.

Fixes part of #34252.
2025-08-01 09:08:30 -07:00
Maneesh Shukla
85d8c225a3 banners: Convert banners into plain text.
This commits convert the banners of "Settings > Default user settings"
and "Personal > Bots" into plain text. Also, change the plain text of
"Personal > Bots" to be more descriptive.

Fixes part of #34252.
2025-08-01 09:08:30 -07:00
Maneesh Shukla
e52ee6ee98 banners: Remove the permission banners from Settings/ Users.
This commit removes the permission banners from Settings / Users / Users
and Settings / Users / Deactivated.

Fixes part of #34252.
2025-08-01 09:08:30 -07:00
Maneesh Shukla
deaa6390a8 banners: Redesign the permission banners.
Fixes part of #34252.
2025-08-01 09:08:30 -07:00
Evy Kassirer
8f783c53c0 left_sidebar: Display folder unread counters like channel counters.
Discussion here:
https://chat.zulip.org/#narrow/channel/101-design/topic/channel.20folder.20unread.20count.20styling/with/2232873
2025-07-31 23:50:25 -07:00
Karl Stolley
6d4cd1b9d0 compose: Correct faulty logic for determining attention state. 2025-07-31 11:30:00 -07:00
Pratik Chanda
c62938a1b1 message_send: Fix update draft error when message send fails.
Currently, we save a draft copy in case message send fails on server
but this only saves a copy of message when it has savable message
length. Short message doesn't save a copy and throws an error.

This commit introduces a new option `force_save` to `update_draft`
and saves any message regardless of message length if passed true.
2025-07-30 18:14:19 -07:00
Maneesh Shukla
c02b69eae0 default-user-settings: Remove the configuration banner for non-admin users.
Fixes #35546.
2025-07-30 17:46:38 -07:00
Sahil Batra
078d93e310 drafts-ui: Fix banner shown on deleting drafts.
Banner shown on deleting drafts was broken because "banner-wrapper"
class was missing in container element that led to some CSS not
being applied.

Also, needed to change the "text-align" CSS property to override
the "center" value set for overlay header text because "banner-label"
flex element is allowed to grow and take more width after recent
changes in d00cf1a.
2025-07-30 17:36:15 -07:00
Sahil Batra
2a09a66f2d drafts-ui: Fix pressing "Enter" when there are no drafts.
This commit fixes an assertion error on pressing "Enter" in
drafts UI when there are no drafts.
2025-07-30 17:36:15 -07:00
Anders Kaseorg
985498a4ff tests: Remove unused mocks.
These became unused in #35075.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-07-30 17:20:56 -07:00
Karl Stolley
78e3cfba55 left_sidebar: Open up space between DMs, filter input. 2025-07-30 15:48:26 -07:00
Karl Stolley
01febad94e inbox: Hold vdots to same column on archived topics. 2025-07-30 15:46:54 -07:00
Karl Stolley
6c65e57010 recents: Preserve space for actions in archived channels. 2025-07-30 15:46:54 -07:00
Karl Stolley
9d1908d746 rendered_markdown: Correct alignment on textless images. 2025-07-30 13:16:10 -07:00
Sahil Batra
df5669d546 stream-settings: Sort folders in dropdown by name.
Folders shown in dropdown are now sorted by name instead of ID.
2025-07-30 11:04:16 -07:00
Alex Vandiver
2491dc47e8 i18n: Swap three docs for ellipsis. 2025-07-30 13:45:53 +00:00
Evy Kassirer
abd1bf00eb left_sidebar: Fade muted unread dots on headers and inactive toggles. 2025-07-29 17:37:29 -07:00
Evy Kassirer
033ef953db left_sidebar: Fully rerender stream list when count display policy changes.
Now that there are many counts to update, we may as well just rerender
the whole stream list.
2025-07-29 17:37:29 -07:00
Evy Kassirer
07b05f3c78 left_sidebar: Apply summary counter setting only to home view.
Fixes #35326.

Previously, the visibility of unread counts for both the home view and
the "CHANNELS" heading was controlled by the "Hide unread summary counts"
setting. Now, it controls only the visibility of unread counts in the
home view.
2025-07-29 17:37:29 -07:00
Evy Kassirer
ef052182b1 left_sidebar: Clean up hide_unread_counts vs hide-unread-messages-count.
Now the former is only used in the channels list (headers and inactive
toggles included) and the latter is only used for the home view.

Note that this changes some behavior, notably the header and inactive
toggles now show the masked dots when all unread markers in them are
also masked.
2025-07-29 17:37:29 -07:00
Tim Abbott
3c6c2c1d5a notify_local_mixes: Reorder for better readability.
No functional changes, just simpler conditionals.
2025-07-29 12:52:56 -07:00
Aman Agrawal
e5ca153673 message_view: Fix scroll jumps to top when user sends a message.
When navigating user to a `near` narrow if
`first_unread_msg_id_pending_server_verification`,
we didn't remove the `with` term, which results in
`is_conversation_view_with_near` check failing and hence
results in unexpected behaviour.
2025-07-29 12:46:16 -07:00
Aman Agrawal
3dec633ac4 compose_notifications: Extract function to show scroll to view banner. 2025-07-29 12:46:16 -07:00
Lauryn Menard
7aa93d3447 help: Improve emoji reactions documentation. 2025-07-29 12:25:10 -07:00
Alya Abbott
641a436b44 preferences: Update inactive channels preference setting for new UI.
"Hide" is a better verb with the channel folders UI.

Also automatically hide inactive channels at 20+ susbscribed channels,
as we have more content in the left sidebar now.
2025-07-28 23:52:55 -07:00
Aman Agrawal
ade30e822a inbox: Fix left alignment of user full name in DM rows.
They were misaligned since `user-circle` uses a different font-size
than rest of the icons and thus needed a different padding in `em`.
2025-07-28 23:46:28 -07:00
Sahil Batra
db00ceaeb2 register: Pass channel folder max name and description length.
This commit adds "max_channel_folder_name" and
"max_channel_folder_description" fields to response.

Also updated webapp to use these fields instead of hardcoding
the values.
2025-07-28 23:12:58 -07:00