plots2 icon indicating copy to clipboard operation
plots2 copied to clipboard

Show author name on /comments listing

Open jywarren opened this issue 6 years ago • 11 comments

The comments page listing is a little bare and could use some design cleanup. First of all, i can't see who wrote each comment! Let's add an author name (should be comment.author.username i think?) so this is more legible:

https://publiclab.org/comments

And, we can link the authorname to their profile, like: https://publiclab.org/profile/stevie

We'd love help with this!

The page template is here:

https://github.com/publiclab/plots2/blob/master/app/views/comments/_comments.html.erb

jywarren avatar Jan 07 '20 16:01 jywarren

I just noticed one thing which was weird, The first photo which I have attached has just the ID named "C", but in code when I saw, you were trying to embed the letter C along with the Comment Id name which is in the second image. So, is it a bug or should that be left alone haha? Screenshot 2020-01-08 at 12 30 09 AM Screenshot 2020-01-08 at 12 31 43 AM

sunguru98 avatar Jan 07 '20 19:01 sunguru98

And for the solution itself, I am having this idea of creating a basic element dry-run and showing the result to you. The first image is code which I had lab ratted it, and the second is the output shown on screen. Screenshot 2020-01-08 at 12 37 40 AM Screenshot 2020-01-08 at 12 37 48 AM

In the place of Hello World, You will be seeing the Author name perfectly linking to his/her profile page.

sunguru98 avatar Jan 07 '20 19:01 sunguru98

I think this can work, thanks - but what about a bit more compact, by making author one column of the table? Thanks a lot for your help!

On Tue, Jan 7, 2020 at 2:10 PM Sundeep Charan Ramkumar < [email protected]> wrote:

And for the solution itself, I am having this idea of creating a basic element dry-run and showing the result to you. The first image is code which I had lab ratted it, and the second is the output shown on screen. [image: Screenshot 2020-01-08 at 12 37 40 AM] https://user-images.githubusercontent.com/32637757/71921660-4aab4e80-31af-11ea-9edf-1df1582f4ca5.png [image: Screenshot 2020-01-08 at 12 37 48 AM] https://user-images.githubusercontent.com/32637757/71921664-4b43e500-31af-11ea-8324-c73dbe2aa03b.png

In the place of Hello World, You will be seeing the Author name perfectly linking to his/her profile page.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/7134?email_source=notifications&email_token=AAAF6JYEWLX3OBO3RJW3YT3Q4THQ7A5CNFSM4KD3LEF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIJ55BQ#issuecomment-571727494, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAF6J7WA7S2VYTYVNF6JRDQ4THQ7ANCNFSM4KD3LEFQ .

jywarren avatar Jan 07 '20 19:01 jywarren

You mean the author and the comment should come side by side, like the image pasted below @jywarren?

Screenshot 2020-01-08 at 12 50 34 AM

sunguru98 avatar Jan 07 '20 19:01 sunguru98

Yeah, that would be great!!

On Tue, Jan 7, 2020 at 2:21 PM Sundeep Charan Ramkumar < [email protected]> wrote:

You mean the author and the comment should come side by side, like the image pasted below @jywarren https://github.com/jywarren?

[image: Screenshot 2020-01-08 at 12 50 34 AM] https://user-images.githubusercontent.com/32637757/71922475-facd8700-31b0-11ea-8386-63bcc6e78e12.png

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/7134?email_source=notifications&email_token=AAAF6J6K5R2WIAGPIDHJR2LQ4TI4DA5CNFSM4KD3LEF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIJ676Q#issuecomment-571731962, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAF6J2W3VYN7ME4A6A2MMTQ4TI4DANCNFSM4KD3LEFQ .

jywarren avatar Jan 07 '20 20:01 jywarren

Alright I will start working on it. BTW how to run this on my local computer? As I haven't been in the Ruby background before haha.

sunguru98 avatar Jan 08 '20 02:01 sunguru98

Hi @sunguru98 ! Here's documentation on how to install plots2 onto your computer and get it running: https://github.com/publiclab/plots2#installation Let us know if you run into issues!

nstjean avatar Jan 08 '20 14:01 nstjean

I have made a PR#7151 for this issue. Please review this.

keshavsethi avatar Jan 08 '20 16:01 keshavsethi

@keshavsethi You could clearly see that there is a conversation going on here .. Moving forward without even asking a permission is not a part of an Open source etiquette. You should have asked permission on taking it first. @jywarren What do you say?

sunguru98 avatar Jan 08 '20 16:01 sunguru98

Sorry for this, I will remember this in future.

keshavsethi avatar Jan 08 '20 16:01 keshavsethi

As you have done this time .. Lets wait for @jywarren to review your code and get it merged. But this is an unpleasant way please do refrain it in further PRs.

sunguru98 avatar Jan 08 '20 16:01 sunguru98