Skip to content

Commit 570d5c0

Browse files
New Gitpod Classic notification (#20714)
* Add Gitpod Classic sunset notification * copy text update
1 parent 9dd5f74 commit 570d5c0

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

components/dashboard/src/AppNotifications.tsx

+20-1
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,21 @@ const INVALID_BILLING_ADDRESS = (stripePortalUrl: string | undefined) => {
131131
} as Notification;
132132
};
133133

134+
const GITPOD_CLASSIC_SUNSET = {
135+
id: "gitpod-classic-sunset",
136+
type: "info" as AlertType,
137+
preventDismiss: true, // This makes it so users can't dismiss the notification
138+
message: (
139+
<span className="text-md">
140+
<b>Gitpod Classic is sunsetting fall 2025.</b>{" "}
141+
<a className="text-kumquat-base font-bold" href="https://app.gitpod.io" target="_blank" rel="noreferrer">
142+
Try the new Gitpod
143+
</a>{" "}
144+
now (hosted compute coming soon)
145+
</span>
146+
),
147+
} as Notification;
148+
134149
export function AppNotifications() {
135150
const [topNotification, setTopNotification] = useState<Notification | undefined>(undefined);
136151
const { user, loading } = useUserLoader();
@@ -145,6 +160,10 @@ export function AppNotifications() {
145160
const updateNotifications = async () => {
146161
const notifications = [];
147162
if (!loading) {
163+
if (isGitpodIo()) {
164+
notifications.push(GITPOD_CLASSIC_SUNSET);
165+
}
166+
148167
if (
149168
isGitpodIo() &&
150169
(!user?.profile?.acceptedPrivacyPolicyDate ||
@@ -197,7 +216,7 @@ export function AppNotifications() {
197216
<div className="app-container pt-2">
198217
<Alert
199218
type={topNotification.type}
200-
closable={true}
219+
closable={topNotification.id !== "gitpod-classic-sunset"} // Only show close button if it's not the sunset notification
201220
onClose={() => {
202221
if (!topNotification.preventDismiss) {
203222
dismissNotification();

components/dashboard/src/Login.tsx

+8
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,14 @@ const RightProductDescriptionPanel = () => {
330330
Automated, standardized development environments hosted by us in Gitpod’s infrastructure. Users
331331
who joined before October 1, 2024 on non-Enterprise plans are considered Gitpod Classic users.
332332
</p>
333+
334+
<p className="text-pk-content-secondary mb-2">
335+
Gitpod Classic is sunsetting fall 2025.{" "}
336+
<a className="gp-link font-bold" href="https://app.gitpod.io" target="_blank" rel="noreferrer">
337+
Try the new Gitpod
338+
</a>{" "}
339+
now (hosted compute coming soon).
340+
</p>
333341
</div>
334342
<img src={GitpodClassicCard} alt="Gitpod Classic" className="w-full" />
335343
</div>

0 commit comments

Comments
 (0)