Skip to content

Commit 58f751e

Browse files
authored
Merge branch 'develop' into i18n-translations
2 parents 66f1500 + 4e19f9c commit 58f751e

File tree

288 files changed

+7037
-3678
lines changed

Some content is hidden

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

288 files changed

+7037
-3678
lines changed

.env.development

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ REACT_APP_GTM_ID=GTM-WVXPS94
22
REACT_APP_GTM_AUTH=HjeAxSQB9e685mi-_8YiDw
33
REACT_APP_GTM_ENV=env-4
44
REACT_APP_API_URL=/api
5-
REACT_APP_TRYBER_WP_API_URL=https://dv-crowd.app-quality.com/wp-json/appq/v1
5+
REACT_APP_TRYBER_WP_API_URL=https://dev.tryber.me/wp-json/appq/v1
66
REACT_ZAPIER_WEBHOOK=https://hooks.zapier.com/hooks/catch/5196925/bkxm1k6/
77
REACT_APP_STRAPI_URL=https://admin.unguess.io
88
REACT_APP_STRAPI_API_URL=https://admin.unguess.io/api

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ yarn-error.log*
2626
.eslintcache
2727

2828
generate-devel-token.json
29+
generate-devel-token-*.json
2930

3031
# vs code configuration
3132
.vscode

craco.config.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,20 @@ const resolvedAliases = Object.fromEntries(
1919
module.exports = {
2020
webpack: {
2121
alias: resolvedAliases,
22+
configure: (webpackConfig) => {
23+
webpackConfig.module.rules.push({
24+
test: /\.mjs$/,
25+
include: /node_modules/,
26+
type: 'javascript/auto',
27+
});
28+
return webpackConfig;
29+
},
30+
},
31+
babel: {
32+
presets: ['@babel/preset-env'],
33+
plugins: [
34+
'@babel/plugin-proposal-optional-chaining',
35+
'@babel/plugin-proposal-nullish-coalescing-operator',
36+
],
2237
},
2338
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "1.4.0",
44
"private": true,
55
"dependencies": {
6-
"@appquality/unguess-design-system": "2.12.83",
6+
"@appquality/unguess-design-system": "3.1.2",
77
"@headwayapp/react-widget": "^0.0.4",
88
"@reduxjs/toolkit": "^1.8.0",
99
"@rtk-query/codegen-openapi": "^1.0.0-alpha.1",

src/App.test.tsx

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/app/App.tsx

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
import '../i18n';
2-
import { GlobalStyle } from '@appquality/unguess-design-system';
2+
import { GlobalStyle, ToastProvider } from '@appquality/unguess-design-system';
33
import { ThemeProvider } from '@zendeskgarden/react-theming';
44
import { useTranslation } from 'react-i18next';
55
import Helmet from 'react-helmet';
66
import Pages from 'src/common/Pages';
7-
import { theme } from 'src/app/theme';
7+
import { appTheme } from 'src/app/theme';
88
import { Provider } from 'react-redux';
99
import { store } from './store';
1010

1111
const App = () => {
1212
const { t } = useTranslation();
1313
return (
1414
<Provider store={store}>
15-
<ThemeProvider theme={theme}>
15+
<ThemeProvider theme={appTheme}>
1616
<GlobalStyle />
1717
<Helmet>
1818
<meta
@@ -22,7 +22,21 @@ const App = () => {
2222
<title>UNGUESS - {t('__APP_META_PAYOFF')}</title>
2323
<meta name="description" content={t('__APP_META_DESCRIPTION')} />
2424
</Helmet>
25-
<Pages />
25+
<ToastProvider
26+
limit={5}
27+
zIndex={500}
28+
placementProps={{
29+
top: {
30+
style: {
31+
top:
32+
parseInt(appTheme.components.chrome.header.height, 10) +
33+
appTheme.space.base * 4,
34+
},
35+
},
36+
}}
37+
>
38+
<Pages />
39+
</ToastProvider>
2640
</ThemeProvider>
2741
</Provider>
2842
);

src/app/theme.tsx

Lines changed: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
import {
22
theme as baseTheme,
3-
CHARTS_COLOR_PALETTE,
3+
getColor,
44
} from '@appquality/unguess-design-system';
55

66
export const SEVERITY_COLORS: Record<Severities, string> = {
7-
critical: CHARTS_COLOR_PALETTE.mattone,
8-
high: CHARTS_COLOR_PALETTE.gubbioLight,
9-
medium: CHARTS_COLOR_PALETTE.blueRoyal,
10-
low: CHARTS_COLOR_PALETTE.darkPine,
7+
critical: baseTheme.palette.red[900],
8+
high: baseTheme.palette.yellow[600],
9+
medium: baseTheme.palette.blue[600],
10+
low: baseTheme.palette.teal[700],
1111
};
1212

1313
export const SEVERITY_HUES: Record<Severities, string> = {
14-
critical: CHARTS_COLOR_PALETTE.mattone,
15-
high: CHARTS_COLOR_PALETTE.gubbioLight,
16-
medium: CHARTS_COLOR_PALETTE.blueRoyal,
17-
low: CHARTS_COLOR_PALETTE.darkPine,
14+
critical: baseTheme.palette.red[900],
15+
high: baseTheme.palette.yellow[600],
16+
medium: baseTheme.palette.blue[600],
17+
low: baseTheme.palette.teal[700],
1818
};
1919
// temporary fix for the bug state colors
2020
export const BUG_STATE_COLORS: Record<
@@ -30,38 +30,45 @@ export const BUG_STATE_COLORS: Record<
3030
color: baseTheme.palette.grey[400],
3131
},
3232
'to be imported': {
33-
stroke: baseTheme.palette.azure[400],
34-
color: baseTheme.palette.azure[400],
33+
stroke: baseTheme.palette.azure[500],
34+
color: baseTheme.palette.azure[500],
3535
},
3636
open: {
37-
stroke: baseTheme.palette.azure[400],
38-
color: baseTheme.palette.azure[400],
37+
stroke: baseTheme.palette.azure[500],
38+
color: baseTheme.palette.azure[500],
3939
},
4040
'to be retested': {
41-
stroke: baseTheme.palette.yellow[400],
42-
color: baseTheme.palette.yellow[400],
41+
stroke: baseTheme.palette.yellow[500],
42+
color: baseTheme.palette.yellow[500],
4343
},
4444
solved: {
45-
stroke: baseTheme.palette.green[600],
46-
color: baseTheme.palette.green[600],
45+
stroke: baseTheme.palette.green[500],
46+
color: baseTheme.palette.green[500],
4747
},
4848
'not a bug': {
4949
stroke: baseTheme.palette.grey[600],
5050
color: baseTheme.palette.grey[600],
5151
},
5252
};
5353

54-
const theme = {
54+
const appTheme = {
5555
...baseTheme,
5656
colors: {
5757
...baseTheme.colors,
5858
bySeverity: SEVERITY_COLORS,
5959
byBugState: BUG_STATE_COLORS,
6060
bySeverityHues: SEVERITY_HUES,
61-
darkPine: CHARTS_COLOR_PALETTE.darkPine,
6261
},
6362
components: {
6463
...baseTheme.components,
64+
text: {
65+
neutralColor: baseTheme.colors.foreground,
66+
primaryColor: getColor(baseTheme.colors.primaryHue, 600),
67+
successColor: getColor(baseTheme.colors.successHue, 700),
68+
warningColor: getColor(baseTheme.colors.warningHue, 700),
69+
dangerColor: getColor(baseTheme.colors.dangerHue, 700),
70+
infoColor: getColor(baseTheme.colors.infoHue, 700),
71+
},
6572
'tables.header_row': {
6673
height: 'auto',
6774
},
@@ -72,4 +79,5 @@ const theme = {
7279
},
7380
};
7481

75-
export { theme };
82+
export type AppTheme = typeof appTheme;
83+
export { appTheme };

0 commit comments

Comments
 (0)