zulip/static
Sahil Batra b84885184e settings: Use user-level email_address_visibility setting in UI.
This commit basically updates the frontend code to directly use
delivery_email field instead of functions like show_email or
email_for_user_settings at places where we want to show email.
We can do this change since we recently updated the server code
to always pass "delivery_email" code in the user objects with its
value being null if the real email is not accessible.

Showing email or "hidden" or nothing at various places in UI like
in users list, subscriber list, user profile popover and modal is
same as before.

Major points -

- Removed show_email and email_for_user_settings functions since we
directly use delivery_email field now as explained above.

- While sorting by emails in the users list, users with real emails
hidden are always shown in last when sorting alphabetically and at
the top when sorting reverse alphabetically. Also, those users with
real emails hidden, are sorted by name among themselves. As we did
before, we do not allow sorting by email when all emails are hidden.

- There is no change in typeahead behavior at this point. We either
hide the email completely or show the real or fake email based on
user level setting.

- Added code to handle delivery_email events and appropriately add/remove
delivery_email field from person objects.
2023-02-10 17:35:50 -08:00
..
assets compose: Create shared compose banner and use for resolved topic warning. 2022-12-06 15:42:07 -08:00
audio/notification_sounds audio: Remove the copy of zulip.ogg outside notification_sounds. 2022-06-10 12:27:48 -07:00
generated
html templates: Add HTML title element to templates that extend base/portico. 2022-09-19 20:17:17 -07:00
images widgets: Make the todo and poll widgets look consistent / similar. 2023-01-30 11:51:33 -08:00
js settings: Use user-level email_address_visibility setting in UI. 2023-02-10 17:35:50 -08:00
shared typeahead: Add typescript type definitions for typeahead. 2023-02-09 16:51:40 -08:00
styles portico_signin: Fix content wrapping too much. 2023-02-10 15:58:04 -08:00
templates settings: Use user-level email_address_visibility setting in UI. 2023-02-10 17:35:50 -08:00
third typeahead: Fix bug where typeahead showed momentarily on shift + tab. 2023-01-30 14:38:25 -08:00
.gitignore docs: Add missing space in “time zone”. 2022-02-24 14:05:12 -08:00