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

UI - new token renew banner #5662

Merged
merged 21 commits into from
Nov 5, 2018
Merged

UI - new token renew banner #5662

merged 21 commits into from
Nov 5, 2018

Conversation

meirish
Copy link
Contributor

@meirish meirish commented Nov 1, 2018

This PR changes how the UI notifies you about suspended auto-renewal of your Vault token.

Previously there was a big yellow banner telling you that you needed to click a button to resume auto-renewal if you were idle for a period of time in the UI. Now, we've shuffled that alert into the user menu, so all that you see is a yellow dot on the user icon, and if you navigate anywhere that triggers an api call, we'll resume renewal for you automatically.

Just the beacon:
screen shot 2018-11-01 at 3 07 36 pm

With the user menu open:
screen shot 2018-11-01 at 3 07 43 pm

Note: styling on this will change as all of the alert styling is currently being worked on.
Fixes #4840

@meirish meirish requested review from a team November 1, 2018 20:11
@@ -56,7 +56,7 @@ module('Integration | Component | license info', function(hooks) {
await render(
hbs`<LicenseInfo @licenseId={{this.licenseId}} @expirationTime={{this.expirationTime}} @startTime={{this.startTime}} @features={{this.features}}/>`
);
assert.equal(component.featureRows.length, 12, 'it renders 12 features');
assert.equal(component.featureRows.length, 9, 'it renders 9 features');
Copy link
Contributor

Choose a reason for hiding this comment

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

we could just have this call the helper and make sure it's the same length as the list the helper has?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh yeah that's nicer

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done!

@meirish meirish force-pushed the ui-new-token-renew-banner branch 2 times, most recently from 58d3984 to c26e4fd Compare November 2, 2018 20:31
@meirish meirish force-pushed the ui-new-token-renew-banner branch from 1084900 to 6b851fa Compare November 2, 2018 22:12
ui/app/templates/components/auth-info.hbs Outdated Show resolved Hide resolved
ui/app/templates/components/auth-info.hbs Outdated Show resolved Hide resolved
ui/app/templates/components/token-expire-warning.hbs Outdated Show resolved Hide resolved
ui/app/templates/vault/cluster.hbs Show resolved Hide resolved
@meirish meirish merged commit be33d65 into master Nov 5, 2018
@meirish meirish deleted the ui-new-token-renew-banner branch November 5, 2018 16:57
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.

3 participants