Skip to content

Add merchant enrichment support to card transactions - #39

Open
MusabShakeel576 wants to merge 1 commit into
mainfrom
claude/rain-enrichment-card-activities-n9atcz
Open

MusabShakeel576 wants to merge 1 commit into
mainfrom
claude/rain-enrichment-card-activities-n9atcz

Conversation

@MusabShakeel576

Copy link
Copy Markdown
Contributor

Summary

Enhanced the card transactions table to display enriched merchant data (clean brand names, categories, and logos) alongside the raw transaction descriptor from the payment network.

Key Changes

  • Type definitions: Added three new optional fields to CardTransaction interface:

    • merchantCategory: Issuer's human-readable category for the raw descriptor
    • enrichedMerchantName: Clean brand name from issuer enrichment (e.g., "Google Play" instead of "GOOGLE *Play Books")
    • enrichedMerchantCategory: Category from enriched data
    • enrichedMerchantIcon: Logo URL for the merchant
  • UI improvements: Redesigned the merchant display cell to:

    • Show merchant logo as a rounded avatar when available
    • Display enriched merchant name with fallback to raw merchant name
    • Show raw descriptor in monospace font when it differs from enriched name (important for disputes and support tickets)
    • Combine location and category information with a separator
    • Maintain backward compatibility with existing merchant data

Implementation Details

  • The raw merchant descriptor remains visible whenever it differs from the enriched name, ensuring support teams have access to the exact network-provided data for dispute resolution
  • Merchant enrichment is opportunistic from the issuer and only available after transaction settlement, so the raw descriptor is always preserved as the source of truth
  • Logo display uses object-contain to maintain aspect ratio and includes appropriate styling for consistency
  • Added ESLint disable comment for next/next/no-img-element as the image source is dynamic

https://claude.ai/code/session_01XnuxHDT4YapsUvRzyRqhUR

The issuer returns merchant enrichment alongside the raw acquirer descriptor.
Lead the Merchant column with the clean brand name and its logo, and keep the raw
descriptor underneath whenever the two differ — disputes and support tickets quote
what the network actually sent, not the brand.

Category is appended to the location line, preferring the enriched category over
the issuer's own. All the fields are optional (enrichment never arrives before
settlement), so an unenriched transaction renders exactly as it did before.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XnuxHDT4YapsUvRzyRqhUR
@vercel

vercel Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
solid-management-portal Ready Ready Preview Aug 19, 2026 1:51pm
solid-management-portal-qa Ready Ready Preview Aug 19, 2026 1:51pm

Request Review

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.

2 participants