Skip to content

Commit 51fc8b7

Browse files
Ripwordsclaude
andcommitted
feat(integration-ui): autoCreateOnIntake toggle
Add USwitch for autoCreateOnIntake in the GitHub panel next to the pushOnEdit toggle. Disabled (grayed out) when no repo is selected. Persisted via the same PATCH call as other settings. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 1574a7d commit 51fc8b7

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

apps/dashboard/app/components/integrations/github/github-panel.vue

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const selectedRepo = ref({ owner: "", name: "" })
1919
const labelsText = ref("")
2020
const assigneesText = ref("")
2121
const pushOnEdit = ref(false)
22+
const autoCreateOnIntake = ref(false)
2223
const saving = ref(false)
2324
const installing = ref(false)
2425
const unlinkOpen = ref(false)
@@ -31,6 +32,7 @@ watch(
3132
labelsText.value = v.defaultLabels.join(", ")
3233
assigneesText.value = v.defaultAssignees.join(", ")
3334
pushOnEdit.value = v.pushOnEdit
35+
autoCreateOnIntake.value = v.autoCreateOnIntake
3436
},
3537
{ immediate: true },
3638
)
@@ -93,6 +95,7 @@ async function saveRepo() {
9395
.map((s) => s.trim())
9496
.filter(Boolean),
9597
pushOnEdit: pushOnEdit.value,
98+
autoCreateOnIntake: autoCreateOnIntake.value,
9699
},
97100
})
98101
await refresh()
@@ -203,6 +206,25 @@ async function saveRepo() {
203206
</div>
204207
</div>
205208

209+
<div class="flex items-center gap-3">
210+
<USwitch
211+
v-model="autoCreateOnIntake"
212+
:disabled="!selectedRepo.owner || !selectedRepo.name"
213+
/>
214+
<div>
215+
<p
216+
class="text-sm font-medium"
217+
:class="!selectedRepo.owner || !selectedRepo.name ? 'text-muted' : 'text-default'"
218+
>
219+
Automatically create a GitHub issue for every new report
220+
</p>
221+
<p class="text-xs text-muted">
222+
When on, every report submitted via the SDK immediately becomes a linked GitHub issue.
223+
Leave off for manual &ldquo;Create issue&rdquo; per report.
224+
</p>
225+
</div>
226+
</div>
227+
206228
<div class="flex gap-2">
207229
<UButton
208230
label="Save defaults"

0 commit comments

Comments
 (0)