Commit Graph

61734 Commits

Author SHA1 Message Date
Tim Abbott d6a078598d message_view: Always double-check cached data for now. 2024-11-20 12:59:12 -08:00
Tim Abbott 573cf12a18 settings_config: Allow using new user list style. 2024-11-20 12:56:04 -08:00
Karl Stolley 43317c6a2c dark_theme: Adjust message colors for higher contrast. 2024-11-20 12:56:04 -08:00
Aman Agrawal a84dfb0209 message_view: Verify msg list data state when restoring cached data.
When rendering message list directly from cached data, we sometimes
ask server to verify the current data.

If the data doesn't match, we include events at the time cached
data was restored to help with debugging or to determine if there
was race in updating the data.
2024-11-20 12:56:04 -08:00
Aman Agrawal 25e77e65fd message_fetch: Extract function to standardize API parameters.
There some common checks we need to perform before requesting
messages from the server. We extract it to be used elsewhere.
2024-11-20 12:56:04 -08:00
Aman Agrawal 4edd4af68c message_fetch: Remove no longer needed check for home filter.
`Filter.public_terms` will return the same result even if the
narrow is combined feed. Since we are no longer passing
empty narrow parameters for combined feed, this condition is
not required.
2024-11-20 12:56:04 -08:00
Aman Agrawal 2f78085888 message_fetch: Remove inaccurate comment.
This comment became inaccurate as we made combined feed to no longer
be a special view.
2024-11-20 12:56:04 -08:00
Aman Agrawal 043616cca0 message_events: Remove non matching edited msgs from search result. 2024-11-20 12:56:04 -08:00
Aman Agrawal a957ae865d message_events: Fix live update for search narrow on content update.
For messages whose content was edited, we ask the server if the
message matches the current search narrow.
2024-11-20 12:56:04 -08:00
Aman Agrawal 7652e09ddd message_events: Update cached msg list data when moving messages. 2024-11-20 12:56:04 -08:00
Aman Agrawal 39683f66fb message_view: Avoid initial fetch if we have enough context to render.
We don't contact the server at all when rendering a narrow if the
locally cached data has enough number of messages.
2024-11-20 12:56:04 -08:00
Aman Agrawal 17f6f9ed28 message_view: Attempt rendering cached data without contacting server.
For narrows for which we cannot filter the messages locally,
we attempt to select a message without contacting the server.
2024-11-20 12:56:04 -08:00
Aman Agrawal 4c9864ce13 message_events: Avoid populating from outdated cached msg data.
When we will no longer clear cached data on moving messages in
later commits, we have to clear cached data for the new filter when
changing narrow to avoid the message list from being populated
from it since the cached msg data is not updated as per the moved
topic and needs to be updated.
2024-11-20 12:56:04 -08:00
Aman Agrawal 8e62cdf3fd message_events: Add comment. 2024-11-20 12:56:04 -08:00
Aman Agrawal 6c4c5a853c message_view: Copy fetch status of superset data to msg data.
We can rely on the fetch status of the superset data since it
is now live update for message events.
2024-11-20 12:56:04 -08:00
Aman Agrawal a62f36b59a message_fetch: Extract part of post message fetch process.
This will be useful to separately call when restoring msg list
from cached msg list data.
2024-11-20 12:56:04 -08:00
Aman Agrawal 6a8acdd8f4 message_events: Update cached msg list data for msg property update.
We extend the existing logic that updates message events for
rendered message lists to apply for cached message list data
objects as well.

Manually tested for common message property narrows to test
update of the message property.
2024-11-20 12:56:04 -08:00
Karl Stolley b343ed47c5 typeaheads: Increase user-circle size. 2024-11-20 12:56:04 -08:00
Karl Stolley 349fc15647 right_sidebar: Increase user-circle size on avatars. 2024-11-20 12:56:04 -08:00
Karl Stolley 883327bf3b right_sidebar: Don't adjust user-circle border on row hover. 2024-11-20 12:56:04 -08:00
Karl Stolley e79d271e76 user_circles: Introduce icon to user typeahead. 2024-11-20 12:56:04 -08:00
Karl Stolley ab62dd6fb0 user_circles: Introduce icon into layout-corrected user modal. 2024-11-20 12:56:04 -08:00
Karl Stolley 47ebe97c56 user_circles: Introduce icon to group info popover. 2024-11-20 12:56:04 -08:00
Karl Stolley 7f7368186a user_circles: Introduce icon to user card avatar. 2024-11-20 12:56:04 -08:00
Karl Stolley b184da0b1c user_circles: Introduce icon to personal menu avatar. 2024-11-20 12:56:04 -08:00
Karl Stolley 333f9ddf31 user_circles: Introduce icons to Inbox, Recent conversations views. 2024-11-20 12:56:04 -08:00
Karl Stolley 23f4b31215 right_sidebar: Style presence icons for avatars showing. 2024-11-20 12:56:04 -08:00
Karl Stolley 84e55cb1b9 user_circles: Set new icons, colors in sidebars. 2024-11-20 12:56:04 -08:00
Karl Stolley ec59d464a7 user_circles: Remove unused .user_circle_empty_line selector and styles. 2024-11-20 12:56:04 -08:00
Aman Agrawal 45bd71429d condense: Modify height offset to collapse messages.
Fixes #31501

Collapse all unread messages that are over min(150 em, 2*viewport_height).
Collapse all bot messages and human messages marked as read that are over max(35 em, 0.65*viewport_height).
2024-11-20 12:56:04 -08:00
Karl Stolley 60ce314c87 left_sidebar: Clamp topics to two lines, breaking words as needed. 2024-11-20 12:37:27 -08:00
Karl Stolley 6465c494e5 left_sidebar: Present multi-line topics. 2024-11-20 12:37:27 -08:00
Karl Stolley bb08bf53f7 left_sidebar: Set tighter line-height on inner topics. 2024-11-20 12:37:27 -08:00
Karl Stolley f482639af8 left_sidebar: Prep multiline topics by decoupling from action headings. 2024-11-20 12:37:27 -08:00
evykassirer e5cd6e3432 buddy_list: Add more left padding beside left status circle. 2024-11-20 11:42:36 -08:00
Sayam Samal 35ba96bd9d recent_view: Remove bootstrap classes from recent view buttons.
This commit removes the final vestiges of `bootstrap-btn-default` class
from the codebase, by moving the relevant styles from the
`bootstrap-btn` and `bootstrap-btn-default` classes to the
`button-recent-filters` class.
2024-11-20 11:08:58 -08:00
Tim Abbott 6c981d9385 custom_profile_fields: Remove unused generic title CSS class. 2024-11-19 18:37:02 -08:00
joseph 55ffa76b4c settings: Add missing class to labels in stream settings.
Some labels in stream settings were missing the class name for settings
labels. Add the missing class name to the labels.

Fixes part of #21769.
2024-11-19 18:37:02 -08:00
joseph ca650368bc settings: Open group setting typeahead when its label has been clicked.
Add an event listener so that clicking on its label will open the
typeahead.

Fixes part of #21769.
2024-11-19 18:37:02 -08:00
joseph 9aaa7719fa settings: Focus on the input when its label has been clicked.
Our user type field utilizes the contenteditable div which isn't a
labelable element, so clicking on its label doesn't do anything. Add
an event listener so that clicking on the label will focus on the input.

The cursor will always be placed at the start of the input if the field
is accessed in this way. This is the browser's default behavior.

Fixes part of #21769.
2024-11-19 18:37:02 -08:00
joseph e237faabf5 settings: Open the date picker when its label has been clicked.
Flatpickr isn't a native input element, so clicking on its label
doesn't do anything. Add an event listener so that clicking on the
label will open the date picker.

Fixes part of #21769.
2024-11-19 18:37:02 -08:00
joseph 4ab519214a test: Ensure input field is visible before attempting to click on it.
There is an case of flakiness in the test where we attempt to click on
an input field before it's even visible. Make sure the input field is
visible before attempting to click on it.
2024-11-19 18:37:02 -08:00
joseph f1da8a9151 settings: Fix labels using full width of the modal.
Currently, the labels are using the full width of the modal, which results
in a clickable area that is too large. This commit fixes the issue by
setting the width of the labels to just fit its content.
2024-11-19 18:37:02 -08:00
joseph 8332c7d93b settings: Refactor the labels in stream settings.
This commit changes refactors all the labels in stream settings and
corrects the attribute values to fix the interaction between labels and
select/button elements.

Fixes part of #21769.
2024-11-19 18:37:02 -08:00
joseph ee66488fbf settings: Refactor labels in organization settings.
This commit changes refactors all the labels in organzation settings and
corrects the attribute values to fix the interaction between labels and
select/button elements.

Fixes part of #21769.
2024-11-19 18:37:02 -08:00
joseph cef901367e settings: Refactor the labels in personal settings.
This commit changes refactors all the labels in personal settings and
corrects the attribute values to fix the interaction between labels and
select/button elements.

Fixes part of #21769.
2024-11-19 18:37:02 -08:00
joseph 93e5b7ac55 settings: Remove duplicate class attribute from label element. 2024-11-19 18:37:02 -08:00
Anders Kaseorg d05eb63e7c introduce_zulip_view_modal: Fix invalid @partial-block usage.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-11-19 17:15:22 -08:00
evykassirer 60763763b2 stream_settings_ui: Convert module to typescript. 2024-11-19 14:01:10 -08:00
evykassirer 9e3cceb551 stream_settings_ui: Consistently return boolean from switch_rows.
This probably worked before because JQuery objects are truthy,
but the one caller of this function seems to expect it to
return boolean.
2024-11-19 14:01:10 -08:00