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

fix: Only show names as changed when titles have changed. #3843

Merged
merged 4 commits into from
May 23, 2023

Conversation

thomasheartman
Copy link
Contributor

@thomasheartman thomasheartman commented May 23, 2023

Related to linear task 1-954.

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.

Here's a number of different examples:

image

@vercel
Copy link

vercel bot commented May 23, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 23, 2023 0:13am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) May 23, 2023 0:13am

@thomasheartman
Copy link
Contributor Author

Discussion point: if you give a strategy a title that matches its display name: should it be shown as a change?

I think "yes", but I'm happy to hear otherwise. It currently does do that:

image

@thomasheartman thomasheartman enabled auto-merge (squash) May 23, 2023 12:08
@thomasheartman thomasheartman merged commit f700664 into main May 23, 2023
9 of 15 checks passed
@thomasheartman thomasheartman deleted the fix/cr-title-change branch May 23, 2023 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants