Commit Graph

63435 Commits

Author SHA1 Message Date
Anders Kaseorg
1f085a920a zephyr: Switch from py3dns to dnspython.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-02-25 11:53:08 -08:00
Tim Abbott
0338fd7357 get_realm_with_settings: Fix unnecessary joins with channel.
We were not actually using anything but the IDs here, so it was a
bunch of wasted work to fetch these.

This essentially reverts f48e87cd3c. At
the time, something like that was required, because we needed to check
if the channel was deactivated before exposing it to the API, but more
recent reworking of the system to change the setting if the channel is
deactivated, rather than masking it in fetch_initial_state_data, means
we can do this cleanup.
2025-02-25 11:42:04 -08:00
Lauryn Menard
a403576df3 api-docs: Describe object format of group-setting as anonymous group.
Revises some additional text in the main description for clarity.
2025-02-25 11:04:25 -08:00
Anders Kaseorg
498c6c485e zephyr: Fix compute_mit_user_fullname for py3dns returning bytes.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-02-25 10:39:45 -08:00
Kislay Verma
766467c5e3 composebox_typeahead: Allow easily linking to topics in same channel.
This commit makes it easier to link to topics in the same channel.
Typing `#>` in the compose box replaces it with `#**channel_name>`
and opens the topic_list typeahead.

Channel names producing broken link syntax
are handled by generating a fallback md link
syntax when the topic is chosen.

Fixes #31420
2025-02-25 09:51:49 -08:00
Kislay Verma
1500ba4211 composebox_typeahead: Improve insertion of link syntax.
We do not need to extract the stream name from typed text as we have
it available in the TopicSuggestion.
2025-02-25 09:51:49 -08:00
Kislay Verma
676fbb6d99 composebox_typeahead: Fix bug in generating link syntax.
A minor bug was introduced in #32184 where we didn't check if the
channel name would cause a broken link syntax (and hence should
generate a fallback md link).  This would cause problems when
implementing a shortcut syntax to link to current channel.

Fixes part of #31420.
2025-02-25 09:51:49 -08:00
Aditya Kumar Kasaudhan
914cdd5b3a settings_users: Live update of role count on activation/deactivation.
Previously, the role count in the active and deactivated users
sections was not updated live upon activation/deactivation.

This commit introduces live updates for the corresponding role
counts.

Fixes: #33566.
2025-02-25 09:41:15 -08:00
Aditya Kumar Kasaudhan
a6d6a04489 settings_users: Refactor role filter dropdown creation and setup.
This commit reorganizes the role filter dropdown initialization code
to prepare for implementing live updates of role counts.
2025-02-25 09:41:15 -08:00
evykassirer
37cf88bb87 compose: Scale send button with font size. 2025-02-24 22:33:05 -08:00
Anders Kaseorg
d7556b4060 requirements: Migrate to uv.
https://docs.astral.sh/uv/

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-02-24 22:29:24 -08:00
Anders Kaseorg
72f5df2e09 install: Remove --cacert and CUSTOM_CA_CERTIFICATES.
This has been broken for many years and nobody’s complained.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-02-24 22:29:24 -08:00
Anders Kaseorg
c725e1c69a requirements: Patch invalid escape sequences in talon.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-02-24 22:29:24 -08:00
Shubham Padia
ce031c4b52 get_stream: Rename include_all_active to include_all.
We keep around the old `include_all_active` parameter for backwards
compatibility.
Web frontend doesn't use this API and thus there were no changes needed
there.
2025-02-24 22:17:15 -08:00
Shubham Padia
6dde44cf37 get_streams: Add include_can_access_content.
Also add some query count checks.
See https://chat.zulip.org/#narrow/channel/378-api-design/topic/GET.20.2Fstreams.20with.20new.20permissions/with/2096944
for API design discussion.
2025-02-24 22:15:18 -08:00
Aman Agrawal
19b96ce9a8 composebox_typeahead: Fix failing tests.
Fixing test failure from
6d30b10b60.
2025-02-24 22:14:31 -08:00
Aman Agrawal
606bb778c5 typeahead: Wrap topic name in topic edit recipient bar form.
Fixes #33288
2025-02-24 21:55:13 -08:00
Aman Agrawal
1556dd8fb9 typeahead: Fix stream description not aligned with stream name. 2025-02-24 21:55:13 -08:00
Aman Agrawal
290ecba48c compose: Fix topic input box not visible for long stream names.
Since we want the width of the stream name to change responsively,
we need to use either media breakpoints or `vw` to ensure
that the stream name and topic name are visible at all widths.
2025-02-24 21:55:13 -08:00
Aman Agrawal
6d30b10b60 composebox_typeahead: Fix topic completion broken for long stream names.
Previous value of `40` didn't account for full length of stream name
which results in topic completion not working for stream names bigger
than that.
2025-02-24 21:55:11 -08:00
Alex Vandiver
ba7ad3de94 send_email: If using AWS, automatically remove from suppression list.
When sending invites and password reminders, ensure that the email
address is not on the AWS SES suppression list.  Addresses often
mistakenly end up on there and are never removed; automatically
removing them, if necessary, before we reach out to attempt a signup
reduces support overhead and perceived buggy behaviour.
2025-02-24 21:48:04 -08:00
Karl Stolley
d7ac4aa651 user_circles: Show deactivated icon in sidebars, inbox, recents. 2025-02-24 18:18:16 -08:00
Karl Stolley
7cdcf72c9a user_circles: Better fit and position circles over avatars. 2025-02-24 18:18:16 -08:00
Karl Stolley
bd94e3a932 user_circles: Improve gradients in light mode and over avatars. 2025-02-24 18:18:16 -08:00
Karl Stolley
205917f9d0 user_circles: Experiment with horizontal gradient on idle circles. 2025-02-24 18:18:16 -08:00
Karl Stolley
331870afeb user_circles: Reduce size to spec in sidebars. 2025-02-24 18:18:16 -08:00
Karl Stolley
28d785c133 user_circles: Introduce Vlad's new color schemes. 2025-02-24 18:18:16 -08:00
Karl Stolley
53032577cf user_circles: Match idle icon to active icon. 2025-02-24 18:18:16 -08:00
Alya Abbott
8edbc290a9 help: Add a page on viewing channel information from message view. 2025-02-24 18:15:26 -08:00
Alya Abbott
638fa5b2bc help: Fix wrong tab label. 2025-02-24 18:15:26 -08:00
Lauryn Menard
48ca710d75 help: Document specifying sender in generate channel email modal.
Documents setting the email sender in the generate channel email
modal that was added in #32581 and #32382.
2025-02-24 18:15:05 -08:00
Lauryn Menard
b96d94f679 docs: Update sections for organization settings tab changes.
Updates help center, integration and contributor docs where for
the new subsections on the organization settings tab, which were
changed in #33605.

Previously, these settings were all in the "Other settings"
subsection for that organization settings tab.
2025-02-24 18:14:21 -08:00
Niloth P
25940992c6 api_docs: Document the context manager for bot storage.
- Added a section for the context manager `use_storage`,
- a section for its two flush methods,
- and updated the "Performance considerations" section, clarifying the
two approaches of accessing bot storage.
2025-02-24 17:10:39 -08:00
Niloth P
8d42520237 api_docs: Clarify that bot_storage.contains() operates on the cache.
Fixes #32580
2025-02-24 17:10:39 -08:00
Niloth P
82ddc73df7 integration-docs: Add context properties for PythonAPIIntegrations.
Updated the change-zulip-config-file macro to use a newly added
context parameter, demonstrating its purpose.
2025-02-24 17:04:58 -08:00
Niloth P
f78f4b0e4b python-api-integrations: Map to directory names used in the API repo.
Added a `directory_name` field in PythonAPIIntegration objects to map
each integration to their corresponding directory in
zulip/python-zulip-api.
2025-02-24 17:04:58 -08:00
Niloth P
6475628f26 integrations: Add class PythonAPIIntegration.
For the class of integrations that exist in zulip/integrations
of the zulip/python-zulip-api repo.
2025-02-24 17:04:58 -08:00
Niloth P
c2ab2c8b73 integrations: Add a default doc path. 2025-02-24 17:04:58 -08:00
Niloth P
cdd39c9c71 integrations: Move big-blue-button logo to the default path. 2025-02-24 17:04:58 -08:00
Niloth P
3d178b0cd0 integrations: Remove unused extension variable.
Since 0904d61, we don't support HTML docs, and all docs use `.md`, so we
can remove the extension variable.
2025-02-24 17:04:58 -08:00
PieterCK
3773ba10e1 url_decoding: Add parse_narrow_url.
This adds the Python copy of `hash_util.parse_narrow`. In the web app,
it will mainly be used in the import process later on. So, although it
has the same purpose as its frontend twin, there are differences:

- This doesn't convert a user-id-slug into a list of user emails. It
will instead parse it into a list of user IDs, as that is the preferred
form for those kinds of operators. It will also help in later operations
to remap the object IDs during import.

- To the same effect as the first point, operands can be an actual list
or int instead of a list or int as a string (e.g., "12,14,15" or "93").

- It has fewer validations than its frontend counterpart. It doesn't
look up the parsed object IDs for validity. This is partly because of
its main use case in import.
2025-02-24 15:37:40 -08:00
PieterCK
c861bdd494 narrow_term: Refactor a NeverNegatedNarrowTerm.
Previously `NarrowTerm` is only used in our event-handling paths and to
a lesser extent in the `detect_narrowed_window` in `view/home.py`. Both
of which haven't yet support or handle the `negated` term.

Since we're planning to parse a narrow URL into narrow terms (like in
`hash_util.ts`) in the web app, we're going to need a `NarrowTerm`
dataclass with all three flags.

This commit adds the `negated` term to `NarrowTerm` and adds a
`NeverNegatedNarrowTerm` which is a subclass of `NarrowTerm` that always
has the `negated` flag as `False`, so functionally it is the same as the
current `NarrowTerm`.
2025-02-24 15:37:40 -08:00
PieterCK
71e412ec00 bots: Fix email already in use error message.
Currently the error message is "Username already in use" which is
misleading. This fixes the error message to be correct and consistent
with the same error message for the same check in `create_user_backend`.
2025-02-24 14:27:42 -08:00
Lauryn Menard
c654d03d14 help: Add polls section to "Message formating" article.
Creates an intro and an examples md file for the shared content
on the "Message formatting" article and "Polls" article.
2025-02-24 11:24:14 -08:00
Alya Abbott
2bb3ceaba8 help: Improve "Quote or forward a message" intro. 2025-02-24 11:23:34 -08:00
Vishesh Singh
c8983c0d31 popovers: Add x-gfm content type for copied Zulip links.
Copying links to a Zulip element now generate 3 content types:
- plain url, pasteable in address bar and non rich text editor
- HTML, for rich text editors.
- x-gfm, for pasting into GitHub and other services that support
  Markdown, new in this PR.

Fixes: #31813.
2025-02-24 11:18:01 -08:00
Vishesh Singh
6619b3b589 topic_link_util: Extract get_topic_link_content and helpers.
Refactors the get_fallback_markdown_link to generate some reusable
functions.
2025-02-24 11:07:37 -08:00
Maneesh Shukla
28cbc498d7 combined-feed-ui: Add placeholder text to empty combined feed.
Also, added live update behaviour to the combined feed narrow.

Fixes #31602.
2025-02-24 11:06:29 -08:00
Saubhagya Patel
99f3de5855 css: Fix CSS of Notification triggers table in Default user settings.
This commit applies CSS styles to the Notification triggers table in
the Default user settings under Organization settings, similar to how
they are applied to the Notification triggers table in the Notification
settings under Personal settings.
2025-02-24 10:17:48 -08:00
Maneesh Shukla
d8f609d088 unresolved: Add support for searching for unresolved topics.
Fixes: #31725.
2025-02-24 09:59:30 -08:00