Parsers: Make parser cards source-oriented and explain duplicate matching #39
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Parser cards use the sender domain as the title (e.g. "dhl.de") but the domain alone doesn't differentiate multiple parsers for the same domain. There are 3 separate "dhl.de" parser cards with no explanation of which one is active or how conflicts are resolved.
The
CardDescriptionshows "Created X ago" but not the keyword set that distinguishes each parser.There is no explanation of precedence when multiple parsers match the same domain.
Implementation
File:
frontend/src/pages/Parsers.tsx—ParserCardcomponent.Fix 1 — Richer title
Change the
CardTitleto include the keyword summary inline:Fix 2 — Duplicate warning
When rendering the parser list, group by domain and show a warning badge when a domain has more than one parser:
In
ParserCard, show a note whenisDuplicate:Fix 3 — Subtitle
Change the page subtitle from:
"email domain rules for extracting shipment data"To:
"Email templates — one per sender, used to extract tracking info from incoming emails"Acceptance criteria
Brand identity alignment
Parsers are part of Trackbox's transparent source pipeline. The UI should present them as email/source extraction rules, not anonymous CPU cards.
Brand-compliant implementation notes
Source domain,Keywords,Field map, andLast usedwhere data exists.Multiple rules match this source. First matching keyword set is used.Additional acceptance criteria
Migrated from GitHub issue #18: https://github.com/bullitt186/trackbox/issues/18
Original author: @bullitt186
Original created: 2026-06-27T13:24:52Z
Original labels: ux
Parsers: Show domain + keyword summary as card title, explain duplicate parsersto Parsers: Make parser cards source-oriented and explain duplicate matchingImplemented in commit
bd6b0e7. Parser cards now show a keyword summary inline in the title (first 2 keywords with ellipsis for more). When a domain appears more than once, an amber note reads 'Multiple parsers for this domain — first keyword match wins.' This explains deduplication behaviour without hiding it. Page subtitle updated to 'email templates — one per sender, used to extract tracking info from incoming emails'.