summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Wrapped in container like the other buttons and added a nowrap to the ↵fix-environments-redeploy-button-inlineLuke "Jared" Bennett2016-11-192-7/+8
| | | | action buttons cell
* Merge branch '24057-a11y-content-shortcut' into 'master' Annabel Dunstone Gray2016-11-183-1/+18
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Resolve "Create a tab shortcut to jump directly to content" ## What does this MR do? Adds accessibility shortcut to page, i.e. if user hits `tab` key right after the page is loaded and user has not interacted to any part of the page, the shortcut appears at top left corner of the page. Then, pressing `enter` (`spacebar` support is WIP) scrolls page to focus on content. ## Are there points in the code the reviewer needs to double check? See if `id` attribute added to `.content` element (present in [_page.html.haml](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/app/views/layouts/_page.html.haml)) needs to be reviewed if it is correct approach or we already have an ID that shortcut can refer to. ## Why was this MR needed? This feature is particularly useful for screen readers where user doesn't have to go through entire nav to reach content of page. ## Screenshots (if relevant) ![Screenshot_from_2016-11-17_17-59-22](/uploads/0eb0149f46bd35e9ce629e7a6533be53/Screenshot_from_2016-11-17_17-59-22.png) ## Does this MR meet the acceptance criteria? - [ ] [Changelog entry](https://docs.gitlab.com/ce/development/changelog.html) added - [ ] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md) - [ ] API support added - Tests - [ ] Added for this feature/bug - [ ] All builds are passing - [ ] Conform by the [merge request performance guides](http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html) - [ ] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [ ] Branch has no merge conflicts with `master` (if it does - rebase it please) - [ ] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) ## What are the relevant issue numbers? Closes #24057 See merge request !7533
| * Fix indentation24057-a11y-content-shortcutAnnabel Dunstone Gray2016-11-171-14/+13
| |
| * Add ID for a11y shortcut hrefKushal Pandya2016-11-171-1/+1
| |
| * Add shortcut for SRs to `Skip to content` for a11yKushal Pandya2016-11-171-0/+1
| |
| * Add a11y class for top-level shortcut for Screen ReadersKushal Pandya2016-11-171-0/+17
| |
* | Merge branch 'issue-24512' into 'master' Annabel Dunstone Gray2016-11-182-1/+5
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add placeholder in the color input inside the create new label popup ## What does this MR do? Adds the missing placeholder *"Assign custom color #FF0000"* in the label creation popup ( example text for custom hex color). ## Are there points in the code the reviewer needs to double check? ## Why was this MR needed? When creating a new label, the example text for custom hex color is missing ## Screenshots (if relevant) Before ![before](/uploads/a3157414d59cea609118a7d711f9b9ee/before.png) After ![Selection_051](/uploads/ca3e2089b40069e4cb6b7aa295b28cfc/Selection_051.png) ## Does this MR meet the acceptance criteria? - [X] [Changelog entry](https://docs.gitlab.com/ce/development/changelog.html) added - [ ] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md) - [ ] API support added - Tests - [ ] Added for this feature/bug - [ ] All builds are passing - [ ] Conform by the [merge request performance guides](http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html) - [ ] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [X] Branch has no merge conflicts with `master` (if it does - rebase it please) - [ ] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) ## What are the relevant issue numbers? #24512 See merge request !7492
| * | Add placeholder in the color input inside the create new label popupLuis Alonso Chavez Armendariz2016-11-162-1/+5
| | |
* | | Merge branch 'feature/24072-improve-importing-of-github-pull-requests' into ↵Sean McGivern2016-11-175-33/+38
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'master' Improve importing of github pull requests Closes #24072 See merge request !7241
| * | | Refactor github import to reduce number of API callsAndrew Smith2016-11-185-33/+38
| | | | | | | | | | | | | | | | Ref #24073
* | | | Merge branch 'update-supported-web-browsers' into 'master' Jacob Schatz2016-11-171-6/+3
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update "Supported web browsers" text ## What does this MR do? Updates the `Supported web browsers` text in the installation docs. ## Are there points in the code the reviewer needs to double check? ## Why was this MR needed? Slack discussion ## Screenshots (if relevant) ## Does this MR meet the acceptance criteria? - [ ] [Changelog entry](https://docs.gitlab.com/ce/development/changelog.html) added - [ ] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md) - [ ] API support added - Tests - [ ] Added for this feature/bug - [ ] All builds are passing - [ ] Conform by the [merge request performance guides](http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html) - [ ] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [ ] Branch has no merge conflicts with `master` (if it does - rebase it please) - [ ] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) ## What are the relevant issue numbers? See merge request !7341
| * | | | Update requirements.md with new supported web browsers textupdate-supported-web-browsersLuke "Jared" Bennett2016-11-071-6/+3
| | | | |
* | | | | Merge branch 'sort-api-groups' into 'master' Sean McGivern2016-11-174-3/+51
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow sorting groups in API Relates to #20013. See merge request !7529
| * | | | | Allow sorting groups in APIsort-api-groupsSean McGivern2016-11-174-3/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow `order_by` and `sort` parameters to `/api/v3/groups.json`. At present, only ordering by name and path is supported, and the default sort is name ascending (alphabetical order).
* | | | | | Merge branch 'copy-guidelines-merge-requests' into 'master' Allison Whilden2016-11-171-26/+47
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update copy.md with issue guideline updates and merge request guidelines Update copy.md with issue guideline updates and merge request guidelines See merge request !7513
| * | | | | | Update copy.md with issue guideline updates and merge request guidelinesVictor Wu2016-11-171-26/+47
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update examples and labels to use sentence case. Update copy.md [ci skip] Update copy.md [ci skip] Update copy.md
* | | | | | Merge branch 'docs/fix-url-environments' into 'master' Achilleas Pipinellis2016-11-171-1/+3
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix missing URL from environments docs See merge request !7542
| * | | | | | Fix missing URL from environments docsAchilleas Pipinellis2016-11-171-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | [ci skip]
* | | | | | | Merge branch 'cs-fix-firefox-height' into 'master' Annabel Dunstone Gray2016-11-171-2/+2
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix line numbers not matching up with code in Firefox. Firefox has had broken line number alignment for a while now, if this is a bug with Firefox they don't seem to want to fix it since its been there from 46 through 49. This fixes it. Before: ![Screen_Shot_2016-09-22_at_3.08.44_PM](/uploads/8bb65f40e44f738c0c375b0c8ef7dea6/Screen_Shot_2016-09-22_at_3.08.44_PM.png) After: ![Screen_Shot_2016-09-22_at_3.09.10_PM](/uploads/9e537be56886569d8a82390f2b97c42b/Screen_Shot_2016-09-22_at_3.09.10_PM.png) Fixes #20202. Safari/Chrome work the same as before, Snippets seems to work fine still as well. Page tested: http://localhost:3000/gitlab-org/gitlab-ce/blob/master/app/models/project.rb cc: @annabeldunstone See merge request !6485
| * | | | | | Fix line numbers not matching up with code in Firefox.cs-fix-firefox-heightConnor Shea2016-11-161-2/+2
| | | | | | |
* | | | | | | Merge branch 'google-singletons-are' into 'master' Jacob Schatz2016-11-171-0/+51
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Decide on and document a convention for singletons > The singleton pattern is a design pattern that restricts the instantiation of a class to one object. This is useful when exactly one object is needed to coordinate actions across the system. The simplest implementation uses an object literal to contain the logic. ```javascript gl.MyThing = { prop1: 'hello', method1: () => {} }; ``` A live example of this is [GfmAutoComplete](https://gitlab.com/gitlab-org/gitlab-ce/blob/172aab108b875e8dc9a5f1d3c2d53018eff76ea1/app/assets/javascripts/gfm_auto_complete.js.es6) Another approach makes use of ES6 `class` syntax. ```javascript let singleton; class MyThing { constructor() { if (!singleton) { singleton = this; singleton.init(); } return singleton; } init() { this.prop1 = 'hello'; } method1() {} } gl.MyThing = MyThing; ``` A live example of this is [Sidebar](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/app/assets/javascripts/sidebar.js.es6) Another functional approach to define Singleton using `Javascript Revealing Module Pattern` is like below ```javascript /** * 1. It instantiates only a single object * 2. It is safe – it keeps the reference to the singleton inside a variable, which lives inside a lexical closure, so it is not accessible by the outside world * 3. It allows privacy – you can define all private methods of your singleton inside the lexical closure of the first module pattern * 4. No this keyword trap (no wrong context referring) * 5. No use of new keyword * 6. Easy to write test code */ // const Singleton = (function () { // Instance stores a reference to the Singleton var instance; function init() { // Singleton // Private methods and variables function privateMethod(){ console.log( "I am private" ); } var privateVariable = "Im also private"; var privateRandomNumber = Math.random(); return { // Public methods and variables publicMethod: function () { console.log( "The public can see me!" ); }, publicProperty: "I am also public", getRandomNumber: function() { return privateRandomNumber; } }; }; return { // Get the Singleton instance if one exists // or create one if it doesn't getInstance: function () { if ( !instance ) { instance = init(); } return instance; } }; })(); const singletonObj = Singleton.getInstance() ``` ## Are there points in the code the reviewer needs to double check? ## What does this MR do? Creates a space for discussion and contribution for interested devs. ## Why was this MR needed? ## Screenshots (if relevant) ## Does this MR meet the acceptance criteria? - [x] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md) - [x] All builds are passing (http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html) - [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) ## What are the relevant issue numbers? See merge request !6620
| * | | | | | | Fix spacing in code sample.google-singletons-areBryce Johnson2016-11-011-3/+5
| | | | | | | |
| * | | | | | | Document convention for singleton use in front-end code.Bryce Johnson2016-10-311-0/+49
| | | | | | | |
* | | | | | | | Merge branch 'fix-singin-redirect-for-fork-new' into 'master' Sean McGivern2016-11-173-0/+64
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixing the issue of visiting a project fork url giving 500 error when not signed… Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/24302 See merge request !7392
| * | | | | | | | Remove newlines between context and it in addition to testing redirection ↵Cagdas Gerede2016-11-151-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for create action to import path
| * | | | | | | | Add authentication for for create action. Add more tests for for new and ↵Cagdas Gerede2016-11-152-8/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | create actions
| * | | | | | | | Move sign_out out of it into beforeCagdas Gerede2016-11-131-2/+1
| | | | | | | | |
| * | | | | | | | Replace tabs with spacesEarth2016-11-131-1/+1
| | | | | | | | |
| * | | | | | | | Add a unit test for redirecting to sign-in page when user is not logged in ↵Earth2016-11-131-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and user visits the new fork page
| * | | | | | | | Add a new line after the guard statement to be compatible with the style guide.Cagdas Gerede2016-11-121-0/+1
| | | | | | | | |
| * | | | | | | | Replaces conditional with guard statement.Cagdas Gerede2016-11-121-0/+1
| | | | | | | | |
| * | | | | | | | Temporary changeCagdas Gerede2016-11-121-1/+0
| | | | | | | | |
| * | | | | | | | Replace conditional with a guard statement.Cagdas Gerede2016-11-121-6/+3
| | | | | | | | |
| * | | | | | | | Fixing the issue of visiting a project fork url giving 500 error when not ↵Cagdas Gerede2016-11-102-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | signed in instead of being redirected to the sign in page. The main reason is ApplicationController skips authentication if the project exists. To fix the issue, forced the authentication in ForksController when current_user is nil.
* | | | | | | | | Merge branch 'feature/subscribe-to-group-level-labels' into 'master' Sean McGivern2016-11-1746-227/+754
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support subscribing to group labels https://gitlab.com/gitlab-org/gitlab-ce/issues/23586 See merge request !7215
| * | | | | | | | | Remove extra subscribable_type filter on migrationDouglas Barbosa Alexandre2016-11-171-3/+3
| | | | | | | | | |
| * | | | | | | | | Add feature spec for labels subscriptionDouglas Barbosa Alexandre2016-11-171-0/+74
| | | | | | | | | |
| * | | | | | | | | Avoid code duplication for label subscription status on label partialDouglas Barbosa Alexandre2016-11-173-15/+9
| | | | | | | | | |
| * | | | | | | | | Rename LabelSubscription javascript to ProjectLabelSubscriptionDouglas Barbosa Alexandre2016-11-172-3/+3
| | | | | | | | | |
| * | | | | | | | | Fix label subscription menu on small screens resolutionDouglas Barbosa Alexandre2016-11-173-16/+42
| | | | | | | | | |
| * | | | | | | | | Allow users to subscribe to a group label at group or project levelDouglas Barbosa Alexandre2016-11-175-11/+122
| | | | | | | | | |
| * | | | | | | | | Use button instead of an icon to subscribe/unsubscribe to labelsDouglas Barbosa Alexandre2016-11-174-14/+49
| | | | | | | | | |
| * | | | | | | | | Add CHANGELOG entryDouglas Barbosa Alexandre2016-11-171-0/+4
| | | | | | | | | |
| * | | | | | | | | Add toggle_subscription action to Groups::LabelsControllerDouglas Barbosa Alexandre2016-11-173-1/+33
| | | | | | | | | |
| * | | | | | | | | Allow subscriptions to be created without a projectDouglas Barbosa Alexandre2016-11-175-42/+119
| | | | | | | | | |
| * | | | | | | | | Use subqueries instead of joins to migrate subscriptionsDouglas Barbosa Alexandre2016-11-171-39/+24
| | | | | | | | | |
| * | | | | | | | | Add helper method to toggle label subscription on labels controller specDouglas Barbosa Alexandre2016-11-171-2/+6
| | | | | | | | | |
| * | | | | | | | | Remove default value for `project` argument on subscribable concernDouglas Barbosa Alexandre2016-11-1722-98/+96
| | | | | | | | | |
| * | | | | | | | | Use @project as default on ToggleSubscriptionAction concernDouglas Barbosa Alexandre2016-11-174-13/+1
| | | | | | | | | |
| * | | | | | | | | Allow users to subscribe to group labels at project-levelDouglas Barbosa Alexandre2016-11-174-27/+34
| | | | | | | | | |