Commit Graph

77 Commits

Author SHA1 Message Date
Filipa Lacerda eb71b5da81
Remove modal store and mixins from global scope 2018-04-06 13:12:21 +01:00
Mike Greiling f248be7257
require jQuery to be explicitly imported 2018-03-09 15:18:09 -06:00
Kushal Pandya 611ac8e342 Make label filter URL dynamic 2018-02-28 16:41:14 +05:30
Kushal Pandya 9ca1a64191 Clear "Labels" dropdown search filter after selection 2018-02-27 17:13:04 +05:30
Kushal Pandya 936280934b Use imported `DropdownUtils` 2018-02-26 12:42:55 +05:30
Rémy Coutable 97793a1616 Harmonize CE and EE JS code
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-02-22 13:34:35 +01:00
Jacob Schatz 35c8fd5586 Update to jQuery 3. 2018-02-20 22:20:48 +00:00
Phil Hughes f165bda4ae
fixed failing specs 2018-01-31 09:27:30 +00:00
Phil Hughes 05a3479c9e
Converted labels_select.js to axios 2018-01-30 16:40:47 +00:00
Jacob Schatz 6846b70dd4 Merge branch 'label-xss-10-3' into 'security-10-3'
[10.3] Fix XSS in issue label dropdown

See merge request gitlab/gitlabhq!2253

(cherry picked from commit 363ffabcebd7bb0d1a2d59ca1a75e4eadb4a4360)

ea1fb0ea Fix XSS in issue label dropdown
2018-01-16 17:04:38 -08:00
Simon Knox 64549f7025 fix bad master merge 2017-11-02 12:09:20 +02:00
Simon Knox ad2d796353 Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into 2518-saved-configuration-for-issue-board 2017-11-01 23:20:59 +02:00
Filipa Lacerda 1fc4e2b6c6 Export logo and labels select as ES6 modules 2017-11-01 12:32:15 +00:00
Simon Knox b04b3d1de7 apply changes for JS and CSS from gitlab-ee!2912
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/2912/
2017-10-31 12:58:35 +01:00
Dmitriy Zaporozhets c7f0d2b2af Revert "Merge branch '2518-saved-configuration-for-issue-board' into 'master'"
This reverts merge request !15009
2017-10-30 19:53:14 +00:00
Oswaldo Ferreira cd784a80d7 [CE backport] Saved configuration for issue board 2017-10-30 09:10:09 +00:00
Eric Eastwood 03cd536b54 Cleanup data-page attribute after each Karma test
Fix https://gitlab.com/gitlab-org/gitlab-ce/issues/38871
2017-10-11 11:02:55 -05:00
Filipa Lacerda 7b8148220c Remove AjaxLoadingSpinner and CreateLabelDropdown from global namespace 2017-10-09 09:04:13 +00:00
Bryce Johnson ce6a02eeb4 Remove animate.js and the issuable label pulse animation.
Nobody tell @jschatz1 :P
2017-09-13 15:21:49 -04:00
Tim Zallmann dab08be606 Resolve "Specific Async Script Loading by using a Page Variable" 2017-08-03 20:31:53 +00:00
Clement Ho 974a04026d Add filtered search to group issue dashboard 2017-08-02 09:27:24 +00:00
Bryce Johnson c9a67266d2 Move issuable bulk edit form into a new sidebar. 2017-06-06 09:16:27 -04:00
Valery Sizov 387c4b2c21 Backport of multiple_assignees_feature [ci skip] 2017-05-04 17:11:53 +03:00
Kushal Pandya d586b6cced Add ES lint support to identify poorly written Promises 2017-04-20 11:11:51 +00:00
Simon Knox 67eefe7eac don't show loading spinners for server-rendered sidebar fields 2017-03-18 11:36:05 +11:00
Phil Hughes 236d6595ed Removed previous filter code 2017-03-08 14:53:18 +00:00
Mike Greiling 0f31c5a92b replace implicit this == window with explicit binding 2017-02-17 16:58:32 -06:00
Phil Hughes e4d1e1437d Added all filters 2017-02-03 18:03:40 +00:00
Fatih Acet 7ce79f3167 Merge branch 'label-select-toggle' into 'master'
Fixed label select toggle not updating correctly

Closes #26119

See merge request !8601
2017-01-25 19:54:41 +00:00
Mike Greiling ccada28f30 resolve all padded-blocks eslint violations 2017-01-18 17:16:41 -06:00
Mike Greiling e7b5945c59 resolve all semi and no-extra-semi eslint violations 2017-01-18 17:15:27 -06:00
Phil Hughes 2c45a73c8e Fixed label select toggle not updating correctly
Closes #26119
2017-01-16 16:56:53 -05:00
Alfredo Sumaran 958a499a7f Fix eslint errors 2016-12-15 18:02:45 -05:00
Fatih Acet b01a830afe Merge branch '24877-bulk-edit-only-keeps-common-labels-when-searching' into 'master'
Improve bulk assignment

This MR improves current implementation of Label dropdown when used for bulk assignment on issuable pages (/:namespace/:project/issues, /:namespace/:project/merge_requests)

Previously this dropdown relied on `<input>` tags to get its active items and also to calculate items with indeterminate state.

Relying on `<input>` tags is not enough when we want to set/get multiple states on a dropdown.

For this case we want to get/set:

- Marked items 
- Unmarked items that were initially marked
- Unmarked items that were initially indeterminate
- Items with indeterminate state.

This MR makes the Label dropdown to save its own state as `data` so it will be easy to get and set whatever state we want no matter if the dropdown is filtering which is the issue that I initially wanted to solve as you can see in the following gif.

**Before** 
![2016-12-07_11.44.48](/uploads/cb697161b8b39cdee72fdbb95a531100/2016-12-07_11.44.48.gif)

**After**
![2016-12-07_11.32.43](/uploads/338255a302de0dd1367474f33232d2a3/2016-12-07_11.32.43.gif)

As you can see in the first gif the `bug` label is removed from the selected issues but the `enhancement` label should set but the `critical` should be kept. This is fixed on the next gif.

Fixes #24877

See merge request !7765
2016-12-15 21:03:33 +00:00
Alfredo Sumaran 51b2ffaf7e Address feedback 2016-12-14 10:05:00 -05:00
Alfredo Sumaran 262fc28a7d Improve issuable's bulk assignment implementation
This fixes the case when the user wants to add a label. The user has to use the dropdown’s filter input to look for a label and click it in order to see the bug.

Step to reproduce

- Select at least two issues, one label should be present in all issues, other label should be present in at least one.

- On the label dropdown: Deselect label that is present in all issues, look for another issue using the filter input and click it.

- Click on `Update issues`

Before: Unmarked label were kept on selected issues.
Now: Unmarked label is removed from selected issues
2016-12-14 10:05:00 -05:00
Mike Greiling 8e0e902b13 resolve all instances of no-undef eslint rule violations 2016-12-14 02:11:13 -06:00
Luke "Jared" Bennett c145413d1a
Remove JSX/React eslint plugins.
Change airbnb eslint config package to `eslint-config-airbnb-base` and update plugins.

Change `airbnb` to `airbnb-base` for .eslintrc `extends` value.

Added changelog entry

Made sure all plugins and envs are set

Corrected new failing specs
2016-11-29 16:15:47 +00:00
Luke "Jared" Bennett 7cefaea876
explicitly disable eslint inline 2016-11-15 16:30:34 +00:00
Fatih Acet dd5e46ab69 Merge branch 'eslint' into 'master'
Add ESLint

## What does this MR do?

- create `package.json`
- add ESLint dependencies to `package.json`
- add JavaScript linting to CI
- add Rake task `lint:javascript`as alias for `eslint` (which itself is an alias for `npm run eslint`)

## Are there points in the code the reviewer needs to double check?

Probably not.

## Why was this MR needed?

My hovercraft was full of eels.

## What are the relevant issue numbers?

- https://gitlab.com/gitlab-org/gitlab-ce/issues/13224#note_12537431
- https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5006#note_13255658


See merge request !5445
2016-10-26 16:31:08 +00:00
winniehell 02f94cf038 disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
Phil Hughes 29645f06e7 Hides/shows the boards sidebar
Rather than constructing & then deconstructing, we know just hide & show
the sidebar. This is done so we dont' have a memory leak on the frontend
with objects getting created.
2016-10-20 08:54:33 +01:00
Phil Hughes fcf0a4a12d Merge branch 'master' into issue-board-sidebar 2016-10-19 22:33:34 +01:00
Phil Hughes f1350a5c82 Merge branch 'master' into issue-board-sidebar 2016-10-19 08:44:55 +01:00
Luke Bennett 4e028d333b
Return the title for id of 'No label' 2016-10-19 04:55:26 +01:00
Phil Hughes 25c82c6faf Updated JS to work with issue index & show 2016-10-12 17:43:20 +01:00
Phil Hughes 306e55261e Fixed filter specs 2016-10-07 11:12:02 +01:00
Phil Hughes e6fa8a3d10 Fixed sidebar dropdowns to work with Vue 2016-10-07 09:15:46 +01:00
Phil Hughes 6b3e3aeb9e Sidebar details update when changing
Need to get working the subscription
Styling updates
2016-10-07 09:14:55 +01:00
Rémy Coutable f90b5d5d43
Fix CHANGELOG and wrong conflict resolution
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-10-06 10:11:24 +02:00