Skip to content

Commit 2c142b0

Browse files
authored
Merge pull request #702 from AppQuality/develop
release 20231123
2 parents 10c6e5e + db8301c commit 2c142b0

40 files changed

+2463
-449
lines changed

src/app/store.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import filterReducer from '../features/campaignsFilter/campaignsFilterSlice';
88
import expressReducer from '../features/express/expressSlice';
99
import { strapiSlice } from '../features/backoffice/strapi';
1010
import bugsPageReducer from '../features/bugsPage/bugsPageSlice';
11+
import uxFilterReducer from '../features/uxFilters';
1112

1213
export const store = configureStore({
1314
reducer: {
@@ -17,6 +18,7 @@ export const store = configureStore({
1718
filters: filterReducer,
1819
express: expressReducer,
1920
bugsPage: bugsPageReducer,
21+
uxFilters: uxFilterReducer,
2022
[unguessApiSlice.reducerPath]: unguessApiSlice.reducer,
2123
[strapiSlice.reducerPath]: strapiSlice.reducer,
2224
},

src/assets/not_found/404_desktop.svg

Lines changed: 177 additions & 0 deletions
Loading

src/assets/not_found/404_media_desktop.svg

Lines changed: 269 additions & 0 deletions
Loading

src/assets/not_found/404_media_mobile.svg

Lines changed: 202 additions & 0 deletions
Loading

src/assets/not_found/404_mobile.svg

Lines changed: 160 additions & 0 deletions
Loading

src/common/Pages.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ import CampaignPreview from 'src/pages/Campaign/preview';
1515
import Dashboard from 'src/pages/Dashboard';
1616
import Project from 'src/pages/Dashboard/Project';
1717
import LoginPage from 'src/pages/LoginPage';
18-
import NotFound from 'src/pages/NotFound';
18+
import NotFound from 'src/pages/NotFound/NotFound';
19+
import MediaNotFound from 'src/pages/NotFound/MediaNotFound';
1920
import Service from 'src/pages/Service';
2021
import Catalog from 'src/pages/Services';
2122
import Manual from 'src/pages/Manual';
@@ -72,6 +73,10 @@ const Pages = () => {
7273
element={<Service />}
7374
/>
7475
{/* No route found */}
76+
<Route
77+
path={`/${langPrefix}/media/oops`}
78+
element={<MediaNotFound />}
79+
/>
7580
<Route path={`/${langPrefix}/oops`} element={<NotFound />} />
7681
<Route index element={<Dashboard />} />
7782
</Route>

src/common/components/BugDetail/BugStateDropdown.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,9 @@ const BugStateDropdown = ({ bug }: { bug: Bug }) => {
238238
content={t('__BUGS_PAGE_BUG_DETAIL_NEED_REVIEW_TOOLTIP')}
239239
>
240240
<Select isCompact disabled>
241-
<StyledItem>
241+
<SelectedItem>
242242
{t('__BUGS_PAGE_BUG_DETAIL_NEED_REVIEW')}
243-
</StyledItem>
243+
</SelectedItem>
244244
</Select>
245245
</Tooltip>
246246
) : (

src/common/components/CustomStatusDrawer/formModel.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as Yup from 'yup';
22
import { BugCustomStatus } from 'src/features/api';
3+
import { t } from 'i18next';
34

45
export interface CustomStatusFormProps {
56
custom_statuses: BugCustomStatus[];
@@ -10,8 +11,8 @@ export const validationSchema = Yup.object().shape({
1011
Yup.object().shape({
1112
id: Yup.number(),
1213
name: Yup.string()
13-
.max(17, '__BUGS_PAGE_CUSTOM_STATUS_DRAWER_CUSTOM_STATUS_MAX')
14-
.required('__BUGS_PAGE_CUSTOM_STATUS_DRAWER_CUSTOM_STATUS_REQUIRED'),
14+
.max(17, t('__BUGS_PAGE_CUSTOM_STATUS_DRAWER_CUSTOM_STATUS_MAX'))
15+
.required(t('__BUGS_PAGE_CUSTOM_STATUS_DRAWER_CUSTOM_STATUS_REQUIRED')),
1516
color: Yup.string(),
1617
phase: Yup.object().shape({
1718
id: Yup.number().required(),

src/common/components/ErrorBoundary/ErrorBoundaryPage.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ const ErrorBoundaryPage = () => {
3535
</Paragraph>
3636

3737
<Paragraph style={{ marginTop: theme.space.lg }}>
38-
<Button isPrimary onClick={() => window.location.reload()}>
38+
<Button
39+
isPrimary
40+
isAccent
41+
onClick={() => window.location.reload()}
42+
>
3943
{t('__ERROR_PAGE_BUTTON')}
4044
</Button>
4145
</Paragraph>

src/common/schema.ts

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,14 @@ export interface paths {
7777
};
7878
};
7979
};
80+
'/campaigns/{cid}/clusters': {
81+
get: operations['get-campaigns-cid-clusters'];
82+
parameters: {
83+
path: {
84+
cid: string;
85+
};
86+
};
87+
};
8088
'/campaigns/{cid}/custom_statuses': {
8189
get: operations['get-campaigns-cid-custom-statuses'];
8290
delete: operations['delete-campaigns-cid-custom_statuses'];
@@ -521,6 +529,11 @@ export interface components {
521529
CampaignWithOutput: components['schemas']['Campaign'] & {
522530
outputs?: components['schemas']['Output'][];
523531
};
532+
/** Cluster */
533+
Cluster: {
534+
id?: number;
535+
name?: string;
536+
};
524537
/**
525538
* Coin
526539
* @description A coin package is a set of coins (free or paid).
@@ -1247,6 +1260,26 @@ export interface operations {
12471260
500: components['responses']['Error'];
12481261
};
12491262
};
1263+
'get-campaigns-cid-clusters': {
1264+
parameters: {
1265+
path: {
1266+
cid: string;
1267+
};
1268+
};
1269+
responses: {
1270+
/** OK */
1271+
200: {
1272+
content: {
1273+
'application/json': {
1274+
items?: components['schemas']['Cluster'][];
1275+
};
1276+
};
1277+
};
1278+
400: components['responses']['Error'];
1279+
403: components['responses']['Error'];
1280+
500: components['responses']['Error'];
1281+
};
1282+
};
12501283
'get-campaigns-cid-custom-statuses': {
12511284
parameters: {
12521285
path: {
@@ -1636,6 +1669,8 @@ export interface operations {
16361669
};
16371670
query: {
16381671
showAsCustomer?: boolean;
1672+
/** filterBy[<fieldName>]=<fieldValue> */
1673+
filterBy?: components['parameters']['filterBy'];
16391674
};
16401675
};
16411676
responses: {

0 commit comments

Comments
 (0)