Commit Graph

219 Commits

Author SHA1 Message Date
GitLab Bot 0537e77587 Add latest changes from gitlab-org/gitlab@master 2021-07-01 06:07:35 +00:00
GitLab Bot 32e1683f8b Add latest changes from gitlab-org/gitlab@master 2021-01-08 09:10:50 +00:00
GitLab Bot 5838993b5f Add latest changes from gitlab-org/gitlab@master 2020-12-23 21:10:24 +00:00
GitLab Bot 5c9f6c66fa Add latest changes from gitlab-org/gitlab@master 2020-12-23 12:10:26 +00:00
GitLab Bot 57d1bb8254 Add latest changes from gitlab-org/gitlab@master 2020-05-19 09:08:12 +00:00
GitLab Bot 0a0e82d144 Add latest changes from gitlab-org/gitlab@master 2020-02-27 00:09:19 +00:00
GitLab Bot 4aeb8a02c5 Add latest changes from gitlab-org/gitlab@master 2019-12-23 12:08:18 +00:00
GitLab Bot 898e2cc1df Add latest changes from gitlab-org/gitlab@master 2019-12-20 09:24:38 +00:00
GitLab Bot fc53ce8e6c Add latest changes from gitlab-org/gitlab@master 2019-12-12 09:07:48 +00:00
GitLab Bot 93c6764dac Add latest changes from gitlab-org/gitlab@master 2019-12-09 12:07:58 +00:00
GitLab Bot 10d0e5693c Add latest changes from gitlab-org/gitlab@master 2019-12-03 00:06:28 +00:00
GitLab Bot d9251dac4c Add latest changes from gitlab-org/gitlab@master 2019-11-14 06:06:26 +00:00
GitLab Bot 2abb1b54c0 Add latest changes from gitlab-org/gitlab@master 2019-09-27 18:06:20 +00:00
Kushal Pandya 6044b3ed1e Add `searchBy` helper & `SidebarItemEpicsSelect`
- Adds `searchBy` util in common utils
- Adds placeholder `SidebarItemEpicsSelect`
2019-08-22 17:58:44 +05:30
Filipa Lacerda f305081c29 Merge branch '61910-common_utils_spec-js-fails-locally-on-master-for-roundofffloat' into 'master'
Resolve "common_utils_spec.js fails locally for roundOffFloat"

Closes #61910

See merge request gitlab-org/gitlab-ce!28963
2019-06-05 09:01:39 +00:00
Paul Gascou-Vaillancourt 6ca5b19aaf Add global isSafeURL utility
- Added isSafeURL utility based on prior work in gitlab-ee
- Also added isAbsoluteOrRootRelative() and getBaseURL() utils,
  needed by isSafeURL
- Removed URL() fallback because URL() is now polyfilled
- Updated specs
2019-06-03 08:10:34 -04:00
jboyson1 fa89a6089e Fix broken floating point tests
Update tests to use toBeCloseTo instead of toBe for
floating point checks.

More info here:
https://jestjs.io/docs/en/expect#tobeclosetonumber-numdigits
2019-05-30 21:48:40 -05:00
Paul Gascou-Vaillancourt dade5a44ec Throw an error when formatDate's input is invalid 2019-05-28 07:53:44 +00:00
Rajat Jain b5ab1d91e3 Display scoped labels in Issue Boards
This change brings new Scoped labels to Issue board as well.
With the last change, this was missed.
2019-04-15 09:58:30 +00:00
Sam Bigelow bf47270e90 Improve diff navigation header
- Compare versions header is full width except in the unified diff mode
with no tree sidebar
  - Bar is always full width, but the content within stays centered when
unified and no tree sidebar
- File header is the same height as the "Compare versions header"
- aligns with the design system grid guidelines => 56px
- Diff file headers use a button group, switch icon order to open file
externally being the last option, all buttons will become icon buttons
(icon delivery by @dimitrieh)
- If a file header becomes sticky no rounded corner/double border
problem is visible anymore
2019-04-05 14:57:01 -04: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
Sam Bigelow a9441396da Scroll to diff file when clicking on file name
- Add an ID to the diff content
- handle clicking on file name in diffFileHeader when it is not a link
to another page but rather a link to an element on the page
2019-03-29 14:56:53 -04:00
Winnie Hellmann 514ee63826 Move some tests from Karma to Jest 2019-03-23 17:53:46 +01:00
Filipa Lacerda 700ae637d2 Moves utility function into CE 2019-03-01 11:27:39 +00:00
Filipa Lacerda 1c30b12b86 Merge branch 'sh-fix-double-xhr-pipelines' into 'master'
Remove duplicate XHR request when requesting new pipeline page

Closes #58095

See merge request gitlab-org/gitlab-ce!25506
2019-02-25 09:39:18 +00:00
Stan Hu ec5bbd27f5 Remove duplicate XHR request when requesting new pipeline page
When a user clicked on another page in the pipeline page, the following
would happen:

1. PipelinesService.getPipelines() would be called to fetch the new page
2. In the success handler, Poll.restart() would be called
3. This would invoke Poll.makeRequest(), which would fire off a new
request.

To fix this, we introduce a enable(), which will:

1. Update the request data accordingly
2. Clear the old timeout if necessary and start a new timer

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/58095
2019-02-23 21:27:53 -08:00
Winnie Hellmann 532d43d52c Remove convertPermissionToBoolean() from common_utils.js 2019-02-21 11:05:16 +01:00
Winnie Hellmann 69f9ec77c2 Move ajax_cache_spec.js to Jest 2019-02-21 09:39:59 +01:00
Constance Okoghenun 123da43182 CE Port of fix for roadmap forward timeline scroll
EE MR: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/9530
2019-02-13 20:37:08 +01:00
Nick Thomas 041316636b Merge branch 'fix-repo-settings-file-upload-error' into 'master'
Fix bug causing repository mirror settings UI to break

Closes #55134

See merge request gitlab-org/gitlab-ce!23712
2019-02-07 12:27:08 +00:00
Adriel Santiago b3bd24053e
Use svg icon for deployment series
Use the rocket GitLab SVG to show deployment data
2019-02-05 08:15:57 -05:00
Phil Hughes 97041bb6c4 Merge branch 'fe-grammar-util' into 'master'
FE grammar util

See merge request gitlab-org/gitlab-ce!24893
2019-02-05 10:33:47 +00:00
Paul Slaughter 9cfb253ed4
Add grammar util
This contains the function `toNounSeriesText` which can be used to build
i18n noun series fragments (i.e. "A, B, and C").
2019-02-04 11:17:33 -06:00
Adriel Santiago c974f4a82e
Handle window and container resize events
Resizes metrics graph on window and sidebard width changes
2019-02-04 08:04:45 -05:00
Kushal Pandya 93e58bf9b5 Support for ignore rules in 'convertObjectPropsToCamelCase' helper
Does following enhancements to `convertObjectPropsToCamelCase` helper;
- Adds support for `dropKeys` within  options param
to discard properties.
- Adds support for `allowKeys` within options param
to skip converting property names.
2019-01-31 17:02:46 +05:30
Lukas Eipert 91df6d9ef4
Make favicon tests more fault resistent
It seems like every new version of Chrome renders the favicon canvas
differently. This reduces the problems with it by creating a more fault
tolerant check, which compares the color values in the pixels and is
okay if they are within a certain threshold.
2019-01-21 20:48:55 +01:00
Winnie Hellmann 159c18221d Make parseBoolean idempotent 2019-01-15 06:04:37 +00:00
Scott Escue 87c571f8a3
Addressing feedback from most recent reviews. 2019-01-10 00:00:39 -06:00
Scott Escue 2cbc475e53
Fixing static analysis issues 2019-01-10 00:00:39 -06:00
Scott Escue a3541a8d8d
Removing the URL manipulation functions added to 'common_utils.js' in favor of the functions that already existed in 'url_utility.js'. Refactoring 'removeParams' function in 'url_utility.js' to allow url to be passed and to preserve the original host and/or path provided in the url. 2019-01-10 00:00:39 -06:00
Scott Escue 4dcaa4df36
Addressing peer review feedback.
Replacing inline JS with ES 2015 functions included in pages/sessions/new. Also applying suggested server-side syntax improvements to OmniAuthCallbacksController.
2019-01-10 00:00:39 -06:00
Fatih Acet 5106f88a48 Merge branch 'kp-7325-add-lib-helpers' into 'master'
CE Backport: Add library helpers to use in Roadmap

See merge request gitlab-org/gitlab-ce!24232
2019-01-08 15:06:20 +00:00
Kushal Pandya 2bb73dab72 Add `newDate` helper, update `getTimeframeWindowFrom`
Adds `newDate` helper to copy date object without keeping reference.
Adds negative length support in `getTimeframeWindowFrom` to go
back in time.
2019-01-08 19:41:57 +05:30
Kushal Pandya 214d741ba5 Add support for `offset` values in `isInViewport` 2019-01-08 18:37:21 +05:30
Phil Hughes 12edecd002
Add headers to files in the tree list on merge requests
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/54807
2019-01-08 09:31:23 +00:00
Luke Bennett 6b466e3873
Fix bug causing repo mirror settings UI to break
Fixes an exception relating to the new project
cleanup settings in 11.6 that causes the mirror
repo settings UI to become unusable.
2019-01-08 06:25:23 +00:00
Sam Bigelow 066a99b6e9 Add markdown buttons to file editor
Currently, we have markdown files in many places (e.g. comments, new
issues, etc.). This Merge Request detects if the file being edited is a
markdown file and adds markdown buttons and their functionality to the
single file editor (Not the web IDE)
2019-01-02 08:24:32 -08:00
Tim Zallmann ddd4cc649f Resolve "Extended user centric tooltips" 2018-12-08 03:12:23 +00:00
Paul Slaughter 38431c8f99 CE Port of "Web Terminal FE" 2018-12-07 16:29:32 +00:00
Nick Thomas 9395d198f9
Use BFG object maps to clean projects 2018-12-06 18:58:00 +00:00