Skip to content

test: add unit tests for app store and annotation components, enhancing coverage for state management and UI interactions#34510

Merged
lyzno1 merged 12 commits intomainfrom
refactor/configuration-controller
Apr 3, 2026
Merged

test: add unit tests for app store and annotation components, enhancing coverage for state management and UI interactions#34510
lyzno1 merged 12 commits intomainfrom
refactor/configuration-controller

Conversation

@CodingOnStar
Copy link
Copy Markdown
Contributor

Summary

test: add unit tests for app store and annotation components, enhancing coverage for state management and UI interactions

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran make lint and make type-check (backend) and cd web && npx lint-staged (frontend) to appease the lint gods

CodingOnStar added 4 commits April 3, 2026 10:13
@CodingOnStar CodingOnStar requested a review from lyzno1 April 3, 2026 06:47
@github-actions github-actions Bot added the web This relates to changes on the web. label Apr 3, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 3, 2026

Codecov Report

❌ Patch coverage is 97.90837% with 21 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.75%. Comparing base (64ddec0) to head (d6c19d5).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
...omponents/app/configuration/configuration-view.tsx 82.75% 5 Missing ⚠️
web/app/components/app/log/list-utils.ts 96.33% 4 Missing ⚠️
web/app/components/app/overview/app-card.tsx 93.75% 3 Missing ⚠️
web/app/components/app/app-publisher/sections.tsx 97.26% 2 Missing ⚠️
...app/configuration/hooks/use-configuration-utils.ts 98.88% 2 Missing ⚠️
web/app/components/app/app-publisher/index.tsx 93.75% 1 Missing ⚠️
web/app/components/app/app-publisher/utils.ts 95.45% 1 Missing ⚠️
...figuration/tools/external-data-tool-modal-utils.ts 97.67% 1 Missing ⚠️
web/app/components/app/log/list.tsx 95.00% 1 Missing ⚠️
web/app/components/app/overview/app-card-utils.ts 97.29% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #34510      +/-   ##
==========================================
+ Coverage   82.93%   83.75%   +0.82%     
==========================================
  Files        4139     4169      +30     
  Lines      175022   176511    +1489     
  Branches    34832    35349     +517     
==========================================
+ Hits       145149   147833    +2684     
+ Misses      26998    25803    -1195     
  Partials     2875     2875              
Flag Coverage Δ
web 85.45% <97.90%> (+1.81%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@CodingOnStar CodingOnStar marked this pull request as ready for review April 3, 2026 08:49
@dosubot dosubot Bot added size:XXL This PR changes 1000+ lines, ignoring generated files. javascript Pull requests that update javascript code labels Apr 3, 2026
@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Apr 3, 2026
@lyzno1 lyzno1 added this pull request to the merge queue Apr 3, 2026
Merged via the queue into main with commit 83d4176 Apr 3, 2026
33 checks passed
@lyzno1 lyzno1 deleted the refactor/configuration-controller branch April 3, 2026 09:18
HanqingZ pushed a commit to HanqingZ/dify that referenced this pull request Apr 23, 2026
…ng coverage for state management and UI interactions (langgenius#34510)

Co-authored-by: CodingOnStar <hanxujiang@dify.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

javascript Pull requests that update javascript code lgtm This PR has been approved by a maintainer size:XXL This PR changes 1000+ lines, ignoring generated files. web This relates to changes on the web.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants