Skip to content

Commit 61d8979

Browse files
committed
Improve messaging around github imports
1 parent 0a00a11 commit 61d8979

File tree

1 file changed

+24
-5
lines changed

1 file changed

+24
-5
lines changed

packages/app/src/app/pages/Sandbox/index.tsx

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ export const Sandbox: React.FC<Props> = ({ match }) => {
6262

6363
if (state.editor.error) {
6464
const isGithub = match.params.id.includes('github');
65-
const hasPrivateAccess = state.user && state.user.integrations.github;
6665

6766
return (
6867
<>
@@ -77,7 +76,6 @@ export const Sandbox: React.FC<Props> = ({ match }) => {
7776
Something went wrong
7877
</div>
7978
<Title style={{ fontSize: '1.25rem', marginBottom: 0 }}>
80-
{isGithub ? 'Error importing GitHub repository: ' : ''}
8179
{state.editor.error}
8280
</Title>
8381
<br />
@@ -89,7 +87,7 @@ export const Sandbox: React.FC<Props> = ({ match }) => {
8987
{hasLogIn ? 'Dashboard' : 'Homepage'}
9088
</Button>
9189
</div>
92-
{isLoggedIn && isGithub && !hasPrivateAccess && (
90+
{isLoggedIn && isGithub && (
9391
<div style={{ maxWidth: 400, marginTop: '2.5rem', width: '100%' }}>
9492
<div
9593
style={{
@@ -102,10 +100,31 @@ export const Sandbox: React.FC<Props> = ({ match }) => {
102100
}}
103101
>
104102
Did you try to open a private GitHub repository and are you a{' '}
105-
<Link to="/patron">patron</Link>? Then you might need to get
106-
private access:
103+
<Link to="/pro">pro</Link>? Then you might need to get private
104+
access:
107105
</div>
108106
<GithubIntegration small />
107+
<div
108+
style={{
109+
fontWeight: 300,
110+
color: 'rgba(255, 255, 255, 0.7)',
111+
marginTop: '1rem',
112+
fontSize: '1rem',
113+
textAlign: 'center',
114+
lineHeight: 1.6,
115+
}}
116+
>
117+
If you{"'"}re importing a sandbox from an organization, make
118+
sure to enable organization access{' '}
119+
<a
120+
href="https://github.com/settings/connections/applications/c07a89833b557afc7be2"
121+
target="_blank"
122+
rel="noreferrer noopener"
123+
>
124+
here
125+
</a>
126+
.
127+
</div>
109128
</div>
110129
)}
111130
</>

0 commit comments

Comments
 (0)