Tim Abbott
c06d8129a3
custom profile fields: Add placeholder for custom URL.
...
This makes the feature useable for someone who hasn't used it before.
2019-08-28 15:43:35 -07:00
Yashashvi Dave
9e343f1a68
custom fields: Update create-field UI for default external account fields.
2019-08-28 15:39:20 -07:00
Yashashvi Dave
313003900a
custom fields: Move field-type inputs first in create-field form.
...
As other data of field, such as field name, hint etc. are
relative to field type, this commit moves the field type
input to the first order in create field form in org settings.
2019-08-28 15:39:13 -07:00
Wyatt Hoodes
e64b5a2b88
data export: Fix success banner not clearing.
...
There was a bug where the success banner stuck
around even after the export completed. We now
nicely fade and remove the banner upon a successful
population of the export in the table.
Fixes : #13045
2019-08-28 15:23:39 -07:00
Wyatt Hoodes
2a020fa6cc
data export: Fix sort feature regression.
...
02cfb47
removed a couple HTML tags that were
being used to sort the table. We fix this,
but disable filtering exports by marking the
input type as `hidden`. We use this approach as
it seems `list_render` doesn't like an
undefined `opts.filter.element`, which is
what happens if we simply remove the `filter`
key.
2019-08-28 15:23:39 -07:00
Vinit Singh
d09a80260b
lint: Replace local variables named 'msgid' with 'message_id'.
...
Follow up of commit 2a1305d
. Replace all local variables named 'msgid'
with 'message_id' in all JS and HTML files, and adds a linter rule for
it as well.
Resolves #12952 .
2019-08-28 15:19:30 -07:00
Rohitt Vashishtha
8b443a25b8
markdown: Show link href if title is empty.
...
Fixes #6221 .
2019-08-25 21:36:42 -07:00
Kanishk Kakar
e4f0d3d79b
notifications: Add 'none' to unread count options.
2019-08-25 21:29:10 -07:00
Yashashvi Dave
166d4ce630
custom fields: Change field alert notifications style in user settings.
2019-08-25 20:57:27 -07:00
Vaibhav
8f13b6eed1
css: Use SCSS nesting for `#stream_message_recipient_stream`.
2019-08-25 15:09:31 -07:00
Vaibhav
9566f4cf6a
css: Reorder so `#stream_message_recipient_stream` is in same place.
2019-08-25 15:09:31 -07:00
Vaibhav
edb61eb35e
css: Use SCSS nesting for textarea and .compose_table .recipient_box.
2019-08-25 15:09:31 -07:00
Vaibhav
c15c2d3b97
css: Use SCSS nesting for `.dropdown-menu`.
2019-08-25 15:09:31 -07:00
Vaibhav
9652e8affb
css: Use SCSS nesting for `.message-control-button`.
2019-08-25 15:09:31 -07:00
Vaibhav
71efd80dac
css: Reorder compose.scss so `.drafts-link` is with `.compose_table`.
2019-08-25 15:09:31 -07:00
Vaibhav
72e13478cb
css: Nest `#compose-send-button:focus` inside `#send_controls`.
2019-08-25 15:09:31 -07:00
Vaibhav
ffa6e72086
css: Use SCSS nesting for `#send_controls`.
2019-08-25 15:09:31 -07:00
Vaibhav
417284f38a
css: Remove unnecessary `table.compose_table` rule.
...
Since `.compose_table` is a div and not a table.
2019-08-25 15:09:31 -07:00
Vaibhav
52d97e2ca7
css: Use SCSS nesting for `#send_message_form`.
2019-08-25 15:09:31 -07:00
Vaibhav
ca4cdb2b29
css: Remove redundant border-radius rule.
...
It's over-written just below.
2019-08-25 15:09:31 -07:00
Vaibhav
a19c74bd5e
css: Remove redundant rules for `.message_header*`.
...
Since these rules are overwritten we can remove them. For
message_header_colorblock we can remove `!important` from
box-shadow since it was present due to the removed rules.
2019-08-25 15:09:31 -07:00
Vaibhav
1e350cbd09
css: Nest `.message_header_colorblock` inside `.compose_table`.
2019-08-25 15:09:31 -07:00
Vaibhav
d18492c1c7
css: Use SCSS nesting for `.compose_table`.
2019-08-25 15:09:31 -07:00
Vaibhav
9dd5641d90
css: Use SCSS nesting for #compose-buttons media queries.
2019-08-25 15:08:47 -07:00
Vaibhav
8f6ad6bd11
css: Nest `.drafts-link` inside `.new_message_button`.
2019-08-25 15:08:47 -07:00
Vaibhav
870ca49f0d
css: Nest `.alert-draft` inside `.new_message_button`.
2019-08-25 15:08:47 -07:00
Vaibhav
0b4f82df79
css: Nest `.button.small` inside `.new_message_button`.
2019-08-25 15:08:47 -07:00
Vaibhav
ac94e3c7b5
css: Use SCSS nesting for `#compose_buttons`.
2019-08-25 15:08:47 -07:00
Vaibhav
877d198363
css: Nest `new_message_button` inside `#compose_buttons`.
2019-08-25 15:08:47 -07:00
Vaibhav
60fe12bcfe
css: Reorder compose.scss so #compose-controls are in same place.
2019-08-25 15:08:47 -07:00
Mohit Gupta
e5482adec0
search: Add streams:public to search entire history of public streams.
...
Add ability to search entire message history of all public streams at
once. It includes all subscibed, non subscribed public streams messages
and even historical public stream messages sent before user had joined
an organization or stream.
Fixes #8859 .
2019-08-22 13:40:49 -07:00
Rishi Gupta
02cfb47315
exports: Update wording on settings page, /help and /features.
2019-08-22 13:17:03 -07:00
Thomas Ip
cbbfb19692
settings: Remove header_map and lookup section names from DOM.
...
Fixes #13046 .
2019-08-22 13:13:24 -07:00
Thomas Ip
3d7b9a1349
list_render: Fix broken reversing operation.
...
This commit fixes an issue where when you click on the sort button of
a table twice, reversing stops.
The problem is we are checking the truthness of meta.sorting_function
instead of just the function argument sorting_function. This commit
extract the reverse operation out of sort() to unclutter the logic.
2019-08-22 13:13:24 -07:00
Thomas Ip
d86299309a
org settings: Reduce the width occupied by the actions column in tables.
2019-08-22 13:13:24 -07:00
Thomas Ip
39aceb9d93
org settings: Make data exports table sortable.
2019-08-22 13:13:24 -07:00
Thomas Ip
769eaea617
org settings: Fix wrong call to people.my_full_name().
2019-08-22 13:13:24 -07:00
Thomas Ip
658e30484e
org settings: Make invites list sortable.
2019-08-22 13:13:24 -07:00
Thomas Ip
d41d965eed
refactor: Group header and body under table for .progressive-table-wrapper.
2019-08-22 13:13:24 -07:00
Tim Abbott
bfacbfa783
settings: Fix ordering of headings on emoji settings page.
2019-08-21 17:02:17 -07:00
Thomas Ip
808641a603
css: Tweak sortable list styling to make sortable columns more obvious.
2019-08-21 16:50:22 -07:00
Thomas Ip
936366ffaa
org settings: Make emoji list sortable.
2019-08-21 16:50:22 -07:00
Thomas Ip
d851e2dafc
org settings: Use list_render to create emojis table.
2019-08-21 16:50:22 -07:00
Thomas Ip
e309168d11
org settings: Make linkifiers table sortable.
2019-08-21 16:50:22 -07:00
Thomas Ip
8d0bc912f1
org settings: Use list_render to create linkifiers' table.
...
Moved the table to below the "Add linkifier" box for consistency with
the other settings sections. Also added a search box.
2019-08-21 16:50:22 -07:00
Thomas Ip
83ea462a0a
org settings: Make default streams list sortable.
2019-08-21 16:50:22 -07:00
Thomas Ip
29803db802
org settings: Make deactivated users list sortable.
2019-08-21 16:50:22 -07:00
Thomas Ip
2eba496968
org settings: Make active users list sortable.
2019-08-21 16:50:22 -07:00
Thomas Ip
444ce74a8e
org settings: Make bot list sortable.
2019-08-21 16:50:22 -07:00
Tim Abbott
5c49133754
settings: Add a block comment explaining the auto-discard feature.
...
This should help make this code more readable (I found it hard to
understand while reviewing #13030 ).
2019-08-21 16:48:38 -07:00
Pragati Agrawal
ff26858e44
settings_org: Make save widgets fadeout quick if setting toggled back.
...
When a user toggles a setting back to its original value without
saving, we automatically hide the save/discard widget, since
effectively the user has discarded their changes.
The logic has previously incorrectly configured this as returning to
the "saved" state, not the "discarded" state, which caused an
unintentional delay before the widget disappeared (by accidentally
running code that was designed for the save -> saved transition).
While doing this I have fixed a very minor bug that we haven't sent
fadeout_delay argument as 0, but having its value as undefined still
defaults to 0 so there will no impact of this change.
Fixes : #12258 .
2019-08-21 16:42:14 -07:00
Rohitt Vashishtha
da2b7ef137
minor: Move displaced comment.
2019-08-21 16:34:40 -07:00
Pragati Agrawal
5df6065bed
org settings: Deduplicate the template code for logo widget.
2019-08-21 15:49:25 -07:00
Pragati Agrawal
4d0a94a3b1
org settings: Replace usage of ids with classes for delete button.
2019-08-21 15:49:25 -07:00
Pragati Agrawal
c29b197ec7
org settings: Replace usage of ids with classes for upload button.
2019-08-21 15:49:25 -07:00
Pragati Agrawal
67861529ac
org settings: Replace id comparision with `hasClass` function.
...
This is in series of refactoring of code for realm logo settings.
Further, we will remove ids from the template as well and simply use
general classes (.day-settings and .night-settings) to identify to which
theme-mode particular element belongs i.e. day or night as we did in this
change.
2019-08-21 15:49:25 -07:00
Pragati Agrawal
707e012af0
realm_logo: Refactor `realm_logo.rerender` function to be more clean.
...
This creates/extract a function `change_logo_delete_button`.
2019-08-21 15:49:25 -07:00
Pragati Agrawal
34d2616158
org settings: Use `.realm-logo-file-input-error` to identify input errors.
...
This replaces `realm_logo_file_input_error` and
`realm_night_logo_file_input_error` with one class.
2019-08-21 15:49:25 -07:00
Pragati Agrawal
c214d184d0
org settings: Replace logo's file input ids with `.realm-logo-file-input`.
2019-08-21 15:49:25 -07:00
Pragati Agrawal
a6cd0b8788
org settings: Use `realm-logo-img` class as identifier of realm logo image.
...
This replaces previously being used ids, `realm-settings-logo` and
`realm-settings-night-logo` with a common class `realm-logo-img`.
2019-08-21 15:49:25 -07:00
Pragati Agrawal
6ab2dcf4ac
settings_org: Add ids to the section of day and night logos.
...
- These ids will further be used to represent each section concisely and
deduplicating code.
- Also, removed `realm-night-logo-section` class as it was redundant.
2019-08-21 15:49:25 -07:00
Vaibhav
c20f1945d7
css: Nest .help-table inside .modal-body.
2019-08-20 12:00:22 -07:00
Vaibhav
a3c6bd68f0
css: Use SCSS nesting for .hotkeys_table.
2019-08-20 12:00:22 -07:00
Vaibhav
c9b8de9cc1
css: Use SCSS nesting for .informational-overlays.
2019-08-20 12:00:22 -07:00
Vaibhav
ba0f377273
css: Reorder informational_overlays.scss so similar elems in same place.
...
Also some whitespace changes. (No separate commit required).
2019-08-20 12:00:22 -07:00
Alexandra Ciobica
96cdfd676b
css: Add bottom margin to titles in the register pages.
2019-08-18 12:57:25 -07:00
Pragati Agrawal
eedcdf7f3b
settings/styles: Reorder `.settings-section .table-striped` to same place.
2019-08-18 12:44:40 -07:00
Pragati Agrawal
78d6ecfa08
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`.
2019-08-18 12:44:40 -07:00
Pragati Agrawal
aac9a7a4b1
settings/styles: Remove redundant rules for `.table-striped thead th`.
...
This rule is already specified at
`.settings-section .table-striped thead th`.
2019-08-18 12:44:40 -07:00
Pragati Agrawal
a858d51a85
settings/styles: Nest all `.settings-section` rules.
2019-08-18 12:44:40 -07:00
Pragati Agrawal
9acd8caa59
settings/styles: Remove redundant specificity.
2019-08-18 12:44:40 -07:00
Pragati Agrawal
2c846774c0
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.
2019-08-18 12:44:40 -07:00
Pragati Agrawal
94d867cd11
settings/scss: Reorder `.settings-section` to have them in same place.
2019-08-18 12:44:40 -07:00
Pragati Agrawal
b0b1435a18
settings/scss: Remove now redundant `settings-wrapper` class.
...
No class like this is rendered to page.
2019-08-18 12:44:40 -07:00
Pragati Agrawal
378c1a5994
settings/scss: Reorder to have `.settings-section-title` at same place.
2019-08-18 12:44:40 -07:00
Wyatt Hoodes
5ee7553214
popovers: Fix broken user popover behavior.
...
If we call `popovers.hide_all` with a smaller browser
window, this breaks the functionality that the
conditional is attempting to handle. We instead use
`hide_all_except_sidebars` to prevent the user list
from being closed.
If the display setting to show the user list in the
left sidebar is enabled, the behavior is even worse.
We add a conditional to maintain the streamlist
sidebar when clicking the chevron to show and hide
the popover here as well.
2019-08-18 12:12:52 -07:00
Priyank Patel
0e337c015a
message_fetch: Use stream ID for stream operand.
...
Fixes part of #9474
2019-08-17 11:20:51 -07:00
Priyank Patel
1f8f8867cd
message_fetch: Rename handle_user_ids_supported_operators.
...
This renames handle_user_ids_supported_operators to
handle_operators_supporting_id_based_api.
2019-08-17 11:10:00 -07:00
Priyank Patel
1edde4a989
Rename user_id(s)_supported_operators -> operators_supporting_id(s).
2019-08-17 11:10:00 -07:00
Pragati Agrawal
13d5a21430
settings/scss: Nest many rules inside `#user-groups`.
2019-08-16 10:47:33 -07:00
Pragati Agrawal
44d6123c26
settings/scss: Nest `.user-group` inside `#user-groups`.
2019-08-16 10:46:12 -07:00
Pragati Agrawal
df31238fb7
settings/scss: Make `#user-groups .user-group` rules at same place.
2019-08-16 10:46:12 -07:00
Vaibhav
262e5c6400
css: Use SCSS media queries nesting in drafts.scss.
2019-08-15 22:39:39 -07:00
Vaibhav
2c4f4b0e38
css: Nest .draft-controls inside .draft-info-box.
2019-08-15 22:39:39 -07:00
Vaibhav
ab30295a39
css: Nest .draft-info-box inside .draft-row.
2019-08-15 22:39:39 -07:00
Vaibhav
f94f4ac48e
css: Nest .drafts-list inside .drafts-container.
2019-08-15 22:39:39 -07:00
Vaibhav
4e7f3eba85
css: Nest .exit-sign inside .exit.
2019-08-15 22:39:39 -07:00
Vaibhav
7ed9d10016
css: Nest .exit and .exit-sign inside .drafts-header.
2019-08-15 22:39:39 -07:00
Vaibhav
d20204826d
css: Nest .drafts-header inside .drafts-container.
2019-08-15 22:39:39 -07:00
Vaibhav
591ebb22bf
css: Use SCSS nesting for .draft- row, info-box and controls.
2019-08-15 22:39:39 -07:00
Vaibhav
585b6680ae
css: Reorder drafts.scss so .draft-row are together.
2019-08-15 22:39:39 -07:00
Vaibhav
067c9040e7
css: Use SCSS nesting for .drafts- container, header and list.
2019-08-15 22:39:39 -07:00
Vaibhav
b940406877
css: Reorder drafts.scss so .drafts-container are in same place.
2019-08-15 22:39:39 -07:00
Pragati Agrawal
693df05ca7
settings_users: Refactor and extract function for last active.
...
This just done to improves code readability and removes some code too.
2019-08-15 16:54:28 -07:00
Pragati Agrawal
c0c11fe226
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.
2019-08-15 16:54:28 -07:00
Pragati Agrawal
a3ef8856a8
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.
2019-08-15 16:54:28 -07:00
Pragati Agrawal
ba5564fec7
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.
2019-08-15 16:54:28 -07:00
Pragati Agrawal
6b5e98d554
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 .
2019-08-15 16:51:19 -07:00
Alexandra Ciobica
f7e88fb2c1
css: Add color variables to integrations.scss.
2019-08-15 16:12:15 -07:00
Alexandra Ciobica
43d11285fa
css: Add background to integrations categories.
2019-08-15 16:12:15 -07:00