Skip to content

fix(web): set app card dropdown menu to non-modal#35302

Merged
lyzno1 merged 1 commit intomainfrom
cursor/app-card-dropdown-non-modal
Apr 16, 2026
Merged

fix(web): set app card dropdown menu to non-modal#35302
lyzno1 merged 1 commit intomainfrom
cursor/app-card-dropdown-non-modal

Conversation

@lyzno1
Copy link
Copy Markdown
Member

@lyzno1 lyzno1 commented Apr 16, 2026

Summary

  • Set modal={false} on the app card operations DropdownMenu so it no longer traps focus or blocks interaction with elements outside the menu. This is the expected behavior for a lightweight context menu on card lists.
  • Updated the dropdown-menu mock in tests to forward the modal prop and added a test asserting modal={false}.

From Cursor

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 && make type-check (backend) and cd web && pnpm exec vp staged (frontend) to appease the lint gods

Made with Cursor

The operations dropdown on AppCard used the default modal behavior,
which traps focus and blocks outside interaction. Set modal={false}
so the menu behaves as a lightweight popup suitable for card lists.

Made-with: Cursor
@github-actions github-actions Bot added the web This relates to changes on the web. label Apr 16, 2026
@lyzno1 lyzno1 marked this pull request as ready for review April 16, 2026 05:27
@lyzno1 lyzno1 requested review from JzoNgKVO and iamjoel as code owners April 16, 2026 05:27
@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Apr 16, 2026
@lyzno1 lyzno1 enabled auto-merge April 16, 2026 05:29
Copy link
Copy Markdown
Contributor

@CodingOnStar CodingOnStar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Apr 16, 2026
@lyzno1 lyzno1 added this pull request to the merge queue Apr 16, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.07%. Comparing base (c661d5c) to head (b952a9d).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #35302      +/-   ##
==========================================
- Coverage   85.07%   85.07%   -0.01%     
==========================================
  Files        4396     4396              
  Lines      201630   201630              
  Branches    38301    38301              
==========================================
- Hits       171540   171534       -6     
- Misses      26987    26993       +6     
  Partials     3103     3103              
Flag Coverage Δ
web 86.27% <ø> (-0.01%) ⬇️

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.

Merged via the queue into main with commit c3eff6a Apr 16, 2026
33 checks passed
@lyzno1 lyzno1 deleted the cursor/app-card-dropdown-non-modal branch April 16, 2026 05:45
HanqingZ pushed a commit to HanqingZ/dify that referenced this pull request Apr 23, 2026
asukaminato0721 pushed a commit to asukaminato0721/dify that referenced this pull request Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 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