Skip to content

Commit

Permalink
add survey responded user property
Browse files Browse the repository at this point in the history
  • Loading branch information
liyiy committed Oct 26, 2023
1 parent aba9e7c commit f58c633
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions frontend/src/lib/taxonomy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,14 @@ export function getKeyMapping(
description: `The response value for the ${index}${suffix} question in the survey.`,
}
}
} else if (value.startsWith('$survey_responded/')) {
const surveyId = value.replace(/^\$survey_responded\//, '')
if (surveyId) {
return {
label: `Survey Responded: ${surveyId}`,
description: `Whether the user responded to survey with ID: "${surveyId}".`,
}
}
} else if (value.startsWith('$feature/')) {
const featureFlagKey = value.replace(/^\$feature\//, '')
if (featureFlagKey) {
Expand Down

0 comments on commit f58c633

Please sign in to comment.