Commit Graph

6838 Commits

Author SHA1 Message Date
Aman Agrawal
9b96b45841 recent_view: Fix transparent avatar background color being changed.
We don't set a background color for transparent avatars to avoid
changing what the avatar is supposed to be.
2024-12-17 10:28:50 -08:00
sanchi-t
4134cfe2bf css: Remove non-existent selector. 2024-12-17 10:28:32 -08:00
sanchi-t
92b8d66c3b css: Refactor theme colors for #recent_view.
This change moves the light and dark theme colors for
`#recent_view` element to CSS variables.
2024-12-17 10:28:32 -08:00
Aman Agrawal
0232eaba35 condense: Modify height offset to collapse messages.
The goal is to reduce the frequency with which unread messages are
collapsed and thus hard to actually read.

Fixes #31501.
2024-12-17 10:14:43 -08:00
Sahil Batra
1c933dd231 streams: Include only IDs in default streams data.
Clients do not need complete stream objects in the default
streams data since they already have that via streams and
subscriptions data.
2024-12-17 09:40:10 -08:00
Maneesh Shukla
e856294da6 compose: Open the compose box with channel picker.
This commit changes the code in such a way that the
"Start new conversation" button open the compose box with the channel
picker open, as we do when no channels is selected.

Fixes #28410.

Co-authored-by: Kunal Sharma <v.shm.kunal@gmail.com>
2024-12-16 10:50:12 -08:00
Maneesh Shukla
b024e71dc0 compose: Add tooltip over compose-reply button.
This commit adds the tooltip content for disabled stream reply button.

Fixes part of #28410.

Co-authored-by: Kunal Sharma <v.shm.kunal@gmail.com>
2024-12-16 10:50:12 -08:00
Maneesh Shukla
d8c5dcb41d compose: Disable compose reply button.
This commit updates the logic to disable the reply button based on the
user's permissions in the stream.

Fixes part of #28410.

Co-authored-by: Kunal Sharma <v.shm.kunal@gmail.com>
2024-12-16 10:50:12 -08:00
Aman Agrawal
0383730391 tooltip_templates: Remove unused data-view-code attribute.
This attribute is only usable on clickable targets as per the
existing click handler logic which these tooltips are not.
2024-12-16 09:04:18 -08:00
Lauryn Menard
23bd4a99f8 billing: Update class and id attributes to use "complimentary-access".
The "cancel-legacy-server-upgrade-button" class attribute was not
being used in CSS rules or frontend biling code, so these changes
remove it instead of renaming it.
2024-12-15 09:15:07 -08:00
Maneesh Shukla
74d7f11923 password: Add cancel debounce feature. 2024-12-13 14:40:29 -08:00
Karl Stolley
327afd5273 user_circles: Introduce circle icons to Inbox. 2024-12-13 14:33:24 -08:00
Karl Stolley
1bad9a82cc user_circles: Introduce circle icons to Recent conversations. 2024-12-13 14:33:24 -08:00
Karl Stolley
75a82fa8a2 user_circles: Introduce circle icons to typeahead. 2024-12-13 14:33:24 -08:00
Karl Stolley
f25442bac2 user_circles: Introduce circle icons to group popover. 2024-12-13 14:33:24 -08:00
Karl Stolley
de3aa9e8dd user_circles: Introduce icons into layout-corrected user modal. 2024-12-13 14:33:24 -08:00
Karl Stolley
86c1cfcfbe user_circles: Introduce circle icons to popovers. 2024-12-13 14:33:24 -08:00
Karl Stolley
1113bd53b6 user_circles: Introduce circle icons in sidebars. 2024-12-13 14:33:24 -08:00
Karl Stolley
67a67897f9 user_circles: Introduce status-based hyphenated classes. 2024-12-13 14:33:23 -08:00
Karl Stolley
b641fe2912 user_circles: Remove unused .user_circle_empty_line selector and styles. 2024-12-13 14:33:23 -08:00
Karl Stolley
27c6d5c836 dark_theme: Extend higher-contrast color to sidebars. 2024-12-13 13:36:20 -08:00
Karl Stolley
a13008b1d3 dark_theme: Adjust message colors for higher contrast. 2024-12-13 13:36:20 -08:00
Aman Agrawal
7e0705913d footer: Fix footer items mis-aligned in Russian.
Change alignment of footer rows to flex-start a bit earlier.
`1280px` is chosen since that's the standard `max-width` for
the screens on the page and that is width around which the
massive gap before the first item on the footer is diminished which
allows us to left align the elements.
2024-12-13 13:02:06 -08:00
Kislay Verma
b6d8bf3a80 navbar_alerts: Add alert to update time zone.
If the user has enabled the option to automatically offer to update
their profile time zone with the browser's time zone, we show an alert
offering that.
Clicking on "Yes" updates the timezone.
Clicking on "No, don't ask again" disables (unchecks) the option.

A feedback toast is displayed to indicate the success/failure of the
request.

The alert is also shown if the user has not set their time zone.

Fixes #16957.
2024-12-13 12:58:09 -08:00
Kislay Udbhav Verma
a2c6c11296 timerender: Track browser time zone.
We add a variable `browser_time_zone` to track the same
separately from `display_time_zone`.

This is used to check whether the user profile time zone matches
the browser's time zone, as a part of #16957, and will later be
used in #16958.

We also add methods to check whether a given timezone is the same
as that of the browser, making use of the browser's own
canonicalization process.

Tests are added to ensure that the time zone comparison
logic works for timezones observing DST.

Fixes part of #16957
2024-12-13 12:58:09 -08:00
Kislay Verma
a817671809 settings_ui: Add checkbox for toggling field.
Added a checkbox to toggle the option to automatically offer
to update the time zone with the browser time zone,
which is handled by the user profile field
"web_suggest_update_timezone".

A tooltip is also attached explaining the feature.

Fixes part of #16957
2024-12-13 12:58:09 -08:00
Kislay Verma
00df8a593d user_settings: Add field web_suggest_update_timezone.
This field tracks whether the user should be shown an
alert offering to update their profile time zone to the
time zone of the browser in case they differ.

The field is added to RealmUserDefault and UserProfile
models with a default value of True.

Fixes part of #16957
2024-12-13 12:58:07 -08:00
Vector73
143ca5065e api: Remove user object from reactions objects in the API.
Removes deprecated `user` object from reactions objects returned by
the API as it is redundant because of the presence of `user_id` field in
the API and is not used by any clients now.
2024-12-13 09:58:25 -08:00
Karl Stolley
eed844caef
compose: Maintain circular shape for conversation arrow. 2024-12-13 09:48:41 -08:00
Aman Agrawal
f452d64d64 topic_list: Scroll user to the selected topic in left sidebar.
Fixes #32601
2024-12-12 18:41:34 -08:00
Aman Agrawal
0af738269a stream_list: Ignore left sidebar scroll until initial fetch is complete.
Since the initial fetch has a lot of messages, it can add many topics
to the left sidebar which can move the selected topic out of the view.

Note that `has_scrolled` is triggered even for the scrolls not triggered
by user since it is not easy to differentiate between the two events.
So, it is okay to ignore it initially.
2024-12-12 18:40:19 -08:00
evykassirer
23551c7774 compose: Use em for enter send setting font size. 2024-12-12 17:51:01 -08:00
apoorvapendse
5787a11b53 typeahead: Increase token limit to scan '#'.
This commit prepares for a future change where the logic
will switch from returning "topic_jump" in
`tokenize_compose_str`, which causes the typeahead to close,
to returning the sliced token starting from '#'.

A test has been updated to validate the change.

To accommodate typeahead triggers for long stream and
topic names, the token limit is increased from 25 to 40
characters.
2024-12-12 17:35:46 -08:00
apoorvapendse
f6839995d5 compose: Check for topic token before stream.
This is a prep commit done to facilitate the
selection of topic right after stream is selected
from the typeahead.
Related #32184.
2024-12-12 17:33:51 -08:00
Maneesh Shukla
1feb650284 password: Add debounce to password validation.
Added debouncing to the password input field to reduce lag when
the password size is large.

Fixes: #29429.
2024-12-12 14:01:46 -08:00
Saubhagya Patel
cb75feafbb css: Remove unused CSS.
This commit removes some unused CSS from the
`app_components.css` file.

Fixes part of #32168.
2024-12-12 13:06:18 -08:00
Saubhagya Patel
14a8fd124a popovers: Restructure the Move Messages and Move Topic Modals.
This commit restructures the layout of the move messages and move topic
modals to follow standard patterns from other modals (e.g., the invite
user modal). It includes the following changes:
- The intro text is removed from the modal for renaming a topic,
  moving a topic, and moving messages between topics.
- The intro text is moved to the modal heading.
- If the heading doesn't fit on one line, it is abbreviated using
  ellipsis.

Fixes #32168.
2024-12-12 13:04:32 -08:00
evykassirer
2fd51e3bc4 settings: Refactor styles for user list style picker.
* Uses em for width instead of px, matching the width of
  the emoji style picker.
* Uses grid to line up columns, instead of flex with pixel widths
  for the preview column.
* Add overflow hidden to look better on small widths.
2024-12-12 09:15:18 -08:00
evykassirer
bbc36846c0 settings: Stop using stale CSS variables.
These variables stopped being used in caba06e93d.
2024-12-12 09:15:18 -08:00
evykassirer
a0ca21e1b1 settings: Use em for width of emojiset choices selection box.
This will become important when we support even larger font sizes.
2024-12-12 09:15:18 -08:00
evykassirer
90c06b34c6 compose: Size stream message arrow icon with em. 2024-12-12 09:13:04 -08:00
evykassirer
40c2c31fba show more/less: Use em for height of button. 2024-12-12 09:12:33 -08:00
Alex Vandiver
28c12888da add_emoji: Make "Preview:" translatable. 2024-12-12 09:11:22 -08:00
Aman Agrawal
a97b3c7e41 conversation_participants: Track participants data in with message data.
This will help us accurately track participants in every narrow
to be used buddy list and other components.
2024-12-12 09:09:30 -08:00
Tim Abbott
a59a93c436 css: Consolidate move_topic_modal styles. 2024-12-11 12:32:04 -08:00
whilstsomebody
0ce7278edf move_topic_popover: Show the number of messages to be moved.
Added a feature to the move message confirmation box to display the
count of messages that will be moved. The count updates dynamically
based on the selected option in the dropdown.

Fixes #23115.
2024-12-11 12:32:04 -08:00
Gunnar Samuelsson
876dd7ca60 popover: Fix misleading time description in right side-bar.
In the right side-bar, the popover states "Active x minutes ago",
even though the user could have been idle before going offline.
In that case we are stating something false, as the user was not
"Active x minutes ago", they were "Idle x minutes ago". Always
prioritizing the active_timestamp if possbile rather than taking
the max of active_timestamp and idle_timestamp fixes this issue.
2024-12-11 12:17:41 -08:00
Anders Kaseorg
26aa19db43 click_handlers: Convert module to TypeScript.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-11 12:12:07 -08:00
Anders Kaseorg
4f297bee32 recent_view_ui: Make tooltip data compatible with buddy_data.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-11 12:12:07 -08:00
Anders Kaseorg
df657e7208 click_handlers: Cut import of server_events.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-11 12:12:07 -08:00