Commit Graph

9524 Commits

Author SHA1 Message Date
Anders Kaseorg
800cfc4421 emoji_names: Rebuild with emoji-datasource 16.0.0.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-10-07 22:42:50 -07:00
Anders Kaseorg
9ac9dbdc1c dependencies: Upgrade JavaScript dependencies.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-10-07 22:42:50 -07:00
Anders Kaseorg
9372b47d04 eslint: Fix unicorn/prefer-dom-node-dataset.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-10-07 22:42:50 -07:00
Anders Kaseorg
910718ccd3 eslint: Fix unicorn/no-array-sort.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-10-07 22:42:50 -07:00
Shubham Padia
9b1b52ec8a settings: Rename grey-box to settings-highlight-box.
Having the class named after a color limited to things we can do with
the class + does not signify what the class is for in terms of it's use.

Name decided at
https://chat.zulip.org/#narrow/channel/101-design/topic/grey-box.20dark.20theme.20color.2E/near/2272404
2025-10-07 09:26:51 -07:00
Shubham Padia
da0fa1349c css: Use --color-background-modal-bar for .grey-box.
Before 567e8f369e, the background-color
for .grey-box was --color-background-modal-bar, but the dark part out of
the light-dark() for that color was being overriden by
hsl(0deg 0% 0% / 20%) in dark_theme.css. Since that was a refactor PR,
we added a new color called --color-background-grey-box to keep the
behaviour same as before.

But discussion in
https://chat.zulip.org/#narrow/channel/101-design/topic/grey-box.20dark.20theme.20color.2E
confirmed that we want to have `--color-background-modal-bar` as the
background color for that class.
2025-10-07 09:26:51 -07:00
Shubham Padia
44d1343158 css: Remove redundant border-color for message rows.
The dark component out of the light-dark() of
--color-message-list-border is hsl(0deg 0% 0% / 40%), which is the same
as the color we specify in dark_theme.css.

- .recipient_row already uses the above variable, so it's entry is not
  needed in dark_theme.css
- .message_row uses the same variable as well.
- .overlay-message-row does not have a direct border. Although
  .message_row nested inside it does. It already uses the above
  variable, so we can remove this entry as well.
2025-10-06 17:44:11 -07:00
Shubham Padia
f6d972048b css: Remove redundant border related css for .preview_message_area.
We removed the border declaration in #29953. We do not need the
border-radius anymore, nor the border-color declaration in
dark_theme.css.
2025-10-06 17:44:11 -07:00
Shubham Padia
de2126d240 subscriptions: Use light-dark() instead of dark_theme.css for stream-row.
Fixes part of #35881.

We extract out relevant colors from dark_theme.css for .stream-row and
.group-row and place them in light-dark(). We also transform all these
colors for .group-row and .stream-row into variables.

We use the alpha value for hsl() colors as a stand-in for the opacity we
were defining in dark_theme.css.
2025-10-06 17:44:11 -07:00
Shubham Padia
567e8f369e css: Move out background-color hsl(0deg 0% 0% / 20%) out of dark_theme.
Fixes part of #35881.
2025-10-06 17:44:05 -07:00
Shubham Padia
c96caded1f subscriptions: Use existing variable for .subscriber-list-box.
Fixes part of #35881.

Instead of having all the rules in the dark_theme.css, we use the
existing variable which uses `light-dark()`.

We also create a new variable color-border-settings-radio-input-parent,
since the existing variable was not created for that radio input and
they should be allowed to change independently.
2025-10-06 17:44:00 -07:00
Shubham Padia
ee298be34b subscriptions: Replace svg with .sub-unsub-icon in dark_theme.css.
We missed doing so in #36047.
2025-10-06 17:43:23 -07:00
Evy Kassirer
9d532baa94 pill_input: Use flex-grow 1 on all input pills.
This extends existing styling for pills for search and org permissions,
to fix a bug in the invite users modal. Continues work in #34371, which
tested other input elements.

Fixes bug reported here:
https://chat.zulip.org/#narrow/channel/9-issues/topic/pasting.20invite.20email.20addresses
2025-10-06 17:32:58 -07:00
Karl Stolley
5ce956c9bb compose: Clear recipient-focused timeout before setting another. 2025-10-06 16:41:09 -07:00
Prakhar Pratyush
7a96ca2412 onboarding_steps: Retry with backoff when marking a step as read fails.
Earlier, transient errors while marking an onboarding step as read
resulted in blueslip reporting - which is not required.

This commit updates the logic to retry with backoff in case of error.

Signed-off-by: Prakhar Pratyush <prakhar@zulip.com>
2025-10-06 12:18:57 -07:00
Evy Kassirer
ce56be02bc hotkey: Convert module to typescript. 2025-10-06 11:01:01 -07:00
Evy Kassirer
7c90d2cee5 compose_setup: Convert module to typescript. 2025-10-03 18:21:16 -07:00
Evy Kassirer
02f1a624f7 filter: Standardize type of has_topic's stream_id. 2025-10-03 18:21:16 -07:00
Sayam Samal
a8387a6487 dark_theme: Clean up input styles in dark_theme.css.
Fixes part of #35135.
2025-10-03 18:18:27 -07:00
Karl Stolley
31e5e8f636 left_sidebar: Remove open-menu outline on zoomed channel. 2025-10-03 16:59:46 -07:00
Karl Stolley
f82a1f3002 left_sidebar: Correct filter backgrounds on active-filter zoom. 2025-10-03 16:59:46 -07:00
Karl Stolley
d61e86faff left_sidebar: Clarify and correct active-filter hover backgrounds. 2025-10-03 16:59:46 -07:00
Karl Stolley
1b164c680e left_sidebar: Clarify hover backgrounds on active filters. 2025-10-03 16:59:46 -07:00
Karl Stolley
3b4c5abd82 left_sidebar: Specify app background color on checkmark. 2025-10-03 16:59:46 -07:00
Karl Stolley
00e437caa7 sidebars: Remove unnecessary opaque color variant.
There is no longer any opacity in the
--color-background-hover-narrow-filter, so the opaque
variant just adds noise and the potential for drift
from the original color.
2025-10-03 16:59:46 -07:00
Karl Stolley
023fd27bcb left_sidebar: Remove unnecessary dark-mode color. 2025-10-03 16:59:46 -07:00
Evy Kassirer
d9fded98ff search: Remove outline for focused pills in the typeahead.
Reported here:
https://chat.zulip.org/#narrow/channel/9-issues/topic/extraneous.20box.20when.20clicking.20on.20search.20pill.20in.20typeahead/near/2268435
2025-10-03 10:49:55 -07:00
Evy Kassirer
034353b22d compose: Use compose_state.message_content for preview rendering.
Followup to #36048. Since the trimming done by the compose_state
function is designed to not impact the actual Markdown rendering of a
message, it's safe to simplify the code path in this way.
2025-10-03 10:48:08 -07:00
Evy Kassirer
3366aeb586 compose: Assert message_type not undefined instead.
Followup to #36048.
2025-10-03 10:48:07 -07:00
Evy Kassirer
5d90f509f5 compose_send_menu_popover: Remove default opts for open_schedule_message_menu. 2025-10-02 16:30:09 -07:00
Evy Kassirer
1818ce1e47 compose_send_menu_popover: Convert module to typescript. 2025-10-02 16:30:09 -07:00
Evy Kassirer
235dfa5280 search: Fix some overflow issues for dm pill operand. 2025-10-02 10:24:33 -07:00
Pratik Chanda
5e33f21af8 info_overlay: Use internationalized strings in keyboard shortcut tab.
This commit internationalizes the strings between the keys in the
right half of the keyboard shortcut tab in info_overlay.

Fixes part of #22875.
2025-10-01 16:54:12 -07:00
Pratik Chanda
dc61ad6071 keyboard_shortcuts: Change selector for home view hotkey in help menu.
This commit changes the selector for home view hotkey shortcut hint in
help menu. This will help in internationalization of the keyboard hints.
2025-10-01 16:54:12 -07:00
Pratik Chanda
97f3be90d6 markdown: Add helper config option to pass diff config to render.
This commit adds option to pass separate helper config to use when
rendering markdown. It uses the passed helper config if available or
fallbacks to web_app_helper config.
2025-10-01 16:54:12 -07:00
Evy Kassirer
635d99ba72 zform: Convert module to typescript. 2025-10-01 16:39:59 -07:00
Evy Kassirer
ec78f0551b server_events: Rename messages to raw_messages. 2025-10-01 16:38:55 -07:00
Evy Kassirer
f186a0edbb message: Make draft_id not optional in LocalMessage. 2025-10-01 16:38:55 -07:00
Evy Kassirer
a175a82590 compose: Convert module to typescript. 2025-10-01 16:38:55 -07:00
Evy Kassirer
66b90d3736 message: Create new LocalMessage to fix type of transmit.send_message. 2025-10-01 16:38:55 -07:00
Evy Kassirer
3c4fe73470 message: Differentiate between new local messages and server messages. 2025-10-01 16:38:55 -07:00
Anders Kaseorg
85c94599c5 emoji: Remove deprecated Google blobs emoji set.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-10-01 13:35:06 -07:00
Evy Kassirer
2888459f25 peer_data: Add clarity for when we do/don't have the full subscriber set. 2025-10-01 11:10:22 -07:00
Aman Agrawal
180ef91d1a people: Remove incorrect comment.
`error` type blueslip calls are checked.
2025-10-01 11:04:44 -07:00
Evy Kassirer
7167150a87 stream: Move subscriber_count to api_stream_schema. 2025-09-30 12:52:47 -07:00
Evy Kassirer
e9135cdc34 stream_data: Use clearer name for attrs for create_sub_from_server_data. 2025-09-30 12:52:47 -07:00
Evy Kassirer
06845359bd peer_data: Store subscriber counts off of the sub object. 2025-09-30 12:52:47 -07:00
Evy Kassirer
10a815cae7 stream_data: Rename add_sub to add_sub_for_tests. 2025-09-30 12:52:47 -07:00
Evy Kassirer
665bce3c13 transmit: Pass params directly instead of using opts. 2025-09-30 11:49:16 -07:00
Evy Kassirer
53cbfb9086 compose: Rename request to more specific sent_message. 2025-09-30 11:49:16 -07:00