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

Display event keys created via integration #1247

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

djfarrelly
Copy link
Member

Description

Display all event keys, including those created via integration. Adds a warning to the delete key modal and a label to the event key to denote how the key was created.

Screen Shot 2024-03-22 at 1 16 48 PM Screen Shot 2024-03-22 at 1 16 39 PM

Motivation

Event Keys created via the Vercel integration were not shown in the UI, preventing users from verifying the installation and validity of keys set as environment variables in their Vercel project.

Type of change (choose one)

  • Chore (refactors, upgrades, etc.)
  • Bug fix (non-breaking change that fixes an issue)
  • Security fix (non-breaking change that fixes a potential vulnerability)
  • Docs
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality not to work as expected)

Checklist

  • I've linked any associated issues to this PR.
  • I've tested my own changes.

Check our Pull Request Guidelines

Copy link

vercel bot commented Mar 22, 2024

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

Name Status Preview Comments Updated (UTC)
ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 22, 2024 5:22pm

<DeleteKeyModal
keyID={keyID}
isOpen={isDeleteKeyModalVisible}
onClose={() => setIsDeleteKeyModalVisible(false)}
description={
isIntegration
? 'Warning: This key was created via integration. Please confirm that you are no longer using it before deleting.'
Copy link
Contributor

Choose a reason for hiding this comment

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

This being a warning it might make sense to use the <Alert> component in the future, but the best would be to make the AlertModal more composable, so it can be for later

Copy link
Member Author

Choose a reason for hiding this comment

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

Good idea! I was thinking about doing this, but avoided the refactor as description was a string type. I think all of our confirmation modals and dialogs could use some cleanup and a new design with options.

@djfarrelly djfarrelly merged commit 4591f2b into main Mar 22, 2024
7 checks passed
@djfarrelly djfarrelly deleted the fix/display-integration-event-keys branch March 22, 2024 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants