Skip to content

Commit 9e9be87

Browse files
committed
Also handle the existing and still used 'planned' lifecycle
1 parent 52d337c commit 9e9be87

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/Elastic.Markdown/Myst/Components/ApplicableToComponent.cshtml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -269,18 +269,17 @@
269269
}
270270
else
271271
{
272-
if (applicability.Lifecycle is ProductLifecycle.GenerallyAvailable or ProductLifecycle.Beta or ProductLifecycle.TechnicalPreview)
272+
tooltipText = applicability.Lifecycle switch
273273
{
274-
tooltipText = $"We plan to add this functionality in a future {keyFull} update. Subject to change.";
275-
}
276-
else if (applicability.Lifecycle is ProductLifecycle.Deprecated)
277-
{
278-
tooltipText = $"We plan to deprecate this functionality in a future {keyFull} update. Subject to change.";
279-
}
280-
else if (applicability.Lifecycle is ProductLifecycle.Removed)
281-
{
282-
tooltipText = $"We plan to remove this functionality in a future {keyFull} update. Subject to change.";
283-
}
274+
ProductLifecycle.GenerallyAvailable
275+
or ProductLifecycle.Beta
276+
or ProductLifecycle.TechnicalPreview
277+
or ProductLifecycle.Planned =>
278+
$"We plan to add this functionality in a future {keyFull} update. Subject to change.",
279+
ProductLifecycle.Deprecated => $"We plan to deprecate this functionality in a future {keyFull} update. Subject to change.",
280+
ProductLifecycle.Removed => $"We plan to remove this functionality in a future {keyFull} update. Subject to change.",
281+
_ => tooltipText
282+
};
284283
}
285284

286285
}
@@ -314,6 +313,7 @@
314313
: "Planned",
315314
ProductLifecycle.Deprecated => "Deprecation planned",
316315
ProductLifecycle.Removed => "Removal planned",
316+
ProductLifecycle.Planned => "Planned",
317317
_ => badgeText
318318
};
319319
}

0 commit comments

Comments
 (0)