Skip to content

Commit e12ae5c

Browse files
authored
Merge pull request #317 from zenml-io/UAT
Latest release
2 parents 9c6ad3e + 7518ed0 commit e12ae5c

File tree

200 files changed

+11337
-488
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

200 files changed

+11337
-488
lines changed

.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
REACT_APP_BASE_API_URL=https://appserver.zenml.io/api/v1
1+
REACT_APP_BASE_API_URL="https://appserver.zenml.io/api/v1"
2+
REACT_APP_HUB_API_URL="https://hubapi.zenml.io"
23
REACT_APP_VERSION=$npm_package_version

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
yarn install
2727
yarn build
2828
env:
29+
REACT_APP_HUB_API_URL: "https://hubapi.zenml.io"
2930
REACT_APP_BASE_API_URL: "/api/v1"
3031
REACT_APP_MOCKAPI_RESPONSE: false
3132
REACT_APP_VERSION: ${{ steps.get_version.outputs.VERSION }}

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ build/Release
4040
# Dependency directories
4141
node_modules/
4242
jspm_packages/
43+
.yarn/
4344

4445
# TypeScript v1 declaration files
4546
typings/
@@ -85,6 +86,9 @@ typings/
8586
.nuxt
8687
dist
8788

89+
# CRA build output
90+
build/
91+
8892
# Gatsby files
8993
.cache/
9094
# Comment in the public line in if your workspace uses Gatsby and *not* Next.js

.storybook/main.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
3+
addons: [
4+
// '@storybook/addon-links',
5+
// '@storybook/addon-essentials',
6+
// '@storybook/addon-interactions',
7+
'@storybook/preset-create-react-app',
8+
'@storybook/preset-scss',
9+
],
10+
framework: '@storybook/react',
11+
};

.storybook/preview.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import React from 'react';
2+
import { BrowserRouter as Router } from 'react-router-dom';
3+
4+
import '../src/index.css';
5+
import '../src/App.css';
6+
import '../src/ui/default.css';
7+
8+
export const decorators = [
9+
(Story) => (
10+
<Router>
11+
<Story />
12+
</Router>
13+
),
14+
];
15+
16+
export const parameters = {
17+
actions: { argTypesRegex: '^on[A-Z].*' },
18+
controls: {
19+
matchers: {
20+
color: /(background|color)$/i,
21+
date: /Date$/,
22+
},
23+
},
24+
};

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

global.d.ts

Lines changed: 73 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ type TId = string;
44

55
type TToasterTypes = 'success' | 'failure';
66

7+
type DateString = string;
8+
79
interface TApiActionsTypes {
810
request: string;
911
success: string;
@@ -42,7 +44,19 @@ interface TUser {
4244
email_opted_in: any;
4345
emailOptedIn: any;
4446
roles: Array<any>;
45-
created: any
47+
created: any;
48+
}
49+
50+
interface THubUser {
51+
id: string;
52+
email: string;
53+
is_active: boolean;
54+
is_superuser: boolean;
55+
is_verified: boolean;
56+
username: string;
57+
avatar_url?: string;
58+
bio: string;
59+
website: string;
4660
}
4761

4862
interface TOrganization {
@@ -192,6 +206,9 @@ interface TabPage {
192206
text: string;
193207
Component: React.FC;
194208
path: string;
209+
externalPath?: string;
210+
locked?: boolean;
211+
lockedClickHandler?: () => void;
195212
}
196213

197214
interface TBilling {
@@ -243,3 +260,58 @@ interface TInvoice {
243260
}
244261

245262
type TInvoiceStatus = 'draft' | 'open' | 'paid' | 'uncollectible';
263+
264+
interface TPlugin {
265+
id: TId;
266+
name: name;
267+
author: name;
268+
// from the plugin's Readme
269+
description?: string;
270+
version: name;
271+
tags: string[];
272+
logo_url?: string;
273+
index_url?: string;
274+
package_name: string;
275+
created: DateString;
276+
updated: DateString;
277+
user: { id: string; username: string };
278+
// upvotes: string;
279+
// downloads: string;
280+
// popularity: string;
281+
}
282+
283+
interface TPluginDetail extends TPlugin {
284+
plugin_id: TId;
285+
version_id: string;
286+
logo_url?: string;
287+
index_url?: string;
288+
canonical_url: string;
289+
release_notes: string | null;
290+
repository_url: string;
291+
repository_subdirectory?: string;
292+
repository_branch?: string;
293+
repository_commit?: string;
294+
build_logs: string;
295+
}
296+
297+
interface TPluginVersion {
298+
id: TId;
299+
version: string;
300+
plugin_id: TId;
301+
author: string;
302+
status: 'pending' | 'failed' | 'available' | 'yanked';
303+
repository_url: string;
304+
repository_subdirectory?: string;
305+
repository_branch?: string;
306+
repository_commit?: string;
307+
canonical_url: string;
308+
readme_url?: string;
309+
logo_url?: string;
310+
index_url?: string;
311+
release_notes: string | null;
312+
package_name: string;
313+
requirements: string[];
314+
build_logs?: string;
315+
created: DateString;
316+
updated: DateString;
317+
}

package.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"@types/country-list": "^2.1.0",
1616
"@types/dagre": "^0.7.48",
1717
"@types/jest": "^26.0.8",
18-
"@types/lodash": "^4.14.158",
1918
"@types/node": "^14.0.27",
2019
"@types/react": "^16.9.44",
2120
"@types/react-datepicker": "^4.4.2",
@@ -25,6 +24,7 @@
2524
"@types/react-router-dom": "^5.1.5",
2625
"@types/react-scroll": "^1.5.5",
2726
"@types/react-syntax-highlighter": "^11.0.4",
27+
"@types/react-vis": "^1.11.11",
2828
"@types/redux-logger": "^3.0.8",
2929
"@types/styled-components": "^5.1.26",
3030
"axios": "^0.19.2",
@@ -41,6 +41,8 @@
4141
"i18next-browser-languagedetector": "^5.0.0",
4242
"json2yaml": "^1.1.0",
4343
"jwt-decode": "^3.1.2",
44+
"lodash": "^4.17.21",
45+
"lottie-react": "^2.4.0",
4446
"moment": "^2.29.4",
4547
"node-sass": "^4.14.1",
4648
"query-string": "^6.13.1",
@@ -52,6 +54,7 @@
5254
"react-flow-renderer": "^10.3.16",
5355
"react-joyride": "^2.5.3",
5456
"react-json-pretty": "^2.2.0",
57+
"react-markdown": "^8.0.6",
5558
"react-outside-click-handler": "^1.3.0",
5659
"react-redux": "^7.2.1",
5760
"react-router-dom": "^5.2.0",
@@ -60,6 +63,7 @@
6063
"react-syntax-highlighter": "^13.3.1",
6164
"react-tooltip": "^4.2.10",
6265
"react-tooltip-lite": "^1.12.0",
66+
"react-vis": "^1.11.12",
6367
"redux": "^4.0.5",
6468
"redux-logger": "^3.0.6",
6569
"redux-persist": "^6.0.0",
@@ -77,7 +81,9 @@
7781
"lint": "eslint './src/**/*.ts*'",
7882
"fix-lint": "eslint './src/**/*.ts*' --fix",
7983
"tslint": "tsc",
80-
"all": "eslint './src/**/*.ts*' & react-scripts test --all & tsc"
84+
"all": "eslint './src/**/*.ts*' & react-scripts test --all & tsc",
85+
"storybook": "start-storybook -p 6006 -s public",
86+
"build-storybook": "build-storybook -s public"
8187
},
8288
"browserslist": {
8389
"production": [
@@ -92,6 +98,7 @@
9298
]
9399
},
94100
"devDependencies": {
101+
"@types/lodash": "^4.14.192",
95102
"@typescript-eslint/eslint-plugin": "^3.7.1",
96103
"@typescript-eslint/parser": "^3.7.1",
97104
"autoprefixer": "^10.4.8",

src/App.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,24 @@ body,
2121
-webkit-tap-highlight-color: transparent;
2222
}
2323

24+
::-webkit-scrollbar {
25+
height: 11px;
26+
width: 11px;
27+
}
28+
29+
/* Handle */
30+
::-webkit-scrollbar-thumb {
31+
background: rgba(168, 168, 168, 0.5);
32+
border-radius: 6px;
33+
}
34+
35+
/* Track */
36+
::-webkit-scrollbar-track {
37+
background: rgba(217, 217, 217, 0.5);
38+
border-radius: 6px;
39+
}
40+
41+
2442
html {
2543
font-size: 62.5%;
2644
box-sizing: border-box;

src/api/constants.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ export const httpMethods = {
66
delete: 'DELETE',
77
};
88

9-
export const BASE_API_URL = process.env.REACT_APP_BASE_API_URL;
9+
export const BASE_API_URL = process.env.REACT_APP_BASE_API_URL as string;
10+
export const HUB_API_URL = process.env.REACT_APP_HUB_API_URL as string;
1011

1112
// https://appserver.zenml.io/api/v1
12-
// http://localhost:8080/api/v1
13+
// http://localhost:8080/api/v1

0 commit comments

Comments
 (0)