This commit removes the text-overflow property from input fields.
Chrome has a bug where truncation indicators in scrollable contenteditable
divs do not adjust when scrolling to the rightmost part of long text.
This behavior is related to https://issues.chromium.org/issues/41245282.
Firefox handles this correctly, but to ensure consistency, we will rely
on the default behavior of input fields, hiding overflowed text without
adding ellipses.
Fixes part of #35284.
This commit removes the following settings from the Settings/Preferences
Information section and adds a new section in the Settings/Preferences
called as Left Sidebar section:
- Show unread counts for
- Show unread count total on home view
- Show counts for starred messages
- Group channels by folder in the left sidebar
- Hide inactive channels
Fixes#35601.
We are starting the cutover process and starlight_help is the directory
we have agreed on to place our new help center project. We do not want
to use `starlight_help` as the URL for the project, but this commit
changes the url from `help-beta` to `starlight_help` temporarily since
we can only change URL once we get rid of the current help center
project. That will be done in a future commit.
This commit removes "button" and "rounded" class from the button and
add the required rules to the pre existing sticky-bottom-option class.
Fixes part of #35006.
This commit adds a "mapping" URL option preset that adds "Matching Zulip
channel" option to the stream dropdown widget. When that option is
chosen from the dropdown, it adds another parameter to the integration
URL -- "&mapping=channels".
This "mapping" parameter is meant to be used by integrations like Slack
to identify whether the user wants to map Slack channels to different
Zulip channels or different topics within a single channel.
This adds an icon for the `mapping`s' drop down option in the "Where to
send notification" drop down field.
Co-authored-by: Pieter CK <pieterceka123@gmail.com>
Co-authored-by: Lauryn Menard <lauryn@zulip.com>
This adds `WebhookUrlOption.build_preset_config` method which builds
pre-configured WebhookUrlOptions objects. It can be used to abstract
commonly used WebhookUrlOption settings or to construct special
settings that have additional logic and UI in the web-app modal for
generating an incoming webhook URL.
Currently, one such setting is the "branches" url option. This setting
is meant to be used by "versioncontrol" integrations such as GitHub,
Gitea, etc. It adds UI that lets the user to choose which branches of
their repository can trigger notifications. So, we refactor those
integrations to use `build_preset_config` for the "branches" option.
Co-authored-by: Lauryn Menard <lauryn@zulip.com>
This commit removes unused classes in folder row elements
and updated used class names to use "-" instead of "_"
following the convention we follow usually.
When a new user visits zulip for the first time:
* they are narrowed to DM with welcomer bot
* shown a navigation_tour_video in a modal
Earlier, when the modal was closed the compose recipient box
was focused instead of the compose textarea.
Reason:
`narrow_to_dm_with_welcome_bot_new_user` triggers a focus change from
(see `compose_actions.show_compose_box` with `opts.defer_focus = true`).
We start initializing this modal while the focus transition is in
progress, resulting in a flaky behaviour of the element that will
be in focus when modal is closed. Because the modal maintains the
focus position before and after toggling modal.
This commit fixes the issue by explicitly setting the focus to
ompose textarea when the modal is closed.
Instead of defining three separate banner objects with mostly identical
properties, dynamically construct the buttons array and intent based on
user permissions and organization type.
Also changes "Upgrade to access" button text to just "Upgrade" for
consistency.
This commit moves function for creating, editing and archiving
folders in a new file channel_folders_ui.ts so that they can
be defined separately than the files for stream settings UI.
Because both .message_embed_title and
.message_embed_description manage their own overflow,
there's no need to set it on the outer container,
which can clip the top of the letters on message titles
under certain circumstances.
Add a check for window blur and save any in-progress
messages as drafts. This will help prevent unnecessary
message loss for the user by creating drafts for them more
whenever they switch away from their Zulip tab.
Tested on my local Ubuntu development with a demo
organization and some of the premade profiles.
Fixes#35262.
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.
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.
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.
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.
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.