Skip to content

Commit e59dae7

Browse files
committed
Merge pull request #116 from 10gen/INT-556-zero-state
INT-556 - "Zero state" guidance message
2 parents e1391fe + 03360d1 commit e59dae7

File tree

4 files changed

+29
-0
lines changed

4 files changed

+29
-0
lines changed
389 Bytes
Loading

src/home/index.jade

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
.page
22
.content.with-sidebar
33
div(data-hook='collection-subview')
4+
div.report-zero-state(data-hook='report-zero-state')
5+
img(src='images/zero-state-arrow-collections.png', width="110")
6+
span Choose a collection to analyze
47
div(data-hook='sidebar')

src/home/index.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,17 @@ var HomeView = View.extend({
1515
type: 'string',
1616
allowNull: true,
1717
default: null
18+
},
19+
showZeroState: {
20+
type: 'boolean',
21+
default: true
22+
}
23+
},
24+
bindings: {
25+
showZeroState: {
26+
hook: 'report-zero-state',
27+
type: 'booleanClass',
28+
no: 'hidden'
1829
}
1930
},
2031
initialize: function() {
@@ -46,6 +57,7 @@ var HomeView = View.extend({
4657

4758
this.ns = model.getId();
4859
this.updateTitle(model);
60+
this.showZeroState = false;
4961
app.navigate(format('schema/%s', model.getId()), {
5062
silent: true
5163
});

src/home/index.less

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,20 @@
5252
border-bottom: @caret-width-base solid transparent;
5353
}
5454

55+
.report-zero-state {
56+
margin: 124px 0 0 20px;
57+
58+
img {
59+
margin-bottom: 7px;
60+
}
61+
span {
62+
font-size: 24px;
63+
color: @gray4;
64+
font-weight: 200;
65+
margin-left: 15px;
66+
}
67+
}
68+
5569
.collection-view {
5670
header {
5771
padding: 12px 20px;

0 commit comments

Comments
 (0)