Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d112320

Browse files
f0sselclaude
andcommitted
refactor: change modules registry button to simple link
Replace "Browse Modules" button with "Browse the Coder Registry" link in the template editor topbar. The link matches the styling of the starter templates page with an external link icon. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent fb9a73e commit d112320

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

site/src/pages/TemplateVersionEditorPage/TemplateVersionEditor.tsx

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { displayError } from "components/GlobalSnackbar/utils";
2525
import { Loader } from "components/Loader/Loader";
2626
import { TriangleAlertIcon } from "lucide-react";
2727
import { ChevronLeftIcon } from "lucide-react";
28-
import { PlayIcon, PlusIcon, XIcon } from "lucide-react";
28+
import { PlayIcon, PlusIcon, XIcon, ExternalLinkIcon } from "lucide-react";
2929
import { linkToTemplate, useLinks } from "modules/navigation";
3030
import { ProvisionerAlert } from "modules/provisioners/ProvisionerAlert";
3131
import { AlertVariant } from "modules/provisioners/ProvisionerAlert";
@@ -274,15 +274,15 @@ export const TemplateVersionEditor: FC<TemplateVersionEditorProps> = ({
274274
/>
275275
</div>
276276

277-
<TopbarButton
278-
component="a"
277+
<a
279278
href="https://registry.coder.com"
280279
target="_blank"
281280
rel="noopener noreferrer"
282-
variant="outline"
281+
css={styles.registryLink}
283282
>
284-
Browse Modules
285-
</TopbarButton>
283+
Browse the Coder Registry
284+
<ExternalLinkIcon className="size-4" />
285+
</a>
286286

287287
<TopbarButton
288288
variant="default"
@@ -804,4 +804,19 @@ const styles = {
804804
},
805805
},
806806
},
807+
808+
registryLink: (theme) => ({
809+
display: "flex",
810+
alignItems: "center",
811+
gap: 8,
812+
color: theme.palette.text.secondary,
813+
textDecoration: "none",
814+
fontSize: 14,
815+
fontWeight: 500,
816+
817+
"&:hover": {
818+
color: theme.palette.text.primary,
819+
textDecoration: "underline",
820+
},
821+
}),
807822
} satisfies Record<string, Interpolation<Theme>>;

0 commit comments

Comments
 (0)