Skip to content

Commit e692bad

Browse files
committed
Improve getting started Coder CTA
This wasn't very standout-ish before, and I think it's wise for us to experiment with directing users to Coder.
1 parent 2530a0d commit e692bad

File tree

2 files changed

+53
-18
lines changed

2 files changed

+53
-18
lines changed

install.sh

+3
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,9 @@ main() {
286286
npm_fallback install_standalone
287287
;;
288288
esac
289+
290+
echoh
291+
echoh "Deploy code-server for your team with Coder: https://github.com/coder/coder"
289292
}
290293

291294
parse_arg() {

patches/getting-started.diff

+50-18
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Index: code-server/lib/vscode/src/vs/workbench/contrib/welcomeGettingStarted/bro
1010
===================================================================
1111
--- code-server.orig/lib/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.ts
1212
+++ code-server/lib/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.ts
13-
@@ -62,7 +62,7 @@ import { GettingStartedIndexList } from
13+
@@ -62,7 +62,7 @@ import { GettingStartedIndexList } from
1414
import { StandardKeyboardEvent } from 'vs/base/browser/keyboardEvent';
1515
import { KeyCode } from 'vs/base/common/keyCodes';
1616
import { getTelemetryLevel } from 'vs/platform/telemetry/common/telemetryUtils';
@@ -19,32 +19,64 @@ Index: code-server/lib/vscode/src/vs/workbench/contrib/welcomeGettingStarted/bro
1919
import { OpenFolderViaWorkspaceAction } from 'vs/workbench/browser/actions/workspaceActions';
2020
import { OpenRecentAction } from 'vs/workbench/browser/actions/windowActions';
2121
import { Toggle } from 'vs/base/browser/ui/toggle/toggle';
22-
@@ -753,11 +753,24 @@ export class GettingStartedPage extends
23-
onShowOnStartupChanged();
24-
}));
25-
26-
- const header = $('.header', {},
27-
+ let header = $('.header', {},
28-
$('h1.product-name.caption', {}, this.productService.nameLong),
22+
@@ -758,6 +758,41 @@ export class GettingStartedPage extends
2923
$('p.subtitle.description', {}, localize({ key: 'gettingStarted.editingEvolved', comment: ['Shown as subtitle on the Welcome page.'] }, "Editing evolved"))
3024
);
3125

26+
+ let gettingStartedCoder: HTMLElement = $('.header', {});
3227
+ if (this.contextService.contextMatchesRules(IsEnabledCoderGettingStarted)) {
33-
+ header = $('.header', {},
34-
+ $('h1.product-name.caption', {}, this.productService.nameLong),
35-
+ $('p.subtitle.description.coder', {},
36-
+ "Using code-server on a team?",
37-
+ ),
38-
+ $('p.subtitle.description.coder-coder', {},
39-
+ "Check out: ",
40-
+ $('a', { href: "https://github.com/coder/coder" }, "coder/coder")
41-
+ ),
42-
+ );
28+
+ gettingStartedCoder = $('.gettingStartedCategory', {},
29+
+ $('h2', {
30+
+ style: 'margin-bottom: 12px',
31+
+ }, 'Next Up'),
32+
+ $('a', {
33+
+ href: 'https://cdr.co/code-server-to-coder',
34+
+ target: '_blank',
35+
+ },
36+
+ $('button.standout', {
37+
+ style: [
38+
+ 'padding: 10px 16px ',
39+
+ 'border-radius: 4px',
40+
+ 'background: linear-gradient(94.04deg, #7934DA 0%, #4D52E0 101.2%)',
41+
+ 'color: white',
42+
+ ].join(';'),
43+
+ },
44+
+ $('h3', {
45+
+ style: [
46+
+ 'margin: 0px 0px 6px',
47+
+ 'font-weight: 500',
48+
+ ].join(';'),
49+
+ }, 'Deploy For Your Team'),
50+
+ $('p', {
51+
+ style: [
52+
+ 'margin: 0',
53+
+ 'font-size: 13px',
54+
+ ].join(';'),
55+
+ }, 'Provision remote development environments on your infrastructure with Coder.')
56+
+ ),
57+
+ ),
58+
+ );
4359
+ }
4460
+
4561

4662
const leftColumn = $('.categories-column.categories-column-left', {},);
4763
const rightColumn = $('.categories-column.categories-column-right', {},);
64+
@@ -775,13 +810,13 @@ export class GettingStartedPage extends
65+
const layoutLists = () => {
66+
if (gettingStartedList.itemCount) {
67+
this.container.classList.remove('noWalkthroughs');
68+
- reset(leftColumn, startList.getDomElement(), recentList.getDomElement());
69+
+ reset(leftColumn, gettingStartedCoder, startList.getDomElement(), recentList.getDomElement());
70+
reset(rightColumn, gettingStartedList.getDomElement());
71+
recentList.setLimit(5);
72+
}
73+
else {
74+
this.container.classList.add('noWalkthroughs');
75+
- reset(leftColumn, startList.getDomElement());
76+
+ reset(leftColumn, gettingStartedCoder, startList.getDomElement());
77+
reset(rightColumn, recentList.getDomElement());
78+
recentList.setLimit(10);
79+
}
4880
Index: code-server/lib/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/media/gettingStarted.css
4981
===================================================================
5082
--- code-server.orig/lib/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/media/gettingStarted.css

0 commit comments

Comments
 (0)