Merge same-named vendors and products in the filter bar

Fixkamo-internal
Ya
5 Agosti 2026, 19:41 UTC
Mwandishi
kamo
Ahadi ya
99399b1

An org routinely holds one lead supplier under several vendor records, so on the "All Markets" tab the Vendor dropdown listed the same name once per record — identical rows the member could not tell apart, and duplicate React keys. Vendors that share a name now collapse into a single option, and so do the products underneath them: selecting the merged vendor loads the union of every merged vendor's products, with same-named products merged in turn. Selecting either returns all the leads behind the name, because the grid filters now compare through the same normalization used to build the options (trimmed, whitespace-collapsed, case-insensitive) instead of an exact string equality. Grouping products per vendor group also fixes a bug on market tabs: product names were deduped globally, so when two differently-named vendors both sold "Refi 30" only the first kept it and picking the second gave an empty Product dropdown. Option building moves out of the component into **************** so the grouping and the lead-matching rule sit together and are unit tested.

Mabadiliko yote

Je, unaona nini kuhusu usafiri?

Kila moja ya hizi updates ardhi katika nafasi yako ya kazi moja kwa moja. Kuanza bure na kuangalia kukua wiki baada ya wiki.

Kuwa Huru MileleMtazamo wa bei