Skip to content

Add the admin loyalty accounts grid - #36

Open
loevgaard wants to merge 1 commit into
masterfrom
pr/36-admin-accounts-grid
Open

loevgaard wants to merge 1 commit into
masterfrom
pr/36-admin-accounts-grid

Conversation

@loevgaard

@loevgaard loevgaard commented Jul 14, 2026 •

Copy link
Copy Markdown
Member

Base master. First of the admin stack: #36 (grid) → #37 (ledger inspector) → #38 (dashboard + menu) → #39 (README).

What

A read-only admin oversight grid of loyalty accounts (customer, channel, balance, lifetime earned, status), filterable by customer, channel and status. Balances derive from the append-only ledger, so accounts are listed, not hand-edited (index-only, no create/update).

The grid has no menu entry of its own — it's reached from the loyalty dashboard (#38), which owns the single "Loyalty" Marketing-menu item. So in this PR the grid is reachable by URL (/admin/accounts/); the dashboard wires up the navigation.

How

  • LoyaltyAccountGrid (PHP grid, sylius.grid tag) + the enabled grid-field template + admin resource routing (index only).
  • English translations for the labels.

Adds sylius/grid-bundle to require and symfony/browser-kit + symfony/css-selector to require-dev (WebTestCase).

Tests

  • Functional (WebTestCase) — lists a seeded account.
  • Playwright — listing and filtering by status.

Green: PHPStan max, ECS, Rector, lint:container, full PHPUnit (201) and the full Playwright suite (9).

@loevgaard
loevgaard changed the base branch from pr/35-gdpr-erase to master July 16, 2026 10:50
@loevgaard
loevgaard force-pushed the pr/36-admin-accounts-grid branch from c26d092 to 5bcfb21 Compare July 16, 2026 10:50
@loevgaard loevgaard changed the title Add the admin loyalty accounts grid + Marketing menu entry Add the admin loyalty accounts grid Jul 16, 2026
A read-only admin oversight grid of loyalty accounts (customer, channel,
balance, lifetime earned, status), filterable by customer, channel and
status. Balances derive from the append-only ledger, so accounts are
listed rather than hand-edited (index-only, no create/update).

The grid is reached from the loyalty dashboard (added in a later PR),
which owns the single admin menu entry.

- LoyaltyAccountGrid (PHP grid, sylius.grid tag) + the enabled grid-field
  template + admin resource routing (index only).
- English translations for the labels.

Adds sylius/grid-bundle to require and symfony/browser-kit +
symfony/css-selector to require-dev (WebTestCase).

Tests: a WebTestCase that lists a seeded account; Playwright specs for
listing and filtering by status.
@loevgaard
loevgaard force-pushed the pr/36-admin-accounts-grid branch from 5bcfb21 to 8dd81fd Compare July 16, 2026 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant