#855 — Change “Source” column in merchants table to reflect payment processor (luqra, ems, pe)

Repo: Twill-AI/twill-ai-ui State: closed | Status: done Assignee: nadddder, raymondehizoba

Created: 2025-12-03 · Updated: 2025-12-11

Description

Context

Update the Source column in the merchants table to calculate the source value based on integration field presence instead of the gateways field. The Source column currently displays comma-separated gateway values, but should now show a single source tag based on which integration fields are populated.

Acceptance Criteria

  • The Source column displays a single tag based on field presence with the following priority:

    • If luqra_mid OR luqra_application_id is set → “Luqra”
    • Else if ems_mid OR ems_deal_id is set → “EMS”
    • Otherwise → “PayEngine” (default) - only if it is active, empty otherwise
  • The implementation must be updated in both merchant table views:

    • Partner merchants table (app/(partner)/partner/merchants/page.tsx)
    • Master merchants table (app/(master)/master/merchants/page.tsx)

Notes

Add implementation notes, blockers, and context here

Add wikilinks to related people, meetings, or other tickets