Skip to content

v1.2.11 — Consent Records page is cross-platform (fixes #41)

Choose a tag to compare

@mredodos mredodos released this 23 Jun 09:40
26afb59

Fixes GitHub issue #41 (reported by wplit): the Consent Records admin page (and its CSV export) only read WooCommerce orders, so on an Easy Digital Downloads or FluentCart store it showed "WooCommerce is not active" even though consent was being captured.

  • The page now sources its records from the immutable, cross-platform evidence log (event exemption_consent — WooCommerce classic + block, EDD and FluentCart all append there at capture time), so consents from every platform appear. New read-only LogRepository::list_by_event() / count_by_event() (pure SELECTs).
  • The full per-entry evidence (incl. the IP) is read back from the order via the platform adapter when the order still exists; if the order was later deleted, the log's PII-free entries are shown so the evidence survives. New Platform column; CSV gains platform + order_ref.
  • The empty state no longer says "WooCommerce not active".

WooCommerce is fully covered — classic + block both logged exemption_consent since the consent feature first shipped (same commit), so there is no historical gap. Log integrity preserved: strictly a READ-ONLY change — the append-only, hash-chained evidence log is never written to or mutated. PHP lint clean.