yyh
e2913d9ee1
Revert "refactor!: replace Zustand global store with TanStack Query for systemFeatures"
...
This reverts commit 806ece9a67 .
2026-02-01 19:06:45 +08:00
yyh
806ece9a67
refactor!: replace Zustand global store with TanStack Query for systemFeatures
...
Follow-up to SSR prefetch migration (2833965 ). Eliminates the Zustand
middleman that was syncing TanStack Query data into a separate store.
- Remove useGlobalPublicStore Zustand store entirely
- Create hooks/use-global-public.ts with useSystemFeatures,
useSystemFeaturesQuery, useIsSystemFeaturesPending, useSetupStatusQuery
- Migrate all 93 consumers to import from @/hooks/use-global-public
- Simplify global-public-context.tsx to a thin provider component
- Update 18 test files to mock the new hook interface
- Fix SetupStatusResponse.setup_at type from Date to string (JSON)
- Fix setup-status.spec.ts mock target to match consoleClient
BREAKING CHANGE: useGlobalPublicStore is removed. Use useSystemFeatures()
from @/hooks/use-global-public instead.
2026-02-01 19:06:08 +08:00
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
yyh
3dad0b38df
refactor(workflow)!: persist workflowRunningData when closing debug panel
...
Keep test run results (RESULT/DETAIL/TRACING tabs) available after
closing and reopening the debug panel, or switching between Graph
and Skill views.
2026-01-28 21:15:45 +08:00
yyh
a9c5201485
refactor(workflow)!: persist the debug state of the chatflow preview panel to the zustand store and split useChat hook into modular files
2026-01-26 23:21:44 +08:00
hjlarry
fc291e4ca2
Merge remote-tracking branch 'myori/main' into feat/collaboration2
2026-01-17 10:22:41 +08:00
Stephen Zhou
f2842da397
chore(web): new lint setup ( #30020 )
...
Co-authored-by: yyh <yuanyouhuilyz@gmail.com >
2025-12-23 16:58:55 +08:00
hjlarry
edf962cdb5
Merge branch 'feat/collaboration' into feat/collaboration2
2025-11-13 15:31:21 +08:00
Yeuoly
b76e17b25d
feat: introduce trigger functionality ( #27644 )
...
Signed-off-by: lyzno1 <yuanyouhuilyz@gmail.com >
Co-authored-by: Stream <Stream_2@qq.com >
Co-authored-by: lyzno1 <92089059+lyzno1@users.noreply.github.com >
Co-authored-by: zhsama <torvalds@linux.do >
Co-authored-by: Harry <xh001x@hotmail.com >
Co-authored-by: lyzno1 <yuanyouhuilyz@gmail.com >
Co-authored-by: yessenia <yessenia.contact@gmail.com >
Co-authored-by: hjlarry <hjlarry@163.com >
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: WTW0313 <twwu@dify.ai >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-11-12 17:59:37 +08:00
hjlarry
fa09c88f5c
add CollaborationEnabled for comment shortcut
2025-10-22 09:59:43 +08:00
hjlarry
ba17f576e9
Merge remote-tracking branch 'myori/main' into feat/collaboration
2025-10-21 08:47:01 +08:00
crazywoola
f0e739be43
fix: immer version and ref in code base ( #27130 )
2025-10-20 14:49:26 +09:00
lyzno1
f19630bcf5
Merge remote-tracking branch 'origin/main' into feat/collaboration
2025-10-11 14:43:20 +08:00
GuanMu
22f64d60bb
chore: update Dockerfile to use Python 3.12-bookworm and refactor layout logic to utilize ELK for improved node layout ( #26522 )
2025-10-05 12:49:41 +08:00
hjlarry
e240175116
sync nodes
2025-09-25 16:31:46 +08:00
hjlarry
c28a32fc47
fix handleModeComment
2025-09-23 15:35:28 +08:00
-LAN-
85cda47c70
feat: knowledge pipeline ( #25360 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
Co-authored-by: twwu <twwu@dify.ai >
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com >
Co-authored-by: jyong <718720800@qq.com >
Co-authored-by: Wu Tianwei <30284043+WTW0313@users.noreply.github.com >
Co-authored-by: QuantumGhost <obelisk.reg+git@gmail.com >
Co-authored-by: lyzno1 <yuanyouhuilyz@gmail.com >
Co-authored-by: quicksand <quicksandzn@gmail.com >
Co-authored-by: Jyong <76649700+JohnJyong@users.noreply.github.com >
Co-authored-by: lyzno1 <92089059+lyzno1@users.noreply.github.com >
Co-authored-by: zxhlyh <jasonapring2015@outlook.com >
Co-authored-by: Yongtao Huang <yongtaoh2022@gmail.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Joel <iamjoel007@gmail.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: nite-knite <nkCoding@gmail.com >
Co-authored-by: Hanqing Zhao <sherry9277@gmail.com >
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Harry <xh001x@hotmail.com >
2025-09-18 12:49:10 +08:00
GuanMu
25a11bfafc
Export DSL from history ( #24939 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-02 21:36:52 +08:00
Joel
1a1bfd4048
feat: last run frontend ( #21369 )
...
The frontend of feat: Persist Variables for Enhanced Debugging Workflow (#20699 ).
Co-authored-by: jZonG <jzongcode@gmail.com >
2025-06-24 09:10:30 +08:00
zxhlyh
a6827493f0
chore: slice workflow refresh draft hook ( #19292 )
2025-05-06 18:24:10 +08:00
zxhlyh
efe5db38ee
Chore/slice workflow ( #18351 )
2025-04-18 13:59:12 +08:00
crazywoola
8f9cbe1c49
Chore/cleanup warnings ( #17974 )
2025-04-14 11:27:14 +08:00
诗浓
ac850e559f
feat: organize button adds organization of nodes inside iteration/loop nodes ( #17068 )
2025-03-31 15:17:17 +08:00
Nam Vu
2d7954c7da
Fix variable typo ( #8084 )
2024-09-08 13:14:11 +08:00
Yi Xiao
8b06105fa1
Feat: shortcut hook ( #7385 )
2024-08-19 18:11:11 +08:00
KVOJJJin
935e72d449
Feat: conversation variable & variable assigner node ( #7222 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
Co-authored-by: Joel <iamjoel007@gmail.com >
Co-authored-by: -LAN- <laipz8200@outlook.com >
2024-08-13 14:44:10 +08:00
-LAN-
5e6fc58db3
Feat/environment variables in workflow ( #6515 )
...
Co-authored-by: JzoNg <jzongcode@gmail.com >
2024-07-22 15:29:39 +08:00
zxhlyh
984658f5e9
fix: workflow sync before export ( #6380 )
2024-07-17 16:51:48 +08:00
takatost
ec1d3ddee2
feat: support importing and overwriting workflow DSL ( #5511 )
...
Co-authored-by: StyleZhang <jasonapring2015@outlook.com >
2024-06-25 15:46:12 +08:00
zxhlyh
95443bd551
chore: workflow syncing modal ( #5108 )
2024-06-12 16:35:19 +08:00
zxhlyh
a1ab87107b
chore: workflow sync with hash ( #4250 )
2024-05-10 14:48:20 +08:00
Joel
3e992cb23c
feat: code transform node editor support insert var by add slash or left brace ( #3946 )
...
Co-authored-by: StyleZhang <jasonapring2015@outlook.com >
2024-04-28 17:51:58 +08:00
zxhlyh
8e4989ed03
feat: workflow remove preview mode ( #3941 )
2024-04-28 17:09:56 +08:00