Your platform has approved a second provider. The catalogue can now show two services. Can the team name a single customer who can use one today and couldn’t yesterday?
You can answer a useful part of that question before integrating either provider’s mobile experience. We ran a small Node.js experiment. It takes the services admitted to a host, the supply each provider currently reports and the locations where customers have requested help as three independent inputs. The output identifies whose request has at least one available match. That makes it possible to check whether a launch changes coverage, adds a second choice for people already served or simply makes a longer list.
Count customers with a match
Keep the question narrow. In this example everyone wants the same service in the same time window. Each customer needs it in one region. A and B need help in the north, C and D in the east, and E in the west. C tries twice. There are six requests but five people who could gain access. The sample includes unmet requests, including the one in the west. Starting from successful orders alone would remove precisely the customers whose situation we want to change.
The host currently lists the original service. Its provider is accepting requests in the north. Another service reports availability in the west but has never been approved for this host. E should therefore remain uncovered in every test. If a change accidentally bypasses the approval check, that western row makes the test fail even though neither approved service has altered its coverage.
For each case we take the intersection of admitted service IDs and available supply records, then match the resulting regions against customer demand. The set difference between the new customer IDs and the original customer IDs gives us the people newly covered. A count alone can hide an exchange in which one region gains service and another loses it. The assertions compare the identities as well as reporting the totals.
Run the comparison
Save this as coverage.mjs and run node coverage.mjs. Our run used Node.js v24.22.3. All records are local fixtures, with no network or package dependencies.
import assert from "node:assert/strict";
// One service type, one time window and one location per customer.
const requests = [
{ customer: "A", region: "north" },
{ customer: "B", region: "north" },
{ customer: "C", region: "east" },
{ customer: "C", region: "east" }, // a retry
{ customer: "D", region: "east" },
{ customer: "E", region: "west" }
];
const demandCount = new Set(requests.map(r => r.customer)).size;
const existingSupply = [
{ service: "original", region: "north", accepting: true },
{ service: "unlisted", region: "west", accepting: true }
];
function coveredCustomers(approved, supply) {
const availableRegions = new Set(
supply.filter(row => approved.has(row.service) && row.accepting === true)
.map(row => row.region)
);
return new Set(
requests.filter(row => availableRegions.has(row.region))
.map(row => row.customer)
);
}
const firstOnly = new Set(["original"]);
const both = new Set(["original", "newcomer"]);
const baseline = coveredCustomers(firstOnly, existingSupply);
function check(name, approved, extraSupply, expectedCovered, expectedNew) {
const covered = coveredCustomers(approved, [...existingSupply, ...extraSupply]);
const added = [...covered].filter(customer => !baseline.has(customer)).sort();
assert.deepEqual([...covered].sort(), expectedCovered);
assert.deepEqual(added, expectedNew);
console.log(`${name}: ${covered.size}/${demandCount} covered | new: ${added.join(", ") || "none"}`);
}
const north = { service: "newcomer", region: "north", accepting: true };
const east = { service: "newcomer", region: "east", accepting: true };
assert.equal(demandCount, 5);
check("baseline", firstOnly, [], ["A", "B"], []);
check("overlap", both, [north], ["A", "B"], []);
check("new region", both, [east], ["A", "B", "C", "D"], ["C", "D"]);
check("temporarily closed", both, [{ ...east, accepting: false }], ["A", "B"], []);
check("no availability report", both, [], ["A", "B"], []);
Here is the output from our run.
baseline: 2/5 covered | new: none
overlap: 2/5 covered | new: none
new region: 4/5 covered | new: C, D
temporarily closed: 2/5 covered | new: none
no availability report: 2/5 covered | new: none
The first two lines have the same customer count, even though two providers can now serve the north. The newcomer might offer a better price, a shorter wait or useful backup. Those potential benefits deserve their own evidence. The launch adds coverage only when the newcomer reports that it can accept an eastern request. C and D appear once each, including the customer who retried.
In the fourth case the newcomer still has approval, still has an eastern service record and has stopped accepting requests. In the fifth it has supplied no availability record. Both yield the same coverage result. They call for different action by the team maintaining the service. One provider has deliberately paused its offer. In the other case the platform needs to find out whether it has enough information to show an offer at all. A real feed also needs a definition of “current” so that yesterday’s positive report cannot stand in for today’s missing one.
What a positive match buys you
The result says C or D could find a provider accepting requests at the instant represented by the sample. It promises neither customer a booking. If only one appointment remains, two people might see it before either books. Reserving that appointment and recording the outcome belong to the provider’s business system. To study fulfilment you would follow requests through that system to a confirmed outcome. To study customers with several locations or several distinct needs, count each customer-task-location combination first and decide separately how to summarise those results by customer.
For a company integrating FinClip, the Mini App runtime SDK lets its Host App run partner Mini Apps, and the management platform supports review and association of Mini Apps with a host. A provider’s ability to serve a place at a particular time comes from its own operation. The app owner and its partners design the supply feed and implement the matching rule. Our single-process test exercises that rule with sample data. The FinClip mobile SDK and actual providers are outside the test environment. FinClip product functionality overview
Before allocating a mobile team to the next provider, give the product owner the two customer sets. A customer gained is a reason to investigate a real gap. An empty difference is a reason to ask what the second choice would improve for the customers who are already there. Either answer is more informative than announcing that the catalogue has doubled.
Top comments (0)