Skip to content
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

Update "Resolved" styling for code review comments #43135

Merged
merged 4 commits into from
Oct 26, 2021
Merged

Conversation

jmkulwik
Copy link
Contributor

This updates the styling of code review comments to be the "expanded" version of the expand/collapse comment.

Up next: Support collapsing and expanding comments

The new styling

Note: The teacher name is still displayed in blue in order to visually differentiate from a student.

Links

Testing story

Deployment strategy

Follow-up work

Privacy

Security

Caching

PR Checklist:

  • Tests provide adequate coverage
  • Privacy and Security impacts have been assessed
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

@jmkulwik jmkulwik requested a review from a team as a code owner October 22, 2021 16:40
@jmkulwik jmkulwik requested review from moneppo and a team October 22, 2021 16:40
Copy link
Contributor

@sanchitmalhotra126 sanchitmalhotra126 left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -89,17 +89,18 @@ class Comment extends Component {
<div
style={{
...styles.commentContainer,
...(isFromOlderVersionOfProject &&
styles.olderVersionCommentTextColor)
...((isFromOlderVersionOfProject || isResolved) && styles.lessVisible)
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: might be worth moving isFromOlderVersionOfProject || isResolved to a local variable

Copy link
Contributor

Choose a reason for hiding this comment

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

I should note that isFromOlderVersionOfProject is always false b/c we never implemented this:

I'll add a tech debt item for this to delete references to it (or is this something we're planning on implementing @jmkulwik)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is something we plan to implement eventually (after launch), but probably not something we should be maintaining currently.

Copy link
Contributor

Choose a reason for hiding this comment

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

Got it, added to tech debt epic here:

https://codedotorg.atlassian.net/browse/CSA-1020

Copy link
Contributor

@molly-moen molly-moen left a comment

Choose a reason for hiding this comment

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

LGTM, just one nit

iconClass: 'fa fa-fw fa-check',
text: javalabMsg.resolve(),
iconClass: 'fa fa-fw fa-check-circle',
text: javalabMsg.markComplete(),
key: 'Resolve'
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: should we change this key (and the re-open key below)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll go ahead and update this in the next PR.

@jmkulwik jmkulwik merged commit f0c94d0 into staging Oct 26, 2021
@jmkulwik jmkulwik deleted the collapse-comments branch October 26, 2021 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants