Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Factorize

[![CI](https://github.com/asselstine/factorize/actions/workflows/ci.yml/badge.svg)](https://github.com/asselstine/factorize/actions/workflows/ci.yml)
[![Deploy to Cloudflare](https://img.shields.io/badge/Deploy_to-Cloudflare-F38020?style=flat&logo=cloudflare&logoColor=white)](https://deploy.workers.cloudflare.com/?url=https://github.com/asselstine/factorize&path=packages/app)
[![CI](https://github.com/GenerationSoftware/factorize/actions/workflows/ci.yml/badge.svg)](https://github.com/GenerationSoftware/factorize/actions/workflows/ci.yml)
[![Deploy to Cloudflare](https://img.shields.io/badge/Deploy_to-Cloudflare-F38020?style=flat&logo=cloudflare&logoColor=white)](https://deploy.workers.cloudflare.com/?url=https://github.com/GenerationSoftware/factorize&path=packages/app)

**A no-code software factory for Linear teams.** Factorize turns selected Linear issue changes into coding-agent jobs on your own exe.dev VM, using Herdr to run the agent you choose.

Expand Down
4 changes: 2 additions & 2 deletions packages/app/src/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const shell = (title: string, viewer: Viewer, body: string, script = "") => `<!d
${viewer ? `<a href="/jobs" data-navigation="jobs" class="inline-flex min-h-11 items-center rounded-lg px-2 text-slate-600 hover:text-slate-950 aria-[current=page]:text-slate-950 aria-[current=page]:underline aria-[current=page]:underline-offset-8 dark:text-slate-300 dark:hover:text-white dark:aria-[current=page]:text-white">Jobs</a><details class="relative"><summary aria-label="Open profile menu" class="grid h-11 w-11 cursor-pointer list-none place-items-center rounded-full bg-slate-900 text-sm font-semibold text-white outline-none focus-visible:ring-2 focus-visible:ring-factorize-600 focus-visible:ring-offset-2 dark:bg-white dark:text-slate-950 dark:focus-visible:ring-offset-slate-950">${escapeHtml(viewer.email.slice(0, 1).toUpperCase())}</summary><div class="absolute right-0 z-20 mt-2 w-56 rounded-xl border border-stone-200 bg-white p-2 shadow-xl dark:border-slate-700 dark:bg-slate-900"><p class="truncate px-3 py-2 text-xs font-normal text-slate-500 dark:text-slate-400">${escapeHtml(viewer.email)}</p><a href="/settings" data-navigation="settings" class="flex min-h-11 items-center rounded-lg px-3 py-2 text-sm hover:bg-stone-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-factorize-600 aria-[current=page]:bg-stone-100 aria-[current=page]:font-semibold dark:hover:bg-slate-800 dark:aria-[current=page]:bg-slate-800">Settings</a><form action="/auth/logout" method="post" class="mt-1 border-t border-stone-200 pt-1 dark:border-slate-700"><button type="submit" class="min-h-11 w-full rounded-lg px-3 py-2 text-left text-sm hover:bg-stone-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-factorize-600 dark:hover:bg-slate-800">Log out</button></form></div></details>` : `<a href="/auth/linear" class="text-slate-600 hover:text-slate-950 dark:text-slate-300 dark:hover:text-white">Log in</a>`}
<button id="theme-toggle" type="button" class="grid h-9 w-9 place-items-center rounded-lg border border-stone-200 bg-white text-lg text-slate-700 hover:bg-stone-100 dark:border-slate-700 dark:bg-slate-900 dark:text-slate-200 dark:hover:bg-slate-800"><span id="theme-icon" aria-hidden="true">☾</span></button>
</div>
</nav></header>${body}<footer class="border-t border-stone-200 bg-white dark:border-slate-800 dark:bg-slate-950"><div class="mx-auto flex max-w-6xl flex-wrap items-center justify-between gap-3 px-5 py-6 text-sm text-slate-500 lg:px-8 dark:text-slate-400"><p>Open-source software factories for everybody.</p><a href="https://github.com/asselstine/factorize" target="_blank" rel="noreferrer" class="inline-flex items-center gap-2 font-medium text-slate-600 transition hover:text-slate-950 dark:text-slate-300 dark:hover:text-white"><svg aria-hidden="true" viewBox="0 0 16 16" fill="currentColor" class="h-5 w-5"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82A7.66 7.66 0 0 1 8 4.73c.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8Z"/></svg>View on GitHub</a></div></footer><script>${themeScript}${script}</script></body></html>`;
</nav></header>${body}<footer class="border-t border-stone-200 bg-white dark:border-slate-800 dark:bg-slate-950"><div class="mx-auto flex max-w-6xl flex-wrap items-center justify-between gap-3 px-5 py-6 text-sm text-slate-500 lg:px-8 dark:text-slate-400"><p>Open-source software factories for everybody.</p><a href="https://github.com/GenerationSoftware/factorize" target="_blank" rel="noreferrer" class="inline-flex items-center gap-2 font-medium text-slate-600 transition hover:text-slate-950 dark:text-slate-300 dark:hover:text-white"><svg aria-hidden="true" viewBox="0 0 16 16" fill="currentColor" class="h-5 w-5"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82A7.66 7.66 0 0 1 8 4.73c.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8Z"/></svg>View on GitHub</a></div></footer><script>${themeScript}${script}</script></body></html>`;

export const landingPage = (viewer: Viewer) => shell("Factorize: Software Factories for Everybody", viewer, `
<main class="landing-honeycomb mx-auto max-w-none px-5 py-20 text-center sm:py-28 lg:px-8"><div class="mx-auto max-w-5xl">
Expand All @@ -32,7 +32,7 @@ export const landingPage = (viewer: Viewer) => shell("Factorize: Software Factor
<p class="mx-auto mt-6 max-w-2xl text-lg leading-8 text-slate-600 dark:text-slate-400">Create a multiplayer software factory with <a href="https://linear.app/" target="_blank" rel="noreferrer" class="underline decoration-slate-400/60 underline-offset-4 transition hover:text-slate-700 dark:decoration-slate-500/60 dark:hover:text-slate-200">Linear</a>, <a href="https://exe.dev/" target="_blank" rel="noreferrer" class="underline decoration-slate-400/60 underline-offset-4 transition hover:text-slate-700 dark:decoration-slate-500/60 dark:hover:text-slate-200">Exe.dev</a> and <a href="https://herdr.dev/" target="_blank" rel="noreferrer" class="underline decoration-slate-400/60 underline-offset-4 transition hover:text-slate-700 dark:decoration-slate-500/60 dark:hover:text-slate-200">Herdr</a></p>
<div class="mt-9 flex flex-wrap justify-center gap-3">
<a href="/jobs/new" class="inline-flex rounded-xl bg-slate-950 px-6 py-3.5 text-sm font-semibold text-white shadow-lg transition hover:bg-slate-800 dark:bg-white dark:text-slate-950 dark:hover:bg-slate-200">Create Job</a>
<a href="https://github.com/asselstine/factorize" target="_blank" rel="noreferrer" class="inline-flex items-center gap-2 rounded-xl border border-stone-300 bg-white px-6 py-3.5 text-sm font-semibold text-slate-950 shadow-sm transition hover:bg-stone-100 dark:border-slate-700 dark:bg-slate-900 dark:text-white dark:hover:bg-slate-800"><svg aria-hidden="true" viewBox="0 0 16 16" fill="currentColor" class="h-5 w-5"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82A7.66 7.66 0 0 1 8 4.73c.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8Z"/></svg>Host it Yourself</a>
<a href="https://github.com/GenerationSoftware/factorize" target="_blank" rel="noreferrer" class="inline-flex items-center gap-2 rounded-xl border border-stone-300 bg-white px-6 py-3.5 text-sm font-semibold text-slate-950 shadow-sm transition hover:bg-stone-100 dark:border-slate-700 dark:bg-slate-900 dark:text-white dark:hover:bg-slate-800"><svg aria-hidden="true" viewBox="0 0 16 16" fill="currentColor" class="h-5 w-5"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82A7.66 7.66 0 0 1 8 4.73c.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8Z"/></svg>Host it Yourself</a>
</div>
<section class="mx-auto mt-24 max-w-3xl text-left" aria-labelledby="how-it-works-title">
<div class="text-center"><p class="text-sm font-semibold uppercase tracking-[.18em] text-factorize-600">How it works</p><h2 id="how-it-works-title" class="mt-3 text-3xl font-bold tracking-tight sm:text-4xl">Choose when to fully automate</h2><p class="mx-auto mt-4 max-w-2xl leading-7 text-slate-600 dark:text-slate-400">Factorize routes Linear issues to your coding agent of choice running on your exe.dev VM.</p></div>
Expand Down
2 changes: 1 addition & 1 deletion packages/app/test/ui.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe("pages", () => {
expect(html).toContain("Choose when to fully automate");
expect(html).toContain("Issues are routed to agents");
expect(html).toContain('href="/jobs/new"');
expect(html).toContain('href="https://github.com/asselstine/factorize" target="_blank"');
expect(html).toContain('href="https://github.com/GenerationSoftware/factorize" target="_blank"');
expect(html).toContain("Host it Yourself");
expect(html).toContain("View on GitHub");
expect(html).toContain('id="theme-toggle"');
Expand Down