Skip to content

Commit

Permalink
fix: device type display on survey, and spacing between filters (#28581)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasheriques authored Feb 12, 2025
1 parent 92a80e7 commit 01acee6
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 15 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 17 additions & 15 deletions frontend/src/scenes/surveys/Survey.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,17 +138,17 @@ export function SurveyDisplaySummary({
</div>
)}
{survey.conditions?.deviceTypes && (
<div className="flex flex-col font-medium gap-1">
<div className="flex-row">
<span>
Device Types{' '}
{SurveyMatchTypeLabels[
survey.conditions?.deviceTypesMatchType || SurveyMatchType.Contains
].slice(2)}
:
</span>{' '}
<LemonTag>{survey.conditions.deviceTypes?.join(', ')}</LemonTag>
</div>
<div className="flex font-medium gap-1 items-center">
<span>
Device Types{' '}
{SurveyMatchTypeLabels[
survey.conditions?.deviceTypesMatchType || SurveyMatchType.Contains
].slice(2)}
:
</span>{' '}
{survey.conditions.deviceTypes.map((type) => (
<LemonTag key={type}>{type}</LemonTag>
))}
</div>
)}
{survey.conditions?.selector && (
Expand Down Expand Up @@ -182,10 +182,12 @@ export function SurveyDisplaySummary({
</div>
)}
{targetingFlagFilters && (
<BindLogic logic={featureFlagLogic} props={{ id: survey.targeting_flag?.id || 'new' }}>
<span className="font-medium">User properties:</span>{' '}
<FeatureFlagReleaseConditions readOnly excludeTitle filters={targetingFlagFilters} />
</BindLogic>
<div>
<BindLogic logic={featureFlagLogic} props={{ id: survey.targeting_flag?.id || 'new' }}>
<span className="font-medium">User properties:</span>{' '}
<FeatureFlagReleaseConditions readOnly excludeTitle filters={targetingFlagFilters} />
</BindLogic>
</div>
)}
</div>
)
Expand Down

0 comments on commit 01acee6

Please sign in to comment.