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

2939 multiline commit message #2944

Closed

Conversation

makarchuk
Copy link
Contributor

View of multiline commit messages as tooltips.
Fixes #2939

@codecov-io
Copy link

codecov-io commented Nov 20, 2017

Codecov Report

Merging #2944 into master will decrease coverage by 0.41%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2944      +/-   ##
==========================================
- Coverage   27.24%   26.82%   -0.42%     
==========================================
  Files          89       90       +1     
  Lines       17640    17807     +167     
==========================================
- Hits         4806     4777      -29     
- Misses      12146    12351     +205     
+ Partials      688      679       -9
Impacted Files Coverage Δ
models/issue_list.go 50.6% <0%> (-12.45%) ⬇️
models/webhook.go 46.9% <0%> (-0.91%) ⬇️
models/issue_indexer.go 7.79% <0%> (-0.32%) ⬇️
models/error.go 18.62% <0%> (-0.31%) ⬇️
routers/user/setting.go 0% <0%> (ø) ⬆️
models/webhook_dingtalk.go 0% <0%> (ø)
modules/process/manager.go 73.91% <0%> (+4.34%) ⬆️

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 7e6c198...ac18b53. Read the comment docs.

@tboerger tboerger added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Nov 20, 2017
Copy link
Member

@lafriks lafriks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also title should be added page.tmpl element <h3> where commit message is rendered

@@ -60,7 +60,7 @@
</a>
</td>
<td class="message collapsing">
<span class="has-emoji{{if gt .ParentCount 1}} grey text{{end}}">{{RenderCommitMessage .Summary $.RepoLink $.Repository.ComposeMetas}}</span>
<span class="has-emoji{{if gt .ParentCount 1}} grey text{{end}}" title={{.Message}}>{{RenderCommitMessage .Summary $.RepoLink $.Repository.ComposeMetas}}</span>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quotes seems to be missing

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added the quotes and title in page.tmpl

@lafriks lafriks added this to the 1.x.x milestone Nov 21, 2017
@lafriks lafriks added the type/enhancement An improvement of existing functionality label Nov 21, 2017
@lafriks
Copy link
Member

lafriks commented Nov 21, 2017

It still seems strange to me that attribute value contains newlines. It needs to be verified that it works on all supported browsers

@makarchuk
Copy link
Contributor Author

If it helps: These are my screenshots from chrome and Firefox (newest versions both) on my ubuntu
screenshot from 2017-11-22 00-35-51
screenshot from 2017-11-22 00-33-34
screenshot from 2017-11-22 00-35-30
screenshot from 2017-11-22 00-35-17

@lafriks
Copy link
Member

lafriks commented Nov 21, 2017

Yes on these were also I tested :) I'm more worried about Safari and IE on windows. These are usually the most problematic ones

@sondr3
Copy link
Contributor

sondr3 commented Nov 21, 2017

I don't really like the idea of viewing multiline commits in a tooltip, both GitHub and GitLab show multiline commits with a ... button you press to expand the commit message into full view. First off it makes viewing the history harder if you want to open multiple commits and view their messages, you can't easily copy commit messages or potential names or emails from contributor/whoever signed off on the commit and the discoverability is poor, I would never consider hovering over commit messages to get the full body in a tooltip, if it was a multiline commit I'd expect there to be some kind of sign that enables me to view the full message.

@makarchuk
Copy link
Contributor Author

I can try and implement this, but I'm new to a project, so I might need some guidance.
I haven't found any information on how we cook JS. Is it just good old JQuery(So I can just modify in project files and it'll be all good) or some kind of fancy modern framework?
Is it acceptable to use onclick on HTML elements or I should use jq $('SELECTORHERE').click(...)?

@lunny
Copy link
Member

lunny commented Nov 22, 2017

@makarchuk you can use vue.js

@sondr3
Copy link
Contributor

sondr3 commented Nov 22, 2017

I'd love to help but I'm in the middle of all my exams for this semester, I can help over Christmas if this is still open 😃

@lafriks
Copy link
Member

lafriks commented Nov 22, 2017

@sondr3 jQuery for this would be ok

@sondr3 sondr3 mentioned this pull request Nov 26, 2017
@sondr3
Copy link
Contributor

sondr3 commented Nov 26, 2017

I've created my own version of multiline commits in #2980, but the implementation is very rough and not finished, I'd love if any of you would give me a helping hand.

@sondr3
Copy link
Contributor

sondr3 commented Nov 28, 2017

My own version is now done (or so I hope), if any of you would like to test it I'd really appreciate it.

@lafriks
Copy link
Member

lafriks commented Nov 28, 2017

Closing this as other PR has implemented this with expandable button

@lafriks lafriks closed this Nov 28, 2017
@lafriks lafriks removed this from the 1.x.x milestone Nov 28, 2017
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. type/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multiple-Line commit message
6 participants