BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
23303990
Commit
23303990
authored
Sep 07, 2016
by
Phil Hughes
Committed by
Jacob Schatz
Sep 15, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added keyboard shortcut to navigate to issue boards
Closes #21218
parent
d2370422
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
0 deletions
+34
-0
CHANGELOG
CHANGELOG
+1
-0
shortcuts_navigation.js
app/assets/javascripts/shortcuts_navigation.js
+3
-0
_shortcuts.html.haml
app/views/help/_shortcuts.html.haml
+6
-0
_project.html.haml
app/views/layouts/nav/_project.html.haml
+4
-0
keyboard_shortcut_spec.rb
spec/features/boards/keyboard_shortcut_spec.rb
+20
-0
No files found.
CHANGELOG
View file @
23303990
...
@@ -30,6 +30,7 @@ v 8.12.0 (unreleased)
...
@@ -30,6 +30,7 @@ v 8.12.0 (unreleased)
- Add `web_url` field to issue, merge request, and snippet API objects (Ben Boeckel)
- Add `web_url` field to issue, merge request, and snippet API objects (Ben Boeckel)
- Enable pipeline events by default !6278
- Enable pipeline events by default !6278
- Move parsing of sidekiq ps into helper !6245 (pascalbetz)
- Move parsing of sidekiq ps into helper !6245 (pascalbetz)
- Added go to issue boards keyboard shortcut
- Expose `sha` and `merge_commit_sha` in merge request API (Ben Boeckel)
- Expose `sha` and `merge_commit_sha` in merge request API (Ben Boeckel)
- Set path for all JavaScript cookies to honor GitLab's subdirectory setting !5627 (Mike Greiling)
- Set path for all JavaScript cookies to honor GitLab's subdirectory setting !5627 (Mike Greiling)
- Fix blame table layout width
- Fix blame table layout width
...
...
app/assets/javascripts/shortcuts_navigation.js
View file @
23303990
...
@@ -34,6 +34,9 @@
...
@@ -34,6 +34,9 @@
Mousetrap
.
bind
(
'g i'
,
function
()
{
Mousetrap
.
bind
(
'g i'
,
function
()
{
return
ShortcutsNavigation
.
findAndFollowLink
(
'.shortcuts-issues'
);
return
ShortcutsNavigation
.
findAndFollowLink
(
'.shortcuts-issues'
);
});
});
Mousetrap
.
bind
(
'g l'
,
function
()
{
ShortcutsNavigation
.
findAndFollowLink
(
'.shortcuts-issue-boards'
);
});
Mousetrap
.
bind
(
'g m'
,
function
()
{
Mousetrap
.
bind
(
'g m'
,
function
()
{
return
ShortcutsNavigation
.
findAndFollowLink
(
'.shortcuts-merge_requests'
);
return
ShortcutsNavigation
.
findAndFollowLink
(
'.shortcuts-merge_requests'
);
});
});
...
...
app/views/help/_shortcuts.html.haml
View file @
23303990
...
@@ -165,6 +165,12 @@
...
@@ -165,6 +165,12 @@
%tr
%tr
%td
.shortcut
%td
.shortcut
.key
g
.key
g
.key
l
%td
Go to issue boards
%tr
%td
.shortcut
.key
g
.key
m
.key
m
%td
%td
Go to merge requests
Go to merge requests
...
...
app/views/layouts/nav/_project.html.haml
View file @
23303990
...
@@ -113,3 +113,7 @@
...
@@ -113,3 +113,7 @@
%li
.hidden
%li
.hidden
=
link_to
project_commits_path
(
@project
),
title:
'Commits'
,
class:
'shortcuts-commits'
do
=
link_to
project_commits_path
(
@project
),
title:
'Commits'
,
class:
'shortcuts-commits'
do
Commits
Commits
-# Shortcut to issue boards
%li
.hidden
=
link_to
'Issue Boards'
,
namespace_project_board_path
(
@project
.
namespace
,
@project
),
title:
'Issue Boards'
,
class:
'shortcuts-issue-boards'
spec/features/boards/keyboard_shortcut_spec.rb
0 → 100644
View file @
23303990
require
'rails_helper'
describe
'Issue Boards shortcut'
,
feature:
true
,
js:
true
do
let
(
:project
)
{
create
(
:empty_project
)
}
before
do
project
.
create_board
project
.
board
.
lists
.
create
(
list_type: :backlog
)
project
.
board
.
lists
.
create
(
list_type: :done
)
login_as
:admin
visit
namespace_project_path
(
project
.
namespace
,
project
)
end
it
'takes user to issue board index'
do
find
(
'body'
).
native
.
send_keys
(
'gl'
)
expect
(
page
).
to
have_selector
(
'.boards-list'
)
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment