Skip to content

Publish the app-hook contract and clean starter defaults #33

Description

@next-devin

Problem: Spark has 10+ {% app_hook %} sites but no published contract, so an app developer must grep the theme to discover them. The public theme docs document only two global hooks. Separately, the public schema ships one merchant-specific metadata key as a default, and PLAN.md disagrees with the README on the Web Component count.

Evidence: hook sites across layouts/base.html, templates/catalogue/product.html, partials/product_card.html, templates/index.html; TODOS.md:26-31 (promote the hook list to a documented public contract); configs/settings_schema.json:827 and layouts/base.html:208 (merchant-specific default); PLAN.md:15 (five vs six components).

Done when:

  • The hook inventory is published in Spark docs with naming conventions and a versioning policy.
  • The membership metadata key default is neutral, with the old value documented as a migration note.
  • PLAN.md matches the shipped component count.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions