Przeglądaj źródła

Merge pull request #19947 from overleaf/msm-ce-survey

[web] Temporary CE Survey

GitOrigin-RevId: 874febba1d61f7b9ba333b2de399c9bcc7f3bcc2
Miguel Serrano 2 lat temu
rodzic
commit
2296287e61

+ 10 - 0
services/web/app/src/Features/Project/ProjectListController.js

@@ -170,6 +170,16 @@ async function projectListPage(req, res, next) {
     if (user && UserPrimaryEmailCheckHandler.requiresPrimaryEmailCheck(user)) {
       return res.redirect('/user/emails/primary-email-check')
     }
+  } else {
+    if (!process.env.OVERLEAF_IS_SERVER_PRO) {
+      // temporary survey for CE: https://github.com/overleaf/internal/issues/19710
+      survey = {
+        name: 'ce-survey',
+        preText: 'Help us improve Overleaf',
+        linkText: 'by filling out this quick survey',
+        url: 'https://docs.google.com/forms/d/e/1FAIpQLSdPAS-731yaLOvRM8HW7j6gVeOpcmB_X5A5qwgNJT7Oj09lLA/viewform?usp=sf_link',
+      }
+    }
   }
 
   const tags = await TagsHandler.promises.getAllTags(userId)