benetech / MathShare

MIT License
9 stars 3 forks source link

Creation of sidebar (Web) #1376

Open alexrcabral opened 4 years ago

alexrcabral commented 4 years ago

This is the first task addressing the redesign for mobile. These will come in chunks and held in staging prior to release (estimated October).

Full mockup:

Mockup of new dashboard, showing the My Sets page, with rounded pastel problem cards. Along the top of the page are the options to Search Set and Sign Out. Next to My Sets is a button option for list view vs grid view. Next to this is a dropdown showing sorting options, currently showing Most recent. On the left sidebar is a student portrait with the name Derek Wells, followed by Student and the option to sign out. Beneath is a list of navigation options. At the bottom of the page is the current universal footer.

Sidebar:

Mockup of sidebar, including the profile picture and info, option to sign out, and a list of navigation options.

This task covers the creation of the sidebar. This should include the profile image of the student, with their profile’s associated name listed below, centered, in bold. Below this is the account type (Student, Teacher, Other), and below this is a clickable button to sign out.

Below this, left-justified, are the options of: Home, My Sets, Sample Sets, About Mathshare, Help, and Settings. For now, these should just be placeholder links.

Font should be Poppins or equivalent (e.g. Helvetica Neue). Font sizes are relative, and font sizes from the mockup are given as an approximate example. Please follow the mockups regarding spacing. For accuracy, please use the Invision Inspect tool with the official mockups.

Name: font size ~20pt, bold, #37345B Profile Info: ~13pt, #737185 Navigation options: ~17pt, #737185 Navigation active page: ~17pt, bolded, #37345B

Reference

Style Guide + Official Mockups: https://invis.io/CQYLLW8J49U

All the desktop (standard and small) screens and the style guides for Mobile, Desktop and IPad will be available on this project. The assets will be available on the Invision Inspect tool. Developers will need to ask to join the project via Invision.

Fonts: https://www.dropbox.com/sh/c12m6ufweyds20d/AAAdXNPOt8e52DkSAr9pd-a-a/Fonts?dl=0

Acceptance criteria: 

Given that I'm a logged-in user on the application portion of Mathshare, when I go to the dashboard view (including the My Sets view), then this sidebar with my profile information should be present. When I hover over any given link in the navigation bar, it should behave as a placeholder link. If I click the “Signout” option, I should be signed out as usual.

johnhbenetech commented 4 years ago

@rupeshparab as discussed these are preliminary tasks for starting to get the new design foundation built out.

Largely speaking at this point the tasks will be creating the placeholder UI elements, structure, and assets. The tasks for hooking up the functionality will follow later - so by no means is everything in the mockups expected to work at this point.

We should create this new UI as a completely separate view. It can be temporarily routed through a hidden URL scheme, maybe something like a parameter: mathshare.benetech.org/#/app?UI=new or something. Let me know what is technically possible here.

Eventually the plan will be to completely cut over to the new view so that any existing link will render in the new view.

As far as code organization goes, I'll leave that up to you. Since so much is changing I'm imagining there's not a ton from the old CSS and components that will still be used. So i'm assuming we will have an entirely separate set of files.

rupeshparab commented 4 years ago

@alexrcabral There seem to be few differences in the design image attached in this task and the design in Invision: https://projects.invisionapp.com/share/CQYLLW8J49U#/screens/430807941

Should I refer to the design in Invision @johnhbenetech

alexrcabral commented 4 years ago

@rupeshparab Thanks for flagging. The design in Invision is the primary source, so please default to it if there are any discrepancies

theladymay commented 4 years ago

@johnhbenetech when doing this on my iPhone 11 I do not see a sidebar. On my computer I see it, but only if my screen is big enough. If this is the expected behavior I will move it to QA. If not, I'll move it back to in progress. Please advise.

johnhbenetech commented 4 years ago

@theladymay that's a question for @alexrcabral

alexrcabral commented 4 years ago

@theladymay Just to sum up from the meeting today, this is for behavior on the desktop version (Web/Desktop). So long as the sidebar is present on Desktop size (larger than 1008px), this passes muster

theladymay commented 4 years ago

@alexrcabral, correct. I moved it to QA.

abaranowska1 commented 4 years ago

@alexrcabral One question, in the description we also have "About MathShare" option in the sidebar, but now I see that only: Home, My Sets, Example Sets, Help, Settings. Is it ok ? Second thing, @rupeshparab what do you think about the avatar/photo size ? I see some issue with the resolution. image image

alexrcabral commented 4 years ago

Thanks for catching this @abaranowska1! Yes, this should also contain the link "About Mathshare" to match the mockup

rupeshparab commented 4 years ago

Added about mathshare option in menu and fixed the issue with resolution

abaranowska1 commented 4 years ago

About Mathshare option was added image The resolution is better for example here: image but when we have a photo still a see an issue. @rupeshparab image

rupeshparab commented 4 years ago

@abaranowska1 Can you share the url of your profile image in Sidebar? It should look something like this: https://lh3.googleusercontent.com/-hp3SzbKnuqQ/AAAAAAAAAAI/AAAAAAAAAAA/AKF05nDwtmqYWqbwWtpdNCcuY4Soeg49gg/s240/photo.jpg

johnhbenetech commented 4 years ago

I'm going to move this along for now (we can circle back if it comes up more) it seems to look fine for my account so I wonder if it is an issue with the original uploaded profile image resolution.

john avatar

abaranowska1 commented 4 years ago

@rupeshparab https://lh3.googleusercontent.com/a-/AOh14GgkLA8vTu4-PdRsj88UOfGL0hc7xApoH8qtmk29=s50 @johnhbenetech Ok, we can move this along for now, probably this is the issue with my image.