The dns_record partial draws a record whose tag is "published" and that
has no "In DNS now" (Record.Folded) as a <details> whose summary is the
head - name, tag, "Show values" - with the host, type and value behind
it, as the mockup of fffee9c. Every other record stays a <div>, open.
One partial, so the outbound domain's page, the inbound domain's and
Settings › Notification mail change together; panel.css takes the
mockup's rules, help.go the help's sentence word for word.
Re-check DNS posts and redirects to the page, which is drawn from the
fresh check: a record that has just turned right comes back folded. No
page that draws records polls them, so nothing has to keep a fold open.
Tests: the dns_record partial folds only a published record and closes
the block it opened (TestDNSRecordFoldsOnlyWhenPublished); the mismatch
test reads the folded head. go vet + go test (26 packages) and make e2e
on the test server for this tree.
CHANGELOG [Unreleased]; roadmap row done, its section says what was
decided.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -413,6 +413,11 @@ type Record struct {
|
||||
Problem Text
|
||||
}
|
||||
|
||||
// Folded says the record is drawn folded to its head: DNS holds it as shown,
|
||||
// so its values are of use only to copy again. A record that is missing,
|
||||
// weak, wrong or not checked stays open.
|
||||
func (r Record) Folded() bool { return r.Status.Status == "published" && r.InDNS == "" }
|
||||
|
||||
// HostField is the Copy field of the record's host.
|
||||
func (r Record) HostField() CopyField { return CopyField{Label: "Host / name", Value: r.Host} }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user