Skip to content

Commit e146b30

Browse files
cannarocksmarcbon
andauthored
Add cp dashboard proxy based on speciality and published a new report dashboard (#254)
* chore(design-system): update design system version * chore(design-system): update design library with sidebar fixes * feat(login-page): add navigate state in order to handle afterLogin In logged template add new state var with the current location value. This value will be used to redirect back the user after a correct login * test(login): add debug log * fix(login-form): update redirect method * feat(campaign-dashboard): setup basic page * chore(api): update api slice with get-campaign-reports route * feat(campaign-dashboard): retrieve reports from api * chore(api): update api hooks with getCampaignById * feat(campaign-dashboard): create barebone structure * feat(dashboard-routing): clean up dashboard routing with a clean new util * chore(api): update api definition * Cup 1334 add report dashboard (#240) * feat(campaign-dashboard): setup basic page * chore(api): update api slice with get-campaign-reports route * feat(campaign-dashboard): retrieve reports from api * chore(api): update api hooks with getCampaignById * feat(campaign-dashboard): create barebone structure * feat(campaign-dashboard): add new UI for report cards * feat(campaign-reports): add new archive icon * feat(translations): add missing download label for campaign reports * feat(translations): update campaign reports translations * feat(campaign-reports): add input toggle in page header * fix(campaing-dashboard): input toggle is not editable * feat(campaign-reports): improve campaign page and page header components * feat(campaign-reports): add empty state * feat(campaign-reports): add page title and subtitle * feat(campaign-reports): add translations for file type labels * feat(campaign-reports): handle different button text and icon for links + remove trim input * fix(campaign-reports): fix date font size Co-authored-by: Luca Cannarozzo <cannarozzoluca@live.it> * feat(dashboard): redirect campaign to the most appropriate dash * fix(campaign-reports): fix breadcrumb project href + fix empty state title * build(gtm): change Google Tag Manager container * feat(gtm): add auth and env to dev gtm environment * test(gtm): remove pageView event * feat(campaign-reports): add loader + page improvements * feat(routes): add CROWD_WP_URL to localized routes paths * fix(wizard): fix missing campaign_date_end * fix(wizard): remove useless campaign_date_end_text form field * fix(wizard): remove useless whenConfirm old component * feat(gtm): move dl push into useEffect hook * Update translation.json (POEditor.com) * Update translation.json (POEditor.com) * refactor(i18n): reordered terms * refactor(i18n): remove unused term * Update translation.json (POEditor.com) * Update translation.json (POEditor.com) * sort terms * fix(translations): update translations + fix i18n compare * Update translation.json (POEditor.com) * Update translation.json (POEditor.com) * refactor(i18n): re-ordered strings * chore(design-system): bump version to fix sidebar on mobile * refactor(express): remove unused import on who step * feat(express): improve mobile experience with modal use case * feat(express): improve experience of submit btn on small screen * fix(gtm): check activeWorkspace before setting DL company * fix(gtm): update company also on ws switch * feat(gtm): add workspace change event * refactor(navigation): remove useless console log Co-authored-by: Marco Bonomo <82754802+marcbon@users.noreply.github.com> Co-authored-by: Marco Bonomo <marco.bonomo@unguess.io>
1 parent f2855b8 commit e146b30

Some content is hidden

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

52 files changed

+1359
-330
lines changed

.env.development

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
REACT_APP_GTM_ID=GTM-K55XC7S
1+
REACT_APP_GTM_ID=GTM-WVXPS94
2+
REACT_APP_GTM_AUTH=HjeAxSQB9e685mi-_8YiDw
3+
REACT_APP_GTM_ENV=env-4
24
REACT_APP_API_URL=/api
35
REACT_APP_TRYBER_WP_API_URL=https://dv-crowd.app-quality.com/wp-json/appq/v1
46
REACT_ZAPIER_WEBHOOK=https://hooks.zapier.com/hooks/catch/5196925/bkxm1k6/

.env.production

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
REACT_APP_GTM_ID=GTM-K55XC7S
1+
REACT_APP_GTM_ID=GTM-WVXPS94
22
REACT_APP_API_URL=/api
33
REACT_APP_TRYBER_WP_API_URL=https://tryber.me/wp-json/appq/v1
44
REACT_ZAPIER_WEBHOOK=https://hooks.zapier.com/hooks/catch/5196925/bkxm1k6/

i18next-scanner.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ const VirtualFile = require('vinyl');
88
function sortObject(object) {
99
const unsortedArr = [...Object.entries(object)];
1010
const sortedArr = unsortedArr.sort(([key1, value1], [key2, value2]) =>
11-
key1.localeCompare(key2)
11+
key1.localeCompare(key2, 'en', {
12+
sensitivity: 'base',
13+
numeric: true,
14+
ignorePunctuation: true,
15+
})
1216
);
1317
var sorted = {};
1418
sortedArr.forEach(([key, value]) => (sorted[key] = value));

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.11",
6+
"@appquality/unguess-design-system": "2.12.16",
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/App.tsx

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,11 @@ import { GlobalStyle, theme } from '@appquality/unguess-design-system';
33
import { ThemeProvider } from '@zendeskgarden/react-theming';
44
import { BrowserRouter } from 'react-router-dom';
55
import { useTranslation } from 'react-i18next';
6-
import TagManager from 'react-gtm-module';
76
import Helmet from 'react-helmet';
87
import Pages from 'src/common/Pages';
98
import { Provider } from 'react-redux';
109
import { store } from './store';
1110

12-
if (process.env.REACT_APP_GTM_ID) {
13-
const tagManagerArgs = {
14-
gtmId: process.env.REACT_APP_GTM_ID,
15-
};
16-
17-
TagManager.initialize(tagManagerArgs);
18-
}
19-
2011
const App = () => {
2112
const { t } = useTranslation();
2213
return (
@@ -26,15 +17,10 @@ const App = () => {
2617
<Helmet>
2718
<meta
2819
property="og:title"
29-
content={`UNGUESS - ${t('Be smart from the start')}`}
30-
/>
31-
<title>UNGUESS - {t('Be smart from the start')}</title>
32-
<meta
33-
name="description"
34-
content={t(
35-
'UNGUESS provides collective wisdom to improve your decision-making process. Eliminate inefficiencies with our testing, monitoring and research platform.'
36-
)}
20+
content={`UNGUESS - ${t('__APP_META_PAYOFF')}`}
3721
/>
22+
<title>UNGUESS - {t('__APP_META_PAYOFF')}</title>
23+
<meta name="description" content={t('__APP_META_DESCRIPTION')} />
3824
</Helmet>
3925
<BrowserRouter>
4026
<Pages />

src/assets/emptyReports.svg

Lines changed: 42 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 52 additions & 0 deletions
Loading
Lines changed: 38 additions & 0 deletions
Loading
Lines changed: 36 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)