You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: web/src/components/common/DemoComponents.tsx
+28-68Lines changed: 28 additions & 68 deletions
Original file line number
Diff line number
Diff line change
@@ -4,93 +4,53 @@ import { SettingsBlock } from './SettingsBlock'
4
4
import{Markdown}from'./Markdown';
5
5
import{useSelector}from'react-redux';
6
6
import{RootState}from'../../state/store';
7
+
import{getApp}from'../../helpers/app';
7
8
8
9
9
-
constDEMO_SLUGS=[
10
-
"/138-demo-sql",
11
-
"/139-demo-mbql",
12
-
"/1-e-commerce-insights",
13
-
"/35-us-green-card",
14
-
]
15
-
16
-
constMESSAGES=[
17
-
`Hey there! Welcome to the **MinusX SQL Demo**. Try any of the suggested questions, or ask something of your own!
18
-
19
-
---
20
-
\`[badge]Protip: \` Click the **[Context](https://docs.minusx.ai/en/articles/11166007-default-tables)** quick action to control the tables MinusX can see!`,
21
-
`Hey there! Welcome to the **[MinusX Question Builder Demo](https://docs.minusx.ai/en/articles/11637221-metabase-gui-question-builder)**. Try any of the suggested questions, or ask something of your own!
22
-
23
-
---
24
-
\`[badge]Protip: \` Click the MinusX logo on the left to toggle the side panel`,
25
-
`Hey there! Welcome to the **[MinusX Dashboard Demo](https://docs.minusx.ai/en/articles/11496071-q-a-on-dashboards)**. Try any of the suggested questions, or ask something of your own!
26
-
27
-
---
28
-
\`[badge]Protip: \` Install MinusX on your own Metabase with a [simple Chrome Extension](https://minusx.ai/chrome-extension/)`,
29
-
`Welcome to MinusX! Use this chat to ask any questions about the data.
30
-
31
-
---
32
-
\`[badge]Protip: \` Install MinusX on your own Metabase with a [simple Chrome Extension](https://minusx.ai/chrome-extension/)`
33
-
]
34
-
35
-
constMESSAGE_TITLES=[
36
-
"SQL Demo",
37
-
"MBQL Demo",
38
-
"Dashboard Q&A",
39
-
"Green Cards"
40
-
]
41
-
42
-
constALL_SUGGESTIONS=[
43
-
[
44
-
"show me monthly category wise sales but i want 2023 and 2024 in separate columns, with a col for % change",
45
-
"bar plot this!",
46
-
],
47
-
[
48
-
"filter for this year, sort by orders",
49
-
"pick top 15?"
50
-
],
51
-
[
52
-
"what's the total non gizmo order %?"
53
-
],
54
-
[
55
-
"Show me the top 10th percentile of income for H1Bs",
56
-
"Show me the top 10 most popular green card visa categories",
57
-
"How many green card applications were certified in 2024?"
0 commit comments