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

chore: restore the solidity survey message (2024) #6133

Merged
merged 2 commits into from
Jan 12, 2025
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
5 changes: 5 additions & 0 deletions .changeset/sixty-fireants-greet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"hardhat": patch
---

Restored the message linking to the 2024 solidity survey
6 changes: 6 additions & 0 deletions docs/redirects.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ const customRedirects = [
"https://cryptpad.fr/form/#/2/form/view/pV-DdryeJoYUWvW+gXsFaMNynEY7t5mUsgeD1urgwSE",
permanent: false,
},
{
source: "/solidity-survey-2024",
destination:
"https://cryptpad.fr/form/#/2/form/view/9xjPVmdv8z0Cyyh1ejseMQ0igmx-TedH5CPST3PhRUk",
permanent: false,
},
galargh marked this conversation as resolved.
Show resolved Hide resolved
{
source: "/solc-viair",
destination:
Expand Down
14 changes: 9 additions & 5 deletions docs/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,18 @@ export const SOCIALS_LINKS = {
[SocialsEnum.DISCORD]: "/discord",
};

export const BANNER_LINK = "https://nomic.foundation/hiring";

export const PRIVACY_POLICY_PATH = "/privacy-policy.html";

// export const bannerContent = {
// text: "Join the Hardhat team! Nomic Foundation is hiring",
// shortText: "Join the Hardhat team! We are hiring",
// href: "https://nomic.foundation/hiring",
// };

export const bannerContent = {
text: "Join the Hardhat team! Nomic Foundation is hiring",
shortText: "Join the Hardhat team! We are hiring",
href: BANNER_LINK,
text: "Please take a few minutes to complete the 2024 Solidity Survey",
shortText: "Complete the 2024 Solidity Survey here",
href: "https://hardhat.org/solidity-survey-2024",
};

export const DOCS_PATH = path.join(process.cwd(), "src/content/");
Expand Down
4 changes: 2 additions & 2 deletions packages/hardhat-core/src/internal/cli/project-creation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,15 +372,15 @@ function showStarOnGitHubMessage() {
}

export function showSoliditySurveyMessage() {
if (new Date() > new Date("2024-01-07 23:39")) {
if (new Date() > new Date("2025-01-31 23:39")) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I set the end date to the end of the month. My thinking was that we can extend it if it's still running beyond that point.

// the survey has finished
return;
}

console.log();
console.log(
picocolors.cyan(
"Please take a moment to complete the 2023 Solidity Survey: https://hardhat.org/solidity-survey-2023"
"Please take a moment to complete the 2024 Solidity Survey: https://hardhat.org/solidity-survey-2024"
)
);
}
Expand Down
Loading