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

Comment - Reference in new issue #14366

Merged
merged 11 commits into from
Jan 21, 2021
Merged

Conversation

KN4CK3R
Copy link
Member

@KN4CK3R KN4CK3R commented Jan 17, 2021

Implemented feature request #14315.

This PR implements the "Reference in new issue" feature from GitHub. Also I added the context menu for inline file comments in the PR conversation tab. (was already added with #14339)

grafik
grafik

@codecov-io
Copy link

codecov-io commented Jan 17, 2021

Codecov Report

❗ No coverage uploaded for pull request base (master@ca63a9d). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #14366   +/-   ##
=========================================
  Coverage          ?   41.85%           
=========================================
  Files             ?      744           
  Lines             ?    79746           
  Branches          ?        0           
=========================================
  Hits              ?    33375           
  Misses            ?    40861           
  Partials          ?     5510           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ca63a9d...dbcd9ab. Read the comment docs.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jan 17, 2021
@lafriks
Copy link
Member

lafriks commented Jan 18, 2021

Imho best would be to get comment content like it is already done in quote reply not generate input values. Also there is not much point generate dialog form for each comment, one should be enough in page

@a1012112796 a1012112796 added the type/feature Completely new functionality. Can only be merged if feature freeze is not active. label Jan 18, 2021
@lunny
Copy link
Member

lunny commented Jan 18, 2021

The UX needs more thinking. Could we currently only support create an issue on the same repository? So that it will be easier that you could jump to a new issue page with quoted content like @lafriks said.

modules/templates/helper.go Outdated Show resolved Hide resolved
templates/repo/issue/view_content/context_menu.tmpl Outdated Show resolved Hide resolved
web_src/js/index.js Outdated Show resolved Hide resolved
web_src/js/index.js Outdated Show resolved Hide resolved
@6543 6543 added this to the 1.14.0 milestone Jan 19, 2021
@kdumontnu
Copy link
Contributor

kdumontnu commented Jan 20, 2021

See PR #14406 for improved dropdown alignment.

I tested this on my local system and it works like a charm!

I still prefer adding a button in line with "Resolve conversation" as shown below. Reason being: the workflow for the user is more clear. That is, a developer has 3 options to handle a conversation:

  • Reply - continue the conversation
  • Resolve - close the conversation
  • Reference - escalate the conversation beyond the scope of the existing thread

image

Given this, I would also suggest that the "create issue" action does not navigate to the new issue, but instead just closes the modal. I find it actually disrupts the workflow by taking the user away from the original thread, especially given the link will be added below "user referenced this pull request from link to issue X minutes ago".

In any case, these are just my humble opinions, so feel free to take as you wish. I think either way this PR resolves the feature request - I would approve if I had such powers 🥇

@KN4CK3R
Copy link
Member Author

KN4CK3R commented Jan 20, 2021

I don't like the thrid button because there isn't much space. If the conversation was marked as resolved the text gets broken etc.
grafik

What do you think about this?
grafik

In the drop down menu the button doesn't take additional space.

@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jan 20, 2021
@kdumontnu
Copy link
Contributor

I don't like the thrid button because there isn't much space. If the conversation was marked as resolved the text gets broken etc.

I would apply white-space: nowrap to the text handle that case in general (probably also needs a little margin above)

What do you think about this?

I think it's better than in the context menu, but still a bit confusing. I would remove "conversation" from the copy. Honestly, I think it could be removed from the previous button too.

image
As before, if you're uncomfortable with these changes I can try to apply them in a future PR.

@KN4CK3R
Copy link
Member Author

KN4CK3R commented Jan 20, 2021

I am undecided. Personally I like the drop down menu.

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jan 21, 2021
@6543 6543 merged commit 56a8929 into go-gitea:master Jan 21, 2021
@go-gitea go-gitea locked and limited conversation to collaborators Mar 11, 2021
@KN4CK3R KN4CK3R deleted the feature-reference-in-issue branch April 6, 2021 20:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/feature Completely new functionality. Can only be merged if feature freeze is not active.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants