Skip to content

Commit 5e6cb19

Browse files
authored
Merge pull request #4280 from Mara3l/smac/9.3.0-updates
TRIVIAL: 9.3.0 bump + missing articles
2 parents 2911667 + 06b7a76 commit 5e6cb19

File tree

11 files changed

+538
-41
lines changed

11 files changed

+538
-41
lines changed

docs/config/public/params.toml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,19 @@
66
# - "url" - url for link in version menu. May be absolute URL.
77
# - "latestTag" - docker image tag for the latest patch version. Must be changed
88
# on every patch release of respective branch
9+
10+
[[versions]]
11+
version = "9.3"
12+
dirpath = "latest"
13+
url = "/latest/"
914
[[versions]]
1015
version = "9.2"
11-
dirpath = "latest"
12-
url = "/latest/"
16+
dirpath = "9.2"
17+
url = "/9.2/"
1318
[[versions]]
1419
version = "9.1"
1520
dirpath = "9.1"
1621
url = "/9.1/"
17-
[[versions]]
18-
version = "9.0"
19-
dirpath = "9.0"
20-
url = "/9.0/"
2122
[[versions]]
2223
version = "Older"
2324
url = "https://sdk.gooddata.com/gooddata-ui/versions.html"

docs/content/en/latest/architecture/architecture_overview/compatibility/_index.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,14 @@ The first version of GoodData.UI compatible with GoodData Cloud is 8.10.0, previ
5858

5959
The following table shows compatibility between GoodData.UI and GoodData.CN
6060

61-
<table class="tg">
61+
<table class="tg">
6262
<thead>
6363
<tr>
6464
<th class="tg-0lax" colspan="2" rowspan="2" style="background-color:#fff;border-top-color:#fff;border-left-color:#fff"></th>
65-
<th class="tg-0lax2" colspan="13">GoodData.UI</th>
65+
<th class="tg-0lax2" colspan="14">GoodData.UI</th>
6666
</tr>
6767
<tr style="background-color:#fff">
68+
<th class="tg-kftd">9.3.0</th>
6869
<th class="tg-kftd">9.2.0</th>
6970
<th class="tg-kftd">9.1.0</th>
7071
<th class="tg-kftd">9.0.1</th>
@@ -83,9 +84,10 @@ The following table shows compatibility between GoodData.UI and GoodData.CN
8384
</thead>
8485
<tbody>
8586
<tr>
86-
<td class="tg-cly1" rowspan="15" >GoodData.CN</td>
87+
<td class="tg-cly1" rowspan="16" >GoodData.CN</td>
8788
<td class="tg-kftd" style="background-color:#fff">3.0</td>
8889
<td class="tg-0lax">✓</td>
90+
<td class="tg-0lax">✓</td>
8991
<td class="tg-0lax"></td>
9092
<td class="tg-0lax"></td>
9193
<td class="tg-0lax"></td>
@@ -104,6 +106,7 @@ The following table shows compatibility between GoodData.UI and GoodData.CN
104106
<td class="tg-kftd" style="background-color:#fff">2.5</td>
105107
<td class="tg-0lax"></td>
106108
<td class="tg-0lax"></td>
109+
<td class="tg-0lax"></td>
107110
<td class="tg-0lax">✓</td>
108111
<td class="tg-0lax"></td>
109112
<td class="tg-0lax"></td>
@@ -121,6 +124,7 @@ The following table shows compatibility between GoodData.UI and GoodData.CN
121124
<td class="tg-kftd" style="background-color:#fff">2.4</td>
122125
<td class="tg-0lax"></td>
123126
<td class="tg-0lax"></td>
127+
<td class="tg-0lax"></td>
124128
<td class="tg-0lax">✓</td>
125129
<td class="tg-0lax"></td>
126130
<td class="tg-0lax"></td>
@@ -139,6 +143,7 @@ The following table shows compatibility between GoodData.UI and GoodData.CN
139143
<td class="tg-0lax"></td>
140144
<td class="tg-0lax"></td>
141145
<td class="tg-0lax"></td>
146+
<td class="tg-0lax"></td>
142147
<td class="tg-0lax">✓</td>
143148
<td class="tg-0lax"></td>
144149
<td class="tg-0lax"></td>
@@ -157,6 +162,7 @@ The following table shows compatibility between GoodData.UI and GoodData.CN
157162
<td class="tg-0lax"></td>
158163
<td class="tg-0lax"></td>
159164
<td class="tg-0lax"></td>
165+
<td class="tg-0lax"></td>
160166
<td class="tg-0lax">✓</td>
161167
<td class="tg-0lax">✓</td>
162168
<td class="tg-0lax"></td>
@@ -174,6 +180,7 @@ The following table shows compatibility between GoodData.UI and GoodData.CN
174180
<td class="tg-0lax"></td>
175181
<td class="tg-0lax"></td>
176182
<td class="tg-0lax"></td>
183+
<td class="tg-0lax"></td>
177184
<td class="tg-0lax">✓</td>
178185
<td class="tg-0lax">✓</td>
179186
<td class="tg-0lax"></td>
@@ -192,6 +199,7 @@ The following table shows compatibility between GoodData.UI and GoodData.CN
192199
<td class="tg-0lax"></td>
193200
<td class="tg-0lax"></td>
194201
<td class="tg-0lax"></td>
202+
<td class="tg-0lax"></td>
195203
<td class="tg-0lax">✓</td>
196204
<td class="tg-0lax">✓</td>
197205
<td class="tg-0lax"></td>
@@ -210,6 +218,7 @@ The following table shows compatibility between GoodData.UI and GoodData.CN
210218
<td class="tg-0lax"></td>
211219
<td class="tg-0lax"></td>
212220
<td class="tg-0lax"></td>
221+
<td class="tg-0lax"></td>
213222
<td class="tg-0lax">✓</td>
214223
<td class="tg-0lax"></td>
215224
<td class="tg-0lax"></td>
@@ -228,6 +237,7 @@ The following table shows compatibility between GoodData.UI and GoodData.CN
228237
<td class="tg-0lax"></td>
229238
<td class="tg-0lax"></td>
230239
<td class="tg-0lax"></td>
240+
<td class="tg-0lax"></td>
231241
<td class="tg-0lax">✓</td>
232242
<td class="tg-0lax">✓</td>
233243
<td class="tg-0lax"></td>
@@ -245,6 +255,7 @@ The following table shows compatibility between GoodData.UI and GoodData.CN
245255
<td class="tg-0lax"></td>
246256
<td class="tg-0lax"></td>
247257
<td class="tg-0lax"></td>
258+
<td class="tg-0lax"></td>
248259
<td class="tg-0lax">✓</td>
249260
<td class="tg-0lax">✓</td>
250261
<td class="tg-0lax"></td>
@@ -264,6 +275,7 @@ The following table shows compatibility between GoodData.UI and GoodData.CN
264275
<td class="tg-0lax"></td>
265276
<td class="tg-0lax"></td>
266277
<td class="tg-0lax"></td>
278+
<td class="tg-0lax"></td>
267279
<td class="tg-0lax">✓</td>
268280
<td class="tg-0lax"></td>
269281
<td class="tg-0lax"></td>
@@ -281,6 +293,7 @@ The following table shows compatibility between GoodData.UI and GoodData.CN
281293
<td class="tg-0lax"></td>
282294
<td class="tg-0lax"></td>
283295
<td class="tg-0lax"></td>
296+
<td class="tg-0lax"></td>
284297
<td class="tg-0lax">✓</td>
285298
<td class="tg-0lax">✓</td>
286299
<td class="tg-0lax"></td>
@@ -298,6 +311,7 @@ The following table shows compatibility between GoodData.UI and GoodData.CN
298311
<td class="tg-0lax"></td>
299312
<td class="tg-0lax"></td>
300313
<td class="tg-0lax"></td>
314+
<td class="tg-0lax"></td>
301315
<td class="tg-0lax">✓</td>
302316
<td class="tg-0lax">✓</td>
303317
<td class="tg-0lax">✓</td>
@@ -315,6 +329,7 @@ The following table shows compatibility between GoodData.UI and GoodData.CN
315329
<td class="tg-0lax"></td>
316330
<td class="tg-0lax"></td>
317331
<td class="tg-0lax"></td>
332+
<td class="tg-0lax"></td>
318333
<td class="tg-0lax">✓</td>
319334
<td class="tg-0lax">✓</td>
320335
<td class="tg-0lax">✓</td>
@@ -332,6 +347,7 @@ The following table shows compatibility between GoodData.UI and GoodData.CN
332347
<td class="tg-0lax"></td>
333348
<td class="tg-0lax"></td>
334349
<td class="tg-0lax"></td>
350+
<td class="tg-0lax"></td>
335351
<td class="tg-0lax">✓</td>
336352
<td class="tg-0lax">✓</td>
337353
<td class="tg-0lax">✓</td>

docs/content/en/latest/architecture/supported_frameworks/_index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ weight: 28
66
no_list: true
77
---
88

9-
As of now, there is direct support only for [React](../../quick_start/) and [Angular 9+](./angular/). There are no near-future plans to introduce guides for any other platforms or frameworks.
9+
As of now, there is direct support only for [React](../../quick_start/) and [Angular 9+](./angular/) and indirect for [Next.js](./nextjs/)
10+
11+
There are no near-future plans to introduce guides for any other platforms or frameworks.
1012

1113
GoodData.UI also support [Web Components](../../learn/embed_dashboards/web_components/), as we understand, that sometimes, you don't want to use the React, due to the innert complexity it would bring.
1214

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
---
2+
title: Render GoodData Visualizations in Next.js
3+
linkTitle: Next.js
4+
copyright: (C) 2007-2018 GoodData Corporation
5+
---
6+
7+
Next.js is not supported out-of-the-box by GoodData.UI.
8+
9+
However, rendering the GoodData visualizations in your Next.js project is not as daunting as it seems. This article serves as a quick demo of how to integrate GoodData visualizations into your project.
10+
### Step 1: Install all necessary dependencies
11+
12+
The following packages deal with GoodData backend:
13+
14+
```bash
15+
npm i @gooddata/api-client-tiger @gooddata/sdk-backend-tiger
16+
```
17+
18+
The following package contains *all* components of GoodData UI SDK:
19+
20+
```bash
21+
npm i @gooddata/sdk-ui-all
22+
```
23+
24+
{{% alert title="Install only some components"%}}
25+
If you do not need to install all components, you can select only those you need. For more information refer to the [documentation](../../../learn/integrate_and_authenticate/cn_and_cloud_integration/#IntegrateCNandCloudintoanExistingApplication-Step1Installthenecessarydependencies).
26+
{{% /alert %}}
27+
28+
The following package will help you generate a file with code representation of all available metrics and attributes in your GoodData Cloud:
29+
30+
```bash
31+
npm i -D @gooddata/catalog-export
32+
```
33+
34+
### Step 2: Extend package.json
35+
36+
You need to modify `package.json`, and add the following properties:
37+
38+
```bash
39+
"gooddata": {
40+
"hostname": "<your-gooddata-host>",
41+
"workspaceId": "<your-workspace-id>",
42+
"catalogOutput": "app/gooddata-export.ts",
43+
"backend": "tiger"
44+
}
45+
```
46+
47+
This configuration is for the `catalog-export` tool, which exports all available metrics and attributes to a single file that you can reference in your code.
48+
49+
### Step 3: Add a new script to package.json
50+
51+
```bash
52+
"scripts": {
53+
"dev": "next dev",
54+
"build": "next build",
55+
"start": "next start",
56+
"lint": "next lint",
57+
"refresh-md": "gdc-catalog-export" <-- this is the new script you need to add!
58+
},
59+
```
60+
61+
### Step 4: Add API token
62+
63+
```bash
64+
export TIGER_API_TOKEN=<your-api-token>
65+
```
66+
67+
*Note: more info on how to get API token is in the [documentation](https://www.gooddata.com/developers/cloud-native/doc/cloud/getting-started/create-api-token/).*
68+
69+
### Step 5: Configure CORS in GoodData
70+
71+
If your Next.js application runs on a different domain than GoodData (which is the most probable scenario), you need to configure CORS. Basically, you need to go to `<your-gooddata-host>/settings` and add Cross-origin resource sharing (CORS). If your Next.js application runs on domain *https://super-cool-app.com*, you need to add *https://super-cool-app.com* to CORS. You can find more information in the [documentation](https://www.gooddata.com/developers/cloud-native/doc/cloud/manage-organization/set-up-cors-for-organization/).
72+
73+
### Step 6: Run catalog-export tool to export metrics and attributes
74+
75+
```bash
76+
npm run refresh-md
77+
```
78+
79+
The successful result is:
80+
The result generated from the workspace with id is located at `/app/gooddata-export.ts`.
81+
82+
### Step 7: Add styles
83+
84+
Add GoodData styles to `layout.tsx`:
85+
86+
```javascript
87+
import "@gooddata/sdk-ui-filters/styles/css/main.css";
88+
import "@gooddata/sdk-ui-charts/styles/css/main.css";
89+
import "@gooddata/sdk-ui-geo/styles/css/main.css";
90+
import "@gooddata/sdk-ui-pivot/styles/css/main.css";
91+
import "@gooddata/sdk-ui-kit/styles/css/main.css";
92+
import "@gooddata/sdk-ui-ext/styles/css/main.css";
93+
```
94+
95+
### Step 8: Build your visualization
96+
97+
The following code snippet contains example of simple GoodData visualization.
98+
99+
For more information, refer to this demo [Github repo](https://github.com/patrikbraborec/gooddata-nextjs).
100+
101+
```javascript
102+
const measures = [ReturnUnitCost.Sum];
103+
const attributes = [DateDatasets.CustomerCreatedDate.CustomerCreatedDateQuarterOfYear.Default];
104+
105+
return (
106+
<BackendProvider backend={backend}>
107+
<WorkspaceProvider workspace="<your-workspace-id>">
108+
<div className="w-full h-full flex flex-col items-center">
109+
<h1 className="my-10 text-2xl underline">GoodData with Next.js</h1>
110+
111+
<div className="w-1/2 h-1/2">
112+
<BarChart
113+
measures={measures}
114+
viewBy={attributes}
115+
/>
116+
</div>
117+
</div>
118+
</WorkspaceProvider>
119+
</BackendProvider>
120+
```
121+
122+
Now you can run your Next.js application with GoodData visualization.
123+
124+
## Run the Application
125+
126+
If you want to run this demo, please make sure you have configured everything correctly (with respect to GoodData) as described in the chapter above
127+
128+
Install all dependencies (you can skip this step if you have already installed your dependencies)
129+
130+
```bash
131+
npm install
132+
```
133+
134+
Run development server:
135+
136+
```bash
137+
npm run dev
138+
```
139+
140+
## Result
141+
142+
The following screenshot shows how this demo looks like:
143+
144+
![Next.js](/gd-ui/nextjs_intro.png)

0 commit comments

Comments
 (0)