Sfoglia il codice sorgente

Merge pull request #22795 from overleaf/jdt-offline-survey

feat: enable temporary survey hardcoded to only non ds-nav users
GitOrigin-RevId: b96ebb64d5a92d1c2421fc828a1769f31b7d363f
Jimmy Domagala-Tang 1 anno fa
parent
commit
6d5354d7fe

+ 6 - 1
services/web/frontend/js/features/project-list/components/survey-widget.tsx

@@ -21,7 +21,12 @@ export default function SurveyWidget() {
   // Short-term hard-coded special case: hide the "DS nav" survey for users on
   // the default variant
   if (survey?.name === 'ds-nav') {
-    return null
+    // temp workaround to allow for offline survey to target specifically users not on ds-nav split test
+    survey.preText =
+      'Do you want to use Overleaf offline or do you struggle with unstable connections?'
+    survey.name = 'offline-mode'
+    survey.linkText = 'We want your feedback'
+    survey.url = 'https://forms.gle/CUVaduCnqAauVi9aA'
   }
 
   return (