Skip to content

Commit f55c396

Browse files
Merge pull request #582 from zenml-io/future
2 parents 3a8efc8 + e804b9f commit f55c396

File tree

1,524 files changed

+37594
-341
lines changed

Some content is hidden

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

1,524 files changed

+37594
-341
lines changed

.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
VITE_API_BASE_URL=
2+
VITE_FRONTEND_VERSION=
3+
VITE_FEATURE_OS_KEY=

.eslintignore

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
25+
26+
.env*
27+
!.env.example
28+
29+
pnpm-lock.yaml
30+
yarn.lock
31+
32+
legacy
33+
scripts/types.js

.eslintrc.cjs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
module.exports = {
2+
root: true,
3+
env: { browser: true, es2020: true },
4+
extends: [
5+
"eslint:recommended",
6+
"plugin:@typescript-eslint/recommended",
7+
"plugin:react-hooks/recommended"
8+
],
9+
ignorePatterns: ["dist", ".eslintrc.cjs"],
10+
parser: "@typescript-eslint/parser",
11+
plugins: ["react-refresh"],
12+
rules: {
13+
"react-refresh/only-export-components": ["warn", { allowConstantExport: true }],
14+
"no-mixed-spaces-and-tabs": "off",
15+
"@typescript-eslint/no-explicit-any": "warn",
16+
"@typescript-eslint/no-unused-vars": [
17+
"warn", // or "error"
18+
{
19+
argsIgnorePattern: "^_",
20+
varsIgnorePattern: "^_",
21+
caughtErrorsIgnorePattern: "^_"
22+
}
23+
]
24+
}
25+
};

.github/workflows/playwright.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Playwright Tests
2+
on:
3+
push:
4+
branches: [main, master]
5+
pull_request:
6+
branches: [main, master]
7+
jobs:
8+
test:
9+
timeout-minutes: 60
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: lts/*
16+
- name: Install dependencies
17+
run: npm install -g pnpm && pnpm install
18+
- name: Install Playwright Browsers
19+
run: pnpm exec playwright install --with-deps
20+
- name: Run Playwright tests
21+
run: pnpm exec playwright test
22+
- uses: actions/upload-artifact@v4
23+
if: always()
24+
with:
25+
name: playwright-report
26+
path: playwright-report/
27+
retention-days: 30

.github/workflows/release.yml

Lines changed: 40 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
push:
66
tags:
7-
- '*'
7+
- "*"
88

99
jobs:
1010
release:
@@ -13,44 +13,71 @@ jobs:
1313
steps:
1414
- name: Checkout Repository
1515
uses: actions/checkout@v2
16+
1617
- name: Get the version from the github tag ref
1718
id: get_version
1819
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
20+
1921
- uses: actions/setup-node@v3
2022
with:
21-
node-version: 18.16.0
23+
node-version: 20
24+
2225
- name: Install yarn
2326
run: npm install --global yarn
24-
- name: Build
27+
28+
- name: Install pnpm
29+
uses: pnpm/action-setup@v2
30+
with:
31+
version: latest
32+
33+
- name: Build old dashboard
34+
working-directory: ./legacy
2535
run: |
2636
yarn install
2737
yarn build
2838
env:
29-
REACT_APP_HUB_API_URL: 'https://hubapi.zenml.io'
30-
REACT_APP_BASE_API_URL: '/api/v1'
39+
REACT_APP_HUB_API_URL: "https://hubapi.zenml.io"
40+
REACT_APP_BASE_API_URL: "/api/v1"
3141
REACT_APP_MOCKAPI_RESPONSE: false
32-
REACT_APP_USE_COOKIE: 'true'
42+
REACT_APP_USE_COOKIE: "true"
3343
REACT_APP_VERSION: ${{ steps.get_version.outputs.VERSION }}
44+
45+
- name: Build new dashboard
46+
run: |
47+
pnpm install --frozen-lockfile
48+
pnpm build
49+
env:
50+
VITE_API_BASE_URL: "/api/v1"
51+
VITE_FRONTEND_VERSION: ${{ steps.get_version.outputs.VERSION }}
52+
VITE_FEATURE_OS_KEY: ${{ secrets.FEATURE_OS_KEY }}
53+
3454
- name: Generate Changelog
3555
uses: heinrichreimer/[email protected]
3656
with:
3757
token: ${{ secrets.GITHUB_TOKEN }}
38-
pullRequests: 'false'
39-
onlyLastTag: 'true'
40-
stripGeneratorNotice: 'true'
41-
issuesWoLabels: 'true'
42-
stripHeaders: 'true'
58+
pullRequests: "false"
59+
onlyLastTag: "true"
60+
stripGeneratorNotice: "true"
61+
issuesWoLabels: "true"
62+
stripHeaders: "true"
63+
4364
- name: Create release archive
4465
run: |
45-
tar -zcf zenml-dashboard.tar.gz -C build --transform="s#\.\/##" .
66+
tar -zcf zenml-dashboard-legacy.tar.gz -C ./legacy/build --transform="s#\.\/##" .
67+
sha256sum -b zenml-dashboard-legacy.tar.gz > zenml-dashboard-legacy.tar.gz.sha256
68+
tar -zcf zenml-dashboard.tar.gz -C dist --transform="s#\.\/##" .
4669
sha256sum -b zenml-dashboard.tar.gz > zenml-dashboard.tar.gz.sha256
70+
71+
4772
- name: Release to GitHub
4873
uses: softprops/action-gh-release@v1
4974
with:
5075
files: |
76+
zenml-dashboard-legacy.tar.gz
77+
zenml-dashboard-legacy.tar.gz.sha256
5178
zenml-dashboard.tar.gz
5279
zenml-dashboard.tar.gz.sha256
5380
body_path: ./CHANGELOG.md
54-
prerelease: 'true'
81+
prerelease: "true"
5582
env:
5683
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/unit-tests.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Unit Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- dev
8+
pull_request:
9+
branches:
10+
- main
11+
- dev
12+
workflow_dispatch:
13+
14+
jobs:
15+
test:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout Repository
20+
uses: actions/checkout@v2
21+
22+
- name: Set up Node.js
23+
uses: actions/setup-node@v2
24+
with:
25+
node-version: "20"
26+
27+
- name: Install pnpm
28+
uses: pnpm/action-setup@v2
29+
with:
30+
version: latest
31+
32+
- name: Install project dependencies
33+
run: pnpm install --frozen-lockfile
34+
35+
- name: Run Unit Tests
36+
run: pnpm test:unit

.gitignore

Lines changed: 22 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -4,115 +4,28 @@ logs
44
npm-debug.log*
55
yarn-debug.log*
66
yarn-error.log*
7+
pnpm-debug.log*
78
lerna-debug.log*
89

9-
# Diagnostic reports (https://nodejs.org/api/report.html)
10-
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11-
12-
# Runtime data
13-
pids
14-
*.pid
15-
*.seed
16-
*.pid.lock
17-
18-
# Directory for instrumented libs generated by jscoverage/JSCover
19-
lib-cov
20-
21-
# Coverage directory used by tools like istanbul
22-
coverage
23-
*.lcov
24-
25-
# nyc test coverage
26-
.nyc_output
27-
28-
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29-
.grunt
30-
31-
# Bower dependency directory (https://bower.io/)
32-
bower_components
33-
34-
# node-waf configuration
35-
.lock-wscript
36-
37-
# Compiled binary addons (https://nodejs.org/api/addons.html)
38-
build/Release
39-
40-
# Dependency directories
41-
node_modules/
42-
jspm_packages/
43-
.yarn/
44-
45-
# TypeScript v1 declaration files
46-
typings/
47-
48-
# TypeScript cache
49-
*.tsbuildinfo
50-
51-
# Optional npm cache directory
52-
.npm
53-
54-
# Optional eslint cache
55-
.eslintcache
56-
57-
# Microbundle cache
58-
.rpt2_cache/
59-
.rts2_cache_cjs/
60-
.rts2_cache_es/
61-
.rts2_cache_umd/
62-
63-
# Optional REPL history
64-
.node_repl_history
65-
66-
# Output of 'npm pack'
67-
*.tgz
68-
69-
# Yarn Integrity file
70-
.yarn-integrity
71-
72-
# dotenv environment variables file
73-
.env
74-
.env.test
75-
.env.development
76-
.env.production
77-
.DS_store
78-
79-
# parcel-bundler cache (https://parceljs.org/)
80-
.cache
81-
82-
# Next.js build output
83-
.next
84-
85-
# Nuxt.js build / generate output
86-
.nuxt
10+
node_modules
8711
dist
88-
89-
# CRA build output
90-
build/
91-
92-
# Gatsby files
93-
.cache/
94-
# Comment in the public line in if your workspace uses Gatsby and *not* Next.js
95-
# https://nextjs.org/blog/next-9-1#public-directory-support
96-
# public
97-
98-
# vuepress build output
99-
.vuepress/dist
100-
101-
# Serverless directories
102-
.serverless/
103-
104-
# FuseBox cache
105-
.fusebox/
106-
107-
# DynamoDB Local files
108-
.dynamodb/
109-
110-
# TernJS port file
111-
.tern-port
112-
113-
# IntelliJ IDE directories
114-
.idea/
115-
116-
!.env
117-
118-
build
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
25+
/test-results/
26+
/playwright-report/
27+
/blob-report/
28+
/playwright/.cache/
29+
30+
.env*
31+
!.env.example

.husky/pre-commit

100755100644
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#!/usr/bin/env sh
22
. "$(dirname -- "$0")/_/husky.sh"
3-
yarn prettier:fix && git add .
3+
4+
npx lint-staged

0 commit comments

Comments
 (0)