-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React for New Candidate Conversation Viewer UI #41
Comments
@beribak Update. After receiving more feedback, we want to target the layout that has the line of windows on top, https://www.figma.com/file/jtIoqpnhGfBEAHSVLAIVf4/undebate_UI?node-id=66%3A1 (rather than the one above with the line of windows on the bottom). Extra credit if you can have a hidden feature like Control-W or something that lets us switch between the two layouts - but having one layout working is most important. Sorry for the change. |
The cursor needs to change when you hover over the icon/buttons: probably just add cursor: pointer to the css style for that. |
Also, it would be nice to add a style={{title: ...}} to each each button saying Previous Section, Previous Speaker, Pause, Continue, Next Speaker, Next Section. So that when you hover over it, you will see the name of it. |
@beribak To address the problem of not having any candidates, in the candidate conversation that was created in the database, do this:
You have just added one candidate to your conversation. You can repeat steps 5 and 6 with the data below to add more candidates. Joe
Adolf:
Alex
Will
And if you want to be able to record more, add this, and change the parentId as you have been doing:
Then you can go to localhost:3011/candidate-conversation-candidate-recorder and record yourself as a candidate. You can rerecord yourself as many times as you want, and the latest version will be the one that shows up in the conversation. If you want to pretend to be multiple candidates - go to localhost:3011/sign/out to sign out. And then got to the recorder link again and create a new account. And by the way for testing - the email address you use for an account doesn't have to be real- it just has to be a valid email format. |
To get at the ballot information, there is going to be a new object in the Iota structure called bp_info. It is optional and won't always be there. The current data format is:
@beribak I mention this because the new UI calls out for showing the date of the election. |
@beribak For the portrait mode here's a ui design: https://www.figma.com/file/jtIoqpnhGfBEAHSVLAIVf4/undebate_UI?node-id=172%3A1143 |
This is done and incorporated into master - but there are some ui tweaks that will be detailed in a new issue. |
take the design from #18 and implement it in react. The design is here:
https://www.figma.com/file/jtIoqpnhGfBEAHSVLAIVf4/undebate_UI?node-id=0%3A1
focus specifically on this layout: https://www.figma.com/file/jtIoqpnhGfBEAHSVLAIVf4/undebate_UI?node-id=61%3A631
Except:
Do not implement the "^" (fold) feature to the right of "Introduction"
And the ">" feature at the right of the line of videos is optional since the videos will rotate.
we will get more detail on how the layout should be in portrait mode soon.
Take the copy the undebate.jsx file into candidate-conversation.jsx and implement it there, and call the component CandidateConversation
To test it, you will have to edit the database, and add a new Iota record. To add the record, go to your heroku account, and click on this app. Then you will see a link for mLab MongoDB, click on that. Then you will see a new tab with a list of collections, click on iota. Then you will see a [+ Add document] button. Click on that. Then you will see an empty record. Then delete the "{}" that's there and paste in this text:
This record is the same as the one for localhost://schoolboard-conversation except that:
you'll be able to access this at localhost://candidate-conversation
The text was updated successfully, but these errors were encountered: