Commit Graph

11 Commits

Author SHA1 Message Date
Jarka Košanová a68c991c32 Remove instance autocomplete_service variable 2018-11-06 17:24:44 +01:00
Fabian Schneider b55c320c89 Resolve "Drop down filter for project snippets" 2018-10-05 09:42:38 +00:00
gfyoung 12ee2753c1 Enable even more frozen string in app/controllers
Enables frozen string for some vestigial files as
well as the following:

* app/controllers/projects/**/*.rb
* app/controllers/sherlock/**/*.rb
* app/controllers/snippets/**/*.rb
* app/controllers/users/**/*.rb

Partially addresses #47424.
2018-09-25 22:43:49 -07:00
Peter Leitzen 82337dd684 Implement QuickActions::TargetService 2018-08-10 16:45:11 +02:00
Peter Leitzen 9b95fe78ae Move finding autocompletion targets into AutocompleteService 2018-08-10 16:45:11 +02:00
Peter Leitzen d23fbbc692 Build noteables in AutocompleteSourcesController#target 2018-08-10 16:45:11 +02:00
Mark Chao 389a22e7b7 Backport of EE changes in https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/6195
Refactor AutocompleteSources#label:

1. The return value was inconsistent, sometimes returning a hash and sometimes returning an ActiveModel.
2. It was inconsistent with respect to other methods in the class since they all return ActiveModels.
2018-07-06 17:03:39 +08:00
Bob Van Landuyt 148816cd67 Port `read_cross_project` ability from EE 2018-02-22 17:11:36 +01:00
Vitaliy @blackst0ne Klachkov 68f0092c8f Limit autocomplete menu to applied labels 2017-11-28 14:51:03 +11: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
Luke Bennett 1356e40f22
Changed autocomplete_sources into an action that returns a single 'at' type of sources at a time
Finished up autocomplete_sources action and added frontend to fetch data only when its needed

Added wait_for_ajax to specs

Fixed builds and improved the setup/destroy lifecycle

Changed global namespace and DRYed up loading logic

Added safety for accidentally loading data twice

Removed destroy as its not necessary and is messing with click events from a blur race condition

Created AutocompleteSourcesController and updated routes

Fixed @undefined from tabbing before load ends

Disable tabSelectsMatch until we have loaded data

Review changes
2016-12-15 15:20:33 +00:00