This commit fixes textarea width being too small for "Long text"
custom profile fields in "Manage user" modal. This commit removes
the CSS which set the incorrect width and also restricts the
maximum width such that it does not overflows on narrow screens.
This commit adds CSS to make sure dropdowns and inputs, including
date type and pill inputs, remain inside the visible area of the
modals and are not cut off in narrow width screens.
Apart from setting max-width, this commit also changes the grid
CSS for datepicker input so the layout is arranged in such a way
that the "x" button is inside the input element and we can set
the max-width in a simpler way.
We previously added "settings_text_input" class to the datepickr
input in "Manage user" form as well, while other inputs have
"modal_text_input" class. This commit fixes that.
The format was changed in social-core 4.5.0-5-gb6317968 and the old
format is removed in 4.7.0-49-g5d98d92a.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
The `gh pr list --search` results may have an _empty_ state for the
first several seconds, leading to this immediately aborting, deleting
the branch and closing the PR.
The root pages for API, integrations and policies documentation
have a trailing slash for the canoncial URL, but the individual
articles on those pages do not have a trailing slash for the page
we want to mark as canonical.
Before commit 6df3ad251a (#24235),
get_extra_data_from_widget_type would initialize extra_data to null
for todo messages.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
Previously, closing a pull request by someone other than its creator could result in Zulip notifications attributing the action to the wrong user.
This change adds a focused test and a fixture capturing the case where the webhook sender differs from pull_request.user, ensuring the correct actor is mentioned for pull_request close events.
Follow-up to #36184.
Earlier, messages from muted users were hidden with a hidden dialog
but widgets were still visible.
This commit corrects this behaviour by hiding it if the message
container is supposed to be hidden.
Fixes part of zulip#34886.
This commit adds code to disable the role dropdown
when an owner is editing their own profile and they
are the only owner in the organization and a tooltip
is shown mentioning that.
We already keep the role dropdown disabled when an
admin user was managing an owner's profile.
Fixes#34830.
This commit renames classes used for edit pencil button in
the profile modal header so that class names are clear enough
to specify what the buttons do. This rename is needed because
admins can now see "Edit profile" tab, i.e. the "Manage user"
tab for other users, in their own profile modal.
Co-Authored-by: Aman Vishwakarma <vishwakarmarambhawan572@gmail.com>
This commit renames tab heading, tooltip and aria-label for the
pencil edit icon in the profile modal header from "Manage user"
to "Edit profile" for admin's own profile.
Fixes part of #34830.
For admin users, clicking on pencil edit icon in the profile
modal header opens the "Manage user" tab.
For non-admins, "Profile" settings panel is opened as before.
Fixes part of #34830.
Co-Authored-by: Aman Vishwakarma <vishwakarmarambhawan572@gmail.com>
Previouly admins did not see "Manage user" tab in their own
profile modal. This commit updates it to show the "Manage user"
tab to admins in their own profile modal as well.
Fixes part of #34830.