Skip to content

Commit df19b7d

Browse files
iykekingshasura-bot
authored andcommitted
console: add onboarding docs helper (hasura#355)
GitOrigin-RevId: b60670a
1 parent 05f21a2 commit df19b7d

11 files changed

Lines changed: 495 additions & 73 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ have select permissions to the target table of the function.
116116
- console: allow user to cascade Postgres dependencies when dropping Postgres objects (close #5109) (#5248)
117117
- console: mark inconsistent remote schemas in the UI (close #5093) (#5181)
118118
- console: remove ONLY as default for ALTER TABLE in column alter operations (close #5512) #5706
119+
- console: add onboarding helper for new users (#355)
119120
- console: add option to flag an insertion as a migration from `Data` section (close #1766) (#4933)
120121
- console: down migrations improvements (close #3503, #4988) (#4790)
121122
- console: allow setting computed fields for views (close #6168) (#6174)

‎console/package-lock.json‎

Lines changed: 74 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎console/package.json‎

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,6 @@
4949
"dependencies": {
5050
"@graphql-codegen/core": "^1.17.8",
5151
"@graphql-codegen/typescript": "^1.17.10",
52-
"@types/highlight.js": "9.12.4",
53-
"@types/reselect": "^2.2.0",
54-
"@types/lodash": "^4.14.159",
55-
"@types/lodash.merge": "^4.6.6",
56-
"@types/sql-formatter": "2.3.0",
5752
"ace-builds": "^1.4.11",
5853
"apollo-link": "1.2.14",
5954
"apollo-link-ws": "1.0.20",
@@ -93,6 +88,7 @@
9388
"react-table": "6.11.5",
9489
"react-tabs": "3.1.0",
9590
"react-toggle": "4.1.1",
91+
"react-youtube": "^7.13.0",
9692
"redux": "4.0.5",
9793
"redux-thunk": "2.3.0",
9894
"reselect": "^4.0.0",
@@ -104,7 +100,6 @@
104100
"subscriptions-transport-ws": "0.9.16"
105101
},
106102
"devDependencies": {
107-
"@types/jwt-decode": "2.2.1",
108103
"@babel/core": "7.9.6",
109104
"@babel/plugin-proposal-class-properties": "7.8.3",
110105
"@babel/plugin-proposal-nullish-coalescing-operator": "7.10.1",
@@ -123,6 +118,13 @@
123118
"@types/fork-ts-checker-webpack-plugin": "0.4.5",
124119
"@types/isomorphic-fetch": "0.0.35",
125120
"@types/jquery": "3.3.33",
121+
"@types/jwt-decode": "2.2.1",
122+
"@types/highlight.js": "9.12.4",
123+
"@types/lodash": "^4.14.159",
124+
"@types/lodash.merge": "^4.6.6",
125+
"@types/react-youtube": "^7.6.2",
126+
"@types/reselect": "^2.2.0",
127+
"@types/sql-formatter": "2.3.0",
126128
"@types/mini-css-extract-plugin": "0.9.1",
127129
"@types/node-sass": "4.11.0",
128130
"@types/optimize-css-assets-webpack-plugin": "5.0.1",
@@ -152,6 +154,7 @@
152154
"@types/webpack-dev-middleware": "3.7.0",
153155
"@types/webpack-hot-middleware": "2.25.0",
154156
"@types/ws": "7.2.3",
157+
"@types/youtube-player": "^5.5.3",
155158
"@typescript-eslint/eslint-plugin": "3.8.0",
156159
"@typescript-eslint/parser": "2.24.0",
157160
"autoprefixer": "9.7.6",
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
.hi_icon {
2+
display: flex;
3+
align-items: center;
4+
justify-content: center;
5+
z-index: 10;
6+
cursor: pointer;
7+
text-align: center;
8+
font-size: 24px;
9+
width: 48px;
10+
height: 48px;
11+
background-color: #fff;
12+
border-radius: 100%;
13+
position: fixed;
14+
bottom: 24px;
15+
right: 24px;
16+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.08);
17+
}
18+
.onboarding_popup {
19+
bottom: 32px;
20+
z-index: 10;
21+
right: 32px;
22+
background: #fff;
23+
width: 320px;
24+
border: 1px solid #d7d7d7;
25+
padding: 0;
26+
border-radius: 4px;
27+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.08);
28+
position: fixed;
29+
font-family: 'Gudea', -apple-system, sans-serif;
30+
}
31+
32+
.link_icon {
33+
float: left;
34+
font-size: 12px;
35+
}
36+
.popup_header {
37+
display: flex;
38+
font-weight: bold;
39+
align-items: center;
40+
padding: 16px;
41+
color: #4d4d4d;
42+
background: #faca33;
43+
font-family: 'Gudea', -apple-system, sans-serif;
44+
}
45+
.popup_header img {
46+
margin-right: 8px;
47+
width: 25px;
48+
}
49+
.flex_center {
50+
display: flex;
51+
align-items: center;
52+
}
53+
.popup_body ul {
54+
list-style: none;
55+
text-align: start;
56+
padding: 0px;
57+
}
58+
.popup_item {
59+
font-size: 16px;
60+
border-bottom: 1px solid #cccccc;
61+
}
62+
.popup_item.video {
63+
border-bottom: none;
64+
}
65+
.link_container {
66+
padding: 16px;
67+
color: inherit;
68+
text-decoration: none;
69+
}
70+
.link_container.link {
71+
display: flex;
72+
align-items: center;
73+
}
74+
.link_container.link:hover {
75+
text-decoration: underline;
76+
i {
77+
text-decoration: underline;
78+
}
79+
}
80+
.spacer {
81+
flex: 1;
82+
}
83+
.link_num {
84+
display: inline-flex;
85+
justify-content: center;
86+
align-items: center;
87+
height: 20px;
88+
padding: 2px;
89+
width: 20px;
90+
background-color: #eeeeee;
91+
border-radius: 50%;
92+
margin-right: 8px;
93+
}
94+
.muted {
95+
color: #999fb1 !important;
96+
}
97+
.button {
98+
background-color: white;
99+
border: none;
100+
cursor: pointer;
101+
}
102+
.button:hover {
103+
text-decoration: underline;
104+
}
105+
.popup_buttons {
106+
display: flex;
107+
padding: 8px 8px 16px;;
108+
justify-content: space-between;
109+
}
Lines changed: 11 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)