Skip to content
Snippets Groups Projects
Commit 1f5f81c4 authored by Vitaly Slobodin's avatar Vitaly Slobodin :crystal_ball:
Browse files

Merge branch 'pipeline-shortcut' into 'master'

Added pipelines shortcut

See merge request !119090



Merged-by: default avatarVitaly Slobodin <vslobodin@gitlab.com>
Approved-by: default avatarArtur Fedorov <afedorov@gitlab.com>
Approved-by: default avatarDan Mizzi-Harris <dmizzi-harris@gitlab.com>
Approved-by: default avatarVitaly Slobodin <vslobodin@gitlab.com>
Reviewed-by: default avatarArtur Fedorov <afedorov@gitlab.com>
Co-authored-by: default avatarAlex Newson <git@alexnewson.co.uk>
parents b8cb4204 b93d0c5d
No related branches found
No related tags found
3 merge requests!122597doc/gitaly: Remove references to removed metrics,!120936Draft: Debugging commit to trigger pipeline (DO NOT MERGE),!119090Added pipelines shortcut
Pipeline #867914514 passed
......@@ -240,7 +240,7 @@ export const REPO_GRAPH_SCROLL_BOTTOM = {
export const GO_TO_PROJECT_OVERVIEW = {
id: 'project.goToOverview',
description: __("Go to the project's overview page"),
defaultKeys: ['g p'], // eslint-disable-line @gitlab/require-i18n-strings
defaultKeys: ['g o'], // eslint-disable-line @gitlab/require-i18n-strings
};
export const GO_TO_PROJECT_ACTIVITY_FEED = {
......@@ -309,6 +309,12 @@ export const GO_TO_PROJECT_MERGE_REQUESTS = {
defaultKeys: ['g m'], // eslint-disable-line @gitlab/require-i18n-strings
};
export const GO_TO_PROJECT_PIPELINES = {
id: 'project.goToPipelines',
description: __('Go to pipelines'),
defaultKeys: ['g p'], // eslint-disable-line @gitlab/require-i18n-strings
};
export const GO_TO_PROJECT_JOBS = {
id: 'project.goToJobs',
description: __('Go to jobs'),
......@@ -598,6 +604,7 @@ const PROJECT_SHORTCUTS_GROUP = {
NEW_ISSUE,
GO_TO_PROJECT_ISSUE_BOARDS,
GO_TO_PROJECT_MERGE_REQUESTS,
GO_TO_PROJECT_PIPELINES,
GO_TO_PROJECT_JOBS,
...(gon.features?.removeMonitorMetrics ? [] : [GO_TO_PROJECT_METRICS]),
GO_TO_PROJECT_ENVIRONMENTS,
......
......@@ -6,6 +6,7 @@ import {
GO_TO_PROJECT_RELEASES,
GO_TO_PROJECT_FILES,
GO_TO_PROJECT_COMMITS,
GO_TO_PROJECT_PIPELINES,
GO_TO_PROJECT_JOBS,
GO_TO_PROJECT_REPO_GRAPH,
GO_TO_PROJECT_REPO_CHARTS,
......@@ -32,6 +33,7 @@ export default class ShortcutsNavigation extends Shortcuts {
[GO_TO_PROJECT_RELEASES, () => findAndFollowLink('.shortcuts-deployments-releases')],
[GO_TO_PROJECT_FILES, () => findAndFollowLink('.shortcuts-tree')],
[GO_TO_PROJECT_COMMITS, () => findAndFollowLink('.shortcuts-commits')],
[GO_TO_PROJECT_PIPELINES, () => findAndFollowLink('.shortcuts-pipelines')],
[GO_TO_PROJECT_JOBS, () => findAndFollowLink('.shortcuts-builds')],
[GO_TO_PROJECT_REPO_GRAPH, () => findAndFollowLink('.shortcuts-network')],
[GO_TO_PROJECT_REPO_CHARTS, () => findAndFollowLink('.shortcuts-repository-charts')],
......
......@@ -68,7 +68,7 @@ relatively quickly to work, and they take you to another page in the project.
| Keyboard shortcut | Description |
|-----------------------------|-------------|
| <kbd>g</kbd> + <kbd>p</kbd> | Go to the project home page (**Project > Details**). |
| <kbd>g</kbd> + <kbd>o</kbd> | Go to the project overview page (**Project > Details**). |
| <kbd>g</kbd> + <kbd>v</kbd> | Go to the project activity feed (**Project > Activity**). |
| <kbd>g</kbd> + <kbd>r</kbd> | Go to the project releases list (**Project > Releases**). |
| <kbd>g</kbd> + <kbd>f</kbd> | Go to the [project files](#project-files) list (**Repository > Files**). |
......@@ -80,6 +80,7 @@ relatively quickly to work, and they take you to another page in the project.
| <kbd>i</kbd> | Go to the New Issue page (**Issues**, select **New Issue** ). |
| <kbd>g</kbd> + <kbd>b</kbd> | Go to the project issue boards list (**Issues > Boards**). |
| <kbd>g</kbd> + <kbd>m</kbd> | Go to the project [merge requests](project/merge_requests/index.md) list (**Merge Requests**). |
| <kbd>g</kbd> + <kbd>p</kbd> | Go to the CI/CD pipelines list (**CI/CD > Pipelines**). |
| <kbd>g</kbd> + <kbd>j</kbd> | Go to the CI/CD jobs list (**CI/CD > Jobs**). |
| <kbd>g</kbd> + <kbd>e</kbd> | Go to the project environments (**Deployments > Environments**). |
| <kbd>g</kbd> + <kbd>k</kbd> | Go to the project Kubernetes cluster integration page (**Infrastructure > Kubernetes clusters**). You must have at least [`maintainer` permissions](permissions.md) to access this page. |
......
......@@ -20594,6 +20594,9 @@ msgstr ""
msgid "Go to parent directory"
msgstr ""
 
msgid "Go to pipelines"
msgstr ""
msgid "Go to previous page"
msgstr ""
 
......@@ -69,11 +69,11 @@ def close_modal
end
context 'when navigating to the Project pages' do
it 'redirects to the project page' do
it 'redirects to the project overview page' do
visit project_issues_path(project)
find('body').native.send_key('g')
find('body').native.send_key('p')
find('body').native.send_key('o')
expect(page).to have_active_navigation(project.name)
end
......@@ -156,6 +156,14 @@ def close_modal
end
context 'when navigating to the CI/CD pages' do
it 'redirects to the Pipelines page' do
find('body').native.send_key('g')
find('body').native.send_key('p')
expect(page).to have_active_navigation('CI/CD')
expect(page).to have_active_sub_navigation('Pipelines')
end
it 'redirects to the Jobs page' do
find('body').native.send_key('g')
find('body').native.send_key('j')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment