Skip to content

Commit 40a350c

Browse files
authored
Merge pull request #3036 from codecrafters-io/feat/update-github-integration-modal
feat: update GitHub integration modal with alerts and styling
2 parents b28710f + c67bf62 commit 40a350c

File tree

1 file changed

+22
-5
lines changed
  • app/components/course-page/configure-github-integration-modal

1 file changed

+22
-5
lines changed

app/components/course-page/configure-github-integration-modal/index.hbs

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@
1717
/>
1818
{{/if}}
1919

20-
<div class="py-16 flex flex-col items-center justify-center">
21-
{{svg-jar "check-circle" class="w-16 h-16 text-teal-500 mb-2"}}
20+
<div class="py-8 flex flex-col items-center justify-center">
21+
{{svg-jar "check-circle" class="w-20 h-20 text-teal-500 mb-4"}}
2222

2323
<div class="text-gray-600 dark:text-gray-200 text-center mb-6">
24-
This repository is configured to publish to
2524
<a
2625
href="https://github.com/{{this.githubRepositorySyncConfiguration.githubRepositoryName}}"
2726
class="inline-flex items-center font-semibold underline"
@@ -37,9 +36,27 @@
3736
Code pushed to your CodeCrafters Git repository will automatically be synced to GitHub.
3837
</div>
3938

40-
<SecondaryButton @size="small" {{on "click" this.handleDisconnectRepositoryButtonClick}} data-test-disconnect-repository-button>
39+
<AlertWithIcon @type="info" class="mb-6">
40+
<p>
41+
Don't push changes to your GitHub repository directly.
42+
</p>
43+
<p>
44+
Push to your CodeCrafters Git repository instead, and we'll sync changes to GitHub.
45+
</p>
46+
<p class="text-xs">
47+
<a href="https://docs.codecrafters.io/features/publish-to-github" target="_blank" rel="noopener noreferrer">Learn more →</a>
48+
</p>
49+
</AlertWithIcon>
50+
51+
<AlertWithIcon @type="warning" @icon="exclamation" class="mb-6">
52+
<p>
53+
Any changes pushed to your GitHub repository directly will be overridden.
54+
</p>
55+
</AlertWithIcon>
56+
57+
<TertiaryButton @size="small" {{on "click" this.handleDisconnectRepositoryButtonClick}} data-test-disconnect-repository-button>
4158
Disconnect Repository
42-
</SecondaryButton>
59+
</TertiaryButton>
4360
</div>
4461
{{else}}
4562
<div class="prose dark:prose-invert mb-4">

0 commit comments

Comments
 (0)