Three packs: contact forms, tables and a changelog #26

Merged
jcoffey-dev merged 1 commits from packs/forms-tables-changelog into main 2026-10-14 20:09:59 +00:00
Owner

Three new bundled packs, picked from the most-used WordPress plugin features we didn't cover yet.

  • contact-forms: a quote request, a booking request and a mailing list sign-up, plus a Contact form section that puts any form (the starter's contact form too) beside an email, phone, address and a note.
  • tables: a table from a spreadsheet saved as CSV in data/ (or YAML/JSON), with a caption, row headings, numbers on the right, compact rows, and sideways scrolling on phones. No sorting or filtering: those need a script.
  • changelog: a page per release, every release on one page with anchors, an Atom feed, a What's new section and a latest-release partial. Security and breaking releases are marked.

Engine changes they need:

  • data/*.csv loads as rows of cells.
  • Packs can bring forms. A form is copied once and is the site's own after that: upgrades and removal leave it alone, and a site's own form with the same name is kept. A pack's form must send to a placeholder address (example.org and the other RFC 2606 names) and can't set Turnstile, so a pack can't route anyone's submissions or add another site's script.
  • New check warning form-placeholder for forms still sending to a placeholder. The starter's contact form gets it until its address is set.
  • A form's success: can no longer start with // or /\, which browsers read as another site.

Checked: gofmt, go vet and go test ./... pass locally. A demo site with all three packs was looked at in Chrome, light and dark, at desktop and phone widths.

Three new bundled packs, picked from the most-used WordPress plugin features we didn't cover yet. - **contact-forms**: a quote request, a booking request and a mailing list sign-up, plus a Contact form section that puts any form (the starter's contact form too) beside an email, phone, address and a note. - **tables**: a table from a spreadsheet saved as CSV in `data/` (or YAML/JSON), with a caption, row headings, numbers on the right, compact rows, and sideways scrolling on phones. No sorting or filtering: those need a script. - **changelog**: a page per release, every release on one page with anchors, an Atom feed, a What's new section and a `latest-release` partial. Security and breaking releases are marked. Engine changes they need: - `data/*.csv` loads as rows of cells. - Packs can bring forms. A form is copied once and is the site's own after that: upgrades and removal leave it alone, and a site's own form with the same name is kept. A pack's form must send to a placeholder address (example.org and the other RFC 2606 names) and can't set Turnstile, so a pack can't route anyone's submissions or add another site's script. - New check warning `form-placeholder` for forms still sending to a placeholder. The starter's contact form gets it until its address is set. - A form's `success:` can no longer start with `//` or `/\`, which browsers read as another site. Checked: gofmt, go vet and `go test ./...` pass locally. A demo site with all three packs was looked at in Chrome, light and dark, at desktop and phone widths.
jcoffey-dev added 1 commit 2026-10-14 19:58:53 +00:00
Three packs: contact forms, tables and a changelog
ci / editor-ui (pull_request) Successful in 30s
ci / go (pull_request) Successful in 1m56s
5d628689c1
contact-forms brings a quote request, a booking request and a mailing list
sign-up, and a Contact form section that shows any form beside an email,
phone, address and a note. tables shows a table from a spreadsheet saved as
CSV (or YAML or JSON) in data/, with a caption, row headings, numbers on the
right, and sideways scrolling on phones. changelog gives a page per release,
every release on one page, a feed, a What's new section and a latest-release
partial; notes grouped under Keep a Changelog headings show as labels.

To make them possible:
- data/*.csv files load as rows of cells, for the data function and the
  editor's data picker.
- Packs can bring forms (forms/<name>.yaml). A form is copied once and is the
  site's own from then on: upgrades and removal leave it, and a site's own
  form of that name is kept. A pack's form must send to a placeholder address
  (example.org and the other RFC 2606 names) and can't set Turnstile, so a
  pack can't route a site's submissions or add another site's script.
- A new check warning, form-placeholder, for forms that still send to or show
  a placeholder address (the starter's contact form does until it's set).
- A form's success path can no longer start with // or /\, which browsers
  treat as another site.
jcoffey-dev merged commit 0896b4a710 into main 2026-10-14 20:09:59 +00:00
jcoffey-dev deleted branch packs/forms-tables-changelog 2026-10-14 20:09:59 +00:00
Sign in to join this conversation.