{"action":"created","issue":{"url":"https://api.github.com/repos/edx/edx-platform/issues/15464","repository_url":"https://api.github.com/repos/edx/edx-platform","labels_url":"https://api.github.com/repos/edx/edx-platform/issues/15464/labels{/name}","comments_url":"https://api.github.com/repos/edx/edx-platform/issues/15464/comments","events_url":"https://api.github.com/repos/edx/edx-platform/issues/15464/events","html_url":"https://github.com/edx/edx-platform/pull/15464","id":240530918,"number":15464,"title":"Learner Dashboard improvements to assist with the Account Activation process","user":{"login":"pomegranited","id":7556571,"avatar_url":"https://avatars3.githubusercontent.com/u/7556571?v=4","gravatar_id":"","url":"https://api.github.com/users/pomegranited","html_url":"https://github.com/pomegranited","followers_url":"https://api.github.com/users/pomegranited/followers","following_url":"https://api.github.com/users/pomegranited/following{/other_user}","gists_url":"https://api.github.com/users/pomegranited/gists{/gist_id}","starred_url":"https://api.github.com/users/pomegranited/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pomegranited/subscriptions","organizations_url":"https://api.github.com/users/pomegranited/orgs","repos_url":"https://api.github.com/users/pomegranited/repos","events_url":"https://api.github.com/users/pomegranited/events{/privacy}","received_events_url":"https://api.github.com/users/pomegranited/received_events","type":"User","site_admin":false},"labels":[{"id":128413102,"url":"https://api.github.com/repos/edx/edx-platform/labels/awaiting%20prioritization","name":"awaiting prioritization","color":"fad8c7","default":false},{"id":78051711,"url":"https://api.github.com/repos/edx/edx-platform/labels/open-source-contribution","name":"open-source-contribution","color":"bfe5bf","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":41,"created_at":"2017-07-05T03:44:02Z","updated_at":"2018-03-27T17:41:27Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/edx/edx-platform/pulls/15464","html_url":"https://github.com/edx/edx-platform/pull/15464","diff_url":"https://github.com/edx/edx-platform/pull/15464.diff","patch_url":"https://github.com/edx/edx-platform/pull/15464.patch"},"body":"This change adds two optional features designed to ease learner confusion through the account activation and enrollment process.\r\n\r\nCurrently, when learners haven't yet activated their accounts, the Learner Dashboard shows both a warning about not being activated and the text below about not being enrolled in any courses. Many of our client's students don't read the first warning, get confused, and then email them about not being enrolled in the right courses.\r\n\r\nAs part of the upstream review process (see https://github.com/edx/edx-platform/pull/15464#issuecomment-362029099), we've also deprecated the top (black) banner, removed the activation message from the top banner, and permanently enabled the the sidebar activation message.\r\n\r\n**JIRA tickets**: [OSPR-1814](https://openedx.atlassian.net/browse/OSPR-1814)\r\n\r\n**Screenshots**:\r\n\r\nThere are three potential stages to this process, and this change improves two of them:\r\n\r\n1. Learner has just registered, and has not yet activated their account, and is viewing the Dashboard page.\r\n  Here is the confusing case, where the activation message in the sidebar is being missed by learners, who skip instead to the \"You are not enrolled in any courses yet.\" message.\r\n  This change adds a Site Configuration and `FEATURE` flag, `HIDE_DASHBOARD_COURSES_UNTIL_ACTIVATED`, which hides the \"My Courses\" and \"You are not enrolled in any courses\" area.  This will ease learner confusion by making the activation message the only text shown on the page.\r\n  Note that even if the learner was enrolled in a course prior to account activation, the system doesn't allow the user to visit the course without first activating their account.\r\n![hide dashboard courses until activated](https://user-images.githubusercontent.com/7556571/37694849-4e2d57f6-2d1a-11e8-8d74-3928f632bfb6.png)\r\n1. Learner has registered, has not yet activated their account, but has logged out or let their session expire. Learner has to login again, and/or reset their password.\r\n  After login, the system re-sends the activation email, and shows an appropriate message, and won't let the learner proceed past the login screen until the account is activated.\r\n  No change required here; the learner's next step is clear.\r\n1. Learner has activated their account, is logged in, and viewing an empty dashboard with no courses in it.\r\n  Here, we've added some optional text, which can be set in Site Configuration `EMPTY_DASHBOARD_MESSAGE`.  Our client had some specific information to convey at this point, and so configurable markup was appropriate.\r\n![empty dashboard custom message](https://user-images.githubusercontent.com/7556571/37694913-e62de098-2d1a-11e8-89cb-3dd15b67a61b.png)\r\n\r\n**Sandbox URL**:\r\n\r\nhttps://pr15464.sandbox.opencraft.hosting (6c5c353)\r\n\r\n**Partner information**: 3rd party-hosted open edX instance\r\n\r\n**Deployment targets**: edx.org and edge.edx.org\r\n\r\n**Merge deadline**: ASAP\r\n\r\n**Testing instructions**:\r\n\r\nThe `staff` user has superuser privileges on the sandbox server.\r\n*Note* You must wait **3 min** for any Site Configuration settings changes to take effect.\r\n\r\n1. Update the Site Configuration to set `\"HIDE_DASHBOARD_COURSES_UNTIL_ACTIVATED\": false`.\r\n1. Register a new user, but don't follow the activation link yet.\r\n   Note the \"activate your account\" message is visible in the Sidebar, and the top banner is not shown.\r\n1. Update the Site Configuration to set `\"HIDE_DASHBOARD_COURSES_UNTIL_ACTIVATED\": true` and refresh the Dashboard.\r\n   Note that the \"My Courses\" list is now hidden, and the sidebar is shifted left.\r\n1. Visit the activation email link.\r\n   Note that your account has been activated, and the \"My Courses\" list is now shown.\r\n1. Update the Site Configuration to add an `EMPTY_DASHBOARD_MESSAGE` like the one shown in Site Configuration below.\r\n1. Refresh the Dashboard. \r\n   Note that  the custom empty dashboard message is now displayed.\r\n1. Enrol in a course, and revisit the Dashboard. \r\n   Note that the empty dashboard messages are no longer displayed.\r\n\r\n**Reviewers**\r\n- [x] @UmanShahzad \r\n- [ ] @marcotuts \r\n\r\n**Site Configuration**\r\n```json\r\n{\r\n  \"HIDE_DASHBOARD_COURSES_UNTIL_ACTIVATED\": true,\r\n  \"EMPTY_DASHBOARD_MESSAGE\": \"If you believe this is an error, please contact <a href='mailto:contact@example.com'>contact@example.com</a>.<br /> If you would like to enroll in one of our free courses, you can find them in the <a href='/courses'>course catalog</a>.\",\r\n  \"ACTIVATION_EMAIL_SUPPORT_LINK\": \"mailto:contact@example.com\",\r\n}"},"comment":{"url":"https://api.github.com/repos/edx/edx-platform/issues/comments/376612406","html_url":"https://github.com/edx/edx-platform/pull/15464#issuecomment-376612406","issue_url":"https://api.github.com/repos/edx/edx-platform/issues/15464","id":376612406,"user":{"login":"marcotuts","id":2023680,"avatar_url":"https://avatars0.githubusercontent.com/u/2023680?v=4","gravatar_id":"","url":"https://api.github.com/users/marcotuts","html_url":"https://github.com/marcotuts","followers_url":"https://api.github.com/users/marcotuts/followers","following_url":"https://api.github.com/users/marcotuts/following{/other_user}","gists_url":"https://api.github.com/users/marcotuts/gists{/gist_id}","starred_url":"https://api.github.com/users/marcotuts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcotuts/subscriptions","organizations_url":"https://api.github.com/users/marcotuts/orgs","repos_url":"https://api.github.com/users/marcotuts/repos","events_url":"https://api.github.com/users/marcotuts/events{/privacy}","received_events_url":"https://api.github.com/users/marcotuts/received_events","type":"User","site_admin":false},"created_at":"2018-03-27T17:41:27Z","updated_at":"2018-03-27T17:41:27Z","author_association":"MEMBER","body":"@pomegranited  - Thanks for the update. \r\n\r\nThe sandbox is currently showing the sidebar message, meaning HIDE_DASHBOARD_COURSES_UNTIL_ACTIVATED is enabled. One note I should have mentioned is that in this case, I'm ok with the message being a full page message that was like what you had instead of having to exactly emulate the layout and size of the sidebar message. I'm ok with this as is if you are, but if I had any remaining suggestion it might be to make that this activation message wouldn't necessarily just render the sidebar and hide the main dashboard area. \r\n\r\nFor now, moving to awaiting prioritization, thanks for all your help on this! \r\n\r\n![image](https://user-images.githubusercontent.com/2023680/37984434-415db652-31c4-11e8-8c20-a215307d8792.png)\r\n"}}
{"actor":{"display_login":"marcotuts"}}