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

PP-12395: Revoke key functionality #4400

Merged
merged 1 commit into from
Jan 3, 2025
Merged

Conversation

oswaldquek
Copy link
Contributor

@oswaldquek oswaldquek commented Jan 3, 2025

The revoke key confirmation screen:

Screenshot 2025-01-03 at 12 10 17

This PR does not include cypress tests, which will be in the next PR.

@oswaldquek oswaldquek force-pushed the PP-12395-revoke-key branch 3 times, most recently from 08c4dba to fc871e4 Compare January 3, 2025 13:31
@oswaldquek oswaldquek force-pushed the PP-12395-revoke-key branch from fc871e4 to 74847f3 Compare January 3, 2025 13:44
@oswaldquek oswaldquek marked this pull request as ready for review January 3, 2025 13:44
Copy link
Contributor

@james-peacock-gds james-peacock-gds left a comment

Choose a reason for hiding this comment

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

Just needs the success notification

async function post (req, res) {
if (req.body.revokeApiKey === 'Yes') { // pragma: allowlist secret
await revokeKey(req.account.id, req.params.tokenLink)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

The figma says there should be a success notification if the key is revoked so something like [this] maybe?(

req.flash('messages', { state: 'success', icon: '✓', heading: `Team member invitation sent to ${req.body.invitedUserEmail}` })
)

@james-peacock-gds james-peacock-gds dismissed their stale review January 3, 2025 14:48

we've decided that the success notification can be done in a separate PR

Copy link
Contributor

@james-peacock-gds james-peacock-gds left a comment

Choose a reason for hiding this comment

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

LGTM - success notification and validation to be done in a subsequent PR

@oswaldquek oswaldquek merged commit 18df97b into master Jan 3, 2025
14 checks passed
@oswaldquek oswaldquek deleted the PP-12395-revoke-key branch January 3, 2025 14:54
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.

2 participants