Commit Graph

195 Commits

Author SHA1 Message Date
Mike Greiling d66d548ce2 Merge branch '50527-forward-to-chrome-69' into 'master'
Forward build image to use Chrome 69

Closes #50527

See merge request gitlab-org/gitlab-ce!21586
2018-09-07 20:38:52 +00:00
Tim Zallmann 44cb8a7407 Merge branch 'boards-querystring-backport' into 'master'
don't add trailing = when in urlParamsToArray function

See merge request gitlab-org/gitlab-ce!21179
2018-09-07 10:20:27 +00:00
Lukas Eipert b743c35df9
adjust test fixture for favicon with overlay
It seems like Chrome > 67 has changed the way how canvas works
and therefore the resulting data URL from combining two images
changed subtly, even thpugh the visuals are almost the same.
2018-09-07 10:55:10 +02:00
🌴🌴 Filipa Lacerda - OOO back on September 17th 🌴🌴 55582b4359 Adds Vuex store for the job log page 2018-09-03 07:49:52 +00:00
Simon Knox 8a5121eb8e don't add trailing = when in urlParamsToArray function 2018-08-29 06:28:06 +10:00
Paul Slaughter fbfe04401d Add vanilla JS avatar_helper and update existing avatar helpers 2018-08-01 19:43:50 +00:00
Filipa Lacerda 49948c1ff6
Changes poll.js to keep polling on any 2xx http status code 2018-07-30 15:44:01 +01:00
Kushal Pandya b487881494 Add `roundOffFloat` helper method 2018-07-24 12:58:08 +05:30
Felipe Artur 3e66795ef1 Changes tab VUE refactoring 2018-06-21 12:22:40 +00:00
gfyoung bce890820f Enable no-restricted-globals in JS files 2018-06-15 15:58:27 +00:00
Douwe Maan 290ca339ad Merge branch 'feature/customizable-favicon' into 'master'
Customizable favicon

Closes #15661

See merge request gitlab-org/gitlab-ce!14497
2018-06-07 16:54:41 +00:00
Phil Hughes 132db99a5b
fixed karma 2018-06-07 15:11:10 +01:00
Phil Hughes 02a2ca6ae4
Fixes IDE button on merge requests not working with relative URL config
Closes #46438
2018-06-07 14:47:09 +01:00
Alexis Reigel 9e14f437b6
create favicon overlay on the client
the initial reason for this change was that graphicsmagick does not
support writing to ico files. this fact lead to a chain of changes:

1. use png instead of ico (browser support is good enough)
2. render the overlays on the client using the canvas API. this way we
   only need to store the original favion and generate the overlay versions
   dynamically.
   this change also enables (next step) to simplify the handling of the
   stock favicons as well, as we don't need to generate all the versions
   upfront.
2018-06-05 16:20:21 +02:00
Alexis Reigel 5202c3f0c8
fix resetFavicon so that it actually resets 2018-06-05 16:20:21 +02:00
Clement Ho 30bc82f68b Revert "Merge branch '46833-sticky-polyfill' into 'master'"
This reverts merge request !19304
2018-06-01 16:41:50 +00:00
Paul Slaughter 399e1e83c0 Update position sticky polyfill 2018-06-01 16:24:56 +00:00
Olivier Gonzalez b12d6546af Add pass through to stripHtml for undefined and null inputs 2018-05-03 08:25:22 +00:00
Mike Greiling 8fa0aeb880
fix illegal references to "this" in module context 2018-04-23 00:54:20 -05:00
Mike Greiling 704e866134
fix more instances of "import *" with spyOnDependency 2018-04-23 00:54:20 -05:00
Jose Ivan Vargas 146954d0bb UX Adjustments for the prometheus dashboard 2018-04-06 14:37:46 -05:00
Simon Knox 44fce0b0fd Resolve "Loss of input text on comments after preview" 2018-03-20 17:02:41 +00:00
Kushal Pandya e4ec50b70b Add support for query params for labels endpoint 2018-03-02 23:29:39 +05:30
Kushal Pandya 3976368808 Add `convertObjectPropsToCamelCase` helper method 2018-02-07 21:32:38 +05:30
Kushal Pandya 99a5c4b932 Add `convertToCamelCase` helper method 2018-02-07 19:00:11 +05:30
Phil Hughes 4377b4795f
remove useless ajaxPost method 2018-02-01 09:14:53 +00:00
Phil Hughes a3356bce09
fixed eslint 🙈 2018-01-31 15:48:12 +00:00
Phil Hughes 5d88e736ac
Merge branch 'master' into ph-axios-2 2018-01-31 15:45:02 +00:00
Clement Ho 2f1a55fa4e Use axios instead of jquery ajax for setCiStatusFavicon 2018-01-31 15:24:54 +00:00
Phil Hughes 7bd66940d9
fixed eslint 2018-01-31 15:12:10 +00:00
Phil Hughes 641f1d2c4b
Converted common_utils to axios 2018-01-31 10:14:55 +00:00
Phil Hughes ae401d03d3
Converted ajax_cache to axios 2018-01-31 09:58:14 +00:00
Phil Hughes e0b4d919cd
spec fixes after API axios change 2018-01-30 09:12:56 +00:00
Tim Zallmann e79db43d2c WebIDE: Fix Commit bugs 2018-01-19 09:38:34 +00:00
Filipa Lacerda f6e339141d
Backport of methods and components added in EBackport of methods and components added in EEE 2018-01-03 21:03:39 +00:00
Winnie Hellmann 1109a5cea4 Move dateTickFormat to separate module 2017-12-18 11:13:41 +01:00
Clement Ho c4c06a33f9 Fix transient error in pikadayToString 2017-12-05 22:40:42 +00:00
Fatih Acet f8de23e626 Merge branch 'backport-add-epic-sidebar' into 'master'
Backport of add-epic-sidebar

See merge request gitlab-org/gitlab-ce!15335
2017-11-27 20:21:53 +00:00
Filipa Lacerda 4563156256 Improve environments performance 2017-11-23 12:04:03 +00:00
Clement Ho cd0ae8541c Merge branch 'master' into 'backport-add-epic-sidebar'
# Conflicts:
#   app/assets/javascripts/lib/utils/text_utility.js
2017-11-15 22:23:10 +00:00
Filipa Lacerda be4abe7719 Stops page reload when changing tabs or pages - uses API requests instead 2017-11-14 15:35:29 +00:00
Filipa Lacerda 476b28a1a2
Formats bytes to human reabale number in registry table 2017-11-13 19:51:14 +00:00
Clement Ho 421acc9a53 Merge branch 'master' into backport-add-epic-sidebar 2017-11-13 13:21:16 -06:00
Filipa Lacerda 1ff3f1a4f7 Export text utils as ES6 modules 2017-11-13 09:11:54 +00:00
Clement Ho 74b87f02db Backport of add-epic-sidebar 2017-11-10 17:41:04 -06:00
Winnie Hellmann 19737aeaa9 Remove parsePikadayDate test 2017-11-06 14:54:33 +01:00
Filipa Lacerda 941c11824a Fix Pikaday 2017-10-18 11:31:01 +00:00
Clement Ho 22a120a24d Improve sprite icon spec 2017-10-17 16:19:40 +00:00
Clement Ho 13b299f4ff Add ability to pass class name to spriteIcon helper 2017-10-12 12:43:00 -05:00
Filipa Lacerda 67f4408d74 Fix bad type checking to prevent 0 count badge to be shown 2017-10-10 07:47:42 +00:00
Felipe Artur b54203f0ad Commenting on image diffs 2017-10-07 04:25:17 +00:00
Phil Hughes d729aa7383
spec fix 2017-09-29 09:40:21 +01:00
Phil Hughes 333cb069af
Fixed anchored content not being scrolled into view
Correctly scrolls anchored content into view when the user loads the
page. This is most obvious when the user loads a link note in a
merge request & the page does not scroll down to the note.

Closes #38326
2017-09-29 09:24:56 +01:00
Phil Hughes 1544bc3228
remove the sticky el from the test DOM after each test 2017-09-25 11:55:33 +01:00
Phil Hughes f389f9081f
refactor tests to actually test browser behaviour 2017-09-25 11:40:40 +01:00
Phil Hughes 734bb73625
fixed and added specs for removing placeholder element 2017-09-22 11:13:19 +01:00
Tim Zallmann 55f772bb98 Resolve "Better SVG Usage in the Frontend" 2017-09-22 08:39:47 +00:00
Bryce Johnson cca06da2e4 Standardize access to CSRF token in JavaScript 2017-09-21 17:53:28 +00:00
Filipa Lacerda 96e6fc70b4 Import modules instead of using the ones in global namespace
Removes set favicon related methods from global scope
Improves test related with favicon

Removes convertPermissionToBoolean from global scope.
Adds tests for convertPermissionToBoolean - were non existant

Removes setParamInURL from gl.utils

Removes parseIntPagination from gl.utils namespace

Remove normalizeCRLFHeaders from gl.utils namespace

Removes normalizeHeaders from gl.utils namespace

Use gl.utils for filtered search

Fix bad import

Fix broken test by cleaning window.history namespace

Adds changelog
2017-09-09 09:54:27 +01:00
Filipa Lacerda 6a1b84c7b4 Use modules in common utils 2017-09-09 09:54:24 +01:00
Tim Zallmann 955d684cde Merge branch '36517-failing-karma-tests-for-chrome-60' into 'master'
Resolve "Failing karma tests for Chrome 60"

Closes #36517

See merge request !13646
2017-08-21 07:18:44 +00:00
Mike Greiling d4cb1ec9e9 fix unnecessarily long gl.utils.backOff test 2017-08-18 03:01:23 -05:00
Mike Greiling 2f35a266e1 fix test failures in text_utility_spec.js on Chrome 60 2017-08-18 02:50:11 -05:00
Phil Hughes 30777178e3
fixed jumping when bar gets stuck
added specs to sticky util file
added `No files found.` text when results are empty
2017-08-03 17:03:49 +01:00
Clement Ho 974a04026d Add filtered search to group issue dashboard 2017-08-02 09:27:24 +00:00
Simon Knox 53e7bf0470 fix transient rspec failure due to Poll.js race condition
don't treat aborted requests as failures, they are often triggered during unload (e.g after clicking a link)
2017-07-18 12:17:55 +10:00
Filipa Lacerda b2b527a690 Update tests to test what the component renders and what the clicks calls 2017-07-07 22:23:13 +01:00
winh 6ab12777bc Introduce addClassIfElementExists utility 2017-06-27 20:37:30 +02:00
Alfredo Sumaran 3ec37e2622 Merge branch 'master' into 25426-group-dashboard-ui 2017-06-07 14:45:57 -05:00
Alfredo Sumaran a65f07a256 Address feedback 2017-06-07 10:05:17 -05:00
Kushal Pandya 7abe27b425 Improve user experience around slash commands in instant comments 2017-06-05 09:12:15 +00:00
Lin Jen-Shin 6c72d8a219 Merge remote-tracking branch 'upstream/master' into rename-builds-controller
* upstream/master: (116 commits)
  Revert "Merge branch 'grpc-1.3.4' into 'master'"
  Return nil when looking up config for unknown LDAP provider
  Avoid crash when trying to parse string with invalid UTF-8 sequence
  Enable Gitaly by default in GitLab 9.3
  Don’t create comment on JIRA if link already exists
  Disable sub_group_issuables_spec.rb for mysql
  Fix math rendering on blob pages
  Add changelog
  Don't allow to pass a user to ProjectWiki#http_url_to_repo
  Revert "Merge branch '1937-https-clone-url-username' into 'master'
"
  Fix bottom padding for build page
  Fix /unsubscribe slash command creating extra todos
  Fix omniauth-google-oauth2 dependencies in Gemfile.lock
  Update looks job log
  'New issue'/'New merge request' dropdowns should show only projects with issues/merge requests feature enabled
  Fix spec for Members::AuthorizedDestroyService
  31616-add-uptime-of-gitlab-instance-in-admin-area
  Set head pipeline when creating merge requests
  Create a separate helper to check if we show particular tab on a search page
  Add performance deltas between app deployments on Merge Request widget
  ...
2017-05-31 18:14:11 +08:00
Kushal Pandya 069783b5cc Add performance deltas between app deployments on Merge Request widget 2017-05-29 15:04:47 +00:00
Lin Jen-Shin c94db0c290 Use - as the prefix so we don't conflict with namespaces
The decision was made around:
https://gitlab.com/gitlab-org/gitlab-ce/issues/26407#note_30624641
2017-05-26 23:06:20 +08:00
Lin Jen-Shin 70eb0c6a88 Merge remote-tracking branch 'upstream/master' into rename-builds-controller
* upstream/master: (307 commits)
  Address feedback
  Add small update for the i18n guide.
  update webpack to v2.6.1 patch release to fix "Can't find variable: Promise" error
  update webpack-bundle-analyzer past v2.4.1 to support NamedChunksPlugin
  name all webpack chunks to improve long term cacheability
  add NameAllModulesPlugin to cover shortcomings of NamedModulesPlugin
  upgrade to latest webpack version
  Only use DROP INDEX CONCURRENTLY on postgreql 9.2+
  Provide default for calculating label text color (!11681)
  Add failing test for #32728
  Bugfix: Always use the default language when generating emails.
  Remove unecessary commit pattern check
  Add regexp_for_value helper method
  Remove shared example and improve sub_group_issuables_spec.rb
  Remove 'should' from scenario in has_subgroup_title_spec.rb
  Cartfile git and binary methods cannot take a GitHub repo
  Fix terminals support for Kubernetes service
  Add review comments to compare_spec.rb
  Fix transient error clicking dropdown items in compare_spec.rb
  Use non-global jQuery reference within raven bundle
  ...
2017-05-26 18:25:32 +08:00
Filipa Lacerda 43a28cfee2 Merge branch 'winh-frontend-user-cache' into 'master'
Introduce UsersCache for storing user entities in frontend

See merge request !11404
2017-05-23 14:09:48 +00:00
winh d7f9b408bf Add frontend UsersCache class (!11404) 2017-05-23 10:45:59 +02:00
winh c102656736 Extract Cache class from AjaxCache 2017-05-21 23:59:47 +02:00
Lin Jen-Shin 71777a4a18 Rename BuildsController to JobsController
Rename other URL generators

admin_builds_path -> admin_jobs_path

Fix tests and more renaming

Fix more tests

Also change build_id to job_id in the controller
2017-05-17 20:17:30 +08:00
Mike Greiling 283f968ef2 update frontend specs to use ES module syntax 2017-05-16 16:01:51 -05:00
Filipa Lacerda 17806d7619 Merge branch 'issue-boards-label-filtering' into 'master'
Fixed issue boards not filtering when URL params are encoded

Closes #32084

See merge request !11320
2017-05-16 08:18:53 +00:00
Filipa Lacerda f99e8c07fe Merge branch 'remove-vue-from-poll_spec-fix-transient-failures' into 'master'
Fix poll_spec transient failures

See merge request !11264
2017-05-12 09:54:05 +00:00
Phil Hughes 477be05661 Fixed issue boards not filtering when URL params are encoded
Closes #32084
2017-05-12 09:27:21 +01:00
Luke "Jared" Bennett 55b6232c74 Removed unneeded false from poll_spec mockServiceCall call 2017-05-11 19:11:03 +00:00
Luke "Jared" Bennett 2d7b9455e1
Fixed promise action binding and simplified callbacks spy 2017-05-11 13:09:13 +01:00
Luke "Jared" Bennett dbab076b05
improved mockservicecall and fixed up a settimeout 2017-05-11 12:48:24 +01:00
Winnie Hellmann b304d41232 Track pending requests in AjaxCache 2017-05-10 22:01:00 +00:00
Luke "Jared" Bennett 4a4b586aa0
Removed vue and vue-resource from poll_spec in an attempt to fix the transient failures relating to async timeout 2017-05-10 20:41:06 +01:00
Winnie Hellmann b51f2a6080 Colorize labels in issue search field 2017-05-05 22:47:32 +00:00
Luke "Jared" Bennett bef42d9a36 Fallback localstorage cases 2017-05-05 17:59:41 +00:00
Kushal Pandya 645593e5af Add instant comments support 2017-05-05 10:57:29 +00:00
Kushal Pandya d586b6cced Add ES lint support to identify poorly written Promises 2017-04-20 11:11:51 +00:00
Filipa Lacerda c15a2d7ffd Merge branch 'use-favicon-full-path-for-pipeline-status-favicon' into 'master'
Use favicon full path

See merge request !10676
2017-04-18 16:22:08 +00:00
Filipa Lacerda b67bb566b3 Improves support for long build traces: 2017-04-18 12:27:10 +00:00
Luke "Jared" Bennett b24cb99856
Updated specs 2017-04-13 12:50:03 +01:00
Filipa Lacerda 7629c9ec57 Merge branch 'remove-iife-cycle-analytics-bundle' into 'master'
Remove IIFEs from files in cycle_analytics_bundle.js

See merge request !10613
2017-04-13 10:55:51 +00:00
Phil Hughes 194955fe51 Fixed random failures with Poll spec
Correctly waits for requests to finish before testing anything.
Previously it was waiting for a set amount of time which could possibly
cause failures dependant on how quickly these execute

Stops any polling requests once done so that the error callback doesn't
get called with a 404

Closes #30824
2017-04-12 13:42:01 +01:00
Alfredo Sumaran e1e6e946d8 Remove IIFEs from files in cycle_analytics_bundle.js 2017-04-10 20:02:55 -05:00
Kushal Pandya 28a4e9d8d0 Show CI status as Favicon on Pipelines, Job and MR pages 2017-04-06 10:40:39 +00:00
Jose Ivan Vargas 3069a2c959 Removed formatRelevantDigits from text_utils.js and added it to a new file number_utils.js
Also improved code formatting
2017-04-03 11:31:30 -05:00