dify/web/app/components/rag-pipeline
yyh f16516549e
feat(workflow): add clear button to workflow test run panel
Features:
- Add refresh button to clear test run history (data, inputs, node highlights)
- Persist workflowRunningData when closing panel (from previous commit)

Code quality improvements:
- Refactor to declarative pattern: effectiveTab derived from state, not set in effects
- Replace && with ternary operators for conditional rendering (Vercel best practices)
- Fix created_by type: change from string to object to match backend API
- Remove `as any` type assertion, use proper type-safe access
- Title now declaratively shows status based on workflowRunningData presence

Files changed:
- use-workflow-interactions.ts: add handleClearWorkflowRunHistory hook
- workflow-preview.tsx: declarative tab state, clear button, type-safe props
- types.ts: fix created_by type definition
- test files: update mock data to match corrected types
2026-01-28 22:48:27 +08:00
..
components feat(workflow): add clear button to workflow test run panel 2026-01-28 22:48:27 +08:00
hooks Merge branch 'feat/collaboration2' into feat/support-agent-sandbox 2026-01-25 00:00:03 +08:00
store chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
utils chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
index.spec.tsx test: add unit tests for PluginPage and related components (#30908) 2026-01-15 10:56:02 +08:00
index.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00