Class-wide additive sidecar overlays from feature bundles, with a theme hook registry #304
Labels
No labels
bug
enhancement
needs-triage
ready-for-agent
ready-for-human
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Cloonar/deckle#304
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Let a feature bundle add fields to sidecars it does not own, by class ("every page type", "every block element") rather than by name, together with a collision-free way for the feature to ship the theme partial that consumes them. The motivating case is an SEO feature adding noindex, canonical and social-image fields to every page type and the head partial that renders them.
Context
From a design discussion on 2026-10-15 about TCA-style sidecar extension. Sibling issues: engine capabilities for Access-tab fields, and reusable palettes. Sidecar versioning (#302) is the groundwork.
Today a feature never touches an existing sidecar. The only cross-file edit is the
childrenallowance (docs/features.md "Page-type allowances"), kept textual, soft and revertible. deckle-hosted's private bundles work around this with ahosted-prefix on every element they ship; the contact-form manifest spells out that vendoring an existing element name would collide. Site files override theme files, so two features cannot both shippartials/head.htmleither.Design settled in the discussion
harness checkcould no longer name one file as wrong.after:, because the anchored param differs per element.hugo.toml; the theme ranges that list and callspartials/hooks/<slot>/<feature>.htmlwhen it exists. The list is install order and is the only ordering that exists;harness removereverts the entry. Theme requirements become named capabilities a manifest can require, extending what the news bundle already states in prose ("needs a theme with the l10n partials").Open for triage
group, by container-ness.create-feature,redo-theme,add-page-type,migrate-site.Blocked by