File tree Expand file tree Collapse file tree 7 files changed +20
-6
lines changed
assets/javascripts/pages/users Expand file tree Collapse file tree 7 files changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ export default class UserOverviewBlock {
15
15
}
16
16
17
17
loadData ( ) {
18
- const loadingEl = document . querySelector ( `${ this . container } .loading` ) ;
18
+ const containerEl = document . querySelector ( this . container ) ;
19
+ const loadingEl = containerEl . querySelector ( `.loading` ) ;
19
20
20
21
loadingEl . classList . remove ( 'hide' ) ;
21
22
@@ -42,7 +43,7 @@ export default class UserOverviewBlock {
42
43
const nothingHereBlock = containerEl . querySelector ( '.nothing-here-block' ) ;
43
44
44
45
if ( nothingHereBlock ) {
45
- nothingHereBlock . classList . add ( 'text-left' , 'p-0 ') ;
46
+ nothingHereBlock . classList . add ( 'p-5 ' ) ;
46
47
}
47
48
}
48
49
Original file line number Diff line number Diff line change 33
33
%span you have no access to.
34
34
= paginate_collection(projects, remote: remote) unless skip_pagination
35
35
- else
36
- .nothing-here-block No projects found
36
+ .nothing-here-block
37
+ .svg-content.svg-130
38
+ = image_tag 'illustrations/profile-page/personal-project.svg'
39
+ %div
40
+ %span
41
+ = s_('UserProfile|This user doesn\'t have any personal projects')
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : Added empty project illustration and updated text to user profile overview
3
+ merge_request : 23973
4
+ author : Fernando Arias
5
+ type : changed
Original file line number Diff line number Diff line change @@ -7476,6 +7476,9 @@ msgstr ""
7476
7476
msgid "UserProfile|Subscribe"
7477
7477
msgstr ""
7478
7478
7479
+ msgid "UserProfile|This user doesn't have any personal projects"
7480
+ msgstr ""
7481
+
7479
7482
msgid "UserProfile|This user has a private profile"
7480
7483
msgstr ""
7481
7484
Original file line number Diff line number Diff line change 49
49
find ( 'body' ) . send_keys ( [ :shift , 'P' ] )
50
50
51
51
find ( '.nothing-here-block' )
52
- expect ( page ) . to have_content ( 'No projects found ' )
52
+ expect ( page ) . to have_content ( 'This user doesn\'t have any personal projects ' )
53
53
end
54
54
end
55
55
Original file line number Diff line number Diff line change 38
38
it 'returns message when starred projects fitler returns no results' do
39
39
fill_in 'project-filter-form-field' , with : 'Beta\n'
40
40
41
- expect ( page ) . to have_content ( 'No projects found ' )
41
+ expect ( page ) . to have_content ( 'This user doesn\'t have any personal projects ' )
42
42
expect ( page ) . not_to have_content ( 'You don\'t have starred projects yet' )
43
43
end
44
44
end
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ def push_code_contribution
96
96
it 'it shows an empty project list with an info message' do
97
97
page . within ( '.projects-block' ) do
98
98
expect ( page ) . to have_selector ( '.loading' , visible : false )
99
- expect ( page ) . to have_content ( 'No projects found ' )
99
+ expect ( page ) . to have_content ( 'This user doesn\'t have any personal projects ' )
100
100
expect ( page ) . not_to have_selector ( '.project-row' )
101
101
end
102
102
end
You can’t perform that action at this time.
0 commit comments