Skip to content

Commit a1a2cdd

Browse files
authored
Merge pull request #671 from AppQuality/develop
Family & friends and ux dashboard fixes
2 parents b6b476d + b9be4f8 commit a1a2cdd

File tree

6 files changed

+99
-66
lines changed

6 files changed

+99
-66
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"i18n-iso-countries": "^7.3.0",
1919
"i18next": "^21.6.14",
2020
"i18next-browser-languagedetector": "^6.1.3",
21-
"iframe-resizer-react": "^1.1.0",
2221
"prosemirror-commands": "^1.5.0",
2322
"prosemirror-dropcursor": "^1.6.1",
2423
"prosemirror-gapcursor": "^1.3.1",

src/locales/en/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@
264264
"__CAMPAIGN_PAGE_METHODOLOGY_CARD_TITLE": "The methodology used",
265265
"__CAMPAIGN_PAGE_METHODOLOGY_SECTION_SUBTITLE": "The purpose of this test and the methodology we used",
266266
"__CAMPAIGN_PAGE_METHODOLOGY_SECTION_TITLE": "Campaign",
267-
"__CAMPAIGN_PAGE_METHODOLOGY_SERVICES_LINK": "Discover other services",
267+
"__CAMPAIGN_PAGE_METHODOLOGY_SERVICES_LINK": "Browse all of UNGUESS's tests",
268268
"__CAMPAIGN_PAGE_METHODOLOGY_SHOW_LESS": "Show less",
269269
"__CAMPAIGN_PAGE_METHODOLOGY_SHOW_MORE": "Show more",
270270
"__CAMPAIGN_PAGE_METHODOLOGY_USERS_NUMBER_one": "{{count}} User",

src/locales/it/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@
264264
"__CAMPAIGN_PAGE_METHODOLOGY_CARD_TITLE": "La metodologia usata",
265265
"__CAMPAIGN_PAGE_METHODOLOGY_SECTION_SUBTITLE": "Cosa volevamo scoprire con questo test e quale metodologia abbiamo usato per farlo",
266266
"__CAMPAIGN_PAGE_METHODOLOGY_SECTION_TITLE": "Sulla campagna",
267-
"__CAMPAIGN_PAGE_METHODOLOGY_SERVICES_LINK": "Vedi i servizi",
267+
"__CAMPAIGN_PAGE_METHODOLOGY_SERVICES_LINK": "Scopri tutti i test di UNGUESS",
268268
"__CAMPAIGN_PAGE_METHODOLOGY_SHOW_LESS": "Mostra meno",
269269
"__CAMPAIGN_PAGE_METHODOLOGY_SHOW_MORE": "Leggi di più",
270270
"__CAMPAIGN_PAGE_METHODOLOGY_USERS_NUMBER_one": "{{count}} Utente",

src/pages/Bugform/index.tsx

Lines changed: 38 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,55 @@
1-
import IframeResizer from 'iframe-resizer-react';
21
import { useParams, useSearchParams } from 'react-router-dom';
32
import { Header } from 'src/common/components/navigation/header/header';
43
import { isDev } from 'src/common/isDevEnvironment';
54
import i18n from 'src/i18n';
5+
import styled from 'styled-components';
6+
7+
const StyledHeader = styled(Header)`
8+
position: fixed;
9+
top: 0;
10+
left: 0;
11+
z-index: 2;
12+
`;
13+
14+
const Container = styled.div`
15+
width: 100%;
16+
height: 100%;
17+
max-height: 100%;
18+
min-height: 100%;
19+
max-width: 100%;
20+
min-width: 100%;
21+
position: absolute;
22+
top: 0;
23+
left: 0;
24+
`;
25+
26+
const StyledIframe = styled.iframe`
27+
width: 100%;
28+
height: 100%;
29+
max-height: 100%;
30+
min-height: 100%;
31+
max-width: 100%;
32+
min-width: 100%;
33+
border: none;
34+
margin: 0;
35+
`;
636

737
const BugForm = () => {
838
const { campaignId } = useParams<{ campaignId: string }>();
939
const [query] = useSearchParams();
1040
const token = query.get('token') || '';
1141
const tryberUrl = isDev() ? 'https://dev.tryber.me' : 'https://tryber.me';
1242
const lang = i18n.language !== 'en' ? `/${i18n.language}` : '';
43+
1344
return (
14-
<div>
15-
<Header logo="full" loggedIn={false} />
16-
<IframeResizer
17-
heightCalculationMethod="lowestElement"
45+
<Container id="container">
46+
<StyledHeader logo="full" loggedIn={false} />
47+
<StyledIframe
48+
id="bug-form"
49+
title="Bug Form"
1850
src={`${tryberUrl}${lang}/vdp/${campaignId}/${token}`}
19-
style={{ width: '1px', minWidth: '100%', height: 0 }}
2051
/>
21-
</div>
52+
</Container>
2253
);
2354
};
2455

src/pages/Campaign/useWidgets/Experience/widgets/Insights/HighlightCard.tsx

Lines changed: 59 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -7,41 +7,11 @@ import { CardFooter } from './InsightCard';
77
import { getClusterTag, getSeverityTag } from './utils';
88

99
const CardThumb = styled(SpecialCard.Thumb)`
10-
width: 100%;
11-
height: auto;
1210
max-width: 100%;
1311
max-height: 100%;
14-
border-radius: ${({ theme }) => theme.borderRadii.lg};
15-
overflow: hidden;
16-
position: relative;
17-
padding: 0;
18-
border: 1px solid ${({ theme }) => theme.palette.grey[600]};
19-
margin-bottom: ${({ theme }) => theme.space.sm};
20-
21-
&:after {
22-
content: '';
23-
display: block;
24-
position: absolute;
25-
width: 100%;
26-
height: 100%;
27-
top: 0;
28-
left: 0;
29-
background-color: rgba(0, 0, 0, 0.5);
30-
z-index: 2;
31-
overflow: hidden;
32-
}
33-
34-
> svg {
35-
position: absolute;
36-
top: 50%;
37-
left: 50%;
38-
transform: translate(-50%, -50%);
39-
max-width: 100%;
40-
max-height: 100%;
41-
width: ${({ theme }) => theme.space.base * 14}px;
42-
height: auto;
43-
z-index: 3;
44-
}
12+
width: 100%;
13+
display: flex;
14+
justify-content: center;
4515
`;
4616

4717
const Player = styled.div`
@@ -55,6 +25,50 @@ const Player = styled.div`
5525
height: 200px;
5626
}
5727
`;
28+
const ImageContainer = styled.div`
29+
width: 100%;
30+
height: 200px;
31+
max-height: 100%;
32+
display: flex;
33+
justify-content: center;
34+
align-items: center;
35+
border-radius: ${({ theme }) => theme.borderRadii.lg};
36+
overflow: hidden;
37+
position: relative;
38+
padding: 0;
39+
border: 1px solid ${({ theme }) => theme.palette.grey[600]};
40+
margin-bottom: ${({ theme }) => theme.space.sm};
41+
42+
&:after {
43+
content: '';
44+
display: block;
45+
position: absolute;
46+
width: 100%;
47+
height: 100%;
48+
top: 0;
49+
left: 0;
50+
background-color: rgba(0, 0, 0, 0.5);
51+
z-index: 2;
52+
overflow: hidden;
53+
}
54+
> img {
55+
width: auto;
56+
max-height: 100%;
57+
}
58+
> svg {
59+
position: absolute;
60+
top: 50%;
61+
left: 50%;
62+
transform: translate(-50%, -50%);
63+
max-width: 100%;
64+
max-height: 100%;
65+
width: ${({ theme }) => theme.space.base * 14}px;
66+
height: auto;
67+
z-index: 3;
68+
}
69+
}
70+
71+
`;
5872

5973
const HighlightCard = ({
6074
video,
@@ -79,16 +93,18 @@ const HighlightCard = ({
7993
<SpecialCard title={video.description} onClick={onClick}>
8094
<SpecialCard.Header>
8195
<CardThumb>
82-
<VideoPlayIcon />
83-
{poster && poster !== '' ? (
84-
<img src={poster} alt={video.description} />
85-
) : (
86-
<Player>
87-
<video src={`${video.url}#t=0.5`}>
88-
<track kind="captions" />
89-
</video>
90-
</Player>
91-
)}
96+
<ImageContainer>
97+
<VideoPlayIcon />
98+
{poster && poster !== '' ? (
99+
<img src={poster} alt={video.description} />
100+
) : (
101+
<Player>
102+
<video src={`${video.url}#t=0.5`}>
103+
<track kind="captions" />
104+
</video>
105+
</Player>
106+
)}
107+
</ImageContainer>
92108
</CardThumb>
93109
<SpecialCard.Header.Label>
94110
<Trans i18nKey="__CAMPAIGN_PAGE_INSIGHTS_VIDEO_PART_NUMBER_LABEL">

yarn.lock

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8303,19 +8303,6 @@ iferr@^0.1.5:
83038303
resolved "https://registry.yarnpkg.com/iferr/-/iferr-0.1.5.tgz#c60eed69e6d8fdb6b3104a1fcbca1c192dc5b501"
83048304
integrity sha512-DUNFN5j7Tln0D+TxzloUjKB+CtVu6myn0JEFak6dG18mNt9YkQ6lzGCdafwofISZ1lLF3xRHJ98VKy9ynkcFaA==
83058305

8306-
iframe-resizer-react@^1.1.0:
8307-
version "1.1.0"
8308-
resolved "https://registry.yarnpkg.com/iframe-resizer-react/-/iframe-resizer-react-1.1.0.tgz#5009e019b7a5c7f1c009bff5bcdf0dbf33557465"
8309-
integrity sha512-FrytSq91AIJaDgE+6uK/Vdd6IR8CrwLoZ6eGmL2qQMPTzF0xlSV2jaSzRRUh5V2fttD7vzl21jvBl97bV40eBw==
8310-
dependencies:
8311-
iframe-resizer "^4.3.0"
8312-
warning "^4.0.3"
8313-
8314-
iframe-resizer@^4.3.0:
8315-
version "4.3.6"
8316-
resolved "https://registry.yarnpkg.com/iframe-resizer/-/iframe-resizer-4.3.6.tgz#61d92c1adefe5d416bff4fbf80c7f1f74be70ec0"
8317-
integrity sha512-wz0WodRIF6eP0oGQa5NIP1yrITAZ59ZJvVaVJqJRjaeCtfm461vy2C3us6CKx0e7pooqpIGLpVMSTzrfAjX9Sg==
8318-
83198306
ignore@^4.0.6:
83208307
version "4.0.6"
83218308
resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc"

0 commit comments

Comments
 (0)