feat: improve github app validation

This commit is contained in:
Andreassenemyr
2024-12-11 13:31:07 +01:00
parent ac33b6b6a1
commit 5b8ebdaaa4
2 changed files with 26 additions and 9 deletions

View File

@@ -107,7 +107,24 @@ export const AddGithubProvider = () => {
/>
<br />
<div className="flex w-full justify-end">
<div className="flex w-full items-center justify-between">
<a
href={
isOrganization && organizationName
? `https://github.com/organizations/${organizationName}/settings/installations`
: "https://github.com/settings/installations"
}
className={`text-muted-foreground text-sm hover:underline duration-300
${
isOrganization && !organizationName
? "pointer-events-none opacity-50"
: ""
}`}
target="_blank"
rel="noopener noreferrer"
>
Unsure if you already have an app?
</a>
<Button
disabled={isOrganization && organizationName.length < 1}
type="submit"

View File

@@ -881,8 +881,8 @@ export const templates: TemplateData[] = [
},
tags: ["forum", "community", "discussion"],
load: () => import("./discourse/index").then((m) => m.generate),
},
{
},
{
id: "immich",
name: "Immich",
version: "v1.121.0",
@@ -896,8 +896,8 @@ export const templates: TemplateData[] = [
},
tags: ["photos", "videos", "backup", "media"],
load: () => import("./immich/index").then((m) => m.generate),
},
{
},
{
id: "twenty",
name: "Twenty CRM",
version: "latest",
@@ -911,8 +911,8 @@ export const templates: TemplateData[] = [
},
tags: ["crm", "sales", "business"],
load: () => import("./twenty/index").then((m) => m.generate),
},
{
},
{
id: "yourls",
name: "YOURLS",
version: "1.9.2",
@@ -926,8 +926,8 @@ export const templates: TemplateData[] = [
},
tags: ["url-shortener", "php"],
load: () => import("./yourls/index").then((m) => m.generate),
},
{
},
{
id: "ryot",
name: "Ryot",
version: "v7.10",