Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 22 additions & 10 deletions app/projects/[id]/settings/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2883,7 +2883,10 @@ function RemoteSyncSection({
{/* Repository */}
<div className="grid grid-cols-2 gap-3">
<div>
<label className="mb-1 block text-sm font-medium text-slate-700 dark:text-slate-300">
<label className={cn(
"mb-1 block text-sm font-medium text-slate-700 dark:text-slate-300",
isWebhookDriven && "opacity-60"
)}>
Repository owner
</label>
<input
Expand All @@ -2901,7 +2904,10 @@ function RemoteSyncSection({
/>
</div>
<div>
<label className="mb-1 block text-sm font-medium text-slate-700 dark:text-slate-300">
<label className={cn(
"mb-1 block text-sm font-medium text-slate-700 dark:text-slate-300",
isWebhookDriven && "opacity-60"
)}>
Repository name
</label>
<input
Expand All @@ -2920,12 +2926,6 @@ function RemoteSyncSection({
</div>
</div>

{isWebhookDriven && (
<p className="text-xs text-indigo-500 dark:text-indigo-400">
Repository fields are managed by the GitHub integration.
</p>
)}

{/* Same-repo info when editing form matches GitHub integration */}
{!isWebhookDriven && githubIntegration &&
repoOwner === githubIntegration.repo_owner &&
Expand All @@ -2939,7 +2939,10 @@ function RemoteSyncSection({
{/* Branch + File path */}
<div className="grid grid-cols-2 gap-3">
<div>
<label className="mb-1 block text-sm font-medium text-slate-700 dark:text-slate-300">
<label className={cn(
"mb-1 block text-sm font-medium text-slate-700 dark:text-slate-300",
isWebhookDriven && "opacity-60"
)}>
Branch
</label>
<input
Expand All @@ -2957,7 +2960,10 @@ function RemoteSyncSection({
/>
</div>
<div>
<label className="mb-1 block text-sm font-medium text-slate-700 dark:text-slate-300">
<label className={cn(
"mb-1 block text-sm font-medium text-slate-700 dark:text-slate-300",
isWebhookDriven && "opacity-60"
)}>
File path
</label>
<input
Expand All @@ -2976,6 +2982,12 @@ function RemoteSyncSection({
</div>
</div>

{isWebhookDriven && (
<p className="text-xs text-indigo-500 dark:text-indigo-400">
Repository fields are managed by the GitHub integration.
</p>
)}

{/* Frequency + Update mode */}
<div className="grid grid-cols-2 gap-3">
<div>
Expand Down
Loading