For a Smart Search that starts with an empty list, adding filters that (currently) return zero people yield weird sankey diagrams.
Steps to reproduce
Go to Smart Search
Add any filter that returns zero
Add another filter that returns zero
Expected Behaviour
For empty first filters, the diagram should be a dashed "add" arrow. For empty second filters following on an an empty first filter, it should be a dashed "add" arrow coming into a dashed main.
Actual Behaviour
Weird arrows that go nowhere (see screenshots).
Screenshots
Ex 1: Two consecutive zero-returning filters (as described in "Steps to reproduce")
Ex 2: Single zero-returning filter
Ex 3: Zero-returning filter followed by some-returning filter
Proposed solution
Write tests for makeSankeySegments() repeating the cases above and expect the output to be nicer segments.
Description
For a Smart Search that starts with an empty list, adding filters that (currently) return zero people yield weird sankey diagrams.
Steps to reproduce
Expected Behaviour
For empty first filters, the diagram should be a dashed "add" arrow. For empty second filters following on an an empty first filter, it should be a dashed "add" arrow coming into a dashed main.
Actual Behaviour
Weird arrows that go nowhere (see screenshots).
Screenshots
Ex 1: Two consecutive zero-returning filters (as described in "Steps to reproduce")
Ex 2: Single zero-returning filter
Ex 3: Zero-returning filter followed by some-returning filter
Proposed solution
Write tests for
makeSankeySegments()
repeating the cases above and expect the output to be nicer segments.