Skip to content

Commit 070219e

Browse files
committed
Add entry for teams and projects
1 parent 0e96971 commit 070219e

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/**
2+
* Copyright (c) 2021 Gitpod GmbH. All rights reserved.
3+
* Licensed under the GNU Affero General Public License (AGPL).
4+
* See License-AGPL.txt in the project root for license information.
5+
*/
6+
7+
import { User } from "@gitpod/gitpod-protocol";
8+
import { WhatsNewEntry } from "./WhatsNew";
9+
import { switchToVSCodeAction } from "./WhatsNew-2021-04";
10+
import PillLabel from "../components/PillLabel";
11+
12+
export const WhatsNewEntry202108: WhatsNewEntry = {
13+
children: (user: User, setUser: React.Dispatch<User>) => {
14+
15+
return <>
16+
<div className="border-t border-b border-gray-200 dark:border-gray-800 -mx-6 px-6 pt-6 pb-4">
17+
<p className="pb-2 text-gray-900 dark:text-gray-100 text-base font-medium">Teams & Projects <PillLabel>New Feature</PillLabel></p>
18+
<p className="pb-2 text-gray-500 dark:text-gray-400 text-sm">Hey! We're introducing <strong>Teams & Projects</strong> to surface <strong>Prebuilds</strong> in the dashboard. All existing teams will be migrated over the upcoming weeks. No action is required on your side. 🎉</p>
19+
<p className="pb-2 text-gray-500 dark:text-gray-400 text-sm">You can create as many teams as you need and import repositories as projects from the top navigation. 💡</p>
20+
<p className="pb-2 text-gray-500 dark:text-gray-400 text-sm">We welcome any input on this first iteration in <a href="/new" className="learn-more">the feedback issue</a>. 📝</p>
21+
</div>
22+
</>;
23+
},
24+
newsKey: 'August-2021',
25+
maxUserCreationDate: '2021-08-17',
26+
actionAfterSeen: switchToVSCodeAction,
27+
};

components/dashboard/src/whatsnew/WhatsNew.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ import { User } from "@gitpod/gitpod-protocol";
88
import Modal from "../components/Modal";
99
import { WhatsNewEntry202104 } from "./WhatsNew-2021-04";
1010
import { WhatsNewEntry202106 } from "./WhatsNew-2021-06";
11+
import { WhatsNewEntry202108 } from "./WhatsNew-2021-08";
1112
import { UserContext } from "../user-context";
1213
import { useContext, useState } from "react";
1314
import { getGitpodService } from "../service/service";
1415

1516
const allEntries: WhatsNewEntry[] = [
1617
WhatsNewEntry202106,
1718
WhatsNewEntry202104,
19+
WhatsNewEntry202108
1820
]
1921

2022
export const shouldSeeWhatsNew = (user: User, news: { newsKey: string, maxUserCreationDate: string }[] = allEntries) => {

0 commit comments

Comments
 (0)