Commit graph

20 commits

Author SHA1 Message Date
Gabriel Mazetto 5a53eda481 Generate Tanuki Emoji assets 2021-10-14 04:24:35 +02:00
Gabriel Mazetto 52be04048d Refactor codebase to use unicode_version from TanukiEmoji 2021-10-14 02:52:44 +02:00
Michael Lunøe b72c2c4d9e Refactor(CI Minutes): use customer graphql client 2021-04-22 14:41:25 +00:00
Phil Hughes a1857dcdac
Revert "Merge branch 'ph/15744/reorderEmojiMenu' into 'master'"
This reverts commit 8a2b454585, reversing
changes made to 55250a64ff.
2021-03-17 08:26:57 +00:00
Phil Hughes b7f5dd5baf Updates the gemojione ruby gem
Updating the gem brings with it the correct sorting
of emoji for the award menu.

Closes https://gitlab.com/gitlab-org/gitlab/-/issues/15744
2021-03-16 16:52:07 +00:00
Alex Kalderimis 8412bdf4e4 This uses more sophisticated client query processing
Rather than skipping all queries that use the @client directive, we
instead remove all such fields (and any arguments and fragments
mentioned in the skipped sections) and then only skip the query if that
then leaves us with an empty query.

The query transformation is handled with a query printer.
2021-01-06 18:24:31 +00:00
Alex Kalderimis 6f54567cce Add GraphQL verification tooling
This adds query validation for GraphQL, exposed in
a new raketask (`gitlab:graphql:validate`).

Tests are added for the validation system, which handles common patterns
in our front-end code (such as Apollo client directives, and the use of
ee_else_ce).

The new graphql files used in the tests are excluded from prettier
formatting.

A couple of clearly incorrect graphql files (discovered during testing)
have been fixed. One remaining one has been marked as a known failure.
2021-01-06 18:24:18 +00:00
Yoginth 2f6a20ce66 Fix typos in the whole gitlab-ce project 2019-05-20 14:11:44 +00:00
Eric Eastwood ce1a1aa1f6 Move :gay_pride_flag: to flags category 2017-11-15 07:36:19 -06:00
Eric Eastwood b5b3586543 Regenerate emoji digests with latest gemojione 2017-11-14 16:14:02 -06:00
Phil Hughes dc2f702a04 Added emoji description title to award emoji buttons
Closes #29971
2017-04-24 14:24:48 +01:00
Eric Eastwood 3403bdc5f2 Fix reference to node_modules in built package
Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/29192

See https://gitlab.slack.com/archives/frontend/p1488973548024005
2017-03-08 10:41:16 -06:00
Eric Eastwood e6fc0207cb Use native unicode emojis
- gl_emoji for falling back to image/css-sprite when the browser
   doesn't support an emoji
 - Markdown rendering (Banzai filter)
 - Autocomplete
 - Award emoji menu
    - Perceived perf
    - Immediate response because we now build client-side
 - Update `digests.json` generation in gemojione rake task to be more
   useful and  include `unicodeVersion`

MR: !9437

See issues

 - #26371
 - #27250
 - #22474
2017-03-06 12:54:46 -06:00
Connor Shea 6a06c5cfb9
Upgrade Gemojione from 2.6.1 to 3.0.1.
This adds the 2016 emoji as well as support for using SVG images instead of PNGs.

It also fixes a number of incorrectly categorized emoji and other minor issues.

Upgrade Rake task for Gemojione 3.0.0 and generate sprites.

Upgrade aliases.json by pulling down index.json from the gemojione repository and running the generate_aliases.rb file.

Changelog: https://github.com/jonathanwiesel/gemojione/blob/master/CHANGELOG.md#v301-2016-07-16

For the specific emoji added to the Unicode standard, see: http://emojione.com/releases/2.2.4/

Huge kudos to Jonathan Wiesel (@jonathanwiesel) for his work on the gemojione gem!
2016-07-18 10:40:16 -06:00
Connor Shea f31f78cea3
Add emoji.rb in lib/gitlab instead of using the gitlab_emoji gem.
No reason to split it into a separate gem when the gem barely did anything. We can use gemojione directly, making updating gemojione that much easier.

Also fix the Rake task and update gemojione to 2.6.1. This adds the EmojiOne Spring update.

Changelog: https://github.com/jonathanwiesel/gemojione/blob/master/CHANGELOG.md
2016-06-29 14:53:09 -06:00
Arinde Eniola 1d1ca8b9c2 fix emoji aliases not showing in autocomplete 2016-04-09 13:29:37 +01:00
Yorick Peterse 5830d80b8d Pre-calculate Emoji digests
By pre-calculating the digests we can manually construct the emoji URLs,
removing the need for using Rails' asset URL helpers. The reason we
don't want to use these helpers for Emojis is two-fold:

1. Rails' image_url() method is slow, really slow. For one it _might_
   have to calculate digests but it also performs a lot of other
   intensive operations (judging by the source code and based on
   measuring timings).

2. We have a lot of Emoji which coupled with the above can result in it
   taking minutes to load Emoji autocomplete data.

Using this pre-calculation setup generating the digests takes around 7
seconds (including the time it takes to start Rails/Rake), and only
around 600 milliseconds to load _all_ the autocomplete data of a project
(measured locally).

This commit _does_ change the Emoji URLs from absolute to relative URLs
as these are much easier to generate.

To update the Emoji data simply run:

    rake gemojione:digests

Then commit any changes.

Fixes gitlab-org/gitlab-ce#14009
2016-03-30 19:29:17 +02:00
Robert Speicher bbdf05993b Update fixtures/emojis/aliases.json
Also adds a script to re-generate them from the index.
2016-02-15 23:41:44 -05:00
Robert Speicher 262286936a Update fixtures/emojis/index.json
Current as of Gemojione 2.2.1 - https://git.io/vgQx0
2016-02-15 23:41:42 -05:00
Valery Sizov b6de0d2830 Emoji picker: better alias handling 2015-12-24 11:28:55 +02:00