Commit Graph

66159 Commits

Author SHA1 Message Date
Karl Stolley
fb8f695d28 left_sidebar: Vastly improve the unread-dot placement. 2025-08-05 15:04:14 -07:00
Karl Stolley
21e7876fbc left_sidebar: Improve responsiveness and flex of condensed icons. 2025-08-05 15:04:14 -07:00
Karl Stolley
1b7e42c7df left_sidebar: Suppress unread count on highlighted home row. 2025-08-05 15:04:14 -07:00
Karl Stolley
f362c4ea91 left_sidebar: Suppress home-view icon dot when unreads show. 2025-08-05 15:04:14 -07:00
Karl Stolley
b27a9fdbf1 left_sidebar: Show home unread count in condensed views.
The view is left as-is, however, for users who prefer
masked unreads.
2025-08-05 15:04:14 -07:00
Karl Stolley
070f497785 left_sidebar: Make condensed views aware of hide-count preference. 2025-08-05 15:04:14 -07:00
Aman Agrawal
067ecbbbfe inbox_ui: Fix scroll jump after initial render.
It is possible for us to scroll user back to top of view if they
scroll before the render is complete and we haven't called
`revive_current_focus` yet.

This fixes it by wrapping the render and revive logic in a single
animation frame so that any scroll requests are delayed until we
have completed both of them.
2025-08-05 14:57:52 -07:00
Prakhar Pratyush
9c0777ad26 settings: Add '.highlighted-element' to <b> in stream & group settings.
This commit adds 'highlighted-element' class to <b> tags in
the following parts of the settings panel:
* who can access channel
* user member of a user group because of being part of a subgroup
  already added.

'highlighted-element' class sets the 'font-weight: 600',
replacing the default of 700.
2025-08-05 14:50:56 -07:00
Prakhar Pratyush
2005e5f616 compose_banners: Add '.highlighted-element' to <b> in compose banners.
This commit adds 'highlighted-element' class to <b> tags in
the following compose banners:
* jump_to_sent_message_conversation_banner
* stream_does_not_exist_error
* unknown_zoom_user_error
* channel wildcard_mention_not_allowed_error
* topic wildcard_mention_not_allowed_error

'highlighted-element' class sets the 'font-weight: 600',
replacing the default of 700.
2025-08-05 14:50:56 -07:00
Prakhar Pratyush
8248ef8de7 modal: Add '.highlighted-element' to <b> in try-zulip & api-key modals.
'highlighted-element' class sets the 'font-weight: 600',
replacing the default of 700.
2025-08-05 14:50:56 -07:00
Prakhar Pratyush
091ae95e69 left_sidebar_popover: Add highlighted-element class to <b>.
This commit adds 'highlighted-element' class to <b> tags in
the following left sidebar popovers:
* inbox
* combined feed
* recent conversations

'highlighted-element' class sets the 'font-weight: 600',
replacing the default of 700.
2025-08-05 14:50:56 -07:00
Prakhar Pratyush
a37cea2c5f confirm_dialog: Add highlighted-element class to <b> in confirm dialogs.
This commit adds 'highlighted-element' class to <b> tags in
the following confirm dialogs:
* delete topic
* mute user
* join user group

'highlighted-element' class sets the 'font-weight: 600',
replacing the default of 700.
2025-08-05 14:50:56 -07:00
Vector73
9eda1f11ca tests: Use built-in users instead of creating new users in tests. 2025-08-05 14:46:12 -07:00
Vector73
6c94266bf9 stream_data: Rename is_stream_archived function.
Renames `is_stream_archived` function to `is_stream_archived_by_id`.
2025-08-05 13:41:08 -07:00
Kislay Verma
47905d7812 left_sidebar_navigation_area: Reduce the use of ??.
This fixes https://github.com/zulip/zulip/pull/35075#discussion_r2232052221.
Using an inline `??` seems to be the best choice.

Fixes part of #35494.
2025-08-05 13:38:41 -07:00
Karl Stolley
95dfb4aa41 rendered_markdown: Reduce space between paragraphs and nested lists. 2025-08-05 13:38:22 -07:00
Shubham Padia
3978106672 help: Use Zulip Cloud and self-hosting URLs instead of display_host.
We are porting the current help center docs to the new help center.
Porting the display_host variable to the new help center is a tricky
task and it is not worth to put in the effort for that just for 3 uses
of that variable.
2025-08-05 13:29:29 -07:00
Lauryn Menard
1e550d84b7 help-beta: Add icons to settings non-relative link template.
This makes the text for the organization and personal settings
options from the gear menu consistent with the relative link
type of NavigationSteps.
2025-08-05 13:29:07 -07:00
Lauryn Menard
e90302e649 help-beta: Add icon field to RelativeLinkInfo.
When building relative links in NavigationSteps components, we
want to trim any new lines from the raw icon file that's imported.
2025-08-05 13:29:07 -07:00
Lauryn Menard
212580f43e help-beta: Rename imported icon classes in NavigationSteps. 2025-08-05 13:29:07 -07:00
Sayam Samal
a34d033ec1 stream_list: Fix focus behavior for topic list search box.
This commit ensures that the focus on the topic list search box is only
triggered when the user clicks on the "SHOW ALL TOPICS" button, and not
when the narrow changes. This prevents unwanted focus behavior when
switching between different narrows/views which interfered with the
focus states of the compose box.
2025-08-05 13:21:53 -07:00
Karl Stolley
9481547a84 left_sidebar: Correct margin on sticky headers. 2025-08-05 11:05:22 -07:00
Anders Kaseorg
88b9a2cfbd push_notifications: Guard reference to RemotePushDevice.
This doesn’t exist when ZILENCER_ENABLED is False.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-08-05 11:03:18 -07:00
Tim Abbott
68b205775e migrations: Fix realmcreationstatus migration ID.
I forgot that renumber-migrations doesn't handle this across projects.
2025-08-04 18:47:49 -07:00
bedo
121265b188 user_groups: Change return type "NamedUserGroup" to "UserGroup".
A minor type hint bug:
function "get_root_id_annotated_recursive_subgroups_for_groups"
returns UserGroup not NamedUserGroup.
2025-08-04 18:47:09 -07:00
Vector73
0ac24bd437 api: Add support for passing partial to include_subscribers parameter.
Fixes #35318.
2025-08-04 18:43:14 -07:00
Mateusz Mandera
40b1f6eb4e confirmation: Replace RealmCreationKey - use Confirmation instead.
Fixes #20028.

There's no reason to have a special `RealmCreationKey` class - the
`Confirmation` system already does this job.

This is somewhat complicated by the need to write a migration for
`RealmCreationKey`->`Confirmation` for pre-existing, valid objects, to
avoid breaking realm creation links that haven't been used yet.
2025-08-04 18:41:15 -07:00
Mateusz Mandera
072f234269 confirmation: Rename REALM_CREATION to NEW_REALM_USER_REGISTRATION.
Clears up some naming confusion - `REALM_CREATION_LINK_VALIDITY_DAYS` is
a setting which describes the validaty period of RealmCreationKey, not
of Confirmation with REALM_CREATION type. Now that the latter is called
NEW_REALM_USER_REGISTRATION, there should be no confusion about this.
2025-08-04 18:41:00 -07:00
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
Shubham Padia
3ae0c4c68b help-beta: Make tight and loose lists look the same. 2025-08-04 13:25:15 -07:00
Shubham Padia
c6a0e79342 help-beta: Insert steps around ordered lists.
We remove the ol > li margin rule to space out ordered list items since
that was the result of us overriding an upstream margin rule in
steps.css.

We inserted Steps inside include files only if they are not entirely
composed of an ordered list. If they are, they will eventually be
wrapped inside FlattenedSteps and wrapping these macros with Steps will
not give us the results we desire.
2025-08-04 13:25:15 -07:00
Shubham Padia
502c8072b0 help-beta: Use steps component instead of using steps.css.
Using steps.css right now might feel like the more convenient way out,
but it might introduce friction in upgrades when the upstream code
changes. To tackle that, we convert FlattenList to FlattenedSteps and
explicitly use the steps component.
2025-08-04 13:25:15 -07:00
Anders Kaseorg
00ada0130f install-shellcheck: Upgrade ShellCheck from 0.10.0 to 0.11.0.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-08-04 13:23:33 -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
072516c2bb channel-folders: Update unique name constraint.
This commit updates code to require unique names for only
non-archived folders in a realm, which means a folder can
use a name which is being used by an archived folder.
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
Prakhar Pratyush
55cceeaca1 test_push_notifications: Use assertCountEqual for unordered token list.
The order of token values returned by the database query isn't
guaranteed, so 'assertEqual' fails in a flaky way.

This commit uses 'assertCountEqual' to fix that.
2025-08-04 11:33: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
Niloth P
52fb13a2f6 generate-integration-docs-screenshot: Use bot-name option to set email.
Previously, only one bot can be created using the
generate-integration-docs-screenshot script for each integration. This
was because the bot's email was constructed using the integration's
name.

Thus, the bot-name commandline option would not work if a bot already
exists for the integration.

Now, we create the email by cleaning the bot-name value, if passed.
2025-08-04 10:00:02 -07:00