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

Mention completion for issue editor. #3136

Merged
merged 7 commits into from
Dec 11, 2017
Merged

Conversation

harryxu
Copy link
Contributor

@harryxu harryxu commented Dec 10, 2017

Mention completion on issue editor. @mention engine from tribute.

Demo:

New issue:

new issue

View/Edit issue:
view issue

@lafriks lafriks added the type/feature Completely new functionality. Can only be merged if feature freeze is not active. label Dec 10, 2017
@lafriks lafriks added this to the 1.4.0 milestone Dec 10, 2017
@codecov-io
Copy link

codecov-io commented Dec 10, 2017

Codecov Report

Merging #3136 into master will increase coverage by 0.16%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3136      +/-   ##
==========================================
+ Coverage   34.57%   34.73%   +0.16%     
==========================================
  Files         276      276              
  Lines       39945    39948       +3     
==========================================
+ Hits        13809    13877      +68     
+ Misses      24155    24076      -79     
- Partials     1981     1995      +14
Impacted Files Coverage Δ
routers/repo/pull.go 34.34% <100%> (+0.08%) ⬆️
routers/repo/issue.go 31.9% <100%> (+0.12%) ⬆️
modules/indexer/repo.go 60.86% <0%> (-6.96%) ⬇️
models/issue_indexer.go 64.93% <0%> (-2.6%) ⬇️
models/repo_indexer.go 51.94% <0%> (-0.98%) ⬇️
models/error.go 33.02% <0%> (-0.62%) ⬇️
models/issue.go 44.82% <0%> (-0.21%) ⬇️
models/repo.go 41.47% <0%> (+0.18%) ⬆️
models/lfs.go 28.26% <0%> (+2.17%) ⬆️
modules/lfs/server.go 35.01% <0%> (+14.32%) ⬆️
... and 1 more

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 f2e20c8...a9aa351. Read the comment docs.

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

lafriks commented Dec 10, 2017

Can you convert tribute css to less file and include into main gitea css? Then there would be no need for additional css include

Copy link
Member

@ethantkoenig ethantkoenig left a comment

Choose a reason for hiding this comment

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

Mostly looks good, just a few minor things

@@ -351,6 +351,7 @@ func NewIssue(ctx *context.Context) {
ctx.Data["PageIsIssueList"] = true
ctx.Data["RequireHighlightJS"] = true
ctx.Data["RequireSimpleMDE"] = true
ctx.Data["RequireTribute"] = true
Copy link
Member

Choose a reason for hiding this comment

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

I believe we also should require tribute in CompareAndPullRequest

@@ -58,6 +58,33 @@
{{if .RequireDropzone}}
<script src="{{AppSubUrl}}/vendor/plugins/dropzone/dropzone.js"></script>
{{end}}

Copy link
Member

Choose a reason for hiding this comment

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

nit: delete blank line for consistency

],
noMatchTemplate: function () { return null },
menuItemTemplate: function (item) {
var user = item.original;
Copy link
Member

Choose a reason for hiding this comment

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

nit: should the function body (lines 76-81) be indented?

@harryxu
Copy link
Contributor Author

harryxu commented Dec 11, 2017

@lafriks I will check out later, but I see other JS plugin's css also included by this way.

@harryxu
Copy link
Contributor Author

harryxu commented Dec 11, 2017

@ethantkoenig Done.

@lafriks
Copy link
Member

lafriks commented Dec 11, 2017

@harryxu yes I know, this one has small css so it was just an idea, it's totally not required and not blocking this PR

@ethantkoenig
Copy link
Member

LGTM

@tboerger tboerger 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 Dec 11, 2017
@lunny
Copy link
Member

lunny commented Dec 11, 2017

LGTM

@tboerger tboerger 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 Dec 11, 2017
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.

7 participants