feat: robots.txt editor and tester screen

- golem15.seo.robots singleton (UI-SPEC C10): staging callout and the
  served file (P4); the plugin's own extension adds the editor, the
  tester and the AI bots tab, saved to the robots row with history
- field type robotstxt (E4, live lint, size meter; Decode refuses over
  500 KB) and widget golem15-seo-robotstester (E5) on robots_test, which
  tests the unsaved text and switches through grobotstxt
- saving rules that block a noindex address answers robots.blocks_noindex
This commit is contained in:
2026-10-27 11:51:41 +01:00
parent 3dd936202f
commit 51413fbda4
21 changed files with 1336 additions and 26 deletions

View File

@@ -8,9 +8,10 @@ import (
)
// FormFieldTypes registers the SEO field types (classes.FieldTypes):
// seotext, mlseotext, seorobots, mlseorobots and seoimage. Their element
// bundle loads on every admin page, so the SEO tab works on other plugins'
// forms.
// seotext, mlseotext, seorobots, mlseorobots, seoimage and robotstxt.
// Their element bundle loads on every admin page, so the SEO tab works on
// other plugins' forms and the robots.txt tester element (E5) is defined
// wherever its widget renders.
func (p *Plugin) FormFieldTypes() []pact.FormFieldType {
return classes.FieldTypes(func() *backpack.App {
if p == nil {