prop/lib/microwaveprop_web/live/user_management_live
Graham McInitre 49ade78766 fix: wire pending_edits_query as data_provider for contact edit review table
The LiveTable on /admin/contact-edits used the bare ContactEdit schema
as its data source, which caused three symptoms:
- '0 pending' counter but stale approved/rejected edits still visible
- Blank contact/submitted-by cells (select_columns stripped preloaded
  associations, cell renderers received flat maps with no :contact/:user)
- Approve/reject didn't remove the row from the table

Fix: assign {Radio, :pending_edits_query, []} as the data_provider in
mount so handle_params threads it to stream_resources. The query variant
of list_resources preserves preloaded associations and includes the
WHERE status = :pending filter.

Added two tests that verify the table rendering and edit removal.
2026-07-22 08:54:46 -05:00
..
edit.ex fix: wire pending_edits_query as data_provider for contact edit review table 2026-07-22 08:54:46 -05:00
index.ex fix: wire pending_edits_query as data_provider for contact edit review table 2026-07-22 08:54:46 -05:00