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: update description on project deletion #7539

Merged
merged 3 commits into from
Jul 5, 2024

Conversation

Tymek
Copy link
Member

@Tymek Tymek commented Jul 3, 2024

About the changes

Improving the project deletion experience by adding information about API keys and refining the messaging, making it easier to comprehend.

Improved Project Settings Deletion Section

  • Pre-Deletion Requirements: Reminder to archive all feature flags before deleting a project now only shows up when it is relevant.
  • Lists all entities that will be permanently deleted is now done with bullet points. It is easier to comprehend as we reached 3 items.

Updated Delete Project Dialogue

Now reiterates that deleting a project will also remove all actions configured for the project, in addition to the project itself, its feature flags, and API keys.

Discussion points

Should reminder to archive flags be reverted closer to disabled delete button, instead of placing it on the top.

Prerequisits

#7503

Copy link

vercel bot commented Jul 3, 2024

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 Jul 5, 2024 11:10am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Jul 5, 2024 11:10am

Copy link
Contributor

github-actions bot commented Jul 3, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

Copy link
Contributor

@thomasheartman thomasheartman left a comment

Choose a reason for hiding this comment

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

Thanks for the clear PR description 🙌🏼

I like the idea of putting deletion information in the dialog too, but I'm not convinced about removing the deletion prerequisites when you don't need to do anything (refer to my inline comment). I'd like to hear other people's views.

Regarding your discussion point:

Should reminder to archive flags be reverted closer to disabled delete button, instead of placing it on the top.

I'm not sure what you mean. Could you pop in an image or something to clarify?

<strong>will permanently remove</strong>
<ul>
<li>all archived feature flags in this project</li>
<li>API keys configured to access only this project</li>
Copy link
Contributor

Choose a reason for hiding this comment

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

Depending on how the API key deletion works, we might want to be a little more explicit (here or in the docs), but I don't have a clear suggestion for that yet. Let's see how the rest of this shakes out first.

@thomasheartman
Copy link
Contributor

Nice one 😄

</p>
}
/>
</>
Copy link
Member

@nunogois nunogois Jul 5, 2024

Choose a reason for hiding this comment

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

I think this can be a bit weird in some edge cases:

  • featureCount === 0
  • actionsCount > 0
  • automatedActionsEnabled === false

We would only show "0 feature flags active", which I'm not sure is the intended behavior. I don't think it matters much, but I would pick one of:

  • Show zeroes: No longer care about the total featureCount and actionsCount totals, show them even if they are 0. This means we simply remove the ConditionallyRender with featureCount > 0 || actionsCount > 0.
  • Don't show zeroes: Add a ConditionallyRender wrapper around each paragraph where we check the individual count for each along with any other conditions:
    • featureCount > 0
    • actionsCount > 0 && isEnterprise() && automatedActionsEnabled

@Tymek Tymek force-pushed the feat/delete-project-description branch from 131c8c9 to 5f904e1 Compare July 5, 2024 11:02
@Tymek Tymek enabled auto-merge (squash) July 5, 2024 11:02
@Tymek Tymek merged commit 1d7cd2e into main Jul 5, 2024
6 of 8 checks passed
@Tymek Tymek deleted the feat/delete-project-description branch July 5, 2024 11:07
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.

3 participants