Repository navigation
fix(web): preserve annotation drafts with a positioned dialog - #44810
Merged
Merged
Conversation
hyoban
previously approved these changes
Oct 26, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #44810 +/- ##
=======================================
Coverage 89.43% 89.43%
=======================================
Files 5992 5991 -1
Lines 375786 375783 -3
Branches 76157 76148 -9
=======================================
- Hits 336089 336087 -2
+ Misses 33654 33653 -1
Partials 6043 6043
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
hyoban
approved these changes
Oct 26, 2026
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Failed annotation requests currently close the panel or clear its fields when continuous creation is selected. Keep the draft and display a retryable error instead; close or reset only after a successful save.
Use the existing Dialog anatomy for the right-side modal form, preserving its placement and both avatars. Co-locate the trigger and submission lifecycle, use native Field/Form validation, prevent dismissal and duplicate submission while saving, and return focus through Dialog. Continuous creation clears only the saved fields, keeps its checkbox preference, and focuses the next question.
Route creation through the generated console mutation and invalidate app annotation queries and quota on success. Retain the existing page/export refresh owners and handle unavailable cloud quota with retry.
Fixes #44809
Validation
vp run dify-web#type-checkpassed.vp run -w checkpassed with existing repository warnings.vp stagedpassed; its logical-property fixes and obsolete suppression cleanup are confined to touched annotation files.Screenshots
Visually checked on localhost:3000: right-side placement and user/robot avatars retained; header, body, and footer use the shared Dialog components.
Checklist
vp stagedfor the frontend.From Codex