90d1abeaee
test: improve unit tests for document status and secret key components
...
- Enhance document-status-with-action/index-failed.spec.tsx by adding cleanup after each test and ensuring state updates are properly awaited.
- Update secret-key-button.spec.tsx to improve modal rendering tests by using data-testid for app ID.
- Refactor secret-key-generate.spec.tsx to clarify expectations on modal close behavior.
These changes aim to increase test reliability and maintainability across the affected components.
2026-01-28 19:17:51 +08:00
08d0e534ba
test: enhance unit tests for filter and menu-dropdown components
...
- Update filter.spec.tsx to improve clarity in test descriptions and add new tests for period and annotation status display.
- Refactor menu-dropdown.spec.tsx to utilize screen queries for button interactions, enhancing test reliability and readability.
- Ensure all tests cover expected UI behavior for various states and props.
2026-01-28 17:41:17 +08:00
35eae1f9f4
Merge remote-tracking branch 'origin/main' into test/develop-test
2026-01-28 17:33:32 +08:00
128aa834a9
test: add comprehensive tests for retrieval-param-config component
...
- Add 42 tests covering all component functionality
- Test semantic search mode: rerank toggle, model selection, top_k, score threshold
- Test full text search mode: conditional score threshold visibility
- Test keyword search mode (economical): simplified UI without rerank
- Test hybrid search mode: reranking mode selection, weighted score, model selector
- Test user interactions: toggle callbacks, model selection, parameter changes
- Test multimodal tip display conditions
- Test default weights initialization
- Achieve 100% statement, 96% branch, 100% function, 100% line coverage
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-28 17:28:54 +08:00
cbf5d881df
test: add tests for app/log and app/overview components
...
Add test files for simple/medium complexity components:
- log/filter.spec.tsx: 16 tests for filter component
- log/empty-element.spec.tsx: 10 tests for empty state
- log/var-panel.spec.tsx: 17 tests for variable panel
- log/model-info.spec.tsx: 17 tests for model info display
- configuration/config/automatic/automatic-btn.spec.tsx: 7 tests
- overview/trigger-card.spec.tsx: 20 tests for trigger card
Total: 87 new tests covering 6 components
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-28 17:17:31 +08:00
ccafda9975
test: enhance billing component tests for improved coverage
...
- Add annotation-full/usage.spec.tsx for Usage component tests
- Add utils/index.spec.ts with 24 tests for parseVectorSpaceToMB,
getPlanVectorSpaceLimitMB, and parseCurrentPlan functions
- Enhance pricing/assets/index.spec.tsx with active/inactive state tests
- Enhance billing-page/index.spec.tsx with async callback and error tests
- Enhance plan/index.spec.tsx with pending state and plan type tests
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-28 15:53:15 +08:00
0f6befd0a2
test: add comprehensive tests for datasets components with 95%+ coverage
...
- Add tests for api-access/index.tsx (100% coverage)
- Enhance tests for operations.tsx (95.65% coverage)
- Enhance tests for status-item/index.tsx (93.75% coverage)
- Add tests for simple components: chunk, loading, preview, statistics, empty-folder, no-linked-apps-panel, api/index
- Remove tests for complex component retrieval-param-config
- Test operations: archive, unarchive, enable, disable, sync, pause, resume, delete, download, rename
- Test switch toggles with debounce handling
- Test error notifications and success callbacks
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-28 14:42:43 +08:00
6fff46bc29
feat: summary index ( #31523 )
2026-01-28 11:09:34 +08:00
0c1ffe8eea
test: add comprehensive tests for share/text-generation components with 95%+ coverage
...
- Add tests for utils.ts (isTokenV1, getInitialTokenV2)
- Add tests for info-modal.tsx (rendering, copyright, disclaimer, close)
- Add tests for menu-dropdown.tsx (dropdown, logout, theme switcher)
- Add tests for result/content.tsx (formatting, feedback props)
- Add tests for result/header.tsx (copy, feedback buttons, undo actions)
- Extend run-once tests for select, file, json_object, hidden/optional fields
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-28 10:32:53 +08:00
11259617fa
test: add comprehensive tests for chat-user-input component ( #31595 )
...
Co-authored-by: CodingOnStar <hanxujiang@dify.ai >
Co-authored-by: CodingOnStar <hanxujiang@dify.com >
2026-01-27 20:02:49 +08:00
69eed7b6e5
test: add comprehensive tests for rag-pipeline components, hooks, store, and utils
...
Add 1526 tests across 35 test files for the rag-pipeline folder achieving
99%+ code coverage. Tests cover:
- Components: update-dsl-modal, publish-toast, rag-pipeline-main, input-field
- Hooks: use-DSL, use-pipeline-init, use-pipeline-run, use-pipeline-start-run,
use-nodes-sync-draft, use-pipeline-config, use-pipeline-refresh-draft
- Store: createRagPipelineSliceSlice state and setters
- Utils: processNodesWithoutDataSource node processing logic
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-27 18:24:46 +08:00
5b960eb0d7
test: add comprehensive tests for banner components with 95%+ coverage
...
Add automated tests for all components in the explore/banner folder:
- banner.tsx: 100% coverage
- banner-item.tsx: 98.24% statement coverage
- indicator-button.tsx: 97.05% statement coverage
Tests cover:
- Loading, error, and empty states for Banner component
- Hover and resize behaviors with debounce
- Responsive layout behavior
- Animation and progress indicator functionality
- Click handling and navigation
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-27 17:05:03 +08:00
031c0134c5
test: add comprehensive tests for try-app components with 95%+ coverage
...
Add automated tests for all components in web/app/components/explore/try-app:
- index.tsx and tab.tsx (root components)
- app/index.tsx, app/chat.tsx, app/text-generation.tsx
- app-info/index.tsx, app-info/use-get-requirements.ts
- preview/index.tsx, preview/basic-app-preview.tsx, preview/flow-app-preview.tsx
Test coverage:
- 137 tests passing
- All files exceed 95% coverage threshold
- Tests cover loading states, user interactions, different app modes,
mobile/PC responsive behavior, and edge cases
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-27 16:51:13 +08:00
a8ecd540b4
test: add comprehensive tests for develop components including ApiServer, Code, and SecretKey functionalities
2026-01-27 16:40:55 +08:00
b66bd5f5a8
feat: enhance quota panel with installed providers mapping ( #31546 )
...
Co-authored-by: CodingOnStar <hanxujiang@dify.ai >
Co-authored-by: CodingOnStar <hanxujiang@dify.com >
2026-01-27 15:43:37 +08:00
c8abe1c306
test: add tests for dataset document detail ( #31274 )
...
Co-authored-by: CodingOnStar <hanxujiang@dify.ai >
Co-authored-by: CodingOnStar <hanxujiang@dify.com >
2026-01-27 15:43:27 +08:00
febc9b930d
chore: update react and next version ( #31593 )
2026-01-27 14:06:09 +08:00
d13638f6e4
test: wrap test cleanup in act() to prevent window is not defined error ( #31558 )
...
Signed-off-by: majiayu000 <1835304752@qq.com >
2026-01-27 11:25:14 +08:00
c58647d39c
refactor(web): extract MCP components and add comprehensive tests ( #31517 )
...
Co-authored-by: CodingOnStar <hanxujiang@dify.ai >
Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com >
Co-authored-by: CodingOnStar <hanxujiang@dify.com >
2026-01-27 11:05:59 +08:00
e48419937b
feat: chatflow support multimodal ( #31293 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-27 00:24:48 +08:00
f561656a89
chore: follow-up fixes for storybook vite migration ( #31545 )
2026-01-26 20:20:14 +08:00
47d0e400ae
chore: update to story book nextjs-vite ( #31536 )
2026-01-26 17:07:20 +08:00
8724ba04aa
fix: fix Cannot read properties of null (reading 'credential_form_sch… ( #31117 )
2026-01-26 15:52:53 +08:00
6fd001c660
chore: eslint prune-suppressions ( #31526 )
2026-01-26 15:31:19 +08:00
e8e386a6b9
fix: Add vertical scrolling support for floating elements. ( #30897 )
...
Co-authored-by: zhaiguangpeng <zhaiguangpeng@didiglobal.com >
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2026-01-26 15:17:42 +08:00
dad8e408b0
fix(web): upgrade tanstack devtools to fix seroval RCE vulnerability ( #31515 )
2026-01-26 14:49:58 +08:00
d941201a3e
refactor(tool-selector): remove unused components and consolidate import ( #31018 )
...
Co-authored-by: CodingOnStar <hanxujiang@dify.ai >
2026-01-26 14:24:00 +08:00
dd988d42c2
feat: enhance quota panel to support additional model providers and integrate trial models feature ( #31443 )
...
Co-authored-by: CodingOnStar <hanxujiang@dify.ai >
2026-01-26 14:04:12 +08:00
a43d2ec4f0
refactor: restructure Completed component ( #31435 )
...
Co-authored-by: CodingOnStar <hanxujiang@dify.ai >
2026-01-26 14:03:51 +08:00
b4e2af96e2
chore(deps): bump @lexical/utils from 0.38.2 to 0.39.0 in /web ( #31503 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-26 10:17:04 +08:00
f911199c8e
chore: disable serwist in dev ( #31424 )
...
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2026-01-23 11:35:14 +08:00
c8ae6e39d2
fix: NextStep crash when target node is missing ( #31416 )
2026-01-23 10:15:20 +08:00
356a156f36
chore(i18n): sync translations with en-US ( #31413 )
...
Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com >
Co-authored-by: yyh <92089059+lyzno1@users.noreply.github.com >
2026-01-22 20:56:19 +08:00
e2d7fe9c72
fix(web): use Array.from() for FileList to fix tsc type errors ( #31398 )
2026-01-22 19:51:24 +08:00
b9f718005c
feat: frontend part of support try apps ( #31287 )
...
Co-authored-by: CodingOnStar <hanxujiang@dify.ai >
Co-authored-by: yyh <92089059+lyzno1@users.noreply.github.com >
2026-01-22 18:16:37 +08:00
510a02286f
fix(web): disable single tilde strikethrough in markdown rendering ( #31400 )
...
Signed-off-by: majiayu000 <1835304752@qq.com >
2026-01-22 16:33:17 +08:00
136618b567
fix: more doc link fix ( #31395 )
...
Co-authored-by: Riskey <36894937+RiskeyL@users.noreply.github.com >
2026-01-22 15:18:42 +08:00
036f6ef5ab
fix: following docs link fix ( #31390 )
...
Co-authored-by: Riskey <36894937+RiskeyL@users.noreply.github.com >
2026-01-22 15:02:37 +08:00
4e7c1f4f44
fix: fix visibilityState event handle ( #31354 )
2026-01-22 11:13:14 +08:00
524ce14a68
test: enhance HitTestingPage tests with additional coverage for rende… ( #31355 )
2026-01-21 19:07:20 +08:00
1813b65acb
chore: revert jsdom update ( #31353 )
2026-01-21 18:30:04 +08:00
1d778d532a
refactor(web): useClipboard hook to reduce duplication ( #31308 )
...
Signed-off-by: SherlockShemol <shemol@163.com >
Co-authored-by: Stephen Zhou <38493346+hyoban@users.noreply.github.com >
2026-01-21 17:33:39 +08:00
aa68966b55
test: fix test in #30849 ( #31350 )
2026-01-21 16:46:42 +08:00
117b6c65e4
chore(i18n): sync translations with en-US ( #31342 )
...
Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com >
Co-authored-by: yyh <92089059+lyzno1@users.noreply.github.com >
2026-01-21 16:35:12 +08:00
061feebd87
fix: check and update doc links ( #30849 )
...
Co-authored-by: Riskey <36894937+RiskeyL@users.noreply.github.com >
2026-01-21 16:31:48 +08:00
146ee4d3e9
chore(i18n): sync translations with en-US ( #31332 )
...
Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: yyh <92089059+lyzno1@users.noreply.github.com >
2026-01-21 16:15:58 +08:00
ed0e068a47
fix(i18n): update model provider tip to only mention OpenAI in English, Japanese, and Simplified Chinese translations ( #31339 )
...
Co-authored-by: CodingOnStar <hanxujiang@dify.ai >
2026-01-21 15:47:49 +08:00
d4f5a113ed
chore(web): refactor next.config.js to next.config.ts ( #31331 )
2026-01-21 15:07:32 +08:00
76a0249eaf
feat: enhance ProgressBar and UsageInfo for storage mode ( #31273 )
...
Co-authored-by: CodingOnStar <hanxujiang@dify.ai >
2026-01-21 14:04:33 +08:00
2512227868
chore: update dev config ( #31329 )
2026-01-21 13:49:16 +08:00