Skip to content

Peer review ui 2 [test ui]#9293

Merged
mehalshah merged 5 commits into
stagingfrom
peer_review_ui_2
Jul 11, 2016
Merged

Peer review ui 2 [test ui]#9293
mehalshah merged 5 commits into
stagingfrom
peer_review_ui_2

Conversation

@mehalshah

@mehalshah mehalshah commented Jul 1, 2016

Copy link
Copy Markdown
Contributor

UI for peer review, but without more react classes

Different enough to justify a new PR

@mehalshah

Copy link
Copy Markdown
Contributor Author

image

@mehalshah mehalshah force-pushed the peer_review_ui_2 branch 3 times, most recently from bf81e5e to f663d2d Compare July 4, 2016 05:23

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We had discussed locked being a property on the puzzle dot, not something specific to peer review.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right now, the only circumstance where a level would be locked is if its a locked peer review slot.

I can add a property the levels on whether or not a certain line is locked. Will try that out

@joshlory

joshlory commented Jul 6, 2016

Copy link
Copy Markdown
Contributor

A few spec-level suggestions for peer review:

screen shot 2016-07-06 at 11 36 26 am

  • An un-started review is 'attempted' (yellow), should be 'not_started' (not filled in).
  • I think it should be "Review unavailable"?
  • Prefer the dots as a horizontal list, since they have an implied completion order.

peer-review-assignments

@mehalshah

Copy link
Copy Markdown
Contributor Author

Tagging @ryansloan for comment on above

@ryansloan

Copy link
Copy Markdown
Contributor

Re: the Horizontal List, I like it more from a visual standpoint (especially because it eliminates the repeated strings), but I worry that it could be a bit ambiguous. It's not necessarily clear why a given peer review is locked. Now I'm inventing features, but maybe we could do the row of dots with the status in a tooltip when you hover/click on a locked level?

@mehalshah

Copy link
Copy Markdown
Contributor Author

I propose leaving it as in, then taking feedback from our bug bash next week and focus group the week after.

I'd like to better understand if people plan on coming back to peer reviews they've done, what order they go in when doing them, and what's clear / not clear about expectations for this section.

@mehalshah

Copy link
Copy Markdown
Contributor Author

Implemented most of the suggestions here - progress_dot.jsx isn't as messy as I thought it would be

url: '',
name: I18n.t('peer_review.reviews_unavailable'),
icon: 'fa-lock'
icon: 'fa-lock',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's have locked imply the 'fa-lock' icon so this doesn't need to be passed separately.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure...I guess it depends on what we'd want to happen if we locked a level that had an icon.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess that's possible, but in that case I think we'd still want to show the default locked styling (so that the level being locked is more important that what type of level it is).

@joshlory

joshlory commented Jul 7, 2016

Copy link
Copy Markdown
Contributor

Still seeing "Review in progress" for reviews I haven't started yet:

screen shot 2016-07-07 at 4 28 56 pm

Edit: this definitely shouldn't block check-in, can be part of a future PR.

});
export default connect(state => ({

export default connect((state) => ({

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super small nit: extra parens diff isn't needed.

@joshlory

joshlory commented Jul 8, 2016

Copy link
Copy Markdown
Contributor

This is looking awesome! My main feedback this pass is to make the peer review dot styling as close as possible to task & make locked generic to any dot type. Happy to chat about any of these in person.

id: id,
url: level.url
});
})}));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, I have an open PR that might result in some merge conflicts with this. #9379

@joshlory

Copy link
Copy Markdown
Contributor

The test coverage you've written looks good, but it would be great to have a UI test to cover this scenario end-to-end. Doesn't need to block this PR.

@mehalshah

Copy link
Copy Markdown
Contributor Author

My priority right now is getting something that the team can bash on Thursday, and that I can give to facilitators next Wednesday. After that, I'd like to make an eyes test to verify the appearance of unit view for someone who's partially done with stuff

@joshlory

Copy link
Copy Markdown
Contributor

Hmm I'm getting the following after completing a peer review: Warning: Failed propType: Invalid prop titleof typestringsupplied toBubbleInterior, expected number. Check the render method of ProgressDot.

@joshlory

Copy link
Copy Markdown
Contributor

LGTM! (After resolving rake test failure.)

@mehalshah mehalshah merged commit 4acf100 into staging Jul 11, 2016
mehalshah added a commit that referenced this pull request Jul 12, 2016
mehalshah added a commit that referenced this pull request Jul 12, 2016
…inally

Revert "Merge pull request #9293 from code-dot-org/peer_review_ui_2"
@mehalshah mehalshah deleted the peer_review_ui_2 branch November 1, 2016 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants