Skip to content

fix(web): keep dataset rename open while saving - #44715

Merged
crazywoola merged 2 commits into
langgenius:mainfrom
Winoren:fix/dataset-rename-pending
Oct 30, 2026
Merged

crazywoola merged 2 commits into
langgenius:mainfrom
Winoren:fix/dataset-rename-pending

Conversation

@Winoren

@Winoren Winoren commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Refs #43891: keep a pending dataset rename open and preserve the edited draft when saving fails. This does not close the broader dialog migration issue.

Updated against upstream main 430d9aff, which separates the controlled Dialog root from its mounted form. Keep submission state at their nearest shared owner so the Dialog can cancel pending dismissal while the form keeps ownership of its editable draft.

  • Cancel root-level dismissal while saving; disable Cancel and the header close control.
  • Ignore another form submission while the request is pending.
  • Close through the existing success callback only after a successful save; failure keeps the draft available for retry.
  • Preserve upstream's current open/onOpenChange API, form mounting, payload assembly, and icon picker.

Validation

  • Latest upstream implementation: the migrated regression fails (1 failed, 14 passed), with Cancel, the close icon, and Escape each requesting closure during the pending rename.
  • Updated implementation: all 15 module tests pass; 49 tests across rename, dataset-list, and dataset-card suites pass.
  • Full Web tsrs --runExternalCode --noEmit: passed.
  • vp run -w check: passed, 0 errors (existing repository warnings).
  • Targeted vp check: passed with no warnings or lint errors in the two modified files.
  • git diff --check: passed. Only the original two-file PR scope remains relative to upstream main.

No local full application E2E or manual browser testing was performed. Remote CI must run on this updated head; prior green CI does not certify the update.

Screenshots

No layout change. Existing pending and disabled treatments are used.

Checklist

  • I understand that this PR may be closed in case there was no previous discussion or issues.
  • I've verified the change and added or updated tests where meaningful regression risk justifies coverage.

AI assistance was used to adapt the fix to the upstream component changes and run the validation described above.

From Codex

@Winoren
Winoren requested a review from iamjoel as a code owner October 24, 2026 16:43
@github-actions github-actions Bot added size:M This PR changes 30-99 lines, ignoring generated files. web This relates to changes on the web. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Oct 24, 2026
@codecov

codecov Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.54%. Comparing base (430d9af) to head (6e1e476).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #44715      +/-   ##
==========================================
- Coverage   89.54%   89.54%   -0.01%     
==========================================
  Files        6009     6008       -1     
  Lines      376984   376951      -33     
  Branches    76320    76313       -7     
==========================================
- Hits       337559   337522      -37     
- Misses      33428    33432       +4     
  Partials     5997     5997              
Flag Coverage Δ
dify-ui 92.65% <ø> (ø)
web 89.50% <100.00%> (-0.01%) ⬇️

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

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

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions github-actions Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Oct 24, 2026
@crazywoola
crazywoola added this pull request to the merge queue Oct 30, 2026
Merged via the queue into langgenius:main with commit 4057aa6 Oct 30, 2026
52 checks passed
@laipz8200 laipz8200 mentioned this pull request Nov 3, 2026
1 task done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M This PR changes 30-99 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