fix: the robots element follows the Go grammar and keeps a value it cannot parse (WR-24)
parseRobots accepted 2027-02-30 (Date.parse rolls it over) and refused max-snippet:+5, both unlike classes/robots_value.go. A value it could not parse showed every group as Inherit and the first click serialised the empty model, dropping the stored directives. Dates are now checked as calendar dates, a sign is accepted, and an unparsed value is kept with a note, the controls off and an explicit Reset.
This commit is contained in:
@@ -242,6 +242,27 @@ golem15-seo-robots .seo-robots__check input {
|
||||
accent-color: var(--c-primary);
|
||||
}
|
||||
|
||||
golem15-seo-robots .seo-robots__unparsed {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
margin-bottom: 12px;
|
||||
color: var(--c-danger);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
golem15-seo-robots .seo-robots__reset {
|
||||
min-height: 32px;
|
||||
padding: 0 12px;
|
||||
border: 1px solid var(--c-border);
|
||||
border-radius: 8px;
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
font: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
golem15-seo-robots.seo-robots--invalid .seo-robots__track {
|
||||
border-color: var(--c-danger);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user