Comment Styling #2510

Merged
NetOpWibby merged 11 commits from redux-comments into master 2019-06-27 02:32:44 +02:00
NetOpWibby commented 2019-05-24 17:10:01 +02:00 (Migrated from github.com)

PR Checklist

  • I have checked that this PR is not a duplicate of an existing PR (open, closed or merged)
  • I have checked that this PR does not introduce a breaking change

PR Type

What kind of change does this PR introduce?

  • Feature
  • Code style update (formatting)

Fixes

What is the current behavior?

Comments are not styled.

What is the new behavior?

Comments are styled.

## PR Checklist - [x] I have checked that this PR is not a duplicate of an existing PR (open, closed or merged) - [x] I have checked that this PR does not introduce a breaking change ## PR Type What kind of change does this PR introduce? - [x] Feature - [x] Code style update (formatting) ## Fixes ## What is the current behavior? Comments are not styled. ## What is the new behavior? Comments are styled.
neb-b (Migrated from github.com) requested changes 2019-06-20 04:27:32 +02:00
neb-b (Migrated from github.com) left a comment

Tested and it seems to work pretty good.

Tested and it seems to work pretty good.
neb-b (Migrated from github.com) commented 2019-06-20 04:10:04 +02:00

Instead of 'no', this can just be a boolean

Instead of `'no'`, this can just be a boolean
neb-b (Migrated from github.com) commented 2019-06-20 04:11:31 +02:00

I'm not sure if we need a title along with this? I guess it depends on what that messaging ends up being.

I'm not sure if we need a title along with this? I guess it depends on what that messaging ends up being.
neb-b (Migrated from github.com) commented 2019-06-20 04:19:49 +02:00

Comment should be broken into it's own file. Then in CommentsList, pass commentId that can be used to select the comment.

Then if we ever require more data to display a comment, we only have to update one place, instead of having to pass another prop to it in this file

Comment should be broken into it's own file. Then in CommentsList, pass `commentId` that can be used to select the comment. Then if we ever require more data to display a comment, we only have to update one place, instead of having to pass another prop to it in this file
neb-b (Migrated from github.com) commented 2019-06-20 04:20:43 +02:00

This whole thing can just be removed. We don't need to show a snackbar

This whole thing can just be removed. We don't need to show a snackbar
neb-b (Migrated from github.com) commented 2019-06-20 04:21:24 +02:00

We don't need this

We don't need this
neb-b (Migrated from github.com) commented 2019-06-20 04:21:44 +02:00

👍

👍
neb-b (Migrated from github.com) commented 2019-06-20 04:22:36 +02:00

here

here
jessopb (Migrated from github.com) reviewed 2019-06-24 05:13:58 +02:00
jessopb (Migrated from github.com) commented 2019-06-24 05:13:58 +02:00

@kauffj was going to do some copy for this section.

@kauffj was going to do some copy for this section.
osilkin98 (Migrated from github.com) reviewed 2019-06-24 07:53:39 +02:00
osilkin98 (Migrated from github.com) commented 2019-06-24 07:53:39 +02:00

here

here
osilkin98 (Migrated from github.com) reviewed 2019-06-24 08:09:50 +02:00
osilkin98 (Migrated from github.com) commented 2019-06-24 08:09:50 +02:00

We're not doing upvotes/downvotes. The only time I can see that is if when move to using claims as comments, we can count supports with say, 10 confirmations as being upvotes.

We're not doing upvotes/downvotes. The only time I can see that is if when move to using claims as comments, we can count supports with say, 10 confirmations as being upvotes.
kauffj (Migrated from github.com) requested changes 2019-06-26 19:30:51 +02:00
kauffj (Migrated from github.com) left a comment

Some suggested changes, but nothing strong.

This review was inspection only until issues introduced by rebase are addressed.

Some suggested changes, but nothing strong. This review was inspection only until issues introduced by rebase are addressed.
kauffj (Migrated from github.com) commented 2019-06-26 18:55:25 +02:00

I am all for consting all special values, but this one could probably be skipped

I am all for `const`ing all special values, but this one could probably be skipped
kauffj (Migrated from github.com) commented 2019-06-26 19:00:20 +02:00

The new here is a value that comes from <ChannelSection>, which is the right time to use a const (otherwise, when editing ChannelSection, I'd have to check every place it is embedded and manually read all of that code to see if "new" is being used or checked against).

The `new` here is a value that comes from `<ChannelSection>`, which _is_ the right time to use a `const` (otherwise, when editing `ChannelSection`, I'd have to check every place it is embedded and manually read all of that code to see if `"new"` is being used or checked against).
@ -0,0 +37,4 @@
return (
<React.Fragment>
{commentAck !== true && (
kauffj (Migrated from github.com) commented 2019-06-26 18:57:00 +02:00

if commentAck is false it looks like this returns nothing, so this could probably be tidied down to one check

if `commentAck` is false it looks like this returns nothing, so this could probably be tidied down to one check
kauffj (Migrated from github.com) commented 2019-06-26 19:01:35 +02:00

<strong>{this.props.author ? this.props.author : __("Anonymous") }</strong>

` <strong>{this.props.author ? this.props.author : __("Anonymous") }</strong>`
kauffj (Migrated from github.com) commented 2019-06-26 19:01:53 +02:00

(note i18n call as well as simplification)

(note i18n call as well as simplification)
kauffj (Migrated from github.com) commented 2019-06-26 19:02:21 +02:00

comment is always applied as a class, so could be omitted from both sides

comment is always applied as a class, so could be omitted from both sides
@ -80,1 +79,4 @@
// Commented out because it would play/pause if you were typing in the comment field
// Need a way to check if you are typing
// window.addEventListener('keydown', this.handleKeyDown);
}
kauffj (Migrated from github.com) commented 2019-06-26 19:07:34 +02:00

is this functionality being removed? maybe comment out the function too and explain why if it's anticipated that it returns?

is this functionality being removed? maybe comment out the function too and explain why if it's anticipated that it returns?
kauffj (Migrated from github.com) commented 2019-06-26 19:03:23 +02:00

intended?

intended?
kauffj (Migrated from github.com) commented 2019-06-26 19:03:32 +02:00

intended?

intended?
kauffj (Migrated from github.com) commented 2019-06-26 19:04:06 +02:00

this should be the class comment--reply and be a first-class rule (i.e. not nested) if we're following BEM

this should be the class `comment--reply` and be a first-class rule (i.e. not nested) if we're following BEM
kauffj (Migrated from github.com) commented 2019-06-26 19:05:04 +02:00

please comment out any CSS that is not being used

please comment out any CSS that is not being used
jessopb (Migrated from github.com) reviewed 2019-06-26 20:23:25 +02:00
@ -0,0 +37,4 @@
return (
<React.Fragment>
{commentAck !== true && (
jessopb (Migrated from github.com) commented 2019-06-26 20:23:25 +02:00

if it's false, it shows you the acknowledgment box.
if it's true, it shows you the commenting tool.

if it's false, it shows you the acknowledgment box. if it's true, it shows you the commenting tool.
osilkin98 (Migrated from github.com) reviewed 2019-06-26 21:47:33 +02:00
osilkin98 (Migrated from github.com) commented 2019-06-26 21:47:33 +02:00

Use this

{this.props.author}

in place of

  <Button className="button--uri-indicator" navigate={this.props.uri}>
          {inner}
 </Button>
  );
}

The schema you're using is a little out of date, you may want to compare it with the one I have on my branch

Use this ```js {this.props.author} ``` in place of ```js <Button className="button--uri-indicator" navigate={this.props.uri}> {inner} </Button> ); } ``` The schema you're using is a little out of date, you may want to compare it with the one I have on [my branch](https://github.com/osilkin98/lbry-desktop/blob/953ee3988fc6ca4af2514c9dd2a3761764feccfd/src/ui/component/uriIndicator/view.jsx#L6)
kauffj (Migrated from github.com) reviewed 2019-06-26 23:57:33 +02:00
@ -80,1 +79,4 @@
// Commented out because it would play/pause if you were typing in the comment field
// Need a way to check if you are typing
// window.addEventListener('keydown', this.handleKeyDown);
}
kauffj (Migrated from github.com) commented 2019-06-26 23:57:33 +02:00

@jessopb I'm fixing most of my own comments but I don't know what or why this was changed, so I'm leaving as is

@jessopb I'm fixing most of my own comments but I don't know what or why this was changed, so I'm leaving as is
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-desktop#2510
No description provided.