1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-13 13:48:59 +02:00

chore: bring back deprecation warning

This commit is contained in:
Nuno Góis 2025-07-30 09:44:03 +01:00
parent 932287a530
commit dd0e7daf47
No known key found for this signature in database
GPG Key ID: 71ECC689F1091765

View File

@ -92,6 +92,25 @@ const Title: FC<{
</StyledTitle>
);
const StrategyDeprecationWarning = () => (
<Alert severity='warning' sx={{ mb: 2 }}>
Custom strategies are deprecated and may be removed in a future major
version. We recommend not using custom strategies going forward and
instead using the gradual rollout strategy with{' '}
<Link
href={
'https://docs.getunleash.io/reference/activation-strategies#constraints'
}
target='_blank'
rel='noopener noreferrer'
>
constraints
</Link>
. If you have a need for custom strategies that you cannot support with
constraints, please reach out to us.
</Alert>
);
const RecommendationAlert = () => (
<Alert severity='info' sx={{ mb: 2 }}>
We recommend using gradual rollout. You can customize it with{' '}
@ -531,6 +550,7 @@ export const StrategiesList = () => {
<span>Custom strategies</span>
<AddStrategyButton />
</StyledSubtitle>
<StrategyDeprecationWarning />
<Table {...customGetTableProps()}>
<SortableTableHeader
headerGroups={customHeaderGroups}