Commit Graph

340 Commits

Author SHA1 Message Date
Paul Gascou-Vaillancourt 4e6d6877f7 Update pagination prev and next texts 2019-06-20 16:35:50 -04:00
Mike Greiling 9fa2b65787 Merge branch 'fe-vue-test-utils-for-tooltip-on-truncate-spec' into 'master'
Use @vue/test-utils for tooltip_on_truncate_spec

See merge request gitlab-org/gitlab-ce!29249
2019-06-19 15:52:32 +00:00
Paul Slaughter 9f52a00eb2
Use @vue/test-utils for tooltip_on_truncate_spec 2019-06-17 16:54:33 -05:00
Phil Hughes d2fd6bd510
Added diff suggestion popover
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/56523
2019-06-14 14:01:24 +01:00
Dmitriy Zaporozhets 14b0a46272 Use scoped routes for labels and milestones
Update frontend code to use /-/ scope for milestones and labels routes

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2019-06-13 23:39:39 +00:00
Filipa Lacerda 442dce052a Moves table pagination component
Move the table paginaiton component under the
new pagination folder in vue shared components
and updates all the paths
2019-06-12 10:19:36 +01:00
Filipa Lacerda 18b906c026 Creates pagination component graphql
creates a pagination component for
the graphql api
2019-06-11 16:35:46 +01:00
Mike Greiling 96725938c0 Merge branch 'fe-rename-vue-component-helper-ce' into 'master'
[CE Port] Rename vue_component_helper to text_helper

See merge request gitlab-org/gitlab-ce!28358
2019-05-20 20:06:34 +00:00
Yoginth 2f6a20ce66 Fix typos in the whole gitlab-ce project 2019-05-20 14:11:44 +00:00
Paul Slaughter 878e69299b
Rename vue_component_helper to text_helper
**Why?**
This file only contains a few text based helper functions.
It has nothing to do with Vue or Vue components.
2019-05-16 06:40:18 -05:00
Paul Slaughter d24d77a93a
Resolve discussion when suggestion is applied
- Adds color and a tooltip to describe this new behavior
- Does not resolve if discussion is already resolved
- Adds an action `resolveDiscussion` to simplify `toggleResolveNote`
- Updates docs

https://gitlab.com/gitlab-org/gitlab-ce/issues/54405
2019-05-07 00:00:40 -05:00
Kushal Pandya cba91e9a80 Merge branch 'refactor/58830-migrate-sidebar-spec-to-jest' into 'master'
refactor(sidebar): Refactored shared sidebar component tests to Jest

Closes #58830

See merge request gitlab-org/gitlab-ce!27688
2019-04-30 17:25:33 +00:00
Clement Ho 0af0e0fb1d Merge branch 'winh-move-static-fixtures' into 'master'
Move all static fixtures to static directory

See merge request gitlab-org/gitlab-ce!27668
2019-04-26 14:36:23 +00:00
Martin Hobert 4848c32ea0 refactor(sidebar): Refactored Karma spec files to Jest
fix #58830

Added changelog

Updated to use jest functions

Added mock implementation
2019-04-26 14:54:20 +02:00
Kushal Pandya c4340c652b Merge branch 'refactor/58827-migrate-issue-spec-to-jest' into 'master'
Migrated issue spec files to Jest

Closes #58827

See merge request gitlab-org/gitlab-ce!27673
2019-04-26 04:48:35 +00:00
Martin Hobert 396dbbd415 refactor(issue): Refactored issue tests from Karma to Jest
re #58827

Added changelog

Added sync false, and removed unneeded destroyers
2019-04-25 16:33:40 +02:00
Martin Hobert c005c97914 test(Refactored notes tests from Karma to Jest):
fix #58829

Added changelog entry

Added merge request id
2019-04-25 14:21:38 +00:00
Winnie Hellmann d152a74ce3 Move all static fixtures to static directory 2019-04-25 13:56:32 +02:00
Tim Zallmann 0edd8a6e93 Merge branch '60387-use-icons-in-user-popovers' into 'master'
Show category icons in user popover

Closes #60387

See merge request gitlab-org/gitlab-ce!27254
2019-04-24 19:55:14 +00:00
Phil Hughes 712a63a745 Merge branch '59514-uploading-images-base64' into 'master'
Resolve "Web IDE uploading images shows base64 string"

Closes #59514

See merge request gitlab-org/gitlab-ce!27471
2019-04-23 07:38:39 +00:00
ftab 3dfd2451b0 Make swipe view images line up
If left without a width/height, swipeFrame goes off track when the image
isn't wide enough to fill the available width. The spaceLeft prevented
reaching the right edge of the image.
2019-04-23 07:25:06 +00:00
Kushal Pandya 2d58213f09 Show category icons in user popover
Show bio, organization and location icons within user popover.
2019-04-22 12:39:19 +05:30
Denys Mishunov 5e2d50aa18 Passes file type down to ContentViewer
Instead of ContentViewer attempts to compute file type and render
appropriate viewer type, compute it on the parent RepoEditor having all
file-related information at its disposal and pass it down to
ContentViewer as a prop
2019-04-17 23:57:29 +02:00
Filipa Lacerda 9ba30fc55d Merge branch '10083-dropdown-ce-ee-difference' into 'master'
Removes EE diffs for dropdown_value_collapsed.vue

Closes gitlab-ee#10083

See merge request gitlab-org/gitlab-ce!27367
2019-04-17 09:02:17 +00:00
George Tsiolis 579fa8b8ec Rename CI related selectors 2019-04-16 12:57:07 +03:00
Denys Mishunov ee7d2298e5 Removes EE diffs for dropdown_value_collapsed 2019-04-15 11:54:35 +02:00
Filipa Lacerda 941e00121c Merge branch 'ce-9262-move-project-search-bar-into-modal-dialog-on-operations-dashboard-page' into 'master'
CE backport: Add reusable project_selector component

See merge request gitlab-org/gitlab-ce!25036
2019-04-05 16:25:45 +00:00
Sean McGivern 934dabaf6d Merge branch 'keyval-labels' into 'master'
[CE] Add mutually exclusive labels

See merge request gitlab-org/gitlab-ce!26804
2019-04-05 10:28:19 +00:00
Paul Slaughter c1a097e1ce
Refactor new_dropdown/index to receive isOpen prop
**Why?**

Previously it managed this as an internal data property, but there
was extra complexity involved because the component doesn't have
all the information it needs (i.e. the `mouseOver` prop).

This is a good opportunity to colocate the data prop with the component
that has the information to change it (i.e. `file_row`) and let
`new_dropdown/index` receive this value as a prop.
2019-04-04 15:35:45 -05:00
Oswaldo Ferreira e540c0d71e Fixed test specs
- added suggestions to mock data
- fixed props to be not required
2019-04-04 13:08:34 +00:00
Rajat Jain 97ab853996 [frontend] backport of scoped labels
Scoped labels in EE require additional changes in CE code.
2019-04-04 08:06:48 +02:00
mfluharty eb95100c06
Make corrections to address review feedback
Refactor tests to follow conventions
Add XSS test
Eliminate a few unnecessary lines, comments, and parameters
Use Vue.set for nested state changes
2019-04-02 23:58:20 -06:00
Nathan Friend 06b88af046
Add reusable project_selector component
This commit adds a resuable UI component that allows a user to search
for a project name, shows the search results, and allows the user to
select one or more projects.  This component communicates with its
parent using props and events.

This component was originally created for use in the EE-specific
"Operations Dashboard" page, but it is applicable for CE use cases as
well, and so was added as a CE shared component.

In addition, some logic was extracted from the frequent_items_list_item
component into shared filters to avoid logic duplication.
2019-04-02 23:58:01 -06:00
Annabel Dunstone Gray 01c40ae29f Merge branch 'dm-md-css' into 'master'
Untangle Markdown/Diffs/Notes CSS mess

See merge request gitlab-org/gitlab-ce!26493
2019-03-26 16:40:25 +00:00
Winnie Hellmann ad985a7a28 Merge branch 'winh-remove-sushi' into 'master'
Remove .raw from JavaScript fixture file names

Closes #59201

See merge request gitlab-org/gitlab-ce!26430

(cherry picked from commit 79a45f7f02)
2019-03-26 16:03:28 +00:00
Douwe Maan 63792707f9
Remove now-unnecessary md-preview class 2019-03-26 14:35:43 +01:00
Winnie Hellmann 514ee63826 Move some tests from Karma to Jest 2019-03-23 17:53:46 +01:00
Filipa Lacerda 022968764c Revert "Merge branch 'winh-remove-sushi' into 'master'"
This reverts merge request !26430
2019-03-22 11:03:15 +00:00
Mike Greiling 79a45f7f02 Merge branch 'winh-remove-sushi' into 'master'
Remove .raw from JavaScript fixture file names

Closes #59201

See merge request gitlab-org/gitlab-ce!26430
2019-03-21 19:46:55 +00:00
Winnie Hellmann 3e9bb4ad31 Remove .raw from JavaScript fixture file names
There is nothing more to say but

"Commits that change 30 or more lines across at least three files
must describe these changes in the commit body"
2019-03-21 17:16:53 +01:00
Nathan Friend a24cb6de02
Update pipeline list view
This commit updates the pipeline page  and related components to include
new pipeline information added by the post-merge pipeline feature.
2019-03-20 12:39:27 -03:00
Brandon Labuschagne 193362482d Fix failing tests
A number of the karma tests looked for the .fa-spinner class or the
icon element used for the font awesome spinner class.

These instances have been refactored to now look for the .spinner
class instead.
2019-03-18 14:09:07 +02:00
Phil Hughes 8c2a5b75d2 Merge branch '57991-frontend-pagination-needs-to-handle-cases-where-the-x-total-pages-header-isn-t-present' into 'master'
Improve the JS pagination to handle the case when the `X-Total` and `X-Total-Pages` headers aren't present

Closes #57991

See merge request gitlab-org/gitlab-ce!25601
2019-03-01 14:30:21 +00:00
Fatih Acet 529c570c02
Move related issues shared components from EE
We will rewrite Related MRs widget in CE with Vue.
It’s pretty much the same with Related Issues in EE.
I made EE only components reusable and this is the CE
backward compatability commit.

Links:

Issue: https://gitlab.com/gitlab-org/gitlab-ce/issues/57662
MR: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/9730
2019-03-01 12:49:16 +01:00
Rémy Coutable d9dd52092f
Make JS pagination handle missing 'X-Total-Pages' header
Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-02-28 13:42:55 +01:00
Clement Ho d63483a2da Fix inconsistent pagination styles 2019-02-27 10:16:46 +00:00
Filipa Lacerda fea813ab93 Merge branch 'diff-tree-resizable' into 'master'
Make the file tree in merge requests resizable

Closes #51857

See merge request gitlab-org/gitlab-ce!25097
2019-02-18 12:53:03 +00:00
Natalia Tepluhina bf8f32da7f Replaced part of diff file properties with diff viewer
- replaced file.too_large
- replaced file.text
- replaced file.collapsed
2019-02-15 17:56:50 +00:00
Phil Hughes d17de657fe
Make the file tree in merge requests resizable
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/51857
2019-02-15 10:33:33 +00:00
Phil Hughes 9a642f7adc
Fixes alignment of changed icon in Web IDE
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/57649
2019-02-13 16:01:32 +00:00