-
Notifications
You must be signed in to change notification settings - Fork 33
Icu 18014 inactive alert actions #3164
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
base: llb/app-tokens
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
ui/admin/app/templates/scopes/scope/app-tokens/app-token/index.hbs
Outdated
Show resolved
Hide resolved
| assert.dom('.hds-modal').isVisible(); | ||
| assert.dom('.hds-modal__header').containsText('Delete'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have a data-test attribute we can use here instead of the generic .hds-modal selector?
| assert.dom(selectors.DELETE_ORIGINAL_BANNER).isVisible(); | ||
|
|
||
| // Click the dismiss button | ||
| await click('[data-test-delete-original-banner] .hds-dismiss-button'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we change this to a test selector const?
| @tracked originalTokenWasInactive = false; | ||
|
|
||
| /** | ||
| * Stores the ID of the original app token being cloned. | ||
| * @type {string|null} | ||
| */ | ||
| @tracked originalTokenId = null; | ||
|
|
||
| /** | ||
| * Stores the name of the original app token being cloned. | ||
| * @type {string|null} | ||
| */ | ||
| @tracked originalTokenName = null; | ||
|
|
||
| /** | ||
| * Stores the status of the original app token being cloned. | ||
| * @type {string|null} | ||
| */ | ||
| @tracked originalTokenStatus = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
non-blocking: I am curious if it would be easier to simply track the original app token model instead of 4 different tracked values? Not saying we should, just wanted to ask if it would clean this up a bit.
Description
This PR implements the clone and delete button functionality for app token alerts. When an app token is inactive (stale, expired, or revoked) or has permissions with no active grant scopes, users can now clone or delete the token directly from the inline alert banners.
🎟️ Jira ticket
Screenshots (if appropriate)
inactive-app-tokens-demo.mov
How to Test
Inactive Token Alert
Delete Original Banner
No Active Scopes Alert (Permissions Page)
/addons/api/mirage/factories/app-tokens.jspageChecklist
a11y-testslabel to run a11y audit tests if neededPCI review checklist
Examples of changes to security controls include using new access control methods, adding or removing logging pipelines, etc.