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

Remove last traces of has-emoji class #11263

Merged
merged 4 commits into from
May 1, 2020

Conversation

mrsdizzie
Copy link
Member

Now that emojify.js has been removed, get rid of all instances of has-emoji class that was only used for that. Support for rendering shortcodes remains in all of these places so it should still work the same.

Now that emojify.js has been removed, get rid of all instances of has-emoji class that was only used for that. Support for rendering shortcodes should remain in all of these places so it should still work the same.
@lafriks
Copy link
Member

lafriks commented Apr 30, 2020

Does functions RenderCommitMessageLinkSubject and RenderCommitMessage does emoji rendering also?

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Apr 30, 2020
@lafriks lafriks added topic/ui Change the appearance of the Gitea UI issue/regression Issue needs no code to be fixed, only a description on how to fix it yourself skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. labels Apr 30, 2020
@lafriks lafriks added this to the 1.12.0 milestone Apr 30, 2020
@mrsdizzie
Copy link
Member Author

Does functions RenderCommitMessageLinkSubject and RenderCommitMessage does emoji rendering also?

Yep:

var commitMessageProcessors = []processor{
fullIssuePatternProcessor,
fullSha1PatternProcessor,
linkProcessor,
mentionProcessor,
issueIndexPatternProcessor,
sha1CurrentPatternProcessor,
emailAddressProcessor,
emojiProcessor,
emojiShortCodeProcessor,
}

(same for subject one below that too)

@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 Apr 30, 2020
Co-authored-by: 6543 <6543@obermui.de>
Copy link
Member

@6543 6543 left a comment

Choose a reason for hiding this comment

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

I did not grep recursive for 'has-emoji' jet. But this should catch some ;)

@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 May 1, 2020
@silverwind
Copy link
Member

I take it the cases where only the class was removed and nothing added were already rendering correctly?

@mrsdizzie
Copy link
Member Author

I take it the cases where only the class was removed and nothing added were already rendering correctly?

yep #11263 (comment) as an example

Copy link
Member

@6543 6543 left a comment

Choose a reason for hiding this comment

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

$ rg 'has-emoji' options/locale/locale_en-US.ini
868:issues.add_label_at = added the <div class="ui label has-emoji" style="color: %s\; background-color: %s">%s</div> label %s
869:issues.remove_label_at = removed the <div class="ui label has-emoji" style="color: %s\; background-color: %s">%s</div> label %s

@6543
Copy link
Member

6543 commented May 1, 2020

had time to rg it ;) ☝️

@mrsdizzie
Copy link
Member Author

$ rg 'has-emoji' options/locale/locale_en-US.ini
868:issues.add_label_at = added the

%s
label %s
869:issues.remove_label_at = removed the
%s
label %s

ah sneaky : ) rending for this was already fixed in template code but have removed class name from translations file

Copy link
Member

@6543 6543 left a comment

Choose a reason for hiding this comment

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

👍

@codecov-io
Copy link

Codecov Report

Merging #11263 into master will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #11263      +/-   ##
==========================================
+ Coverage   43.29%   43.31%   +0.01%     
==========================================
  Files         605      605              
  Lines       86273    86275       +2     
==========================================
+ Hits        37354    37371      +17     
+ Misses      44314    44304      -10     
+ Partials     4605     4600       -5     
Impacted Files Coverage Δ
modules/markup/html.go 79.97% <100.00%> (+0.05%) ⬆️
modules/indexer/stats/queue.go 62.50% <0.00%> (-18.75%) ⬇️
modules/indexer/stats/db.go 40.62% <0.00%> (-9.38%) ⬇️
modules/git/utils.go 65.67% <0.00%> (-4.48%) ⬇️
modules/git/repo.go 49.79% <0.00%> (-0.84%) ⬇️
models/issue.go 52.10% <0.00%> (+0.46%) ⬆️
modules/notification/webhook/webhook.go 40.20% <0.00%> (+0.58%) ⬆️
services/pull/pull.go 35.30% <0.00%> (+1.14%) ⬆️
modules/queue/unique_queue_disk_channel.go 55.76% <0.00%> (+1.92%) ⬆️
services/pull/temp_repo.go 34.18% <0.00%> (+2.56%) ⬆️
... 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 1bdffef...71d9467. Read the comment docs.

@lafriks lafriks merged commit 4ed7d2a into go-gitea:master May 1, 2020
ydelafollye pushed a commit to ydelafollye/gitea that referenced this pull request Jul 31, 2020
Now that emojify.js has been removed, get rid of all instances of has-emoji class that was only used for that. Support for rendering shortcodes should remain in all of these places so it should still work the same.

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lauris BH <lauris@nix.lv>
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/regression Issue needs no code to be fixed, only a description on how to fix it yourself lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. topic/ui Change the appearance of the Gitea UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants