fix(git-providers): resolve legacy GitHub owners for repository loading
This commit is contained in:
1 parent
14ae4c5e0e
commit
04173f1f83
3 files changed
+66
-6
No files matched your search
@@ -5,7 +5,6 @@ import {
|
||||
} from "@/app/settings/components/SettingsPrimitives";
|
||||
import {
|
||||
type GithubProviderModalProps,
|
||||
ProviderBadge,
|
||||
getProviderMeta,
|
||||
launchGithubManifestFlow,
|
||||
} from "./git-provider-shared";
|
||||
@@ -117,7 +116,19 @@ export default function GithubProviderModal({
|
||||
placeholder="Organization name"
|
||||
/>
|
||||
</div>
|
||||
) : null}
|
||||
) : (
|
||||
<div>
|
||||
<FieldLabel>GitHub Username</FieldLabel>
|
||||
<input
|
||||
className="input"
|
||||
value={draft.accountUsername}
|
||||
onChange={(event) =>
|
||||
updateDraft("accountUsername", event.target.value)
|
||||
}
|
||||
placeholder="Your GitHub username"
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div
|
||||
style={{
|
||||
@@ -191,7 +202,7 @@ export default function GithubProviderModal({
|
||||
className="input"
|
||||
value={draft.appName}
|
||||
onChange={(event) => updateDraft("appName", event.target.value)}
|
||||
placeholder={`Doktainer-${new Date().toISOString().split("T")[0].replace(/-/g, "")}-${Math.random().toString(36).slice(2, 10)}`}
|
||||
placeholder="Doktainer-20260718-ab12cd34"
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@ import { ExternalLink } from "lucide-react";
|
||||
import { FieldLabel } from "@/app/settings/components/SettingsPrimitives";
|
||||
import {
|
||||
type GitProviderModalBaseProps,
|
||||
ProviderBadge,
|
||||
getProviderMeta,
|
||||
} from "./git-provider-shared";
|
||||
import { markGitProviderCallbackIntent } from "@/lib/git-provider-callback-intent";
|
||||
@@ -193,6 +192,18 @@ export default function GitlabProviderModal({
|
||||
placeholder="my-org"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div style={{ gridColumn: "1 / -1" }}>
|
||||
<FieldLabel>GitLab Username (Required Without Group)</FieldLabel>
|
||||
<input
|
||||
className="input"
|
||||
value={draft.accountUsername}
|
||||
onChange={(event) =>
|
||||
updateDraft("accountUsername", event.target.value)
|
||||
}
|
||||
placeholder="Your GitLab username"
|
||||
/>
|
||||
</div>
|
||||
</section>
|
||||
</>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user