- Commit Link: #389c56e88d67d15cf483f33ed1d48cd0ce44505f
settings_display: Refactor settings_display.
This commit refactors settings_display in order to make code more precise and clear.
- Commit Link: #a838de63d80eb1a55ffa2079a1dfa86c6345632c
settings: Add option for fixed/fluid width.
This adds a new option for "fluid width" under Display settings
section of
SETTINGS/DISPLAY SETTINGS tab.
Fixes: #11844.
- Commit Link: #c634d22de95664abbf8882d626649ffc8062167f
org settings: Add sort_obj_by_key
function to sort objects.
Actually, this is a preliminary commit which adds a general sort_obj_by_key
function to sort objects according to keys.
In this commit, we have refactored populate_auth_methods
function by
extracting the logic for the desired sort_obj_by_key
and used that to sort
auth_methods
, but the main motive of this function is to sort
realm_authentication_methods
in check_property_changed
to sort current_val
in the upcoming commit.
- Commit Link: #4df971c3c25fb62781cc3fe895bb50b9adea0a63
org settings: Add save/discard widget for realm authentication methods.
Along with this, we refactored settings_org.populate_auth_methods to use HTML function after rendering all auth methods rows rather than appending each row individually, which actually is a good practice.
Also in this commit, to compare current_val
and changed_val
in
check_property_changed
function of the property
realm_authentication_methods
, which are objects, and we found here
https://stackoverflow.com/a/1144249 that there is no easy way to do so. So I
followed this approach,
JSON.stringify(obj1) === JSON.stringify(obj2);
but before converting them to string we want the same order of keys, so we used
sort_object_by_key
to sort current_val
by keys and
get_auth_method_table_data
always return changed_val
having keys sorted.
Since these refactor were closely related we kept them as a single commit here.
Fixes: #11954.
- Commit Link: #cdc50090b630b5453323c59895e263719341a968
popovers: Hide email under hidden email-address-visibility cases.
In email hidden case (that is when email_address_visibilty
is set to
everyone), for "non admins", this commit hides emails from:
-
user popover
-
custom profile popover In email hidden case, for admins, email is shown in both user popovers and custom profile popovers.
-
Commit Link: #8eac7394f86c8d981d995dada6e4c1779fb77f68
typeahead helper: Hide email under hidden email-address-visibility cases.
In email hidden case (that is when email_address_visibilty
is set to
everyone), for "non admins", this commit hides emails from:
-
compose box user typeahead.
-
PM user typeahead In email hidden case, for admins, email is shown in user typeaheads.
-
Commit Link: #69ec96b63e593f03b2ec52c5b7af31af75a165e4
search suggestion: Hide email under hidden email-address-visibility cases.
This commit hides the email address from the search bar for the email hidden cases.
- Commit Link: #6105b05f5092dfa5579876a44e6b490c36015aa1
css: Remove redundant #organization
from zulip.scss
.
This has been dead code since 1143ed721960042b01d1024dc453bbab0ccddb99.
- Commit Link: #5af8b980fec7dc9f03cf3ddc96d0caf649358b9f
css: Remove redundant #settings
from zulip.scss
.
Since settings
element no longer exists, hence removing it from zulip.scss.
- Commit Link: #747e79709237cf521a35575cf4ed8b0163ce681a
stream settings: Disable Mobile notifications if push bouncer not set up.
This commit disables "Mobile notifications" if push_notifications
are not
enabled. It also adds a tooltip explaining why this is disabled.
Fixes #12208
- Commit Link: #45677990fd5f94ee548252162771bbde04105d59
css: Remove redundant #organization
from settings.scss
.
This commit removes the redundant #organization
from settings.scss as
organization id no longer exists.
- Commit Link: #b30ae0b7f5f18b8e0f308dfe0a7662a59bff30ff
css: Remove redundant #settings
from settings.scss
.
This commit removes settings
element from setiings.scss since now no such
element exists.
- Commit Link: #2e97b03b2b600f4c0650a35efe0f0fc8fcfffa35
css: Use SCSS nesting in settings.scss
for .new-style
.
- Commit Link: #15ff8fb73fcb34c9fc7b56e47d0bd7ae4dbfd4c9
settings: Fix sort order display settings.
This fixes the mis-alphabetized fluid_layout_width
at few places in the
codebase, along with that it also fixes sorting order of property_types
dictionary in models.py and few model fields of UserProfile
model class.
- Commit Link: #d200d662d7acfe353138031f8dac71d3309980e0
org_settings: Move get_subsection_property_elements
from build_page
.
This moves get_subsection_property_elements
out from the local context of
settings_org.build_page
function, as it was unnecessarily initialized at the
time of page setup.
- Commit Link: #81492362d7cb94c4470c346ba9c9e960714100c2
org_settings: Refactor populate_data_for_request
.
This is a preliminary commit which refactors populate_data_for_request
function, now this function traverse on all "property elements" of a given
subsection, but get the data only of those properties which have
setting-widget-type
data attribute. Therefore, it doesn't change the
functionality of this function and overall changes don't make any difference. In
upcoming commits, we're going to use input_elem
as an argument to
check_property_changed
function, so that only those elements whose values are
changed are sent to the backend.
- Commit Link: #bdbf63ed271ff9558611977214dd497ffbe6abfd
org_settings: Move populate_data_for_request
down.
This is preliminary commit which moves populate_data_for_request
function down
after the definition of all functions with which it will interact in the future.
- Commit Link: #e42abc2396eeba43dabab200d984308658de8569
org_settings: Optimize data collected by populate_data_for_request
.
With the help of check_property_changed
function now we collect the data whose
values are changed from the current one. Currently this optimizes only for those
elements whose values are collected by populate_data_for_request
function i.e.
it doesn't optimize data collected by get_complete_data_for_subsection
.
- Commit Link: #ac2f1cea9c4c10edba764859820271ef584f3a55
settings_org: Enhance show_emails
for admins only case too.
This adds on the is_admin
clause to show_emails.
- Commit Link: #5b324e50cadfe5b4c6906d62a841bc6ecaa38782
users: Apply email_address_visibility policy on the users list.
In the emails-hidden case, for non-admins, we should remove the email field from "Users" list in the organization settings page.
Tweaked by tabbott to correctly handle the bots and deactivated users pages.
- Commit Link: #6b5e98d55442739a3ad2788154f8e9c2bfc741e2
settings_panel_menu: Fix the switching behavior for hidden section panels.
For organization settings page there are few sections' panels which are not visible (unless you click on 'show more') but when we use up-down arrows to navigate between sections, sections of hidden panels also get visible which leads to confusion.
Fixes: #13008.
- Commit Link: #ba5564fec79f9b6ff7b19d952b2e7c171452a591
settings_users: Remove if
condition for showing current user time stamp.
It seems presence.presence_info[item.user_id]
works fine for the current user
as well and there is no need to hardcode extra condition for the current user.
- Commit Link: #a3ef8856a82dd83036a2761cf543fb28e8cbac7f
settings_users: Add last_active to active_users for "users" table.
This is a preliminary step for refactoring the logic for rendering "last_active" in the users table and later we can use this for sorting the column.
- Commit Link: #c0c11fe2261f0ecdad31dacd2247ede5fd2fd7f2
settings_users: Refactor logic for "last active" column in users table.
This uses "last_active" attribute of user
(item
) object and makes code much
more readable.
- Commit Link: #693df05ca7c8072c2a894aae51e2cb5157cf287e
settings_users: Refactor and extract function for last active.
This just done to improves code readability and removes some code too.
- Commit Link: #df31238fb73b21c2b334dd61c4187773e13c6a18
settings/scss: Make #user-groups .user-group
rules at same place.
- Commit Link: #44d6123c269c6eb25dee5870d819f09c504f4187
settings/scss: Nest .user-group
inside #user-groups
.
- Commit Link: #13d5a214301ab502ce65aa709d1afd90f2c7f8b4
settings/scss: Nest many rules inside #user-groups
.
- Commit Link: #378c1a5994fa77e58b9b422824eb57afcbdea67b
settings/scss: Reorder to have .settings-section-title
at same place.
- Commit Link: #b0b1435a1879e38660c898b496e3147b5e8ff147
settings/scss: Remove now redundant settings-wrapper
class.
No class like this is rendered to page.
- Commit Link: #94d867cd1130e6dcc5391d181a5f967ee8122039
settings/scss: Reorder .settings-section
to have them in same place.
- Commit Link: #2c846774c0d5eeed9a361074493c982403eb7c53
settings/styles: Reorder styles in more sensible order.
Rather just putting rules in any order it makes more sense to have an order of basic to more advanced/specific CSS.
- Commit Link: #9acd8caa59a38eb0203711aedd8fcbe4303cefb5
settings/styles: Remove redundant specificity.
- Commit Link: #a858d51a85858dafa4fc353d4b2c7ea2bc075d08
settings/styles: Nest all .settings-section
rules.
- Commit Link: #aac9a7a4b1598d8c87de05dd22268cb1a6cf2faf
settings/styles: Remove redundant rules for .table-striped thead th
.
This rule is already specified at .settings-section .table-striped thead th
.
- Commit Link: #78d6ecfa087e8456c4c7d66a0d8abb2548d25b1d
settings/styles: Use .settings-section
for settings .table-striped
.
We have used .settings-section .table-striped
for other rules to refer the
same elements which are referred by #settings_page .table-striped
.
- Commit Link: #eedcdf7f3ba6f1b4734954b98a307ed93140ff1d
settings/styles: Reorder .settings-section .table-striped
to same place.