From 409352f38d7712917c326d9dc3465a4ed43a661d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Tue, 18 Dec 2018 10:50:34 +0100 Subject: [PATCH 1/4] MOBILE-2795 dashboard: Change sort by menus on dashboard --- .../components/myoverview/addon-block-myoverview.html | 4 ++-- .../timeline/components/timeline/addon-block-timeline.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/addon/block/myoverview/components/myoverview/addon-block-myoverview.html b/src/addon/block/myoverview/components/myoverview/addon-block-myoverview.html index da99acca7..2834171de 100644 --- a/src/addon/block/myoverview/components/myoverview/addon-block-myoverview.html +++ b/src/addon/block/myoverview/components/myoverview/addon-block-myoverview.html @@ -10,8 +10,8 @@ - - + + diff --git a/src/addon/block/timeline/components/timeline/addon-block-timeline.html b/src/addon/block/timeline/components/timeline/addon-block-timeline.html index fe523db49..cee03f5eb 100644 --- a/src/addon/block/timeline/components/timeline/addon-block-timeline.html +++ b/src/addon/block/timeline/components/timeline/addon-block-timeline.html @@ -1,8 +1,8 @@

{{ 'addon.block_timeline.pluginname' | translate }}

- - + +
From 4c4995f96c1739fc7bd36b5abfe17690b2b84e68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Tue, 18 Dec 2018 11:10:06 +0100 Subject: [PATCH 2/4] MOBILE-2795 messages: Minor string changes to drawer --- scripts/langindex.json | 8 +++++--- .../discussions/addon-messages-discussions.html | 2 +- src/addon/messages/lang/en.json | 10 ++++++---- src/addon/messages/pages/discussion/discussion.html | 2 +- .../pages/group-conversations/group-conversations.html | 8 ++++---- src/assets/lang/en.json | 10 ++++++---- src/core/login/pages/reconnect/reconnect.scss | 4 ++-- 7 files changed, 25 insertions(+), 19 deletions(-) diff --git a/scripts/langindex.json b/scripts/langindex.json index b252d570f..a1ec8ec87 100644 --- a/scripts/langindex.json +++ b/scripts/langindex.json @@ -175,7 +175,8 @@ "addon.messages.errorwhileretrievingmessages": "local_moodlemobileapp", "addon.messages.errorwhileretrievingusers": "local_moodlemobileapp", "addon.messages.groupinfo": "message", - "addon.messages.groupmessages": "message", + "addon.messages.groupconversations": "message", + "addon.messages.individualconversations": "message", "addon.messages.info": "message", "addon.messages.isnotinyourcontacts": "message", "addon.messages.message": "message", @@ -188,8 +189,9 @@ "addon.messages.noncontacts": "message", "addon.messages.nocontactsgetstarted": "message", "addon.messages.nofavourites": "message", - "addon.messages.nogroupmessages": "message", - "addon.messages.nomessages": "message", + "addon.messages.nogroupconversations": "message", + "addon.messages.noindividualconversations": "message", + "addon.messages.nomessagesfound": "message", "addon.messages.nousersfound": "local_moodlemobileapp", "addon.messages.numparticipants": "message", "addon.messages.removecontact": "message", diff --git a/src/addon/messages/components/discussions/addon-messages-discussions.html b/src/addon/messages/components/discussions/addon-messages-discussions.html index 02c90d858..dfe099c1a 100644 --- a/src/addon/messages/components/discussions/addon-messages-discussions.html +++ b/src/addon/messages/components/discussions/addon-messages-discussions.html @@ -33,7 +33,7 @@ - + diff --git a/src/addon/messages/lang/en.json b/src/addon/messages/lang/en.json index 571118cf7..d7a68dddb 100644 --- a/src/addon/messages/lang/en.json +++ b/src/addon/messages/lang/en.json @@ -27,7 +27,8 @@ "errorwhileretrievingmessages": "Error while retrieving messages from the server.", "errorwhileretrievingusers": "Error while retrieving users from the server.", "groupinfo": "Group info", - "groupmessages": "Group messages", + "groupconversations": "Group", + "individualconversations": "Private", "info": "Info", "isnotinyourcontacts": "{{$a}} is not in your contacts", "messagenotsent": "The message was not sent. Please try again later.", @@ -39,9 +40,10 @@ "nocontactrequests": "No contact requests", "noncontacts": "Non-contacts", "nocontactsgetstarted": "Try searching for someone to add them as a contact", - "nofavourites": "No favourites", - "nogroupmessages": "No group messages", - "nomessages": "No messages", + "nofavourites": "No starred conversations", + "nogroupconversations": "No group conversations", + "noindividualconversations": "No private conversations", + "nomessagesfound": "No messages were found", "nousersfound": "No users found", "numparticipants": "{{$a}} participants", "removecontact": "Remove contact", diff --git a/src/addon/messages/pages/discussion/discussion.html b/src/addon/messages/pages/discussion/discussion.html index 0c904ea55..cfa4dc7a0 100644 --- a/src/addon/messages/pages/discussion/discussion.html +++ b/src/addon/messages/pages/discussion/discussion.html @@ -58,7 +58,7 @@ - +
diff --git a/src/addon/messages/pages/group-conversations/group-conversations.html b/src/addon/messages/pages/group-conversations/group-conversations.html index a9d9c71a1..a6a5df814 100644 --- a/src/addon/messages/pages/group-conversations/group-conversations.html +++ b/src/addon/messages/pages/group-conversations/group-conversations.html @@ -46,7 +46,7 @@ - {{ 'addon.messages.groupmessages' | translate }} ({{ group.count }}) + {{ 'addon.messages.groupconversations' | translate }} ({{ group.count }}) {{ group.unread }}
@@ -54,14 +54,14 @@ -

{{ 'addon.messages.nogroupmessages' | translate }}

+

{{ 'addon.messages.nogroupconversations' | translate }}

- {{ 'addon.messages.messages' | translate }} ({{ individual.count }}) + {{ 'addon.messages.individualconversations' | translate }} ({{ individual.count }}) {{ individual.unread }}
@@ -69,7 +69,7 @@ -

{{ 'addon.messages.nomessages' | translate }}

+

{{ 'addon.messages.noindividualconversations' | translate }}

diff --git a/src/assets/lang/en.json b/src/assets/lang/en.json index 880a6d7fa..6c3410e73 100644 --- a/src/assets/lang/en.json +++ b/src/assets/lang/en.json @@ -174,8 +174,9 @@ "addon.messages.errorwhileretrievingdiscussions": "Error while retrieving discussions from the server.", "addon.messages.errorwhileretrievingmessages": "Error while retrieving messages from the server.", "addon.messages.errorwhileretrievingusers": "Error while retrieving users from the server.", + "addon.messages.groupconversations": "Group", "addon.messages.groupinfo": "Group info", - "addon.messages.groupmessages": "Group messages", + "addon.messages.individualconversations": "Private", "addon.messages.info": "Info", "addon.messages.isnotinyourcontacts": "{{$a}} is not in your contacts", "addon.messages.message": "Message", @@ -186,9 +187,10 @@ "addon.messages.newmessages": "New messages", "addon.messages.nocontactrequests": "No contact requests", "addon.messages.nocontactsgetstarted": "Try searching for someone to add them as a contact", - "addon.messages.nofavourites": "No favourites", - "addon.messages.nogroupmessages": "No group messages", - "addon.messages.nomessages": "No messages", + "addon.messages.nofavourites": "No starred conversations", + "addon.messages.nogroupconversations": "No group conversations", + "addon.messages.noindividualconversations": "No private conversations", + "addon.messages.nomessagesfound": "No messages were found", "addon.messages.noncontacts": "Non-contacts", "addon.messages.nousersfound": "No users found", "addon.messages.numparticipants": "{{$a}} participants", diff --git a/src/core/login/pages/reconnect/reconnect.scss b/src/core/login/pages/reconnect/reconnect.scss index ae0e7ea16..bb77e8287 100644 --- a/src/core/login/pages/reconnect/reconnect.scss +++ b/src/core/login/pages/reconnect/reconnect.scss @@ -20,12 +20,12 @@ ion-app.app-root page-core-login-reconnect { color: $core-login-box-text-color; .item { - background: $core-login-item-background-color; + background-color: $core-login-item-background-color; @include padding-horizontal(0); } .item-inner { - background: $core-login-item-inner-background-color; + background-color: $core-login-item-inner-background-color; @include padding-horizontal(0); } } From 0683196ec38e83d14e292c13afc81320c9112f2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Tue, 18 Dec 2018 12:08:03 +0100 Subject: [PATCH 3/4] MOBILE-2795 ux: Fix some styles --- .../components/myoverview/addon-block-myoverview.html | 2 +- src/app/app.scss | 1 - src/components/search-box/search-box.scss | 9 ++++++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/addon/block/myoverview/components/myoverview/addon-block-myoverview.html b/src/addon/block/myoverview/components/myoverview/addon-block-myoverview.html index 2834171de..ce5b034bc 100644 --- a/src/addon/block/myoverview/components/myoverview/addon-block-myoverview.html +++ b/src/addon/block/myoverview/components/myoverview/addon-block-myoverview.html @@ -17,7 +17,7 @@
- + {{ 'addon.block_myoverview.all' | translate }}{{ 'addon.block_myoverview.inprogress' | translate }} {{ 'addon.block_myoverview.future' | translate }} diff --git a/src/app/app.scss b/src/app/app.scss index 19d818cdf..d36bc1954 100644 --- a/src/app/app.scss +++ b/src/app/app.scss @@ -384,7 +384,6 @@ ion-app.app-root { &.select-wp, &.button-wp { background: $card-wp-background-color; - box-shadow: $card-wp-box-shadow; } .select-text { diff --git a/src/components/search-box/search-box.scss b/src/components/search-box/search-box.scss index 28e718b90..1e80c19f2 100644 --- a/src/components/search-box/search-box.scss +++ b/src/components/search-box/search-box.scss @@ -3,12 +3,19 @@ ion-app.app-root core-search-box { margin: 0; padding: ($content-padding / 2) $content-padding; } + .item.item-input.item-block .item-inner, .item.item-input.item-block .item-inner ion-input { - border-bottom: 0; + border-bottom: 0 !important; + box-shadow: none; } .item-inner { padding-right: 0 !important; padding-left: 0 !important; } + + .item-wp .text-input { + border: 0; + margin: 0; + } } From 335bfcfbcd4ef529a5cee074efc6b850bb24c77e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Tue, 18 Dec 2018 12:48:24 +0100 Subject: [PATCH 4/4] MOBILE-2795 lang: Update langindex --- scripts/langindex.json | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/scripts/langindex.json b/scripts/langindex.json index a1ec8ec87..2e339fcb0 100644 --- a/scripts/langindex.json +++ b/scripts/langindex.json @@ -135,10 +135,10 @@ "addon.coursecompletion.manualselfcompletion": "completion", "addon.coursecompletion.notyetstarted": "completion", "addon.coursecompletion.pending": "completion", - "addon.coursecompletion.required": "local_moodlemobileapp", + "addon.coursecompletion.required": "moodle", "addon.coursecompletion.requiredcriteria": "completion", "addon.coursecompletion.requirement": "block_completionstatus", - "addon.coursecompletion.status": "local_moodlemobileapp", + "addon.coursecompletion.status": "moodle", "addon.coursecompletion.viewcoursereport": "completion", "addon.files.couldnotloadfiles": "local_moodlemobileapp", "addon.files.emptyfilelist": "local_moodlemobileapp", @@ -166,7 +166,7 @@ "addon.messages.contacts": "message", "addon.messages.decline": "message", "addon.messages.deleteallconfirm": "message", - "addon.messages.deleteconversationq": "message", + "addon.messages.deleteconversation": "message", "addon.messages.deletemessage": "local_moodlemobileapp", "addon.messages.deletemessageconfirmation": "local_moodlemobileapp", "addon.messages.errordeletemessage": "local_moodlemobileapp", @@ -174,8 +174,8 @@ "addon.messages.errorwhileretrievingdiscussions": "local_moodlemobileapp", "addon.messages.errorwhileretrievingmessages": "local_moodlemobileapp", "addon.messages.errorwhileretrievingusers": "local_moodlemobileapp", - "addon.messages.groupinfo": "message", "addon.messages.groupconversations": "message", + "addon.messages.groupinfo": "message", "addon.messages.individualconversations": "message", "addon.messages.info": "message", "addon.messages.isnotinyourcontacts": "message", @@ -186,26 +186,26 @@ "addon.messages.newmessage": "message", "addon.messages.newmessages": "local_moodlemobileapp", "addon.messages.nocontactrequests": "message", - "addon.messages.noncontacts": "message", "addon.messages.nocontactsgetstarted": "message", "addon.messages.nofavourites": "message", "addon.messages.nogroupconversations": "message", "addon.messages.noindividualconversations": "message", "addon.messages.nomessagesfound": "message", + "addon.messages.noncontacts": "message", "addon.messages.nousersfound": "local_moodlemobileapp", "addon.messages.numparticipants": "message", "addon.messages.removecontact": "message", "addon.messages.removecontactconfirm": "message", - "addon.messages.removefromyourcontacts": "message", "addon.messages.removefromfavourites": "message", + "addon.messages.removefromyourcontacts": "message", "addon.messages.requests": "moodle", "addon.messages.requirecontacttomessage": "message", "addon.messages.searchcombined": "message", "addon.messages.searchnocontactsfound": "message", "addon.messages.searchnomessagesfound": "message", "addon.messages.searchnononcontactsfound": "message", - "addon.messages.showdeletemessages": "local_moodlemobileapp", "addon.messages.sendcontactrequest": "message", + "addon.messages.showdeletemessages": "local_moodlemobileapp", "addon.messages.type_blocked": "local_moodlemobileapp", "addon.messages.type_offline": "local_moodlemobileapp", "addon.messages.type_online": "local_moodlemobileapp", @@ -220,6 +220,7 @@ "addon.messages.wouldliketocontactyou": "message", "addon.messages.you": "message", "addon.messages.youhaveblockeduser": "message", + "addon.messages.yourcontactrequestpending": "message", "addon.mod_assign.acceptsubmissionstatement": "local_moodlemobileapp", "addon.mod_assign.addattempt": "assign", "addon.mod_assign.addnewattempt": "assign", @@ -1418,6 +1419,7 @@ "core.login.invalidvaluemin": "local_moodlemobileapp", "core.login.legacymoodleversion": "local_moodlemobileapp", "core.login.legacymoodleversiondesktop": "local_moodlemobileapp", + "core.login.legacymoodleversiondesktopdownloadold": "local_moodlemobileapp", "core.login.localmobileunexpectedresponse": "local_moodlemobileapp", "core.login.loggedoutssodescription": "local_moodlemobileapp", "core.login.login": "moodle",