OpenRAG is a comprehensive, single package Retrieval-Augmented Generation platform built on Langflow, Docling, and Opensearch.
Python
feat: Add error handling for failed file entries in TaskNotificationMenu (#1512)
Rico Furtadoaab3b29aa3a3
diff --git a/frontend/components/task-notification-menu.tsx b/frontend/components/task-notification-menu.tsxindex b37b045d0..99a68cdfa 100644--- a/frontend/components/task-notification-menu.tsx+++ b/frontend/components/task-notification-menu.tsx@@ -380,6 +380,21 @@ export function TaskNotificationMenu() {</Button></div>)}+ {hasFailedFileEntries(task) && (+ <div className="mt-3">+ <TaskErrorContent+ task={task}+ mode="recent"+ showHeader={false}+ defaultExpanded={true}+ expandTrigger={+ selectedTaskId === task.task_id+ ? selectedTaskTrigger+ : 0+ }+ />+ </div>+ )}</CardContent>)}</Card>diff --git a/frontend/package-lock.json b/frontend/package-lock.jsonindex 550602d49..8be5f2748 100644--- a/frontend/package-lock.json+++ b/frontend/package-lock.json@@ -1533,6 +1533,7 @@"integrity": "sha512-6TyEnHgd6SArQO8UO2OMTxshln3QMWBtPGrOCgs3wVEmQmwyuNtB10IZMfmYDE0riwNR1cu4q+pPcxMVtaG3TA==","devOptional": true,"license": "Apache-2.0",+ "peer": true,"dependencies": {"playwright": "1.57.0"},@@ -2903,6 +2904,7 @@"integrity": "sha512-yCAeZl7a0DxgNVteXFHt9+uyFbqXGy/ShC4BlcHkoE0AfGXYv/BUiplV72DjMYXHDBXFjhvr6DD1NiRVfB4j8g==","dev": true,"license": "MIT",+ "peer": true,"dependencies": {"undici-types": "~6.21.0"}@@ -2918,6 +2920,7 @@"resolved": "https://registry.npmjs.org/@types/react/-/react-19.1.12.tgz","integrity": "sha512-cMoR+FoAf/Jyq6+Df2/Z41jISvGZZ2eTlnsaJRptmZ76Caldwy1odD4xTr/gNV9VLj0AWgg/nmkevIyUfIIq5w==","license": "MIT",+ "peer": true,"dependencies": {"csstype": "^3.0.2"}@@ -2928,6 +2931,7 @@"integrity": "sha512-qXRuZaOsAdXKFyOhRBg6Lqqc0yay13vN7KrIg4L7N4aaHN68ma9OK3NE1BoDFgFOTfM7zg+3/8+2n8rLUH3OKQ==","devOptional": true,"license": "MIT",+ "peer": true,"peerDependencies": {"@types/react": "^19.0.0"}@@ -2992,6 +2996,7 @@"integrity": "sha512-klQbnPAAiGYFyI02+znpBRLyjL4/BrBd0nyWkdC0s/6xFLkXYQ8OoRrSkqacS1ddVxf/LDyODIKbQ5TgKAf/Fg==","dev": true,"license": "MIT",+ "peer": true,"dependencies": {"@typescript-eslint/scope-manager": "8.56.1","@typescript-eslint/types": "8.56.1",@@ -3579,6 +3584,7 @@"integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==","dev": true,"license": "MIT",+ "peer": true,"bin": {"acorn": "bin/acorn"},@@ -4081,6 +4087,7 @@}],"license": "MIT",+ "peer": true,"dependencies": {"caniuse-lite": "^1.0.30001737","electron-to-chromium": "^1.5.211",@@ -4938,6 +4945,7 @@"integrity": "sha512-VmQ+sifHUbI/IcSopBCF/HO3YiHQx/AVd3UVyYL6weuwW+HvON9VYn5l6Zl1WZzPWXPNZrSQpxwkkZ/VuvJZzg==","dev": true,"license": "MIT",+ "peer": true,"dependencies": {"@eslint-community/eslint-utils": "^4.8.0","@eslint-community/regexpp": "^4.12.1",@@ -5111,6 +5119,7 @@"integrity": "sha512-whOE1HFo/qJDyX4SnXzP4N6zOWn79WhnCUY/iDR0mPfQZO8wcYE4JClzI2oZrhBnnMUCBCHZhO6VQyoBU95mZA==","dev": true,"license": "MIT",+ "peer": true,"dependencies": {"@rtsao/scc": "^1.1.0","array-includes": "^3.1.9",@@ -6894,6 +6903,7 @@"resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.7.tgz","integrity": "sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==","license": "MIT",+ "peer": true,"bin": {"jiti": "bin/jiti.js"}@@ -9041,7 +9051,6 @@"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz","integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==","license": "MIT",- "peer": true,"engines": {"node": ">=12"},@@ -9156,6 +9165,7 @@}],"license": "MIT",+ "peer": true,"dependencies": {"nanoid": "^3.3.11","picocolors": "^1.1.1",@@ -9332,6 +9342,7 @@"resolved": "https://registry.npmjs.org/react/-/react-19.1.1.tgz","integrity": "sha512-w8nqGImo45dmMIfljjMwOGtbmC/mk4CMYhWIicdSflH91J9TyCyczcPFXJzrZ/ZXcgGRFeP6BU0BEJTw6tZdfQ==","license": "MIT",+ "peer": true,"engines": {"node": ">=0.10.0"}@@ -9341,6 +9352,7 @@"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.1.1.tgz","integrity": "sha512-Dlq/5LAZgF0Gaz6yiqZCf6VCcZs1ghAJyrsu84Q/GT0gV+mCxbfmKNoGRKBYMJ8IEdGPqu49YWXD02GCknEDkw==","license": "MIT",+ "peer": true,"dependencies": {"scheduler": "^0.26.0"},@@ -10577,6 +10589,7 @@"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.17.tgz","integrity": "sha512-w33E2aCvSDP0tW9RZuNXadXlkHXqFzSkQew/aIa2i/Sj8fThxwovwlXHSPXTbAHwEIhBFXAedUhP2tueAKP8Og==","license": "MIT",+ "peer": true,"dependencies": {"@alloc/quick-lru": "^5.2.0","arg": "^5.0.2",@@ -10750,19 +10763,6 @@}}},- "node_modules/tinyglobby/node_modules/picomatch": {- "version": "4.0.3",- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz",- "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/sponsors/jonschlinkert"- }- },"node_modules/to-regex-range": {"version": "5.0.1","resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",@@ -10935,6 +10935,7 @@"integrity": "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==","dev": true,"license": "Apache-2.0",+ "peer": true,"bin": {"tsc": "bin/tsc","tsserver": "bin/tsserver"diff --git a/frontend/tsconfig.json b/frontend/tsconfig.jsonindex 4b73c4bcc..705f5ce5e 100644--- a/frontend/tsconfig.json+++ b/frontend/tsconfig.json@@ -11,7 +11,7 @@"moduleResolution": "bundler","resolveJsonModule": true,"isolatedModules": true,- "jsx": "preserve",+ "jsx": "react-jsx","incremental": true,"plugins": [{