-
Notifications
You must be signed in to change notification settings - Fork 26
Port visual design of review page #155
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
Conversation
I understand, but on the version without visual design it looked fine. I think we should really try to reflect the wireframes.
Are you able to sort this out? If you need any help just ask. It's a very tiny .less thing I believe. |
|
The point is to address a detail I told you before, that is the improvement of the right content block, particularly the similarity score visual wrapper width. So to say, the number of columns for both blocks on this row needs love. Also, please be so kind to consider the vertical alignment of each element on this row - this can be seen on the bottom example. It would be something along these lines.
a) I wrote this code to set the background for checked & unchecked radio-buttons
b) This code was written only to show everybody how the checked radio-button would look like. It's meant, from the beginning, to be removed and replaced by c). It was only provisory code, because the html element didn't have the checked attribute.
c) This code was written to display a checked radio-button, relying on the assumption that the DOM would convey user behaviour, therefore adding the "checked" attribute on the selected radio-button. The code is in the Review.less - line 108 - and temporarily commented. This might be of interest http://react.tips/radio-buttons-in-reactjs/
I'm deeply thankful for your help! |
|
Signed-off-by: Maxim Sukharev <[email protected]>
d5973b5
to
9d0052f
Compare
fixed radio button, removed grid from information row. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good.
I have a few comments on style/usability. Maybe these should be taken as feedback for @ricardobaeta more than @smacker ...
- Having PREVIOUS in the dropdown to select the file pair ID feels a bit wrong. It's not only used to view previous ones.
- The default height for the diff is so small that it looks very odd. As it is, it can't be used, and it looks more like a bug than a visual hint that something is there.
- The columns for both tables (most similar and most dissimilar) are not aligned, they have slightly different widths.
- Sometimes the diff does not take the full width of the page, and it looks kind of broken.
src/components/Review/Results.js
Outdated
<Col xs={4}> | ||
<div className="review-results__stats"> | ||
Users Annotations: <b>{annotations.yes || 0} Similar</b> &{' '} | ||
<b>{annotations.no || 0} Disimilar</b> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be dissimilar
, typo in several places
how did you manage to break preview (not full width)? I need browser and steps. |
@carlosms Thank you for the notice. I've explained before how this element should work. How it was on the wireframes, was that there should be a link - secondary aka finish - PREVIOUS, and then on the right NEXT with the dropdown. But giving it a second thought, I believe we should maintain the PREVIOUS dropdown element - only backwards - and then beside it on the right a "NEXT - style aka SKIP" button. What do you think @bzz ? |
@smacker The diff width seems to be broken when the two file widths are small. For me, this happens always with ID 272 (using the initial deployment db in G Drive). Both Chrome and Firefox in linux. |
Signed-off-by: Maxim Sukharev <[email protected]>
@carlosms thanks! Bug with width is fixed. |
@ricardobaeta on #155 (comment) I think to avoid blocking this enhancement of the visual design, we should go on with the current state and file a separate issue (\w screenshot or design mock) for improvement. What do you think? @carlosms feedback has been addressed and is ready for another pass. |
@bzz I'll create an issue specifically for my comment changes. Let's unblock this, as you suggested :) |
Signed-off-by: Maxim Sukharev <[email protected]>
typo is fixed (though it's out of this PR scope) |
@smacker seems like some tests on CI are failing now, could you please take a quick look? |
@bzz restart helped |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code LGTM,
I reviewed the discussion and it seems that technical issues were addressed, so I think we could unblock this PR:
- @smacker could you rebase/squash/merge?
- @ricardobaeta could you open an issue describing the things that weren't addressed and any other change that we should consider in the next iteration?
Let's wait for non-technical comments to be addressed (as I understand by creating a new issue). |
I'll sure will @dpordomingo :) |
about @smacker comment at #155 (comment) Thanks, all of you!! |
I see the new issue was created. Merging! 🎉 |
Ricardo's changes to review page.
@ricardobaeta there are 2 problems:
checked
radio button, there is a rule inless
file you have provided, but it's absolutely the same as unchecked.