Repository: mdn/kuma

Issue:
T - Implement banner for users to sign up for a user interview
# Description
Implement banner for users to complete a screener and participate in a user interview with MDN team.

## Screener link
Please embed this link in [Sign up] button:
https://validately.com/moderated/e9086e05-092b-4453-8efd-360f434bf820

## Mock-up
![banner.png](https://images.zenhubusercontent.com/5dcb02f3b2765800014d8c01/79f9bb66-b342-4ea8-bb71-fb5cb9347a3c)

## Follow-up

Mustafa to monitor number of participants scheduled for interviews in the coming months and create a separate issue for turning off the banner once we've filled enough users.


Discussion:
@schalkneethling @tobinmori @atopal please double-check the description above and let me know if I missed anything.
Thank you Mustafa. Schalk, I'd suggest taking this in as another P1 for this sprint.

Resolving patch:
diff --git a/kuma/core/migrations/0007_create_user_interviews_banner_flag.py b/kuma/core/migrations/0007_create_user_interviews_banner_flag.py
new file mode 100644
--- /dev/null
+++ b/kuma/core/migrations/0007_create_user_interviews_banner_flag.py
@@ -0,0 +1,26 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import migrations
+
+
+def create_user_interviews_banner_flag(apps, schema_editor):
+    Flag = apps.get_model("waffle", "Flag")
+    if not Flag.objects.filter(name="user_interviews").exists():
+        Flag.objects.create(
+            name="user_interviews",
+            staff=True,
+            note="Shows the user interviews invitation banner",
+        )
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ("core", "0006_create_l10n_survey_banner_flag"),
+        # This is needed otherwise `apps.get_model('waffle', 'Flag')`
+        # will raise a Django app LookupError.
+        ("waffle", "0001_initial"),
+    ]
+
+    operations = [migrations.RunPython(create_user_interviews_banner_flag)]
diff --git a/kuma/core/migrations/0008_remove_l10n_survey_banner_flag.py b/kuma/core/migrations/0008_remove_l10n_survey_banner_flag.py
new file mode 100644
--- /dev/null
+++ b/kuma/core/migrations/0008_remove_l10n_survey_banner_flag.py
@@ -0,0 +1,21 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import migrations
+
+
+def remove_l10n_survey_banner_flag(apps, schema_editor):
+    Flag = apps.get_model("waffle", "Flag")
+    Flag.objects.filter(name="l10n_survey").delete()
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ("core", "0007_create_user_interviews_banner_flag"),
+        # This is needed otherwise `apps.get_model('waffle', 'Flag')`
+        # will raise a Django app LookupError.
+        ("waffle", "0001_initial"),
+    ]
+
+    operations = [migrations.RunPython(remove_l10n_survey_banner_flag)]
diff --git a/kuma/settings/common.py b/kuma/settings/common.py
--- a/kuma/settings/common.py
+++ b/kuma/settings/common.py
@@ -692,9 +692,9 @@ def pipeline_one_scss(slug, **kwargs):
         "source_filenames": ("styles/components/banners/developer-needs.scss",),
         "output_filename": "build/styles/developer-needs.css",
     },
-    "banner_l10n_survey": {
-        "source_filenames": ("styles/components/banners/l10n-survey.scss",),
-        "output_filename": "build/styles/l10n-survey.css",
+    "banner_user_interviews": {
+        "source_filenames": ("styles/components/banners/user-interviews.scss",),
+        "output_filename": "build/styles/user-interviews.css",
     },
     "banner_mdn_subscriptions": {
         "source_filenames": ("styles/components/banners/mdn-subscriptions.scss",),


Test patch: