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

+9 -8
View File
@@ -1,3 +1,4 @@
import { Button, Input } from "antd";
import { useEffect, useState } from "react";
import { confirmDialog, toast } from "../../dialogs";
import { useT } from "../../i18n";
@@ -33,12 +34,12 @@ function List({ scope, initial }: { scope: "personal" | "global"; initial: Templ
{list.map((x, i) => (
<div key={x.id || `new${i}`} className="tpl-edit">
<div className="row">
<input className="grow" value={x.name} placeholder={t("templates.name")} onChange={(e) => set(i, { name: e.target.value })} />
<button className="ghost small" onClick={() => remove(i)} aria-label={t("common.delete")}>
<Input className="grow" value={x.name} placeholder={t("templates.name")} onChange={(e) => set(i, { name: e.target.value })} />
<Button type="text" size="small" onClick={() => remove(i)} aria-label={t("common.delete")}>
<Icon name="trash" />
</button>
</Button>
</div>
<textarea rows={4} value={x.text} placeholder={t("templates.textPlaceholder")} onChange={(e) => set(i, { text: e.target.value })} />
<Input.TextArea rows={4} value={x.text} placeholder={t("templates.textPlaceholder")} onChange={(e) => set(i, { text: e.target.value })} />
{placeholders(x.text).length > 0 && (
<div className="tpl-ph">
{placeholders(x.text).map((p) => (
@@ -51,13 +52,13 @@ function List({ scope, initial }: { scope: "personal" | "global"; initial: Templ
</div>
))}
<div className="row" style={{ marginTop: 8 }}>
<button onClick={() => (setList([...list, { id: "", name: "", text: "" }]), setDirty(true))}>
<Button onClick={() => (setList([...list, { id: "", name: "", text: "" }]), setDirty(true))}>
<Icon name="plus" /> {t("templates.add")}
</button>
</Button>
<span className="grow" />
<button className="primary" disabled={!dirty} onClick={save}>
<Button type="primary" disabled={!dirty} onClick={save}>
{t("common.save")}
</button>
</Button>
</div>
</div>
);