ec5409756e
feat: keep connections when change node ( #31982 )
2026-03-09 13:54:10 +08:00
f2d3feca66
fix(web): fix tool item text not vertically centered in block selector ( #33148 )
2026-03-09 13:38:11 +08:00
1a26e1669b
refactor(web): streamline PopupItem component for credit management
...
- Removed unused context and variables related to workspace and custom configuration.
- Simplified credit usage logic by leveraging state management for better clarity and performance.
- Enhanced readability by restructuring the code for determining credit status and API key activity.
2026-03-09 13:10:29 +08:00
02444af2e3
feat(web): enhance Popup and CreditsFallbackAlert components for better credit management
...
- Integrated trial credits check in the Popup component to conditionally display the CreditsExhaustedAlert.
- Updated the CreditsFallbackAlert to show a message only when API keys are unavailable.
- Removed the fallback description from translation files as it is no longer used.
2026-03-09 12:57:41 +08:00
56038e3684
feat(web): update credits fallback alert to include new description for no API keys
...
- Modified the CreditsFallbackAlert component to display a different message based on the presence of API keys.
- Added a new translation key for the fallback description in both English and Chinese JSON files.
2026-03-09 12:34:41 +08:00
eb9341e7ec
feat(web): integrate CreditsCoin icon in PopupItem for enhanced UI
...
- Replaced the existing credits coin span with the CreditsCoin component for improved visual consistency.
- Updated imports to include the new CreditsCoin icon component.
2026-03-09 12:28:13 +08:00
e40b31b9c4
refactor(web): enhance model selector functionality and improve UI consistency
...
- Removed unnecessary ESLint suppressions for better code quality.
- Updated the ModelParameterModal and ModelSelector components to ensure consistent class ordering.
- Added onHide prop to ModelSelector for better control over dropdown visibility.
- Introduced useChangeProviderPriority hook to manage provider priority changes more effectively.
- Integrated CreditsExhaustedAlert in the Popup component to handle API key status more gracefully.
2026-03-09 12:24:54 +08:00
b89ee4807f
Merge remote-tracking branch 'origin/main' into feat/model-plugins-implementing
...
# Conflicts:
# web/app/components/header/account-setting/model-provider-page/index.spec.tsx
# web/app/components/header/account-setting/model-provider-page/model-modal/index.spec.tsx
# web/app/components/header/account-setting/model-provider-page/model-selector/popup-item.spec.tsx
# web/app/components/header/account-setting/model-provider-page/model-selector/popup.spec.tsx
# web/app/components/header/account-setting/model-provider-page/provider-added-card/credential-panel.spec.tsx
# web/app/components/header/account-setting/model-provider-page/provider-added-card/index.spec.tsx
# web/app/components/header/account-setting/model-provider-page/provider-added-card/quota-panel.spec.tsx
# web/app/components/header/account-setting/model-provider-page/system-model-selector/index.spec.tsx
2026-03-09 12:12:27 +08:00
0590b09958
feat(web): add context menu primitive and dropdown link item ( #33125 )
2026-03-09 12:05:38 +08:00
1811a855ab
chore: update vinext, agentation, remove Prism in lexical ( #33142 )
2026-03-09 11:40:04 +08:00
7dcf94f48f
test: remaining header component and increase branch coverage ( #33052 )
...
Co-authored-by: sahil <sahil@infocusp.com >
2026-03-09 09:18:11 +08:00
7869551afd
fix(web): stabilize dayjs timezone tests against DST transitions ( #33134 )
2026-03-09 09:16:45 +08:00
3d1ef1f7f5
Merge remote-tracking branch 'origin/main' into feat/model-plugins-implementing
2026-03-06 21:45:37 +08:00
a5bcbaebb7
feat(toast): add IToastProps type import to enhance type safety ( #33096 )
...
Co-authored-by: CodingOnStar <hanxujiang@dify.com >
2026-03-06 19:22:55 +08:00
24b14e2c1a
Merge remote-tracking branch 'origin/main' into feat/model-plugins-implementing
2026-03-06 19:00:17 +08:00
f50e44b24a
test: improve coverage for some test files ( #32916 )
...
Signed-off-by: edvatar <88481784+toroleapinc@users.noreply.github.com >
Signed-off-by: -LAN- <laipz8200@outlook.com >
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: majiayu000 <1835304752@qq.com >
Co-authored-by: Poojan <poojan@infocusp.com >
Co-authored-by: sahil-infocusp <73810410+sahil-infocusp@users.noreply.github.com >
Co-authored-by: 非法操作 <hjlarry@163.com >
Co-authored-by: Pandaaaa906 <ye.pandaaaa906@gmail.com >
Co-authored-by: Asuka Minato <i@asukaminato.eu.org >
Co-authored-by: heyszt <270985384@qq.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Ijas <ijas.ahmd.ap@gmail.com >
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: 木之本澪 <kinomotomiovo@gmail.com >
Co-authored-by: KinomotoMio <200703522+KinomotoMio@users.noreply.github.com >
Co-authored-by: 不做了睡大觉 <64798754+stakeswky@users.noreply.github.com >
Co-authored-by: User <user@example.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: edvatar <88481784+toroleapinc@users.noreply.github.com >
Co-authored-by: -LAN- <laipz8200@outlook.com >
Co-authored-by: Leilei <138381132+Inlei@users.noreply.github.com >
Co-authored-by: HaKu <104669497+haku-ink@users.noreply.github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: wangxiaolei <fatelei@gmail.com >
Co-authored-by: Varun Chawla <34209028+veeceey@users.noreply.github.com >
Co-authored-by: Stephen Zhou <38493346+hyoban@users.noreply.github.com >
Co-authored-by: yyh <yuanyouhuilyz@gmail.com >
Co-authored-by: yyh <92089059+lyzno1@users.noreply.github.com >
Co-authored-by: tda <95275462+tda1017@users.noreply.github.com >
Co-authored-by: root <root@DESKTOP-KQLO90N>
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai >
Co-authored-by: Niels Kaspers <153818647+nielskaspers@users.noreply.github.com >
Co-authored-by: hj24 <mambahj24@gmail.com >
Co-authored-by: Tyson Cung <45380903+tysoncung@users.noreply.github.com >
Co-authored-by: Stephen Zhou <hi@hyoban.cc >
Co-authored-by: FFXN <31929997+FFXN@users.noreply.github.com >
Co-authored-by: slegarraga <64795732+slegarraga@users.noreply.github.com >
Co-authored-by: 99 <wh2099@pm.me >
Co-authored-by: Br1an <932039080@qq.com >
Co-authored-by: L1nSn0w <l1nsn0w@qq.com >
Co-authored-by: Yunlu Wen <yunlu.wen@dify.ai >
Co-authored-by: akkoaya <151345394+akkoaya@users.noreply.github.com >
Co-authored-by: 盐粒 Yanli <yanli@dify.ai >
Co-authored-by: lif <1835304752@qq.com >
Co-authored-by: weiguang li <codingpunk@gmail.com >
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com >
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com >
Co-authored-by: HanWenbo <124024253+hwb96@users.noreply.github.com >
Co-authored-by: Coding On Star <447357187@qq.com >
Co-authored-by: CodingOnStar <hanxujiang@dify.com >
Co-authored-by: Stable Genius <stablegenius043@gmail.com >
Co-authored-by: Stable Genius <259448942+stablegenius49@users.noreply.github.com >
Co-authored-by: ふるい <46769295+Echo0ff@users.noreply.github.com >
Co-authored-by: Xiyuan Chen <52963600+GareArc@users.noreply.github.com >
2026-03-06 18:59:16 +08:00
09347d5e8b
chore: fix account dropdown test ( #33093 )
2026-03-06 18:19:02 +08:00
53f122f717
Merge branch 'feat/model-provider-refactor' into feat/model-plugins-implementing
2026-03-06 17:33:38 +08:00
299a893ac5
chore: bring back code-inspector-plugin and agentation ( #33088 )
...
Co-authored-by: zhsama <zhsama@users.noreply.github.com >
2026-03-06 17:01:18 +08:00
fced2f9e65
refactor: enhance plugin management UI with error handling, improved rendering, and new components
2026-03-06 16:27:26 +08:00
0c08c4016d
Merge remote-tracking branch 'origin/main' into feat/model-provider-refactor
2026-03-06 14:57:48 +08:00
f05f0be55f
chore: use react-grab to replace code-inspector-plugin ( #33078 )
2026-03-06 14:54:24 +08:00
ff4e4a8d64
refactor: enhance model trigger component with internationalization support and improved tooltip handling
2026-03-06 14:50:23 +08:00
948efa129f
Merge remote-tracking branch 'origin/main' into feat/model-provider-refactor
2026-03-06 14:47:56 +08:00
0490756ab2
chore: add support email env ( #33075 )
2026-03-06 14:29:29 +08:00
e371bfd676
refactor: enhance model provider management with new icons, improved UI elements, and marketplace integration
2026-03-06 14:18:29 +08:00
d1eaa41dd1
fix(i18n): correct French translation of "disabled" from medical term to UI-appropriate term ( #33067 )
...
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com >
2026-03-06 09:57:43 +08:00
98ba091a50
chore(deps): bump dompurify from 3.3.0 to 3.3.2 in /web ( #33062 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-06 06:48:59 +09:00
6d612c0909
test: improve Jotai atom test quality and add model-provider atoms tests
...
Replace dynamic imports with static imports in marketplace atom tests.
Convert type-only and not-toThrow assertions into proper state-change
verifications. Add comprehensive test suite for model-provider-page
atoms covering all four hooks, cross-hook interaction, selectAtom
granularity, and Provider isolation.
2026-03-05 22:49:09 +08:00
f049bafcc3
refactor: simplify Jotai atoms by removing redundant write-only atoms
...
Replace 2 write-only derived atoms with primitive atom's built-in
updater functions. The selectAtom on the read side already prevents
unnecessary re-renders, making the manual guard logic redundant.
2026-03-05 20:25:29 +08:00
dd9c526447
refactor: update model-selector popup-item to support collapsible items and improve icon color handling
2026-03-05 16:45:37 +08:00
922dc71e36
fix
2026-03-05 16:17:38 +08:00
f03ec7f671
Merge branch 'main' into feat/model-provider-refactor
2026-03-05 16:14:36 +08:00
29f275442d
Merge remote-tracking branch 'origin/main' into feat/model-provider-refactor
...
# Conflicts:
# web/app/components/header/account-setting/model-provider-page/provider-added-card/credential-panel.spec.tsx
# web/app/components/header/account-setting/model-provider-page/provider-added-card/credential-panel.tsx
# web/app/components/header/account-setting/model-provider-page/system-model-selector/index.tsx
2026-03-05 16:13:40 +08:00
ebda5efe27
chore: prevent Storybook crash caused by vite-plugin-inspect ( #33039 )
2026-03-05 16:13:02 +08:00
c9532ffd43
add stories
2026-03-05 15:55:21 +08:00
f487b680f5
refactor: spilt context for better hmr ( #33033 )
2026-03-05 15:54:56 +08:00
840dc33b8b
Merge remote-tracking branch 'origin/main' into feat/model-provider-refactor
2026-03-05 15:12:32 +08:00
f3c840a60e
fix: workflow canvas sync ( #33030 )
2026-03-05 15:08:37 +08:00
cae58a0649
Merge remote-tracking branch 'origin/main' into feat/model-provider-refactor
2026-03-05 15:08:13 +08:00
1752edc047
refactor(web): optimize model provider re-render and remove useEffect state sync
...
- Replace useEffect state sync with derived state pattern in useSystemDefaultModelAndModelList
- Use useCallback instead of useMemo for function memoization in useProviderCredentialsAndLoadBalancing
- Add memo() to ProviderAddedCard and CredentialPanel to prevent unnecessary re-renders
- Switch to useProviderContextSelector for precise context subscription in ProviderAddedCard
- Stabilize activate callback ref in useActivateCredential via supportedModelTypes ref
- Add usage priority tooltip with i18n support
2026-03-05 15:07:53 +08:00
1819b87a56
test(workflow): add validation tests for workflow and node component rendering part 3 ( #33012 )
...
Co-authored-by: CodingOnStar <hanxujiang@dify.com >
2026-03-05 14:34:07 +08:00
7471c32612
Revert "temp: remove IS_CLOUD_EDITION guard from supportsCredits for local testing"
...
This reverts commit ab87ac333a .
2026-03-05 14:33:48 +08:00
2d333bbbe5
refactor(web): extract credential activation into hook and migrate credential-item overlays
...
Extract credential switching logic from dropdown-content into a dedicated
useActivateCredential hook with optimistic updates and proper data flow
separation. Credential items now stay visible in the popover after clicking
(no auto-close), show cursor-pointer, and disable during activation.
Migrate credential-item from legacy Tooltip and remixicon imports to
base-ui Tooltip and CSS icon classes, pruning stale ESLint suppressions.
2026-03-05 14:22:39 +08:00
4af6788ce0
fix(web): wrap Header test in Dialog context for base-ui compatibility
2026-03-05 14:20:35 +08:00
24b072def9
fix: lint
2026-03-05 14:08:20 +08:00
909c8c3350
Merge remote-tracking branch 'origin/main' into feat/model-provider-refactor
2026-03-05 13:58:51 +08:00
89a859ae32
refactor: simplify oauthNewUser state handling in AppInitializer component ( #33019 )
...
Co-authored-by: CodingOnStar <hanxujiang@dify.com >
2026-03-05 13:53:20 +08:00
80e9c8bee0
refactor(web): make account setting fully controlled with action props
2026-03-05 13:39:36 +08:00
15b7b304d2
refactor(web): migrate model-modal overlays to base-ui Dialog and AlertDialog
...
Replace legacy PortalToFollowElem and Confirm with Dialog/AlertDialog
primitives. Remove manual ESC handler and backdrop div — now handled
natively by base-ui. Add backdropProps={{ forceRender: true }} for
correct nested overlay rendering.
2026-03-05 13:33:53 +08:00