-
Notifications
You must be signed in to change notification settings - Fork 509
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(survey): homepage survey 2024 #12115
base: main
Are you sure you want to change the base?
Conversation
Bundle StatsHey there, this message comes from a github action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
View detailed bundle breakdownAdded No assets were added Removed No assets were removed Bigger No assets were bigger Smaller No assets were smaller Unchanged
|
client/src/document/on-github.tsx
Outdated
@@ -4,13 +4,13 @@ export function OnGitHubLink({ doc }: { doc: Doc }) { | |||
return ( | |||
<div id="on-github" className="on-github"> | |||
<SourceOnGitHubLink doc={doc}> | |||
{doc.locale !== "de" | |||
{doc.locale !== "fr" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes need to be reverted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I was looking at my TS issue there and added it 🙈
import { survey_duration, survey_rates } from "../../../env"; | ||
|
||
export interface Survey { | ||
key: SurveyKey; | ||
bucket: SurveyBucket; | ||
show: (doc: Doc) => boolean; | ||
show: (doc: { mdn_url: string }) => boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Semantically better:
show: (doc: { mdn_url: string }) => boolean; | |
show: (doc: Partial<Doc, "mdn_url">) => boolean; |
Summary
We want user input for our homepage. So we put a survey up.
Screenshots
Before
After
How did you test this change?
Locally and testing