Desktop Sidebar: My Sets -> My Solution Sets & My Created Sets (Logged-in)
Opened this issue · 1 comments
In the list of linked options on the sidebar, for logged in users, "My Sets" should removed and replaced by two separate options: "My Solution Sets" & "My Created Sets". This should be consistent with how the separate sections are surfaced to users. (See issues #1595 & #1596)
The order that these links appear should be dependent on account type: e.g. My Solution Sets should appear first for Students, and My Created Sets should appear for Teachers and Other users. This should remain as "My Sets" for those who are not logged in.
Linking
Each of these should link to the appropriate heading.
- If on the main dashboard showing all sets, this should scroll the page (no refresh needed) so the named heading is at the top of the page.
- If on another page besides the main dashboard, this should bring the user to the main dashboard, and scroll to the appropriate heading.
- If the user is in the middle of editing something (e.g. editing a problem, editing a problem set), this should save any edits which have been made prior to bringing the user to the main dashboard and the appropriate heading.
Acceptance criteria:
Given that I'm an unauthenticated user on a screen wide enough to view the sidebar, I should encounter the "My Sets" link. When I click this link, any edits I've made should be saved (if applicable), and I should be brought to the appropriate heading on the dashboard.
Given that I'm a Student user on a screen wide enough to view the sidebar, I should encounter the "My Solution Sets" and "My Created Sets" link. When I click either of these links, any edits I've made should be saved (if applicable), and I should be brought to the appropriate heading on the dashboard.
Given that I'm a Teacher or Other user on a screen wide enough to view the sidebar, I should encounter the "My Created Sets" and "My Solution Sets" link. When I click either of these links, any edits I've made should be saved (if applicable), and I should be brought to the appropriate heading on the dashboard.
Tested with success
- Given that I'm an unauthenticated user on a screen wide enough to view the sidebar, I encounter the "My Sets" link
- Given that I'm a Student user on a screen wide enough to view the sidebar, I encounter the "My Solution Sets" and "My Created Sets" link
- Given that I'm a Teacher or Other user on a screen wide enough to view the sidebar, I encounter the "My Created Sets" and "My Solution Sets" link
- If the user is on another page besides the main dashboard, after click it brings the user to the main dashboard and scroll to the appropriate heading
- Any edits we've made are saved and I am brought to the appropriate heading on the dashboard