mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-01 00:08:27 +01:00
f7006642a6
Related to [linear task 1-954](https://linear.app/unleash/issue/1-954/disabling-last-strategy-in-change-request-shows-strikethrough). This PR changes the display logic for showing titles as changed: it previously fell back to always being `true` if there was a custom title set for a strategy. This PR makes it so that it only shows as changed if the title has actually changed, either from one custom title to another, or to and from the display name. To accommodate the last bit, it also shows display names with a strikethrough if the strategy had no title previously, but now it does. This is consistent with how it displays the strategy name if you delete a title from a strategy. Here's a number of different examples: ![image](https://github.com/Unleash/unleash/assets/17786332/034bcc01-8715-4052-afec-56caf7edea51) |
||
---|---|---|
.. | ||
ChangeRequest | ||
ChangeRequestConfirmDialog | ||
ChangeRequestOverview | ||
ChangeRequestSidebar | ||
ChangeRequestStatusBadge | ||
ProjectChangeRequests | ||
ChangeRequest.test.tsx | ||
changeRequest.types.ts | ||
ChangeRequestPermissions.test.tsx | ||
changesCount.ts |