@@ -9,18 +9,18 @@ import {
99 SpecialCard ,
1010 Tag ,
1111} from '@appquality/unguess-design-system' ;
12+ import { FieldArray , FieldArrayRenderProps , useFormikContext } from 'formik' ;
13+ import { useMemo , useState } from 'react' ;
1214import { useTranslation } from 'react-i18next' ;
1315import { appTheme } from 'src/app/theme' ;
14- import { Grape , VideoTag } from 'src/features/api' ;
16+ import { ReactComponent as TrashIcon } from 'src/assets/icons/trash-stroke.svg' ;
17+ import { getDeviceIcon } from 'src/common/components/BugDetail/Meta' ;
1518import { Pipe } from 'src/common/components/Pipe' ;
16- import { useMemo , useState } from 'react' ;
1719import { getColorWithAlpha } from 'src/common/utils' ;
20+ import { Grape , VideoTag } from 'src/features/api' ;
1821import { styled } from 'styled-components' ;
19- import { FieldArray , FieldArrayRenderProps , useFormikContext } from 'formik' ;
20- import { getDeviceIcon } from 'src/common/components/BugDetail/Meta' ;
21- import { ReactComponent as TrashIcon } from 'src/assets/icons/trash-stroke.svg' ;
22- import { LightboxContainer } from './Lightbox' ;
2322import { InsightFormValues } from '../FormProvider' ;
23+ import { LightboxContainer } from './Lightbox' ;
2424
2525const StyledTag = styled ( Tag ) `
2626 user-select: none;
@@ -29,6 +29,7 @@ const StyledTag = styled(Tag)`
2929
3030const StyledAnchor = styled ( Anchor ) `
3131 user-select: none;
32+ font-size: ${ appTheme . fontSizes . sm } ;
3233` ;
3334
3435const StyledSpecialCard = styled ( SpecialCard ) < {
@@ -41,11 +42,6 @@ const StyledSpecialCard = styled(SpecialCard)<{
4142 `
4243 border-color: ${ severity . tag . style } ;
4344 ` }
44- ${ ( { isChecked } ) =>
45- isChecked &&
46- `
47- border-color: ${ appTheme . palette . blue [ 600 ] } ;
48- ` }
4945 border-width: 2px;
5046` ;
5147
@@ -54,8 +50,9 @@ const Quotes = styled.span<{ isChecked: boolean }>`
5450 cursor: text;
5551 ${ ( { isChecked } ) =>
5652 `color: ${
57- isChecked ? appTheme . palette . blue [ 600 ] : appTheme . palette . grey [ 700 ]
53+ isChecked ? appTheme . palette . blue [ 600 ] : appTheme . palette . grey [ 800 ]
5854 } ;`}
55+ font-size: ${ appTheme . fontSizes . md } ;
5956` ;
6057
6158export const ObservationCard = ( {
@@ -68,7 +65,7 @@ export const ObservationCard = ({
6865 const { t } = useTranslation ( ) ;
6966 const [ isLightboxOpen , setIsLightboxOpen ] = useState ( false ) ;
7067 const { values, setFieldValue } = useFormikContext < InsightFormValues > ( ) ;
71- const quotesMaxChars = 50 ;
68+ const quotesMaxChars = 250 ;
7269
7370 const severity = observation . tags . find (
7471 ( tag ) => tag . group . name === 'severity'
@@ -152,7 +149,9 @@ export const ObservationCard = ({
152149 { observation . deviceType && (
153150 < >
154151 { ! hideCheckbox && < Pipe /> }
155- { getDeviceIcon ( observation . deviceType ) }
152+ < Tag size = "large" isRound >
153+ { getDeviceIcon ( observation . deviceType ) }
154+ </ Tag >
156155 </ >
157156 ) }
158157 { observation . usecaseTitle && (
@@ -173,7 +172,12 @@ export const ObservationCard = ({
173172 </ SpecialCard . Meta >
174173
175174 < SpecialCard . Header >
176- < SpecialCard . Header . Label style = { { userSelect : 'none' } } >
175+ < SpecialCard . Header . Label
176+ style = { {
177+ userSelect : 'none' ,
178+ color : appTheme . palette . grey [ 600 ] ,
179+ } }
180+ >
177181 { title }
178182 </ SpecialCard . Header . Label >
179183 < SpecialCard . Header . Title
@@ -201,7 +205,7 @@ export const ObservationCard = ({
201205 { observation . uploaderId > 0 && (
202206 < SM
203207 style = { {
204- color : appTheme . palette . grey [ 600 ] ,
208+ color : appTheme . palette . grey [ 700 ] ,
205209 marginBottom : appTheme . space . xs ,
206210 } }
207211 >
@@ -211,7 +215,7 @@ export const ObservationCard = ({
211215 < div style = { { display : 'flex' , alignItems : 'center' } } >
212216 { severity && (
213217 < StyledTag
214- size = "small "
218+ size = "medium "
215219 color = { severity . tag . style }
216220 style = { {
217221 backgroundColor : getColorWithAlpha (
@@ -252,7 +256,6 @@ export const ObservationCard = ({
252256
253257 < SpecialCard . Footer >
254258 < StyledAnchor
255- isExternal
256259 onClick = { ( e ) => {
257260 e . stopPropagation ( ) ;
258261 setIsLightboxOpen ( true ) ;
0 commit comments