Factory recreate mode; chunked uploads with progress everywhere

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Richard ZinkandClaude Sonnet 5.5 committed 2026-11-18 13:49:16 +01:00
1 parent 771c6f5245
commit b309778be8
17 files changed
+477 -47

No files matched your search

+10
View File
@@ -6,6 +6,7 @@ import { choiceDialog, confirmDialog, promptDialog, toast } from "../dialogs";
import { Icon } from "./Icon";
import { Spinner } from "./Activity";
import { ModelSelect } from "./ModelSelect";
import { RecreateDialog } from "./FactoryDraft";
import { ReleaseDialog, ReleasesPanel, type ReleaseRow } from "./FactoryRelease";
interface PrInfo {
@@ -173,6 +174,7 @@ function FactoryOverview({ onSettings }: { onSettings: () => void }) {
const [sel, setSel] = useState<string>("");
const [now, setNow] = useState(Date.now());
const [busy, setBusy] = useState(false);
const [recreate, setRecreate] = useState(false);
const reload = () =>
get<Overview>("/factory/overview")
@@ -267,11 +269,15 @@ function FactoryOverview({ onSettings }: { onSettings: () => void }) {
if (data.repos.length === 0)
return (
<div className="empty">
{recreate && <RecreateDialog onClose={() => setRecreate(false)} />}
<p>{t("factory.empty")}</p>
<div className="row" style={{ gap: 8, justifyContent: "center" }}>
<button className="primary" onClick={newProject} disabled={busy}>
<Icon name="plus" /> {t("factory.newProject")}
</button>
<button onClick={() => setRecreate(true)} disabled={busy}>
<Icon name="search" /> {t("recreate.button")}
</button>
<button onClick={onSettings}>{t("factory.tab.settings")}</button>
</div>
</div>
@@ -400,6 +406,9 @@ function FactoryOverview({ onSettings }: { onSettings: () => void }) {
<button className="small primary" onClick={newProject} disabled={busy}>
<Icon name="plus" /> {t("factory.newProject")}
</button>
<button className="small" onClick={() => setRecreate(true)} disabled={busy} title={t("recreate.hint")}>
<Icon name="search" /> {t("recreate.button")}
</button>
<button className="small" onClick={() => issueChat("feature")} disabled={busy} title={t("issues.featureHint")}>
<Icon name="sparkle" /> {t("issues.feature")}
</button>
@@ -449,6 +458,7 @@ function FactoryOverview({ onSettings }: { onSettings: () => void }) {
</div>
<ReleasesPanel releases={(data.releases ?? []).filter((r) => !repo || r.repo === repo)} />
{recreate && <RecreateDialog onClose={() => setRecreate(false)} />}
{releaseRepo && <ReleaseDialog repo={releaseRepo} onClose={() => setReleaseRepo("")} onStarted={() => void reload()} />}
<div className="panel" style={{ marginTop: 16 }}>