Skip to content

Add deep-blame feature - #2881

Merged
fregante merged 73 commits into
refined-github:masterfrom
yakov116:deep_blame
Mar 26, 2020
Merged

fregante merged 73 commits into
refined-github:masterfrom
yakov116:deep_blame

Conversation

@yakov116

@yakov116 yakov116 commented Mar 11, 2020 •

Copy link
Copy Markdown
Member

@fregante

fregante commented Mar 11, 2020 •

Copy link
Copy Markdown
Member

I need to know how I should link it.

I think

  • add tooltipped class to tell the user they can alt-click on "previous version" icon
  • add alt-click handler

@yakov116

Copy link
Copy Markdown
Member Author

What if the is no link there to go back? (There is no icon since there is no direct change for that line)
Just make a regular click?

@fregante

Copy link
Copy Markdown
Member

What if the is no link there to go back?

I think we have to add the icon and yes, make it a regular click

Comment thread source/features/deep-blame.tsx Resolved
Comment thread source/features/deep-blame.tsx Resolved
Comment thread source/features/deep-blame.tsx Resolved
@yakov116 yakov116 changed the title WIP Add Deep-Blame Add Deep-Blame Mar 12, 2020
@yakov116
yakov116 marked this pull request as ready for review March 12, 2020 02:24
Comment thread source/features/deep-blame.tsx Resolved
@yakov116

This comment has been minimized.

@yakov116

Copy link
Copy Markdown
Member Author

I will add the loading later

@fregante

Copy link
Copy Markdown
Member

@fregante something like this

How would that work?

@yakov116

Copy link
Copy Markdown
Member Author

@fregante something like this

How would that work?

Click the button and it loads the commits

@yakov116

Copy link
Copy Markdown
Member Author

@fregante can you explain to me where the user is clicking??

@yakov116

This comment has been minimized.

@fregante

Copy link
Copy Markdown
Member
  1. On blame page, add "deep blame this commit" button on each commit that has a PR link in its title

If there’s already a “prior blame” button, use alt-click on it
If there’s no button, add it

@yakov116

yakov116 commented Mar 12, 2020 •

Copy link
Copy Markdown
Member Author

@fregante I should add a button even if there is not linked pull request? (so the link will do nothing)??

I only know to add the button AFTER the api request

@yakov116

Copy link
Copy Markdown
Member Author

That is why I added a button and then it will load all and add the links.

My reasoning is that blame pages could have dozens of commits so the query could be very large. Also because this feature isn’t meant to be used that frequently, so even if the query is light, it would be useless.

That is why I added a button so only then will it load.

Sorry for getting so frustrated, I would love to see my hard work go through and I am not understanding what is wrong.

@fregante

Copy link
Copy Markdown
Member

That is why I added a button so only then will it load.

But in the user’s eyes that button does nothing and maybe it really does nothing (if no PR commits exist on the page).

@fregante I should add a button even if there is not linked pull request? (so the link will do nothing)??

We only add the button if a PR number is in the title, so we have some degree of certainty that the commit has an associated PR. If that doesn’t work, we use an alert saying “No PRs associated with this commit” or something like that

@yakov116

Copy link
Copy Markdown
Member Author

Understand. I am changing the implementation anyways but that button would have not shown if there were no pr's

@yakov116

Copy link
Copy Markdown
Member Author

This will also let you use <button type=button>

And Remove the href right?

Comment thread source/features/deep-reblame.css Resolved
Comment thread source/features/deep-reblame.tsx Resolved
Comment thread source/features/deep-reblame.tsx Resolved
Comment thread source/features/deep-reblame.tsx Resolved
Comment thread source/features/deep-reblame.tsx Resolved
Comment thread source/features/deep-reblame.tsx Resolved
Comment thread source/features/deep-reblame.tsx Resolved
@fregante

Copy link
Copy Markdown
Member

🙌

@fregante
fregante merged commit 8a69ad5 into refined-github:master Mar 26, 2020
@yakov116

Copy link
Copy Markdown
Member Author

Wow never thought this would happen. Thanks for keeping with me! (while I have to work from home and I very busy as you can see)

@yakov116
yakov116 deleted the deep_blame branch March 26, 2020 17:04
@fregante

fregante commented Mar 28, 2020 •

Copy link
Copy Markdown
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

"Deep blame" for squashed commits

3 participants