Skip to content

v1.0.29

Choose a tag to compare

@nera-minhle nera-minhle released this 12 Jun 10:07
· 38 commits to main since this release

Nera – Instant Win Rules v1.0.29

Admin — Export / import

  • Faster large imports — Nera Rule Type / Ticket % columns are re-read only for the current import batch (byte offset bounds), not the entire CSV on every batch.
  • Safe cross-product copy — Uploading a CSV exported from another competition blanks foreign rule IDs so LFW creates new rules under the target product instead of updating (and corrupting) the source.
  • Ticket range guard — Import rows with out-of-range numeric ticket numbers fail with the same validation as the inline Add/Save flows.
  • Display-mode mismatch guard — Group-mode CSV rows cannot silently import into a Default-mode product; the row fails with an actionable error. Deliberate flatten still possible via nera_iwt_allow_import_mode_mismatch.
  • Export scope — CSV export continues to include Rule Type + Ticket % only (Schedule datetimes intentionally excluded while Schedule Prize type is off by default).

REST — Instant wins API

  • Group display mode — Products set to "Display Prizes by Group" now receive a proper grouped REST payload: prize groups with tickets[], winner details, and merged rule visibility across logs in each group.
  • Default mode — Existing flat payload preserved; adds display_mode: "default" for clients to branch on.
  • Shared schedule logic — Schedule display fields derived via one helper for parity between modes.

Removed

  • Internal dev test scripts (not included in the distributable zip).

Upgrade

Sites on v1.0.28 can update via WordPress Dashboard → Updates (Plugin Update Checker). No database migration required.