Commit Graph

65995 Commits

Author SHA1 Message Date
apoorvapendse
ceb9367bc4 recent_view: Use _html naming convention for content rendered as HTML.
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-07-28 12:56:44 -07:00
apoorvapendse
03a2d9f644 move_message: Use _html naming convention for content rendered as HTML.
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-07-28 12:56:44 -07:00
apoorvapendse
8ca2ec4363 inbox: Use _html naming convention for content rendered as HTML.
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-07-28 12:56:44 -07:00
Sahil Batra
3483c1dbcb server_events_dispatch: Handle channel_folder/update event. 2025-07-28 12:52:40 -07:00
Sahil Batra
b67f31bae0 state_data: Fix channel_folder_schema.
"description" field was missing in the schema.
2025-07-28 12:52:40 -07:00
Kislay Verma
50bf1b8583 message_edit_history: Return early if overlay is closed.
There is a possibility that the overlay was closed
while the request was being processed.

Fixes #35237.
2025-07-28 12:51:07 -07:00
Rohan Gudimetla
cb01bdf0c4 topics: Follow topics that are merged into even after merge.
Previously, when there were two topics -- A and B, and a user
follows topic A, then when messages of topic B are merged into
topic A then topic A loses its follow status.

This is fixed by updating the algorithm for getting the visibility
policy after merge to be followed in the above case.

Fixes #35226
2025-07-28 12:35:30 -07:00
Rohan Gudimetla
8330e7c283 topics: Refactor method that decides topic visibility after merge.
This commit refactors the method
which determines the visibility of two topics merged.

This is a preparatory commit for #35226.
2025-07-28 12:35:30 -07:00
apoorvapendse
33e728e586 user_membership: Use banner template to render messages.
We now resort to using banner template instead
of trying to maintain our own banners
in the stream subscription and user group
membership templates.

Fixes: https://chat.zulip.org/#narrow/channel/9-issues/topic/.F0.9F.8E.AF.20User.20add.20success.20banner.20squashed/near/2229035.
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-07-28 12:33:20 -07:00
apoorvapendse
c6a64b3c1d stream_subscription: Use banner template to render messages.
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-07-28 12:33:20 -07:00
apoorvapendse
818a3365af banner: Allow label to be in HTML format.
This is done to later render the subscribe
success and error messages using the banner
template instead of using the banner classes
in the subscription/memebership templates
which requries us to duplicate the changes
in banner.hbs at these places to avoid
regressions.

Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-07-28 12:33:20 -07:00
Shubham Padia
8c503b856e help-beta: Make availability icons work in the new help center.
This commit does not apply the gradient for the idle user circle icon.
We are instead just displaying --color-user-circle-idle for now. #35496
tracks this followup.

We need to use icon tags in our markdown for the icons to be converted
to unplugin icons by the conversion script, this commit fixes that
problem at source for the availability icons.

The css is duplicated from portico/markdown.css, we have not added any
notes that this is duplicated since the css for these classes is already
being duplicated without warning and a simple grep while making those
changes would make it obvious on what changes need to happen.
2025-07-28 12:07:41 -07:00
Aman Agrawal
810827599f people: Fix profile data undefined for user when processing user event.
The API defaults to include_custom_profile_fields=True in the POST /register
code path, but defaults to false in GET /users call.

This results in profile data for user being undefined when received
from server and thus we fail to process any profile updates for the user.

Co-authored-by: Tim Abbott <tabbott@zulip.com>
2025-07-28 11:44:31 -07:00
Lauryn Menard
da148259d8 help-beta: Add "navigation-step-relative-type" class.
Updates the NavigationSteps astro component to add a the
navigation-step-relative-type class for any instructions
that include icons as part of the potential relative link
label.

We remove the space between the icon and text in the label
item and instead use a CSS rule to add white space between
the icon and text. This way any text decoration rules will
not apply to the visual white space between the label's
icon and text.
2025-07-28 11:03:52 -07:00
Sahil Batra
c300775282 channel-folders: Enable channel folders UI in production. 2025-07-28 11:00:45 -07:00
Aman Agrawal
f4dd3aa066 auth: Pass None as default_subdomain to verify the host.
We were not verifying correctly if the host is in the same
subdomain as we never returned None for get_subdomain_from_hostname.
2025-07-28 10:59:38 -07:00
Prakhar Pratyush
5616be4afa test_e2ee_push_notification: Improve tests to cover more cases.
This commit adds a test and updates a few existing tests to
cover more cases related to send push notifications.

* We no longer mock the 'send_push_notifications_legacy' function
  while testing 'send_push_notifications' codepath and vice-versa.
  This makes the tests more realistic as both functions gets called
  in 'handle_push_notification'.

  This covers the case when only old clients (which don't support
  E2EE) exists for a user. Or only updated clients (which supports
  E2EE) exist.

* Adds a test 'test_both_old_and_new_client_coexists' for the case
  when a user has both type of clients at an instant i.e. they have
  updated a few devices only.
2025-07-28 10:39:48 -07:00
Prakhar Pratyush
d91a6be3f1 push_notification: Return early if no device registered - w/o bouncer.
In 'send_push_notifications_legacy', when a user has no registered
devices:
* `uses_notification_bouncer()`=True: we log "Skipping..." and return.

* `uses_notification_bouncer()`=False: we make some function calls,
  which effectively does nothing.

It's better to have a common check (and log) early in the codepath.
This commit makes that change.
2025-07-28 10:39:48 -07:00
Tim Abbott
fcb8956852 left_sidebar: Refactor folder_unread_counts initialization logic. 2025-07-28 10:28:01 -07:00
Evy Kassirer
80c9489683 left_sidebar: Uncollapse folder when clicking an active channel in it. 2025-07-28 10:28:01 -07:00
Evy Kassirer
18463b45a2 left_sidebar: Skip invisible rows in keyboard navigation.
Collapsed sections and inactive channel lists are not visible and so
should be ignored in keyboard naviation.
2025-07-28 10:28:01 -07:00
Evy Kassirer
f984b44ab9 left_sidebar: Remove inactive section, put inactive channels in regular section. 2025-07-28 10:28:01 -07:00
Evy Kassirer
e63ee026fe left_sidebar: Hide inactive channels in channel folders. 2025-07-28 10:28:01 -07:00
Evy Kassirer
e6fecfc8eb left_sidebar: Show channel folders in left sidebar.
Fixes part of #31972.
2025-07-28 10:28:01 -07:00
Evy Kassirer
2a8012b312 left_sidebar: Show faded muted unread for header if no regular unreads. 2025-07-28 10:28:01 -07:00
Evy Kassirer
bc6b0cccf4 left_sidebar: Add unread markers to channel section headers. 2025-07-28 10:28:01 -07:00
Evy Kassirer
739debf7b4 left_sidebar: Add plus icon to channel section headers. 2025-07-28 10:28:01 -07:00
Evy Kassirer
08fd7a30f9 left_sidebar: Add plus icon beside channel search bar.
This button was previously found when hovering on the CHANNELS
header, but now that we've removed that header, we show the
button here instead, and always visible.
2025-07-28 10:28:01 -07:00
Evy Kassirer
add97effbb left_sidebar: Show highlighted channel/topic even when folder is collapsed. 2025-07-28 10:28:01 -07:00
Evy Kassirer
9478525f15 left_sidebar: Remove #streams_header and related code.
This component no longer exists with the new design.

Everything removed here that's still relevant (unread counts, special
logic for spectator view) is added back, at the section/channel folder
layer, over the next several commits.
2025-07-28 10:28:01 -07:00
Evy Kassirer
27092d5543 left_sidebar: Change channel sections to togglable sections. 2025-07-28 10:28:01 -07:00
Evy Kassirer
dc013b6a10 left_sidebar: Show the search bar all the time.
This is preparation for adding channel folders to the sidebar
and removing the CHANNELS header, where we'll want to have an
always open search bar.
2025-07-28 10:28:01 -07:00
Evy Kassirer
0ba4c9cb6c stream_list: Don't toggle channel search on header click.
Soon we'll make multiple channel sections and have them toggle
open or closed when clicking the header.
2025-07-28 10:28:01 -07:00
Lauryn Menard
10c13bf5e1 help: Add shared include instructions for the direct message feed. 2025-07-28 09:50:14 -07:00
Lauryn Menard
7cbc321704 help: Remove "Reading direct messages" article.
In #27186, we updated the help center documentation on
reading conversations and removed the article from the
left sidebar.

Removes remaining links to the article in "Printing
messages" and adds a redirect to go to the main article
on "Direct messages".
2025-07-28 09:50:14 -07:00
Lauryn Menard
051f0bf7f5 help: Update instructions for adding and removing alert words. 2025-07-28 09:48:23 -07:00
Karl Stolley
f355c28fa5 search: Tune colors to Vlad's proposals. 2025-07-28 09:38:28 -07:00
Lauryn Menard
a7e3d5c0b0 help: Add missing space after icons in instruction blocks. 2025-07-27 20:49:54 -07:00
Lauryn Menard
633c830e44 help: Inline h4 headers that were followed directly by h3 headers.
In the "Reading strategies" and "Getting started with Zulip"
articles, we inline the h4 headers that were directly followed by
h3 headers.

Moves the shared content in those two files to the existing
`help/include/reading-conversations` file that was already being
used for the relevant content sections in those two articles.
2025-07-27 20:48:56 -07:00
Lauryn Menard
973a11ea69 help: Make headers progressive in "Connect through a proxy" article. 2025-07-27 20:48:56 -07:00
Prakhar Pratyush
36a2093585 push_notification: Remove dev guard from send E2EE notif codepath.
This commit removes the DEVELOPMENT guard from the new
'send_push_notifications' function in 'handle_push_notification'
and 'handle_remove_push_notification'.
2025-07-27 20:47:16 -07:00
Kislay Verma
4ceb2a064f compose_banners: Clear convert_pasted_text_to_file on sending message.
Since this is the only INFO banner that needs to be
cleared on clearing compose box, I've added a
function specific to it.
2025-07-27 20:46:42 -07:00
Lauryn Menard
1c2cbc4482 help: Make bold formatting of links more consistent. 2025-07-26 23:40:05 -07:00
Alex Vandiver
fd390b9eb1 settings: Enable Altcha in development if on localhost.
We only do this on localhost, because users of remote development
servers will run afoul of "Secure context is required"[^1].

[^1]: https://altcha.org/docs/troubleshooting/#secure-context
2025-07-25 22:29:51 -07:00
Alex Vandiver
74675fae94 settings: Use get_secret for altcha_hmac.
When building tarballs, we do not have development secrets.
2025-07-25 22:29:51 -07:00
Alex Vandiver
8af90294d8 altcha: More error-proofing around settings validation. 2025-07-25 22:29:51 -07:00
Aman Agrawal
f0f916f538 navbar: Fix double outline on navbar when focused via keyboard.
Fixes #35001

`outline-style: auto` results in double outline of white and
dark blue which doesn't look good. Replaced to use white outline
only.
2025-07-25 22:27:29 -07:00
Sayam Samal
5d4b9ee505 topic_popover: Show loading indicicator on topic resolve/unresolve.
This commit shows a loading indicator in the recipient bar when the
user resolves or unresolves a topic from the topic actions menu.

Since we do not have a unresolve icon button in the recipient bar
following commit 23ac87606a, we
first render a icon button with a placeholder icon in the recipient bar,
and then show the loading indicator when the user clicks on the
"Mark as unresolved" option in the topic actions menu.
2025-07-25 22:27:03 -07:00
Aman Agrawal
df126300b3 pm_list: Fix dm filter not cleared on zooming out.
`clear_search` doesn't reset the filter text which causes the
issue, hence fixed by clearning the filter text here.
2025-07-25 22:25:45 -07:00
Alex Vandiver
6c4d3f89c9 i18n: Update .po files with ./manage.py makemessages. 2025-07-25 20:30:42 +00:00