Skip to content

Commit 2ea53c6

Browse files
authored
Merge pull request #1182 from rust-lang/survey
Add notification for 2025 survey
2 parents dd53fc9 + 5c4f31d commit 2ea53c6

File tree

6 files changed

+842
-809
lines changed

6 files changed

+842
-809
lines changed

ui/frontend/Notifications.tsx

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,36 +3,37 @@ import { Portal } from 'react-portal';
33

44
import { Close } from './Icon';
55
import { useAppDispatch, useAppSelector } from './hooks';
6-
import { seenRust2024IsDefault } from './reducers/notifications';
6+
import { seenRustSurvey2025 } from './reducers/notifications';
77
import { allowLongRun, wsExecuteKillCurrent } from './reducers/output/execute';
88
import * as selectors from './selectors';
99

1010
import * as styles from './Notifications.module.css';
1111

12-
const EDITION_URL = 'https://doc.rust-lang.org/edition-guide/';
12+
const SURVEY_URL = 'https://blog.rust-lang.org/2025/11/17/launching-the-2025-state-of-rust-survey/';
1313

1414
const Notifications: React.FC = () => {
1515
return (
1616
<Portal>
1717
<div className={styles.container}>
18-
<Rust2024IsDefaultNotification />
18+
<RustSurvey2025Notification />
1919
<ExcessiveExecutionNotification />
2020
</div>
2121
</Portal>
2222
);
2323
};
2424

25-
const Rust2024IsDefaultNotification: React.FC = () => {
26-
const showIt = useAppSelector(selectors.showRust2024IsDefaultSelector);
25+
const RustSurvey2025Notification: React.FC = () => {
26+
const showIt = useAppSelector(selectors.showRustSurvey2025Selector);
2727

2828
const dispatch = useAppDispatch();
29-
const seenIt = useCallback(() => dispatch(seenRust2024IsDefault()), [dispatch]);
29+
const seenIt = useCallback(() => dispatch(seenRustSurvey2025()), [dispatch]);
3030

3131
return showIt ? (
3232
<Notification onClose={seenIt}>
33-
As of Rust 1.85, the default edition of Rust is now Rust 2024. Learn more about editions in
34-
the <a href={EDITION_URL}>Edition Guide</a>. To specify which edition to use, use the advanced
35-
compilation options menu.
33+
Please help us take a look at who the Rust community is composed of, how the Rust project is
34+
doing, and how we can improve the Rust programming experience by completing the{' '}
35+
<a href={SURVEY_URL}>2025 State of Rust Survey</a>. Whether or not you use Rust today, we want
36+
to know your opinions.
3637
</Notification>
3738
) : null;
3839
};

ui/frontend/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
"@babel/core": "^7.0.0",
3232
"@babel/preset-env": "^7.0.0",
3333
"@babel/preset-react": "^7.0.0",
34-
"@eslint/compat": "^1.2.3",
34+
"@eslint/compat": "^2.0.0",
3535
"@eslint/js": "^9.15.0",
36-
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
36+
"@trivago/prettier-plugin-sort-imports": "^6.0.0",
3737
"@types/common-tags": "^1.8.1",
3838
"@types/jest": "^30.0.0",
3939
"@types/lodash-es": "^4.17.6",
@@ -53,7 +53,7 @@
5353
"eslint": "^9.15.0",
5454
"eslint-plugin-react": "^7.14.3",
5555
"eslint-plugin-react-hooks": "^5.0.0",
56-
"glob": "^11.0.0",
56+
"glob": "^12.0.0",
5757
"html-webpack-plugin": "^5.2.0",
5858
"jest": "^30.0.5",
5959
"json-loader": "^0.5.4",

0 commit comments

Comments
 (0)