The trace drawer had no way to cancel an in-flight parse — users had to go back to the card/list menu. Add a stop-parse control in the timeline header, shown while parse_status is pending / processing / finalizing (mirroring the backend CancelKnowledgeParse gate and the card/list menus). It is a quiet icon-only button matching the other header controls (refresh / close), revealing its destructive error tint only on hover, and opens an in-app TDesign confirm dialog (not the native window.confirm) before calling the existing cancel-parse API. After cancelling it refetches the spans so the trace reflects the cancelled state. Reuses the existing cancel-parse i18n keys, already present in all locales. |
||
|---|---|---|
| .. | ||
| packages | ||
| public | ||
| src | ||
| .dockerignore | ||
| .gitignore | ||
| Dockerfile | ||
| docker-entrypoint.sh | ||
| env.d.ts | ||
| index.html | ||
| nginx.conf | ||
| package-lock.json | ||
| package.json | ||
| package.json.md5 | ||
| pnpm-workspace.yaml | ||
| tsconfig.app.json | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||