Skip to content
Merged
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
2 changes: 1 addition & 1 deletion packages/app/src/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ const integrationIcons: Record<string, string> = {

export const settingsPage = (viewer: { email: string }) => shell("Integrations — Factorize", viewer, settingsLayout("integrations", `${dashboardHead("Integrations", "Connect every provider used by your Jobs. Stored credentials are write-only and are never displayed.")}
<div id="integration-error" role="alert" class="mt-6 hidden rounded-xl bg-red-50 p-4 text-sm text-red-800 dark:bg-red-950/40 dark:text-red-200"></div>
<section class="mt-10" aria-labelledby="available-integrations-title"><div><h2 id="available-integrations-title" class="text-xl font-semibold">Available integrations</h2><p class="mt-1 text-sm text-slate-500 dark:text-slate-400">Choose a provider to review setup before anything changes.</p></div><div class="mt-5 grid gap-3 sm:grid-cols-2 lg:grid-cols-3">
<section class="mt-10" aria-labelledby="available-integrations-title"><div><h2 id="available-integrations-title" class="text-xl font-semibold">Available integrations</h2><p class="mt-1 text-sm text-slate-500 dark:text-slate-400">Choose a provider to review setup before anything changes.</p></div><div class="mt-5 grid grid-cols-2 gap-3 lg:grid-cols-3">
${[["linear","Linear","Issues and projects"],["clickup","ClickUp","Tasks and lists"],["github","GitHub","Repositories and triggers"],["exe","Exe.dev","VM execution"],["amp","Amp","Cloud execution"],["tail","Cloudflare Tail","Signed Worker Tail events"]].map(([id,name,description])=>`<button type="button" data-open-setup="${id}" aria-label="Set up ${name}" class="group relative flex min-h-32 flex-col items-center rounded-lg border border-stone-200 bg-white p-3 text-center shadow-sm transition hover:-translate-y-0.5 hover:border-stone-300 hover:bg-stone-50 hover:shadow-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-factorize-600 focus-visible:ring-offset-2 dark:border-slate-800 dark:bg-slate-900 dark:hover:border-slate-700 dark:hover:bg-slate-800 dark:focus-visible:ring-offset-slate-950" aria-haspopup="dialog"><span class="flex h-7 w-7 items-center justify-center text-slate-800 dark:text-slate-100">${integrationIcons[id]}</span><h3 class="mt-1.5 text-sm font-semibold">${name}</h3><p class="mt-0.5 text-xs text-slate-500 dark:text-slate-400">${description}</p><span id="${id}-available-status" class="mt-1.5 text-xs font-medium text-slate-500 dark:text-slate-400" aria-live="polite">Checking…</span><span aria-hidden="true" class="absolute right-2.5 top-2.5 flex h-6 w-6 items-center justify-center rounded-md border border-stone-200 bg-white text-slate-600 transition group-hover:border-factorize-500 group-hover:text-slate-950 dark:border-slate-700 dark:bg-slate-900 dark:text-slate-300"><svg viewBox="0 0 16 16" class="h-3.5 w-3.5" fill="none" stroke="currentColor" stroke-width="1.75"><path d="M8 3v10M3 8h10" stroke-linecap="round"/></svg></span></button>`).join("")}
</div></section>
<dialog id="linear-setup" aria-labelledby="linear-setup-title" class="w-[min(34rem,calc(100%-2rem))] rounded-2xl border border-stone-200 bg-white p-0 text-slate-950 shadow-2xl backdrop:bg-slate-950/60 dark:border-slate-700 dark:bg-slate-900 dark:text-white"><div class="p-6"><h2 id="linear-setup-title" class="text-lg font-semibold">Connect Linear</h2><p class="mt-2 text-sm text-slate-500 dark:text-slate-400">You’ll leave Factorize to authorize access to your Linear workspace, then return here.</p><div class="mt-6 flex justify-end gap-3"><button type="button" data-close-setup="linear" class="min-h-11 px-4 text-sm font-semibold">Cancel</button><a id="linear-action" href="/auth/linear" class="inline-flex min-h-11 items-center rounded-xl bg-slate-950 px-4 text-sm font-semibold text-white dark:bg-white dark:text-slate-950">Continue to Linear</a></div></div></dialog>
Expand Down