Web UI on Ant Design, scrollable factory columns, fix empty page after deleting the open chat

Buttons, fields, drop-downs, check boxes, tabs, dialogs and notices are Ant Design components;
their tokens come from the theme variables (web/src/ui). Every factory board column has its own
vertical scrollbar. ChatView rendered fewer hooks once its chat was deleted.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Richard ZinkandClaude Sonnet 5.5 committed 2026-11-27 12:32:57 +01:00
1 parent 90b9ab6670
commit 6b1a1742b2
79 files changed
+2628 -1393

No files matched your search

+7 -6
View File
@@ -1,3 +1,4 @@
import { Button, Input } from "antd";
import { useState } from "react";
import { post } from "../api";
import { useT } from "../i18n";
@@ -35,14 +36,14 @@ export function Login({ info, onSuccess }: { info: Info; onSuccess: () => void }
<img src="/icon.svg" alt="" />
<h2 style={{ margin: 0 }}>CodeCraft</h2>
<div style={{ color: "var(--fg3)" }}>{setup ? t("login.setupPrompt") : t("login.prompt")}</div>
{setup && <input autoFocus placeholder={t("login.setupCode")} value={form.code} onChange={set("code")} autoComplete="one-time-code" />}
<input autoFocus={!setup} placeholder={t("login.username")} value={form.username} onChange={set("username")} autoComplete="username" autoCapitalize="none" />
<input type="password" placeholder={t("login.password")} value={form.password} onChange={set("password")} autoComplete={setup ? "new-password" : "current-password"} />
{setup && <input type="password" placeholder={t("login.passwordRepeat")} value={form.password2} onChange={set("password2")} autoComplete="new-password" />}
{setup && <Input autoFocus placeholder={t("login.setupCode")} value={form.code} onChange={set("code")} autoComplete="one-time-code" />}
<Input autoFocus={!setup} placeholder={t("login.username")} value={form.username} onChange={set("username")} autoComplete="username" autoCapitalize="none" />
<Input.Password placeholder={t("login.password")} value={form.password} onChange={set("password")} autoComplete={setup ? "new-password" : "current-password"} />
{setup && <Input.Password placeholder={t("login.passwordRepeat")} value={form.password2} onChange={set("password2")} autoComplete="new-password" />}
{error && <div style={{ color: "var(--red)" }}>{error}</div>}
<button className="primary" type="submit" disabled={busy || !form.username || !form.password}>
<Button type="primary" htmlType="submit" disabled={busy || !form.username || !form.password}>
{setup ? t("login.createAdmin") : t("login.submit")}
</button>
</Button>
{!setup && info.oidc && (
<>
<div style={{ color: "var(--muted)", fontSize: 12 }}>{t("login.or")}</div>