Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(surveys): add Blog Feedback survey #9173

Merged
merged 1 commit into from
Jun 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/prod-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,10 @@ jobs:
REACT_APP_MDN_PLUS_10Y_PLAN: price_1KeG02JNcmPzuWtRlrSiLTI6

# Surveys.
REACT_APP_SURVEY_START_WEB_SECURITY_2023: 1684411200000 # (new Date("2023-05-18 12:00:00Z").getTime())
REACT_APP_SURVEY_END_WEB_SECURITY_2023: 1685016000000 # (new Date("2023-05-25 12:00:00Z").getTime())
REACT_APP_SURVEY_RATE_FROM_WEB_SECURITY_2023: 0.0
REACT_APP_SURVEY_RATE_TILL_WEB_SECURITY_2023: 0.10 # 10%
REACT_APP_SURVEY_START_BLOG_FEEDBACK_2023: 1687867200000 # (new Date("2023-06-27 12:00:00Z").getTime())
REACT_APP_SURVEY_END_BLOG_FEEDBACK_2023: 1688299200000 # (new Date("2023-07-02 12:00:00Z").getTime())
REACT_APP_SURVEY_RATE_FROM_BLOG_FEEDBACK_2023: 0.0
REACT_APP_SURVEY_RATE_TILL_BLOG_FEEDBACK_2023: 0.05 # 5%

# Telemetry.
REACT_APP_GLEAN_CHANNEL: prod
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/stage-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,10 @@ jobs:
REACT_APP_MDN_PLUS_10Y_PLAN: price_1K6X8VKb9q6OnNsLFlUcEiu4

# Surveys.
REACT_APP_SURVEY_START_WEB_SECURITY_2023: 0 # stage
REACT_APP_SURVEY_END_WEB_SECURITY_2023: 1685016000000 # (new Date("2023-05-25 12:00:00Z").getTime())
REACT_APP_SURVEY_RATE_FROM_WEB_SECURITY_2023: 0.0
REACT_APP_SURVEY_RATE_TILL_WEB_SECURITY_2023: 0.10 # 10%
REACT_APP_SURVEY_START_BLOG_FEEDBACK_2023: 0 # stage
REACT_APP_SURVEY_END_BLOG_FEEDBACK_2023: 1688299200000 # (new Date("2023-07-02 12:00:00Z").getTime())
REACT_APP_SURVEY_RATE_FROM_BLOG_FEEDBACK_2023: 0.0
REACT_APP_SURVEY_RATE_TILL_BLOG_FEEDBACK_2023: 0.05 # 5%

# Telemetry.
REACT_APP_GLEAN_CHANNEL: stage
Expand Down
19 changes: 10 additions & 9 deletions client/src/ui/molecules/document-survey/surveys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export interface Survey {
}

enum SurveyBucket {
BLOG_FEEDBACK_2023 = "BLOG_FEEDBACK_2023",
BROWSER_SURVEY_OCT_2022 = "BROWSER_SURVEY_OCT_2022",
CONTENT_DISCOVERY_2023 = "CONTENT_DISCOVERY_2023",
CSS_CASCADE_2022 = "CSS_CASCADE_2022",
Expand All @@ -29,6 +30,7 @@ enum SurveyBucket {
}

enum SurveyKey {
BLOG_FEEDBACK_2023 = "BLOG_FEEDBACK_2023",
BROWSER_SURVEY_OCT_2022 = "BROWSER_SURVEY_OCT_2022",
CONTENT_DISCOVERY_2023 = "CONTENT_DISCOVERY_2023",
CSS_CASCADE_2022_A = "CSS_CASCADE_2022_A",
Expand All @@ -43,15 +45,14 @@ enum SurveyKey {

export const SURVEYS: Survey[] = [
{
key: SurveyKey.WEB_SECURITY_2023,
bucket: SurveyBucket.WEB_SECURITY_2023,
show: (doc: Doc) => /en-US\/docs\/Web\/(API|HTTP)(\/|$)/i.test(doc.mdn_url),
src: "https://survey.alchemer.com/s3/7348686/MDN-Web-Security-short-survey",
key: SurveyKey.BLOG_FEEDBACK_2023,
bucket: SurveyBucket.BLOG_FEEDBACK_2023,
show: (doc: Doc) => /en-US\/docs\/(Web|Learn)(\/|$)/i.test(doc.mdn_url),
src: "https://survey.alchemer.com/s3/7397017/MDN-Blog-user-feedback",
teaser:
"Are you a Developer concerned about web security? Participate in our survey and help us make the web platform more secure.",
question:
"As a developer, what are your biggest challenges concerning web security?",
...survey_duration(SurveyBucket.WEB_SECURITY_2023),
...survey_rates(SurveyKey.WEB_SECURITY_2023),
"We recently launched the MDN blog to enrich our platform with valuable content and enhance your experience. To ensure that we are meeting your needs, we would like to hear your thoughts and feedback through a short user satisfaction survey.",
question: "How satisfied are you with your experience of the MDN blog?",
...survey_duration(SurveyBucket.BLOG_FEEDBACK_2023),
...survey_rates(SurveyKey.BLOG_FEEDBACK_2023),
},
];