Skip to content

Github-toggle-expanders: handle PR comments #21

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

Closed
wants to merge 1 commit into from

Conversation

cmalard
Copy link
Collaborator

@cmalard cmalard commented Jun 15, 2017

I have chosen to handle the click only for the current review,
not all reviews done in the PR wich could be too much
(and less interesting from my use case -> check everything is OK for one review)
So the selector is .discussion-item-body and not .js-discussion

I had to refactor to match the closest parent.
As a consequence, there is no longer the need to support #commits_bucket to fix #8

I have chosen to handle the click only for the current review,
not all reviews done in the PR wich could be too much
(and less interesting from my use case -> check everything is OK for one review)

So the selector is `..discussion-item-body` and not `.js-discussion`
@cmalard
Copy link
Collaborator Author

cmalard commented Jun 15, 2017

I have chosen to handle the click only for the current review

Well, definetely not working, please do not merge while I fix that ;-)

@cmalard cmalard closed this Jun 15, 2017
@Mottie
Copy link
Owner

Mottie commented Jun 15, 2017

Hi @cmalard!

Hehe no worries. So you're saying Shift+click should only be toggling the expanders for the file you're reviewing?

@cmalard
Copy link
Collaborator Author

cmalard commented Jun 15, 2017

Hi @Mottie , I'm talking about toggling for only 1 review:
screen

@Mottie
Copy link
Owner

Mottie commented Jun 15, 2017

Oh! This userscript is targeting the ellipsis expanders seen on commits with descriptions longer than a certain amount. Like on this page.

I'm okay with this userscript also toggling the outdated blocks for a single review. Are you still working on it?

@cmalard
Copy link
Collaborator Author

cmalard commented Jun 15, 2017

Well, it seems I have to open a new PR :-D

The handle-comments branch was force-pushed or recreated.
screen2

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.

toggle expanders also starts to edit the PR title
2 participants