Skip to content

Commit

Permalink
Merge pull request #829 from kubeshop/release/v1.14.0
Browse files Browse the repository at this point in the history
Release v1.14.0
  • Loading branch information
rangoo94 authored Aug 24, 2023
2 parents fbf9a33 + c64e586 commit e2e0348
Show file tree
Hide file tree
Showing 388 changed files with 6,858 additions and 6,053 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ server.js
build.js
init.js
site
test/dashboard-e2e/fixtures/files
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module.exports = {
'unused-imports/no-unused-imports-ts': 'warn',
'react/jsx-curly-brace-presence': 'warn', // should be warned and allowed for compilation
'spaced-comment': 'warn', // should be warned and allowed for compilation
'react/no-unused-prop-types': 'warn', // should be warned and allowed for compilation
'react/no-unused-prop-types': 'off', // false positives, when components are wrapped with memo/forwardRef
'react/self-closing-comp': 'warn', // should be warned and allowed for compilation
'react/jsx-props-no-spreading': 0,
'react/jsx-max-props-per-line': [1, {maximum: 1, when: 'multiline'}],
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docker-build-beta-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ jobs:
TARGET=${{ matrix.path }}
REACT_APP_VERSION=${{ steps.tag.outputs.tag }}
REACT_APP_GTM_ID=${{ secrets.REACT_APP_GOOGLE_ANALYTICS_ID }}
REACT_APP_SENTRY_DSN=${{ secrets.REACT_APP_SENTRY_DSN }}
SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}
tags: ${{ github.repository }}:${{steps.tag.outputs.tag}}-${{ matrix.name }}
cache-from: type=gha,scope=${{ matrix.name }}
cache-to: type=gha,mode=max,scope=${{ matrix.name }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docker-build-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:
build-args: |
REACT_APP_VERSION=${{ steps.github_sha.outputs.sha_short }}
REACT_APP_GTM_ID=${{ secrets.REACT_APP_GOOGLE_ANALYTICS_ID }}
REACT_APP_SENTRY_DSN=${{ secrets.REACT_APP_SENTRY_DSN }}
SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}
tags: ${{ github.repository }}:${{ steps.github_sha.outputs.sha_short }}
cache-from: type=gha
cache-to: type=gha,mode=max
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docker-build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ jobs:
build-args: |
REACT_APP_VERSION=${{ steps.github_sha.outputs.sha_short }}
REACT_APP_GTM_ID=${{ secrets.REACT_APP_GOOGLE_ANALYTICS_ID }}
REACT_APP_SENTRY_DSN=${{ secrets.REACT_APP_SENTRY_DSN }}
SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}
tags: ${{ github.repository }}:${{ steps.github_sha.outputs.sha_short }}
cache-from: type=gha
cache-to: type=gha,mode=max
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docker-build-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ jobs:
TARGET=${{ matrix.path }}
REACT_APP_VERSION=${{ steps.tag.outputs.tag }}
REACT_APP_GTM_ID=${{ secrets.REACT_APP_GOOGLE_ANALYTICS_ID }}
REACT_APP_SENTRY_DSN=${{ secrets.REACT_APP_SENTRY_DSN }}
SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}
tags: ${{ github.repository }}:${{steps.tag.outputs.tag}}-${{ matrix.name }}
cache-from: type=gha,scope=${{ matrix.name }}
cache-to: type=gha,mode=max,scope=${{ matrix.name }}
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ jobs:
if: steps.cache-nodemodules.outputs.cache-hit != 'true'
run: npm install --legacy-peer-deps

- name: TypeScript Types
run: npm run ts-check

- name: ESLint Checking
if: always()
run: npm run lint
Expand All @@ -62,7 +65,3 @@ jobs:
- name: StyleLint Checking
if: always()
run: npm run stylelint

- name: TypeScript Types
if: always()
run: npm run ts-check
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ build
node_modules
playwright-report
test-results
dashboard-e2e/fixtures/files
5 changes: 3 additions & 2 deletions .prettierrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ const {loadConfig: loadTsConfig} = require('tsconfig-paths');

const {join} = require('node:path');

const paths = Object.keys(loadTsConfig(join(__dirname, 'tsconfig.json')).paths)
const original = Object.keys(loadTsConfig(join(__dirname, 'tsconfig.json')).paths);
const paths = original
.map(path => path.replace(/\/\*$/, ''))
.sort()
.filter((x, i, a) => a.indexOf(x) === i);
Expand All @@ -14,7 +15,7 @@ module.exports = {
'^(antd|@ant-design)',
'^@reduxjs',
'<THIRD_PARTY_MODULES>',
...paths.flatMap(path => [`^${path}`, `^${path}/`]),
...paths.flatMap(path => original.includes(path) ? [`^${path}`, `^${path}/`] : [`^${path}/`]),
'^\\.\\.(\\/)?',
'^\\.\\/',
'^.$',
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ ARG TARGET=nginx:alpine
FROM node:20 as build
WORKDIR /app

ARG SENTRY_AUTH_TOKEN
ARG REACT_APP_SENTRY_DSN
ARG REACT_APP_GTM_ID
ENV REACT_APP_GTM_ID=$REACT_APP_GTM_ID
ARG REACT_APP_VERSION
ENV REACT_APP_VERSION=$REACT_APP_VERSION

ENV PATH /app/node_modules/.bin:$PATH
COPY ./package.json /app/
COPY ./package*.json /app/
# install dependencies
RUN npm install --legacy-peer-deps
# copy everything to /app directory
Expand Down
14 changes: 14 additions & 0 deletions craco.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const {pathsToModuleNameMapper} = require('ts-jest');
const {loadConfig: loadTsConfig} = require('tsconfig-paths');
const MonacoEditorWebpackPlugin = require('monaco-editor-webpack-plugin');
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
const {sentryWebpackPlugin} = require('@sentry/webpack-plugin');

const {paths} = loadTsConfig('.');

Expand All @@ -24,9 +25,22 @@ module.exports = {
],
features: ['caretOperations', 'clipboard', 'contextmenu', 'hover', 'indentation', 'lineSelection', 'suggest']
}),
sentryWebpackPlugin({
org: 'kubeshop',
project: 'testkube-oss',
include: './build',
release: {name: process.env.REACT_APP_VERSION},
authToken: process.env.SENTRY_AUTH_TOKEN,
disabled: !process.env.SENTRY_AUTH_TOKEN || !process.env.REACT_APP_VERSION,
telemetry: false,
}),
],
},
configure: webpackConfig => {
webpackConfig.entry = [
path.join(__dirname, 'src', 'sentry.ts'),
path.join(__dirname, 'src', 'index.tsx'),
];
webpackConfig.resolve.plugins.push(new TsconfigPathsPlugin({
extensions: webpackConfig.resolve.extensions,
}));
Expand Down
Loading

1 comment on commit e2e0348

@vercel
Copy link

@vercel vercel bot commented on e2e0348 Aug 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.