diff --git a/CHANGELOG.md b/CHANGELOG.md
index 72a872d..6e86cd2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,20 @@
All notable changes to CodeCraft. Versions follow [Semantic Versioning](https://semver.org/);
until 1.0, minor versions may contain breaking changes.
+## [Unreleased]
+
+### Changed
+
+- **The web UI uses Ant Design.** Buttons, fields, drop-downs, check boxes, tabs, dialogs and notices are Ant Design components for a uniform look. Their colours come from the app's theme variables, so all themes and the light/dark switch keep working; the language of the components follows the app. The first load grows by about 260 KB (gzip).
+
+### Added
+
+- **Factory board:** every column has its own vertical scrollbar; its title stays visible.
+
+### Fixed
+
+- Deleting the chat that is open left an empty page (the chat view rendered fewer hooks than before).
+
## [v202611-00081] – 2026-11-27
### Added
diff --git a/web/package-lock.json b/web/package-lock.json
index 85144bd..ac1ee87 100644
--- a/web/package-lock.json
+++ b/web/package-lock.json
@@ -7,6 +7,7 @@
"": {
"name": "codecraft-web",
"version": "0.1.0",
+ "license": "MIT",
"dependencies": {
"@codemirror/commands": "^6.11.1",
"@codemirror/language": "^6.13.1",
@@ -18,6 +19,7 @@
"@xterm/addon-fit": "^0.11.0",
"@xterm/addon-web-links": "^0.12.0",
"@xterm/xterm": "^6.0.0",
+ "antd": "^6.7.2",
"codemirror": "^6.0.2",
"occt-import-js": "^0.0.23",
"react": "^19.3.1",
@@ -37,6 +39,99 @@
"vite-plugin-pwa": "^2.0.0"
}
},
+ "node_modules/@ant-design/colors": {
+ "version": "8.0.1",
+ "resolved": "https://registry.npmjs.org/@ant-design/colors/-/colors-8.0.1.tgz",
+ "integrity": "sha512-foPVl0+SWIslGUtD/xBr1p9U4AKzPhNYEseXYRRo5QSzGACYZrQbe11AYJbYfAWnWSpGBx6JjBmSeugUsD9vqQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@ant-design/fast-color": "^3.0.0"
+ }
+ },
+ "node_modules/@ant-design/cssinjs": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/@ant-design/cssinjs/-/cssinjs-2.1.2.tgz",
+ "integrity": "sha512-2Hy8BnCEH31xPeSLbhhB2ctCPXE2ZnASdi+KbSeS79BNbUhL9hAEe20SkUk+BR8aKTmqb6+FKFruk7w8z0VoRQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.11.1",
+ "@emotion/hash": "^0.8.0",
+ "@emotion/unitless": "^0.7.5",
+ "@rc-component/util": "^1.4.0",
+ "clsx": "^2.1.1",
+ "csstype": "^3.1.3",
+ "stylis": "^4.3.4"
+ },
+ "peerDependencies": {
+ "react": ">=16.0.0",
+ "react-dom": ">=16.0.0"
+ }
+ },
+ "node_modules/@ant-design/cssinjs-utils": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/@ant-design/cssinjs-utils/-/cssinjs-utils-2.1.2.tgz",
+ "integrity": "sha512-5fTHQ158jJJ5dC/ECeyIdZUzKxE/mpEMRZxthyG1sw/AKRHKgJBg00Yi6ACVXgycdje7KahRNvNET/uBccwCnA==",
+ "license": "MIT",
+ "dependencies": {
+ "@ant-design/cssinjs": "^2.1.2",
+ "@babel/runtime": "^7.23.2",
+ "@rc-component/util": "^1.4.0"
+ },
+ "peerDependencies": {
+ "react": ">=18",
+ "react-dom": ">=18"
+ }
+ },
+ "node_modules/@ant-design/fast-color": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/@ant-design/fast-color/-/fast-color-3.0.1.tgz",
+ "integrity": "sha512-esKJegpW4nckh0o6kV3Tkb7NPIZYbPnnFxmQDUmL08ukXZAvV85TZBr70eGuke/CIArLaP6aw8lt9KILjnWuOw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8.x"
+ }
+ },
+ "node_modules/@ant-design/icons": {
+ "version": "6.3.4",
+ "resolved": "https://registry.npmjs.org/@ant-design/icons/-/icons-6.3.4.tgz",
+ "integrity": "sha512-kDoUlppczVyCUTFthF6cHmPzMBYqNZQhu9j6EyIX/YIdM9j9CZNZoJUjzVw7/1v1VO8WwVMmPp15r/uwIAS0AQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@ant-design/colors": "^8.0.1",
+ "@ant-design/icons-svg": "^4.6.0",
+ "@rc-component/util": "^1.11.0",
+ "clsx": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "peerDependencies": {
+ "react": ">=16.0.0",
+ "react-dom": ">=16.0.0"
+ }
+ },
+ "node_modules/@ant-design/icons-svg": {
+ "version": "4.6.0",
+ "resolved": "https://registry.npmjs.org/@ant-design/icons-svg/-/icons-svg-4.6.0.tgz",
+ "integrity": "sha512-PRomU725ABMf/lnQp5HiB7my1kjEbFY0D10N4lXYxK6TIB1gKjIVD5MRThpDaezLgw1D774J8eOeeDB0M6wHrQ==",
+ "license": "MIT"
+ },
+ "node_modules/@ant-design/react-slick": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/@ant-design/react-slick/-/react-slick-2.0.0.tgz",
+ "integrity": "sha512-HMS9sRoEmZey8LsE/Yo6+klhlzU12PisjrVcydW3So7RdklyEd2qehyU6a7Yp+OYN72mgsYs3NFCyP2lCPFVqg==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.28.4",
+ "clsx": "^2.1.1",
+ "json2mq": "^0.2.0",
+ "throttle-debounce": "^5.0.0"
+ },
+ "peerDependencies": {
+ "react": "^0.14.0 || ^15.0.1 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
+ "react-dom": "^0.14.0 || ^15.0.1 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
+ }
+ },
"node_modules/@apideck/better-ajv-errors": {
"version": "0.3.7",
"resolved": "https://registry.npmjs.org/@apideck/better-ajv-errors/-/better-ajv-errors-0.3.7.tgz",
@@ -1542,7 +1637,6 @@
"version": "7.29.13",
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.13.tgz",
"integrity": "sha512-v+oN26xP4YIlQsbQ/CbTH1WG5m/l/DjKKZNy/Kp3f/AFvbgt7Em/D0FeMM3O2hX0YzeN2M16W8lOpyhIkfCBcQ==",
- "dev": true,
"license": "MIT",
"engines": {
"node": ">=6.9.0"
@@ -2011,6 +2105,18 @@
"dev": true,
"license": "Apache-2.0"
},
+ "node_modules/@emotion/hash": {
+ "version": "0.8.0",
+ "resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.8.0.tgz",
+ "integrity": "sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==",
+ "license": "MIT"
+ },
+ "node_modules/@emotion/unitless": {
+ "version": "0.7.5",
+ "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.7.5.tgz",
+ "integrity": "sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg==",
+ "license": "MIT"
+ },
"node_modules/@isaacs/cliui": {
"version": "9.0.0",
"resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-9.0.0.tgz",
@@ -2275,6 +2381,739 @@
"url": "https://github.com/sponsors/oxc-project"
}
},
+ "node_modules/@rc-component/async-validator": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/@rc-component/async-validator/-/async-validator-6.0.0.tgz",
+ "integrity": "sha512-D3AGQwdyE58gmvx6waVSXJ80JGO+IY5L2O8HDnSOex7JNlzB3GuN/4hyHNTdhy2qtOhkpbIjmeAN3tL993wKbA==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.24.4"
+ },
+ "engines": {
+ "node": ">=14.x"
+ }
+ },
+ "node_modules/@rc-component/cascader": {
+ "version": "1.26.0",
+ "resolved": "https://registry.npmjs.org/@rc-component/cascader/-/cascader-1.26.0.tgz",
+ "integrity": "sha512-x8n7/LKzdOcuo0+rzmLlMI7mwo2bkOzXS0BST8/X0XyD7NVBdC3xbXvL3/ZH6wsLAWBQAmkmJVrK3DKeDgqDMQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@rc-component/select": "~1.12.0",
+ "@rc-component/tree": "~1.5.3",
+ "@rc-component/util": "^1.14.0",
+ "clsx": "^2.1.1"
+ },
+ "peerDependencies": {
+ "react": ">=18.0.0",
+ "react-dom": ">=18.0.0"
+ }
+ },
+ "node_modules/@rc-component/checkbox": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/@rc-component/checkbox/-/checkbox-2.0.0.tgz",
+ "integrity": "sha512-3CXGPpAR9gsPKeO2N78HAPOzU30UdemD6HGJoWVJOpa6WleaGB5kzZj3v6bdTZab31YuWgY/RxV3VKPctn0DwQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@rc-component/util": "^1.3.0",
+ "clsx": "^2.1.1"
+ },
+ "peerDependencies": {
+ "react": ">=16.9.0",
+ "react-dom": ">=16.9.0"
+ }
+ },
+ "node_modules/@rc-component/collapse": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/@rc-component/collapse/-/collapse-1.3.0.tgz",
+ "integrity": "sha512-1pFv7V080Y2ba+MlW6R5arBbxz4EipC7YZmbyHT9ecfWtb1FPCBz9aOKKuX5cBBqdpM+jGDSNORuW4OM/QWIcg==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^8.0.0",
+ "@rc-component/motion": "^1.1.4",
+ "@rc-component/util": "^1.13.0",
+ "clsx": "^2.1.1"
+ },
+ "peerDependencies": {
+ "react": ">=18.0.0",
+ "react-dom": ">=18.0.0"
+ }
+ },
+ "node_modules/@rc-component/collapse/node_modules/@babel/runtime": {
+ "version": "8.1.3",
+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-8.1.3.tgz",
+ "integrity": "sha512-tno/enifiFAE77kbJadRE5wKfmzxlYvdB5Dj8yqmWoT49mDJE+wvLgvJY/EKt/jQllv369GMxyyJ9tKfTL33Nw==",
+ "license": "MIT"
+ },
+ "node_modules/@rc-component/color-picker": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/@rc-component/color-picker/-/color-picker-3.1.1.tgz",
+ "integrity": "sha512-OHaCHLHszCegdXmIq2ZRIZBN/EtpT6Wm8SG/gpzLATHbVKc/avvuKi+zlOuk05FTWvgaMmpxAko44uRJ3M+2pg==",
+ "license": "MIT",
+ "dependencies": {
+ "@ant-design/fast-color": "^3.0.1",
+ "@rc-component/util": "^1.3.0",
+ "clsx": "^2.1.1"
+ },
+ "peerDependencies": {
+ "react": ">=16.9.0",
+ "react-dom": ">=16.9.0"
+ }
+ },
+ "node_modules/@rc-component/context": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/@rc-component/context/-/context-2.0.2.tgz",
+ "integrity": "sha512-uiGpAlblCNlziHPwj4S4Iy/oemeuz/hR03mbiEjTCXwsqOIN3BOzsRMyDwpyO5Fm0vIEEJRUf9ZtbRLbhksuTA==",
+ "license": "MIT",
+ "dependencies": {
+ "@rc-component/util": "^1.11.0"
+ },
+ "peerDependencies": {
+ "react": ">=18.0.0",
+ "react-dom": ">=18.0.0"
+ }
+ },
+ "node_modules/@rc-component/dialog": {
+ "version": "1.10.0",
+ "resolved": "https://registry.npmjs.org/@rc-component/dialog/-/dialog-1.10.0.tgz",
+ "integrity": "sha512-eDukNlz9vNszAGv7i3zKXdxEd3wgVmNxuJijYt8zvTh17QwTu8KK/bdURRd/lU4qaMzhO1HKKmMrwOnkaw0BvQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@rc-component/motion": "^1.3.3",
+ "@rc-component/portal": "^2.1.0",
+ "@rc-component/util": "^1.9.0",
+ "clsx": "^2.1.1"
+ },
+ "peerDependencies": {
+ "react": ">=18.0.0",
+ "react-dom": ">=18.0.0"
+ }
+ },
+ "node_modules/@rc-component/drawer": {
+ "version": "1.4.3",
+ "resolved": "https://registry.npmjs.org/@rc-component/drawer/-/drawer-1.4.3.tgz",
+ "integrity": "sha512-7gqhmv9K4VQnpOR8JQfwBU2QxgjeRP/1MroKqXg7CDvrt8dghIpQ9ungD9JlrAlpyYmV4ziwRZeyc2ks++9L4g==",
+ "license": "MIT",
+ "dependencies": {
+ "@rc-component/motion": "^1.1.4",
+ "@rc-component/portal": "^2.1.3",
+ "@rc-component/util": "^1.11.1",
+ "clsx": "^2.1.1"
+ },
+ "peerDependencies": {
+ "react": ">=18.0.0",
+ "react-dom": ">=18.0.0"
+ }
+ },
+ "node_modules/@rc-component/dropdown": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/@rc-component/dropdown/-/dropdown-2.0.1.tgz",
+ "integrity": "sha512-ZZncN8mWNbC5U+YAUQUNXT/R5gOF7HxplEnK979CGjVVLvfp/ULb8IqE8sLU8bKVk7oWqv8cAt4DL0iGoGvNrA==",
+ "license": "MIT",
+ "dependencies": {
+ "@rc-component/trigger": "^3.0.0",
+ "@rc-component/util": "^1.11.1",
+ "clsx": "^2.1.1"
+ },
+ "peerDependencies": {
+ "react": ">=16.11.0",
+ "react-dom": ">=16.11.0"
+ }
+ },
+ "node_modules/@rc-component/form": {
+ "version": "1.8.6",
+ "resolved": "https://registry.npmjs.org/@rc-component/form/-/form-1.8.6.tgz",
+ "integrity": "sha512-1EXVsSKPZC6kGrIqxVck7kAWM6T65b6et/n5wIcyiaIa41VrDshD0nVLHoBDEIZr2ATQsOP6icb4XQkNFMLBAw==",
+ "license": "MIT",
+ "dependencies": {
+ "@rc-component/async-validator": "^6.0.0",
+ "@rc-component/util": "^1.11.1",
+ "clsx": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=8.x"
+ },
+ "peerDependencies": {
+ "react": ">=16.9.0",
+ "react-dom": ">=16.9.0"
+ }
+ },
+ "node_modules/@rc-component/image": {
+ "version": "1.10.1",
+ "resolved": "https://registry.npmjs.org/@rc-component/image/-/image-1.10.1.tgz",
+ "integrity": "sha512-7sTn7OPKersX02jCp+iLyE4rjz1A6OS2UJKBJLAL+bdFPSC3wP9DC546ZMVroCeG8n2p2dq8/Jt4latiA1xF9g==",
+ "license": "MIT",
+ "dependencies": {
+ "@rc-component/motion": "^1.0.0",
+ "@rc-component/portal": "^2.1.2",
+ "@rc-component/util": "^1.13.0",
+ "clsx": "^2.1.1"
+ },
+ "peerDependencies": {
+ "react": ">=16.9.0",
+ "react-dom": ">=16.9.0"
+ }
+ },
+ "node_modules/@rc-component/input": {
+ "version": "1.4.2",
+ "resolved": "https://registry.npmjs.org/@rc-component/input/-/input-1.4.2.tgz",
+ "integrity": "sha512-aB6sGF9uWqSi+C9us/Fk5KG5dOiQbA+5xqGHIO7bDF/FuwZjOa3/P1Xyk255dRnzEJS3qYXa/LJV8ARvgJmNHw==",
+ "license": "MIT",
+ "dependencies": {
+ "@rc-component/resize-observer": "^1.1.1",
+ "@rc-component/util": "^1.14.0",
+ "clsx": "^2.1.1"
+ },
+ "peerDependencies": {
+ "react": ">=16.0.0",
+ "react-dom": ">=16.0.0"
+ }
+ },
+ "node_modules/@rc-component/input-number": {
+ "version": "1.8.0",
+ "resolved": "https://registry.npmjs.org/@rc-component/input-number/-/input-number-1.8.0.tgz",
+ "integrity": "sha512-6hyI17JGZ/P3LXEqDZ3fRmcdNVTAS6aBbZ/cvKu0xCz3v3IF5t8OxCddjy/oSCSBcu+iLh878BbHEgeqKBHQ3A==",
+ "license": "MIT",
+ "dependencies": {
+ "@rc-component/mini-decimal": "^1.1.1",
+ "@rc-component/util": "^1.14.0",
+ "clsx": "^2.1.1"
+ },
+ "peerDependencies": {
+ "react": ">=16.9.0",
+ "react-dom": ">=16.9.0"
+ }
+ },
+ "node_modules/@rc-component/listy": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/@rc-component/listy/-/listy-1.4.0.tgz",
+ "integrity": "sha512-enNtH2D3nU00qqP+YFxG3V3rnaXpN6HecFUIc/Q5SjxFmg8Ab20os1odn90Bam5y+ZIiOh52HUqvu4HwZv8pkQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@rc-component/motion": "^1.1.4",
+ "@rc-component/portal": "^2.0.0",
+ "@rc-component/resize-observer": "^1.0.0",
+ "@rc-component/util": "^1.3.1",
+ "@rc-component/virtual-list": "^1.4.0",
+ "clsx": "^2.1.1"
+ },
+ "peerDependencies": {
+ "react": ">=18.0.0",
+ "react-dom": ">=18.0.0"
+ }
+ },
+ "node_modules/@rc-component/mentions": {
+ "version": "1.14.1",
+ "resolved": "https://registry.npmjs.org/@rc-component/mentions/-/mentions-1.14.1.tgz",
+ "integrity": "sha512-Ra4462KKaiAkwRklJpYZPznWssCf0LjFKIhHaxuha1rwdrTY1UBeYSzfqj7ux7S2/AqjR9k60U5PijFToNma/Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@rc-component/input": "~1.4.1",
+ "@rc-component/menu": "~1.6.0",
+ "@rc-component/trigger": "^3.0.0",
+ "@rc-component/util": "^1.14.0",
+ "clsx": "^2.1.1"
+ },
+ "peerDependencies": {
+ "react": ">=16.9.0",
+ "react-dom": ">=16.9.0"
+ }
+ },
+ "node_modules/@rc-component/menu": {
+ "version": "1.6.3",
+ "resolved": "https://registry.npmjs.org/@rc-component/menu/-/menu-1.6.3.tgz",
+ "integrity": "sha512-EIwGzPgJqIPx4J5FQLGVgP0iKDzatddIb8gOxvUmGzGptB0XPEQ3svGGTLUv107nhBbaHxxhhASWlt2IVXCi7w==",
+ "license": "MIT",
+ "dependencies": {
+ "@rc-component/motion": "^1.1.4",
+ "@rc-component/overflow": "^1.0.0",
+ "@rc-component/trigger": "^3.0.0",
+ "@rc-component/util": "^1.13.0",
+ "clsx": "^2.1.1"
+ },
+ "peerDependencies": {
+ "react": ">=18.0.0",
+ "react-dom": ">=18.0.0"
+ }
+ },
+ "node_modules/@rc-component/mini-decimal": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/@rc-component/mini-decimal/-/mini-decimal-1.1.4.tgz",
+ "integrity": "sha512-xiuXcaCwyOWpD8a8scdExFl+bntNphAW8XeenL1ig2en0AAZY0Pcp4pC0dI22qJ+NvxKn9RoNIoRdqYU3BLH4w==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.18.0"
+ },
+ "engines": {
+ "node": ">=8.x"
+ }
+ },
+ "node_modules/@rc-component/motion": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/@rc-component/motion/-/motion-1.4.0.tgz",
+ "integrity": "sha512-Eg2Wop56M8ZS1KrNhBHZD29gFg+WOT3W+ckncJuuLSGV95EabAyewJH6p28BFJryCSqRsuXRH3/iMiAIY7dtnw==",
+ "license": "MIT",
+ "dependencies": {
+ "@rc-component/util": "^1.11.1",
+ "clsx": "^2.1.1"
+ },
+ "peerDependencies": {
+ "react": ">=16.9.0",
+ "react-dom": ">=16.9.0"
+ }
+ },
+ "node_modules/@rc-component/mutate-observer": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/@rc-component/mutate-observer/-/mutate-observer-2.0.2.tgz",
+ "integrity": "sha512-j1pZl4KViPS7pRbCj7fKf65H+SyiaE+5i1V7H+YwrF4wK3uTaxo/6PwOoOq1Qgcr0gyyyIR43f2SVyNw3eDHZQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@rc-component/util": "^1.13.0"
+ },
+ "engines": {
+ "node": ">=8.x"
+ },
+ "peerDependencies": {
+ "react": ">=16.9.0",
+ "react-dom": ">=16.9.0"
+ }
+ },
+ "node_modules/@rc-component/notification": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/@rc-component/notification/-/notification-2.1.1.tgz",
+ "integrity": "sha512-HD+Gx/HUjivBI6GZtfPVLjvOJZybSEIoE2upnmoVg4w9vZQHMaIPWP6B52cHWOGg+u48HBbO+HnyVNN8AKQxgQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@rc-component/motion": "^1.1.4",
+ "@rc-component/util": "^1.13.0",
+ "clsx": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=8.x"
+ },
+ "peerDependencies": {
+ "react": ">=18.0.0",
+ "react-dom": ">=18.0.0"
+ }
+ },
+ "node_modules/@rc-component/overflow": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@rc-component/overflow/-/overflow-1.0.1.tgz",
+ "integrity": "sha512-syfmgAABaHCnCDzPwHZ/2tuvIcpOO3jefYZMmfkN+pmo8HKTzsfhS57vxo4ksPdN0By+uWVJhJWNFozNBxi2eA==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.11.1",
+ "@rc-component/resize-observer": "^1.0.1",
+ "@rc-component/util": "^1.4.0",
+ "clsx": "^2.1.1"
+ },
+ "peerDependencies": {
+ "react": ">=16.9.0",
+ "react-dom": ">=16.9.0"
+ }
+ },
+ "node_modules/@rc-component/pagination": {
+ "version": "1.7.0",
+ "resolved": "https://registry.npmjs.org/@rc-component/pagination/-/pagination-1.7.0.tgz",
+ "integrity": "sha512-bG3H6gNTABAX9wIRjonxld2SU8C4wvpq/8Xgg30oQWsunRTtUeIlM7J+9UvJAC0CXgG9ZFpoiQ+vbyOuXCcveA==",
+ "license": "MIT",
+ "dependencies": {
+ "@rc-component/util": "^1.13.0",
+ "clsx": "^2.1.1"
+ },
+ "peerDependencies": {
+ "react": ">=16.9.0",
+ "react-dom": ">=16.9.0"
+ }
+ },
+ "node_modules/@rc-component/picker": {
+ "version": "1.17.0",
+ "resolved": "https://registry.npmjs.org/@rc-component/picker/-/picker-1.17.0.tgz",
+ "integrity": "sha512-r+fJajCeT2gIVzuOSX+M2jjMglCYLa2b7ESZbD1IYrhOBhnHN3H0rSrbcThi/XRumlz1qWMncnC1WHQTzPolSg==",
+ "license": "MIT",
+ "dependencies": {
+ "@rc-component/overflow": "^1.0.0",
+ "@rc-component/resize-observer": "^1.0.0",
+ "@rc-component/trigger": "^3.6.15",
+ "@rc-component/util": "^1.14.0",
+ "clsx": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=12.x"
+ },
+ "peerDependencies": {
+ "date-fns": ">= 2.x",
+ "dayjs": ">= 1.x",
+ "luxon": ">= 3.x",
+ "moment": ">= 2.x",
+ "react": ">=16.9.0",
+ "react-dom": ">=16.9.0"
+ },
+ "peerDependenciesMeta": {
+ "date-fns": {
+ "optional": true
+ },
+ "dayjs": {
+ "optional": true
+ },
+ "luxon": {
+ "optional": true
+ },
+ "moment": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@rc-component/portal": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/@rc-component/portal/-/portal-2.2.1.tgz",
+ "integrity": "sha512-ck+r1kW/JSv0wxPji3KN2ss9K6Z0qqwusw/mf/0JobXhZ8hC2ejZwCJObW/SvDi0uhA0VzmCnx0CaCci95tcmA==",
+ "license": "MIT",
+ "dependencies": {
+ "@rc-component/util": "^1.11.0",
+ "clsx": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=12.x"
+ },
+ "peerDependencies": {
+ "react": ">=18.0.0",
+ "react-dom": ">=18.0.0"
+ }
+ },
+ "node_modules/@rc-component/progress": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/@rc-component/progress/-/progress-1.1.0.tgz",
+ "integrity": "sha512-4IjvlwckYBxp6kauIkjSGNNXKIpuU5PoBnAIME4fYoQABBt0HAzyM0Sz0EEnaJiifRu3wTOwE5GFy4hzJthBxA==",
+ "license": "MIT",
+ "dependencies": {
+ "@rc-component/util": "^1.11.1",
+ "clsx": "^2.1.1"
+ },
+ "peerDependencies": {
+ "react": ">=16.9.0",
+ "react-dom": ">=16.9.0"
+ }
+ },
+ "node_modules/@rc-component/qrcode": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/@rc-component/qrcode/-/qrcode-2.0.0.tgz",
+ "integrity": "sha512-aAv3QhPP1xyafuTZOxub6a54pCeBnN3IwQkpETrBtthq4BL5IgxnCbuoBWPDpdLw1y1j6BgBUCAKV92+yX06Dw==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.24.7"
+ },
+ "engines": {
+ "node": ">=8.x"
+ },
+ "peerDependencies": {
+ "react": ">=16.9.0",
+ "react-dom": ">=16.9.0"
+ }
+ },
+ "node_modules/@rc-component/rate": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@rc-component/rate/-/rate-1.0.1.tgz",
+ "integrity": "sha512-bkXxeBqDpl5IOC7yL7GcSYjQx9G8H+6kLYQnNZWeBYq2OYIv1MONd6mqKTjnnJYpV0cQIU2z3atdW0j1kttpTw==",
+ "license": "MIT",
+ "dependencies": {
+ "@rc-component/util": "^1.3.0",
+ "clsx": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=8.x"
+ },
+ "peerDependencies": {
+ "react": ">=16.9.0",
+ "react-dom": ">=16.9.0"
+ }
+ },
+ "node_modules/@rc-component/resize-observer": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/@rc-component/resize-observer/-/resize-observer-1.1.2.tgz",
+ "integrity": "sha512-t/Bb0W8uvL4PYKAB3YcChC+DlHh0Wt5kM7q/J+0qpVEUMLe7Hk5zuvc9km0hMnTFPSx5Z7Wu/fzCLN6erVLE8Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@rc-component/util": "^1.2.0"
+ },
+ "peerDependencies": {
+ "react": ">=16.9.0",
+ "react-dom": ">=16.9.0"
+ }
+ },
+ "node_modules/@rc-component/segmented": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/@rc-component/segmented/-/segmented-1.4.0.tgz",
+ "integrity": "sha512-NZlpKGSplOYlmF5ukUF1fCLr0ns5WfjNoqMlMkf4AHP0iu90wyiP7hn2qZKRHEuRlG4CvEEz/lF9qRiYnLTofQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^8.0.0",
+ "@rc-component/motion": "^1.1.4",
+ "@rc-component/util": "^1.11.1",
+ "clsx": "^2.1.1"
+ },
+ "peerDependencies": {
+ "react": ">=16.0.0",
+ "react-dom": ">=16.0.0"
+ }
+ },
+ "node_modules/@rc-component/segmented/node_modules/@babel/runtime": {
+ "version": "8.1.3",
+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-8.1.3.tgz",
+ "integrity": "sha512-tno/enifiFAE77kbJadRE5wKfmzxlYvdB5Dj8yqmWoT49mDJE+wvLgvJY/EKt/jQllv369GMxyyJ9tKfTL33Nw==",
+ "license": "MIT"
+ },
+ "node_modules/@rc-component/select": {
+ "version": "1.12.1",
+ "resolved": "https://registry.npmjs.org/@rc-component/select/-/select-1.12.1.tgz",
+ "integrity": "sha512-zI4wio/kg2PKonD2LZXlKX5grdAjU3ThpReuq3bseMUsEo2XXAAurGUNaXh5GYpoquGf8fJbQlNeB/ewXyQStQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@rc-component/overflow": "^1.0.0",
+ "@rc-component/trigger": "^3.0.0",
+ "@rc-component/util": "^1.14.0",
+ "@rc-component/virtual-list": "^1.2.0",
+ "clsx": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=8.x"
+ },
+ "peerDependencies": {
+ "react": "*",
+ "react-dom": "*"
+ }
+ },
+ "node_modules/@rc-component/slider": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/@rc-component/slider/-/slider-1.2.2.tgz",
+ "integrity": "sha512-DrzJRjZVGK6N/zYKAsi6k1g1IwTxVSDUA7SzgzQ5IOJz1nY3kLtq70t0T0Pw5yOYi1LNlt0rzCWaFvZmYsX6Gw==",
+ "license": "MIT",
+ "dependencies": {
+ "@rc-component/util": "^1.13.0",
+ "clsx": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=8.x"
+ },
+ "peerDependencies": {
+ "react": ">=16.9.0",
+ "react-dom": ">=16.9.0"
+ }
+ },
+ "node_modules/@rc-component/steps": {
+ "version": "1.2.5",
+ "resolved": "https://registry.npmjs.org/@rc-component/steps/-/steps-1.2.5.tgz",
+ "integrity": "sha512-f0K114h0K2V7WaETEAPjwyo+ycL4+8OIz1x8WgqJCymeUJti4yT9eoFU8HMB0VVcvyoJ/iAHyYc9jMs/HtJeaw==",
+ "license": "MIT",
+ "dependencies": {
+ "@rc-component/util": "^1.13.0",
+ "clsx": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=8.x"
+ },
+ "peerDependencies": {
+ "react": ">=16.9.0",
+ "react-dom": ">=16.9.0"
+ }
+ },
+ "node_modules/@rc-component/switch": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/@rc-component/switch/-/switch-1.0.3.tgz",
+ "integrity": "sha512-Jgi+EbOBquje/XNdofr7xbJQZPYJP+BlPfR0h+WN4zFkdtB2EWqEfvkXJWeipflwjWip0/17rNbxEAqs8hVHfw==",
+ "license": "MIT",
+ "dependencies": {
+ "@rc-component/util": "^1.3.0",
+ "clsx": "^2.1.1"
+ },
+ "peerDependencies": {
+ "react": ">=16.9.0",
+ "react-dom": ">=16.9.0"
+ }
+ },
+ "node_modules/@rc-component/table": {
+ "version": "1.12.0",
+ "resolved": "https://registry.npmjs.org/@rc-component/table/-/table-1.12.0.tgz",
+ "integrity": "sha512-uyrnUDucOKR7BeXRtw3v2CM/LkuXjbvFhM1+HFdUc11Vkfc4aEXgHjPXvi6jKK8NuS3Yt4wMgBuLVIRTPJoqwQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@rc-component/context": "^2.0.1",
+ "@rc-component/resize-observer": "^1.0.0",
+ "@rc-component/util": "^1.11.1",
+ "@rc-component/virtual-list": "^1.0.1",
+ "clsx": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=8.x"
+ },
+ "peerDependencies": {
+ "react": ">=18.0.0",
+ "react-dom": ">=18.0.0"
+ }
+ },
+ "node_modules/@rc-component/tabs": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/@rc-component/tabs/-/tabs-2.0.0.tgz",
+ "integrity": "sha512-gpknpprmgyPXdDJ4TJ2NIVNbHc+S43bb4G1iAESq5DYCQwT6zGURWE/1uGtCoyQBZ+ySk2Tx+fekpbw9GafvoQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@rc-component/dropdown": "~2.0.0",
+ "@rc-component/menu": "~1.6.0",
+ "@rc-component/motion": "^1.1.3",
+ "@rc-component/resize-observer": "^1.0.0",
+ "@rc-component/util": "^1.13.0",
+ "clsx": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=8.x"
+ },
+ "peerDependencies": {
+ "react": ">=16.9.0",
+ "react-dom": ">=16.9.0"
+ }
+ },
+ "node_modules/@rc-component/tooltip": {
+ "version": "1.5.2",
+ "resolved": "https://registry.npmjs.org/@rc-component/tooltip/-/tooltip-1.5.2.tgz",
+ "integrity": "sha512-VLq4BclU3LgRe46g2hTr2bdsM8tFYs7dVwpuD88rPNNg4lCGe8mBSS4FiRzYzS+ffnZ46y4SI8KYKo9K7qBnhw==",
+ "license": "MIT",
+ "dependencies": {
+ "@rc-component/trigger": "^3.10.0",
+ "@rc-component/util": "^1.11.1",
+ "clsx": "^2.1.1"
+ },
+ "peerDependencies": {
+ "react": ">=18.0.0",
+ "react-dom": ">=18.0.0"
+ }
+ },
+ "node_modules/@rc-component/tour": {
+ "version": "2.4.1",
+ "resolved": "https://registry.npmjs.org/@rc-component/tour/-/tour-2.4.1.tgz",
+ "integrity": "sha512-E+4eLtT48an4wZaBHftLx277z4GHAyKn+XsfkEmSD2nFKk4lJdQBayYlsxwCpj4RAIbOx9BBikEI5Bf+K4LlCw==",
+ "license": "MIT",
+ "dependencies": {
+ "@rc-component/portal": "^2.2.0",
+ "@rc-component/trigger": "^3.0.0",
+ "@rc-component/util": "^1.13.0",
+ "clsx": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=8.x"
+ },
+ "peerDependencies": {
+ "react": ">=16.9.0",
+ "react-dom": ">=16.9.0"
+ }
+ },
+ "node_modules/@rc-component/tree": {
+ "version": "1.5.3",
+ "resolved": "https://registry.npmjs.org/@rc-component/tree/-/tree-1.5.3.tgz",
+ "integrity": "sha512-Uk4AFu3FQg+WfeFa+KtfQtuQmgV6Wc+ZQdeJeOpsJyu65bcGAp43PiHlx9xhW06BS+OUyzUc0pvwM9PqFZvB+Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@rc-component/motion": "^1.0.0",
+ "@rc-component/util": "^1.13.0",
+ "@rc-component/virtual-list": "^1.2.0",
+ "clsx": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=10.x"
+ },
+ "peerDependencies": {
+ "react": "*",
+ "react-dom": "*"
+ }
+ },
+ "node_modules/@rc-component/tree-select": {
+ "version": "1.19.0",
+ "resolved": "https://registry.npmjs.org/@rc-component/tree-select/-/tree-select-1.19.0.tgz",
+ "integrity": "sha512-LlZTsnShZkSJpOJ7XuLmhSNUqyaYl1OUbdRzdgaqcyZyYydOyWb8GC0wxHMeyL3qau3kNg/r3fo6gqASHQ2uog==",
+ "license": "MIT",
+ "dependencies": {
+ "@rc-component/select": "~1.12.0",
+ "@rc-component/tree": "~1.5.3",
+ "@rc-component/util": "^1.14.0",
+ "clsx": "^2.1.1"
+ },
+ "peerDependencies": {
+ "react": "*",
+ "react-dom": "*"
+ }
+ },
+ "node_modules/@rc-component/trigger": {
+ "version": "3.10.1",
+ "resolved": "https://registry.npmjs.org/@rc-component/trigger/-/trigger-3.10.1.tgz",
+ "integrity": "sha512-mXlDN0IXdtV8Yqqm8195ECCyrbmfvvfKvwVvSlH0+qvKD6BUF8gRhEjSy0FOcD1+CcDRHgTiX99LoxfQrmh3Cw==",
+ "license": "MIT",
+ "dependencies": {
+ "@rc-component/motion": "^1.3.3",
+ "@rc-component/portal": "^2.2.1",
+ "@rc-component/resize-observer": "^1.1.2",
+ "@rc-component/util": "^1.11.1",
+ "clsx": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=8.x"
+ },
+ "peerDependencies": {
+ "react": ">=18.0.0",
+ "react-dom": ">=18.0.0"
+ }
+ },
+ "node_modules/@rc-component/upload": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/@rc-component/upload/-/upload-1.1.1.tgz",
+ "integrity": "sha512-GvYWSKeaJTOxxC5p6+nOSadzfvXA1h8C/iHFPFZX+szH3JUXrvs+DLiW8YUTBgvMh8m63mJeHrlYlJzAlg+pDA==",
+ "license": "MIT",
+ "dependencies": {
+ "@rc-component/util": "^1.11.1",
+ "clsx": "^2.1.1"
+ },
+ "peerDependencies": {
+ "react": ">=16.9.0",
+ "react-dom": ">=16.9.0"
+ }
+ },
+ "node_modules/@rc-component/util": {
+ "version": "1.14.1",
+ "resolved": "https://registry.npmjs.org/@rc-component/util/-/util-1.14.1.tgz",
+ "integrity": "sha512-pyCKpJ+L2EcNspFpKBG10C1dyMv0w9FzcM+gM3FK4h6/NtMZzdimr5iYDR8ptfp4wJj9lnYHg3OTvLVE1EuTbQ==",
+ "license": "MIT",
+ "dependencies": {
+ "is-mobile": "^5.0.0",
+ "react-is": "^19.2.7"
+ },
+ "peerDependencies": {
+ "react": ">=18.0.0",
+ "react-dom": ">=18.0.0"
+ }
+ },
+ "node_modules/@rc-component/virtual-list": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/@rc-component/virtual-list/-/virtual-list-1.6.0.tgz",
+ "integrity": "sha512-aHPlTWVtfgDmzb4oJNrqBW1yeEdFeIS28EoJLQ/dGBgZPRlrQ84c2Rk/Il6JxDUV5P7FDtNFD0aXc7EB22kR3Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^8.0.0",
+ "@rc-component/resize-observer": "^1.0.1",
+ "@rc-component/util": "^1.4.0",
+ "clsx": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=8.x"
+ },
+ "peerDependencies": {
+ "react": ">=18.0.0",
+ "react-dom": ">=18.0.0"
+ }
+ },
+ "node_modules/@rc-component/virtual-list/node_modules/@babel/runtime": {
+ "version": "8.1.3",
+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-8.1.3.tgz",
+ "integrity": "sha512-tno/enifiFAE77kbJadRE5wKfmzxlYvdB5Dj8yqmWoT49mDJE+wvLgvJY/EKt/jQllv369GMxyyJ9tKfTL33Nw==",
+ "license": "MIT"
+ },
"node_modules/@rolldown/binding-android-arm-eabi": {
"version": "1.2.16",
"resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.16.tgz",
@@ -3587,6 +4426,70 @@
"url": "https://github.com/sponsors/epoberezkin"
}
},
+ "node_modules/antd": {
+ "version": "6.7.2",
+ "resolved": "https://registry.npmjs.org/antd/-/antd-6.7.2.tgz",
+ "integrity": "sha512-pOYblXwhVNTUMpRcp2765YYW4i8aq8s3SOZYlP0I/ALI7l9zynXCfofLn+oaEezQeZlvFQFJXXmzK4qr0dXHLw==",
+ "license": "MIT",
+ "dependencies": {
+ "@ant-design/colors": "^8.0.1",
+ "@ant-design/cssinjs": "~2.1.2",
+ "@ant-design/cssinjs-utils": "^2.1.2",
+ "@ant-design/fast-color": "^3.0.1",
+ "@ant-design/icons": "^6.3.4",
+ "@ant-design/react-slick": "~2.0.0",
+ "@babel/runtime": "^7.29.2",
+ "@rc-component/cascader": "~1.26.0",
+ "@rc-component/checkbox": "~2.0.0",
+ "@rc-component/collapse": "~1.3.0",
+ "@rc-component/color-picker": "~3.1.1",
+ "@rc-component/dialog": "~1.10.0",
+ "@rc-component/drawer": "~1.4.3",
+ "@rc-component/dropdown": "~2.0.1",
+ "@rc-component/form": "~1.8.6",
+ "@rc-component/image": "~1.10.0",
+ "@rc-component/input": "~1.4.1",
+ "@rc-component/input-number": "~1.8.0",
+ "@rc-component/listy": "~1.4.0",
+ "@rc-component/mentions": "~1.14.1",
+ "@rc-component/menu": "~1.6.2",
+ "@rc-component/motion": "^1.4.0",
+ "@rc-component/mutate-observer": "^2.0.1",
+ "@rc-component/notification": "~2.1.1",
+ "@rc-component/pagination": "~1.7.0",
+ "@rc-component/picker": "~1.17.0",
+ "@rc-component/progress": "~1.1.0",
+ "@rc-component/qrcode": "~2.0.0",
+ "@rc-component/rate": "~1.0.1",
+ "@rc-component/resize-observer": "^1.1.2",
+ "@rc-component/segmented": "~1.4.0",
+ "@rc-component/select": "~1.12.0",
+ "@rc-component/slider": "~1.2.1",
+ "@rc-component/steps": "~1.2.3",
+ "@rc-component/switch": "~1.0.3",
+ "@rc-component/table": "~1.12.0",
+ "@rc-component/tabs": "~2.0.0",
+ "@rc-component/tooltip": "~1.5.2",
+ "@rc-component/tour": "~2.4.0",
+ "@rc-component/tree": "~1.5.3",
+ "@rc-component/tree-select": "~1.19.0",
+ "@rc-component/trigger": "^3.10.1",
+ "@rc-component/upload": "~1.1.1",
+ "@rc-component/util": "^1.14.1",
+ "clsx": "^2.1.1",
+ "dayjs": "^1.11.11",
+ "scroll-into-view-if-needed": "^3.2.1",
+ "throttle-debounce": "^5.0.2"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/ant-design"
+ },
+ "peerDependencies": {
+ "react": ">=18.0.0",
+ "react-dom": ">=18.0.0"
+ }
+ },
"node_modules/array-buffer-byte-length": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.2.tgz",
@@ -3919,6 +4822,15 @@
"url": "https://github.com/sponsors/wooorm"
}
},
+ "node_modules/clsx": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz",
+ "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
"node_modules/codemirror": {
"version": "6.0.2",
"resolved": "https://registry.npmjs.org/codemirror/-/codemirror-6.0.2.tgz",
@@ -3961,6 +4873,12 @@
"node": ">=4.0.0"
}
},
+ "node_modules/compute-scroll-into-view": {
+ "version": "3.2.2",
+ "resolved": "https://registry.npmjs.org/compute-scroll-into-view/-/compute-scroll-into-view-3.2.2.tgz",
+ "integrity": "sha512-X+jf3y2j3TbtxA3fq3/kBNiSnD1QlIChiIQdAc2Yo1LtOc0yjO1TzgxWJf8PwtKPGgSvSfWUlVvrb7vGx1eYWA==",
+ "license": "MIT"
+ },
"node_modules/convert-source-map": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",
@@ -4076,6 +4994,12 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/dayjs": {
+ "version": "1.11.23",
+ "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.23.tgz",
+ "integrity": "sha512-QDTCU0M0MxR3hQfnlDJfwekQiaanm1ubOD231u73WBckQ/fsamwRLiE2GBz6D3a/xF1NgfiDLJjXBa1hYOYTtQ==",
+ "license": "MIT"
+ },
"node_modules/debug": {
"version": "4.4.3",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
@@ -5226,6 +6150,12 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/is-mobile": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/is-mobile/-/is-mobile-5.0.0.tgz",
+ "integrity": "sha512-Tz/yndySvLAEXh+Uk8liFCxOwVH6YutuR74utvOcu7I9Di+DwM0mtdPVZNaVvvBUM2OXxne/NhOs1zAO7riusQ==",
+ "license": "MIT"
+ },
"node_modules/is-module": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz",
@@ -5528,6 +6458,15 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/json2mq": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/json2mq/-/json2mq-0.2.0.tgz",
+ "integrity": "sha512-SzoRg7ux5DWTII9J2qkrZrqV1gt+rTaoufMxEzXbS26Uid0NwaJd123HcoB80TgubEppxxIGdNxCx50fEoEWQA==",
+ "license": "MIT",
+ "dependencies": {
+ "string-convert": "^0.2.0"
+ }
+ },
"node_modules/json5": {
"version": "2.2.3",
"resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
@@ -7081,6 +8020,12 @@
"react": "^19.3.1"
}
},
+ "node_modules/react-is": {
+ "version": "19.3.1",
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-19.3.1.tgz",
+ "integrity": "sha512-RRieF6IyxQBkcK6pP8xOHprLTPW6QjRkbGdImtqNme+/hYVwCZkLQLdlZGOhUqXwkS9IEynaGvPJtv6XB/cz0Q==",
+ "license": "MIT"
+ },
"node_modules/react-markdown": {
"version": "10.1.0",
"resolved": "https://registry.npmjs.org/react-markdown/-/react-markdown-10.1.0.tgz",
@@ -7466,6 +8411,15 @@
"integrity": "sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==",
"license": "MIT"
},
+ "node_modules/scroll-into-view-if-needed": {
+ "version": "3.2.1",
+ "resolved": "https://registry.npmjs.org/scroll-into-view-if-needed/-/scroll-into-view-if-needed-3.2.1.tgz",
+ "integrity": "sha512-dgeJvJhSV9MY6hyhtsivbSxHoZVm+lumsWTObtUdAchJflwOGmKKHNkEpU8pVYMomZ8h/yrfzVQkcPlObQNDWQ==",
+ "license": "MIT",
+ "dependencies": {
+ "compute-scroll-into-view": "^3.2.2"
+ }
+ },
"node_modules/semver": {
"version": "6.3.2",
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.2.tgz",
@@ -7722,6 +8676,12 @@
"node": ">= 0.4"
}
},
+ "node_modules/string-convert": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/string-convert/-/string-convert-0.2.1.tgz",
+ "integrity": "sha512-u/1tdPl4yQnPBjnVrmdLo9gtuLvELKsAoRapekWggdiQNvvvum+jYF329d84NAa660KQw7pB2n36KrIKVoXa3A==",
+ "license": "MIT"
+ },
"node_modules/string.prototype.matchall": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.1.0.tgz",
@@ -7864,6 +8824,12 @@
"inline-style-parser": "0.2.9"
}
},
+ "node_modules/stylis": {
+ "version": "4.4.0",
+ "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.4.0.tgz",
+ "integrity": "sha512-5Z9ZpRzfuH6l/UAvCPAPUo3665Nk2wLaZU3x+TLHKVzIz33+sbJqbtrYoC3KD4/uVOr2Zp+L0LySezP9OHV9yA==",
+ "license": "MIT"
+ },
"node_modules/supports-preserve-symlinks-flag": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",
@@ -7931,6 +8897,15 @@
"integrity": "sha512-Qiu7R+Cmh8CstZsY1uJOSWnVlfo7ZtNLV7mF8Jltk3LB3AtDu9cRZlcnRKkAk8Y4z6KKw35z7Y7Urd7jWY8etA==",
"license": "MIT"
},
+ "node_modules/throttle-debounce": {
+ "version": "5.0.2",
+ "resolved": "https://registry.npmjs.org/throttle-debounce/-/throttle-debounce-5.0.2.tgz",
+ "integrity": "sha512-B71/4oyj61iNH0KeCamLuE2rmKuTO5byTOSVwECM5FA7TiAiAW+UqTKZ9ERueC4qvgSttUhdmq1mXC3kJqGX7A==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=12.22"
+ }
+ },
"node_modules/tinyglobby": {
"version": "0.2.17",
"resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz",
diff --git a/web/package.json b/web/package.json
index a2d346e..25d6ada 100644
--- a/web/package.json
+++ b/web/package.json
@@ -21,6 +21,7 @@
"@xterm/addon-fit": "^0.11.0",
"@xterm/addon-web-links": "^0.12.0",
"@xterm/xterm": "^6.0.0",
+ "antd": "^6.7.2",
"codemirror": "^6.0.2",
"occt-import-js": "^0.0.23",
"react": "^19.3.1",
diff --git a/web/src/components/ChatSkills.tsx b/web/src/components/ChatSkills.tsx
index f227271..09ae425 100644
--- a/web/src/components/ChatSkills.tsx
+++ b/web/src/components/ChatSkills.tsx
@@ -1,3 +1,5 @@
+import { Button, Checkbox, Input } from "antd";
+import { Modal } from "../ui/Modal";
import { useState } from "react";
import { patch } from "../api";
import { toast } from "../dialogs";
@@ -38,8 +40,7 @@ export function ChatSkillsDialog({ sessionId, cwd, active, onClose }: { sessionI
};
return (
-
-
e.stopPropagation()}>
+
{t("skills.chatTitle")}
{t("skills.chatHint")}
@@ -50,31 +51,29 @@ export function ChatSkillsDialog({ sessionId, cwd, active, onClose }: { sessionI
{t("skills.empty")}
) : (
<>
- {all.length > 6 &&
setFilter(e.target.value)} />}
+ {all.length > 6 &&
setFilter(e.target.value)} />}
{shown.map((s) => (
-
- toggle(s.name)} />
+ toggle(s.name)}>
{s.name}
{s.files.length > 0 && · {t("skills.files", { n: s.files.length })} }
{s.description}
-
+
))}
{picked.length > 4 &&
{t("skills.manyActive")}
}
>
)}
-
+
{t("common.cancel")}
-
- void save()} disabled={busy}>
+
+ void save()} disabled={busy}>
{busy ? : } {t("common.save")}
-
+
-
-
+
);
}
diff --git a/web/src/components/ChatTabs.tsx b/web/src/components/ChatTabs.tsx
index 8ffa11e..6a2bdf2 100644
--- a/web/src/components/ChatTabs.tsx
+++ b/web/src/components/ChatTabs.tsx
@@ -1,3 +1,4 @@
+import { Button } from "antd";
import { lazy, Suspense, useCallback, useEffect, useRef, useState } from "react";
import { del, get, post, put } from "../api";
import { confirmDialog, toast } from "../dialogs";
@@ -132,30 +133,30 @@ export function ChatTabBar({ state }: { state: Tabs }) {
{terms.map((x, i) => (
- setTab(x.id)} title={x.cwd}>
+ setTab(x.id)} title={x.cwd}>
{t("terminal.tab", { n: i + 1 })}
-
- void closeTerminal(x, i + 1)} aria-label={t("terminal.close")} title={t("terminal.close")}>
+
+ void closeTerminal(x, i + 1)} aria-label={t("terminal.close")} title={t("terminal.close")}>
-
+
))}
{files.map((f) => (
- setTab(f.id)} title={f.dir}>
+ setTab(f.id)} title={f.dir}>
{basename(f.dir)}
-
- closeFiles(f.id)} aria-label={t("files.closeTab")} title={t("files.closeTab")}>
+
+ closeFiles(f.id)} aria-label={t("files.closeTab")} title={t("files.closeTab")}>
-
+
))}
-
void openTerminal()} title={t("terminal.new")} aria-label={t("terminal.new")}>
+ void openTerminal()} title={t("terminal.new")} aria-label={t("terminal.new")}>
-
-
+
+
-
+
);
}
diff --git a/web/src/components/ChatView.tsx b/web/src/components/ChatView.tsx
index fd20829..7e175c0 100644
--- a/web/src/components/ChatView.tsx
+++ b/web/src/components/ChatView.tsx
@@ -1,3 +1,4 @@
+import { Button, Input } from "antd";
import { DraftBar, IssueBar, isDraftChat, isIssueChat } from "./FactoryDraft";
import { takePrefill } from "../share";
import { Icon } from "./Icon";
@@ -201,21 +202,21 @@ function ChatSearch({ sessionId, onPick, onClose }: { sessionId: string; onPick:
- setQ(e.target.value)} onKeyDown={(e) => e.key === "Escape" && onClose()} aria-label={t("chat.search")} />
-
+ setQ(e.target.value)} onKeyDown={(e) => e.key === "Escape" && onClose()} aria-label={t("chat.search")} />
+
-
+
{hits && (
{hits.length ? t("chat.searchHits", { n: hits.length }) : t("chat.searchNone")}
{hits.map((h) => (
-
onPick(h.id)}>
+ onPick(h.id)}>
{t(h.role === "assistant" ? "chat.agent" : "chat.you")} · {new Date(h.created_at).toLocaleString(undefined, { dateStyle: "short", timeStyle: "short" })}
{h.snippet}
-
+
))}
)}
@@ -535,9 +536,9 @@ function OlderLoader({ sessionId, afterSummary, scrollRef }: { sessionId: string
{loading ? (
) : (
-
void load()}>
+ void load()}>
{t(afterSummary ? "chat.showBeforeSummary" : "chat.loadOlder")}
-
+
)}
);
@@ -719,6 +720,9 @@ export function ChatView({ sessionId, onMenu, onClosePane }: { sessionId: string
return () => ro.disconnect();
}, [hasSession, sessionId]);
+ // Before the early returns: a chat that is deleted while open must render the same hooks.
+ const [rewinding, setRewinding] = useState();
+
if (loadError) return {loadError}
;
if (!session) return {t("common.loading")}
;
@@ -762,7 +766,6 @@ export function ChatView({ sessionId, onMenu, onClosePane }: { sessionId: string
};
- const [rewinding, setRewinding] = useState();
const rewind = (m: Message) => setRewinding(m);
rewindRef.current = rewind;
const rewindDone = async () => {
@@ -834,9 +837,9 @@ export function ChatView({ sessionId, onMenu, onClosePane }: { sessionId: string
return (
-
+
-
+
!readOnly && setEditingTitle(true)} title={readOnly ? undefined : t("chat.renameHint")}>
{session.parent_id && (
@@ -847,9 +850,9 @@ export function ChatView({ sessionId, onMenu, onClosePane }: { sessionId: string
{session.icon && }
{session.title || t("session.untitled")}
{!readOnly && (
- setEditingTitle(true)} title={t("rename.title")} aria-label={t("rename.title")}>
+ setEditingTitle(true)} title={t("rename.title")} aria-label={t("rename.title")}>
-
+
)}
{session.cwd}
@@ -886,27 +889,27 @@ export function ChatView({ sessionId, onMenu, onClosePane }: { sessionId: string
{!readOnly && (
<>
{!session.parent_id && (
-
setSharing(true)} title={t("share.title")}>
+ setSharing(true)} title={t("share.title")}>
-
+
)}
-
void tabs.openTerminal()}
title={t("terminal.here")}
>
-
-
setSearching(!searching)} title={t("chat.search")} aria-label={t("chat.search")}>
+
+
setSearching(!searching)} title={t("chat.search")} aria-label={t("chat.search")}>
-
-
+
+
-
+
{!session.parent_id && (
-
+
-
+
)}
@@ -1021,18 +1024,18 @@ export function ChatView({ sessionId, onMenu, onClosePane }: { sessionId: string
)}
-
post(`/sessions/${sessionId}/compact`).catch((e) => toast(e.message))} disabled={busy} title={t("command.compact")}>
+ post(`/sessions/${sessionId}/compact`).catch((e) => toast(e.message))} disabled={busy} title={t("command.compact")}>
-
-
+
+
-
+
>
)}
{onClosePane && (
-
+
-
+
)}
{gallery && (
@@ -1124,33 +1127,32 @@ export function ChatView({ sessionId, onMenu, onClosePane }: { sessionId: string
{errors?.map((e) => (
{e.message}
- dismissError(sessionId, e.id)} aria-label={t("common.close")}>
+ dismissError(sessionId, e.id)} aria-label={t("common.close")}>
-
+
))}
{session.agent === "plan" && !busy && lastIsAssistant && (
- {
await update({ agent: "build" });
await send(t("plan.implementPrompt"), []);
}}
>
{t("plan.implement")}
-
+
)}
{(!following || scrolled) && (
-
+
-
- {!following &&
+
+ {!following &&
- }
+ }
)}
diff --git a/web/src/components/Composer.tsx b/web/src/components/Composer.tsx
index 64d4fb6..f5f5d41 100644
--- a/web/src/components/Composer.tsx
+++ b/web/src/components/Composer.tsx
@@ -1,3 +1,5 @@
+import { Button, Segmented } from "antd";
+import { Select } from "../ui/Select";
import { TemplatePicker } from "./TemplatePicker";
import { Icon } from "./Icon";
import { formatSize, imageSrc } from "./FileFigure";
@@ -296,9 +298,9 @@ export function Composer({
{f.name}
{formatSize(f.size)}
- removeFile(f.path)} aria-label={t("common.remove")}>
+ removeFile(f.path)} aria-label={t("common.remove")}>
-
+
))}
{uploading > 0 && (
@@ -309,9 +311,9 @@ export function Composer({
{images.map((img, i) => (
-
setImages((cur) => cur.filter((_, j) => j !== i))} aria-label={t("common.remove")}>
+ setImages((cur) => cur.filter((_, j) => j !== i))} aria-label={t("common.remove")}>
-
+
))}
@@ -352,7 +354,7 @@ export function Composer({
/>
-
onUpdate({ agent: e.target.value })}
@@ -365,18 +367,21 @@ export function Composer({
{a.name}
))}
-
+
{session.agent === "craft" && (
-
- onUpdate({ clean_room: true })}>
- {t("craft.cleanRoom")}
-
- onUpdate({ clean_room: false })}>
- {t("craft.deep")}
-
-
+
onUpdate({ clean_room: v === "clean" })}
+ options={[
+ { value: "clean", label: t("craft.cleanRoom") },
+ { value: "deep", label: t("craft.deep") },
+ ]}
+ />
)}
- onUpdate({ permission_mode: e.target.value as Session["permission_mode"] })}
title={t("composer.permissionMode")}
@@ -385,12 +390,12 @@ export function Composer({
{t("permissionMode.default")}
{t("permissionMode.accept_edits")}
{t("permissionMode.bypass")}
-
+
onUpdate({ model: m })} title={t("composer.model")} />
{reasoning && }
- setPicker(true)} title={t("templates.title")}>
+ setPicker(true)} title={t("templates.title")}>
-
+
{picker && (
setPicker(false)}
@@ -401,15 +406,15 @@ export function Composer({
}}
/>
)}
- setPreview(!preview)}
aria-pressed={preview}
title={t(preview ? "composer.previewEdit" : "composer.preview")}
>
-
+
setText(text ? `${text.replace(/\s+$/, "")} ${d}` : d)} onInterim={setInterim} />
@@ -418,13 +423,13 @@ export function Composer({
{busy && (
-
+
{t("composer.stop")}
-
+
)}
- send()} disabled={uploading > 0 || (!text.trim() && images.length === 0 && files.length === 0)}>
+ send()} disabled={uploading > 0 || (!text.trim() && images.length === 0 && files.length === 0)}>
{busy ? t("composer.queue") : t("composer.send")}
-
+
diff --git a/web/src/components/CronBuilder.tsx b/web/src/components/CronBuilder.tsx
index 80a14ed..7b86809 100644
--- a/web/src/components/CronBuilder.tsx
+++ b/web/src/components/CronBuilder.tsx
@@ -1,3 +1,5 @@
+import { Button, Input } from "antd";
+import { Select } from "../ui/Select";
import { useEffect, useState } from "react";
import { get } from "../api";
import { getLang, useT } from "../i18n";
@@ -132,44 +134,44 @@ export function CronBuilder({ value, onChange }: { value: string; onChange: (cro
{modes.map((m) => (
- set({ mode: m })}>
+ set({ mode: m })}>
{t(`cron.mode.${m}` as const)}
-
+
))}
{s.mode === "minutes" && (
{t("cron.every")}
- set({ every: Number(e.target.value) })}>
+ set({ every: Number(e.target.value) })}>
{MINUTE_STEPS.map((n) => (
{n}
))}
-
+
{t("cron.minutes")}
)}
{s.mode === "hourly" && (
{t("cron.atMinute")}
- set({ minute: Math.min(59, Math.max(0, Number(e.target.value) || 0)) })} />
+ set({ minute: Math.min(59, Math.max(0, Number(e.target.value) || 0)) })} />
)}
{s.mode === "weekly" && (
{WEEK.map((d) => (
-
set({ days: s.days.includes(d) ? s.days.filter((x) => x !== d) : [...s.days, d] })}
>
{dayName(d, "short")}
-
+
))}
set({ days: [1, 2, 3, 4, 5] })}>
{t("cron.workdays")}
@@ -179,24 +181,24 @@ export function CronBuilder({ value, onChange }: { value: string; onChange: (cro
{s.mode === "monthly" && (
{t("cron.onDay")}
- set({ dom: Number(e.target.value) })}>
+ set({ dom: Number(e.target.value) })}>
{Array.from({ length: 31 }, (_, i) => i + 1).map((d) => (
{d}.
))}
-
+
)}
{(s.mode === "daily" || s.mode === "weekly" || s.mode === "monthly") && (
{t("cron.at")}
- e.target.value && set({ time: e.target.value })} />
+ e.target.value && set({ time: e.target.value })} />
)}
{s.mode === "custom" && (
- set({ custom: e.target.value })} />
+ set({ custom: e.target.value })} />
{t("cron.customHint")}
)}
diff --git a/web/src/components/Diff.tsx b/web/src/components/Diff.tsx
index 1bc1eb4..a7e95a6 100644
--- a/web/src/components/Diff.tsx
+++ b/web/src/components/Diff.tsx
@@ -1,3 +1,4 @@
+import { Checkbox } from "antd";
export function Diff({ diff }: { diff: string }) {
const lines = diff.replace(/\n+$/, "").split("\n");
return (
@@ -43,10 +44,9 @@ export function HunkDiff({ diff, selected, onToggle }: { diff: string; selected:
))}
{hunks.map((h, i) => (
-
- onToggle(i)} />
+ onToggle(i)}>
{h[0]}
-
+
{h.slice(1).map((l, j) => (
{l || " "}
diff --git a/web/src/components/Factory.tsx b/web/src/components/Factory.tsx
index b1ba928..e101342 100644
--- a/web/src/components/Factory.tsx
+++ b/web/src/components/Factory.tsx
@@ -1,3 +1,5 @@
+import { Button, Checkbox, Input, Segmented } from "antd";
+import { Select } from "../ui/Select";
import { useEffect, useMemo, useState } from "react";
import { get, post, put } from "../api";
import { fmtCompact, fmtCost, fmtRelative, useT } from "../i18n";
@@ -166,19 +168,17 @@ export function Factory({ onMenu, overlayId }: { onMenu: () => void; overlayId?:
return (
<>
-
+
-
+
{t("factory.title")}
-
- {(["overview", "settings"] as const).map((x) => (
- setTab(x)}>
- {t(`factory.tab.${x}` as any)}
-
- ))}
-
+
setTab(x)}
+ options={(["overview", "settings"] as const).map((x) => ({ value: x, label: t(`factory.tab.${x}` as any) }))}
+ />
@@ -373,13 +373,13 @@ function FactoryOverview({ onSettings }: { onSettings: () => void }) {
{recreate &&
setRecreate(false)} />}
{t("factory.empty")}
-
+
{t("factory.newProject")}
-
- setRecreate(true)} disabled={busy}>
+
+ setRecreate(true)} disabled={busy}>
{t("recreate.button")}
-
- {t("factory.tab.settings")}
+
+ {t("factory.tab.settings")}
);
@@ -515,7 +515,7 @@ function FactoryOverview({ onSettings }: { onSettings: () => void }) {
- setRepo(e.target.value)} aria-label={t("factory.project")}>
+ setRepo(e.target.value)} aria-label={t("factory.project")}>
{t("factory.allRepos")} ({data.issues.length})
@@ -525,7 +525,7 @@ function FactoryOverview({ onSettings }: { onSettings: () => void }) {
{r.version ? ` · v${r.version}` : ""} ({data.issues.filter((i) => i.repo === r.url).length}){r.enabled ? "" : " – off"}
))}
-
+
{(() => {
const r = data.repos.find((x) => x.url === repo);
if (!r) return null;
@@ -542,24 +542,24 @@ function FactoryOverview({ onSettings }: { onSettings: () => void }) {
);
})()}
-
+
{t("factory.newProject")}
-
- setRecreate(true)} disabled={busy} title={t("recreate.hint")}>
+
+ setRecreate(true)} disabled={busy} title={t("recreate.hint")}>
{t("recreate.button")}
-
- issueChat("feature")} disabled={busy} title={t("issues.featureHint")}>
+
+ issueChat("feature")} disabled={busy} title={t("issues.featureHint")}>
{t("issues.feature")}
-
- issueChat("slice")} disabled={busy} title={t("issues.sliceHint")}>
+
+ issueChat("slice")} disabled={busy} title={t("issues.sliceHint")}>
{t("issues.slice")}
-
-
+
+
{t("release.button")}
-
-
+
+
{t("factory.pollNow")}
-
+
@@ -568,9 +568,9 @@ function FactoryOverview({ onSettings }: { onSettings: () => void }) {
{t("factory.col.backlog")}
{backlogShown.length}
{backlogShown.length > 1 && (
-
void enqueue(backlogShown.filter((i) => i.allowed))} disabled={busy || !backlogShown.some((i) => i.allowed)} title={t("factory.backlog.queueAllHint")}>
+ void enqueue(backlogShown.filter((i) => i.allowed))} disabled={busy || !backlogShown.some((i) => i.allowed)} title={t("factory.backlog.queueAllHint")}>
{t("factory.backlog.queueAll")}
-
+
)}
{backlogShown.map((i) => (
@@ -580,9 +580,9 @@ function FactoryOverview({ onSettings }: { onSettings: () => void }) {
{i.title || `#${i.number}`}
-
void enqueue([i])} disabled={busy || !i.allowed} title={i.allowed ? t("factory.backlog.queueHint") : t("factory.backlog.notAllowed", { user: i.author })}>
+ void enqueue([i])} disabled={busy || !i.allowed} title={i.allowed ? t("factory.backlog.queueHint") : t("factory.backlog.notAllowed", { user: i.author })}>
{t("factory.backlog.queue")}
-
+
))}
{backlogShown.length === 0 &&
{t("factory.backlog.empty")} }
@@ -677,26 +677,26 @@ function FactoryOverview({ onSettings }: { onSettings: () => void }) {
{selected && !phaseRunning && (
<>
{t("factory.restartAt")}
-
restart("new")} disabled={busy}>
+ restart("new")} disabled={busy}>
{t("factory.col.review")}
-
- restart("approved")} disabled={busy}>
+
+ restart("approved")} disabled={busy}>
{t("factory.col.build")}
-
- restart("qa")} disabled={busy || !selected.branch}>
+
+ restart("qa")} disabled={busy || !selected.branch}>
{t("factory.col.qa")}
-
+
>
)}
{selected && !["review", "building", "testing"].includes(selected.state) && (
-
+
{t("factory.remove")}
-
+
)}
{selected && selected.state === "done" && selected.merged && (
-
+
{t("factory.close")}
-
+
)}
{selected && (
<>
@@ -728,16 +728,16 @@ function FactoryOverview({ onSettings }: { onSettings: () => void }) {
{pr.state === "open" && selected?.state === "done" && (
<>
-
setPrMethod(e.target.value)} disabled={busy}>
+ setPrMethod(e.target.value)} disabled={busy}>
{["merge", "squash", "rebase"].map((m) => (
{t(`factory.merge.${m}` as any)}
))}
-
-
+
+
{t("factory.mergeBtn")}
-
+
>
)}
@@ -785,9 +785,9 @@ function FactoryOverview({ onSettings }: { onSettings: () => void }) {
{fmtCost(r.cost, "USD")}
- openFactoryChat(r.session_id)}>
+ openFactoryChat(r.session_id)}>
{t("factory.openChat")}
-
+
))}
@@ -825,14 +825,14 @@ function PhaseSkills({ value, onChange }: { value: string[]; onChange: (v: strin
))}
{rest.length > 0 && value.length < 10 && (
-
e.target.value && onChange([...value, e.target.value])}>
+ e.target.value && onChange([...value, e.target.value])}>
{t("factory.skillAdd")}
{rest.map((s) => (
{s.name}
))}
-
+
)}
{t("factory.skillsHint")}
@@ -851,33 +851,33 @@ function PhaseForm({ phase, value, onChange }: { phase: Phase; value: PhaseCfg;
{t("factory.agent")}
- onChange({ agent: e.target.value })}>
+ onChange({ agent: e.target.value })}>
CodeCraft
Claude Code
-
+
{t("factory.mode")}
- onChange({ permission_mode: e.target.value })}>
+ onChange({ permission_mode: e.target.value })}>
{MODES.map((m) => (
{t(`permissionMode.${m}` as any)}
))}
-
+
{t("factory.timeout")}
- onChange({ timeout_minutes: Number(e.target.value) || 60 })} />
+ onChange({ timeout_minutes: Number(e.target.value) || 60 })} />
{t("factory.attempts")}
- onChange({ max_attempts: Math.max(1, Number(e.target.value) || 1) })} />
+ onChange({ max_attempts: Math.max(1, Number(e.target.value) || 1) })} />
onChange({ skills })} />
{t("factory.extraPrompt")}
-
);
@@ -933,8 +933,7 @@ function FactorySettings() {
{c.name || KIND_NAME[c.kind]}
-
act(`c${i}`, async () => {
@@ -947,9 +946,8 @@ function FactorySettings() {
}
>
{busy === `c${i}` ? : } {t("factory.testConn")}
-
-
+ {
@@ -957,35 +955,35 @@ function FactorySettings() {
}}
>
-
+
{t("factory.connName")}
- upConn(i, { name: e.target.value })} />
+ upConn(i, { name: e.target.value })} />
{t("factory.kind")}
- upConn(i, { kind: e.target.value as Connection["kind"] })}>
+ upConn(i, { kind: e.target.value as Connection["kind"] })}>
{Object.entries(KIND_NAME).map(([k, n]) => (
{n}
))}
-
+
{t("factory.serviceUrl")}
- upConn(i, { url: e.target.value })} />
+ upConn(i, { url: e.target.value })} />
{t("factory.token")}
- upConn(i, { token: e.target.value })} onFocus={(e) => c.token.startsWith("•") && e.currentTarget.select()} />
+ upConn(i, { token: e.target.value })} onFocus={(e) => c.token.startsWith("•") && e.currentTarget.select()} />
{c.token.startsWith("•") ? t("factory.tokenSet") : t(`factory.tokenHint.${c.kind}` as any)}
{t("factory.defaultOwner")}
- upConn(i, { owner: e.target.value })} />
+ upConn(i, { owner: e.target.value })} />
{(orgs[c.id] ?? []).map((o) => (
@@ -995,9 +993,9 @@ function FactorySettings() {
))}
-
setConns([...conns, blankConn()])}>
+ setConns([...conns, blankConn()])}>
{t("factory.addConn")}
-
+
{t("factory.defaults")}
{t("factory.defaultsHint")}
@@ -1020,12 +1018,10 @@ function FactorySettings() {
{r.url ? repoName(r.url) : t("factory.newRepo")}
{KIND_NAME[conns.find((c) => c.id === r.connection)?.kind ?? r.kind] ?? r.kind}
-
- up(i, { enabled: e.target.checked })} />
+ up(i, { enabled: e.target.checked })}>
{t(r.enabled ? "jobs.on" : "jobs.off")}
-
-
+
act(`t${i}`, async () => {
@@ -1036,9 +1032,8 @@ function FactorySettings() {
}
>
{busy === `t${i}` ? : } {t("factory.test")}
-
-
+ {
@@ -1046,12 +1041,12 @@ function FactorySettings() {
}}
>
-
+
{t("factory.connection")}
- up(i, { connection: e.target.value, kind: conns.find((c) => c.id === e.target.value)?.kind ?? r.kind })}
>
@@ -1063,44 +1058,44 @@ function FactorySettings() {
{c.name || KIND_NAME[c.kind]}
))}
-
+
{!r.connection && (
{t("factory.kind")}
- up(i, { kind: e.target.value })}>
+ up(i, { kind: e.target.value })}>
{Object.entries(KIND_NAME).map(([k, n]) => (
{n}
))}
-
+
)}
{t("factory.url")}
- up(i, { url: e.target.value })} />
+ up(i, { url: e.target.value })} />
{t("factory.repoToken")}
- up(i, { token: e.target.value })} onFocus={(e) => r.token.startsWith("•") && e.currentTarget.select()} />
+ up(i, { token: e.target.value })} onFocus={(e) => r.token.startsWith("•") && e.currentTarget.select()} />
{r.token.startsWith("•") ? t("factory.tokenSet") : t("factory.repoTokenHint")}
{t("factory.label")}
- up(i, { label: e.target.value })} />
+ up(i, { label: e.target.value })} />
{t("factory.parallel")}
- up(i, { max_parallel: Number(e.target.value) || 1 })} />
+ up(i, { max_parallel: Number(e.target.value) || 1 })} />
{t("factory.rework")}
- up(i, { max_rework: Math.max(0, Number(e.target.value) || 0) })} />
+ up(i, { max_rework: Math.max(0, Number(e.target.value) || 0) })} />
{t("factory.allowed")}
- up(i, { allowed_users: e.target.value.split(",").map((u) => u.trim()).filter(Boolean) })} />
+ up(i, { allowed_users: e.target.value.split(",").map((u) => u.trim()).filter(Boolean) })} />
@@ -1111,11 +1106,10 @@ function FactorySettings() {
))}
- setRepos([...repos, blankRepo(conns.find((c) => c.id)?.id ?? "", conns.find((c) => c.id)?.kind ?? "gitea")])}>
+ setRepos([...repos, blankRepo(conns.find((c) => c.id)?.id ?? "", conns.find((c) => c.id)?.kind ?? "gitea")])}>
{t("factory.addRepo")}
-
-
+
act("save", async () => {
@@ -1125,7 +1119,7 @@ function FactorySettings() {
}
>
{busy === "save" ? : } {t("common.save")}
-
+
>
);
diff --git a/web/src/components/FactoryChat.tsx b/web/src/components/FactoryChat.tsx
index 5b88500..ade17ba 100644
--- a/web/src/components/FactoryChat.tsx
+++ b/web/src/components/FactoryChat.tsx
@@ -1,3 +1,4 @@
+import { Button } from "antd";
import { useEffect } from "react";
import { navigate } from "../router";
import { useT } from "../i18n";
@@ -20,7 +21,7 @@ export function ChatOverlay({ id }: { id: string }) {
// Esc closes – unless it is meant for a field, a dialog or the image viewer on top.
const el = document.activeElement;
const typing = el instanceof HTMLTextAreaElement || el instanceof HTMLInputElement || el instanceof HTMLSelectElement;
- if (e.key === "Escape" && !typing && !document.querySelector(".modal-backdrop, .viewer-overlay")) close();
+ if (e.key === "Escape" && !typing && !document.querySelector(".ant-modal-wrap, .modal-backdrop, .viewer-overlay")) close();
};
window.addEventListener("keydown", onKey);
return () => window.removeEventListener("keydown", onKey);
@@ -31,12 +32,12 @@ export function ChatOverlay({ id }: { id: string }) {
{t("factory.chatOverlay")}
- navigate(`/s/${id}`)} title={t("factory.openFullHint")}>
+ navigate(`/s/${id}`)} title={t("factory.openFullHint")}>
{t("factory.openFull")}
-
-
+
+
{t("common.close")}
-
+
diff --git a/web/src/components/FactoryDraft.tsx b/web/src/components/FactoryDraft.tsx
index 30de751..c3cda81 100644
--- a/web/src/components/FactoryDraft.tsx
+++ b/web/src/components/FactoryDraft.tsx
@@ -1,3 +1,6 @@
+import { Button, Checkbox, Input } from "antd";
+import { Modal } from "../ui/Modal";
+import { Select } from "../ui/Select";
import { useEffect, useState } from "react";
import { get, post } from "../api";
import { useT } from "../i18n";
@@ -38,9 +41,9 @@ export function DraftBar({ sessionId }: { sessionId: string }) {
{t("draft.hint")}
- setOpen(true)}>
+ setOpen(true)}>
{t("draft.create")}
-
+
{open &&
setOpen(false)} />}
>
@@ -77,11 +80,9 @@ function CreateProjectDialog({ sessionId, onClose }: { sessionId: string; onClos
if (!draft)
return (
-
+
);
const conn = draft.connections.find((c) => c.id === connection);
@@ -102,8 +103,7 @@ function CreateProjectDialog({ sessionId, onClose }: { sessionId: string; onClos
};
return (
-
-
e.stopPropagation()}>
+
{t("draft.create")}
{draft.connections.length === 0 ? (
@@ -119,7 +119,7 @@ function CreateProjectDialog({ sessionId, onClose }: { sessionId: string; onClos
{t("draft.name")}
- {
@@ -130,7 +130,7 @@ function CreateProjectDialog({ sessionId, onClose }: { sessionId: string; onClos
{t("draft.slug")}
- {
@@ -141,11 +141,11 @@ function CreateProjectDialog({ sessionId, onClose }: { sessionId: string; onClos
{t("draft.description")}
- setDescription(e.target.value)} />
+ setDescription(e.target.value)} />
{t("draft.connection")}
- {
setConnection(e.target.value);
@@ -157,11 +157,11 @@ function CreateProjectDialog({ sessionId, onClose }: { sessionId: string; onClos
{c.name || c.kind} ({c.kind})
))}
-
+
{t("draft.owner")}
- setOwner(e.target.value)} />
+ setOwner(e.target.value)} />
@@ -174,15 +174,14 @@ function CreateProjectDialog({ sessionId, onClose }: { sessionId: string; onClos
>
)}
-
+
{t("common.cancel")}
-
-
+
+
{busy ? : } {t("draft.createGo")}
-
+
-
-
+
);
}
@@ -209,9 +208,9 @@ export function IssueBar({ sessionId }: { sessionId: string }) {
{t("issues.hint")}
-
setOpen(true)}>
+ setOpen(true)}>
{t("issues.create")}
-
+
{open &&
setOpen(false)} />}
>
@@ -241,11 +240,9 @@ function CreateIssuesDialog({ sessionId, onClose }: { sessionId: string; onClose
if (!data)
return (
-
+
);
const chosen = items.filter((i) => i.on && i.title.trim());
@@ -268,8 +265,7 @@ function CreateIssuesDialog({ sessionId, onClose }: { sessionId: string; onClose
};
return (
-
+
);
}
@@ -339,14 +332,13 @@ export function RecreateDialog({ onClose }: { onClose: () => void }) {
};
return (
-
+
);
}
diff --git a/web/src/components/FactoryRelease.tsx b/web/src/components/FactoryRelease.tsx
index 5371221..1acc91b 100644
--- a/web/src/components/FactoryRelease.tsx
+++ b/web/src/components/FactoryRelease.tsx
@@ -1,3 +1,5 @@
+import { Button, Input } from "antd";
+import { Modal } from "../ui/Modal";
import { useEffect, useState } from "react";
import { get, post } from "../api";
import { fmtRelative, useT } from "../i18n";
@@ -46,11 +48,9 @@ export function ReleaseDialog({ repo, onClose, onStarted }: { repo: string; onCl
if (!pv)
return (
-
+
);
const start = async () => {
@@ -67,15 +67,14 @@ export function ReleaseDialog({ repo, onClose, onStarted }: { repo: string; onCl
};
return (
-
+
);
}
diff --git a/web/src/components/FilePreview.tsx b/web/src/components/FilePreview.tsx
index a5bb608..db4e78f 100644
--- a/web/src/components/FilePreview.tsx
+++ b/web/src/components/FilePreview.tsx
@@ -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 (
-
setPage(page - 1)}>
+ setPage(page - 1)}>
‹
-
+
{t("preview.page", { n: page, total: pages ?? "…" })}
-
= pages} onClick={() => setPage(page + 1)}>
+ = pages} onClick={() => setPage(page + 1)}>
›
-
+
{t("preview.openBrowser")}
@@ -74,13 +75,12 @@ function DocPreview({ path }: { path: string }) {
const s = data.sheets?.[sheet];
return (
-
- {data.sheets?.map((x, i) => (
- setSheet(i)}>
- {x.name}
-
- ))}
-
+
({ value: i, label: x.name })) ?? []}
+ />
{s && (
diff --git a/web/src/components/Files.tsx b/web/src/components/Files.tsx
index ab062f0..47eca4c 100644
--- a/web/src/components/Files.tsx
+++ b/web/src/components/Files.tsx
@@ -1,3 +1,5 @@
+import { Button, Input, Segmented } from "antd";
+import { Select } from "../ui/Select";
import { uploadBatch } from "../uploads";
import { Icon } from "./Icon";
import { lazy, Suspense, useCallback, useEffect, useMemo, useRef, useState } from "react";
@@ -260,39 +262,39 @@ export function Files({ onMenu, embed }: { onMenu?: () => void; embed?: FilesEmb
>
{roots.length > 1 && (
- { const v = e.target.value; void confirmDiscard().then((ok): unknown => ok && load(v)); }} aria-label={t("images.folder")}>
+ { const v = e.target.value; void confirmDiscard().then((ok): unknown => ok && load(v)); }} aria-label={t("images.folder")}>
{roots.map((r) => (
{r.name}
))}
-
+
)}
- setSearch(e.target.value)} />
- newEntry(false)}>
+ setSearch(e.target.value)} />
+ newEntry(false)}>
-
- newEntry(true)}>
+
+ newEntry(true)}>
-
- uploadRef.current?.click()}>
+
+ uploadRef.current?.click()}>
-
+
e.target.files && upload(e.target.files)} />
- setHidden(!hidden)}>
+ setHidden(!hidden)}>
.*
-
+
-
listing?.parent && void confirmDiscard().then((ok): unknown => ok && load(listing.parent!))}
title={t("files.up")}
aria-label={t("files.up")}
>
-
+
{crumbs.map((c, i) => {
const path = i === 0 ? c : `${crumbs[0]}/${crumbs.slice(1, i + 1).join("/")}`;
return (
@@ -341,18 +343,18 @@ export function Files({ onMenu, embed }: { onMenu?: () => void; embed?: FilesEmb
{e.is_dir && (
-
void chatHere(e)}>{t("files.chatHere")}
+
void chatHere(e)}>{t("files.chatHere")}
)}
-
rename(e)}>{t("files.rename")}
-
duplicate(e)}>{t("files.duplicate")}
+
rename(e)}>{t("files.rename")}
+
duplicate(e)}>{t("files.duplicate")}
{!e.is_dir && (
{t("files.download")}
)}
-
remove(e)}>
+ remove(e)}>
{t("common.delete")}
-
+
@@ -371,9 +373,9 @@ export function Files({ onMenu, embed }: { onMenu?: () => void; embed?: FilesEmb
return (
- setMobileEditor(false)}>
+ setMobileEditor(false)}>
-
+
{pane.title}
{pane.diff ?
:
{t("git.noDiff")}
}
@@ -387,25 +389,25 @@ export function Files({ onMenu, embed }: { onMenu?: () => void; embed?: FilesEmb
return (
-
void confirmDiscard().then((ok): unknown => ok && setMobileEditor(false))}>
+ void confirmDiscard().then((ok): unknown => ok && setMobileEditor(false))}>
-
+
{baseName(f.path)}
{dirty && }
{(isMd || isImage) && !f.preview && (
-
setPreview(!preview)}>
+ setPreview(!preview)}>
{preview ? t("files.edit") : t("files.preview")}
-
+
)}
{!f.binary && (
-
save()}>
+ save()}>
{t("common.save")}
-
+
)}
{f.preview ? (
@@ -439,23 +441,23 @@ export function Files({ onMenu, embed }: { onMenu?: () => void; embed?: FilesEmb
<>
{!embed && (
-
+
-
+
)}
{!embed &&
{t("nav.files")} }
{listing?.path}
{listing?.repo && (
-
- setTab("files")}>
- {t("files.tabFiles")}
-
- setTab("git")}>
- Git{git && git.files.length > 0 ? ` (${git.files.length})` : ""}
-
-
+
setTab(v)}
+ options={[
+ { value: "files" as const, label: t("files.tabFiles") },
+ { value: "git" as const, label: `Git${git && git.files.length > 0 ? ` (${git.files.length})` : ""}` },
+ ]}
+ />
)}
@@ -473,11 +475,10 @@ export function Files({ onMenu, embed }: { onMenu?: () => void; embed?: FilesEmb
)}
{!listing?.repo && listing && (
- act(() => post("/git", { path: listing.path, action: "init" }))}>
+ act(() => post("/git", { path: listing.path, action: "init" }))}>
{t("git.init")}
-
-
+ {
const url = await promptDialog({ message: t("git.cloneUrl"), placeholder: "https://…/repo.git" });
if (!url) return;
@@ -486,7 +487,7 @@ export function Files({ onMenu, embed }: { onMenu?: () => void; embed?: FilesEmb
}}
>
{t("git.clone")}
-
+
)}
diff --git a/web/src/components/GitPanel.tsx b/web/src/components/GitPanel.tsx
index e48a1b5..d14c0a5 100644
--- a/web/src/components/GitPanel.tsx
+++ b/web/src/components/GitPanel.tsx
@@ -1,3 +1,5 @@
+import { Button, Checkbox, Input, Segmented } from "antd";
+import { Select } from "../ui/Select";
import { Icon } from "./Icon";
import { useEffect, useState } from "react";
import { post } from "../api";
@@ -101,26 +103,26 @@ export function GitPanel({
return (
{LABEL[code] ?? code}
- diff(f, isStaged)} title={f.path}>
+ diff(f, isStaged)} title={f.path}>
{f.path}
-
- openFile(abs(f))}>
+
+ openFile(abs(f))}>
-
+
{isStaged ? (
- run("unstage", () => call("unstage", { files: [abs(f)] }))}>
+ run("unstage", () => call("unstage", { files: [abs(f)] }))}>
-
+
) : (
<>
{f.index !== "?" && (
- void confirmDialog({ message: t("git.discardConfirm", { file: f.path }), danger: true, confirmLabel: t("git.discard") }).then((ok): unknown => ok && run("discard", () => call("discard", { files: [abs(f)] })))}>
+ void confirmDialog({ message: t("git.discardConfirm", { file: f.path }), danger: true, confirmLabel: t("git.discard") }).then((ok): unknown => ok && run("discard", () => call("discard", { files: [abs(f)] })))}>
-
+
)}
- run("stage", () => call("stage", { files: [abs(f)] }))}>
+ run("stage", () => call("stage", { files: [abs(f)] }))}>
+
-
+
>
)}
@@ -130,7 +132,7 @@ export function GitPanel({
return (
- b.current)?.name ?? status.branch ?? ""}
onChange={(e) => run("checkout", () => call("checkout", { branch: e.target.value.replace(/^origin\//, "") }), true)}
aria-label={t("git.branch")}
@@ -141,9 +143,8 @@ export function GitPanel({
{b.name}
))}
-
-
+ {
const name = await promptDialog({ message: t("git.newBranchName"), placeholder: "feature/…" });
@@ -151,7 +152,7 @@ export function GitPanel({
}}
>
+
-
+
{status.upstream && (
{status.ahead} {status.behind}
@@ -159,21 +160,22 @@ export function GitPanel({
)}
{(["fetch", "pull", "push"] as const).map((a) => (
- run(a, () => call(a), true)}>
+ run(a, () => call(a), true)}>
{busy === a ? : t(`git.${a}`)}
-
+
))}
{output &&
{output.text} }
-
- setView("changes")}>
- {t("git.changes")} ({status.files.length})
-
- setView("history")}>
- {t("git.history")}
-
-
+
setView(v)}
+ options={[
+ { value: "changes" as const, label: `${t("git.changes")} (${status.files.length})` },
+ { value: "history" as const, label: t("git.history") },
+ ]}
+ />
{view === "changes" ? (
<>
@@ -181,9 +183,9 @@ export function GitPanel({
{t("git.staged")} ({staged.length})
{staged.length > 0 && (
- run("unstage", () => call("unstage", { files: staged.map(abs) }))}>
+ run("unstage", () => call("unstage", { files: staged.map(abs) }))}>
{t("git.unstageAll")}
-
+
)}
{staged.map((f) => fileRow(f, true))}
@@ -192,30 +194,28 @@ export function GitPanel({
{t("git.unstaged")} ({unstaged.length})
{unstaged.length > 0 && (
- run("stage", () => call("stage", { files: unstaged.map(abs) }))}>
+ run("stage", () => call("stage", { files: unstaged.map(abs) }))}>
{t("git.stageAll")}
-
+
)}
{unstaged.map((f) => fileRow(f, false))}
{status.files.length === 0 && {t("git.clean")}
}
>
diff --git a/web/src/components/ImageAnnotator.tsx b/web/src/components/ImageAnnotator.tsx
index e6ffda1..6786851 100644
--- a/web/src/components/ImageAnnotator.tsx
+++ b/web/src/components/ImageAnnotator.tsx
@@ -1,3 +1,4 @@
+import { Button } from "antd";
import { useEffect, useRef, useState } from "react";
import { useT } from "../i18n";
import { toast } from "../dialogs";
@@ -135,25 +136,25 @@ export function ImageAnnotator({ src, name, onDone, onCancel }: { src: string; n
/>
{(["pen", "arrow", "rect"] as Tool[]).map((k) => (
- setTool(k)} aria-pressed={tool === k} title={t(`viewer.tool.${k}` as const)}>
+ setTool(k)} aria-pressed={tool === k} title={t(`viewer.tool.${k}` as const)}>
-
+
))}
{COLORS.map((c) => (
setColor(c)} aria-label={c} aria-pressed={c === color} />
))}
- setShapes((s) => s.slice(0, -1))} disabled={!shapes.length} title={t("viewer.undo")} aria-label={t("viewer.undo")}>
+ setShapes((s) => s.slice(0, -1))} disabled={!shapes.length} title={t("viewer.undo")} aria-label={t("viewer.undo")}>
-
+
-
+
{t("common.cancel")}
-
-
+
+
{t("viewer.attach")}
-
+
);
diff --git a/web/src/components/ImageViewer.tsx b/web/src/components/ImageViewer.tsx
index 82036d0..630c734 100644
--- a/web/src/components/ImageViewer.tsx
+++ b/web/src/components/ImageViewer.tsx
@@ -1,3 +1,4 @@
+import { Button } from "antd";
import { useCallback, useEffect, useRef, useState } from "react";
import { Icon } from "./Icon";
import { ImageAnnotator } from "./ImageAnnotator";
@@ -139,12 +140,12 @@ export function ImageViewer() {
{cur.alt && !/^(image|SVG)$/i.test(cur.alt) ? cur.alt : ""}
{sessionId && (
<>
-
setMarking(true)} title={t("viewer.annotate")} aria-label={t("viewer.annotate")}>
+ setMarking(true)} title={t("viewer.annotate")} aria-label={t("viewer.annotate")}>
-
- void useInChat()} title={t("viewer.useInChat")} aria-label={t("viewer.useInChat")}>
+
+ void useInChat()} title={t("viewer.useInChat")} aria-label={t("viewer.useInChat")}>
-
+
>
)}
@@ -153,9 +154,9 @@ export function ImageViewer() {
-
+
-
+
{marking && (
void }) {
return (
<>
-
+
-
+
{t("nav.images")}
@@ -74,7 +76,7 @@ export function Images({ onMenu }: { onMenu: () => void }) {
{cfg && !cfg.enabled &&
{t("images.disabled")}
}
@@ -144,15 +146,15 @@ export function Images({ onMenu }: { onMenu: () => void }) {
-
setForm({ ...form, prompt: img.prompt, model: img.model })}>
+ setForm({ ...form, prompt: img.prompt, model: img.model })}>
-
- navigator.clipboard?.writeText(img.path)}>
+
+ navigator.clipboard?.writeText(img.path)}>
-
- void confirmDialog({ message: t("images.deleteConfirm"), danger: true, confirmLabel: t("common.delete") }).then((ok): unknown => ok && del(`/images/${img.id}`).then(reload))}>
+
+ void confirmDialog({ message: t("images.deleteConfirm"), danger: true, confirmLabel: t("common.delete") }).then((ok): unknown => ok && del(`/images/${img.id}`).then(reload))}>
-
+
diff --git a/web/src/components/InstructionsDialog.tsx b/web/src/components/InstructionsDialog.tsx
index 90ba8f5..4bf2357 100644
--- a/web/src/components/InstructionsDialog.tsx
+++ b/web/src/components/InstructionsDialog.tsx
@@ -1,3 +1,5 @@
+import { Button, Input } from "antd";
+import { Modal } from "../ui/Modal";
import { useState } from "react";
import { patch } from "../api";
import { useT } from "../i18n";
@@ -21,13 +23,12 @@ export function InstructionsDialog({ sessionId, value, onClose }: { sessionId: s
};
return (
-
-
e.stopPropagation()}>
+
{t("instructions.title")}
{t("instructions.hint")}
- }
{value && (
- void save("")} disabled={busy}>
+ void save("")} disabled={busy}>
{t("instructions.clear")}
-
+
)}
- {t("common.cancel")}
- void save(text)} disabled={busy || text.trim() === value.trim()}>
+ {t("common.cancel")}
+ void save(text)} disabled={busy || text.trim() === value.trim()}>
{t("common.save")}
-
+
-
-
+
);
}
diff --git a/web/src/components/Interaction.tsx b/web/src/components/Interaction.tsx
index f6c577a..b3f62b9 100644
--- a/web/src/components/Interaction.tsx
+++ b/web/src/components/Interaction.tsx
@@ -1,3 +1,4 @@
+import { Button, Input } from "antd";
import { Icon } from "./Icon";
import { useState } from "react";
import { post } from "../api";
@@ -98,12 +99,12 @@ export function PermissionCard({ req, currentId }: { req: PermissionRequest; cur
{explanation}
) : (
-
+
{explaining ? t("permission.explaining") : t("permission.explain")}
-
+
)}
{explainError && {explainError}
}
- e.key === "Enter" && reply("reject")}
/>
- 1 && chosen === 0)} onClick={() => reply("once")} autoFocus>
+ 1 && chosen === 0)} onClick={() => reply("once")} autoFocus>
{partial ? t("permission.applySelected", { k: chosen, n: hunkCount }) : t("permission.allowOnce")}
-
- reply("always")}>
+
+ reply("always")}>
{alwaysLabel}
-
+
{!dangerous && (
- reply("project")} title={t("permission.projectHint")}>
+ reply("project")} title={t("permission.projectHint")}>
{projectLabel}
-
+
)}
- reply("reject")}>
+ reply("reject")}>
{feedback ? t("permission.rejectWithFeedback") : t("permission.reject")}
-
+
);
@@ -194,7 +195,7 @@ export function QuestionCard({ req, currentId }: { req: QuestionRequest; current
);
diff --git a/web/src/components/JobEditor.tsx b/web/src/components/JobEditor.tsx
index cb61a9f..3e52360 100644
--- a/web/src/components/JobEditor.tsx
+++ b/web/src/components/JobEditor.tsx
@@ -1,3 +1,5 @@
+import { Button, Checkbox, Input, Segmented } from "antd";
+import { Select } from "../ui/Select";
import { lazy, Suspense, useCallback, useEffect, useRef, useState } from "react";
import { ApiError, get, patch, post, put } from "../api";
import { confirmDialog, toast } from "../dialogs";
@@ -174,35 +176,42 @@ export function JobEditor({ id, onMenu }: { id: string; onMenu: () => void }) {
return (
<>
-
+
-
-
+
+
-
+
{settings.name || t("nav.jobs")}
{job.path}
-
- void setEnabled(e.target.checked)} />
+ void setEnabled(e.target.checked)}>
{t(job.enabled ? "jobs.on" : "jobs.off")}
-
-
+
+
{t("jobs.runNow")}
-
- void save()}>
+
+ void save()}>
{saving ? : } {t("common.save")}
-
+
-
- {(["prompt", "settings", "assistant"] as Tab[]).map((x) => (
-
setTab(x)}>
- {t(`jobEditor.tab.${x}` as const)}
- {x === "prompt" && fileDirty && " •"}
- {x === "settings" && settingsDirty && " •"}
-
- ))}
+
+
+ block
+ value={tab}
+ onChange={setTab}
+ options={(["prompt", "settings", "assistant"] as Tab[]).map((x) => ({
+ value: x,
+ label: (
+ <>
+ {t(`jobEditor.tab.${x}` as const)}
+ {x === "prompt" && fileDirty && " •"}
+ {x === "settings" && settingsDirty && " •"}
+ >
+ ),
+ }))}
+ />
@@ -210,7 +219,7 @@ export function JobEditor({ id, onMenu }: { id: string; onMenu: () => void }) {
{t("jobs.tplName")}
- up({ name: e.target.value })} />
+ up({ name: e.target.value })} />
@@ -233,19 +242,19 @@ export function JobEditor({ id, onMenu }: { id: string; onMenu: () => void }) {
{t("jobs.tplMode")}
- up({ agent: e.target.value })}>
+ up({ agent: e.target.value })}>
build
plan
-
+
{t("jobs.permissionMode")}
- up({ permission_mode: e.target.value })}>
+ up({ permission_mode: e.target.value })}>
{t("permissionMode.default")}
{t("permissionMode.auto")}
{t("permissionMode.accept_edits")}
{t("permissionMode.bypass")}
-
+
{t("composer.model")}
@@ -253,13 +262,12 @@ export function JobEditor({ id, onMenu }: { id: string; onMenu: () => void }) {
{t("jobEditor.timeout")}
- up({ timeout_minutes: Math.max(1, Number(e.target.value) || 60) })} />
+ up({ timeout_minutes: Math.max(1, Number(e.target.value) || 60) })} />
-
- up({ notify: e.target.checked })} />
+ up({ notify: e.target.checked })}>
{t("jobEditor.notify")}
-
+
{settings.permission_mode !== "bypass" && {t("jobEditor.bypassHint")}
}
@@ -270,9 +278,9 @@ export function JobEditor({ id, onMenu }: { id: string; onMenu: () => void }) {
{changedOnDisk && (
{t("jobEditor.changedOnDisk")}{" "}
- void loadFile(job.path)}>
+ void loadFile(job.path)}>
{t("jobEditor.reload")}
-
+
)}
{job.error && !job.error.includes("empty") && {job.error}
}
@@ -292,9 +300,9 @@ export function JobEditor({ id, onMenu }: { id: string; onMenu: () => void }) {
{t("jobEditor.assistantIntro")}
-
+
{t("jobEditor.assistantStart")}
-
+
)}
diff --git a/web/src/components/Jobs.tsx b/web/src/components/Jobs.tsx
index d075382..a3f81d1 100644
--- a/web/src/components/Jobs.tsx
+++ b/web/src/components/Jobs.tsx
@@ -1,3 +1,4 @@
+import { Button, Checkbox, Input } from "antd";
import { useEffect, useState } from "react";
import { del, get, patch, post } from "../api";
import { fmtRelative, useT } from "../i18n";
@@ -56,9 +57,9 @@ export function Jobs({ onMenu }: { onMenu: () => void }) {
return (
<>
-
+
-
+
{t("nav.jobs")}
@@ -67,9 +68,9 @@ export function Jobs({ onMenu }: { onMenu: () => void }) {
{t("jobs.intro")}
- setTemplates(true)}>
+ setTemplates(true)}>
{t("jobs.new")}
-
+
{templates &&
setTemplates(false)} />}
{!jobs &&
}
@@ -86,10 +87,9 @@ export function Jobs({ onMenu }: { onMenu: () => void }) {
{j.path}
-
- act(j.id, () => patch(`/jobs/${j.id}`, { enabled: e.target.checked }))} />
+ act(j.id, () => patch(`/jobs/${j.id}`, { enabled: e.target.checked }))}>
{t(j.enabled ? "jobs.on" : "jobs.off")}
-
+
{j.error ? (
{j.error}
@@ -126,8 +126,7 @@ export function Jobs({ onMenu }: { onMenu: () => void }) {
{t("jobs.webhook")}: {j.webhook ? t("jobs.on") : t("jobs.off")}
-
act(j.id, async () => {
const r = await post<{ url?: string; secret?: string }>(`/jobs/${j.id}/webhook`, { enable: !j.webhook });
@@ -136,10 +135,9 @@ export function Jobs({ onMenu }: { onMenu: () => void }) {
}
>
{j.webhook ? t("jobs.webhookOff") : t("jobs.webhookOn")}
-
+
{j.webhook && (
-
act(j.id, async () => {
const r = await post<{ url: string; secret: string }>(`/jobs/${j.id}/webhook`, { enable: true });
@@ -148,7 +146,7 @@ export function Jobs({ onMenu }: { onMenu: () => void }) {
}
>
{t("jobs.webhookRenew")}
-
+
)}
{hook?.id === j.id && (
@@ -161,24 +159,23 @@ export function Jobs({ onMenu }: { onMenu: () => void }) {
)}
- act(j.id, async () => {
+ act(j.id, async () => {
const r = await post<{ session_id: string }>(`/jobs/${j.id}/run`, {});
navigate(`/s/${r.session_id}`);
})}>
{busy === j.id ? : } {t("jobs.runNow")}
-
- navigate(`/jobs/${j.id}`)}>
+
+ navigate(`/jobs/${j.id}`)}>
{t("jobs.edit")}
-
+
- {
if (await confirmDialog({ message: t("jobs.deleteConfirm", { name: j.spec?.name ?? j.path }), danger: true })) void act(j.id, () => del(`/jobs/${j.id}`));
}}
>
{t("jobs.remove")}
-
+
))}
@@ -186,14 +183,14 @@ export function Jobs({ onMenu }: { onMenu: () => void }) {
{t("jobs.register")}
{t("jobs.registerHint")}
- setPath(e.target.value)} />
- act("new", async () => {
+ setPath(e.target.value)} />
+ act("new", async () => {
const j = await post("/jobs", { path: path.trim() });
setPath("");
navigate(`/jobs/${j.id}`);
})}>
{t("jobs.registerBtn")}
-
+
diff --git a/web/src/components/Login.tsx b/web/src/components/Login.tsx
index 8e31889..77b4659 100644
--- a/web/src/components/Login.tsx
+++ b/web/src/components/Login.tsx
@@ -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 }
CodeCraft
{setup ? t("login.setupPrompt") : t("login.prompt")}
- {setup && }
-
-
- {setup && }
+ {setup && }
+
+
+ {setup && }
{error && {error}
}
-
+
{setup ? t("login.createAdmin") : t("login.submit")}
-
+
{!setup && info.oidc && (
<>
{t("login.or")}
diff --git a/web/src/components/Markdown.tsx b/web/src/components/Markdown.tsx
index 7635423..09397eb 100644
--- a/web/src/components/Markdown.tsx
+++ b/web/src/components/Markdown.tsx
@@ -1,3 +1,4 @@
+import { Button } from "antd";
import { Icon } from "./Icon";
import { memo, useState, type ReactNode } from "react";
import ReactMarkdown from "react-markdown";
@@ -36,9 +37,9 @@ export function SvgBlock({ code, children }: { code: string; children?: ReactNod
- setShowCode(!showCode)}>
+ setShowCode(!showCode)}>
SVG
-
+
{showCode && children}
);
diff --git a/web/src/components/MediaGallery.tsx b/web/src/components/MediaGallery.tsx
index d5f6822..4d3fb84 100644
--- a/web/src/components/MediaGallery.tsx
+++ b/web/src/components/MediaGallery.tsx
@@ -1,3 +1,5 @@
+import { Button } from "antd";
+import { Modal } from "../ui/Modal";
import { useEffect, useState } from "react";
import { get } from "../api";
import { useT, type Key } from "../i18n";
@@ -58,22 +60,21 @@ export function MediaGallery({ sessionId, onClose, onJump }: { sessionId: string
}, [current, shown.length, onClose]);
return (
-
-
e.stopPropagation()}>
+
{t("media.title")}
{(["all", "image", "video", "audio", "model"] as Filter[]).map((k) => (
- (setFilter(k), setOpen(undefined))} disabled={!!items && count(k) === 0 && k !== "all"}>
+ (setFilter(k), setOpen(undefined))} disabled={!!items && count(k) === 0 && k !== "all"}>
{t(`media.filter.${k}` as Key)} {items && {count(k)} }
-
+
))}
-
+
-
+
{error && {error}
}
{!items && !error && (
@@ -92,34 +93,34 @@ export function MediaGallery({ sessionId, onClose, onJump }: { sessionId: string
{current.preview ?
:
}
{current.path && (
-
open3d(current.path!)}>
+ open3d(current.path!)}>
{t("tool.open3d")}
-
+
)}
)}
-
setOpen((o) => (o ?? 1) - 1)} aria-label={t("media.prev")}>
+ setOpen((o) => (o ?? 1) - 1)} aria-label={t("media.prev")}>
-
+
{current.name} · {t(`media.source.${current.source}` as Key)} · {new Date(current.created_at).toLocaleString(undefined, { dateStyle: "short", timeStyle: "short" })}
{current.message_id && (
-
onJump(current.message_id!)}>
+ onJump(current.message_id!)}>
{t("media.showInChat")}
-
+
)}
{t("media.open")}
-
setOpen((o) => (o ?? 0) + 1)} aria-label={t("media.next")}>
+ setOpen((o) => (o ?? 0) + 1)} aria-label={t("media.next")}>
-
- setOpen(undefined)} aria-label={t("media.back")}>
+
+ setOpen(undefined)} aria-label={t("media.back")}>
-
+
) : (
@@ -149,7 +150,6 @@ export function MediaGallery({ sessionId, onClose, onJump }: { sessionId: string
))}
)}
-
-
+
);
}
diff --git a/web/src/components/ModelSelect.tsx b/web/src/components/ModelSelect.tsx
index 3a65991..31dd396 100644
--- a/web/src/components/ModelSelect.tsx
+++ b/web/src/components/ModelSelect.tsx
@@ -1,3 +1,4 @@
+import { Select } from "../ui/Select";
import { useModels, modelOptions } from "../hooks";
/** Model picker; keeps unknown current values selectable. */
@@ -5,7 +6,7 @@ export function ModelSelect({ value, onChange, title, emptyLabel }: { value: str
const options = modelOptions(useModels());
const known = options.some((o) => o.value === value);
return (
- onChange(e.target.value)} title={title}>
+ onChange(e.target.value)} title={title}>
{emptyLabel !== undefined && {emptyLabel} }
{!known && value && {value} }
{options.map((o) => (
@@ -13,6 +14,6 @@ export function ModelSelect({ value, onChange, title, emptyLabel }: { value: str
{o.label}
))}
-
+
);
}
diff --git a/web/src/components/NewJobDialog.tsx b/web/src/components/NewJobDialog.tsx
index 9577128..9dbb257 100644
--- a/web/src/components/NewJobDialog.tsx
+++ b/web/src/components/NewJobDialog.tsx
@@ -1,3 +1,5 @@
+import { Button, Input } from "antd";
+import { Modal } from "../ui/Modal";
import { useState } from "react";
import { post } from "../api";
import { getLang, useT } from "../i18n";
@@ -82,12 +84,11 @@ export function NewJobDialog({ onClose }: { onClose: () => void }) {
};
return (
-
+
);
}
diff --git a/web/src/components/NewSession.tsx b/web/src/components/NewSession.tsx
index ea60906..5431a87 100644
--- a/web/src/components/NewSession.tsx
+++ b/web/src/components/NewSession.tsx
@@ -1,3 +1,5 @@
+import { Button, Checkbox, Input, Segmented } from "antd";
+import { Select } from "../ui/Select";
import { Icon } from "./Icon";
import { useEffect, useMemo, useRef, useState, type ReactNode } from "react";
import { post } from "../api";
@@ -353,9 +355,9 @@ export function NewSession({ onMenu, onCreated }: { onMenu: () => void; onCreate
return (
<>
-
+
-
+
{t("new.title")}
@@ -433,9 +435,9 @@ export function NewSession({ onMenu, onCreated }: { onMenu: () => void; onCreate
) : (
-
setOriginals((c) => c.filter((_, j) => j !== i))} aria-label={t("common.remove")}>
+ setOriginals((c) => c.filter((_, j) => j !== i))} aria-label={t("common.remove")}>
-
+
)}
))}
@@ -446,7 +448,7 @@ export function NewSession({ onMenu, onCreated }: { onMenu: () => void; onCreate
{needsUrl && (
- void; onCreate
void addFiles(e.dataTransfer.files);
}}
>
-
)}
- setName(e.target.value)} />
- setScope(e.target.value as "full" | "read")}>
+ setName(e.target.value)} />
+ setScope(e.target.value as "full" | "read")}>
{t("tokens.scopeFull")}
{t("tokens.scopeRead")}
-
- setDays(e.target.value)}>
+
+ setDays(e.target.value)}>
{t("tokens.noExpiry")}
30 {t("tokens.days")}
90 {t("tokens.days")}
365 {t("tokens.days")}
-
-
+
+
{t("tokens.create")}
-
+
);
diff --git a/web/src/components/settings/Audit.tsx b/web/src/components/settings/Audit.tsx
index 0461be2..a7a6537 100644
--- a/web/src/components/settings/Audit.tsx
+++ b/web/src/components/settings/Audit.tsx
@@ -1,3 +1,5 @@
+import { Button } from "antd";
+import { Select } from "../../ui/Select";
import { useState } from "react";
import { useFetch } from "../../hooks";
import { fmtDate, useT } from "../../i18n";
@@ -24,17 +26,17 @@ export function Audit() {
{t("audit.title")}
- setFilter(e.target.value)}>
+ setFilter(e.target.value)}>
{t("audit.all")}
{["login", "permission", "config", "user", "folder", "session", "git", "backup"].map((a) => (
{a}
))}
-
-
+
+
-
+
diff --git a/web/src/components/settings/Backups.tsx b/web/src/components/settings/Backups.tsx
index be47c44..fbb4df5 100644
--- a/web/src/components/settings/Backups.tsx
+++ b/web/src/components/settings/Backups.tsx
@@ -1,3 +1,4 @@
+import { Button, Checkbox, Input } from "antd";
import { uploadBatch } from "../../uploads";
import { useEffect, useRef, useState } from "react";
import { api, get, patch, post } from "../../api";
@@ -142,9 +143,9 @@ export function Backups() {
{t("audit.download")}
- fileInput.current?.click()} disabled={restoring}>
+ fileInput.current?.click()} disabled={restoring}>
{restoring ? t("backup.restoring") : t("backup.restoreFile")}
-
+
-
+
{busy ? t("backup.running") : t("backup.now")}
-
+
{t("audit.backupHint")}
@@ -166,18 +167,17 @@ export function Backups() {
{form && (
<>
-
- setForm({ ...form, enabled: e.target.checked })} />
+ setForm({ ...form, enabled: e.target.checked })}>
{t("backup.daily")}
-
+
{t("backup.at")}
- setForm({ ...form, hour: Number(e.target.value) })} />
+ setForm({ ...form, hour: Number(e.target.value) })} />
{t("backup.oclock")}
{t("backup.keep")}
- setForm({ ...form, keep: Number(e.target.value) })} />
+ setForm({ ...form, keep: Number(e.target.value) })} />
{data &&
{data.dir}
}
@@ -194,8 +194,7 @@ export function Backups() {
{s3("access_key", t("backup.accessKey"), "AKIA… or ${S3_ACCESS_KEY}")}
{t("backup.secretKey")}
-
-
+
{t("common.save")}
-
+
>
)}
@@ -225,9 +224,9 @@ export function Backups() {
{f.name}
{formatSize(f.size)}
- void restore({ name: f.name })} disabled={restoring}>
+ void restore({ name: f.name })} disabled={restoring}>
-
+
diff --git a/web/src/components/settings/ClaudeCode.tsx b/web/src/components/settings/ClaudeCode.tsx
index b743e07..ec3518f 100644
--- a/web/src/components/settings/ClaudeCode.tsx
+++ b/web/src/components/settings/ClaudeCode.tsx
@@ -1,3 +1,4 @@
+import { Button, Checkbox, Input } from "antd";
import { useEffect, useState } from "react";
import { api, get, post } from "../../api";
import { confirmDialog, toast } from "../../dialogs";
@@ -111,9 +112,9 @@ export function ClaudeCode() {
{t("claude.title")}
{status?.logged_in && (
-
+
{t("claude.logout")}
-
+
)}
{t("claude.intro")}
@@ -126,9 +127,9 @@ export function ClaudeCode() {
<>
{t("claude.updateAvailable", { version: status.latest ?? "" })}
{isAdmin ? (
-
+
{updating ? : } {updating ? t("claude.updating") : t("claude.update")}
-
+
) : (
{t("claude.updateAdmin")}
)}
@@ -136,9 +137,9 @@ export function ClaudeCode() {
) : (
status.latest && {t("claude.upToDate")}
)}
-
+
{checking ? : }
-
+
)}
{updateLog && (
@@ -158,12 +159,11 @@ export function ClaudeCode() {
)}
{status?.installed && !status.logged_in && !url && (
<>
-
- setConsole(e.target.checked)} /> {t("claude.console")}
-
-
+ setConsole(e.target.checked)}> {t("claude.console")}
+
+
{busy ? : } {t("claude.signIn")}
-
+
>
)}
{url && (
@@ -177,11 +177,11 @@ export function ClaudeCode() {
{t("claude.step2")}
- setCode(e.target.value)} onKeyDown={(e) => e.key === "Enter" && code.trim() && void submit()} />
-
+ setCode(e.target.value)} onKeyDown={(e) => e.key === "Enter" && code.trim() && void submit()} />
+
{busy ? : } {t("claude.confirm")}
-
- {t("common.cancel")}
+
+ {t("common.cancel")}
diff --git a/web/src/components/settings/CliInstall.tsx b/web/src/components/settings/CliInstall.tsx
index ec20813..7a0049e 100644
--- a/web/src/components/settings/CliInstall.tsx
+++ b/web/src/components/settings/CliInstall.tsx
@@ -1,3 +1,4 @@
+import { Button } from "antd";
import { useT } from "../../i18n";
import { toast } from "../../dialogs";
import { Icon } from "../Icon";
@@ -25,18 +26,18 @@ export function CliInstall() {
{t(prebuilt ? "cli.step1" : "cli.step1Source")}
{cmd}
- copy(cmd)}>
+ copy(cmd)}>
{t("tokens.copy")}
-
+
{t("cli.step2")}
{`codecraft login ${location.origin}`}
- copy(`codecraft login ${location.origin}`)}>
+ copy(`codecraft login ${location.origin}`)}>
{t("tokens.copy")}
-
+
{t("cli.step3")}
diff --git a/web/src/components/settings/Folders.tsx b/web/src/components/settings/Folders.tsx
index 3a7ef59..ea110b4 100644
--- a/web/src/components/settings/Folders.tsx
+++ b/web/src/components/settings/Folders.tsx
@@ -1,3 +1,4 @@
+import { Button, Checkbox, Input } from "antd";
import { useState } from "react";
import { del, post, put } from "../../api";
import { useFetch } from "../../hooks";
@@ -45,17 +46,16 @@ export function Folders() {
📁 {f.path.slice(ws.length) || "/"}
- void confirmDialog({ message: t("folders.removeConfirm"), danger: true, confirmLabel: t("folders.remove") }).then((ok): unknown => ok && run(() => del(`/folders/${f.id}`)))}>
+ void confirmDialog({ message: t("folders.removeConfirm"), danger: true, confirmLabel: t("folders.remove") }).then((ok): unknown => ok && run(() => del(`/folders/${f.id}`)))}>
{t("folders.remove")}
-
+
{users.length === 0 &&
{t("folders.noUsers")}
}
{users.map((u) => (
-
- toggle(f, u.id)} />
+ toggle(f, u.id)}>
{u.display_name || u.username} @{u.username}
-
+
))}
@@ -64,10 +64,10 @@ export function Folders() {
{t("folders.add")}
{ws}/
- setPath(e.target.value)} placeholder="team/project" style={{ flex: 1, minWidth: 160 }} />
- run(async () => (await post("/folders", { path }), setPath("")))}>
+ setPath(e.target.value)} placeholder="team/project" style={{ flex: 1, minWidth: 160 }} />
+ run(async () => (await post("/folders", { path }), setPath("")))}>
+ {t("common.add")}
-
+
{t("folders.addHint")}
diff --git a/web/src/components/settings/GitAccount.tsx b/web/src/components/settings/GitAccount.tsx
index 456bb8d..02642dd 100644
--- a/web/src/components/settings/GitAccount.tsx
+++ b/web/src/components/settings/GitAccount.tsx
@@ -1,3 +1,4 @@
+import { Button, Input } from "antd";
import { useEffect, useState } from "react";
import { get, put } from "../../api";
import { useT } from "../../i18n";
@@ -54,19 +55,18 @@ export function GitAccount() {
{t("gitcred.name")}
- setS({ ...s, name: e.target.value })} placeholder="Jane Doe" autoComplete="name" />
+ setS({ ...s, name: e.target.value })} placeholder="Jane Doe" autoComplete="name" />
{t("gitcred.email")}
- setS({ ...s, email: e.target.value })} placeholder="jane@example.com" autoComplete="email" />
+ setS({ ...s, email: e.target.value })} placeholder="jane@example.com" autoComplete="email" />
{t("gitcred.credentials")}
{s.credentials.length === 0 &&
{t("gitcred.none")}
}
{s.credentials.map((c, i) => (
- setCred(i, { host: e.target.value })} aria-label={t("gitcred.host")} />
- setCred(i, { username: e.target.value })} aria-label={t("gitcred.user")} autoComplete="off" />
- setCred(i, { host: e.target.value })} aria-label={t("gitcred.host")} />
+ setCred(i, { username: e.target.value })} aria-label={t("gitcred.user")} autoComplete="off" />
+ c.token.startsWith("•") && e.target.select()}
@@ -74,20 +74,20 @@ export function GitAccount() {
aria-label={t("gitcred.token")}
autoComplete="new-password"
/>
- setS({ ...s, credentials: s.credentials.filter((_, j) => j !== i) })} aria-label={t("common.remove")}>
+ setS({ ...s, credentials: s.credentials.filter((_, j) => j !== i) })} aria-label={t("common.remove")}>
-
+
))}
- setS({ ...s, credentials: [...s.credentials, { host: "", username: "", token: "" }] })}>
+ setS({ ...s, credentials: [...s.credentials, { host: "", username: "", token: "" }] })}>
{t("gitcred.add")}
-
+
-
+
{t("common.save")}
-
+
);
diff --git a/web/src/components/settings/Memory.tsx b/web/src/components/settings/Memory.tsx
index 9b236a1..a389085 100644
--- a/web/src/components/settings/Memory.tsx
+++ b/web/src/components/settings/Memory.tsx
@@ -1,3 +1,4 @@
+import { Button, Input } from "antd";
import { useEffect, useState } from "react";
import { get, put } from "../../api";
import { useT } from "../../i18n";
@@ -22,12 +23,12 @@ export function Memory() {
{t("memory.hint")}
- setText(e.target.value)} />
+ setText(e.target.value)} />
- put("/account/memory", { memory: text }).then(() => toast(t("settings.saved"), "success")).catch((e) => toast(e.message))}>
+ put("/account/memory", { memory: text }).then(() => toast(t("settings.saved"), "success")).catch((e) => toast(e.message))}>
{t("common.save")}
-
+
);
diff --git a/web/src/components/settings/PersonalModes.tsx b/web/src/components/settings/PersonalModes.tsx
index 18abf67..b0d2780 100644
--- a/web/src/components/settings/PersonalModes.tsx
+++ b/web/src/components/settings/PersonalModes.tsx
@@ -1,3 +1,5 @@
+import { Button, Checkbox, Input } from "antd";
+import { Select } from "../../ui/Select";
import { useEffect, useState } from "react";
import { get, put } from "../../api";
import { confirmDialog, toast } from "../../dialogs";
@@ -70,10 +72,10 @@ export function PersonalModes() {
>
@@ -106,40 +108,39 @@ function ModeRow({ name, mode, tools, open, onToggle, onSave, onRemove }: { name
{form.style === "chat" ? t("agents.styleChatShort") : t("agents.styleCodingShort")}
{form.read_only && {t("agents.readOnly")} }
-
+
-
-
+
+
{open ? t("common.collapse") : t("common.edit")}
-
+
{!open && mode.description && {mode.description}
}
{open && (
<>
{t("agents.description")}
- setForm({ ...form, description: e.target.value })} />
+ setForm({ ...form, description: e.target.value })} />
{t("agents.style")}
- setForm({ ...form, style: e.target.value as "coding" | "chat" })}>
+ setForm({ ...form, style: e.target.value as "coding" | "chat" })}>
{t("agents.styleCoding")}
{t("agents.styleChat")}
-
+
{t("agents.model")}
setForm({ ...form, model: v })} emptyLabel={t("agents.sessionModel")} />
{t("agents.readOnlyLabel")}
-
- setForm({ ...form, read_only: e.target.checked })} />
+ setForm({ ...form, read_only: e.target.checked })}>
{t("agents.readOnlyHint")}
-
+
{t("agents.tools")}
setForm({ ...form, tools: v })} readOnly={form.read_only} />
{t("agents.prompt")}
- setForm({ ...form, prompt: e.target.value })} />
+ setForm({ ...form, prompt: e.target.value })} />
-
+
{t("common.save")}
-
+
>
)}
diff --git a/web/src/components/settings/Skills.tsx b/web/src/components/settings/Skills.tsx
index 7778cf8..a9e5b2f 100644
--- a/web/src/components/settings/Skills.tsx
+++ b/web/src/components/settings/Skills.tsx
@@ -1,3 +1,5 @@
+import { Button, Checkbox, Input } from "antd";
+import { Modal } from "../../ui/Modal";
import { useState } from "react";
import { del, get, post, put } from "../../api";
import { confirmDialog, promptDialog, toast } from "../../dialogs";
@@ -54,14 +56,14 @@ export function Skills() {
{t("skills.hint")}
- setEditing({ name: "", isNew: true })}>
+ setEditing({ name: "", isNew: true })}>
{t("skills.new")}
-
- setImporting(true)}>
+
+ setImporting(true)}>
{t("skills.import")}
-
+
- {(data?.skills.length ?? 0) > 8 && setFilter(e.target.value)} />}
+ {(data?.skills.length ?? 0) > 8 && setFilter(e.target.value)} />}
{!data ? (
@@ -77,12 +79,12 @@ export function Skills() {
{s.description}
- setEditing({ name: s.name, isNew: false })}>
+ setEditing({ name: s.name, isNew: false })}>
{t("common.edit")}
-
- void remove(s)} aria-label={t("common.delete")}>
+
+ void remove(s)} aria-label={t("common.delete")}>
-
+
))
)}
@@ -152,8 +154,7 @@ function SkillEditor({ name: initial, isNew, onClose }: { name: string; isNew: b
};
return (
-
+
);
}
@@ -240,51 +240,48 @@ function ImportDialog({ onClose }: { onClose: (done: boolean) => void }) {
};
return (
-
+
);
}
diff --git a/web/src/components/settings/Snippets.tsx b/web/src/components/settings/Snippets.tsx
index e2cc180..268e797 100644
--- a/web/src/components/settings/Snippets.tsx
+++ b/web/src/components/settings/Snippets.tsx
@@ -1,3 +1,4 @@
+import { Button, Input } from "antd";
import { useEffect, useState } from "react";
import { get, put } from "../../api";
import { useT } from "../../i18n";
@@ -39,22 +40,22 @@ export function Snippets() {
))}
- setItems([...items, { name: "", text: "" }])}>
+ setItems([...items, { name: "", text: "" }])}>
{t("snippets.add")}
-
+
-
+
{t("common.save")}
-
+
);
diff --git a/web/src/components/settings/SshKeys.tsx b/web/src/components/settings/SshKeys.tsx
index 517fe10..7d80bea 100644
--- a/web/src/components/settings/SshKeys.tsx
+++ b/web/src/components/settings/SshKeys.tsx
@@ -1,3 +1,4 @@
+import { Button, Checkbox, Input } from "antd";
import { useEffect, useState } from "react";
import { del, get, post } from "../../api";
import { useT } from "../../i18n";
@@ -58,11 +59,10 @@ export function SshKeys() {
{k.name}
{k.fingerprint}
- copy(k.public)}>
+ copy(k.public)}>
{t("ssh.copyPublic")}
-
-
+ {
@@ -72,24 +72,23 @@ export function SshKeys() {
}}
>
-
+
- e.currentTarget.select()} aria-label={t("ssh.public")} className="mono" />
+ e.currentTarget.select()} aria-label={t("ssh.public")} className="mono" />
))}
- setName(e.target.value)} placeholder={t("ssh.name")} maxLength={60} aria-label={t("ssh.name")} style={{ flex: "1 1 160px" }} />
-
+ setName(e.target.value)} placeholder={t("ssh.name")} maxLength={60} aria-label={t("ssh.name")} style={{ flex: "1 1 160px" }} />
+
{importing ? t("ssh.import") : t("ssh.generate")}
-
-
- setImporting(e.target.checked)} />
+
+ setImporting(e.target.checked)}>
{t("ssh.importExisting")}
-
+
{importing && (
<>
- setPriv(e.target.value)} placeholder="-----BEGIN OPENSSH PRIVATE KEY-----" aria-label={t("ssh.private")} style={{ width: "100%", marginTop: 8 }} spellCheck={false} autoComplete="off" />
+ setPriv(e.target.value)} placeholder="-----BEGIN OPENSSH PRIVATE KEY-----" aria-label={t("ssh.private")} style={{ width: "100%", marginTop: 8 }} spellCheck={false} autoComplete="off" />
{t("ssh.importHint")}
>
)}
diff --git a/web/src/components/settings/Telegram.tsx b/web/src/components/settings/Telegram.tsx
index b438f36..8af67c2 100644
--- a/web/src/components/settings/Telegram.tsx
+++ b/web/src/components/settings/Telegram.tsx
@@ -1,3 +1,4 @@
+import { Button, Checkbox, Input } from "antd";
import { useState } from "react";
import { del, put } from "../../api";
import { confirmDialog, toast } from "../../dialogs";
@@ -59,9 +60,9 @@ export function Telegram() {
{t("telegram.title")}
{data?.configured && (
-
+
{t("telegram.disconnect")}
-
+
)}
@@ -74,7 +75,7 @@ export function Telegram() {
{t("telegram.step2")}
- setToken(e.target.value)}
style={{ flex: 1 }}
/>
- void connect()} disabled={busy || !token.trim()}>
+ void connect()} disabled={busy || !token.trim()}>
{busy ? t("telegram.checking") : t("telegram.connect")}
-
+
>
)}
@@ -112,18 +113,16 @@ export function Telegram() {
{data.error &&
{data.error}
}
{data.paired &&
{t("telegram.commands")}
}
{t("telegram.notify")}
-
- void savePrefs({ factory_alerts: e.target.checked })} />
+ void savePrefs({ factory_alerts: e.target.checked })}>
{t("telegram.factoryAlerts")}
-
-
- void savePrefs({ quiet: e.target.checked })} />
+
+ void savePrefs({ quiet: e.target.checked })}>
{t("telegram.quiet")}
-
+
- e.target.value && void savePrefs({ quiet_from: e.target.value })} />
+ e.target.value && void savePrefs({ quiet_from: e.target.value })} />
–
- e.target.value && void savePrefs({ quiet_to: e.target.value })} />
+ e.target.value && void savePrefs({ quiet_to: e.target.value })} />
{t("telegram.serverTime", { time: data.server_time })}{data.quiet_now ? ` · ${t("telegram.quietNow")}` : ""}
{t("telegram.quietHint")}
diff --git a/web/src/components/settings/Templates.tsx b/web/src/components/settings/Templates.tsx
index ac4299c..e280344 100644
--- a/web/src/components/settings/Templates.tsx
+++ b/web/src/components/settings/Templates.tsx
@@ -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) => (
- set(i, { name: e.target.value })} />
- remove(i)} aria-label={t("common.delete")}>
+ set(i, { name: e.target.value })} />
+ remove(i)} aria-label={t("common.delete")}>
-
+
-
set(i, { text: e.target.value })} />
+ set(i, { text: e.target.value })} />
{placeholders(x.text).length > 0 && (
{placeholders(x.text).map((p) => (
@@ -51,13 +52,13 @@ function List({ scope, initial }: { scope: "personal" | "global"; initial: Templ
))}
- (setList([...list, { id: "", name: "", text: "" }]), setDirty(true))}>
+ (setList([...list, { id: "", name: "", text: "" }]), setDirty(true))}>
{t("templates.add")}
-
+
-
+
{t("common.save")}
-
+
);
diff --git a/web/src/components/settings/Tools.tsx b/web/src/components/settings/Tools.tsx
index d11b40d..e66dd44 100644
--- a/web/src/components/settings/Tools.tsx
+++ b/web/src/components/settings/Tools.tsx
@@ -1,3 +1,4 @@
+import { Button } from "antd";
import { useEffect } from "react";
import { post } from "../../api";
import { useFetch } from "../../hooks";
@@ -32,9 +33,9 @@ export function Tools() {
{t("tools.installing")}
) : (
- post("/tools/ghidra/install").then(reload).catch((e) => toast(e.message))}>
+ post("/tools/ghidra/install").then(reload).catch((e) => toast(e.message))}>
{g?.installed ? t("tools.reinstall") : t("tools.install")}
-
+
)}
{g?.log && {g.log} }
diff --git a/web/src/components/settings/Users.tsx b/web/src/components/settings/Users.tsx
index c318969..a92698a 100644
--- a/web/src/components/settings/Users.tsx
+++ b/web/src/components/settings/Users.tsx
@@ -1,3 +1,5 @@
+import { Button, Input } from "antd";
+import { Select } from "../../ui/Select";
import { useState } from "react";
import { del, patch, post } from "../../api";
import { useFetch } from "../../hooks";
@@ -54,17 +56,16 @@ export function Users() {
{u.display_name}
- run(() => patch(`/users/${u.id}`, { role: e.target.value }))}>
+ run(() => patch(`/users/${u.id}`, { role: e.target.value }))}>
{t("users.roleUser")}
{t("users.roleAdmin")}
-
+
{u.has_password && {t("users.password")} } {u.oidc && SSO }
- {
const v = await promptDialog({ message: t("users.quotaPrompt", { name: u.username }), defaultValue: u.monthly_quota != null ? String(u.monthly_quota) : "" });
@@ -73,21 +74,21 @@ export function Users() {
}}
>
{u.monthly_quota != null ? u.monthly_quota : "∞"}
-
+
{fmtDate(u.created_at, false)}
- resetPassword(u)}>
+ resetPassword(u)}>
{t("users.setPassword")}
-
- run(() => patch(`/users/${u.id}`, { disabled: !u.disabled }))}>
+
+ run(() => patch(`/users/${u.id}`, { disabled: !u.disabled }))}>
{u.disabled ? t("users.enable") : t("users.disable")}
-
+
{u.id !== me?.id && (
- void confirmDialog({ message: t("users.deleteConfirm", { name: u.username }), danger: true, confirmLabel: t("common.delete") }).then((ok): unknown => ok && run(() => del(`/users/${u.id}`)))}>
+ void confirmDialog({ message: t("users.deleteConfirm", { name: u.username }), danger: true, confirmLabel: t("common.delete") }).then((ok): unknown => ok && run(() => del(`/users/${u.id}`)))}>
{t("common.delete")}
-
+
)}
@@ -100,21 +101,20 @@ export function Users() {
{t("users.add")}
-
@@ -125,7 +125,7 @@ export function Users() {
}
>
+ {t("common.add")}
-
+
>
);
diff --git a/web/src/dialogs.tsx b/web/src/dialogs.tsx
index 582d13b..5654108 100644
--- a/web/src/dialogs.tsx
+++ b/web/src/dialogs.tsx
@@ -1,8 +1,9 @@
+import { App, Button, Input, type InputRef } from "antd";
import { UploadPanel } from "./components/UploadPanel";
-import { Icon } from "./components/Icon";
// In-app dialogs and toasts instead of the browser's alert/confirm/prompt.
import { useEffect, useRef, useState, useSyncExternalStore } from "react";
import { t } from "./i18n";
+import { Modal } from "./ui/Modal";
interface ConfirmOpts {
title?: string;
@@ -39,7 +40,9 @@ interface Toast {
}
let dialogs: Dialog[] = [];
-let toasts: Toast[] = [];
+/** Shows a notice; set by the DialogHost once it is mounted. */
+let show: ((x: Toast) => void) | undefined;
+const waiting: Toast[] = [];
let seq = 0;
const listeners = new Set<() => void>();
const emit = () => listeners.forEach((l) => l());
@@ -71,13 +74,9 @@ export function promptDialog(opts: PromptOpts | string): Promise
export function toast(message: unknown, kind: Toast["kind"] = "error") {
const text = message instanceof Error ? message.message : typeof message === "string" ? message : String((message as any)?.message ?? message);
- const id = ++seq;
- toasts = [...toasts, { id, message: text, kind }];
- emit();
- setTimeout(() => {
- toasts = toasts.filter((x) => x.id !== id);
- emit();
- }, kind === "error" ? 7000 : 3500);
+ const x = { id: ++seq, message: text, kind };
+ if (show) show(x);
+ else waiting.push(x);
}
function close(d: Dialog, value: any) {
@@ -88,86 +87,76 @@ function close(d: Dialog, value: any) {
function DialogView({ d }: { d: Dialog }) {
const [value, setValue] = useState(d.kind === "prompt" ? d.defaultValue ?? "" : "");
- const input = useRef(null);
+ const input = useRef(null);
const ok = useRef(null);
const cancelValue = d.kind === "confirm" ? false : null;
useEffect(() => {
- if (d.kind === "prompt") {
- input.current?.focus();
- input.current?.select();
- } else ok.current?.focus();
- const h = (e: KeyboardEvent) => e.key === "Escape" && close(d, cancelValue);
- window.addEventListener("keydown", h);
- return () => window.removeEventListener("keydown", h);
+ // After the window has opened (it takes the focus itself first).
+ const timer = setTimeout(() => (d.kind === "prompt" ? input.current?.focus({ cursor: "all" }) : ok.current?.focus()), 60);
+ return () => clearTimeout(timer);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
const submit = () => close(d, d.kind === "confirm" ? true : value);
+ const field = {
+ ref: input,
+ value,
+ placeholder: d.kind === "prompt" ? d.placeholder : undefined,
+ onChange: (e: React.ChangeEvent) => setValue(e.target.value),
+ };
return (
- close(d, cancelValue)}>
-
e.stopPropagation()}
- onSubmit={(e) => (e.preventDefault(), submit())}
- >
+ close(d, cancelValue)} className="dialog">
+ (e.preventDefault(), submit())}>
{d.title && {d.title} }
{d.message}
- {d.kind === "prompt" && (
- setValue(e.target.value)}
- autoComplete={d.password ? "new-password" : "off"}
- style={{ width: "100%" }}
- />
- )}
+ {d.kind === "prompt" && (d.password ? : )}
{d.kind === "choice" ? (
- close(d, null)}>
- {t("common.cancel")}
-
- {d.choices.map((c, i) => (
- close(d, c.value)}>
- {c.label}
-
- ))}
+ close(d, null)}>{t("common.cancel")}
+ {d.choices.map((c, i) => {
+ const last = i === d.choices.length - 1;
+ return (
+ close(d, c.value)}>
+ {c.label}
+
+ );
+ })}
) : (
- close(d, cancelValue)}>
- {t("common.cancel")}
-
-
+ close(d, cancelValue)}>{t("common.cancel")}
+
{d.confirmLabel ?? t("common.ok")}
-
+
)}
-
+
);
}
/** Renders open dialogs and toasts; mounted once in App. */
export function DialogHost() {
const state = useSyncExternalStore(subscribe, () => dialogs);
- const ts = useSyncExternalStore(subscribe, () => toasts);
+ const { message } = App.useApp();
+ useEffect(() => {
+ show = (x) =>
+ void message.open({
+ key: x.id,
+ type: x.kind,
+ // A click dismisses the notice.
+ content: message.destroy(x.id)}>{x.message} ,
+ duration: x.kind === "error" ? 7 : 3.5,
+ });
+ // Notices raised before the host was there.
+ waiting.splice(0).forEach(show);
+ return () => void (show = undefined);
+ }, [message]);
return (
<>
{state.map((d) => (
))}
-
- {ts.map((x) => (
-
((toasts = toasts.filter((y) => y.id !== x.id)), emit())}>
- {x.kind === "error" ? : x.kind === "success" ? : null}
- {x.message}
-
- ))}
-
>
);
}
diff --git a/web/src/main.tsx b/web/src/main.tsx
index 8198779..184b923 100644
--- a/web/src/main.tsx
+++ b/web/src/main.tsx
@@ -6,6 +6,7 @@ import "./styles.css";
import { App } from "./App";
import { applyTheme } from "./theme";
import { captureShare } from "./share";
+import { AntdProvider } from "./ui/AntdProvider";
applyTheme();
captureShare();
@@ -50,6 +51,8 @@ function undoKeyboardShift() {
createRoot(document.getElementById("root")!).render(
-
+
+
+
,
);
diff --git a/web/src/styles.css b/web/src/styles.css
index 8a6f2d7..e880912 100644
--- a/web/src/styles.css
+++ b/web/src/styles.css
@@ -31,61 +31,62 @@ pre,
font-size: 12.5px;
}
-button,
-input,
-select,
-textarea {
+/* Plain elements (custom-shaped buttons, the message field); Ant Design components bring their own style. */
+button:where(:not([class*="ant-"])),
+input:where(:not([class*="ant-"])),
+select:where(:not([class*="ant-"])),
+textarea:where(:not([class*="ant-"])) {
font: inherit;
color: inherit;
}
-button {
+button:where(:not([class*="ant-"])) {
cursor: pointer;
border: 1px solid var(--bg3);
background: var(--bg2);
border-radius: 6px;
padding: 5px 12px;
}
-button:hover:not(:disabled) {
+button:where(:not([class*="ant-"])):hover:not(:disabled) {
border-color: var(--fg3);
}
-button:disabled {
+button:where(:not([class*="ant-"])):disabled {
opacity: 0.5;
cursor: default;
}
-button.primary {
+button:where(:not([class*="ant-"])).primary {
background: var(--accent);
border-color: var(--accent);
color: var(--on-accent);
font-weight: 600;
}
-button.danger {
+button:where(:not([class*="ant-"])).danger {
color: var(--red);
}
-button.ghost {
+button:where(:not([class*="ant-"])).ghost {
background: transparent;
border-color: transparent;
}
-button.ghost:hover:not(:disabled) {
+button:where(:not([class*="ant-"])).ghost:hover:not(:disabled) {
background: var(--bg2);
}
-button.small {
+button:where(:not([class*="ant-"])).small {
padding: 2px 8px;
font-size: 12px;
}
-input,
-select,
-textarea {
+input:where(:not([class*="ant-"])),
+select:where(:not([class*="ant-"])),
+textarea:where(:not([class*="ant-"])) {
background: var(--bg1);
border: 1px solid var(--bg3);
border-radius: 6px;
padding: 5px 8px;
outline: none;
}
-input:focus,
-select:focus,
-textarea:focus {
+input:where(:not([class*="ant-"])):focus,
+select:where(:not([class*="ant-"])):focus,
+textarea:where(:not([class*="ant-"])):focus {
border-color: var(--accent);
}
@@ -993,10 +994,9 @@ button.session-group:hover {
margin-top: 6px;
flex-wrap: wrap;
}
-.composer-bar select {
- max-width: 220px;
- font-size: 12.5px;
- padding: 3px 6px;
+.composer-bar .ant-select {
+ max-width: 240px;
+ min-width: 0;
}
.composer-options {
display: flex;
@@ -1022,24 +1022,6 @@ button.session-group:hover {
overflow: hidden;
text-overflow: ellipsis;
}
-.mode-tabs {
- display: inline-flex;
- border: 1px solid var(--bg3);
- border-radius: 6px;
- overflow: hidden;
-}
-.mode-tabs button {
- border: none;
- border-radius: 0;
- background: transparent;
- padding: 3px 10px;
- font-size: 12.5px;
-}
-.mode-tabs button.active {
- background: var(--accent);
- color: var(--on-accent);
- font-weight: 600;
-}
.attachments {
display: flex;
gap: 6px;
@@ -1128,17 +1110,6 @@ button.session-group:hover {
margin-bottom: 16px;
flex-wrap: wrap;
}
-.tabs button {
- border: none;
- border-bottom: 2px solid transparent;
- border-radius: 0;
- background: transparent;
- padding: 8px 12px;
-}
-.tabs button.active {
- border-bottom-color: var(--accent);
- color: var(--fg0);
-}
.form {
display: grid;
@@ -1455,8 +1426,8 @@ table.grid input[type="number"] {
.menu-pop-body .mobile-only {
display: block;
}
- .topbar button.small {
- padding: 2px 5px;
+ .topbar .ant-btn-sm {
+ padding-inline: 5px;
}
/* One scrollable row of options, actions stay visible. */
.composer-bar {
@@ -1470,7 +1441,8 @@ table.grid input[type="number"] {
.composer-options::-webkit-scrollbar {
display: none;
}
- .composer-options select {
+ .composer-options .ant-select {
+ flex: none;
max-width: 150px;
}
/* Avoid iOS zoom on focus. */
@@ -2115,7 +2087,7 @@ button.entry {
align-items: center;
flex-wrap: wrap;
}
-.git-branch select {
+.git-branch .ant-select {
max-width: 160px;
}
.git-output {
@@ -2400,9 +2372,6 @@ a.button.primary {
font-weight: 600;
}
-.mode-tabs button.active.deep {
- background: var(--accent2);
-}
.rewind-files {
max-height: 200px;
@@ -2432,34 +2401,6 @@ button.danger-solid {
color: var(--bg0);
font-weight: 600;
}
-.toasts {
- position: fixed;
- right: 16px;
- bottom: 16px;
- display: grid;
- gap: 8px;
- z-index: 50;
- max-width: min(420px, calc(100vw - 32px));
- padding-bottom: env(safe-area-inset-bottom);
-}
-.toast {
- background: var(--bg1);
- border: 1px solid var(--bg3);
- border-left: 4px solid var(--blue);
- border-radius: var(--radius);
- padding: 10px 14px;
- box-shadow: var(--shadow);
- font-size: 13px;
- cursor: pointer;
- animation: toast-in 0.18s ease-out;
- word-break: break-word;
-}
-.toast.error {
- border-left-color: var(--red);
-}
-.toast.success {
- border-left-color: var(--green);
-}
@keyframes toast-in {
from {
transform: translateY(8px);
@@ -2479,18 +2420,6 @@ button.danger-solid {
margin: 0;
}
-.segmented {
- display: inline-flex;
- gap: 2px;
- background: var(--bg1);
- border-radius: 8px;
- padding: 2px;
- width: fit-content;
-}
-.segmented button.active {
- background: var(--accent);
- color: var(--on-accent);
-}
.sidebar-user .theme-toggle {
margin-left: auto;
font-size: 15px;
@@ -2859,17 +2788,6 @@ button.danger-solid {
margin-top: 12px;
color: var(--fg2);
}
-.chip-btn {
- border: 1px solid var(--bg3);
- border-radius: 8px;
- background: var(--bg0);
- color: var(--fg1);
- padding: 6px 12px;
- cursor: pointer;
-}
-.chip-btn:hover {
- border-color: var(--accent);
-}
.wiz-foot {
display: flex;
flex-direction: column;
@@ -3322,10 +3240,8 @@ button.danger-solid {
.job-grid > span:nth-child(odd) {
color: var(--fg3);
}
-.job-grid select {
+.job-grid .ant-select {
max-width: 100%;
- font-size: 13px;
- padding: 2px 6px;
}
.job-prompt {
margin-top: 10px;
@@ -3765,10 +3681,6 @@ button.danger-solid {
width: 100%;
resize: vertical;
}
-.chip-btn.active {
- border-color: var(--accent);
- color: var(--accent);
-}
.job-tpl-card.active {
outline: 2px solid var(--accent);
outline-offset: -2px;
@@ -3788,19 +3700,6 @@ button.danger-solid {
display: none;
border-bottom: 1px solid var(--bg2);
}
-.job-tabs button {
- flex: 1;
- border: none;
- border-radius: 0;
- background: transparent;
- padding: 8px 6px;
- color: var(--muted);
- border-bottom: 2px solid transparent;
-}
-.job-tabs button.active {
- color: var(--fg0);
- border-bottom-color: var(--accent);
-}
.job-editor {
flex: 1;
min-height: 0;
@@ -3832,7 +3731,7 @@ button.danger-solid {
min-width: 150px;
margin: 0;
}
-.job-editor-row select,
+.job-editor-row .ant-select,
.job-editor-row input {
width: 100%;
}
@@ -3931,14 +3830,6 @@ button.danger-solid {
gap: 6px;
align-items: center;
}
-.cron-modes .chip-btn,
-.cron-days .chip-btn {
- padding: 4px 10px;
- font-size: 13px;
-}
-.cron-days .chip-btn {
- min-width: 44px;
-}
.cron-fields {
display: flex;
flex-wrap: wrap;
@@ -4196,7 +4087,7 @@ span.chat-tab > button {
padding-top: max(4px, env(safe-area-inset-top));
gap: 4px;
}
- .topbar button.ghost {
+ .topbar .ant-btn {
padding: 4px 6px;
}
.chat {
@@ -4224,9 +4115,8 @@ span.chat-tab > button {
margin-top: 4px;
gap: 4px;
}
- .composer-bar select {
- max-width: 150px;
- padding: 2px 4px;
+ .composer-bar .ant-select {
+ max-width: 124px;
}
.composer-actions button {
padding: 4px 10px;
@@ -4403,10 +4293,6 @@ span.chat-tab > button {
flex-wrap: wrap;
flex: 1;
}
-.media-filters .chip-btn {
- padding: 3px 10px;
- font-size: 13px;
-}
.media-filters small {
color: var(--muted);
margin-left: 2px;
@@ -5085,12 +4971,26 @@ td.fold-indent {
border-radius: var(--radius);
padding: 8px;
min-height: 120px;
+ /* Each column scrolls on its own; the board as a whole stays about one screen high. */
+ max-height: max(360px, calc(100dvh - 140px));
+ overflow-y: auto;
+ overscroll-behavior: contain;
+ scrollbar-width: thin;
display: flex;
flex-direction: column;
gap: 6px;
}
+.factory-col > * {
+ flex-shrink: 0;
+}
.factory-col h4 {
- margin: 0 0 2px;
+ /* The column title stays visible while its cards scroll. */
+ position: sticky;
+ top: -8px;
+ z-index: 1;
+ background: var(--bg1);
+ margin: -8px 0 -4px;
+ padding: 8px 0 6px;
font-size: 13px;
display: flex;
justify-content: space-between;
@@ -5458,7 +5358,7 @@ td.fold-indent {
position: fixed;
left: 16px;
bottom: 16px;
- z-index: 55;
+ z-index: 160;
display: grid;
gap: 8px;
width: min(380px, calc(100vw - 32px));
@@ -5529,3 +5429,147 @@ td.fold-indent {
.upload-file.error .upload-bar i {
background: var(--red, #e5484d);
}
+
+/* --- Ant Design ------------------------------------------------------------- */
+/* The dialog window is drawn by Ant Design; `.modal` only lays out its content. */
+.ant-modal .modal {
+ background: none;
+ border: 0;
+ border-radius: 0;
+ box-shadow: none;
+ padding: 0;
+ width: auto;
+ max-height: calc(100dvh - 96px);
+ overflow-y: auto;
+}
+.ant-modal .modal.wide {
+ max-height: calc(100dvh - 64px);
+}
+.ant-modal .modal > h3:first-child,
+.ant-modal .modal > form > h3:first-child {
+ margin-top: 0;
+}
+/* Buttons with an icon and a label keep the app's spacing; long labels may wrap. */
+.ant-btn > svg + span,
+.ant-btn > span + svg {
+ margin-inline-start: 0;
+}
+.dialog-actions .ant-btn,
+.dialog-choices .ant-btn {
+ height: auto;
+ min-height: 32px;
+ white-space: normal;
+}
+/* Fields fill their form column like before; in a row they share the space. */
+.form .ant-input,
+.field .ant-input,
+.modal label > .ant-input,
+.modal label > .ant-input-password {
+ width: 100%;
+}
+.row > .ant-input,
+.row > .ant-input-password {
+ width: auto;
+}
+.ant-checkbox-wrapper {
+ align-items: flex-start;
+}
+/* Touch screens: comfortable targets. */
+@media (pointer: coarse) {
+ .ant-btn-sm {
+ min-height: 32px;
+ }
+ .ant-input,
+ .ant-select {
+ font-size: 16px;
+ }
+}
+.settings-tabs .tab-label {
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+}
+.seg-wrap {
+ max-width: 100%;
+}
+.seg-wrap .ant-segmented-group {
+ flex-wrap: wrap;
+}
+.ant-segmented {
+ width: fit-content;
+}
+.ant-segmented.ant-segmented-block {
+ width: 100%;
+}
+.ant-segmented-item-selected {
+ font-weight: 600;
+}
+/* A toggled or current plain button (navigation, filters). */
+.ant-btn.active {
+ background: var(--bg3);
+ color: var(--fg0);
+}
+.cron-days .ant-btn {
+ min-width: 44px;
+}
+.sidebar-foot .ant-btn {
+ flex: 1;
+ justify-content: flex-start;
+}
+/* Icons next to a label: the component already spaces them. */
+.ant-btn .nav-icon,
+.settings-tabs .nav-icon {
+ margin-right: 0;
+}
+.sidebar-foot .ant-btn {
+ min-width: 0;
+ padding-inline: 10px;
+ overflow: hidden;
+}
+/* All settings sections stay visible: the tab bar wraps instead of hiding tabs in a menu. */
+.settings-tabs .ant-tabs-nav-wrap {
+ overflow: visible;
+}
+.settings-tabs .ant-tabs-nav-list {
+ flex-wrap: wrap;
+ transform: none !important;
+}
+.settings-tabs .ant-tabs-nav-operations,
+.settings-tabs .ant-tabs-ink-bar {
+ display: none;
+}
+.settings-tabs .ant-tabs-tab {
+ border-bottom: 2px solid transparent;
+ padding-block: 8px;
+ margin-inline: 0 18px !important;
+}
+.settings-tabs .ant-tabs-tab-active {
+ border-bottom-color: var(--accent);
+}
+@media (max-width: 700px) {
+ .panel .row,
+ .card .row {
+ flex-wrap: wrap;
+ }
+}
+/* The app's own visibility classes also apply to Ant Design buttons. */
+.ant-btn.mobile-only {
+ display: none;
+}
+.ant-btn.git-name {
+ justify-content: flex-start;
+}
+@media (max-width: 800px) {
+ .ant-btn.mobile-only {
+ display: inline-flex;
+ }
+}
+@media (max-width: 700px) {
+ .panel h3,
+ .card h3 {
+ flex-wrap: wrap;
+ }
+ .topbar.stats-bar {
+ flex-wrap: wrap;
+ }
+}
diff --git a/web/src/ui/AntdProvider.tsx b/web/src/ui/AntdProvider.tsx
new file mode 100644
index 0000000..502eca2
--- /dev/null
+++ b/web/src/ui/AntdProvider.tsx
@@ -0,0 +1,90 @@
+// Ant Design setup: its tokens come from the app's theme variables (src/themes/*.css), so every theme applies to
+// the components too; the language follows the app's language.
+import { App as AntApp, ConfigProvider, theme as antTheme } from "antd";
+import deDE from "antd/locale/de_DE";
+import enUS from "antd/locale/en_US";
+import { useMemo, useSyncExternalStore, type ReactNode } from "react";
+import { onThemeChange } from "../theme";
+import { getLang, onLangChange } from "../i18n";
+
+/** Any CSS colour (hex, color-mix(), …) as the hex form Ant Design can calculate with. */
+function resolver() {
+ const probe = document.createElement("span");
+ probe.style.display = "none";
+ document.body.appendChild(probe);
+ const ctx = document.createElement("canvas").getContext("2d", { willReadFrequently: true })!;
+ return {
+ color(name: string, fallback: string) {
+ probe.style.color = fallback;
+ probe.style.color = `var(${name}, ${fallback})`;
+ ctx.clearRect(0, 0, 1, 1);
+ ctx.fillStyle = getComputedStyle(probe).color;
+ ctx.fillRect(0, 0, 1, 1);
+ const [r, g, b] = ctx.getImageData(0, 0, 1, 1).data;
+ return `#${[r, g, b].map((v) => v.toString(16).padStart(2, "0")).join("")}`;
+ },
+ done: () => probe.remove(),
+ };
+}
+
+function themeConfig() {
+ const root = document.documentElement;
+ const dark = root.dataset.mode !== "light";
+ const r = resolver();
+ const c = (name: string, fallback = "#888888") => r.color(name, fallback);
+ const [bg0, bg1, bg2, bg3] = [c("--bg0"), c("--bg1"), c("--bg2"), c("--bg3")];
+ const [fg0, fg1, fg2, fg3, muted] = [c("--fg0"), c("--fg1"), c("--fg2"), c("--fg3"), c("--muted")];
+ const [accent, onAccent, red, green, blue, warn] = [c("--accent"), c("--on-accent"), c("--red"), c("--green"), c("--blue"), c("--accent2")];
+ r.done();
+ const css = getComputedStyle(root);
+ return {
+ algorithm: dark ? antTheme.darkAlgorithm : antTheme.defaultAlgorithm,
+ token: {
+ colorPrimary: accent,
+ colorError: red,
+ colorSuccess: green,
+ colorWarning: warn,
+ colorInfo: blue,
+ colorLink: blue,
+ colorBgBase: bg0,
+ colorTextBase: fg1,
+ colorBgLayout: bg0,
+ colorBgContainer: bg1,
+ colorBgElevated: bg1,
+ colorBorder: bg3,
+ colorBorderSecondary: bg2,
+ colorText: fg1,
+ colorTextSecondary: fg2,
+ colorTextTertiary: fg3,
+ colorTextQuaternary: muted,
+ colorTextPlaceholder: muted,
+ colorTextHeading: fg0,
+ borderRadius: 6,
+ // Below the full-screen image viewer (200), above the app's own panels and menus.
+ zIndexPopupBase: 100,
+ fontSize: 14,
+ fontFamily: css.getPropertyValue("--font").trim() || "system-ui, sans-serif",
+ fontFamilyCode: css.getPropertyValue("--mono").trim() || "monospace",
+ },
+ components: {
+ Button: { primaryColor: onAccent, dangerColor: onAccent, defaultBg: bg2, defaultHoverBg: bg2, fontWeight: 500, primaryShadow: "none", defaultShadow: "none", dangerShadow: "none" },
+ Select: { optionSelectedBg: bg3 },
+ Modal: { contentBg: bg1, headerBg: bg1 },
+ },
+ };
+}
+
+let version = 0;
+const subscribeTheme = (fn: () => void) => onThemeChange(() => (version++, fn()));
+
+export function AntdProvider({ children }: { children: ReactNode }) {
+ const themeVersion = useSyncExternalStore(subscribeTheme, () => version);
+ const lang = useSyncExternalStore(onLangChange, getLang);
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ const theme = useMemo(themeConfig, [themeVersion]);
+ return (
+
+ {children}
+
+ );
+}
diff --git a/web/src/ui/Modal.tsx b/web/src/ui/Modal.tsx
new file mode 100644
index 0000000..a304266
--- /dev/null
+++ b/web/src/ui/Modal.tsx
@@ -0,0 +1,32 @@
+// The app's dialog window: an Ant Design modal around the dialog's own content (heading, fields, action row).
+import { Modal as AntModal } from "antd";
+import type { HTMLAttributes, ReactNode } from "react";
+
+interface Props extends Omit, "onClick"> {
+ /** Escape and a click outside close the dialog; without it the dialog stays until its own buttons close it. */
+ onClose?: () => void;
+ /** Extra classes of the content ("wide" makes the window wider). */
+ className?: string;
+ children?: ReactNode;
+}
+
+export function Modal({ onClose, className = "", children, ...rest }: Props) {
+ const wide = /\bwide\b/.test(className);
+ return (
+ onClose?.()}
+ destroyOnHidden
+ >
+
+ {children}
+
+
+ );
+}
diff --git a/web/src/ui/Select.tsx b/web/src/ui/Select.tsx
new file mode 100644
index 0000000..fdf14b2
--- /dev/null
+++ b/web/src/ui/Select.tsx
@@ -0,0 +1,77 @@
+// A drop-down with the interface of a native (value, onChange with `target.value`, and
+// children) drawn by Ant Design.
+import { Select as AntSelect } from "antd";
+import { Children, Fragment, isValidElement, useState, type CSSProperties, type ReactNode } from "react";
+
+export interface SelectChange {
+ target: { value: string };
+ currentTarget: { value: string };
+}
+
+interface Props {
+ value?: string | number;
+ defaultValue?: string | number;
+ onChange?: (e: SelectChange) => void;
+ children?: ReactNode;
+ className?: string;
+ style?: CSSProperties;
+ title?: string;
+ id?: string;
+ disabled?: boolean;
+ autoFocus?: boolean;
+ required?: boolean;
+ size?: "small" | "middle" | "large";
+ "aria-label"?: string;
+ onClick?: (e: React.MouseEvent) => void;
+}
+
+type Option = { value: string; label: ReactNode; text: string; disabled?: boolean; title?: string };
+type Entry = Option | { label: ReactNode; title?: string; options: Option[] };
+
+const textOf = (node: ReactNode): string => {
+ if (typeof node === "string" || typeof node === "number") return String(node);
+ if (Array.isArray(node)) return node.map(textOf).join("");
+ return isValidElement<{ children?: ReactNode }>(node) ? textOf(node.props.children) : "";
+};
+
+function entries(children: ReactNode): Entry[] {
+ const out: Entry[] = [];
+ Children.forEach(children, (child) => {
+ if (!isValidElement(child)) return;
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ const p = child.props as any;
+ if (child.type === Fragment) out.push(...entries(p.children));
+ else if (child.type === "optgroup") out.push({ label: p.label, options: entries(p.children).flatMap((e) => ("options" in e ? e.options : [e])) });
+ else if (child.type === "option") {
+ const text = textOf(p.children);
+ out.push({ value: String(p.value ?? text), label: p.children, text, disabled: p.disabled, title: p.title ?? text });
+ }
+ });
+ return out;
+}
+
+const SEARCH_FROM = 12;
+
+export function Select({ value, defaultValue, onChange, children, className, style, size, ...rest }: Props) {
+ const options = entries(children);
+ const flat = options.flatMap((e) => ("options" in e ? e.options : [e]));
+ // Like a native select, an uncontrolled one starts with its first option.
+ const [own, setOwn] = useState(() => String(defaultValue ?? flat[0]?.value ?? ""));
+ const current = value === undefined ? own : String(value);
+ return (
+
+ {...rest}
+ size={size}
+ className={className}
+ style={style}
+ value={flat.some((o) => o.value === current) ? current : undefined}
+ options={options}
+ popupMatchSelectWidth={false}
+ showSearch={flat.length >= SEARCH_FROM ? { filterOption: (q, o) => String((o as Option | undefined)?.text ?? "").toLowerCase().includes(q.toLowerCase()) } : false}
+ onChange={(v) => {
+ setOwn(v);
+ onChange?.({ target: { value: v }, currentTarget: { value: v } });
+ }}
+ />
+ );
+}
diff --git a/web/src/whatsnew.ts b/web/src/whatsnew.ts
index a16dae0..cc6e67b 100644
--- a/web/src/whatsnew.ts
+++ b/web/src/whatsnew.ts
@@ -3,6 +3,10 @@
* under "unreleased"; scripts/release.sh renames the key to the release version.
*/
export const WHATS_NEW: Record = {
+ unreleased: {
+ en: ["New uniform look: buttons, fields, drop-downs, tabs and dialogs are Ant Design components in your theme's colours", "Factory: every board column scrolls on its own", "Fixed: deleting the open chat no longer leaves an empty page"],
+ de: ["Neuer einheitlicher Look: Buttons, Felder, Auswahllisten, Reiter und Dialoge sind Ant-Design-Komponenten in den Farben deines Themes", "Factory: jede Spalte des Boards hat ihren eigenen Scrollbalken", "Behoben: Das Löschen des geöffneten Chats hinterlässt keine leere Seite mehr"],
+ },
"202611-00081": {
en: ["Queued messages can be forced: Enter on the empty input, Ctrl+Enter with text or the \"Force now\" button interrupts the running step so the model reads the message at once (also in the terminal client)", "Terminal client: long input and long questions wrap instead of being cut off; queued messages are shown above the input"],
de: ["Eingereihte Nachrichten lassen sich erzwingen: Enter im leeren Feld, Strg+Enter mit Text oder der Button „Jetzt erzwingen“ unterbricht den laufenden Schritt, sodass das Modell die Nachricht sofort liest (auch im Terminal-Client)", "Terminal-Client: lange Eingaben und lange Fragen werden umbrochen statt abgeschnitten; wartende Nachrichten stehen über dem Eingabefeld"],