benetech / MathShare

MIT License
9 stars 3 forks source link

Set Creation: Prompt Entry (w/ Native Keyboard)  #1605

Open alexrcabral opened 3 years ago

alexrcabral commented 3 years ago

This task defines the second section (prompt portion) of the input area for problem creation

Full Mockup

Mockup of problem set creation on a mobile view. Below on the left is a back arrow to go back to the dashboard, and on the right is a button with a share icon which says Assign Set. Beneath this is a banner with the title New Problem Set 12-20-2020 with a pencil icon. Below this are boxed numbers, 02 through 06. 04 is currently highlighted. There is a plus button on the right hand side of this line. There are left and right arrows on this same line, on either side of the numbered boxes. In the main portion of the screen and taking up the majority of the page is a box with two sections, titled, 'Type the problem here' and 'Add the prompt and any details here'. At the top of the screen is the universal nav bar with the Mathshare logo and the profile dropdown

Prompt

An empty problem should contain the speech bubble icon (alt: "speech bubble emoji") and the option to "Add the prompt and any details here" 

When the prompt input box is clicked / enters focus, this should clear to a blank line with a standard flashing cursor icon, and bring up a standard phone keyboard to allow for textual input. 

Overflow behavior 

When the problem is long enough to necessitate overflow (e.g. would otherwise be going over the opposite edge of the box), it should overflow to the next line. 

Reference

Style Guides: https://invis.io/CQYLLW8J49U Mobile Mockups: https://invis.io/5HYLLW1G4BD Fonts: https://www.dropbox.com/sh/c12m6ufweyds20d/AAAdXNPOt8e52DkSAr9pd-a-a/Fonts?dl=0

Acceptance criteria: 

Given that I'm a user on the problem creation page, when I enter the text field to add my prompt in the bottom box, the default text should disappear, the blinking cursor should come up, and my native keyboard should appear, allowing me to type my prompt into the text box.. If I enter a particularly long prompt, this should overflow to the next line on an intuitive break, such as an operator.

abaranowska1 commented 3 years ago

Tested with success

image