shadcn.io is not affiliated with official shadcn/ui
A/B Test Results Changelog Block for Vue
A framed table of five A/B tests with the lift drawn as a bar from a zero line, a whisker for the interval, the lift in words and the decision as an icon and a word.
Installation
Overview
A test results table for Vue with Ark UI, written for Forkpath, a fictional experimentation tool. A start-aligned header counts from the data how many of five tests earned a release, and under it an inset frame with + marks on its corners holds one table. Each row names a test and its metric, draws its lift as a bar that grows from a zero line (a solid tint for a gain, a hatched one for a loss) with a whisker across it for the 95% interval, says the lift in words ("+1.6 pts" with an arrow and the confidence), and ends on the decision as an icon and a word: Shipped in a version, Kept control, or Needs more data. The lift, the interval and the confidence are worked out from the two conversion rates and the sample size, so the bar, the text and the headline agree. It's built from Guides and Badge, with CSS transitions for the entrance and your theme's tokens for every colour. For release notes and experiment logs. The tests are example data.
FAQ
How do I change the tests?
Edit TESTS at the top of the file. A test has a name, a metric, the control and variant conversion rates in percent, the visitors in each arm, and the decision (SHIPPED, KEPT or WAITING, with a version when it shipped). The lift, interval, confidence, axis and headline are computed from those.
How are the interval and the confidence calculated?
With the usual normal approximation for the difference of two proportions: the standard error comes from both rates and the sample size, the interval is the lift plus or minus 1.96 standard errors, and the confidence is two-sided. It suits large samples of yes or no outcomes. For other metrics, replace resultOf with your own numbers.
Is the decision computed too?
No. A decision is a human call, so it's typed in the data. The bar and the confidence are there to show whether the call was sound: a whisker that crosses the zero line says the test has not separated the arms.
Why a lift axis and not a conversion rate?
The question each row answers is how far the variant moved from control, so every bar starts at the same zero line and the axis runs the same distance either side, to the widest interval in the table. Gains and losses differ by shape (solid or hatched) and by the arrow and sign in the text, never by colour.
Related
- Experiment Results Accordion ChangelogMetrics and charts
- Feature Adoption Curves ChangelogMetrics and charts
- Error Rate Comparison ChangelogIncidents and uptime
- Canary Release Ramp ChangelogDeploys and rollouts
- Feature Flag History ChangelogDeploys and rollouts
- Customer Request ChangelogRoadmap and customers