Skip to content

Commit bf7e03b

Browse files
authored
Merge pull request #1667 from CodeNow/aha-guide-overview
Aha guide overview
2 parents 4d174c9 + 7ef9d4f commit bf7e03b

9 files changed

Lines changed: 50 additions & 44 deletions

File tree

client/assets/styles/scss/components/aha-sidebar.scss

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,20 @@
4545
}
4646
}
4747

48+
.aha-overview {
49+
animation: slide-left .45s ease-in-out forwards;
50+
border-bottom: 1px solid $gray-lightest;
51+
margin-bottom: 15px;
52+
padding: 32px 0 42px;
53+
54+
.btn {
55+
align-self: center;
56+
}
57+
}
58+
4859
.aha-guide {
4960
animation: slide-left .45s ease-in-out forwards;
50-
background: $gray-lighterest;
61+
background: $white;
5162
border: 1px solid $gray-lighter;
5263
border-radius: $input-border-radius-lg;
5364
opacity: 0;
@@ -59,15 +70,13 @@
5970
}
6071
}
6172

62-
&.complete {
63-
background: $green-dark;
64-
border-color: $green;
65-
color: $white;
66-
}
67-
6873
&.disabled {
69-
border-color: $gray-lightest;
70-
color: $gray-light;
74+
background: $gray-lighterest;
75+
color: rgba($gray,.4);
76+
77+
.iconnables {
78+
background: $gray-lighterest;
79+
}
7180
}
7281

7382
+ .aha-guide {

client/assets/styles/scss/layout/environment-header.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@
3737
animation: scale .4s ease;
3838
}
3939

40+
&.scale-in-modal {
41+
animation: scale-in-modal .15s ease-out;
42+
}
43+
4044
.icons-add {
4145
background: $white;
4246
border-radius: $input-border-radius;

client/assets/styles/scss/layout/layout.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@
7070
}
7171

7272
&.disabled {
73+
background: none;
74+
border-color: transparent;
7375
cursor: not-allowed;
7476
opacity: .6;
7577
}

client/assets/styles/scss/modals/modals.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
// div.modal-dialog
3636
.modal-dialog {
37-
animation: scale-in-modal .15s ease-in-out;
37+
animation: scale-in-modal .15s ease-out;
3838
background: $gray-lighterest;
3939
border: $input-border-radius solid $gray-lighter;
4040
border-radius: $input-border-radius-lg;

client/directives/components/ahaGuide/ahaSidebarView.jade

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,25 @@
11
.grid-block.shrink.align-center.justify-right
22
svg.iconnables.icons-close(
33
ng-click = "$root.featureFlags.ahaSidebar = false"
4+
ng-if = "!$root.featureFlags.ahaOverview"
45
)
56
use(
67
xlink:href = "#icons-close"
78
)
9+
.grid-block.vertical.shrink.justify-center.text-center.aha-overview(
10+
ng-if = "$root.featureFlags.ahaOverview"
11+
)
12+
.grid-content.strong Welcome to your Sandbox! 👋
13+
| It’ll take a few steps to get everything set up. But don’t worry — we’re here to help!
14+
button.grid-content.btn.btn-sm.green(
15+
ng-click = "\
16+
$root.featureFlags.ahaOverview = false;\
17+
$root.featureFlags.ahaSidebar = false;\
18+
"
19+
) Get Started
820
.grid-block.vertical
921
.grid-block.shrink.align-center.padding-sm.aha-guide(
10-
ng-class = "{'complete': $root.featureFlags.aha1 || $root.featureFlags.aha2 || $root.featureFlags.aha3}"
22+
ng-class = "{'disabled': $root.featureFlags.aha1 || $root.featureFlags.aha2 || $root.featureFlags.aha3}"
1123
)
1224
.grid-block.shrink.aha-meter(
1325
ng-class = "{\
@@ -25,10 +37,7 @@
2537
p.small This is the first step to success.
2638

2739
.grid-block.shrink.align-center.padding-sm.aha-guide(
28-
ng-class = "{\
29-
'complete': $root.featureFlags.aha2 || $root.featureFlags.aha3,\
30-
'disabled': $root.featureFlags.aha0\
31-
}"
40+
ng-class = "{'disabled': $root.featureFlags.aha0 || $root.featureFlags.aha2 || $root.featureFlags.aha3}"
3241
)
3342
.grid-block.shrink.aha-meter(
3443
ng-class = "{\
@@ -59,10 +68,7 @@
5968
p.small Configure your project and get it running!
6069

6170
.grid-block.shrink.align-center.padding-sm.aha-guide(
62-
ng-class = "{\
63-
'complete': $root.featureFlags.aha3,\
64-
'disabled': $root.featureFlags.aha0 || $root.featureFlags.aha1\
65-
}"
71+
ng-class = "{'disabled': $root.featureFlags.aha0 || $root.featureFlags.aha1 || $root.featureFlags.aha3}"
6672
)
6773
.grid-block.shrink.aha-meter(
6874
ng-class = "{\

client/directives/environment/environmentHeader/viewEnvironmentHeader.jade

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,12 @@ button.grid-block.shrink.btn.btn-md.btn-icon.btn-help(
5050

5151
//- new server button
5252
button.grid-block.shrink.btn.btn-md.green(
53+
ng-class = "{\
54+
'scale': helpCards.getActiveCard().targets.newContainer,\
55+
'scale-in-modal': $root.featureFlags.aha1\
56+
}"
5357
ng-click = "EC.triggerModal.newContainer()"
54-
ng-class = "{'scale': helpCards.getActiveCard().targets.newContainer}"
58+
ng-if = "!$root.featureFlags.ahaOverview"
5559
)
5660
svg.iconnables.icons-add.float-left
5761
use(

client/directives/environment/environmentView.jade

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
)
9696

9797
.modal-dialog.modal-sm(
98-
ng-if = "$root.featureFlags.aha1"
98+
ng-if = "$root.featureFlags.aha1 && !$root.featureFlags.ahaOverview"
9999
)
100100
.grid-block.align-center.aha-guide.padding-md(
101101
ng-include = "'ahaGuideView'"
@@ -104,15 +104,6 @@
104104
state.showSubStep = 0;\
105105
"
106106
)
107-
.modal-body.grid-block.vertical.padding-sm
108-
.grid-block.shrink.justify-center.align-center.padding-xs.well.gray.aha-tips.fade(
109-
ng-if = "$root.featureFlags.aha1"
110-
)
111-
svg.grid-content.shrink.iconnables
112-
use(
113-
xlink:href = "#icons-life-preserver"
114-
)
115-
small.grid-content.small You can see your setup progress by selecting the !? button in the top-right.
116107

117108
.grid-block.card-grid.clearfix(
118109
ng-class = "{'padding-top': helpCards.getActiveCard().helpTop}"

client/directives/navBar/viewNav.jade

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,8 @@ a.a(
2121
| Configure
2222

2323
a.a.disabled(
24-
ng-if = "$root.featureFlags.aha1ExitedEarly"
25-
tooltip = "You don‘t have a running repository yet!"
26-
tooltip-options = "{\"class\":\"right\",\"left\":75,\"top\":17}"
27-
)
28-
svg.iconnables.icons-server-dark
29-
use(
30-
xlink:href = "#icons-server-dark"
31-
)
32-
| Containers
33-
34-
a.a.disabled(
35-
ng-if = "dataApp.state.includes('base.config') && CA.instancesByPod && !CA.instancesByPod.models.length && !$root.featureFlags.aha1ExitedEarly"
36-
tooltip = "You don’t have any containers yet!"
24+
ng-if = "(dataApp.state.includes('base.config') && CA.instancesByPod && !CA.instancesByPod.models.length) || $root.featureFlags.aha1 || $root.featureFlags.aha1ExitedEarly"
25+
tooltip = "You don’t have any running containers yet!"
3726
tooltip-options = "{\"class\":\"right\",\"left\":75,\"top\":17}"
3827
)
3928
svg.iconnables.icons-server-dark
@@ -43,7 +32,7 @@ a.a.disabled(
4332
| Containers
4433

4534
a.a(
46-
ng-if = "(dataApp.state.includes('base.instances') || !CA.instancesByPod || CA.instancesByPod.models.length) && !$root.featureFlags.aha1ExitedEarly"
35+
ng-if = "(dataApp.state.includes('base.instances') || !CA.instancesByPod || CA.instancesByPod.models.length) && !$root.featureFlags.aha1 && !$root.featureFlags.aha1ExitedEarly"
4736
ui-sref = "base.instances({ userName: CA.activeAccount.oauthName() })"
4837
ui-sref-active = "active"
4938
)

client/services/featureFlagService.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ function featureFlags(
1313
aha1ExitedEarly: false, // step 2: if the user left the flow before getting a running config
1414
aha2: false, // step 3: add branch
1515
aha3: false, // step 4: runnabot
16+
ahaOverview: false, // toggle sidebar
1617
ahaSidebar: false, // toggle sidebar
1718
allowIsolatedUpdate: false,
1819
autoIsolation: false,

0 commit comments

Comments
 (0)