Steve Howell
7b2f5ccabc
Rename markdown-help to message-formatting.
...
This just makes the id match the name of the
menu item.
2018-08-31 11:51:22 -07:00
Pragati Agrawal
e1ed0ee8e0
org settings: Disable topic editing checkbox when message editing is off.
...
This checkbox has no effect in this case, so it makes sense to display
it as such.
Fixes : #10327 .
2018-08-31 11:49:54 -07:00
Yashashvi Dave
e398b25429
user popover: Remove repetitive "Last seen" text from all last seens.
...
This text was unnecessary.
Fixes part of #10303 .
2018-08-28 16:04:52 -07:00
Marco Burstein
6f57cd4d23
upload: Use a placeholder when uploading.
...
Use the placeholder `[uploading file]()` when uploading before the
upload has completed. This behavior prevents an image from being
improperly placed when typing after starting an upload. This is based
on GitHub's handling of image uploading.
Also, add tests to the `upload` Node tests and update existing tests to
account for the new behavior.
Fix #10305 .
2018-08-26 23:33:24 -07:00
Marco Burstein
fa22cf18f6
compose_ui: Create the `compose_ui.replace_syntax` function.
...
`replace_syntax` will replace text inside of a compose textbox. Also,
add tests to the `compose_ui` Node tests for this function.
2018-08-26 23:33:24 -07:00
Vishnu Ks
62b93d551a
signup: Fix broken resend email link in realm creation flow.
...
Also use name for selecting form in casper tests
as form with action=new is present in both /new
and /accounts/new/send_confirm/ which breaks
test in CircleCI as
waitWhileVisible('form[action^="/new/"]) never stops
waiting.
2018-08-26 22:54:05 -07:00
Vishnu Ks
d2e4417a72
urls: Separate endpoint for signup and new realm email confirm.
...
This is preparation for the next commit.
2018-08-26 22:53:57 -07:00
Steve Howell
c8fbc0706f
tests: Test misc things with input pills.
2018-08-26 22:32:08 -07:00
Steve Howell
53fee3606c
tests: Test arrowing between input pills.
2018-08-26 22:32:08 -07:00
Steve Howell
a3b573a07c
tests: Test pasting into pill input area.
2018-08-26 22:32:08 -07:00
Steve Howell
892085723f
tests: Test copying text from input pills.
2018-08-26 22:32:08 -07:00
Steve Howell
1600529a8b
tests: Clean up duplicate setup for input_pill.
...
We just set pill_input.before to a noop for all
of our tests in set_up, and callers can always
override it with more specific implementations.
2018-08-26 22:32:08 -07:00
Steve Howell
3745d44bed
node tests: Add test for input pill exit button.
2018-08-26 22:32:08 -07:00
Harshit Bansal
9bd56d0ce4
build_emoji: Change emoji sprite sheets to use hyphens in names.
...
Use of hyphens is more consistent with our other emoji infra names.
2018-08-26 22:16:23 -07:00
Steve Howell
37acb3e2cb
tests: Test left arrow for pill input.
2018-08-25 06:51:15 -04:00
Steve Howell
c9fab959b9
tests: Test comma behavior for input pills.
2018-08-25 06:51:15 -04:00
Steve Howell
383567aa73
tests: Test enter-key behavior for input pills.
2018-08-24 10:00:04 -07:00
Steve Howell
572990b7f4
tests: Add set_up() helper for input_pill tests.
2018-08-24 10:00:04 -07:00
Steve Howell
9e0c8e50d1
tests: Cover removePill function for input_pill.
...
We simulate hitting backspace while focused on
particular pill.
2018-08-24 10:00:04 -07:00
Steve Howell
bee592b44e
node tests: Bring list_cursor to 100% coverage.
...
We had some indirect coverage of this already, so
this mostly focuses on error cases and corner
cases.
2018-08-24 10:00:04 -07:00
Shubham Dhama
c8a8dbb86a
org settings: Remove redundant lines for disabling non-existent checkbox.
...
In commit c293bb82c4
we changed
id_realm_invite_by_admins_only and realm_invite_required checkboxes to a
single dropdown so these lines are redundant now.
2018-08-23 11:52:59 -07:00
Joshua Pan
eca4266cde
drafts: Don't save drafts with 2 or less characters.
...
Fixes #10357 .
2018-08-22 16:52:18 -07:00
Joshua Pan
2aeabf24a6
frontend: Create data structure for starred messages.
2018-08-21 13:42:23 -07:00
Yashashvi Dave
6622f995b0
user profile popover: Rename user last seen.
...
Rename "Last seen just now" to "Just now",
and "Unknown" to "More than 2 weeks ago"
in user profile popover.
2018-08-21 11:42:59 -07:00
Yashashvi Dave
1e27cb18eb
user profile popover: Hide popover when user clicks on edit-profile-btn.
2018-08-21 11:42:59 -07:00
Yashashvi Dave
03f5422ce8
custom profile field: Minor tweaks in field-table in admin settings.
...
This commit add minor changes in profile field table in
admin settings:
- Hide table header if there is no field
- Fix width of table column
2018-08-21 11:42:59 -07:00
Yashashvi Dave
463fb622b6
custom profile field: Remove all static use of field-type name or id.
...
This commit removes all static use of field-type's name or id in
frontend.
2018-08-21 11:37:51 -07:00
Yashashvi Dave
6e65235a6d
zerver/lib/events.py: Add FIELD_TYPE_CHOICES_DICT to page_params.
...
This commit add FIELD_TYPE_CHOICES_DICT to page_params and replace
FIELD_TYPE_CHOICES.
FIELD_TYPE_CHOICES_DICT includes all field types with keyword, id
and display name. Using this field-type-dict, we can access field
type information by it's keyword, and remove all static use of
field-type'a name or id in frontend.
This commit also modifies functions in js where this page_params
field-types is used.
2018-08-21 11:37:51 -07:00
Joshua Pan
793ec9e266
tests: Test all update_display_settings events.
2018-08-19 14:51:31 -04:00
Joshua Pan
e0426e42cd
tests: Test all realm update dispatch events.
2018-08-19 14:51:31 -04:00
Joshua Pan
ccd438a7ee
tests: Test minor dispatch events.
...
These events just call another function. This covers
attachments, invites_changed, and submessage.
2018-08-19 14:51:31 -04:00
Joshua Pan
212db4d155
tests: Use zjquery for server_events_dispatch tests.
2018-08-19 14:51:31 -04:00
Joshua Pan
e3504e88a7
tests: Test update realm bot owner event.
2018-08-19 14:51:31 -04:00
Joshua Pan
402e34be3b
tests: Test blueslip for subscription events.
2018-08-19 14:51:31 -04:00
Joshua Pan
76ffd967c5
tests: Test typing notifs event from oneself.
2018-08-19 14:51:31 -04:00
Joshua Pan
875383e7c3
tests: Test delete stream event.
2018-08-19 14:51:31 -04:00
Joshua Pan
e4a34c3512
tests: Test dispatching stream create event.
2018-08-19 14:51:31 -04:00
Joshua Pan
6b61e54c08
tests: Rename stream test to stream__update test.
2018-08-19 14:51:31 -04:00
Harshit Bansal
2c6f57480d
node_tests: Fix node tests for recent changes.
...
Fixes node tests broken in:
7be7561c68
(lost complete coverage)
3e5e7a0b19
(broke node tests)
2018-08-14 22:38:28 -07:00
Harshit Bansal
44694653ae
emoji: Remove `display_url` from the context of `admin_emoji_list`.
...
This attribute seem to be artifact of some refactoring that we did
but forgot to remove it. Just a minor cleanup.
2018-08-14 12:07:56 -07:00
Shayan Toqraee
a4b14b8526
compose.js: Move set rtl logic to keyup event.
...
This fixes an issue where the ltr/rtl translation lagged one character
behind as a user typed.
2018-08-14 11:41:53 -07:00
Shayan Toqraee
56b031733a
rtl.js: Fix support for supplementary planes of unicode characters (>= U+10000).
2018-08-14 11:39:29 -07:00
Yashashvi Dave
3c9a2a6d53
custom profile field: Remove logic of choice-field-delete-btn.
...
Hide `delete-btn` of first choice in create-new-custom-field and
edit-choice-type-field form, so user can not delete all choices
and have to submit at least one choice.
This commit remove this logic of choice-field-delete-btn from
both settings.
This is preparatory commit of adding new logic in `delete-btn`.
2018-08-14 10:17:57 -07:00
Cynthia Lin
300c4c496f
user groups: Display error on user group name edit failure.
...
Fixes #10234 .
2018-08-13 16:13:49 -07:00
Cynthia Lin
736388b4df
user groups: Improve styling of user groups in admin view.
2018-08-13 16:13:49 -07:00
Tim Abbott
62bee26ea7
Revert "hotkey: Add hotkey to narrow to starred messages."
...
This reverts commit 144d21494e
.
2018-08-13 15:05:36 -07:00
Joshua Pan
144d21494e
hotkey: Add hotkey to narrow to starred messages.
...
Fixes #9684 .
2018-08-13 11:39:32 -07:00
Shubham Padia
e21e8c1bae
compose: Hide subscribe button and change text for waiting period users.
...
Fixes #10124 .
Users in the waiting period category cannot subscribe other users to
a stream. When a user tries to mention another unsubscribed user, a
warning message appears with a subscribe button on it to subscribe
the other user.
This commit removes the subscribe button and changes the warning text
for users in the waiting period category.
2018-08-13 10:18:35 -07:00
Shubham Padia
3f019cafb2
compose: Improve error handling when subscribing other users to a stream.
...
Instead of displaying a fixed error message inside the yellow bar itself,
now the yellow bar disappears on error and a red compose_error is shown.
The error message is the one returned from the server.
2018-08-13 10:18:35 -07:00
Marco Burstein
6f14f4f047
compose: Update the `New topic` button to `New stream message` in PMs.
...
If a user is narrowed by `is:private`, `pm-with`, or `group-pm-with`,
change the `New topic` button to say `New stream message` instead for
added clarity.
Also, add to the Casper and Node tests for this behavior.
Fix #9072 .
2018-08-09 08:55:01 -07:00