Skip to content

Commit 81eb7fd

Browse files
f0sselclaude
andcommitted
feat: add Coder registry links to template creation and editing
Add links to https://registry.coder.com in two locations: - "Browse Templates" card on starter templates page - "Browse Modules" button in template editor topbar This provides users with easy access to community templates and modules as a short-term solution before full registry integration. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 4756080 commit 81eb7fd

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

site/src/pages/CreateTemplateGalleryPage/CreateTemplateGalleryPageView.tsx

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,39 @@ export const CreateTemplateGalleryPageView: FC<
7272
</CardContent>
7373
</CardActionArea>
7474
</Card>
75+
<Card variant="outlined" css={{ width: 320, borderRadius: 6 }}>
76+
<CardActionArea
77+
component="a"
78+
href="https://registry.coder.com"
79+
target="_blank"
80+
rel="noopener noreferrer"
81+
sx={{ height: 115, padding: 1 }}
82+
>
83+
<CardContent>
84+
<Stack
85+
direction="row"
86+
spacing={3}
87+
css={{ alignItems: "center" }}
88+
>
89+
<div css={styles.icon}>
90+
<ExternalImage
91+
src="/emojis/1f4da.png"
92+
css={{
93+
width: "100%",
94+
height: "100%",
95+
}}
96+
/>
97+
</div>
98+
<div>
99+
<h4 css={styles.cardTitle}>Browse Templates</h4>
100+
<span css={styles.cardDescription}>
101+
Discover community templates on the Coder registry
102+
</span>
103+
</div>
104+
</Stack>
105+
</CardContent>
106+
</CardActionArea>
107+
</Card>
75108
</div>
76109
</Stack>
77110

site/src/pages/TemplateVersionEditorPage/TemplateVersionEditor.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,16 @@ export const TemplateVersionEditor: FC<TemplateVersionEditorProps> = ({
274274
/>
275275
</div>
276276

277+
<TopbarButton
278+
component="a"
279+
href="https://registry.coder.com"
280+
target="_blank"
281+
rel="noopener noreferrer"
282+
variant="outline"
283+
>
284+
Browse Modules
285+
</TopbarButton>
286+
277287
<TopbarButton
278288
variant="default"
279289
disabled={dirty || !canPublish}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy