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:
2026-10-27 15:43:32 +01:00
parent 4ca26e9a89
commit 923d0f9c3a
7 changed files with 121 additions and 10 deletions

View File

@@ -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);
}