web: replace raw YAML editor for DNS handler configs with structured UI#2182
Merged
web: replace raw YAML editor for DNS handler configs with structured UI#2182
Conversation
Replaces the CodeMirror YAML textarea in the DNS zone form with a new `gravity-dns-handler-config-editor` Lit component that renders each handler as a draggable card with type-specific form fields. - Drag-and-drop reordering via HTML5 DnD with visual drop-target feedback - Handler-specific fields: forward_ip/forward_blocky show resolver addresses, cache TTL, network protocol; forward_blocky also exposes allowlists and blocklists; memory/etcd require no configuration - Add/remove handlers via a type-selector dropdown and per-card remove button - PatternFly v4 CSS with full dark-mode support via CSS variables - Integrates with existing form serialisation: reflected `name` attribute and `value` getter return the HandlerConfig[] array directly - HorizontalFormElement updated to propagate `name` to the new element tag Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
✅ Deploy Preview for beryju-gravity canceled.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2182 +/- ##
==========================================
+ Coverage 69.39% 69.41% +0.02%
==========================================
Files 138 138
Lines 7583 7583
==========================================
+ Hits 5262 5264 +2
+ Misses 1787 1786 -1
+ Partials 534 533 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
thanks mr claude