Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(experiments): new metrics UI tweaks #27171

Merged
merged 2 commits into from
Dec 29, 2024

Conversation

jurajmajerik
Copy link
Contributor

Changes

  • The "Ship a variant" feature no longer shows the "Winning" variant tag, as we now support multiple main metrics. Will think about how to guide the user better here, but for now removing the tag altogether.
  • Add implementation details panel as long as there are no results for any main metric.
  • Some UI fixes/alignments to the Delta chart.

How did you test this code?

👀

@jurajmajerik jurajmajerik requested review from neilkakkar and a team December 27, 2024 15:00
Copy link
Contributor

github-actions bot commented Dec 27, 2024

Size Change: 0 B

Total Size: 1.11 MB

ℹ️ View Unchanged
Filename Size
frontend/dist/toolbar.js 1.11 MB

compressed-size-action

const { closeShipVariantModal, shipVariant } = useActions(experimentLogic({ experimentId }))
const { aggregationLabel } = useValues(groupsModel)

const [selectedVariantKey, setSelectedVariantKey] = useState<string | null>()
useEffect(() => setSelectedVariantKey(sortedWinProbabilities(0)[0]?.key), [sortedWinProbabilities(0)])
useEffect(() => {
if (experiment.parameters?.feature_flag_variants?.length > 0) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this check can be safer incase there's an error somewhere in our validation logic, so this doesn't break

Suggested change
if (experiment.parameters?.feature_flag_variants?.length > 0) {
if (experiment.parameters?.feature_flag_variants?.length > 1) {

@jurajmajerik jurajmajerik merged commit 6463378 into master Dec 29, 2024
99 checks passed
@jurajmajerik jurajmajerik deleted the experiments-metrics-ui-tweaks branch December 29, 2024 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants