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

+11 -11
View File
@@ -1,3 +1,4 @@
import { Button, Segmented } from "antd";
import { lazy, Suspense, useEffect, useState } from "react";
import { get } from "../api";
import { useT } from "../i18n";
@@ -33,13 +34,13 @@ function PdfPreview({ path }: { path: string }) {
return (
<div className="pdf-preview">
<div className="row pdf-nav">
<button className="small" disabled={page <= 1} onClick={() => setPage(page - 1)}>
<Button size="small" disabled={page <= 1} onClick={() => setPage(page - 1)}>
‹
</button>
</Button>
<span>{t("preview.page", { n: page, total: pages ?? "…" })}</span>
<button className="small" disabled={!pages || page >= pages} onClick={() => setPage(page + 1)}>
<Button size="small" disabled={!pages || page >= pages} onClick={() => setPage(page + 1)}>
›
</button>
</Button>
<span className="spacer" />
<a className="button small" href={`/api/files/raw?${q(path)}`} target="_blank" rel="noreferrer">
{t("preview.openBrowser")}
@@ -74,13 +75,12 @@ function DocPreview({ path }: { path: string }) {
const s = data.sheets?.[sheet];
return (
<div className="pdf-preview">
<div className="mode-tabs sheet-tabs">
{data.sheets?.map((x, i) => (
<button key={x.name} className={i === sheet ? "active" : ""} onClick={() => setSheet(i)}>
{x.name}
</button>
))}
</div>
<Segmented
className="sheet-tabs seg-wrap"
value={sheet}
onChange={setSheet}
options={data.sheets?.map((x, i) => ({ value: i, label: x.name })) ?? []}
/>
<div className="pane-scroll">
{s && (
<table className="grid sheet">